Skip to content

Commit 6e9d25b

Browse files
1 parent 087048d commit 6e9d25b

File tree

5 files changed

+240
-6
lines changed

5 files changed

+240
-6
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-rev20240227-2.0.0</version>
25+
<version>v1-rev20241024-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-rev20240227-2.0.0'
38+
implementation 'com.google.apis:google-api-services-iamcredentials:v1-rev20241024-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: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,146 @@ public GenerateIdToken set(String parameterName, Object value) {
469469
return (GenerateIdToken) super.set(parameterName, value);
470470
}
471471
}
472+
/**
473+
* Returns the trust boundary info for a given service account.
474+
*
475+
* Create a request for the method "serviceAccounts.getAllowedLocations".
476+
*
477+
* This request holds the parameters needed by the iamcredentials server. After setting any
478+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
479+
* operation.
480+
*
481+
* @param name Required. Resource name of service account.
482+
* @return the request
483+
*/
484+
public GetAllowedLocations getAllowedLocations(java.lang.String name) throws java.io.IOException {
485+
GetAllowedLocations result = new GetAllowedLocations(name);
486+
initialize(result);
487+
return result;
488+
}
489+
490+
public class GetAllowedLocations extends IAMCredentialsRequest<com.google.api.services.iamcredentials.v1.model.ServiceAccountAllowedLocations> {
491+
492+
private static final String REST_PATH = "v1/{+name}/allowedLocations";
493+
494+
private final java.util.regex.Pattern NAME_PATTERN =
495+
java.util.regex.Pattern.compile("^projects/[^/]+/serviceAccounts/[^/]+$");
496+
497+
/**
498+
* Returns the trust boundary info for a given service account.
499+
*
500+
* Create a request for the method "serviceAccounts.getAllowedLocations".
501+
*
502+
* This request holds the parameters needed by the the iamcredentials server. After setting any
503+
* optional parameters, call the {@link GetAllowedLocations#execute()} method to invoke the remote
504+
* operation. <p> {@link GetAllowedLocations#initialize(com.google.api.client.googleapis.services.
505+
* AbstractGoogleClientRequest)} must be called to initialize this instance immediately after
506+
* invoking the constructor. </p>
507+
*
508+
* @param name Required. Resource name of service account.
509+
* @since 1.13
510+
*/
511+
protected GetAllowedLocations(java.lang.String name) {
512+
super(IAMCredentials.this, "GET", REST_PATH, null, com.google.api.services.iamcredentials.v1.model.ServiceAccountAllowedLocations.class);
513+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
514+
if (!getSuppressPatternChecks()) {
515+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
516+
"Parameter name must conform to the pattern " +
517+
"^projects/[^/]+/serviceAccounts/[^/]+$");
518+
}
519+
}
520+
521+
@Override
522+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
523+
return super.executeUsingHead();
524+
}
525+
526+
@Override
527+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
528+
return super.buildHttpRequestUsingHead();
529+
}
530+
531+
@Override
532+
public GetAllowedLocations set$Xgafv(java.lang.String $Xgafv) {
533+
return (GetAllowedLocations) super.set$Xgafv($Xgafv);
534+
}
535+
536+
@Override
537+
public GetAllowedLocations setAccessToken(java.lang.String accessToken) {
538+
return (GetAllowedLocations) super.setAccessToken(accessToken);
539+
}
540+
541+
@Override
542+
public GetAllowedLocations setAlt(java.lang.String alt) {
543+
return (GetAllowedLocations) super.setAlt(alt);
544+
}
545+
546+
@Override
547+
public GetAllowedLocations setCallback(java.lang.String callback) {
548+
return (GetAllowedLocations) super.setCallback(callback);
549+
}
550+
551+
@Override
552+
public GetAllowedLocations setFields(java.lang.String fields) {
553+
return (GetAllowedLocations) super.setFields(fields);
554+
}
555+
556+
@Override
557+
public GetAllowedLocations setKey(java.lang.String key) {
558+
return (GetAllowedLocations) super.setKey(key);
559+
}
560+
561+
@Override
562+
public GetAllowedLocations setOauthToken(java.lang.String oauthToken) {
563+
return (GetAllowedLocations) super.setOauthToken(oauthToken);
564+
}
565+
566+
@Override
567+
public GetAllowedLocations setPrettyPrint(java.lang.Boolean prettyPrint) {
568+
return (GetAllowedLocations) super.setPrettyPrint(prettyPrint);
569+
}
570+
571+
@Override
572+
public GetAllowedLocations setQuotaUser(java.lang.String quotaUser) {
573+
return (GetAllowedLocations) super.setQuotaUser(quotaUser);
574+
}
575+
576+
@Override
577+
public GetAllowedLocations setUploadType(java.lang.String uploadType) {
578+
return (GetAllowedLocations) super.setUploadType(uploadType);
579+
}
580+
581+
@Override
582+
public GetAllowedLocations setUploadProtocol(java.lang.String uploadProtocol) {
583+
return (GetAllowedLocations) super.setUploadProtocol(uploadProtocol);
584+
}
585+
586+
/** Required. Resource name of service account. */
587+
@com.google.api.client.util.Key
588+
private java.lang.String name;
589+
590+
/** Required. Resource name of service account.
591+
*/
592+
public java.lang.String getName() {
593+
return name;
594+
}
595+
596+
/** Required. Resource name of service account. */
597+
public GetAllowedLocations setName(java.lang.String name) {
598+
if (!getSuppressPatternChecks()) {
599+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
600+
"Parameter name must conform to the pattern " +
601+
"^projects/[^/]+/serviceAccounts/[^/]+$");
602+
}
603+
this.name = name;
604+
return this;
605+
}
606+
607+
@Override
608+
public GetAllowedLocations set(String parameterName, Object value) {
609+
return (GetAllowedLocations) super.set(parameterName, value);
610+
}
611+
}
472612
/**
473613
* Signs a blob using a service account's system-managed private key.
474614
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
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.iamcredentials.v1.model;
18+
19+
/**
20+
* Represents a list of allowed locations for given service account.
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 IAM Service Account Credentials API. For a detailed
24+
* explanation 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 ServiceAccountAllowedLocations extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Output only. The hex encoded bitmap of the trust boundary locations
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String encodedLocations;
39+
40+
/**
41+
* Output only. The human readable trust boundary locations. For example, ["us-central1", "europe-
42+
* west1"]
43+
* The value may be {@code null}.
44+
*/
45+
@com.google.api.client.util.Key
46+
private java.util.List<java.lang.String> locations;
47+
48+
/**
49+
* Output only. The hex encoded bitmap of the trust boundary locations
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getEncodedLocations() {
53+
return encodedLocations;
54+
}
55+
56+
/**
57+
* Output only. The hex encoded bitmap of the trust boundary locations
58+
* @param encodedLocations encodedLocations or {@code null} for none
59+
*/
60+
public ServiceAccountAllowedLocations setEncodedLocations(java.lang.String encodedLocations) {
61+
this.encodedLocations = encodedLocations;
62+
return this;
63+
}
64+
65+
/**
66+
* Output only. The human readable trust boundary locations. For example, ["us-central1", "europe-
67+
* west1"]
68+
* @return value or {@code null} for none
69+
*/
70+
public java.util.List<java.lang.String> getLocations() {
71+
return locations;
72+
}
73+
74+
/**
75+
* Output only. The human readable trust boundary locations. For example, ["us-central1", "europe-
76+
* west1"]
77+
* @param locations locations or {@code null} for none
78+
*/
79+
public ServiceAccountAllowedLocations setLocations(java.util.List<java.lang.String> locations) {
80+
this.locations = locations;
81+
return this;
82+
}
83+
84+
@Override
85+
public ServiceAccountAllowedLocations set(String fieldName, Object value) {
86+
return (ServiceAccountAllowedLocations) super.set(fieldName, value);
87+
}
88+
89+
@Override
90+
public ServiceAccountAllowedLocations clone() {
91+
return (ServiceAccountAllowedLocations) super.clone();
92+
}
93+
94+
}

clients/google-api-services-iamcredentials/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-iamcredentials</artifactId>
11-
<version>v1-rev20240227-2.0.0</version>
12-
<name>IAM Service Account Credentials API v1-rev20240227-2.0.0</name>
11+
<version>v1-rev20241024-2.0.0</version>
12+
<name>IAM Service Account Credentials API v1-rev20241024-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)