Skip to content

Commit deeff22

Browse files
1 parent a2575e8 commit deeff22

File tree

9 files changed

+283
-33
lines changed

9 files changed

+283
-33
lines changed

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

clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ConsumerPscConfig.java

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,20 @@ public final class ConsumerPscConfig extends com.google.api.client.json.GenericJ
5858
private java.lang.String network;
5959

6060
/**
61-
* Immutable. An immutable identifier for the producer instance.
61+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
62+
* producer instance.
6263
* The value may be {@code null}.
6364
*/
6465
@com.google.api.client.util.Key
6566
private java.lang.String producerInstanceId;
6667

68+
/**
69+
* Immutable. An immutable map for the producer instance metadata.
70+
* The value may be {@code null}.
71+
*/
72+
@com.google.api.client.util.Key
73+
private java.util.Map<String, java.lang.String> producerInstanceMetadata;
74+
6775
/**
6876
* The consumer project where PSC connections are allowed to be created in.
6977
* The value may be {@code null}.
@@ -150,22 +158,41 @@ public ConsumerPscConfig setNetwork(java.lang.String network) {
150158
}
151159

152160
/**
153-
* Immutable. An immutable identifier for the producer instance.
161+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
162+
* producer instance.
154163
* @return value or {@code null} for none
155164
*/
156165
public java.lang.String getProducerInstanceId() {
157166
return producerInstanceId;
158167
}
159168

160169
/**
161-
* Immutable. An immutable identifier for the producer instance.
170+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
171+
* producer instance.
162172
* @param producerInstanceId producerInstanceId or {@code null} for none
163173
*/
164174
public ConsumerPscConfig setProducerInstanceId(java.lang.String producerInstanceId) {
165175
this.producerInstanceId = producerInstanceId;
166176
return this;
167177
}
168178

179+
/**
180+
* Immutable. An immutable map for the producer instance metadata.
181+
* @return value or {@code null} for none
182+
*/
183+
public java.util.Map<String, java.lang.String> getProducerInstanceMetadata() {
184+
return producerInstanceMetadata;
185+
}
186+
187+
/**
188+
* Immutable. An immutable map for the producer instance metadata.
189+
* @param producerInstanceMetadata producerInstanceMetadata or {@code null} for none
190+
*/
191+
public ConsumerPscConfig setProducerInstanceMetadata(java.util.Map<String, java.lang.String> producerInstanceMetadata) {
192+
this.producerInstanceMetadata = producerInstanceMetadata;
193+
return this;
194+
}
195+
169196
/**
170197
* The consumer project where PSC connections are allowed to be created in.
171198
* @return value or {@code null} for none

clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/ConsumerPscConnection.java

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,20 @@ public final class ConsumerPscConnection extends com.google.api.client.json.Gene
8484
private java.lang.String network;
8585

8686
/**
87-
* Immutable. An immutable identifier for the producer instance.
87+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
88+
* producer instance.
8889
* The value may be {@code null}.
8990
*/
9091
@com.google.api.client.util.Key
9192
private java.lang.String producerInstanceId;
9293

94+
/**
95+
* Immutable. An immutable map for the producer instance metadata.
96+
* The value may be {@code null}.
97+
*/
98+
@com.google.api.client.util.Key
99+
private java.util.Map<String, java.lang.String> producerInstanceMetadata;
100+
93101
/**
94102
* The consumer project whose PSC forwarding rule is connected to the service attachments in this
95103
* service connection map.
@@ -256,22 +264,41 @@ public ConsumerPscConnection setNetwork(java.lang.String network) {
256264
}
257265

258266
/**
259-
* Immutable. An immutable identifier for the producer instance.
267+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
268+
* producer instance.
260269
* @return value or {@code null} for none
261270
*/
262271
public java.lang.String getProducerInstanceId() {
263272
return producerInstanceId;
264273
}
265274

266275
/**
267-
* Immutable. An immutable identifier for the producer instance.
276+
* Immutable. Deprecated. Use producer_instance_metadata instead. An immutable identifier for the
277+
* producer instance.
268278
* @param producerInstanceId producerInstanceId or {@code null} for none
269279
*/
270280
public ConsumerPscConnection setProducerInstanceId(java.lang.String producerInstanceId) {
271281
this.producerInstanceId = producerInstanceId;
272282
return this;
273283
}
274284

285+
/**
286+
* Immutable. An immutable map for the producer instance metadata.
287+
* @return value or {@code null} for none
288+
*/
289+
public java.util.Map<String, java.lang.String> getProducerInstanceMetadata() {
290+
return producerInstanceMetadata;
291+
}
292+
293+
/**
294+
* Immutable. An immutable map for the producer instance metadata.
295+
* @param producerInstanceMetadata producerInstanceMetadata or {@code null} for none
296+
*/
297+
public ConsumerPscConnection setProducerInstanceMetadata(java.util.Map<String, java.lang.String> producerInstanceMetadata) {
298+
this.producerInstanceMetadata = producerInstanceMetadata;
299+
return this;
300+
}
301+
275302
/**
276303
* The consumer project whose PSC forwarding rule is connected to the service attachments in this
277304
* service connection map.

clients/google-api-services-networkconnectivity/v1/2.0.0/com/google/api/services/networkconnectivity/v1/model/InternalRange.java

Lines changed: 45 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,9 @@ public final class InternalRange extends com.google.api.client.json.GenericJson
4747
private java.lang.String description;
4848

4949
/**
50-
* The IP range that this internal range defines.
50+
* The IP range that this internal range defines. NOTE: IPv6 ranges are limited to
51+
* usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory,
52+
* i.e. the address range must be specified explicitly.
5153
* The value may be {@code null}.
5254
*/
5355
@com.google.api.client.util.Key
@@ -60,6 +62,13 @@ public final class InternalRange extends com.google.api.client.json.GenericJson
6062
@com.google.api.client.util.Key
6163
private java.util.Map<String, java.lang.String> labels;
6264

65+
/**
66+
* Optional. Should be present if usage is set to FOR_MIGRATION.
67+
* The value may be {@code null}.
68+
*/
69+
@com.google.api.client.util.Key
70+
private Migration migration;
71+
6372
/**
6473
* Immutable. The name of an internal range. Format:
6574
* projects/{project}/locations/{location}/internalRanges/{internal_range} See:
@@ -95,10 +104,12 @@ public final class InternalRange extends com.google.api.client.json.GenericJson
95104
private java.lang.String peering;
96105

97106
/**
98-
* An alternate to ip_cidr_range. Can be set when trying to create a reservation that
107+
* An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that
99108
* automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are
100109
* set, there is an error if the range sizes do not match. Can also be used during updates to
101-
* change the range size.
110+
* change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well,
111+
* and both fields must match. In other words, with IPv6 this field only works as a redundant
112+
* parameter.
102113
* The value may be {@code null}.
103114
*/
104115
@com.google.api.client.util.Key
@@ -174,15 +185,19 @@ public InternalRange setDescription(java.lang.String description) {
174185
}
175186

176187
/**
177-
* The IP range that this internal range defines.
188+
* The IP range that this internal range defines. NOTE: IPv6 ranges are limited to
189+
* usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory,
190+
* i.e. the address range must be specified explicitly.
178191
* @return value or {@code null} for none
179192
*/
180193
public java.lang.String getIpCidrRange() {
181194
return ipCidrRange;
182195
}
183196

184197
/**
185-
* The IP range that this internal range defines.
198+
* The IP range that this internal range defines. NOTE: IPv6 ranges are limited to
199+
* usage=EXTERNAL_TO_VPC and peering=FOR_SELF. NOTE: For IPv6 Ranges this field is compulsory,
200+
* i.e. the address range must be specified explicitly.
186201
* @param ipCidrRange ipCidrRange or {@code null} for none
187202
*/
188203
public InternalRange setIpCidrRange(java.lang.String ipCidrRange) {
@@ -207,6 +222,23 @@ public InternalRange setLabels(java.util.Map<String, java.lang.String> labels) {
207222
return this;
208223
}
209224

225+
/**
226+
* Optional. Should be present if usage is set to FOR_MIGRATION.
227+
* @return value or {@code null} for none
228+
*/
229+
public Migration getMigration() {
230+
return migration;
231+
}
232+
233+
/**
234+
* Optional. Should be present if usage is set to FOR_MIGRATION.
235+
* @param migration migration or {@code null} for none
236+
*/
237+
public InternalRange setMigration(Migration migration) {
238+
this.migration = migration;
239+
return this;
240+
}
241+
210242
/**
211243
* Immutable. The name of an internal range. Format:
212244
* projects/{project}/locations/{location}/internalRanges/{internal_range} See:
@@ -288,21 +320,25 @@ public InternalRange setPeering(java.lang.String peering) {
288320
}
289321

290322
/**
291-
* An alternate to ip_cidr_range. Can be set when trying to create a reservation that
323+
* An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that
292324
* automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are
293325
* set, there is an error if the range sizes do not match. Can also be used during updates to
294-
* change the range size.
326+
* change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well,
327+
* and both fields must match. In other words, with IPv6 this field only works as a redundant
328+
* parameter.
295329
* @return value or {@code null} for none
296330
*/
297331
public java.lang.Integer getPrefixLength() {
298332
return prefixLength;
299333
}
300334

301335
/**
302-
* An alternate to ip_cidr_range. Can be set when trying to create a reservation that
336+
* An alternate to ip_cidr_range. Can be set when trying to create an IPv4 reservation that
303337
* automatically finds a free range of the given size. If both ip_cidr_range and prefix_length are
304338
* set, there is an error if the range sizes do not match. Can also be used during updates to
305-
* change the range size.
339+
* change the range size. NOTE: For IPv6 this field only works if ip_cidr_range is set as well,
340+
* and both fields must match. In other words, with IPv6 this field only works as a redundant
341+
* parameter.
306342
* @param prefixLength prefixLength or {@code null} for none
307343
*/
308344
public InternalRange setPrefixLength(java.lang.Integer prefixLength) {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
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.networkconnectivity.v1.model;
18+
19+
/**
20+
* Specification for migration with source and target resource names.
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 Network Connectivity API. For a detailed explanation
24+
* 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 Migration extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Immutable. Resource path as an URI of the source resource, for example a subnet. The project
35+
* for the source resource should match the project for the InternalRange. An example:
36+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
37+
* The value may be {@code null}.
38+
*/
39+
@com.google.api.client.util.Key
40+
private java.lang.String source;
41+
42+
/**
43+
* Immutable. Resource path of the target resource. The target project can be different, as in the
44+
* cases when migrating to peer networks. The resource For example:
45+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
46+
* The value may be {@code null}.
47+
*/
48+
@com.google.api.client.util.Key
49+
private java.lang.String target;
50+
51+
/**
52+
* Immutable. Resource path as an URI of the source resource, for example a subnet. The project
53+
* for the source resource should match the project for the InternalRange. An example:
54+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getSource() {
58+
return source;
59+
}
60+
61+
/**
62+
* Immutable. Resource path as an URI of the source resource, for example a subnet. The project
63+
* for the source resource should match the project for the InternalRange. An example:
64+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
65+
* @param source source or {@code null} for none
66+
*/
67+
public Migration setSource(java.lang.String source) {
68+
this.source = source;
69+
return this;
70+
}
71+
72+
/**
73+
* Immutable. Resource path of the target resource. The target project can be different, as in the
74+
* cases when migrating to peer networks. The resource For example:
75+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
76+
* @return value or {@code null} for none
77+
*/
78+
public java.lang.String getTarget() {
79+
return target;
80+
}
81+
82+
/**
83+
* Immutable. Resource path of the target resource. The target project can be different, as in the
84+
* cases when migrating to peer networks. The resource For example:
85+
* /projects/{project}/regions/{region}/subnetworks/{subnet}
86+
* @param target target or {@code null} for none
87+
*/
88+
public Migration setTarget(java.lang.String target) {
89+
this.target = target;
90+
return this;
91+
}
92+
93+
@Override
94+
public Migration set(String fieldName, Object value) {
95+
return (Migration) super.set(fieldName, value);
96+
}
97+
98+
@Override
99+
public Migration clone() {
100+
return (Migration) super.clone();
101+
}
102+
103+
}

0 commit comments

Comments
 (0)