Skip to content

Commit 4504b70

Browse files
1 parent 1ba0ee2 commit 4504b70

File tree

9 files changed

+436
-15
lines changed

9 files changed

+436
-15
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-rev20250910-2.0.0</version>
25+
<version>v1-rev20250925-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-rev20250910-2.0.0'
38+
implementation 'com.google.apis:google-api-services-networkconnectivity:v1-rev20250925-2.0.0'
3939
}
4040
```
4141

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

Lines changed: 182 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,154 @@ public Locations locations() {
173173
*/
174174
public class Locations {
175175

176+
/**
177+
* CheckConsumerConfig validates the consumer network and project for potential PSC connection
178+
* creation. This method performs several checks, including: - Validating the existence and
179+
* permissions of the service class. - Ensuring the consumer network exists and is accessible. -
180+
* Verifying XPN relationships if applicable. - Checking for compatible IP versions between the
181+
* consumer network and the requested version. This method performs a dynamic IAM check for the
182+
* `networkconnectivity.serviceClasses.use` permission on the service class resource in the Prepare
183+
* phase.
184+
*
185+
* Create a request for the method "locations.checkConsumerConfig".
186+
*
187+
* This request holds the parameters needed by the networkconnectivity server. After setting any
188+
* optional parameters, call the {@link CheckConsumerConfig#execute()} method to invoke the remote
189+
* operation.
190+
*
191+
* @param location Required. The location resource path. Example: - projects/{project}/locations/{location}
192+
* @param content the {@link com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigRequest}
193+
* @return the request
194+
*/
195+
public CheckConsumerConfig checkConsumerConfig(java.lang.String location, com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigRequest content) throws java.io.IOException {
196+
CheckConsumerConfig result = new CheckConsumerConfig(location, content);
197+
initialize(result);
198+
return result;
199+
}
200+
201+
public class CheckConsumerConfig extends NetworkconnectivityRequest<com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigResponse> {
202+
203+
private static final String REST_PATH = "v1/{+location}:checkConsumerConfig";
204+
205+
private final java.util.regex.Pattern LOCATION_PATTERN =
206+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+$");
207+
208+
/**
209+
* CheckConsumerConfig validates the consumer network and project for potential PSC connection
210+
* creation. This method performs several checks, including: - Validating the existence and
211+
* permissions of the service class. - Ensuring the consumer network exists and is accessible. -
212+
* Verifying XPN relationships if applicable. - Checking for compatible IP versions between the
213+
* consumer network and the requested version. This method performs a dynamic IAM check for the
214+
* `networkconnectivity.serviceClasses.use` permission on the service class resource in the
215+
* Prepare phase.
216+
*
217+
* Create a request for the method "locations.checkConsumerConfig".
218+
*
219+
* This request holds the parameters needed by the the networkconnectivity server. After setting
220+
* any optional parameters, call the {@link CheckConsumerConfig#execute()} method to invoke the
221+
* remote operation. <p> {@link CheckConsumerConfig#initialize(com.google.api.client.googleapis.se
222+
* rvices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
223+
* after invoking the constructor. </p>
224+
*
225+
* @param location Required. The location resource path. Example: - projects/{project}/locations/{location}
226+
* @param content the {@link com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigRequest}
227+
* @since 1.13
228+
*/
229+
protected CheckConsumerConfig(java.lang.String location, com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigRequest content) {
230+
super(Networkconnectivity.this, "POST", REST_PATH, content, com.google.api.services.networkconnectivity.v1.model.CheckConsumerConfigResponse.class);
231+
this.location = com.google.api.client.util.Preconditions.checkNotNull(location, "Required parameter location must be specified.");
232+
if (!getSuppressPatternChecks()) {
233+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
234+
"Parameter location must conform to the pattern " +
235+
"^projects/[^/]+/locations/[^/]+$");
236+
}
237+
}
238+
239+
@Override
240+
public CheckConsumerConfig set$Xgafv(java.lang.String $Xgafv) {
241+
return (CheckConsumerConfig) super.set$Xgafv($Xgafv);
242+
}
243+
244+
@Override
245+
public CheckConsumerConfig setAccessToken(java.lang.String accessToken) {
246+
return (CheckConsumerConfig) super.setAccessToken(accessToken);
247+
}
248+
249+
@Override
250+
public CheckConsumerConfig setAlt(java.lang.String alt) {
251+
return (CheckConsumerConfig) super.setAlt(alt);
252+
}
253+
254+
@Override
255+
public CheckConsumerConfig setCallback(java.lang.String callback) {
256+
return (CheckConsumerConfig) super.setCallback(callback);
257+
}
258+
259+
@Override
260+
public CheckConsumerConfig setFields(java.lang.String fields) {
261+
return (CheckConsumerConfig) super.setFields(fields);
262+
}
263+
264+
@Override
265+
public CheckConsumerConfig setKey(java.lang.String key) {
266+
return (CheckConsumerConfig) super.setKey(key);
267+
}
268+
269+
@Override
270+
public CheckConsumerConfig setOauthToken(java.lang.String oauthToken) {
271+
return (CheckConsumerConfig) super.setOauthToken(oauthToken);
272+
}
273+
274+
@Override
275+
public CheckConsumerConfig setPrettyPrint(java.lang.Boolean prettyPrint) {
276+
return (CheckConsumerConfig) super.setPrettyPrint(prettyPrint);
277+
}
278+
279+
@Override
280+
public CheckConsumerConfig setQuotaUser(java.lang.String quotaUser) {
281+
return (CheckConsumerConfig) super.setQuotaUser(quotaUser);
282+
}
283+
284+
@Override
285+
public CheckConsumerConfig setUploadType(java.lang.String uploadType) {
286+
return (CheckConsumerConfig) super.setUploadType(uploadType);
287+
}
288+
289+
@Override
290+
public CheckConsumerConfig setUploadProtocol(java.lang.String uploadProtocol) {
291+
return (CheckConsumerConfig) super.setUploadProtocol(uploadProtocol);
292+
}
293+
294+
/**
295+
* Required. The location resource path. Example: - projects/{project}/locations/{location}
296+
*/
297+
@com.google.api.client.util.Key
298+
private java.lang.String location;
299+
300+
/** Required. The location resource path. Example: - projects/{project}/locations/{location}
301+
*/
302+
public java.lang.String getLocation() {
303+
return location;
304+
}
305+
306+
/**
307+
* Required. The location resource path. Example: - projects/{project}/locations/{location}
308+
*/
309+
public CheckConsumerConfig setLocation(java.lang.String location) {
310+
if (!getSuppressPatternChecks()) {
311+
com.google.api.client.util.Preconditions.checkArgument(LOCATION_PATTERN.matcher(location).matches(),
312+
"Parameter location must conform to the pattern " +
313+
"^projects/[^/]+/locations/[^/]+$");
314+
}
315+
this.location = location;
316+
return this;
317+
}
318+
319+
@Override
320+
public CheckConsumerConfig set(String parameterName, Object value) {
321+
return (CheckConsumerConfig) super.set(parameterName, value);
322+
}
323+
}
176324
/**
177325
* Gets information about a location.
178326
*
@@ -10516,6 +10664,40 @@ public List setPageToken(java.lang.String pageToken) {
1051610664
return this;
1051710665
}
1051810666

10667+
/**
10668+
* When set to `true`, operations that are reachable are returned as normal, and those
10669+
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
10670+
* This can only be `true` when reading across collections e.g. when `parent` is set to
10671+
* `"projects/example/locations/-"`. This field is not by default supported and will
10672+
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
10673+
* service or product specific documentation.
10674+
*/
10675+
@com.google.api.client.util.Key
10676+
private java.lang.Boolean returnPartialSuccess;
10677+
10678+
/** When set to `true`, operations that are reachable are returned as normal, and those that are
10679+
unreachable are returned in the [ListOperationsResponse.unreachable] field. This can only be `true`
10680+
when reading across collections e.g. when `parent` is set to `"projects/example/locations/-"`. This
10681+
field is not by default supported and will result in an `UNIMPLEMENTED` error if set unless
10682+
explicitly documented otherwise in service or product specific documentation.
10683+
*/
10684+
public java.lang.Boolean getReturnPartialSuccess() {
10685+
return returnPartialSuccess;
10686+
}
10687+
10688+
/**
10689+
* When set to `true`, operations that are reachable are returned as normal, and those
10690+
* that are unreachable are returned in the [ListOperationsResponse.unreachable] field.
10691+
* This can only be `true` when reading across collections e.g. when `parent` is set to
10692+
* `"projects/example/locations/-"`. This field is not by default supported and will
10693+
* result in an `UNIMPLEMENTED` error if set unless explicitly documented otherwise in
10694+
* service or product specific documentation.
10695+
*/
10696+
public List setReturnPartialSuccess(java.lang.Boolean returnPartialSuccess) {
10697+
this.returnPartialSuccess = returnPartialSuccess;
10698+
return this;
10699+
}
10700+
1051910701
@Override
1052010702
public List set(String parameterName, Object value) {
1052110703
return (List) super.set(parameterName, value);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
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+
* Request for CheckConsumerConfig.
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 CheckConsumerConfigRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Full resource name of the consumer network. Example: -
35+
* projects/{project}/global/networks/{network}.
36+
* The value may be {@code null}.
37+
*/
38+
@com.google.api.client.util.Key
39+
private java.lang.String consumerNetwork;
40+
41+
/**
42+
* The project number or ID where the PSC endpoint is to be created.
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.lang.String endpointProject;
47+
48+
/**
49+
* The requested IP Version
50+
* The value may be {@code null}.
51+
*/
52+
@com.google.api.client.util.Key
53+
private java.lang.String requestedIpVersion;
54+
55+
/**
56+
* Required. The service class identifier of the producer.
57+
* The value may be {@code null}.
58+
*/
59+
@com.google.api.client.util.Key
60+
private java.lang.String serviceClass;
61+
62+
/**
63+
* Required. Full resource name of the consumer network. Example: -
64+
* projects/{project}/global/networks/{network}.
65+
* @return value or {@code null} for none
66+
*/
67+
public java.lang.String getConsumerNetwork() {
68+
return consumerNetwork;
69+
}
70+
71+
/**
72+
* Required. Full resource name of the consumer network. Example: -
73+
* projects/{project}/global/networks/{network}.
74+
* @param consumerNetwork consumerNetwork or {@code null} for none
75+
*/
76+
public CheckConsumerConfigRequest setConsumerNetwork(java.lang.String consumerNetwork) {
77+
this.consumerNetwork = consumerNetwork;
78+
return this;
79+
}
80+
81+
/**
82+
* The project number or ID where the PSC endpoint is to be created.
83+
* @return value or {@code null} for none
84+
*/
85+
public java.lang.String getEndpointProject() {
86+
return endpointProject;
87+
}
88+
89+
/**
90+
* The project number or ID where the PSC endpoint is to be created.
91+
* @param endpointProject endpointProject or {@code null} for none
92+
*/
93+
public CheckConsumerConfigRequest setEndpointProject(java.lang.String endpointProject) {
94+
this.endpointProject = endpointProject;
95+
return this;
96+
}
97+
98+
/**
99+
* The requested IP Version
100+
* @return value or {@code null} for none
101+
*/
102+
public java.lang.String getRequestedIpVersion() {
103+
return requestedIpVersion;
104+
}
105+
106+
/**
107+
* The requested IP Version
108+
* @param requestedIpVersion requestedIpVersion or {@code null} for none
109+
*/
110+
public CheckConsumerConfigRequest setRequestedIpVersion(java.lang.String requestedIpVersion) {
111+
this.requestedIpVersion = requestedIpVersion;
112+
return this;
113+
}
114+
115+
/**
116+
* Required. The service class identifier of the producer.
117+
* @return value or {@code null} for none
118+
*/
119+
public java.lang.String getServiceClass() {
120+
return serviceClass;
121+
}
122+
123+
/**
124+
* Required. The service class identifier of the producer.
125+
* @param serviceClass serviceClass or {@code null} for none
126+
*/
127+
public CheckConsumerConfigRequest setServiceClass(java.lang.String serviceClass) {
128+
this.serviceClass = serviceClass;
129+
return this;
130+
}
131+
132+
@Override
133+
public CheckConsumerConfigRequest set(String fieldName, Object value) {
134+
return (CheckConsumerConfigRequest) super.set(fieldName, value);
135+
}
136+
137+
@Override
138+
public CheckConsumerConfigRequest clone() {
139+
return (CheckConsumerConfigRequest) super.clone();
140+
}
141+
142+
}

0 commit comments

Comments
 (0)