diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/README.md b/clients/google-api-services-webcontentpublisher/v1/2.0.0/README.md index 817b3be0801..94672ba3a3c 100644 --- a/clients/google-api-services-webcontentpublisher/v1/2.0.0/README.md +++ b/clients/google-api-services-webcontentpublisher/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-webcontentpublisher - v1-rev20260804-2.0.0 + v1-rev20260812-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260804-2.0.0' + implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260812-2.0.0' } ``` diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisher.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisher.java index bbce13b05c7..69acc07790f 100644 --- a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisher.java +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisher.java @@ -1731,6 +1731,163 @@ public CheckFreeAccess set(String parameterName, Object value) { } + /** + * An accessor for creating requests from the Users collection. + * + *

The typical use is:

+ *
+   *   {@code WebContentPublisher webcontentpublisher = new WebContentPublisher(...);}
+   *   {@code WebContentPublisher.Users.List request = webcontentpublisher.users().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Users users() { + return new Users(); + } + + /** + * The "users" collection of methods. + */ + public class Users { + + /** + * Returns user tokens mapped to their canonical domains for all publications the authenticated user + * is entitled to. + * + * Create a request for the method "users.generatePlatformSiteTokens". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link GeneratePlatformSiteTokens#execute()} method to invoke the + * remote operation. + * + * @param name Required. The resource name of the user to generate tokens for. Format: users/{user} + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensRequest} + * @return the request + */ + public GeneratePlatformSiteTokens generatePlatformSiteTokens(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensRequest content) throws java.io.IOException { + GeneratePlatformSiteTokens result = new GeneratePlatformSiteTokens(name, content); + initialize(result); + return result; + } + + public class GeneratePlatformSiteTokens extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+name}:generatePlatformSiteTokens"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^users/[^/]+$"); + + /** + * Returns user tokens mapped to their canonical domains for all publications the authenticated + * user is entitled to. + * + * Create a request for the method "users.generatePlatformSiteTokens". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link GeneratePlatformSiteTokens#execute()} method to invoke + * the remote operation.

{@link GeneratePlatformSiteTokens#initialize(com.google.api.client.go + * ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance + * immediately after invoking the constructor.

+ * + * @param name Required. The resource name of the user to generate tokens for. Format: users/{user} + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensRequest} + * @since 1.13 + */ + protected GeneratePlatformSiteTokens(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensRequest content) { + super(WebContentPublisher.this, "POST", REST_PATH, content, com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensResponse.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 " + + "^users/[^/]+$"); + } + } + + @Override + public GeneratePlatformSiteTokens set$Xgafv(java.lang.String $Xgafv) { + return (GeneratePlatformSiteTokens) super.set$Xgafv($Xgafv); + } + + @Override + public GeneratePlatformSiteTokens setAccessToken(java.lang.String accessToken) { + return (GeneratePlatformSiteTokens) super.setAccessToken(accessToken); + } + + @Override + public GeneratePlatformSiteTokens setAlt(java.lang.String alt) { + return (GeneratePlatformSiteTokens) super.setAlt(alt); + } + + @Override + public GeneratePlatformSiteTokens setCallback(java.lang.String callback) { + return (GeneratePlatformSiteTokens) super.setCallback(callback); + } + + @Override + public GeneratePlatformSiteTokens setFields(java.lang.String fields) { + return (GeneratePlatformSiteTokens) super.setFields(fields); + } + + @Override + public GeneratePlatformSiteTokens setKey(java.lang.String key) { + return (GeneratePlatformSiteTokens) super.setKey(key); + } + + @Override + public GeneratePlatformSiteTokens setOauthToken(java.lang.String oauthToken) { + return (GeneratePlatformSiteTokens) super.setOauthToken(oauthToken); + } + + @Override + public GeneratePlatformSiteTokens setPrettyPrint(java.lang.Boolean prettyPrint) { + return (GeneratePlatformSiteTokens) super.setPrettyPrint(prettyPrint); + } + + @Override + public GeneratePlatformSiteTokens setQuotaUser(java.lang.String quotaUser) { + return (GeneratePlatformSiteTokens) super.setQuotaUser(quotaUser); + } + + @Override + public GeneratePlatformSiteTokens setUploadType(java.lang.String uploadType) { + return (GeneratePlatformSiteTokens) super.setUploadType(uploadType); + } + + @Override + public GeneratePlatformSiteTokens setUploadProtocol(java.lang.String uploadProtocol) { + return (GeneratePlatformSiteTokens) super.setUploadProtocol(uploadProtocol); + } + + /** Required. The resource name of the user to generate tokens for. Format: users/{user} */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the user to generate tokens for. Format: users/{user} + */ + public java.lang.String getName() { + return name; + } + + /** Required. The resource name of the user to generate tokens for. Format: users/{user} */ + public GeneratePlatformSiteTokens 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 " + + "^users/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public GeneratePlatformSiteTokens set(String parameterName, Object value) { + return (GeneratePlatformSiteTokens) super.set(parameterName, value); + } + } + + } + /** * Builder for {@link WebContentPublisher}. * diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensRequest.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensRequest.java new file mode 100644 index 00000000000..3c98d90d73e --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensRequest.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.webcontentpublisher.v1.model; + +/** + * Request message for `GeneratePlatformSiteTokens`. + * + *

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 Web Content Publisher 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 GeneratePlatformSiteTokensRequest extends com.google.api.client.json.GenericJson { + + @Override + public GeneratePlatformSiteTokensRequest set(String fieldName, Object value) { + return (GeneratePlatformSiteTokensRequest) super.set(fieldName, value); + } + + @Override + public GeneratePlatformSiteTokensRequest clone() { + return (GeneratePlatformSiteTokensRequest) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensResponse.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensResponse.java new file mode 100644 index 00000000000..4ff7158a015 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/GeneratePlatformSiteTokensResponse.java @@ -0,0 +1,67 @@ +/* + * 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.webcontentpublisher.v1.model; + +/** + * Response message for `GeneratePlatformSiteTokens`. + * + *

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 Web Content Publisher 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 GeneratePlatformSiteTokensResponse extends com.google.api.client.json.GenericJson { + + /** + * List of domain-scoped secure token mappings. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List siteTokens; + + /** + * List of domain-scoped secure token mappings. + * @return value or {@code null} for none + */ + public java.util.List getSiteTokens() { + return siteTokens; + } + + /** + * List of domain-scoped secure token mappings. + * @param siteTokens siteTokens or {@code null} for none + */ + public GeneratePlatformSiteTokensResponse setSiteTokens(java.util.List siteTokens) { + this.siteTokens = siteTokens; + return this; + } + + @Override + public GeneratePlatformSiteTokensResponse set(String fieldName, Object value) { + return (GeneratePlatformSiteTokensResponse) super.set(fieldName, value); + } + + @Override + public GeneratePlatformSiteTokensResponse clone() { + return (GeneratePlatformSiteTokensResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SiteToken.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SiteToken.java new file mode 100644 index 00000000000..803fc9f3b1d --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SiteToken.java @@ -0,0 +1,91 @@ +/* + * 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.webcontentpublisher.v1.model; + +/** + * Represents a domain-scoped secure token mapping. + * + *

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 Web Content Publisher 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 SiteToken extends com.google.api.client.json.GenericJson { + + /** + * The domain scope this token is valid for. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String domain; + + /** + * The domain-scoped secure token value (ESUT). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String token; + + /** + * The domain scope this token is valid for. + * @return value or {@code null} for none + */ + public java.lang.String getDomain() { + return domain; + } + + /** + * The domain scope this token is valid for. + * @param domain domain or {@code null} for none + */ + public SiteToken setDomain(java.lang.String domain) { + this.domain = domain; + return this; + } + + /** + * The domain-scoped secure token value (ESUT). + * @return value or {@code null} for none + */ + public java.lang.String getToken() { + return token; + } + + /** + * The domain-scoped secure token value (ESUT). + * @param token token or {@code null} for none + */ + public SiteToken setToken(java.lang.String token) { + this.token = token; + return this; + } + + @Override + public SiteToken set(String fieldName, Object value) { + return (SiteToken) super.set(fieldName, value); + } + + @Override + public SiteToken clone() { + return (SiteToken) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/pom.xml b/clients/google-api-services-webcontentpublisher/v1/2.0.0/pom.xml index fefb1309717..75e94b579ae 100644 --- a/clients/google-api-services-webcontentpublisher/v1/2.0.0/pom.xml +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/pom.xml @@ -8,8 +8,8 @@ com.google.apis google-api-services-webcontentpublisher - v1-rev20260804-2.0.0 - Web Content Publisher API v1-rev20260804-2.0.0 + v1-rev20260812-2.0.0 + Web Content Publisher API v1-rev20260812-2.0.0 jar 2011 diff --git a/clients/google-api-services-webcontentpublisher/v1/README.md b/clients/google-api-services-webcontentpublisher/v1/README.md index 817b3be0801..94672ba3a3c 100644 --- a/clients/google-api-services-webcontentpublisher/v1/README.md +++ b/clients/google-api-services-webcontentpublisher/v1/README.md @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file: com.google.apis google-api-services-webcontentpublisher - v1-rev20260804-2.0.0 + v1-rev20260812-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260804-2.0.0' + implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260812-2.0.0' } ```