Skip to content

Commit 7534332

Browse files
chore: regenerate paymentsresellersubscription client (googleapis#26515)
Generated in GitHub action: https://togithub.com/googleapis/googleapis/google-api-java-client-services/actions/workflows/codegen.yaml
1 parent b2614e4 commit 7534332

8 files changed

+512
-6
lines changed

clients/google-api-services-paymentsresellersubscription/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-paymentsresellersubscription</artifactId>
25-
<version>v1-rev20250312-2.0.0</version>
25+
<version>v1-rev20250327-2.0.0</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-paymentsresellersubscription:v1-rev20250312-2.0.0'
38+
implementation 'com.google.apis:google-api-services-paymentsresellersubscription:v1-rev20250327-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-paymentsresellersubscription/v1/2.0.0/com/google/api/services/paymentsresellersubscription/v1/PaymentsResellerSubscription.java

Lines changed: 286 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,292 @@ public Provision set(String parameterName, Object value) {
17501750
return (Provision) super.set(parameterName, value);
17511751
}
17521752
}
1753+
/**
1754+
* Resumes a suspended subscription. The new billing cycle will start at the time of the request. It
1755+
* should be called directly by the partner using service accounts.
1756+
*
1757+
* Create a request for the method "subscriptions.resume".
1758+
*
1759+
* This request holds the parameters needed by the paymentsresellersubscription server. After
1760+
* setting any optional parameters, call the {@link Resume#execute()} method to invoke the remote
1761+
* operation.
1762+
*
1763+
* @param name Required. The name of the subscription resource to be resumed. It will have the format of
1764+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1765+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest}
1766+
* @return the request
1767+
*/
1768+
public Resume resume(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest content) throws java.io.IOException {
1769+
Resume result = new Resume(name, content);
1770+
initialize(result);
1771+
return result;
1772+
}
1773+
1774+
public class Resume extends PaymentsResellerSubscriptionRequest<com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse> {
1775+
1776+
private static final String REST_PATH = "v1/{+name}:resume";
1777+
1778+
private final java.util.regex.Pattern NAME_PATTERN =
1779+
java.util.regex.Pattern.compile("^partners/[^/]+/subscriptions/[^/]+$");
1780+
1781+
/**
1782+
* Resumes a suspended subscription. The new billing cycle will start at the time of the request.
1783+
* It should be called directly by the partner using service accounts.
1784+
*
1785+
* Create a request for the method "subscriptions.resume".
1786+
*
1787+
* This request holds the parameters needed by the the paymentsresellersubscription server. After
1788+
* setting any optional parameters, call the {@link Resume#execute()} method to invoke the remote
1789+
* operation. <p> {@link
1790+
* Resume#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1791+
* be called to initialize this instance immediately after invoking the constructor. </p>
1792+
*
1793+
* @param name Required. The name of the subscription resource to be resumed. It will have the format of
1794+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1795+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest}
1796+
* @since 1.13
1797+
*/
1798+
protected Resume(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest content) {
1799+
super(PaymentsResellerSubscription.this, "POST", REST_PATH, content, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionResponse.class);
1800+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1801+
if (!getSuppressPatternChecks()) {
1802+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1803+
"Parameter name must conform to the pattern " +
1804+
"^partners/[^/]+/subscriptions/[^/]+$");
1805+
}
1806+
}
1807+
1808+
@Override
1809+
public Resume set$Xgafv(java.lang.String $Xgafv) {
1810+
return (Resume) super.set$Xgafv($Xgafv);
1811+
}
1812+
1813+
@Override
1814+
public Resume setAccessToken(java.lang.String accessToken) {
1815+
return (Resume) super.setAccessToken(accessToken);
1816+
}
1817+
1818+
@Override
1819+
public Resume setAlt(java.lang.String alt) {
1820+
return (Resume) super.setAlt(alt);
1821+
}
1822+
1823+
@Override
1824+
public Resume setCallback(java.lang.String callback) {
1825+
return (Resume) super.setCallback(callback);
1826+
}
1827+
1828+
@Override
1829+
public Resume setFields(java.lang.String fields) {
1830+
return (Resume) super.setFields(fields);
1831+
}
1832+
1833+
@Override
1834+
public Resume setKey(java.lang.String key) {
1835+
return (Resume) super.setKey(key);
1836+
}
1837+
1838+
@Override
1839+
public Resume setOauthToken(java.lang.String oauthToken) {
1840+
return (Resume) super.setOauthToken(oauthToken);
1841+
}
1842+
1843+
@Override
1844+
public Resume setPrettyPrint(java.lang.Boolean prettyPrint) {
1845+
return (Resume) super.setPrettyPrint(prettyPrint);
1846+
}
1847+
1848+
@Override
1849+
public Resume setQuotaUser(java.lang.String quotaUser) {
1850+
return (Resume) super.setQuotaUser(quotaUser);
1851+
}
1852+
1853+
@Override
1854+
public Resume setUploadType(java.lang.String uploadType) {
1855+
return (Resume) super.setUploadType(uploadType);
1856+
}
1857+
1858+
@Override
1859+
public Resume setUploadProtocol(java.lang.String uploadProtocol) {
1860+
return (Resume) super.setUploadProtocol(uploadProtocol);
1861+
}
1862+
1863+
/**
1864+
* Required. The name of the subscription resource to be resumed. It will have the format of
1865+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1866+
*/
1867+
@com.google.api.client.util.Key
1868+
private java.lang.String name;
1869+
1870+
/** Required. The name of the subscription resource to be resumed. It will have the format of
1871+
"partners/{partner_id}/subscriptions/{subscription_id}"
1872+
*/
1873+
public java.lang.String getName() {
1874+
return name;
1875+
}
1876+
1877+
/**
1878+
* Required. The name of the subscription resource to be resumed. It will have the format of
1879+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1880+
*/
1881+
public Resume setName(java.lang.String name) {
1882+
if (!getSuppressPatternChecks()) {
1883+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1884+
"Parameter name must conform to the pattern " +
1885+
"^partners/[^/]+/subscriptions/[^/]+$");
1886+
}
1887+
this.name = name;
1888+
return this;
1889+
}
1890+
1891+
@Override
1892+
public Resume set(String parameterName, Object value) {
1893+
return (Resume) super.set(parameterName, value);
1894+
}
1895+
}
1896+
/**
1897+
* Suspends a subscription. Contract terms may dictate if a prorated refund will be issued upon
1898+
* suspension. It should be called directly by the partner using service accounts.
1899+
*
1900+
* Create a request for the method "subscriptions.suspend".
1901+
*
1902+
* This request holds the parameters needed by the paymentsresellersubscription server. After
1903+
* setting any optional parameters, call the {@link Suspend#execute()} method to invoke the remote
1904+
* operation.
1905+
*
1906+
* @param name Required. The name of the subscription resource to be suspended. It will have the format of
1907+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1908+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest}
1909+
* @return the request
1910+
*/
1911+
public Suspend suspend(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest content) throws java.io.IOException {
1912+
Suspend result = new Suspend(name, content);
1913+
initialize(result);
1914+
return result;
1915+
}
1916+
1917+
public class Suspend extends PaymentsResellerSubscriptionRequest<com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse> {
1918+
1919+
private static final String REST_PATH = "v1/{+name}:suspend";
1920+
1921+
private final java.util.regex.Pattern NAME_PATTERN =
1922+
java.util.regex.Pattern.compile("^partners/[^/]+/subscriptions/[^/]+$");
1923+
1924+
/**
1925+
* Suspends a subscription. Contract terms may dictate if a prorated refund will be issued upon
1926+
* suspension. It should be called directly by the partner using service accounts.
1927+
*
1928+
* Create a request for the method "subscriptions.suspend".
1929+
*
1930+
* This request holds the parameters needed by the the paymentsresellersubscription server. After
1931+
* setting any optional parameters, call the {@link Suspend#execute()} method to invoke the remote
1932+
* operation. <p> {@link
1933+
* Suspend#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1934+
* be called to initialize this instance immediately after invoking the constructor. </p>
1935+
*
1936+
* @param name Required. The name of the subscription resource to be suspended. It will have the format of
1937+
* "partners/{partner_id}/subscriptions/{subscription_id}"
1938+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest}
1939+
* @since 1.13
1940+
*/
1941+
protected Suspend(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionRequest content) {
1942+
super(PaymentsResellerSubscription.this, "POST", REST_PATH, content, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1SuspendSubscriptionResponse.class);
1943+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
1944+
if (!getSuppressPatternChecks()) {
1945+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
1946+
"Parameter name must conform to the pattern " +
1947+
"^partners/[^/]+/subscriptions/[^/]+$");
1948+
}
1949+
}
1950+
1951+
@Override
1952+
public Suspend set$Xgafv(java.lang.String $Xgafv) {
1953+
return (Suspend) super.set$Xgafv($Xgafv);
1954+
}
1955+
1956+
@Override
1957+
public Suspend setAccessToken(java.lang.String accessToken) {
1958+
return (Suspend) super.setAccessToken(accessToken);
1959+
}
1960+
1961+
@Override
1962+
public Suspend setAlt(java.lang.String alt) {
1963+
return (Suspend) super.setAlt(alt);
1964+
}
1965+
1966+
@Override
1967+
public Suspend setCallback(java.lang.String callback) {
1968+
return (Suspend) super.setCallback(callback);
1969+
}
1970+
1971+
@Override
1972+
public Suspend setFields(java.lang.String fields) {
1973+
return (Suspend) super.setFields(fields);
1974+
}
1975+
1976+
@Override
1977+
public Suspend setKey(java.lang.String key) {
1978+
return (Suspend) super.setKey(key);
1979+
}
1980+
1981+
@Override
1982+
public Suspend setOauthToken(java.lang.String oauthToken) {
1983+
return (Suspend) super.setOauthToken(oauthToken);
1984+
}
1985+
1986+
@Override
1987+
public Suspend setPrettyPrint(java.lang.Boolean prettyPrint) {
1988+
return (Suspend) super.setPrettyPrint(prettyPrint);
1989+
}
1990+
1991+
@Override
1992+
public Suspend setQuotaUser(java.lang.String quotaUser) {
1993+
return (Suspend) super.setQuotaUser(quotaUser);
1994+
}
1995+
1996+
@Override
1997+
public Suspend setUploadType(java.lang.String uploadType) {
1998+
return (Suspend) super.setUploadType(uploadType);
1999+
}
2000+
2001+
@Override
2002+
public Suspend setUploadProtocol(java.lang.String uploadProtocol) {
2003+
return (Suspend) super.setUploadProtocol(uploadProtocol);
2004+
}
2005+
2006+
/**
2007+
* Required. The name of the subscription resource to be suspended. It will have the format
2008+
* of "partners/{partner_id}/subscriptions/{subscription_id}"
2009+
*/
2010+
@com.google.api.client.util.Key
2011+
private java.lang.String name;
2012+
2013+
/** Required. The name of the subscription resource to be suspended. It will have the format of
2014+
"partners/{partner_id}/subscriptions/{subscription_id}"
2015+
*/
2016+
public java.lang.String getName() {
2017+
return name;
2018+
}
2019+
2020+
/**
2021+
* Required. The name of the subscription resource to be suspended. It will have the format
2022+
* of "partners/{partner_id}/subscriptions/{subscription_id}"
2023+
*/
2024+
public Suspend setName(java.lang.String name) {
2025+
if (!getSuppressPatternChecks()) {
2026+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2027+
"Parameter name must conform to the pattern " +
2028+
"^partners/[^/]+/subscriptions/[^/]+$");
2029+
}
2030+
this.name = name;
2031+
return this;
2032+
}
2033+
2034+
@Override
2035+
public Suspend set(String parameterName, Object value) {
2036+
return (Suspend) super.set(parameterName, value);
2037+
}
2038+
}
17532039
/**
17542040
* Currently, it is used by **Google One, Play Pass** partners. Revokes the pending cancellation of
17552041
* a subscription, which is currently in `STATE_CANCEL_AT_END_OF_CYCLE` state. If the subscription
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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.paymentsresellersubscription.v1.model;
18+
19+
/**
20+
* Request to resume a suspended subscription.
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 Payments Reseller Subscription API. For a detailed
24+
* explanation 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 GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest set(String fieldName, Object value) {
35+
return (GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest clone() {
40+
return (GoogleCloudPaymentsResellerSubscriptionV1ResumeSubscriptionRequest) super.clone();
41+
}
42+
43+
}

0 commit comments

Comments
 (0)