diff --git a/clients/google-api-services-iam/v1/2.0.0/README.md b/clients/google-api-services-iam/v1/2.0.0/README.md index 55a074ff789..00ee184ae21 100644 --- a/clients/google-api-services-iam/v1/2.0.0/README.md +++ b/clients/google-api-services-iam/v1/2.0.0/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-iam - v1-rev20260918-2.0.0 + v1-rev20260925-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-iam:v1-rev20260918-2.0.0' + implementation 'com.google.apis:google-api-services-iam:v1-rev20260925-2.0.0' } ``` diff --git a/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/Iam.java b/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/Iam.java index 0fd3f78f6b5..a4c4a3f9f38 100644 --- a/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/Iam.java +++ b/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/Iam.java @@ -6572,6 +6572,156 @@ public Delete set(String parameterName, Object value) { return (Delete) super.set(parameterName, value); } } + /** + * Revokes all sessions for a given WorkforcePoolSubject. + * + * Create a request for the method "subjects.revokeSessions". + * + * This request holds the parameters needed by the iam server. After setting any optional + * parameters, call the {@link RevokeSessions#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the WorkforcePoolSubject. Special characters, like `/` and `:`, must + * be escaped, because all URLs need to conform to the "When to Escape and Unescape" section + * of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: + * `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}` + * @param content the {@link com.google.api.services.iam.v1.model.RevokeWorkforcePoolSubjectSessionsRequest} + * @return the request + */ + public RevokeSessions revokeSessions(java.lang.String name, com.google.api.services.iam.v1.model.RevokeWorkforcePoolSubjectSessionsRequest content) throws java.io.IOException { + RevokeSessions result = new RevokeSessions(name, content); + initialize(result); + return result; + } + + public class RevokeSessions extends IamRequest { + + private static final String REST_PATH = "v1/{+name}:revokeSessions"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$"); + + /** + * Revokes all sessions for a given WorkforcePoolSubject. + * + * Create a request for the method "subjects.revokeSessions". + * + * This request holds the parameters needed by the the iam server. After setting any optional + * parameters, call the {@link RevokeSessions#execute()} method to invoke the remote operation. + *

{@link RevokeSessions#initialize(com.google.api.client.googleapis.services.AbstractGoogleCl + * ientRequest)} must be called to initialize this instance immediately after invoking the + * constructor.

+ * + * @param name Required. The resource name of the WorkforcePoolSubject. Special characters, like `/` and `:`, must + * be escaped, because all URLs need to conform to the "When to Escape and Unescape" section + * of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: + * `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}` + * @param content the {@link com.google.api.services.iam.v1.model.RevokeWorkforcePoolSubjectSessionsRequest} + * @since 1.13 + */ + protected RevokeSessions(java.lang.String name, com.google.api.services.iam.v1.model.RevokeWorkforcePoolSubjectSessionsRequest content) { + super(Iam.this, "POST", REST_PATH, content, com.google.api.services.iam.v1.model.Operation.class); + this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$"); + } + } + + @Override + public RevokeSessions set$Xgafv(java.lang.String $Xgafv) { + return (RevokeSessions) super.set$Xgafv($Xgafv); + } + + @Override + public RevokeSessions setAccessToken(java.lang.String accessToken) { + return (RevokeSessions) super.setAccessToken(accessToken); + } + + @Override + public RevokeSessions setAlt(java.lang.String alt) { + return (RevokeSessions) super.setAlt(alt); + } + + @Override + public RevokeSessions setCallback(java.lang.String callback) { + return (RevokeSessions) super.setCallback(callback); + } + + @Override + public RevokeSessions setFields(java.lang.String fields) { + return (RevokeSessions) super.setFields(fields); + } + + @Override + public RevokeSessions setKey(java.lang.String key) { + return (RevokeSessions) super.setKey(key); + } + + @Override + public RevokeSessions setOauthToken(java.lang.String oauthToken) { + return (RevokeSessions) super.setOauthToken(oauthToken); + } + + @Override + public RevokeSessions setPrettyPrint(java.lang.Boolean prettyPrint) { + return (RevokeSessions) super.setPrettyPrint(prettyPrint); + } + + @Override + public RevokeSessions setQuotaUser(java.lang.String quotaUser) { + return (RevokeSessions) super.setQuotaUser(quotaUser); + } + + @Override + public RevokeSessions setUploadType(java.lang.String uploadType) { + return (RevokeSessions) super.setUploadType(uploadType); + } + + @Override + public RevokeSessions setUploadProtocol(java.lang.String uploadProtocol) { + return (RevokeSessions) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the WorkforcePoolSubject. Special characters, like `/` + * and `:`, must be escaped, because all URLs need to conform to the "When to Escape and + * Unescape" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: + * `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}` + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the WorkforcePoolSubject. Special characters, like `/` and `:`, must + be escaped, because all URLs need to conform to the "When to Escape and Unescape" section of + [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: + `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}` + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the WorkforcePoolSubject. Special characters, like `/` + * and `:`, must be escaped, because all URLs need to conform to the "When to Escape and + * Unescape" section of [RFC3986](https://www.ietf.org/rfc/rfc2396.txt). Format: + * `locations/{location}/workforcePools/{workforce_pool_id}/subjects/{subject_id}` + */ + public RevokeSessions setName(java.lang.String name) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(), + "Parameter name must conform to the pattern " + + "^locations/[^/]+/workforcePools/[^/]+/subjects/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public RevokeSessions set(String parameterName, Object value) { + return (RevokeSessions) super.set(parameterName, value); + } + } /** * Undeletes a WorkforcePoolSubject, as long as it was deleted fewer than 30 days ago. * diff --git a/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/model/RevokeWorkforcePoolSubjectSessionsRequest.java b/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/model/RevokeWorkforcePoolSubjectSessionsRequest.java new file mode 100644 index 00000000000..cecb207b2c2 --- /dev/null +++ b/clients/google-api-services-iam/v1/2.0.0/com/google/api/services/iam/v1/model/RevokeWorkforcePoolSubjectSessionsRequest.java @@ -0,0 +1,43 @@ +/* + * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +/* + * This code was generated by https://github.com/googleapis/google-api-java-client-services/ + * Modify at your own risk. + */ + +package com.google.api.services.iam.v1.model; + +/** + * Request message for RevokeWorkforcePoolSubjectSessions. + * + *

This is the Java data model class that specifies how to parse/serialize into the JSON that is + * transmitted over HTTP when working with the Identity and Access Management (IAM) API. For a + * detailed explanation see: + * https://developers.google.com/api-client-library/java/google-http-java-client/json + *

+ * + * @author Google, Inc. + */ +@SuppressWarnings("javadoc") +public final class RevokeWorkforcePoolSubjectSessionsRequest extends com.google.api.client.json.GenericJson { + + @Override + public RevokeWorkforcePoolSubjectSessionsRequest set(String fieldName, Object value) { + return (RevokeWorkforcePoolSubjectSessionsRequest) super.set(fieldName, value); + } + + @Override + public RevokeWorkforcePoolSubjectSessionsRequest clone() { + return (RevokeWorkforcePoolSubjectSessionsRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-iam/v1/2.0.0/pom.xml b/clients/google-api-services-iam/v1/2.0.0/pom.xml index 7a6351c23cb..89d672965a1 100644 --- a/clients/google-api-services-iam/v1/2.0.0/pom.xml +++ b/clients/google-api-services-iam/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-iam - v1-rev20260918-2.0.0 - Identity and Access Management (IAM) API v1-rev20260918-2.0.0 + v1-rev20260925-2.0.0 + Identity and Access Management (IAM) API v1-rev20260925-2.0.0 jar 2011 diff --git a/clients/google-api-services-iam/v1/README.md b/clients/google-api-services-iam/v1/README.md index 55a074ff789..00ee184ae21 100644 --- a/clients/google-api-services-iam/v1/README.md +++ b/clients/google-api-services-iam/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-iam - v1-rev20260918-2.0.0 + v1-rev20260925-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-iam:v1-rev20260918-2.0.0' + implementation 'com.google.apis:google-api-services-iam:v1-rev20260925-2.0.0' } ```