@@ -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
0 commit comments