Skip to content

Commit 8f2b265

Browse files
1 parent da979e7 commit 8f2b265

File tree

8 files changed

+612
-9
lines changed

8 files changed

+612
-9
lines changed

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

clients/google-api-services-iamcredentials/v1/2.0.0/com/google/api/services/iamcredentials/v1/IAMCredentials.java

Lines changed: 367 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,190 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog
133133
super.initialize(httpClientRequest);
134134
}
135135

136+
/**
137+
* An accessor for creating requests from the Locations collection.
138+
*
139+
* <p>The typical use is:</p>
140+
* <pre>
141+
* {@code IAMCredentials iamcredentials = new IAMCredentials(...);}
142+
* {@code IAMCredentials.Locations.List request = iamcredentials.locations().list(parameters ...)}
143+
* </pre>
144+
*
145+
* @return the resource collection
146+
*/
147+
public Locations locations() {
148+
return new Locations();
149+
}
150+
151+
/**
152+
* The "locations" collection of methods.
153+
*/
154+
public class Locations {
155+
156+
/**
157+
* An accessor for creating requests from the WorkforcePools collection.
158+
*
159+
* <p>The typical use is:</p>
160+
* <pre>
161+
* {@code IAMCredentials iamcredentials = new IAMCredentials(...);}
162+
* {@code IAMCredentials.WorkforcePools.List request = iamcredentials.workforcePools().list(parameters ...)}
163+
* </pre>
164+
*
165+
* @return the resource collection
166+
*/
167+
public WorkforcePools workforcePools() {
168+
return new WorkforcePools();
169+
}
170+
171+
/**
172+
* The "workforcePools" collection of methods.
173+
*/
174+
public class WorkforcePools {
175+
176+
/**
177+
* Returns the trust boundary info for a given workforce pool.
178+
*
179+
* Create a request for the method "workforcePools.getAllowedLocations".
180+
*
181+
* This request holds the parameters needed by the iamcredentials server. After setting any
182+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
183+
* operation.
184+
*
185+
* @param name Required. Resource name of workforce pool.
186+
* @return the request
187+
*/
188+
public GetAllowedLocations getAllowedLocations(java.lang.String name) throws java.io.IOException {
189+
GetAllowedLocations result = new GetAllowedLocations(name);
190+
initialize(result);
191+
return result;
192+
}
193+
194+
public class GetAllowedLocations extends IAMCredentialsRequest<com.google.api.services.iamcredentials.v1.model.WorkforcePoolAllowedLocations> {
195+
196+
private static final String REST_PATH = "v1/{+name}/allowedLocations";
197+
198+
private final java.util.regex.Pattern NAME_PATTERN =
199+
java.util.regex.Pattern.compile("^locations/[^/]+/workforcePools/[^/]+$");
200+
201+
/**
202+
* Returns the trust boundary info for a given workforce pool.
203+
*
204+
* Create a request for the method "workforcePools.getAllowedLocations".
205+
*
206+
* This request holds the parameters needed by the the iamcredentials server. After setting any
207+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
208+
* operation. <p> {@link GetAllowedLocations#initialize(com.google.api.client.googleapis.services.
209+
* AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
210+
* invoking the constructor. </p>
211+
*
212+
* @param name Required. Resource name of workforce pool.
213+
* @since 1.13
214+
*/
215+
protected GetAllowedLocations(java.lang.String name) {
216+
super(IAMCredentials.this, "GET", REST_PATH, null, com.google.api.services.iamcredentials.v1.model.WorkforcePoolAllowedLocations.class);
217+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
218+
if (!getSuppressPatternChecks()) {
219+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
220+
"Parameter name must conform to the pattern " +
221+
"^locations/[^/]+/workforcePools/[^/]+$");
222+
}
223+
}
224+
225+
@Override
226+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
227+
return super.executeUsingHead();
228+
}
229+
230+
@Override
231+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
232+
return super.buildHttpRequestUsingHead();
233+
}
234+
235+
@Override
236+
public GetAllowedLocations set$Xgafv(java.lang.String $Xgafv) {
237+
return (GetAllowedLocations) super.set$Xgafv($Xgafv);
238+
}
239+
240+
@Override
241+
public GetAllowedLocations setAccessToken(java.lang.String accessToken) {
242+
return (GetAllowedLocations) super.setAccessToken(accessToken);
243+
}
244+
245+
@Override
246+
public GetAllowedLocations setAlt(java.lang.String alt) {
247+
return (GetAllowedLocations) super.setAlt(alt);
248+
}
249+
250+
@Override
251+
public GetAllowedLocations setCallback(java.lang.String callback) {
252+
return (GetAllowedLocations) super.setCallback(callback);
253+
}
254+
255+
@Override
256+
public GetAllowedLocations setFields(java.lang.String fields) {
257+
return (GetAllowedLocations) super.setFields(fields);
258+
}
259+
260+
@Override
261+
public GetAllowedLocations setKey(java.lang.String key) {
262+
return (GetAllowedLocations) super.setKey(key);
263+
}
264+
265+
@Override
266+
public GetAllowedLocations setOauthToken(java.lang.String oauthToken) {
267+
return (GetAllowedLocations) super.setOauthToken(oauthToken);
268+
}
269+
270+
@Override
271+
public GetAllowedLocations setPrettyPrint(java.lang.Boolean prettyPrint) {
272+
return (GetAllowedLocations) super.setPrettyPrint(prettyPrint);
273+
}
274+
275+
@Override
276+
public GetAllowedLocations setQuotaUser(java.lang.String quotaUser) {
277+
return (GetAllowedLocations) super.setQuotaUser(quotaUser);
278+
}
279+
280+
@Override
281+
public GetAllowedLocations setUploadType(java.lang.String uploadType) {
282+
return (GetAllowedLocations) super.setUploadType(uploadType);
283+
}
284+
285+
@Override
286+
public GetAllowedLocations setUploadProtocol(java.lang.String uploadProtocol) {
287+
return (GetAllowedLocations) super.setUploadProtocol(uploadProtocol);
288+
}
289+
290+
/** Required. Resource name of workforce pool. */
291+
@com.google.api.client.util.Key
292+
private java.lang.String name;
293+
294+
/** Required. Resource name of workforce pool.
295+
*/
296+
public java.lang.String getName() {
297+
return name;
298+
}
299+
300+
/** Required. Resource name of workforce pool. */
301+
public GetAllowedLocations setName(java.lang.String name) {
302+
if (!getSuppressPatternChecks()) {
303+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
304+
"Parameter name must conform to the pattern " +
305+
"^locations/[^/]+/workforcePools/[^/]+$");
306+
}
307+
this.name = name;
308+
return this;
309+
}
310+
311+
@Override
312+
public GetAllowedLocations set(String parameterName, Object value) {
313+
return (GetAllowedLocations) super.set(parameterName, value);
314+
}
315+
}
316+
317+
}
318+
}
319+
136320
/**
137321
* An accessor for creating requests from the Projects collection.
138322
*
@@ -153,6 +337,189 @@ public Projects projects() {
153337
*/
154338
public class Projects {
155339

340+
/**
341+
* An accessor for creating requests from the Locations collection.
342+
*
343+
* <p>The typical use is:</p>
344+
* <pre>
345+
* {@code IAMCredentials iamcredentials = new IAMCredentials(...);}
346+
* {@code IAMCredentials.Locations.List request = iamcredentials.locations().list(parameters ...)}
347+
* </pre>
348+
*
349+
* @return the resource collection
350+
*/
351+
public Locations locations() {
352+
return new Locations();
353+
}
354+
355+
/**
356+
* The "locations" collection of methods.
357+
*/
358+
public class Locations {
359+
360+
/**
361+
* An accessor for creating requests from the WorkloadIdentityPools collection.
362+
*
363+
* <p>The typical use is:</p>
364+
* <pre>
365+
* {@code IAMCredentials iamcredentials = new IAMCredentials(...);}
366+
* {@code IAMCredentials.WorkloadIdentityPools.List request = iamcredentials.workloadIdentityPools().list(parameters ...)}
367+
* </pre>
368+
*
369+
* @return the resource collection
370+
*/
371+
public WorkloadIdentityPools workloadIdentityPools() {
372+
return new WorkloadIdentityPools();
373+
}
374+
375+
/**
376+
* The "workloadIdentityPools" collection of methods.
377+
*/
378+
public class WorkloadIdentityPools {
379+
380+
/**
381+
* Returns the trust boundary info for a given workload identity pool.
382+
*
383+
* Create a request for the method "workloadIdentityPools.getAllowedLocations".
384+
*
385+
* This request holds the parameters needed by the iamcredentials server. After setting any
386+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
387+
* operation.
388+
*
389+
* @param name Required. Resource name of workload identity pool.
390+
* @return the request
391+
*/
392+
public GetAllowedLocations getAllowedLocations(java.lang.String name) throws java.io.IOException {
393+
GetAllowedLocations result = new GetAllowedLocations(name);
394+
initialize(result);
395+
return result;
396+
}
397+
398+
public class GetAllowedLocations extends IAMCredentialsRequest<com.google.api.services.iamcredentials.v1.model.WorkloadIdentityPoolAllowedLocations> {
399+
400+
private static final String REST_PATH = "v1/{+name}/allowedLocations";
401+
402+
private final java.util.regex.Pattern NAME_PATTERN =
403+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$");
404+
405+
/**
406+
* Returns the trust boundary info for a given workload identity pool.
407+
*
408+
* Create a request for the method "workloadIdentityPools.getAllowedLocations".
409+
*
410+
* This request holds the parameters needed by the the iamcredentials server. After setting any
411+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
412+
* operation. <p> {@link GetAllowedLocations#initialize(com.google.api.client.googleapis.services.
413+
* AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
414+
* invoking the constructor. </p>
415+
*
416+
* @param name Required. Resource name of workload identity pool.
417+
* @since 1.13
418+
*/
419+
protected GetAllowedLocations(java.lang.String name) {
420+
super(IAMCredentials.this, "GET", REST_PATH, null, com.google.api.services.iamcredentials.v1.model.WorkloadIdentityPoolAllowedLocations.class);
421+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
422+
if (!getSuppressPatternChecks()) {
423+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
424+
"Parameter name must conform to the pattern " +
425+
"^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$");
426+
}
427+
}
428+
429+
@Override
430+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
431+
return super.executeUsingHead();
432+
}
433+
434+
@Override
435+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
436+
return super.buildHttpRequestUsingHead();
437+
}
438+
439+
@Override
440+
public GetAllowedLocations set$Xgafv(java.lang.String $Xgafv) {
441+
return (GetAllowedLocations) super.set$Xgafv($Xgafv);
442+
}
443+
444+
@Override
445+
public GetAllowedLocations setAccessToken(java.lang.String accessToken) {
446+
return (GetAllowedLocations) super.setAccessToken(accessToken);
447+
}
448+
449+
@Override
450+
public GetAllowedLocations setAlt(java.lang.String alt) {
451+
return (GetAllowedLocations) super.setAlt(alt);
452+
}
453+
454+
@Override
455+
public GetAllowedLocations setCallback(java.lang.String callback) {
456+
return (GetAllowedLocations) super.setCallback(callback);
457+
}
458+
459+
@Override
460+
public GetAllowedLocations setFields(java.lang.String fields) {
461+
return (GetAllowedLocations) super.setFields(fields);
462+
}
463+
464+
@Override
465+
public GetAllowedLocations setKey(java.lang.String key) {
466+
return (GetAllowedLocations) super.setKey(key);
467+
}
468+
469+
@Override
470+
public GetAllowedLocations setOauthToken(java.lang.String oauthToken) {
471+
return (GetAllowedLocations) super.setOauthToken(oauthToken);
472+
}
473+
474+
@Override
475+
public GetAllowedLocations setPrettyPrint(java.lang.Boolean prettyPrint) {
476+
return (GetAllowedLocations) super.setPrettyPrint(prettyPrint);
477+
}
478+
479+
@Override
480+
public GetAllowedLocations setQuotaUser(java.lang.String quotaUser) {
481+
return (GetAllowedLocations) super.setQuotaUser(quotaUser);
482+
}
483+
484+
@Override
485+
public GetAllowedLocations setUploadType(java.lang.String uploadType) {
486+
return (GetAllowedLocations) super.setUploadType(uploadType);
487+
}
488+
489+
@Override
490+
public GetAllowedLocations setUploadProtocol(java.lang.String uploadProtocol) {
491+
return (GetAllowedLocations) super.setUploadProtocol(uploadProtocol);
492+
}
493+
494+
/** Required. Resource name of workload identity pool. */
495+
@com.google.api.client.util.Key
496+
private java.lang.String name;
497+
498+
/** Required. Resource name of workload identity pool.
499+
*/
500+
public java.lang.String getName() {
501+
return name;
502+
}
503+
504+
/** Required. Resource name of workload identity pool. */
505+
public GetAllowedLocations setName(java.lang.String name) {
506+
if (!getSuppressPatternChecks()) {
507+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
508+
"Parameter name must conform to the pattern " +
509+
"^projects/[^/]+/locations/[^/]+/workloadIdentityPools/[^/]+$");
510+
}
511+
this.name = name;
512+
return this;
513+
}
514+
515+
@Override
516+
public GetAllowedLocations set(String parameterName, Object value) {
517+
return (GetAllowedLocations) super.set(parameterName, value);
518+
}
519+
}
520+
521+
}
522+
}
156523
/**
157524
* An accessor for creating requests from the ServiceAccounts collection.
158525
*

0 commit comments

Comments
 (0)