Skip to content

Commit db160df

Browse files
1 parent d393303 commit db160df

File tree

7 files changed

+288
-6
lines changed

7 files changed

+288
-6
lines changed

clients/google-api-services-clouddeploy/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-clouddeploy</artifactId>
25-
<version>v1-rev20241002-2.0.0</version>
25+
<version>v1-rev20241010-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-clouddeploy:v1-rev20241002-2.0.0'
38+
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241010-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
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.clouddeploy.v1.model;
18+
19+
/**
20+
* Information about entities associated with a `Target`.
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 Cloud Deploy 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 AssociatedEntities extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Information specifying Anthos clusters as associated entities.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.util.List<AnthosCluster> anthosClusters;
38+
39+
static {
40+
// hack to force ProGuard to consider AnthosCluster used, since otherwise it would be stripped out
41+
// see https://github.com/google/google-api-java-client/issues/543
42+
com.google.api.client.util.Data.nullOf(AnthosCluster.class);
43+
}
44+
45+
/**
46+
* Optional. Information specifying GKE clusters as associated entities.
47+
* The value may be {@code null}.
48+
*/
49+
@com.google.api.client.util.Key
50+
private java.util.List<GkeCluster> gkeClusters;
51+
52+
/**
53+
* Optional. Information specifying Anthos clusters as associated entities.
54+
* @return value or {@code null} for none
55+
*/
56+
public java.util.List<AnthosCluster> getAnthosClusters() {
57+
return anthosClusters;
58+
}
59+
60+
/**
61+
* Optional. Information specifying Anthos clusters as associated entities.
62+
* @param anthosClusters anthosClusters or {@code null} for none
63+
*/
64+
public AssociatedEntities setAnthosClusters(java.util.List<AnthosCluster> anthosClusters) {
65+
this.anthosClusters = anthosClusters;
66+
return this;
67+
}
68+
69+
/**
70+
* Optional. Information specifying GKE clusters as associated entities.
71+
* @return value or {@code null} for none
72+
*/
73+
public java.util.List<GkeCluster> getGkeClusters() {
74+
return gkeClusters;
75+
}
76+
77+
/**
78+
* Optional. Information specifying GKE clusters as associated entities.
79+
* @param gkeClusters gkeClusters or {@code null} for none
80+
*/
81+
public AssociatedEntities setGkeClusters(java.util.List<GkeCluster> gkeClusters) {
82+
this.gkeClusters = gkeClusters;
83+
return this;
84+
}
85+
86+
@Override
87+
public AssociatedEntities set(String fieldName, Object value) {
88+
return (AssociatedEntities) super.set(fieldName, value);
89+
}
90+
91+
@Override
92+
public AssociatedEntities clone() {
93+
return (AssociatedEntities) super.clone();
94+
}
95+
96+
}

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/GatewayServiceMesh.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,16 @@ public final class GatewayServiceMesh extends com.google.api.client.json.Generic
5252
@com.google.api.client.util.Key
5353
private java.lang.String podSelectorLabel;
5454

55+
/**
56+
* Optional. Route destinations allow configuring the Gateway API HTTPRoute to be deployed to
57+
* additional clusters. This option is available for multi-cluster service mesh set ups that
58+
* require the route to exist in the clusters that call the service. If unspecified, the HTTPRoute
59+
* will only be deployed to the Target cluster.
60+
* The value may be {@code null}.
61+
*/
62+
@com.google.api.client.util.Key
63+
private RouteDestinations routeDestinations;
64+
5565
/**
5666
* Optional. The time to wait for route updates to propagate. The maximum configurable time is 3
5767
* hours, in seconds format. If unspecified, there is no wait time.
@@ -131,6 +141,29 @@ public GatewayServiceMesh setPodSelectorLabel(java.lang.String podSelectorLabel)
131141
return this;
132142
}
133143

144+
/**
145+
* Optional. Route destinations allow configuring the Gateway API HTTPRoute to be deployed to
146+
* additional clusters. This option is available for multi-cluster service mesh set ups that
147+
* require the route to exist in the clusters that call the service. If unspecified, the HTTPRoute
148+
* will only be deployed to the Target cluster.
149+
* @return value or {@code null} for none
150+
*/
151+
public RouteDestinations getRouteDestinations() {
152+
return routeDestinations;
153+
}
154+
155+
/**
156+
* Optional. Route destinations allow configuring the Gateway API HTTPRoute to be deployed to
157+
* additional clusters. This option is available for multi-cluster service mesh set ups that
158+
* require the route to exist in the clusters that call the service. If unspecified, the HTTPRoute
159+
* will only be deployed to the Target cluster.
160+
* @param routeDestinations routeDestinations or {@code null} for none
161+
*/
162+
public GatewayServiceMesh setRouteDestinations(RouteDestinations routeDestinations) {
163+
this.routeDestinations = routeDestinations;
164+
return this;
165+
}
166+
134167
/**
135168
* Optional. The time to wait for route updates to propagate. The maximum configurable time is 3
136169
* hours, in seconds format. If unspecified, there is no wait time.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
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.clouddeploy.v1.model;
18+
19+
/**
20+
* Information about route destinations for the Gateway API service mesh.
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 Cloud Deploy 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 RouteDestinations extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid
34+
* entries include the associated entities IDs configured in the Target resource and "@self" to
35+
* include the Target cluster.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.util.List<java.lang.String> destinationIds;
40+
41+
/**
42+
* Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The
43+
* Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option
44+
* may be used to facilitiate successful DNS lookup in the route destination clusters. Can only be
45+
* set to true if destinations are specified.
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.lang.Boolean propagateService;
50+
51+
/**
52+
* Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid
53+
* entries include the associated entities IDs configured in the Target resource and "@self" to
54+
* include the Target cluster.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.util.List<java.lang.String> getDestinationIds() {
58+
return destinationIds;
59+
}
60+
61+
/**
62+
* Required. The clusters where the Gateway API HTTPRoute resource will be deployed to. Valid
63+
* entries include the associated entities IDs configured in the Target resource and "@self" to
64+
* include the Target cluster.
65+
* @param destinationIds destinationIds or {@code null} for none
66+
*/
67+
public RouteDestinations setDestinationIds(java.util.List<java.lang.String> destinationIds) {
68+
this.destinationIds = destinationIds;
69+
return this;
70+
}
71+
72+
/**
73+
* Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The
74+
* Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option
75+
* may be used to facilitiate successful DNS lookup in the route destination clusters. Can only be
76+
* set to true if destinations are specified.
77+
* @return value or {@code null} for none
78+
*/
79+
public java.lang.Boolean getPropagateService() {
80+
return propagateService;
81+
}
82+
83+
/**
84+
* Optional. Whether to propagate the Kubernetes Service to the route destination clusters. The
85+
* Service will always be deployed to the Target cluster even if the HTTPRoute is not. This option
86+
* may be used to facilitiate successful DNS lookup in the route destination clusters. Can only be
87+
* set to true if destinations are specified.
88+
* @param propagateService propagateService or {@code null} for none
89+
*/
90+
public RouteDestinations setPropagateService(java.lang.Boolean propagateService) {
91+
this.propagateService = propagateService;
92+
return this;
93+
}
94+
95+
@Override
96+
public RouteDestinations set(String fieldName, Object value) {
97+
return (RouteDestinations) super.set(fieldName, value);
98+
}
99+
100+
@Override
101+
public RouteDestinations clone() {
102+
return (RouteDestinations) super.clone();
103+
}
104+
105+
}

clients/google-api-services-clouddeploy/v1/2.0.0/com/google/api/services/clouddeploy/v1/model/Target.java

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,25 @@ public final class Target extends com.google.api.client.json.GenericJson {
4646
@com.google.api.client.util.Key
4747
private AnthosCluster anthosCluster;
4848

49+
/**
50+
* Optional. Map of entity IDs to their associated entities. Associated entities allows specifying
51+
* places other than the deployment target for specific features. For example, the Gateway API
52+
* canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment
53+
* cluster using associated entities. An entity ID must consist of lower-case letters, numbers,
54+
* and hyphens, start with a letter and end with a letter or a number, and have a max length of 63
55+
* characters. In other words, it must match the following regex:
56+
* `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.util.Map<String, AssociatedEntities> associatedEntities;
61+
62+
static {
63+
// hack to force ProGuard to consider AssociatedEntities used, since otherwise it would be stripped out
64+
// see https://github.com/google/google-api-java-client/issues/543
65+
com.google.api.client.util.Data.nullOf(AssociatedEntities.class);
66+
}
67+
4968
/**
5069
* Output only. Time at which the `Target` was created.
5170
* The value may be {@code null}.
@@ -208,6 +227,35 @@ public Target setAnthosCluster(AnthosCluster anthosCluster) {
208227
return this;
209228
}
210229

230+
/**
231+
* Optional. Map of entity IDs to their associated entities. Associated entities allows specifying
232+
* places other than the deployment target for specific features. For example, the Gateway API
233+
* canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment
234+
* cluster using associated entities. An entity ID must consist of lower-case letters, numbers,
235+
* and hyphens, start with a letter and end with a letter or a number, and have a max length of 63
236+
* characters. In other words, it must match the following regex:
237+
* `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
238+
* @return value or {@code null} for none
239+
*/
240+
public java.util.Map<String, AssociatedEntities> getAssociatedEntities() {
241+
return associatedEntities;
242+
}
243+
244+
/**
245+
* Optional. Map of entity IDs to their associated entities. Associated entities allows specifying
246+
* places other than the deployment target for specific features. For example, the Gateway API
247+
* canary can be configured to deploy the HTTPRoute to a different cluster(s) than the deployment
248+
* cluster using associated entities. An entity ID must consist of lower-case letters, numbers,
249+
* and hyphens, start with a letter and end with a letter or a number, and have a max length of 63
250+
* characters. In other words, it must match the following regex:
251+
* `^[a-z]([a-z0-9-]{0,61}[a-z0-9])?$`.
252+
* @param associatedEntities associatedEntities or {@code null} for none
253+
*/
254+
public Target setAssociatedEntities(java.util.Map<String, AssociatedEntities> associatedEntities) {
255+
this.associatedEntities = associatedEntities;
256+
return this;
257+
}
258+
211259
/**
212260
* Output only. Time at which the `Target` was created.
213261
* @return value or {@code null} for none

clients/google-api-services-clouddeploy/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-clouddeploy</artifactId>
11-
<version>v1-rev20241002-2.0.0</version>
12-
<name>Cloud Deploy API v1-rev20241002-2.0.0</name>
11+
<version>v1-rev20241010-2.0.0</version>
12+
<name>Cloud Deploy API v1-rev20241010-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-clouddeploy/v1/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-clouddeploy</artifactId>
25-
<version>v1-rev20241002-2.0.0</version>
25+
<version>v1-rev20241010-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-clouddeploy:v1-rev20241002-2.0.0'
38+
implementation 'com.google.apis:google-api-services-clouddeploy:v1-rev20241010-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)