Skip to content

Commit e431e53

Browse files
1 parent e5736f8 commit e431e53

25 files changed

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

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

Lines changed: 54 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -161,14 +161,16 @@ public final class BackendService extends com.google.api.client.json.GenericJson
161161
private java.lang.Boolean enableCDN;
162162

163163
/**
164-
* Specifies the canary migration state. Possible values are PREPARE, TEST, and FINALIZE. To begin
165-
* the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The
166-
* state must be changed to FINALIZE before the loadBalancingScheme can be changed to
167-
* EXTERNAL_MANAGED. Optionally, the TEST state can be used to migrate traffic by percentage using
164+
* Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and
165+
* TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be
166+
* changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the
167+
* loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE
168+
* state can be used to migrate traffic by percentage using
168169
* externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be
169170
* set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the
170-
* state to be set to FINALIZE at the same time. Optionally, the TEST state can be used to migrate
171-
* some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.
171+
* state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state
172+
* can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all
173+
* traffic back to EXTERNAL.
172174
* The value may be {@code null}.
173175
*/
174176
@com.google.api.client.util.Key
@@ -178,8 +180,8 @@ public final class BackendService extends com.google.api.client.json.GenericJson
178180
* Determines the fraction of requests that should be processed by the Global external Application
179181
* Load Balancer. The value of this field must be in the range [0, 100]. Session affinity options
180182
* will slightly affect this routing behavior, for more details, see: Session Affinity. This value
181-
* is only used if the loadBalancingScheme in the BackendService is set to EXTERNAL when using the
182-
* classic Application Load Balancer.
183+
* can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using
184+
* the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE.
183185
* The value may be {@code null}.
184186
*/
185187
@com.google.api.client.util.Key
@@ -363,6 +365,13 @@ public final class BackendService extends com.google.api.client.json.GenericJson
363365
@com.google.api.client.util.Key
364366
private java.lang.String network;
365367

368+
/**
369+
* Configures traffic steering properties of internal passthrough Network Load Balancers.
370+
* The value may be {@code null}.
371+
*/
372+
@com.google.api.client.util.Key
373+
private BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy;
374+
366375
/**
367376
* Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool
368377
* of each individual proxy instance that processes the traffic for the given backend service. If
@@ -797,29 +806,33 @@ public BackendService setEnableCDN(java.lang.Boolean enableCDN) {
797806
}
798807

799808
/**
800-
* Specifies the canary migration state. Possible values are PREPARE, TEST, and FINALIZE. To begin
801-
* the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The
802-
* state must be changed to FINALIZE before the loadBalancingScheme can be changed to
803-
* EXTERNAL_MANAGED. Optionally, the TEST state can be used to migrate traffic by percentage using
809+
* Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and
810+
* TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be
811+
* changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the
812+
* loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE
813+
* state can be used to migrate traffic by percentage using
804814
* externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be
805815
* set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the
806-
* state to be set to FINALIZE at the same time. Optionally, the TEST state can be used to migrate
807-
* some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.
816+
* state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state
817+
* can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all
818+
* traffic back to EXTERNAL.
808819
* @return value or {@code null} for none
809820
*/
810821
public java.lang.String getExternalManagedMigrationState() {
811822
return externalManagedMigrationState;
812823
}
813824

814825
/**
815-
* Specifies the canary migration state. Possible values are PREPARE, TEST, and FINALIZE. To begin
816-
* the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be changed to PREPARE. The
817-
* state must be changed to FINALIZE before the loadBalancingScheme can be changed to
818-
* EXTERNAL_MANAGED. Optionally, the TEST state can be used to migrate traffic by percentage using
826+
* Specifies the canary migration state. Possible values are PREPARE, TEST_BY_PERCENTAGE, and
827+
* TEST_ALL_TRAFFIC. To begin the migration from EXTERNAL to EXTERNAL_MANAGED, the state must be
828+
* changed to PREPARE. The state must be changed to TEST_ALL_TRAFFIC before the
829+
* loadBalancingScheme can be changed to EXTERNAL_MANAGED. Optionally, the TEST_BY_PERCENTAGE
830+
* state can be used to migrate traffic by percentage using
819831
* externalManagedMigrationTestingPercentage. Rolling back a migration requires the states to be
820832
* set in reverse order. So changing the scheme from EXTERNAL_MANAGED to EXTERNAL requires the
821-
* state to be set to FINALIZE at the same time. Optionally, the TEST state can be used to migrate
822-
* some traffic back to EXTERNAL or PREPARE can be used to migrate all traffic back to EXTERNAL.
833+
* state to be set to TEST_ALL_TRAFFIC at the same time. Optionally, the TEST_BY_PERCENTAGE state
834+
* can be used to migrate some traffic back to EXTERNAL or PREPARE can be used to migrate all
835+
* traffic back to EXTERNAL.
823836
* @param externalManagedMigrationState externalManagedMigrationState or {@code null} for none
824837
*/
825838
public BackendService setExternalManagedMigrationState(java.lang.String externalManagedMigrationState) {
@@ -831,8 +844,8 @@ public BackendService setExternalManagedMigrationState(java.lang.String external
831844
* Determines the fraction of requests that should be processed by the Global external Application
832845
* Load Balancer. The value of this field must be in the range [0, 100]. Session affinity options
833846
* will slightly affect this routing behavior, for more details, see: Session Affinity. This value
834-
* is only used if the loadBalancingScheme in the BackendService is set to EXTERNAL when using the
835-
* classic Application Load Balancer.
847+
* can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using
848+
* the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE.
836849
* @return value or {@code null} for none
837850
*/
838851
public java.lang.Float getExternalManagedMigrationTestingPercentage() {
@@ -843,8 +856,8 @@ public java.lang.Float getExternalManagedMigrationTestingPercentage() {
843856
* Determines the fraction of requests that should be processed by the Global external Application
844857
* Load Balancer. The value of this field must be in the range [0, 100]. Session affinity options
845858
* will slightly affect this routing behavior, for more details, see: Session Affinity. This value
846-
* is only used if the loadBalancingScheme in the BackendService is set to EXTERNAL when using the
847-
* classic Application Load Balancer.
859+
* can only be set if the loadBalancingScheme in the BackendService is set to EXTERNAL (when using
860+
* the classic Application Load Balancer) and the migration state is TEST_BY_PERCENTAGE.
848861
* @param externalManagedMigrationTestingPercentage externalManagedMigrationTestingPercentage or {@code null} for none
849862
*/
850863
public BackendService setExternalManagedMigrationTestingPercentage(java.lang.Float externalManagedMigrationTestingPercentage) {
@@ -1292,6 +1305,23 @@ public BackendService setNetwork(java.lang.String network) {
12921305
return this;
12931306
}
12941307

1308+
/**
1309+
* Configures traffic steering properties of internal passthrough Network Load Balancers.
1310+
* @return value or {@code null} for none
1311+
*/
1312+
public BackendServiceNetworkPassThroughLbTrafficPolicy getNetworkPassThroughLbTrafficPolicy() {
1313+
return networkPassThroughLbTrafficPolicy;
1314+
}
1315+
1316+
/**
1317+
* Configures traffic steering properties of internal passthrough Network Load Balancers.
1318+
* @param networkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy or {@code null} for none
1319+
*/
1320+
public BackendService setNetworkPassThroughLbTrafficPolicy(BackendServiceNetworkPassThroughLbTrafficPolicy networkPassThroughLbTrafficPolicy) {
1321+
this.networkPassThroughLbTrafficPolicy = networkPassThroughLbTrafficPolicy;
1322+
return this;
1323+
}
1324+
12951325
/**
12961326
* Settings controlling the ejection of unhealthy backend endpoints from the load balancing pool
12971327
* of each individual proxy instance that processes the traffic for the given backend service. If
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
* Model definition for BackendServiceNetworkPassThroughLbTrafficPolicy.
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 BackendServiceNetworkPassThroughLbTrafficPolicy extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* When configured, new connections are load balanced across healthy backend endpoints in the
34+
* local zone.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity;
39+
40+
/**
41+
* When configured, new connections are load balanced across healthy backend endpoints in the
42+
* local zone.
43+
* @return value or {@code null} for none
44+
*/
45+
public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity getZonalAffinity() {
46+
return zonalAffinity;
47+
}
48+
49+
/**
50+
* When configured, new connections are load balanced across healthy backend endpoints in the
51+
* local zone.
52+
* @param zonalAffinity zonalAffinity or {@code null} for none
53+
*/
54+
public BackendServiceNetworkPassThroughLbTrafficPolicy setZonalAffinity(BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity zonalAffinity) {
55+
this.zonalAffinity = zonalAffinity;
56+
return this;
57+
}
58+
59+
@Override
60+
public BackendServiceNetworkPassThroughLbTrafficPolicy set(String fieldName, Object value) {
61+
return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.set(fieldName, value);
62+
}
63+
64+
@Override
65+
public BackendServiceNetworkPassThroughLbTrafficPolicy clone() {
66+
return (BackendServiceNetworkPassThroughLbTrafficPolicy) super.clone();
67+
}
68+
69+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
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+
* Model definition for BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity.
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 BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* This field indicates whether zonal affinity is enabled or not. The possible values are: -
34+
* ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer
35+
* distributes new connections to all healthy backend endpoints across all zones. -
36+
* ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new
37+
* connections to all healthy backend endpoints in the local zone only. If there are no healthy
38+
* backend endpoints in the local zone, the load balancer distributes new connections to all
39+
* backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is
40+
* enabled. The load balancer distributes new connections to all healthy backend endpoints in the
41+
* local zone only. If there aren't enough healthy backend endpoints in the local zone, the load
42+
* balancer distributes new connections to all healthy backend endpoints across all zones.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String spillover;
47+
48+
/**
49+
* The value of the field must be in [0, 1]. When the ratio of the count of healthy backend
50+
* endpoints in a zone to the count of backend endpoints in that same zone is equal to or above
51+
* this threshold, the load balancer distributes new connections to all healthy endpoints in the
52+
* local zone only. When the ratio of the count of healthy backend endpoints in a zone to the
53+
* count of backend endpoints in that same zone is below this threshold, the load balancer
54+
* distributes all new connections to all healthy endpoints across all zones.
55+
* The value may be {@code null}.
56+
*/
57+
@com.google.api.client.util.Key
58+
private java.lang.Float spilloverRatio;
59+
60+
/**
61+
* This field indicates whether zonal affinity is enabled or not. The possible values are: -
62+
* ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer
63+
* distributes new connections to all healthy backend endpoints across all zones. -
64+
* ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new
65+
* connections to all healthy backend endpoints in the local zone only. If there are no healthy
66+
* backend endpoints in the local zone, the load balancer distributes new connections to all
67+
* backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is
68+
* enabled. The load balancer distributes new connections to all healthy backend endpoints in the
69+
* local zone only. If there aren't enough healthy backend endpoints in the local zone, the load
70+
* balancer distributes new connections to all healthy backend endpoints across all zones.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.lang.String getSpillover() {
74+
return spillover;
75+
}
76+
77+
/**
78+
* This field indicates whether zonal affinity is enabled or not. The possible values are: -
79+
* ZONAL_AFFINITY_DISABLED: Default Value. Zonal Affinity is disabled. The load balancer
80+
* distributes new connections to all healthy backend endpoints across all zones. -
81+
* ZONAL_AFFINITY_STAY_WITHIN_ZONE: Zonal Affinity is enabled. The load balancer distributes new
82+
* connections to all healthy backend endpoints in the local zone only. If there are no healthy
83+
* backend endpoints in the local zone, the load balancer distributes new connections to all
84+
* backend endpoints in the local zone. - ZONAL_AFFINITY_SPILL_CROSS_ZONE: Zonal Affinity is
85+
* enabled. The load balancer distributes new connections to all healthy backend endpoints in the
86+
* local zone only. If there aren't enough healthy backend endpoints in the local zone, the load
87+
* balancer distributes new connections to all healthy backend endpoints across all zones.
88+
* @param spillover spillover or {@code null} for none
89+
*/
90+
public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpillover(java.lang.String spillover) {
91+
this.spillover = spillover;
92+
return this;
93+
}
94+
95+
/**
96+
* The value of the field must be in [0, 1]. When the ratio of the count of healthy backend
97+
* endpoints in a zone to the count of backend endpoints in that same zone is equal to or above
98+
* this threshold, the load balancer distributes new connections to all healthy endpoints in the
99+
* local zone only. When the ratio of the count of healthy backend endpoints in a zone to the
100+
* count of backend endpoints in that same zone is below this threshold, the load balancer
101+
* distributes all new connections to all healthy endpoints across all zones.
102+
* @return value or {@code null} for none
103+
*/
104+
public java.lang.Float getSpilloverRatio() {
105+
return spilloverRatio;
106+
}
107+
108+
/**
109+
* The value of the field must be in [0, 1]. When the ratio of the count of healthy backend
110+
* endpoints in a zone to the count of backend endpoints in that same zone is equal to or above
111+
* this threshold, the load balancer distributes new connections to all healthy endpoints in the
112+
* local zone only. When the ratio of the count of healthy backend endpoints in a zone to the
113+
* count of backend endpoints in that same zone is below this threshold, the load balancer
114+
* distributes all new connections to all healthy endpoints across all zones.
115+
* @param spilloverRatio spilloverRatio or {@code null} for none
116+
*/
117+
public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity setSpilloverRatio(java.lang.Float spilloverRatio) {
118+
this.spilloverRatio = spilloverRatio;
119+
return this;
120+
}
121+
122+
@Override
123+
public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity set(String fieldName, Object value) {
124+
return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.set(fieldName, value);
125+
}
126+
127+
@Override
128+
public BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity clone() {
129+
return (BackendServiceNetworkPassThroughLbTrafficPolicyZonalAffinity) super.clone();
130+
}
131+
132+
}

0 commit comments

Comments
 (0)