Skip to content

Commit aa45625

Browse files
1 parent 84cc3d3 commit aa45625

28 files changed

+496
-115
lines changed

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

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

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171133,7 +171133,12 @@ public class Regions {
171133171133
* especially recommended for unused quota information (the `quotas` field). To exclude one or more
171134171134
* fields, set your request's `fields` query parameter to only include the fields you need. For
171135171135
* example, to only include the `id` and `selfLink` fields, add the query parameter
171136-
* `?fields=id,selfLink` to your request.
171136+
* `?fields=id,selfLink` to your request. This method fails if the quota information is unavailable
171137+
* for the region and if the organization policy constraint compute.requireBasicQuotaInResponse is
171138+
* enforced. This constraint, when enforced, disables the fail-open behaviour when quota information
171139+
* (the `items.quotas` field) is unavailable for the region. It is recommended to use the default
171140+
* setting for the constraint unless your application requires the fail-closed behaviour for this
171141+
* method.
171137171142
*
171138171143
* Create a request for the method "regions.get".
171139171144
*
@@ -171166,7 +171171,12 @@ public class Get extends ComputeRequest<com.google.api.services.compute.model.Re
171166171171
* especially recommended for unused quota information (the `quotas` field). To exclude one or
171167171172
* more fields, set your request's `fields` query parameter to only include the fields you need.
171168171173
* For example, to only include the `id` and `selfLink` fields, add the query parameter
171169-
* `?fields=id,selfLink` to your request.
171174+
* `?fields=id,selfLink` to your request. This method fails if the quota information is
171175+
* unavailable for the region and if the organization policy constraint
171176+
* compute.requireBasicQuotaInResponse is enforced. This constraint, when enforced, disables the
171177+
* fail-open behaviour when quota information (the `items.quotas` field) is unavailable for the
171178+
* region. It is recommended to use the default setting for the constraint unless your application
171179+
* requires the fail-closed behaviour for this method.
171170171180
*
171171171181
* Create a request for the method "regions.get".
171172171182
*

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/AllocationResourceStatusSpecificSKUAllocation.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ public final class AllocationResourceStatusSpecificSKUAllocation extends com.goo
3636
@com.google.api.client.util.Key
3737
private java.lang.String sourceInstanceTemplateId;
3838

39+
/**
40+
* Per service utilization breakdown. The Key is the Google Cloud managed service name.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
44+
private java.util.Map<String, java.lang.Long> utilizations;
45+
3946
/**
4047
* ID of the instance template used to populate reservation properties.
4148
* @return value or {@code null} for none
@@ -53,6 +60,23 @@ public AllocationResourceStatusSpecificSKUAllocation setSourceInstanceTemplateId
5360
return this;
5461
}
5562

63+
/**
64+
* Per service utilization breakdown. The Key is the Google Cloud managed service name.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.util.Map<String, java.lang.Long> getUtilizations() {
68+
return utilizations;
69+
}
70+
71+
/**
72+
* Per service utilization breakdown. The Key is the Google Cloud managed service name.
73+
* @param utilizations utilizations or {@code null} for none
74+
*/
75+
public AllocationResourceStatusSpecificSKUAllocation setUtilizations(java.util.Map<String, java.lang.Long> utilizations) {
76+
this.utilizations = utilizations;
77+
return this;
78+
}
79+
5680
@Override
5781
public AllocationResourceStatusSpecificSKUAllocation set(String fieldName, Object value) {
5882
return (AllocationResourceStatusSpecificSKUAllocation) super.set(fieldName, value);

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Backend.java

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ public final class Backend extends com.google.api.client.json.GenericJson {
5656
@com.google.api.client.util.Key
5757
private java.lang.Float capacityScaler;
5858

59+
/**
60+
* List of custom metrics that are used for CUSTOM_METRICS BalancingMode and WEIGHTED_ROUND_ROBIN
61+
* BackendService locality_lb_policy.
62+
* The value may be {@code null}.
63+
*/
64+
@com.google.api.client.util.Key
65+
private java.util.List<BackendCustomMetric> customMetrics;
66+
5967
/**
6068
* An optional description of this resource. Provide this property when you create the resource.
6169
* The value may be {@code null}.
@@ -215,6 +223,25 @@ public Backend setCapacityScaler(java.lang.Float capacityScaler) {
215223
return this;
216224
}
217225

226+
/**
227+
* List of custom metrics that are used for CUSTOM_METRICS BalancingMode and WEIGHTED_ROUND_ROBIN
228+
* BackendService locality_lb_policy.
229+
* @return value or {@code null} for none
230+
*/
231+
public java.util.List<BackendCustomMetric> getCustomMetrics() {
232+
return customMetrics;
233+
}
234+
235+
/**
236+
* List of custom metrics that are used for CUSTOM_METRICS BalancingMode and WEIGHTED_ROUND_ROBIN
237+
* BackendService locality_lb_policy.
238+
* @param customMetrics customMetrics or {@code null} for none
239+
*/
240+
public Backend setCustomMetrics(java.util.List<BackendCustomMetric> customMetrics) {
241+
this.customMetrics = customMetrics;
242+
return this;
243+
}
244+
218245
/**
219246
* An optional description of this resource. Provide this property when you create the resource.
220247
* @return value or {@code null} for none
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+
* Custom Metrics are used for CUSTOM_METRICS balancing_mode and WEIGHTED_ROUND_ROBIN BackendService
21+
* locality_lb_policy.
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 BackendCustomMetric extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* If true, the metric data is collected and reported to Cloud Monitoring, but is not used for
35+
* load balancing.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.Boolean dryRun;
40+
41+
/**
42+
* Optional parameter to define a target utilization for the Custom Metrics balancing mode. The
43+
* valid range is [0.0, 1.0].
44+
* The value may be {@code null}.
45+
*/
46+
@com.google.api.client.util.Key
47+
private java.lang.Float maxUtilization;
48+
49+
/**
50+
* Name of a custom utilization signal. The name must be 1-24 characters long, and comply with
51+
* RFC1035. Specifically, the name must be 1-24 characters long and match the regular expression
52+
* [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all
53+
* following characters must be a dash, lowercase letter, or digit, except the last character,
54+
* which cannot be a dash. For usage guidelines, see Custom Metrics balancing mode. This field can
55+
* only be used for a global or regional backend service with the loadBalancingScheme set to
56+
* EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String name;
61+
62+
/**
63+
* If true, the metric data is collected and reported to Cloud Monitoring, but is not used for
64+
* load balancing.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.Boolean getDryRun() {
68+
return dryRun;
69+
}
70+
71+
/**
72+
* If true, the metric data is collected and reported to Cloud Monitoring, but is not used for
73+
* load balancing.
74+
* @param dryRun dryRun or {@code null} for none
75+
*/
76+
public BackendCustomMetric setDryRun(java.lang.Boolean dryRun) {
77+
this.dryRun = dryRun;
78+
return this;
79+
}
80+
81+
/**
82+
* Optional parameter to define a target utilization for the Custom Metrics balancing mode. The
83+
* valid range is [0.0, 1.0].
84+
* @return value or {@code null} for none
85+
*/
86+
public java.lang.Float getMaxUtilization() {
87+
return maxUtilization;
88+
}
89+
90+
/**
91+
* Optional parameter to define a target utilization for the Custom Metrics balancing mode. The
92+
* valid range is [0.0, 1.0].
93+
* @param maxUtilization maxUtilization or {@code null} for none
94+
*/
95+
public BackendCustomMetric setMaxUtilization(java.lang.Float maxUtilization) {
96+
this.maxUtilization = maxUtilization;
97+
return this;
98+
}
99+
100+
/**
101+
* Name of a custom utilization signal. The name must be 1-24 characters long, and comply with
102+
* RFC1035. Specifically, the name must be 1-24 characters long and match the regular expression
103+
* [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all
104+
* following characters must be a dash, lowercase letter, or digit, except the last character,
105+
* which cannot be a dash. For usage guidelines, see Custom Metrics balancing mode. This field can
106+
* only be used for a global or regional backend service with the loadBalancingScheme set to
107+
* EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
108+
* @return value or {@code null} for none
109+
*/
110+
public java.lang.String getName() {
111+
return name;
112+
}
113+
114+
/**
115+
* Name of a custom utilization signal. The name must be 1-24 characters long, and comply with
116+
* RFC1035. Specifically, the name must be 1-24 characters long and match the regular expression
117+
* [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all
118+
* following characters must be a dash, lowercase letter, or digit, except the last character,
119+
* which cannot be a dash. For usage guidelines, see Custom Metrics balancing mode. This field can
120+
* only be used for a global or regional backend service with the loadBalancingScheme set to
121+
* EXTERNAL_MANAGED, INTERNAL_MANAGED INTERNAL_SELF_MANAGED.
122+
* @param name name or {@code null} for none
123+
*/
124+
public BackendCustomMetric setName(java.lang.String name) {
125+
this.name = name;
126+
return this;
127+
}
128+
129+
@Override
130+
public BackendCustomMetric set(String fieldName, Object value) {
131+
return (BackendCustomMetric) super.set(fieldName, value);
132+
}
133+
134+
@Override
135+
public BackendCustomMetric clone() {
136+
return (BackendCustomMetric) super.clone();
137+
}
138+
139+
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,7 @@ public final class BackendService extends com.google.api.client.json.GenericJson
520520
private java.lang.Integer timeoutSec;
521521

522522
/**
523+
* [Output Only] List of resources referencing given backend service.
523524
* The value may be {@code null}.
524525
*/
525526
@com.google.api.client.util.Key
@@ -1670,13 +1671,15 @@ public BackendService setTimeoutSec(java.lang.Integer timeoutSec) {
16701671
}
16711672

16721673
/**
1674+
* [Output Only] List of resources referencing given backend service.
16731675
* @return value or {@code null} for none
16741676
*/
16751677
public java.util.List<BackendServiceUsedBy> getUsedBy() {
16761678
return usedBy;
16771679
}
16781680

16791681
/**
1682+
* [Output Only] List of resources referencing given backend service.
16801683
* @param usedBy usedBy or {@code null} for none
16811684
*/
16821685
public BackendService setUsedBy(java.util.List<BackendServiceUsedBy> usedBy) {

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/BackendServiceUsedBy.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,25 @@
3030
public final class BackendServiceUsedBy extends com.google.api.client.json.GenericJson {
3131

3232
/**
33+
* [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps,
34+
* TargetTcpProxies, TargetSslProxies and ForwardingRule.
3335
* The value may be {@code null}.
3436
*/
3537
@com.google.api.client.util.Key
3638
private java.lang.String reference;
3739

3840
/**
41+
* [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps,
42+
* TargetTcpProxies, TargetSslProxies and ForwardingRule.
3943
* @return value or {@code null} for none
4044
*/
4145
public java.lang.String getReference() {
4246
return reference;
4347
}
4448

4549
/**
50+
* [Output Only] Server-defined URL for resources referencing given BackendService like UrlMaps,
51+
* TargetTcpProxies, TargetSslProxies and ForwardingRule.
4652
* @param reference reference or {@code null} for none
4753
*/
4854
public BackendServiceUsedBy setReference(java.lang.String reference) {

clients/google-api-services-compute/alpha/2.0.0/com/google/api/services/compute/model/Commitment.java

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,15 @@ public final class Commitment extends com.google.api.client.json.GenericJson {
5959
@com.google.api.client.util.Key
6060
private java.lang.String creationTimestamp;
6161

62+
/**
63+
* [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text
64+
* format. Needed when the customer wants CUD's end date is later than the start date + term
65+
* duration.
66+
* The value may be {@code null}.
67+
*/
68+
@com.google.api.client.util.Key
69+
private java.lang.String customEndTimestamp;
70+
6271
/**
6372
* An optional description of this resource. Provide this property when you create the resource.
6473
* The value may be {@code null}.
@@ -275,6 +284,27 @@ public Commitment setCreationTimestamp(java.lang.String creationTimestamp) {
275284
return this;
276285
}
277286

287+
/**
288+
* [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text
289+
* format. Needed when the customer wants CUD's end date is later than the start date + term
290+
* duration.
291+
* @return value or {@code null} for none
292+
*/
293+
public java.lang.String getCustomEndTimestamp() {
294+
return customEndTimestamp;
295+
}
296+
297+
/**
298+
* [Input Only] Optional, specifies the CUD end time requested by the customer in RFC3339 text
299+
* format. Needed when the customer wants CUD's end date is later than the start date + term
300+
* duration.
301+
* @param customEndTimestamp customEndTimestamp or {@code null} for none
302+
*/
303+
public Commitment setCustomEndTimestamp(java.lang.String customEndTimestamp) {
304+
this.customEndTimestamp = customEndTimestamp;
305+
return this;
306+
}
307+
278308
/**
279309
* An optional description of this resource. Provide this property when you create the resource.
280310
* @return value or {@code null} for none

0 commit comments

Comments
 (0)