Skip to content

Commit 7260c9d

Browse files
chore: regenerate webcontentpublisher client (#33869)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
1 parent 2a919f5 commit 7260c9d

6 files changed

Lines changed: 254 additions & 11 deletions

File tree

‎clients/google-api-services-webcontentpublisher/v1/2.0.0/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-webcontentpublisher</artifactId>
25-
<version>v1-rev20261028-2.9.2</version>
25+
<version>v1-rev20261103-2.9.2</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20261028-2.9.2'
38+
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20261103-2.9.2'
3939
}
4040
```
4141

‎clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisher.java‎

Lines changed: 177 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,7 +1739,7 @@ public class Publications {
17391739
* optional parameters, call the {@link CheckFreeAccess#execute()} method to invoke the remote
17401740
* operation.
17411741
*
1742-
* @param name Required. The resource name of the publication. Format: publications/{publication_id}
1742+
* @param name Required. The resource name of the publication. Format: publications/{publication}
17431743
* @return the request
17441744
*/
17451745
public CheckFreeAccess checkFreeAccess(java.lang.String name) throws java.io.IOException {
@@ -1766,7 +1766,7 @@ public class CheckFreeAccess extends WebContentPublisherRequest<com.google.api.s
17661766
* ractGoogleClientRequest)} must be called to initialize this instance immediately after invoking
17671767
* the constructor. </p>
17681768
*
1769-
* @param name Required. The resource name of the publication. Format: publications/{publication_id}
1769+
* @param name Required. The resource name of the publication. Format: publications/{publication}
17701770
* @since 1.13
17711771
*/
17721772
protected CheckFreeAccess(java.lang.String name) {
@@ -1844,17 +1844,17 @@ public CheckFreeAccess setUploadProtocol(java.lang.String uploadProtocol) {
18441844
return (CheckFreeAccess) super.setUploadProtocol(uploadProtocol);
18451845
}
18461846

1847-
/** Required. The resource name of the publication. Format: publications/{publication_id} */
1847+
/** Required. The resource name of the publication. Format: publications/{publication} */
18481848
@com.google.api.client.util.Key
18491849
private java.lang.String name;
18501850

1851-
/** Required. The resource name of the publication. Format: publications/{publication_id}
1851+
/** Required. The resource name of the publication. Format: publications/{publication}
18521852
*/
18531853
public java.lang.String getName() {
18541854
return name;
18551855
}
18561856

1857-
/** Required. The resource name of the publication. Format: publications/{publication_id} */
1857+
/** Required. The resource name of the publication. Format: publications/{publication} */
18581858
public CheckFreeAccess setName(java.lang.String name) {
18591859
if (!getSuppressPatternChecks()) {
18601860
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
@@ -1902,6 +1902,178 @@ public CheckFreeAccess set(String parameterName, Object value) {
19021902
return (CheckFreeAccess) super.set(parameterName, value);
19031903
}
19041904
}
1905+
/**
1906+
* Checks if a reader has active program access.
1907+
*
1908+
* Create a request for the method "publications.checkProgramAccess".
1909+
*
1910+
* This request holds the parameters needed by the webcontentpublisher server. After setting any
1911+
* optional parameters, call the {@link CheckProgramAccess#execute()} method to invoke the remote
1912+
* operation.
1913+
*
1914+
* @param name Required. The resource name of the publication. Format: publications/{publication}
1915+
* @return the request
1916+
*/
1917+
public CheckProgramAccess checkProgramAccess(java.lang.String name) throws java.io.IOException {
1918+
CheckProgramAccess result = new CheckProgramAccess(name);
1919+
initialize(result);
1920+
return result;
1921+
}
1922+
1923+
public class CheckProgramAccess extends WebContentPublisherRequest<com.google.api.services.webcontentpublisher.v1.model.CheckProgramAccessResponse> {
1924+
1925+
private static final String REST_PATH = "v1/{+name}:checkProgramAccess";
1926+
1927+
private final java.util.regex.Pattern NAME_PATTERN =
1928+
java.util.regex.Pattern.compile("^publications/[^/]+$");
1929+
1930+
/**
1931+
* Checks if a reader has active program access.
1932+
*
1933+
* Create a request for the method "publications.checkProgramAccess".
1934+
*
1935+
* This request holds the parameters needed by the the webcontentpublisher server. After setting
1936+
* any optional parameters, call the {@link CheckProgramAccess#execute()} method to invoke the
1937+
* remote operation. <p> {@link CheckProgramAccess#initialize(com.google.api.client.googleapis.ser
1938+
* vices.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
1939+
* after invoking the constructor. </p>
1940+
*
1941+
* @param name Required. The resource name of the publication. Format: publications/{publication}
1942+
* @since 1.13
1943+
*/
1944+
protected CheckProgramAccess(java.lang.String name) {
1945+
super(WebContentPublisher.this, "GET", REST_PATH, null, com.google.api.services.webcontentpublisher.v1.model.CheckProgramAccessResponse.class);
1946+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1947+
if (!getSuppressPatternChecks()) {
1948+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1949+
"Parameter name must conform to the pattern " +
1950+
"^publications/[^/]+$");
1951+
}
1952+
}
1953+
1954+
@Override
1955+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
1956+
return super.executeUsingHead();
1957+
}
1958+
1959+
@Override
1960+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
1961+
return super.buildHttpRequestUsingHead();
1962+
}
1963+
1964+
@Override
1965+
public CheckProgramAccess set$Xgafv(java.lang.String $Xgafv) {
1966+
return (CheckProgramAccess) super.set$Xgafv($Xgafv);
1967+
}
1968+
1969+
@Override
1970+
public CheckProgramAccess setAccessToken(java.lang.String accessToken) {
1971+
return (CheckProgramAccess) super.setAccessToken(accessToken);
1972+
}
1973+
1974+
@Override
1975+
public CheckProgramAccess setAlt(java.lang.String alt) {
1976+
return (CheckProgramAccess) super.setAlt(alt);
1977+
}
1978+
1979+
@Override
1980+
public CheckProgramAccess setCallback(java.lang.String callback) {
1981+
return (CheckProgramAccess) super.setCallback(callback);
1982+
}
1983+
1984+
@Override
1985+
public CheckProgramAccess setFields(java.lang.String fields) {
1986+
return (CheckProgramAccess) super.setFields(fields);
1987+
}
1988+
1989+
@Override
1990+
public CheckProgramAccess setKey(java.lang.String key) {
1991+
return (CheckProgramAccess) super.setKey(key);
1992+
}
1993+
1994+
@Override
1995+
public CheckProgramAccess setOauthToken(java.lang.String oauthToken) {
1996+
return (CheckProgramAccess) super.setOauthToken(oauthToken);
1997+
}
1998+
1999+
@Override
2000+
public CheckProgramAccess setPrettyPrint(java.lang.Boolean prettyPrint) {
2001+
return (CheckProgramAccess) super.setPrettyPrint(prettyPrint);
2002+
}
2003+
2004+
@Override
2005+
public CheckProgramAccess setQuotaUser(java.lang.String quotaUser) {
2006+
return (CheckProgramAccess) super.setQuotaUser(quotaUser);
2007+
}
2008+
2009+
@Override
2010+
public CheckProgramAccess setUploadType(java.lang.String uploadType) {
2011+
return (CheckProgramAccess) super.setUploadType(uploadType);
2012+
}
2013+
2014+
@Override
2015+
public CheckProgramAccess setUploadProtocol(java.lang.String uploadProtocol) {
2016+
return (CheckProgramAccess) super.setUploadProtocol(uploadProtocol);
2017+
}
2018+
2019+
/** Required. The resource name of the publication. Format: publications/{publication} */
2020+
@com.google.api.client.util.Key
2021+
private java.lang.String name;
2022+
2023+
/** Required. The resource name of the publication. Format: publications/{publication}
2024+
*/
2025+
public java.lang.String getName() {
2026+
return name;
2027+
}
2028+
2029+
/** Required. The resource name of the publication. Format: publications/{publication} */
2030+
public CheckProgramAccess setName(java.lang.String name) {
2031+
if (!getSuppressPatternChecks()) {
2032+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2033+
"Parameter name must conform to the pattern " +
2034+
"^publications/[^/]+$");
2035+
}
2036+
this.name = name;
2037+
return this;
2038+
}
2039+
2040+
/** Required. The specific product ID being accessed. */
2041+
@com.google.api.client.util.Key
2042+
private java.lang.String productId;
2043+
2044+
/** Required. The specific product ID being accessed.
2045+
*/
2046+
public java.lang.String getProductId() {
2047+
return productId;
2048+
}
2049+
2050+
/** Required. The specific product ID being accessed. */
2051+
public CheckProgramAccess setProductId(java.lang.String productId) {
2052+
this.productId = productId;
2053+
return this;
2054+
}
2055+
2056+
/** Required. The encrypted site token string received from the Chrome HTTP header. */
2057+
@com.google.api.client.util.Key
2058+
private java.lang.String swgUserToken;
2059+
2060+
/** Required. The encrypted site token string received from the Chrome HTTP header.
2061+
*/
2062+
public java.lang.String getSwgUserToken() {
2063+
return swgUserToken;
2064+
}
2065+
2066+
/** Required. The encrypted site token string received from the Chrome HTTP header. */
2067+
public CheckProgramAccess setSwgUserToken(java.lang.String swgUserToken) {
2068+
this.swgUserToken = swgUserToken;
2069+
return this;
2070+
}
2071+
2072+
@Override
2073+
public CheckProgramAccess set(String parameterName, Object value) {
2074+
return (CheckProgramAccess) super.set(parameterName, value);
2075+
}
2076+
}
19052077

19062078
}
19072079

‎clients/google-api-services-webcontentpublisher/v1/2.0.0/com/google/api/services/webcontentpublisher/v1/WebContentPublisherScopes.java‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
*/
2424
public class WebContentPublisherScopes {
2525

26+
/** Private Service: https://www.googleapis.com/auth/webcontentpublisher.publications.entitlements.readonly.system. */
27+
public static final String WEBCONTENTPUBLISHER_PUBLICATIONS_ENTITLEMENTS_READONLY_SYSTEM = "https://www.googleapis.com/auth/webcontentpublisher.publications.entitlements.readonly.system";
28+
2629
/** Private Service: https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system. */
2730
public static final String WEBCONTENTPUBLISHER_PUBLICATIONS_MANAGE_SYSTEM = "https://www.googleapis.com/auth/webcontentpublisher.publications.manage.system";
2831

@@ -33,6 +36,7 @@ public class WebContentPublisherScopes {
3336
*/
3437
public static java.util.Set<String> all() {
3538
java.util.Set<String> set = new java.util.HashSet<String>();
39+
set.add(WEBCONTENTPUBLISHER_PUBLICATIONS_ENTITLEMENTS_READONLY_SYSTEM);
3640
set.add(WEBCONTENTPUBLISHER_PUBLICATIONS_MANAGE_SYSTEM);
3741
return java.util.Collections.unmodifiableSet(set);
3842
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
/*
2+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
3+
* in compliance with the License. You may obtain a copy of the License at
4+
*
5+
* http://www.apache.org/licenses/LICENSE-2.0
6+
*
7+
* Unless required by applicable law or agreed to in writing, software distributed under the License
8+
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
9+
* or implied. See the License for the specific language governing permissions and limitations under
10+
* the License.
11+
*/
12+
/*
13+
* This code was generated by https://github.com/googleapis/google-api-java-client-services/
14+
* Modify at your own risk.
15+
*/
16+
17+
package com.google.api.services.webcontentpublisher.v1.model;
18+
19+
/**
20+
* Response message for `CheckProgramAccess`.
21+
*
22+
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
23+
* transmitted over HTTP when working with the Web Content Publisher API. For a detailed explanation
24+
* see:
25+
* <a href="https://developers.google.com/api-client-library/java/google-http-java-client/json">https://developers.google.com/api-client-library/java/google-http-java-client/json</a>
26+
* </p>
27+
*
28+
* @author Google, Inc.
29+
*/
30+
@SuppressWarnings("javadoc")
31+
public final class CheckProgramAccessResponse extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* The entitlement access status.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String status;
39+
40+
/**
41+
* The entitlement access status.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getStatus() {
45+
return status;
46+
}
47+
48+
/**
49+
* The entitlement access status.
50+
* @param status status or {@code null} for none
51+
*/
52+
public CheckProgramAccessResponse setStatus(java.lang.String status) {
53+
this.status = status;
54+
return this;
55+
}
56+
57+
@Override
58+
public CheckProgramAccessResponse set(String fieldName, Object value) {
59+
return (CheckProgramAccessResponse) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public CheckProgramAccessResponse clone() {
64+
return (CheckProgramAccessResponse) super.clone();
65+
}
66+
67+
}

‎clients/google-api-services-webcontentpublisher/v1/2.0.0/pom.xml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
<groupId>com.google.apis</groupId>
1010
<artifactId>google-api-services-webcontentpublisher</artifactId>
11-
<version>v1-rev20261028-2.9.2</version>
12-
<name>Web Content Publisher API v1-rev20261028-2.9.2</name>
11+
<version>v1-rev20261103-2.9.2</version>
12+
<name>Web Content Publisher API v1-rev20261103-2.9.2</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

‎clients/google-api-services-webcontentpublisher/v1/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add the following lines to your `pom.xml` file:
2222
<dependency>
2323
<groupId>com.google.apis</groupId>
2424
<artifactId>google-api-services-webcontentpublisher</artifactId>
25-
<version>v1-rev20261028-2.9.2</version>
25+
<version>v1-rev20261103-2.9.2</version>
2626
</dependency>
2727
</dependencies>
2828
</project>
@@ -35,7 +35,7 @@ repositories {
3535
mavenCentral()
3636
}
3737
dependencies {
38-
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20261028-2.9.2'
38+
implementation 'com.google.apis:google-api-services-webcontentpublisher:v1-rev20261103-2.9.2'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)