From 637316830c1a9f5a2dc7ede2449953ebada5c99f Mon Sep 17 00:00:00 2001 From: yoshi-code-bot <70984784+yoshi-code-bot@users.noreply.github.com> Date: Tue, 30 Jun 2026 18:43:57 -0700 Subject: [PATCH] chore: regenerate webcontentpublisher client --- .../v1/2.0.0/README.md | 4 +- .../v1/WebContentPublisher.java | 1247 +++++++++++++++++ .../v1/WebContentPublisherScopes.java | 4 + .../v1/model/CheckFreeAccessResponse.java | 6 +- .../v1/model/ContentPolicyStatus.java | 91 ++ .../webcontentpublisher/v1/model/Cta.java | 169 +++ .../v1/model/DomainProperty.java | 92 ++ .../v1/model/ListCtasResponse.java | 100 ++ .../v1/model/ListPublicationsResponse.java | 94 ++ .../v1/model/NewsletterConfig.java | 139 ++ .../v1/model/Publication.java | 436 ++++++ .../v1/model/RrmProduct.java | 115 ++ .../v1/model/SlProduct.java | 91 ++ .../v1/model/TosAcceptance.java | 115 ++ .../v1/2.0.0/pom.xml | 4 +- .../v1/README.md | 4 +- 16 files changed, 2702 insertions(+), 9 deletions(-) create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ContentPolicyStatus.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Cta.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/DomainProperty.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListCtasResponse.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListPublicationsResponse.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/NewsletterConfig.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Publication.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/RrmProduct.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SlProduct.java create mode 100644 clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/TosAcceptance.java 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 4f94f16d5b9..217b3bd1791 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-rev20260526-2.0.0 + v1-rev20260629-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260526-2.0.0' + implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260629-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 70709b633fc..c607ba44885 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 @@ -133,6 +133,1253 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog super.initialize(httpClientRequest); } + /** + * An accessor for creating requests from the Organizations collection. + * + *

The typical use is:

+ *
+   *   {@code WebContentPublisher webcontentpublisher = new WebContentPublisher(...);}
+   *   {@code WebContentPublisher.Organizations.List request = webcontentpublisher.organizations().list(parameters ...)}
+   * 
+ * + * @return the resource collection + */ + public Organizations organizations() { + return new Organizations(); + } + + /** + * The "organizations" collection of methods. + */ + public class Organizations { + + /** + * An accessor for creating requests from the Publications collection. + * + *

The typical use is:

+ *
+     *   {@code WebContentPublisher webcontentpublisher = new WebContentPublisher(...);}
+     *   {@code WebContentPublisher.Publications.List request = webcontentpublisher.publications().list(parameters ...)}
+     * 
+ * + * @return the resource collection + */ + public Publications publications() { + return new Publications(); + } + + /** + * The "publications" collection of methods. + */ + public class Publications { + + /** + * Creates a publication. + * + * Create a request for the method "publications.create". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent resource where this publication will be created. Format: + * `organizations/{organization}`. + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Publication} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.webcontentpublisher.v1.model.Publication content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+parent}/publications"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); + + /** + * Creates a publication. + * + * Create a request for the method "publications.create". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent resource where this publication will be created. Format: + * `organizations/{organization}`. + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Publication} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.webcontentpublisher.v1.model.Publication content) { + super(WebContentPublisher.this, "POST", REST_PATH, content, com.google.api.services.webcontentpublisher.v1.model.Publication.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent resource where this publication will be created. Format: + * `organizations/{organization}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent resource where this publication will be created. Format: + `organizations/{organization}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent resource where this publication will be created. Format: + * `organizations/{organization}`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The unique identifier of the publication to create. If not specified, the + * server will generate a random publication ID. + */ + @com.google.api.client.util.Key + private java.lang.String publicationId; + + /** Optional. The unique identifier of the publication to create. If not specified, the server will + generate a random publication ID. + */ + public java.lang.String getPublicationId() { + return publicationId; + } + + /** + * Optional. The unique identifier of the publication to create. If not specified, the + * server will generate a random publication ID. + */ + public Create setPublicationId(java.lang.String publicationId) { + this.publicationId = publicationId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets a publication. + * + * Create a request for the method "publications.get". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the publication to retrieve. Format: + * `organizations/{organization}/publications/{publication}`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+$"); + + /** + * Gets a publication. + * + * Create a request for the method "publications.get". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The resource name of the publication to retrieve. Format: + * `organizations/{organization}/publications/{publication}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(WebContentPublisher.this, "GET", REST_PATH, null, com.google.api.services.webcontentpublisher.v1.model.Publication.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 " + + "^organizations/[^/]+/publications/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the publication to retrieve. Format: + * `organizations/{organization}/publications/{publication}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the publication to retrieve. Format: + `organizations/{organization}/publications/{publication}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the publication to retrieve. Format: + * `organizations/{organization}/publications/{publication}`. + */ + public Get 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 " + + "^organizations/[^/]+/publications/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists publications. + * + * Create a request for the method "publications.list". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent organization whose publications to list. Format: + * `organizations/{organization}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+parent}/publications"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+$"); + + /** + * Lists publications. + * + * Create a request for the method "publications.list". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent organization whose publications to list. Format: + * `organizations/{organization}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(WebContentPublisher.this, "GET", REST_PATH, null, com.google.api.services.webcontentpublisher.v1.model.ListPublicationsResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent organization whose publications to list. Format: + * `organizations/{organization}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent organization whose publications to list. Format: + `organizations/{organization}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent organization whose publications to list. Format: + * `organizations/{organization}`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** Optional. A filter expression to filter the publications returned. */ + @com.google.api.client.util.Key + private java.lang.String filter; + + /** Optional. A filter expression to filter the publications returned. + */ + public java.lang.String getFilter() { + return filter; + } + + /** Optional. A filter expression to filter the publications returned. */ + public List setFilter(java.lang.String filter) { + this.filter = filter; + return this; + } + + /** + * Optional. The maximum number of publications to return. The service may return fewer than + * this value. If unspecified, at most 50 publications will be returned. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of publications to return. The service may return fewer than this + value. If unspecified, at most 50 publications will be returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of publications to return. The service may return fewer than + * this value. If unspecified, at most 50 publications will be returned. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListPublications` call, to retrieve the + * next page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListPublications` call, to retrieve the next + page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListPublications` call, to retrieve the + * next page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + /** + * Updates a publication. + * + * Create a request for the method "publications.patch". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation. + * + * @param name Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Publication} + * @return the request + */ + public Patch patch(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.Publication content) throws java.io.IOException { + Patch result = new Patch(name, content); + initialize(result); + return result; + } + + public class Patch extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+$"); + + /** + * Updates a publication. + * + * Create a request for the method "publications.patch". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link Patch#execute()} method to invoke the remote + * operation.

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

+ * + * @param name Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Publication} + * @since 1.13 + */ + protected Patch(java.lang.String name, com.google.api.services.webcontentpublisher.v1.model.Publication content) { + super(WebContentPublisher.this, "PATCH", REST_PATH, content, com.google.api.services.webcontentpublisher.v1.model.Publication.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 " + + "^organizations/[^/]+/publications/[^/]+$"); + } + } + + @Override + public Patch set$Xgafv(java.lang.String $Xgafv) { + return (Patch) super.set$Xgafv($Xgafv); + } + + @Override + public Patch setAccessToken(java.lang.String accessToken) { + return (Patch) super.setAccessToken(accessToken); + } + + @Override + public Patch setAlt(java.lang.String alt) { + return (Patch) super.setAlt(alt); + } + + @Override + public Patch setCallback(java.lang.String callback) { + return (Patch) super.setCallback(callback); + } + + @Override + public Patch setFields(java.lang.String fields) { + return (Patch) super.setFields(fields); + } + + @Override + public Patch setKey(java.lang.String key) { + return (Patch) super.setKey(key); + } + + @Override + public Patch setOauthToken(java.lang.String oauthToken) { + return (Patch) super.setOauthToken(oauthToken); + } + + @Override + public Patch setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Patch) super.setPrettyPrint(prettyPrint); + } + + @Override + public Patch setQuotaUser(java.lang.String quotaUser) { + return (Patch) super.setQuotaUser(quotaUser); + } + + @Override + public Patch setUploadType(java.lang.String uploadType) { + return (Patch) super.setUploadType(uploadType); + } + + @Override + public Patch setUploadProtocol(java.lang.String uploadProtocol) { + return (Patch) super.setUploadProtocol(uploadProtocol); + } + + /** + * Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Identifier. The resource name of the publication. Format: + organizations/{organization}/publications/{publication} + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + */ + public Patch 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 " + + "^organizations/[^/]+/publications/[^/]+$"); + } + this.name = name; + return this; + } + + /** Optional. The list of fields to update. */ + @com.google.api.client.util.Key + private String updateMask; + + /** Optional. The list of fields to update. + */ + public String getUpdateMask() { + return updateMask; + } + + /** Optional. The list of fields to update. */ + public Patch setUpdateMask(String updateMask) { + this.updateMask = updateMask; + return this; + } + + @Override + public Patch set(String parameterName, Object value) { + return (Patch) super.set(parameterName, value); + } + } + + /** + * An accessor for creating requests from the Ctas collection. + * + *

The typical use is:

+ *
+       *   {@code WebContentPublisher webcontentpublisher = new WebContentPublisher(...);}
+       *   {@code WebContentPublisher.Ctas.List request = webcontentpublisher.ctas().list(parameters ...)}
+       * 
+ * + * @return the resource collection + */ + public Ctas ctas() { + return new Ctas(); + } + + /** + * The "ctas" collection of methods. + */ + public class Ctas { + + /** + * Creates a CTA. + * + * Create a request for the method "ctas.create". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link Create#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent publication resource where this CTA will be created. Format: + * `organizations/{organization}/publications/{publication}`. + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Cta} + * @return the request + */ + public Create create(java.lang.String parent, com.google.api.services.webcontentpublisher.v1.model.Cta content) throws java.io.IOException { + Create result = new Create(parent, content); + initialize(result); + return result; + } + + public class Create extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+parent}/ctas"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+$"); + + /** + * Creates a CTA. + * + * Create a request for the method "ctas.create". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link Create#execute()} method to invoke the remote + * operation.

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

+ * + * @param parent Required. The parent publication resource where this CTA will be created. Format: + * `organizations/{organization}/publications/{publication}`. + * @param content the {@link com.google.api.services.webcontentpublisher.v1.model.Cta} + * @since 1.13 + */ + protected Create(java.lang.String parent, com.google.api.services.webcontentpublisher.v1.model.Cta content) { + super(WebContentPublisher.this, "POST", REST_PATH, content, com.google.api.services.webcontentpublisher.v1.model.Cta.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/publications/[^/]+$"); + } + } + + @Override + public Create set$Xgafv(java.lang.String $Xgafv) { + return (Create) super.set$Xgafv($Xgafv); + } + + @Override + public Create setAccessToken(java.lang.String accessToken) { + return (Create) super.setAccessToken(accessToken); + } + + @Override + public Create setAlt(java.lang.String alt) { + return (Create) super.setAlt(alt); + } + + @Override + public Create setCallback(java.lang.String callback) { + return (Create) super.setCallback(callback); + } + + @Override + public Create setFields(java.lang.String fields) { + return (Create) super.setFields(fields); + } + + @Override + public Create setKey(java.lang.String key) { + return (Create) super.setKey(key); + } + + @Override + public Create setOauthToken(java.lang.String oauthToken) { + return (Create) super.setOauthToken(oauthToken); + } + + @Override + public Create setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Create) super.setPrettyPrint(prettyPrint); + } + + @Override + public Create setQuotaUser(java.lang.String quotaUser) { + return (Create) super.setQuotaUser(quotaUser); + } + + @Override + public Create setUploadType(java.lang.String uploadType) { + return (Create) super.setUploadType(uploadType); + } + + @Override + public Create setUploadProtocol(java.lang.String uploadProtocol) { + return (Create) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent publication resource where this CTA will be created. Format: + * `organizations/{organization}/publications/{publication}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent publication resource where this CTA will be created. Format: + `organizations/{organization}/publications/{publication}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent publication resource where this CTA will be created. Format: + * `organizations/{organization}/publications/{publication}`. + */ + public Create setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/publications/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The unique identifier of the CTA to create. If not specified, the server will + * generate a random CTA ID. + */ + @com.google.api.client.util.Key + private java.lang.String ctaId; + + /** Optional. The unique identifier of the CTA to create. If not specified, the server will generate a + random CTA ID. + */ + public java.lang.String getCtaId() { + return ctaId; + } + + /** + * Optional. The unique identifier of the CTA to create. If not specified, the server will + * generate a random CTA ID. + */ + public Create setCtaId(java.lang.String ctaId) { + this.ctaId = ctaId; + return this; + } + + @Override + public Create set(String parameterName, Object value) { + return (Create) super.set(parameterName, value); + } + } + /** + * Gets a CTA. + * + * Create a request for the method "ctas.get". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + * + * @param name Required. The resource name of the CTA to retrieve. Format: + * `organizations/{organization}/publications/{publication}/ctas/{cta}`. + * @return the request + */ + public Get get(java.lang.String name) throws java.io.IOException { + Get result = new Get(name); + initialize(result); + return result; + } + + public class Get extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+name}"; + + private final java.util.regex.Pattern NAME_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$"); + + /** + * Gets a CTA. + * + * Create a request for the method "ctas.get". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link Get#execute()} method to invoke the remote operation. + *

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

+ * + * @param name Required. The resource name of the CTA to retrieve. Format: + * `organizations/{organization}/publications/{publication}/ctas/{cta}`. + * @since 1.13 + */ + protected Get(java.lang.String name) { + super(WebContentPublisher.this, "GET", REST_PATH, null, com.google.api.services.webcontentpublisher.v1.model.Cta.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 " + + "^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public Get set$Xgafv(java.lang.String $Xgafv) { + return (Get) super.set$Xgafv($Xgafv); + } + + @Override + public Get setAccessToken(java.lang.String accessToken) { + return (Get) super.setAccessToken(accessToken); + } + + @Override + public Get setAlt(java.lang.String alt) { + return (Get) super.setAlt(alt); + } + + @Override + public Get setCallback(java.lang.String callback) { + return (Get) super.setCallback(callback); + } + + @Override + public Get setFields(java.lang.String fields) { + return (Get) super.setFields(fields); + } + + @Override + public Get setKey(java.lang.String key) { + return (Get) super.setKey(key); + } + + @Override + public Get setOauthToken(java.lang.String oauthToken) { + return (Get) super.setOauthToken(oauthToken); + } + + @Override + public Get setPrettyPrint(java.lang.Boolean prettyPrint) { + return (Get) super.setPrettyPrint(prettyPrint); + } + + @Override + public Get setQuotaUser(java.lang.String quotaUser) { + return (Get) super.setQuotaUser(quotaUser); + } + + @Override + public Get setUploadType(java.lang.String uploadType) { + return (Get) super.setUploadType(uploadType); + } + + @Override + public Get setUploadProtocol(java.lang.String uploadProtocol) { + return (Get) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The resource name of the CTA to retrieve. Format: + * `organizations/{organization}/publications/{publication}/ctas/{cta}`. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** Required. The resource name of the CTA to retrieve. Format: + `organizations/{organization}/publications/{publication}/ctas/{cta}`. + */ + public java.lang.String getName() { + return name; + } + + /** + * Required. The resource name of the CTA to retrieve. Format: + * `organizations/{organization}/publications/{publication}/ctas/{cta}`. + */ + public Get 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 " + + "^organizations/[^/]+/publications/[^/]+/ctas/[^/]+$"); + } + this.name = name; + return this; + } + + @Override + public Get set(String parameterName, Object value) { + return (Get) super.set(parameterName, value); + } + } + /** + * Lists CTAs. + * + * Create a request for the method "ctas.list". + * + * This request holds the parameters needed by the webcontentpublisher server. After setting any + * optional parameters, call the {@link List#execute()} method to invoke the remote operation. + * + * @param parent Required. The parent publication resource whose CTAs to list. Format: + * `organizations/{organization}/publications/{publication}`. + * @return the request + */ + public List list(java.lang.String parent) throws java.io.IOException { + List result = new List(parent); + initialize(result); + return result; + } + + public class List extends WebContentPublisherRequest { + + private static final String REST_PATH = "v1/{+parent}/ctas"; + + private final java.util.regex.Pattern PARENT_PATTERN = + java.util.regex.Pattern.compile("^organizations/[^/]+/publications/[^/]+$"); + + /** + * Lists CTAs. + * + * Create a request for the method "ctas.list". + * + * This request holds the parameters needed by the the webcontentpublisher server. After setting + * any optional parameters, call the {@link List#execute()} method to invoke the remote operation. + *

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

+ * + * @param parent Required. The parent publication resource whose CTAs to list. Format: + * `organizations/{organization}/publications/{publication}`. + * @since 1.13 + */ + protected List(java.lang.String parent) { + super(WebContentPublisher.this, "GET", REST_PATH, null, com.google.api.services.webcontentpublisher.v1.model.ListCtasResponse.class); + this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified."); + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/publications/[^/]+$"); + } + } + + @Override + public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException { + return super.executeUsingHead(); + } + + @Override + public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException { + return super.buildHttpRequestUsingHead(); + } + + @Override + public List set$Xgafv(java.lang.String $Xgafv) { + return (List) super.set$Xgafv($Xgafv); + } + + @Override + public List setAccessToken(java.lang.String accessToken) { + return (List) super.setAccessToken(accessToken); + } + + @Override + public List setAlt(java.lang.String alt) { + return (List) super.setAlt(alt); + } + + @Override + public List setCallback(java.lang.String callback) { + return (List) super.setCallback(callback); + } + + @Override + public List setFields(java.lang.String fields) { + return (List) super.setFields(fields); + } + + @Override + public List setKey(java.lang.String key) { + return (List) super.setKey(key); + } + + @Override + public List setOauthToken(java.lang.String oauthToken) { + return (List) super.setOauthToken(oauthToken); + } + + @Override + public List setPrettyPrint(java.lang.Boolean prettyPrint) { + return (List) super.setPrettyPrint(prettyPrint); + } + + @Override + public List setQuotaUser(java.lang.String quotaUser) { + return (List) super.setQuotaUser(quotaUser); + } + + @Override + public List setUploadType(java.lang.String uploadType) { + return (List) super.setUploadType(uploadType); + } + + @Override + public List setUploadProtocol(java.lang.String uploadProtocol) { + return (List) super.setUploadProtocol(uploadProtocol); + } + + /** + * Required. The parent publication resource whose CTAs to list. Format: + * `organizations/{organization}/publications/{publication}`. + */ + @com.google.api.client.util.Key + private java.lang.String parent; + + /** Required. The parent publication resource whose CTAs to list. Format: + `organizations/{organization}/publications/{publication}`. + */ + public java.lang.String getParent() { + return parent; + } + + /** + * Required. The parent publication resource whose CTAs to list. Format: + * `organizations/{organization}/publications/{publication}`. + */ + public List setParent(java.lang.String parent) { + if (!getSuppressPatternChecks()) { + com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(), + "Parameter parent must conform to the pattern " + + "^organizations/[^/]+/publications/[^/]+$"); + } + this.parent = parent; + return this; + } + + /** + * Optional. The maximum number of CTAs to return. The service may return fewer than this + * value. If unspecified, at most 50 CTAs will be returned. + */ + @com.google.api.client.util.Key + private java.lang.Integer pageSize; + + /** Optional. The maximum number of CTAs to return. The service may return fewer than this value. If + unspecified, at most 50 CTAs will be returned. + */ + public java.lang.Integer getPageSize() { + return pageSize; + } + + /** + * Optional. The maximum number of CTAs to return. The service may return fewer than this + * value. If unspecified, at most 50 CTAs will be returned. + */ + public List setPageSize(java.lang.Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * Optional. A page token, received from a previous `ListCtas` call, to retrieve the next + * page. + */ + @com.google.api.client.util.Key + private java.lang.String pageToken; + + /** Optional. A page token, received from a previous `ListCtas` call, to retrieve the next page. + */ + public java.lang.String getPageToken() { + return pageToken; + } + + /** + * Optional. A page token, received from a previous `ListCtas` call, to retrieve the next + * page. + */ + public List setPageToken(java.lang.String pageToken) { + this.pageToken = pageToken; + return this; + } + + @Override + public List set(String parameterName, Object value) { + return (List) super.set(parameterName, value); + } + } + + } + } + } + /** * An accessor for creating requests from the Publications collection. * diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisherScopes.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisherScopes.java index a96eb278bbe..4dfef5677cc 100644 --- a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisherScopes.java +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisherScopes.java @@ -23,6 +23,9 @@ */ public class WebContentPublisherScopes { + /** Private Service: https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.manage. */ + public static final String SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_MANAGE = "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.manage"; + /** See and review your subscription information. */ public static final String SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_READONLY = "https://www.googleapis.com/auth/subscribewithgoogle.publications.entitlements.readonly"; @@ -33,6 +36,7 @@ public class WebContentPublisherScopes { */ public static java.util.Set all() { java.util.Set set = new java.util.HashSet(); + set.add(SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_MANAGE); set.add(SUBSCRIBEWITHGOOGLE_PUBLICATIONS_ENTITLEMENTS_READONLY); return java.util.Collections.unmodifiableSet(set); } diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/CheckFreeAccessResponse.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/CheckFreeAccessResponse.java index 671bb4abba5..4395101241a 100644 --- a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/CheckFreeAccessResponse.java +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/CheckFreeAccessResponse.java @@ -31,14 +31,14 @@ public final class CheckFreeAccessResponse extends com.google.api.client.json.GenericJson { /** - * True if free access should be allowed, false otherwise. + * Output only. True if free access should be allowed, false otherwise. * The value may be {@code null}. */ @com.google.api.client.util.Key private java.lang.Boolean isAllowed; /** - * True if free access should be allowed, false otherwise. + * Output only. True if free access should be allowed, false otherwise. * @return value or {@code null} for none */ public java.lang.Boolean getIsAllowed() { @@ -46,7 +46,7 @@ public java.lang.Boolean getIsAllowed() { } /** - * True if free access should be allowed, false otherwise. + * Output only. True if free access should be allowed, false otherwise. * @param isAllowed isAllowed or {@code null} for none */ public CheckFreeAccessResponse setIsAllowed(java.lang.Boolean isAllowed) { diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ContentPolicyStatus.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ContentPolicyStatus.java new file mode 100644 index 00000000000..2cc7829d82e --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ContentPolicyStatus.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; + +/** + * The content policy status of the publication, indicating any violations. + * + *

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 ContentPolicyStatus extends com.google.api.client.json.GenericJson { + + /** + * Output only. URL pointing to more details about the policy violation or status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String policyInfoUrl; + + /** + * Output only. The current policy state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Output only. URL pointing to more details about the policy violation or status. + * @return value or {@code null} for none + */ + public java.lang.String getPolicyInfoUrl() { + return policyInfoUrl; + } + + /** + * Output only. URL pointing to more details about the policy violation or status. + * @param policyInfoUrl policyInfoUrl or {@code null} for none + */ + public ContentPolicyStatus setPolicyInfoUrl(java.lang.String policyInfoUrl) { + this.policyInfoUrl = policyInfoUrl; + return this; + } + + /** + * Output only. The current policy state. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current policy state. + * @param state state or {@code null} for none + */ + public ContentPolicyStatus setState(java.lang.String state) { + this.state = state; + return this; + } + + @Override + public ContentPolicyStatus set(String fieldName, Object value) { + return (ContentPolicyStatus) super.set(fieldName, value); + } + + @Override + public ContentPolicyStatus clone() { + return (ContentPolicyStatus) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Cta.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Cta.java new file mode 100644 index 00000000000..29b52b6784a --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Cta.java @@ -0,0 +1,169 @@ +/* + * 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 Call-To-Action (CTA) configuration for a publication. + * + *

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 Cta extends com.google.api.client.json.GenericJson { + + /** + * Required. The user-visible display name of the CTA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Identifier. The resource name of the Cta. Format: + * organizations/{organization}/publications/{publication}/ctas/{cta} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Optional. Configuration specific to newsletter signup CTAs. Only populated if type is + * `NEWSLETTER_SIGNUP`. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private NewsletterConfig newsletterConfig; + + /** + * Output only. The current state of this CTA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String state; + + /** + * Required. The type of this CTA. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String type; + + /** + * Required. The user-visible display name of the CTA. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The user-visible display name of the CTA. + * @param displayName displayName or {@code null} for none + */ + public Cta setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Identifier. The resource name of the Cta. Format: + * organizations/{organization}/publications/{publication}/ctas/{cta} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the Cta. Format: + * organizations/{organization}/publications/{publication}/ctas/{cta} + * @param name name or {@code null} for none + */ + public Cta setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Optional. Configuration specific to newsletter signup CTAs. Only populated if type is + * `NEWSLETTER_SIGNUP`. + * @return value or {@code null} for none + */ + public NewsletterConfig getNewsletterConfig() { + return newsletterConfig; + } + + /** + * Optional. Configuration specific to newsletter signup CTAs. Only populated if type is + * `NEWSLETTER_SIGNUP`. + * @param newsletterConfig newsletterConfig or {@code null} for none + */ + public Cta setNewsletterConfig(NewsletterConfig newsletterConfig) { + this.newsletterConfig = newsletterConfig; + return this; + } + + /** + * Output only. The current state of this CTA. + * @return value or {@code null} for none + */ + public java.lang.String getState() { + return state; + } + + /** + * Output only. The current state of this CTA. + * @param state state or {@code null} for none + */ + public Cta setState(java.lang.String state) { + this.state = state; + return this; + } + + /** + * Required. The type of this CTA. + * @return value or {@code null} for none + */ + public java.lang.String getType() { + return type; + } + + /** + * Required. The type of this CTA. + * @param type type or {@code null} for none + */ + public Cta setType(java.lang.String type) { + this.type = type; + return this; + } + + @Override + public Cta set(String fieldName, Object value) { + return (Cta) super.set(fieldName, value); + } + + @Override + public Cta clone() { + return (Cta) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/DomainProperty.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/DomainProperty.java new file mode 100644 index 00000000000..19ebd4651ff --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/DomainProperty.java @@ -0,0 +1,92 @@ +/* + * 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 property associated with a publication, typically used to verify ownership + * and scope access. + * + *

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 DomainProperty extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the domain ownership has been verified (e.g., via Google Search Console). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean ownershipVerified; + + /** + * Required. The URL of the domain property (e.g., "https://example.com"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String url; + + /** + * Optional. Whether the domain ownership has been verified (e.g., via Google Search Console). + * @return value or {@code null} for none + */ + public java.lang.Boolean getOwnershipVerified() { + return ownershipVerified; + } + + /** + * Optional. Whether the domain ownership has been verified (e.g., via Google Search Console). + * @param ownershipVerified ownershipVerified or {@code null} for none + */ + public DomainProperty setOwnershipVerified(java.lang.Boolean ownershipVerified) { + this.ownershipVerified = ownershipVerified; + return this; + } + + /** + * Required. The URL of the domain property (e.g., "https://example.com"). + * @return value or {@code null} for none + */ + public java.lang.String getUrl() { + return url; + } + + /** + * Required. The URL of the domain property (e.g., "https://example.com"). + * @param url url or {@code null} for none + */ + public DomainProperty setUrl(java.lang.String url) { + this.url = url; + return this; + } + + @Override + public DomainProperty set(String fieldName, Object value) { + return (DomainProperty) super.set(fieldName, value); + } + + @Override + public DomainProperty clone() { + return (DomainProperty) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListCtasResponse.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListCtasResponse.java new file mode 100644 index 00000000000..96756802822 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListCtasResponse.java @@ -0,0 +1,100 @@ +/* + * 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 `ListCtas`. + * + *

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 ListCtasResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. The list of CTAs. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List ctas; + + static { + // hack to force ProGuard to consider Cta used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(Cta.class); + } + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. The list of CTAs. + * @return value or {@code null} for none + */ + public java.util.List getCtas() { + return ctas; + } + + /** + * Output only. The list of CTAs. + * @param ctas ctas or {@code null} for none + */ + public ListCtasResponse setCtas(java.util.List ctas) { + this.ctas = ctas; + return this; + } + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListCtasResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + @Override + public ListCtasResponse set(String fieldName, Object value) { + return (ListCtasResponse) super.set(fieldName, value); + } + + @Override + public ListCtasResponse clone() { + return (ListCtasResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListPublicationsResponse.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListPublicationsResponse.java new file mode 100644 index 00000000000..d73a28d5d46 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/ListPublicationsResponse.java @@ -0,0 +1,94 @@ +/* + * 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 `ListPublications`. + * + *

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 ListPublicationsResponse extends com.google.api.client.json.GenericJson { + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String nextPageToken; + + /** + * Output only. The list of publications. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List publications; + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * @return value or {@code null} for none + */ + public java.lang.String getNextPageToken() { + return nextPageToken; + } + + /** + * Output only. A token to retrieve the next page of results, or empty if there are no more + * results. + * @param nextPageToken nextPageToken or {@code null} for none + */ + public ListPublicationsResponse setNextPageToken(java.lang.String nextPageToken) { + this.nextPageToken = nextPageToken; + return this; + } + + /** + * Output only. The list of publications. + * @return value or {@code null} for none + */ + public java.util.List getPublications() { + return publications; + } + + /** + * Output only. The list of publications. + * @param publications publications or {@code null} for none + */ + public ListPublicationsResponse setPublications(java.util.List publications) { + this.publications = publications; + return this; + } + + @Override + public ListPublicationsResponse set(String fieldName, Object value) { + return (ListPublicationsResponse) super.set(fieldName, value); + } + + @Override + public ListPublicationsResponse clone() { + return (ListPublicationsResponse) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/NewsletterConfig.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/NewsletterConfig.java new file mode 100644 index 00000000000..ea0892273e1 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/NewsletterConfig.java @@ -0,0 +1,139 @@ +/* + * 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; + +/** + * Configuration for newsletter signup calls-to-action (CTAs). + * + *

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 NewsletterConfig extends com.google.api.client.json.GenericJson { + + /** + * Optional. Custom consent or disclosure text shown to the user. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customConsentText; + + /** + * Optional. A custom message displayed to the user in the signup prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String customMessage; + + /** + * Optional. Whether the user is required to provide their name to sign up. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean nameRequired; + + /** + * Required. The title of the newsletter signup prompt. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String title; + + /** + * Optional. Custom consent or disclosure text shown to the user. + * @return value or {@code null} for none + */ + public java.lang.String getCustomConsentText() { + return customConsentText; + } + + /** + * Optional. Custom consent or disclosure text shown to the user. + * @param customConsentText customConsentText or {@code null} for none + */ + public NewsletterConfig setCustomConsentText(java.lang.String customConsentText) { + this.customConsentText = customConsentText; + return this; + } + + /** + * Optional. A custom message displayed to the user in the signup prompt. + * @return value or {@code null} for none + */ + public java.lang.String getCustomMessage() { + return customMessage; + } + + /** + * Optional. A custom message displayed to the user in the signup prompt. + * @param customMessage customMessage or {@code null} for none + */ + public NewsletterConfig setCustomMessage(java.lang.String customMessage) { + this.customMessage = customMessage; + return this; + } + + /** + * Optional. Whether the user is required to provide their name to sign up. + * @return value or {@code null} for none + */ + public java.lang.Boolean getNameRequired() { + return nameRequired; + } + + /** + * Optional. Whether the user is required to provide their name to sign up. + * @param nameRequired nameRequired or {@code null} for none + */ + public NewsletterConfig setNameRequired(java.lang.Boolean nameRequired) { + this.nameRequired = nameRequired; + return this; + } + + /** + * Required. The title of the newsletter signup prompt. + * @return value or {@code null} for none + */ + public java.lang.String getTitle() { + return title; + } + + /** + * Required. The title of the newsletter signup prompt. + * @param title title or {@code null} for none + */ + public NewsletterConfig setTitle(java.lang.String title) { + this.title = title; + return this; + } + + @Override + public NewsletterConfig set(String fieldName, Object value) { + return (NewsletterConfig) super.set(fieldName, value); + } + + @Override + public NewsletterConfig clone() { + return (NewsletterConfig) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Publication.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Publication.java new file mode 100644 index 00000000000..f64968ed0fa --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/Publication.java @@ -0,0 +1,436 @@ +/* + * 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 publisher's publication in Reader Revenue Manager. + * + *

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 Publication extends com.google.api.client.json.GenericJson { + + /** + * Optional. Additional domain properties verified for the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List additionalDomains; + + static { + // hack to force ProGuard to consider DomainProperty used, since otherwise it would be stripped out + // see https://github.com/google/google-api-java-client/issues/543 + com.google.api.client.util.Data.nullOf(DomainProperty.class); + } + + /** + * Output only. The content policy compliance status of the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private ContentPolicyStatus contentPolicyStatus; + + /** + * Required. The user-visible display name of the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String displayName; + + /** + * Required. The primary language of the publication (BCP-47 code, e.g., "en-US"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String languageCode; + + /** + * Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String name; + + /** + * Output only. The current onboarding state. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String onboardingState; + + /** + * Output only. The unique identifier of the organization that owns this publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String organizationId; + + /** + * Output only. The configured payment option. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String paymentOption; + + /** + * Required. The primary domain property associated with the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private DomainProperty primaryDomain; + + /** + * Output only. The list of active products/features enabled for this publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.util.List products; + + /** + * Output only. The unique identifier of the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publicationId; + + /** + * Optional. The URL to the publisher's Privacy Policy. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publicationPrivacyPolicyUrl; + + /** + * Optional. The URL to the publisher's own Terms of Service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String publicationTosUrl; + + /** + * Required. The ISO 3166-1 alpha-2 region code where the publication is registered (e.g., "US"). + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String regionCode; + + /** + * Optional. Reader Revenue Manager product settings and status. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private RrmProduct rrmProduct; + + /** + * Optional. Subscription Linking product configurations. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private SlProduct slProduct; + + /** + * Optional. Additional domain properties verified for the publication. + * @return value or {@code null} for none + */ + public java.util.List getAdditionalDomains() { + return additionalDomains; + } + + /** + * Optional. Additional domain properties verified for the publication. + * @param additionalDomains additionalDomains or {@code null} for none + */ + public Publication setAdditionalDomains(java.util.List additionalDomains) { + this.additionalDomains = additionalDomains; + return this; + } + + /** + * Output only. The content policy compliance status of the publication. + * @return value or {@code null} for none + */ + public ContentPolicyStatus getContentPolicyStatus() { + return contentPolicyStatus; + } + + /** + * Output only. The content policy compliance status of the publication. + * @param contentPolicyStatus contentPolicyStatus or {@code null} for none + */ + public Publication setContentPolicyStatus(ContentPolicyStatus contentPolicyStatus) { + this.contentPolicyStatus = contentPolicyStatus; + return this; + } + + /** + * Required. The user-visible display name of the publication. + * @return value or {@code null} for none + */ + public java.lang.String getDisplayName() { + return displayName; + } + + /** + * Required. The user-visible display name of the publication. + * @param displayName displayName or {@code null} for none + */ + public Publication setDisplayName(java.lang.String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Required. The primary language of the publication (BCP-47 code, e.g., "en-US"). + * @return value or {@code null} for none + */ + public java.lang.String getLanguageCode() { + return languageCode; + } + + /** + * Required. The primary language of the publication (BCP-47 code, e.g., "en-US"). + * @param languageCode languageCode or {@code null} for none + */ + public Publication setLanguageCode(java.lang.String languageCode) { + this.languageCode = languageCode; + return this; + } + + /** + * Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + * @return value or {@code null} for none + */ + public java.lang.String getName() { + return name; + } + + /** + * Identifier. The resource name of the publication. Format: + * organizations/{organization}/publications/{publication} + * @param name name or {@code null} for none + */ + public Publication setName(java.lang.String name) { + this.name = name; + return this; + } + + /** + * Output only. The current onboarding state. + * @return value or {@code null} for none + */ + public java.lang.String getOnboardingState() { + return onboardingState; + } + + /** + * Output only. The current onboarding state. + * @param onboardingState onboardingState or {@code null} for none + */ + public Publication setOnboardingState(java.lang.String onboardingState) { + this.onboardingState = onboardingState; + return this; + } + + /** + * Output only. The unique identifier of the organization that owns this publication. + * @return value or {@code null} for none + */ + public java.lang.String getOrganizationId() { + return organizationId; + } + + /** + * Output only. The unique identifier of the organization that owns this publication. + * @param organizationId organizationId or {@code null} for none + */ + public Publication setOrganizationId(java.lang.String organizationId) { + this.organizationId = organizationId; + return this; + } + + /** + * Output only. The configured payment option. + * @return value or {@code null} for none + */ + public java.lang.String getPaymentOption() { + return paymentOption; + } + + /** + * Output only. The configured payment option. + * @param paymentOption paymentOption or {@code null} for none + */ + public Publication setPaymentOption(java.lang.String paymentOption) { + this.paymentOption = paymentOption; + return this; + } + + /** + * Required. The primary domain property associated with the publication. + * @return value or {@code null} for none + */ + public DomainProperty getPrimaryDomain() { + return primaryDomain; + } + + /** + * Required. The primary domain property associated with the publication. + * @param primaryDomain primaryDomain or {@code null} for none + */ + public Publication setPrimaryDomain(DomainProperty primaryDomain) { + this.primaryDomain = primaryDomain; + return this; + } + + /** + * Output only. The list of active products/features enabled for this publication. + * @return value or {@code null} for none + */ + public java.util.List getProducts() { + return products; + } + + /** + * Output only. The list of active products/features enabled for this publication. + * @param products products or {@code null} for none + */ + public Publication setProducts(java.util.List products) { + this.products = products; + return this; + } + + /** + * Output only. The unique identifier of the publication. + * @return value or {@code null} for none + */ + public java.lang.String getPublicationId() { + return publicationId; + } + + /** + * Output only. The unique identifier of the publication. + * @param publicationId publicationId or {@code null} for none + */ + public Publication setPublicationId(java.lang.String publicationId) { + this.publicationId = publicationId; + return this; + } + + /** + * Optional. The URL to the publisher's Privacy Policy. + * @return value or {@code null} for none + */ + public java.lang.String getPublicationPrivacyPolicyUrl() { + return publicationPrivacyPolicyUrl; + } + + /** + * Optional. The URL to the publisher's Privacy Policy. + * @param publicationPrivacyPolicyUrl publicationPrivacyPolicyUrl or {@code null} for none + */ + public Publication setPublicationPrivacyPolicyUrl(java.lang.String publicationPrivacyPolicyUrl) { + this.publicationPrivacyPolicyUrl = publicationPrivacyPolicyUrl; + return this; + } + + /** + * Optional. The URL to the publisher's own Terms of Service. + * @return value or {@code null} for none + */ + public java.lang.String getPublicationTosUrl() { + return publicationTosUrl; + } + + /** + * Optional. The URL to the publisher's own Terms of Service. + * @param publicationTosUrl publicationTosUrl or {@code null} for none + */ + public Publication setPublicationTosUrl(java.lang.String publicationTosUrl) { + this.publicationTosUrl = publicationTosUrl; + return this; + } + + /** + * Required. The ISO 3166-1 alpha-2 region code where the publication is registered (e.g., "US"). + * @return value or {@code null} for none + */ + public java.lang.String getRegionCode() { + return regionCode; + } + + /** + * Required. The ISO 3166-1 alpha-2 region code where the publication is registered (e.g., "US"). + * @param regionCode regionCode or {@code null} for none + */ + public Publication setRegionCode(java.lang.String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * Optional. Reader Revenue Manager product settings and status. + * @return value or {@code null} for none + */ + public RrmProduct getRrmProduct() { + return rrmProduct; + } + + /** + * Optional. Reader Revenue Manager product settings and status. + * @param rrmProduct rrmProduct or {@code null} for none + */ + public Publication setRrmProduct(RrmProduct rrmProduct) { + this.rrmProduct = rrmProduct; + return this; + } + + /** + * Optional. Subscription Linking product configurations. + * @return value or {@code null} for none + */ + public SlProduct getSlProduct() { + return slProduct; + } + + /** + * Optional. Subscription Linking product configurations. + * @param slProduct slProduct or {@code null} for none + */ + public Publication setSlProduct(SlProduct slProduct) { + this.slProduct = slProduct; + return this; + } + + @Override + public Publication set(String fieldName, Object value) { + return (Publication) super.set(fieldName, value); + } + + @Override + public Publication clone() { + return (Publication) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/RrmProduct.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/RrmProduct.java new file mode 100644 index 00000000000..79b2e4452c5 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/RrmProduct.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Configuration and status of the Reader Revenue Manager (RRM) product for a publication. + * + *

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 RrmProduct extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the RRM product is enabled for the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Output only. The URL to the product-specific Terms of Service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String productTosUrl; + + /** + * Optional. The details of the TOS acceptance. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private TosAcceptance tosAcceptance; + + /** + * Optional. Whether the RRM product is enabled for the publication. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Whether the RRM product is enabled for the publication. + * @param enabled enabled or {@code null} for none + */ + public RrmProduct setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Output only. The URL to the product-specific Terms of Service. + * @return value or {@code null} for none + */ + public java.lang.String getProductTosUrl() { + return productTosUrl; + } + + /** + * Output only. The URL to the product-specific Terms of Service. + * @param productTosUrl productTosUrl or {@code null} for none + */ + public RrmProduct setProductTosUrl(java.lang.String productTosUrl) { + this.productTosUrl = productTosUrl; + return this; + } + + /** + * Optional. The details of the TOS acceptance. + * @return value or {@code null} for none + */ + public TosAcceptance getTosAcceptance() { + return tosAcceptance; + } + + /** + * Optional. The details of the TOS acceptance. + * @param tosAcceptance tosAcceptance or {@code null} for none + */ + public RrmProduct setTosAcceptance(TosAcceptance tosAcceptance) { + this.tosAcceptance = tosAcceptance; + return this; + } + + @Override + public RrmProduct set(String fieldName, Object value) { + return (RrmProduct) super.set(fieldName, value); + } + + @Override + public RrmProduct clone() { + return (RrmProduct) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SlProduct.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SlProduct.java new file mode 100644 index 00000000000..68c7b03ce14 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/SlProduct.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; + +/** + * Subscription Linking (SL) product settings and status. + * + *

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 SlProduct extends com.google.api.client.json.GenericJson { + + /** + * Optional. Whether the Subscription Linking product is enabled. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean enabled; + + /** + * Optional. The Google Cloud Project number associated with the publication. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key @com.google.api.client.json.JsonString + private java.lang.Long gcpProjectNumber; + + /** + * Optional. Whether the Subscription Linking product is enabled. + * @return value or {@code null} for none + */ + public java.lang.Boolean getEnabled() { + return enabled; + } + + /** + * Optional. Whether the Subscription Linking product is enabled. + * @param enabled enabled or {@code null} for none + */ + public SlProduct setEnabled(java.lang.Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Optional. The Google Cloud Project number associated with the publication. + * @return value or {@code null} for none + */ + public java.lang.Long getGcpProjectNumber() { + return gcpProjectNumber; + } + + /** + * Optional. The Google Cloud Project number associated with the publication. + * @param gcpProjectNumber gcpProjectNumber or {@code null} for none + */ + public SlProduct setGcpProjectNumber(java.lang.Long gcpProjectNumber) { + this.gcpProjectNumber = gcpProjectNumber; + return this; + } + + @Override + public SlProduct set(String fieldName, Object value) { + return (SlProduct) super.set(fieldName, value); + } + + @Override + public SlProduct clone() { + return (SlProduct) super.clone(); + } + +} diff --git a/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/TosAcceptance.java b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/TosAcceptance.java new file mode 100644 index 00000000000..efccad77e54 --- /dev/null +++ b/clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/model/TosAcceptance.java @@ -0,0 +1,115 @@ +/* + * 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; + +/** + * Details about the acceptance of the Terms of Service (TOS). + * + *

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 TosAcceptance extends com.google.api.client.json.GenericJson { + + /** + * Optional. The name of the person who accepted the TOS. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signer; + + /** + * Optional. The job title or role of the signer. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.String signerTitle; + + /** + * Required. Whether the user has accepted the Terms of Service. + * The value may be {@code null}. + */ + @com.google.api.client.util.Key + private java.lang.Boolean userAccepted; + + /** + * Optional. The name of the person who accepted the TOS. + * @return value or {@code null} for none + */ + public java.lang.String getSigner() { + return signer; + } + + /** + * Optional. The name of the person who accepted the TOS. + * @param signer signer or {@code null} for none + */ + public TosAcceptance setSigner(java.lang.String signer) { + this.signer = signer; + return this; + } + + /** + * Optional. The job title or role of the signer. + * @return value or {@code null} for none + */ + public java.lang.String getSignerTitle() { + return signerTitle; + } + + /** + * Optional. The job title or role of the signer. + * @param signerTitle signerTitle or {@code null} for none + */ + public TosAcceptance setSignerTitle(java.lang.String signerTitle) { + this.signerTitle = signerTitle; + return this; + } + + /** + * Required. Whether the user has accepted the Terms of Service. + * @return value or {@code null} for none + */ + public java.lang.Boolean getUserAccepted() { + return userAccepted; + } + + /** + * Required. Whether the user has accepted the Terms of Service. + * @param userAccepted userAccepted or {@code null} for none + */ + public TosAcceptance setUserAccepted(java.lang.Boolean userAccepted) { + this.userAccepted = userAccepted; + return this; + } + + @Override + public TosAcceptance set(String fieldName, Object value) { + return (TosAcceptance) super.set(fieldName, value); + } + + @Override + public TosAcceptance clone() { + return (TosAcceptance) 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 88fbe2a0e79..7577a67c3ee 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-rev20260526-2.0.0 - Web Content Publisher API v1-rev20260526-2.0.0 + v1-rev20260629-2.0.0 + Web Content Publisher API v1-rev20260629-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 4f94f16d5b9..217b3bd1791 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-rev20260526-2.0.0 + v1-rev20260629-2.0.0 @@ -35,7 +35,7 @@ repositories { mavenCentral() } dependencies { - implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260526-2.0.0' + implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20260629-2.0.0' } ```