Skip to content

Commit ff31760

Browse files
1 parent 3adbeb7 commit ff31760

File tree

4 files changed

+350
-6
lines changed

4 files changed

+350
-6
lines changed

clients/google-api-services-run/v2/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-run</artifactId>
25-
<version>v2-rev20250425-2.0.0</version>
25+
<version>v2-rev20250504-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-run:v2-rev20250425-2.0.0'
38+
implementation 'com.google.apis:google-api-services-run:v2-rev20250504-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-run/v2/2.0.0/com/google/api/services/run/v2/CloudRun.java

Lines changed: 344 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7227,6 +7227,204 @@ public Get set(String parameterName, Object value) {
72277227
return (Get) super.set(parameterName, value);
72287228
}
72297229
}
7230+
/**
7231+
* Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This
7232+
* result does not include any inherited policies.
7233+
*
7234+
* Create a request for the method "workerPools.getIamPolicy".
7235+
*
7236+
* This request holds the parameters needed by the run server. After setting any optional
7237+
* parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation.
7238+
*
7239+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
7240+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
7241+
* this field.
7242+
* @return the request
7243+
*/
7244+
public GetIamPolicy getIamPolicy(java.lang.String resource) throws java.io.IOException {
7245+
GetIamPolicy result = new GetIamPolicy(resource);
7246+
initialize(result);
7247+
return result;
7248+
}
7249+
7250+
public class GetIamPolicy extends CloudRunRequest<com.google.api.services.run.v2.model.GoogleIamV1Policy> {
7251+
7252+
private static final String REST_PATH = "v2/{+resource}:getIamPolicy";
7253+
7254+
private final java.util.regex.Pattern RESOURCE_PATTERN =
7255+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
7256+
7257+
/**
7258+
* Gets the IAM Access Control policy currently in effect for the given Cloud Run WorkerPool. This
7259+
* result does not include any inherited policies.
7260+
*
7261+
* Create a request for the method "workerPools.getIamPolicy".
7262+
*
7263+
* This request holds the parameters needed by the the run server. After setting any optional
7264+
* parameters, call the {@link GetIamPolicy#execute()} method to invoke the remote operation. <p>
7265+
* {@link
7266+
* GetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
7267+
* must be called to initialize this instance immediately after invoking the constructor. </p>
7268+
*
7269+
* @param resource REQUIRED: The resource for which the policy is being requested. See [Resource
7270+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
7271+
* this field.
7272+
* @since 1.13
7273+
*/
7274+
protected GetIamPolicy(java.lang.String resource) {
7275+
super(CloudRun.this, "GET", REST_PATH, null, com.google.api.services.run.v2.model.GoogleIamV1Policy.class);
7276+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
7277+
if (!getSuppressPatternChecks()) {
7278+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
7279+
"Parameter resource must conform to the pattern " +
7280+
"^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
7281+
}
7282+
}
7283+
7284+
@Override
7285+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
7286+
return super.executeUsingHead();
7287+
}
7288+
7289+
@Override
7290+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
7291+
return super.buildHttpRequestUsingHead();
7292+
}
7293+
7294+
@Override
7295+
public GetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
7296+
return (GetIamPolicy) super.set$Xgafv($Xgafv);
7297+
}
7298+
7299+
@Override
7300+
public GetIamPolicy setAccessToken(java.lang.String accessToken) {
7301+
return (GetIamPolicy) super.setAccessToken(accessToken);
7302+
}
7303+
7304+
@Override
7305+
public GetIamPolicy setAlt(java.lang.String alt) {
7306+
return (GetIamPolicy) super.setAlt(alt);
7307+
}
7308+
7309+
@Override
7310+
public GetIamPolicy setCallback(java.lang.String callback) {
7311+
return (GetIamPolicy) super.setCallback(callback);
7312+
}
7313+
7314+
@Override
7315+
public GetIamPolicy setFields(java.lang.String fields) {
7316+
return (GetIamPolicy) super.setFields(fields);
7317+
}
7318+
7319+
@Override
7320+
public GetIamPolicy setKey(java.lang.String key) {
7321+
return (GetIamPolicy) super.setKey(key);
7322+
}
7323+
7324+
@Override
7325+
public GetIamPolicy setOauthToken(java.lang.String oauthToken) {
7326+
return (GetIamPolicy) super.setOauthToken(oauthToken);
7327+
}
7328+
7329+
@Override
7330+
public GetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
7331+
return (GetIamPolicy) super.setPrettyPrint(prettyPrint);
7332+
}
7333+
7334+
@Override
7335+
public GetIamPolicy setQuotaUser(java.lang.String quotaUser) {
7336+
return (GetIamPolicy) super.setQuotaUser(quotaUser);
7337+
}
7338+
7339+
@Override
7340+
public GetIamPolicy setUploadType(java.lang.String uploadType) {
7341+
return (GetIamPolicy) super.setUploadType(uploadType);
7342+
}
7343+
7344+
@Override
7345+
public GetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
7346+
return (GetIamPolicy) super.setUploadProtocol(uploadProtocol);
7347+
}
7348+
7349+
/**
7350+
* REQUIRED: The resource for which the policy is being requested. See [Resource
7351+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
7352+
* for this field.
7353+
*/
7354+
@com.google.api.client.util.Key
7355+
private java.lang.String resource;
7356+
7357+
/** REQUIRED: The resource for which the policy is being requested. See [Resource
7358+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
7359+
field.
7360+
*/
7361+
public java.lang.String getResource() {
7362+
return resource;
7363+
}
7364+
7365+
/**
7366+
* REQUIRED: The resource for which the policy is being requested. See [Resource
7367+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
7368+
* for this field.
7369+
*/
7370+
public GetIamPolicy setResource(java.lang.String resource) {
7371+
if (!getSuppressPatternChecks()) {
7372+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
7373+
"Parameter resource must conform to the pattern " +
7374+
"^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
7375+
}
7376+
this.resource = resource;
7377+
return this;
7378+
}
7379+
7380+
/**
7381+
* Optional. The maximum policy version that will be used to format the policy. Valid
7382+
* values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests
7383+
* for policies with any conditional role bindings must specify version 3. Policies with
7384+
* no conditional role bindings may specify any valid value or leave the field unset. The
7385+
* policy in the response might use the policy version that you specified, or it might use
7386+
* a lower policy version. For example, if you specify version 3, but the policy has no
7387+
* conditional role bindings, the response uses version 1. To learn which resources
7388+
* support conditions in their IAM policies, see the [IAM
7389+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7390+
*/
7391+
@com.google.api.client.util.Key("options.requestedPolicyVersion")
7392+
private java.lang.Integer optionsRequestedPolicyVersion;
7393+
7394+
/** Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1,
7395+
and 3. Requests specifying an invalid value will be rejected. Requests for policies with any
7396+
conditional role bindings must specify version 3. Policies with no conditional role bindings may
7397+
specify any valid value or leave the field unset. The policy in the response might use the policy
7398+
version that you specified, or it might use a lower policy version. For example, if you specify
7399+
version 3, but the policy has no conditional role bindings, the response uses version 1. To learn
7400+
which resources support conditions in their IAM policies, see the [IAM
7401+
documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7402+
*/
7403+
public java.lang.Integer getOptionsRequestedPolicyVersion() {
7404+
return optionsRequestedPolicyVersion;
7405+
}
7406+
7407+
/**
7408+
* Optional. The maximum policy version that will be used to format the policy. Valid
7409+
* values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests
7410+
* for policies with any conditional role bindings must specify version 3. Policies with
7411+
* no conditional role bindings may specify any valid value or leave the field unset. The
7412+
* policy in the response might use the policy version that you specified, or it might use
7413+
* a lower policy version. For example, if you specify version 3, but the policy has no
7414+
* conditional role bindings, the response uses version 1. To learn which resources
7415+
* support conditions in their IAM policies, see the [IAM
7416+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
7417+
*/
7418+
public GetIamPolicy setOptionsRequestedPolicyVersion(java.lang.Integer optionsRequestedPolicyVersion) {
7419+
this.optionsRequestedPolicyVersion = optionsRequestedPolicyVersion;
7420+
return this;
7421+
}
7422+
7423+
@Override
7424+
public GetIamPolicy set(String parameterName, Object value) {
7425+
return (GetIamPolicy) super.set(parameterName, value);
7426+
}
7427+
}
72307428
/**
72317429
* Lists WorkerPools. Results are sorted by creation time, descending.
72327430
*
@@ -7680,6 +7878,152 @@ public Patch set(String parameterName, Object value) {
76807878
return (Patch) super.set(parameterName, value);
76817879
}
76827880
}
7881+
/**
7882+
* Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing policy.
7883+
*
7884+
* Create a request for the method "workerPools.setIamPolicy".
7885+
*
7886+
* This request holds the parameters needed by the run server. After setting any optional
7887+
* parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation.
7888+
*
7889+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
7890+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
7891+
* this field.
7892+
* @param content the {@link com.google.api.services.run.v2.model.GoogleIamV1SetIamPolicyRequest}
7893+
* @return the request
7894+
*/
7895+
public SetIamPolicy setIamPolicy(java.lang.String resource, com.google.api.services.run.v2.model.GoogleIamV1SetIamPolicyRequest content) throws java.io.IOException {
7896+
SetIamPolicy result = new SetIamPolicy(resource, content);
7897+
initialize(result);
7898+
return result;
7899+
}
7900+
7901+
public class SetIamPolicy extends CloudRunRequest<com.google.api.services.run.v2.model.GoogleIamV1Policy> {
7902+
7903+
private static final String REST_PATH = "v2/{+resource}:setIamPolicy";
7904+
7905+
private final java.util.regex.Pattern RESOURCE_PATTERN =
7906+
java.util.regex.Pattern.compile("^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
7907+
7908+
/**
7909+
* Sets the IAM Access control policy for the specified WorkerPool. Overwrites any existing
7910+
* policy.
7911+
*
7912+
* Create a request for the method "workerPools.setIamPolicy".
7913+
*
7914+
* This request holds the parameters needed by the the run server. After setting any optional
7915+
* parameters, call the {@link SetIamPolicy#execute()} method to invoke the remote operation. <p>
7916+
* {@link
7917+
* SetIamPolicy#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
7918+
* must be called to initialize this instance immediately after invoking the constructor. </p>
7919+
*
7920+
* @param resource REQUIRED: The resource for which the policy is being specified. See [Resource
7921+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
7922+
* this field.
7923+
* @param content the {@link com.google.api.services.run.v2.model.GoogleIamV1SetIamPolicyRequest}
7924+
* @since 1.13
7925+
*/
7926+
protected SetIamPolicy(java.lang.String resource, com.google.api.services.run.v2.model.GoogleIamV1SetIamPolicyRequest content) {
7927+
super(CloudRun.this, "POST", REST_PATH, content, com.google.api.services.run.v2.model.GoogleIamV1Policy.class);
7928+
this.resource = com.google.api.client.util.Preconditions.checkNotNull(resource, "Required parameter resource must be specified.");
7929+
if (!getSuppressPatternChecks()) {
7930+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
7931+
"Parameter resource must conform to the pattern " +
7932+
"^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
7933+
}
7934+
}
7935+
7936+
@Override
7937+
public SetIamPolicy set$Xgafv(java.lang.String $Xgafv) {
7938+
return (SetIamPolicy) super.set$Xgafv($Xgafv);
7939+
}
7940+
7941+
@Override
7942+
public SetIamPolicy setAccessToken(java.lang.String accessToken) {
7943+
return (SetIamPolicy) super.setAccessToken(accessToken);
7944+
}
7945+
7946+
@Override
7947+
public SetIamPolicy setAlt(java.lang.String alt) {
7948+
return (SetIamPolicy) super.setAlt(alt);
7949+
}
7950+
7951+
@Override
7952+
public SetIamPolicy setCallback(java.lang.String callback) {
7953+
return (SetIamPolicy) super.setCallback(callback);
7954+
}
7955+
7956+
@Override
7957+
public SetIamPolicy setFields(java.lang.String fields) {
7958+
return (SetIamPolicy) super.setFields(fields);
7959+
}
7960+
7961+
@Override
7962+
public SetIamPolicy setKey(java.lang.String key) {
7963+
return (SetIamPolicy) super.setKey(key);
7964+
}
7965+
7966+
@Override
7967+
public SetIamPolicy setOauthToken(java.lang.String oauthToken) {
7968+
return (SetIamPolicy) super.setOauthToken(oauthToken);
7969+
}
7970+
7971+
@Override
7972+
public SetIamPolicy setPrettyPrint(java.lang.Boolean prettyPrint) {
7973+
return (SetIamPolicy) super.setPrettyPrint(prettyPrint);
7974+
}
7975+
7976+
@Override
7977+
public SetIamPolicy setQuotaUser(java.lang.String quotaUser) {
7978+
return (SetIamPolicy) super.setQuotaUser(quotaUser);
7979+
}
7980+
7981+
@Override
7982+
public SetIamPolicy setUploadType(java.lang.String uploadType) {
7983+
return (SetIamPolicy) super.setUploadType(uploadType);
7984+
}
7985+
7986+
@Override
7987+
public SetIamPolicy setUploadProtocol(java.lang.String uploadProtocol) {
7988+
return (SetIamPolicy) super.setUploadProtocol(uploadProtocol);
7989+
}
7990+
7991+
/**
7992+
* REQUIRED: The resource for which the policy is being specified. See [Resource
7993+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
7994+
* for this field.
7995+
*/
7996+
@com.google.api.client.util.Key
7997+
private java.lang.String resource;
7998+
7999+
/** REQUIRED: The resource for which the policy is being specified. See [Resource
8000+
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
8001+
field.
8002+
*/
8003+
public java.lang.String getResource() {
8004+
return resource;
8005+
}
8006+
8007+
/**
8008+
* REQUIRED: The resource for which the policy is being specified. See [Resource
8009+
* names](https://cloud.google.com/apis/design/resource_names) for the appropriate value
8010+
* for this field.
8011+
*/
8012+
public SetIamPolicy setResource(java.lang.String resource) {
8013+
if (!getSuppressPatternChecks()) {
8014+
com.google.api.client.util.Preconditions.checkArgument(RESOURCE_PATTERN.matcher(resource).matches(),
8015+
"Parameter resource must conform to the pattern " +
8016+
"^projects/[^/]+/locations/[^/]+/workerPools/[^/]+$");
8017+
}
8018+
this.resource = resource;
8019+
return this;
8020+
}
8021+
8022+
@Override
8023+
public SetIamPolicy set(String parameterName, Object value) {
8024+
return (SetIamPolicy) super.set(parameterName, value);
8025+
}
8026+
}
76838027
/**
76848028
* Returns permissions that a caller has on the specified Project. There are no permissions required
76858029
* for making this API call.

clients/google-api-services-run/v2/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-run</artifactId>
11-
<version>v2-rev20250425-2.0.0</version>
12-
<name>Cloud Run Admin API v2-rev20250425-2.0.0</name>
11+
<version>v2-rev20250504-2.0.0</version>
12+
<name>Cloud Run Admin API v2-rev20250504-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

0 commit comments

Comments
 (0)