Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
<dependency>
<groupId>com.google.apis</groupId>
<artifactId>google-api-services-webcontentpublisher</artifactId>
<version>v1-rev20260804-2.0.0</version>
<version>v1-rev20260812-2.0.0</version>
</dependency>
</dependencies>
</project>
Expand All @@ -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'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1731,6 +1731,163 @@ public CheckFreeAccess set(String parameterName, Object value) {

}

/**
* An accessor for creating requests from the Users collection.
*
* <p>The typical use is:</p>
* <pre>
* {@code WebContentPublisher webcontentpublisher = new WebContentPublisher(...);}
* {@code WebContentPublisher.Users.List request = webcontentpublisher.users().list(parameters ...)}
* </pre>
*
* @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<com.google.api.services.webcontentpublisher.v1.model.GeneratePlatformSiteTokensResponse> {

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. <p> {@link GeneratePlatformSiteTokens#initialize(com.google.api.client.go
* ogleapis.services.AbstractGoogleClientRequest)} must be called to initialize this instance
* immediately after invoking the constructor. </p>
*
* @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}.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -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`.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
@@ -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`.
*
* <p> 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:
* <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>
* </p>
*
* @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<SiteToken> siteTokens;

/**
* List of domain-scoped secure token mappings.
* @return value or {@code null} for none
*/
public java.util.List<SiteToken> getSiteTokens() {
return siteTokens;
}

/**
* List of domain-scoped secure token mappings.
* @param siteTokens siteTokens or {@code null} for none
*/
public GeneratePlatformSiteTokensResponse setSiteTokens(java.util.List<SiteToken> 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();
}

}
Original file line number Diff line number Diff line change
@@ -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.
*
* <p> 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:
* <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>
* </p>
*
* @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();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

<groupId>com.google.apis</groupId>
<artifactId>google-api-services-webcontentpublisher</artifactId>
<version>v1-rev20260804-2.0.0</version>
<name>Web Content Publisher API v1-rev20260804-2.0.0</name>
<version>v1-rev20260812-2.0.0</version>
<name>Web Content Publisher API v1-rev20260812-2.0.0</name>
<packaging>jar</packaging>

<inceptionYear>2011</inceptionYear>
Expand Down
Loading
Loading