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:
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{@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{@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{@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{@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{@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{@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{@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.SetThis 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.ListThis 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.ListThis 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.ListThis 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 @@