Skip to content

Commit 7bf9815

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

File tree

6 files changed

+329
-6
lines changed

6 files changed

+329
-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-rev20251005-2.0.0</version>
25+
<version>v1-rev20251012-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-rev20251005-2.0.0'
38+
implementation 'com.google.apis:google-api-services-paymentsresellersubscription:v1-rev20251012-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: 220 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,6 +1719,38 @@ public Provision setParent(java.lang.String parent) {
17191719
return this;
17201720
}
17211721

1722+
/** number of duration units to be included. */
1723+
@com.google.api.client.util.Key("cycleOptions.initialCycleDuration.count")
1724+
private java.lang.Integer cycleOptionsInitialCycleDurationCount;
1725+
1726+
/** number of duration units to be included.
1727+
*/
1728+
public java.lang.Integer getCycleOptionsInitialCycleDurationCount() {
1729+
return cycleOptionsInitialCycleDurationCount;
1730+
}
1731+
1732+
/** number of duration units to be included. */
1733+
public Provision setCycleOptionsInitialCycleDurationCount(java.lang.Integer cycleOptionsInitialCycleDurationCount) {
1734+
this.cycleOptionsInitialCycleDurationCount = cycleOptionsInitialCycleDurationCount;
1735+
return this;
1736+
}
1737+
1738+
/** The unit used for the duration */
1739+
@com.google.api.client.util.Key("cycleOptions.initialCycleDuration.unit")
1740+
private java.lang.String cycleOptionsInitialCycleDurationUnit;
1741+
1742+
/** The unit used for the duration
1743+
*/
1744+
public java.lang.String getCycleOptionsInitialCycleDurationUnit() {
1745+
return cycleOptionsInitialCycleDurationUnit;
1746+
}
1747+
1748+
/** The unit used for the duration */
1749+
public Provision setCycleOptionsInitialCycleDurationUnit(java.lang.String cycleOptionsInitialCycleDurationUnit) {
1750+
this.cycleOptionsInitialCycleDurationUnit = cycleOptionsInitialCycleDurationUnit;
1751+
return this;
1752+
}
1753+
17221754
/**
17231755
* Required. Identifies the subscription resource on the Partner side. The value is
17241756
* restricted to 63 ASCII characters at the maximum. If a subscription was previously
@@ -2186,6 +2218,194 @@ public UndoCancel set(String parameterName, Object value) {
21862218
}
21872219
}
21882220

2221+
/**
2222+
* An accessor for creating requests from the LineItems collection.
2223+
*
2224+
* <p>The typical use is:</p>
2225+
* <pre>
2226+
* {@code PaymentsResellerSubscription paymentsresellersubscription = new PaymentsResellerSubscription(...);}
2227+
* {@code PaymentsResellerSubscription.LineItems.List request = paymentsresellersubscription.lineItems().list(parameters ...)}
2228+
* </pre>
2229+
*
2230+
* @return the resource collection
2231+
*/
2232+
public LineItems lineItems() {
2233+
return new LineItems();
2234+
}
2235+
2236+
/**
2237+
* The "lineItems" collection of methods.
2238+
*/
2239+
public class LineItems {
2240+
2241+
/**
2242+
* Updates a line item of a subscription. It should be autenticated with a service account.
2243+
*
2244+
* Create a request for the method "lineItems.patch".
2245+
*
2246+
* This request holds the parameters needed by the paymentsresellersubscription server. After
2247+
* setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote
2248+
* operation.
2249+
*
2250+
* @param name Identifier. Resource name of the line item. Format:
2251+
* partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2252+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem}
2253+
* @return the request
2254+
*/
2255+
public Patch patch(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem content) throws java.io.IOException {
2256+
Patch result = new Patch(name, content);
2257+
initialize(result);
2258+
return result;
2259+
}
2260+
2261+
public class Patch extends PaymentsResellerSubscriptionRequest<com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem> {
2262+
2263+
private static final String REST_PATH = "v1/{+name}";
2264+
2265+
private final java.util.regex.Pattern NAME_PATTERN =
2266+
java.util.regex.Pattern.compile("^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$");
2267+
2268+
/**
2269+
* Updates a line item of a subscription. It should be autenticated with a service account.
2270+
*
2271+
* Create a request for the method "lineItems.patch".
2272+
*
2273+
* This request holds the parameters needed by the the paymentsresellersubscription server. After
2274+
* setting any optional parameters, call the {@link Patch#execute()} method to invoke the remote
2275+
* operation. <p> {@link
2276+
* Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
2277+
* be called to initialize this instance immediately after invoking the constructor. </p>
2278+
*
2279+
* @param name Identifier. Resource name of the line item. Format:
2280+
* partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2281+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem}
2282+
* @since 1.13
2283+
*/
2284+
protected Patch(java.lang.String name, com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem content) {
2285+
super(PaymentsResellerSubscription.this, "PATCH", REST_PATH, content, com.google.api.services.paymentsresellersubscription.v1.model.SubscriptionLineItem.class);
2286+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
2287+
if (!getSuppressPatternChecks()) {
2288+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2289+
"Parameter name must conform to the pattern " +
2290+
"^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$");
2291+
}
2292+
}
2293+
2294+
@Override
2295+
public Patch set$Xgafv(java.lang.String $Xgafv) {
2296+
return (Patch) super.set$Xgafv($Xgafv);
2297+
}
2298+
2299+
@Override
2300+
public Patch setAccessToken(java.lang.String accessToken) {
2301+
return (Patch) super.setAccessToken(accessToken);
2302+
}
2303+
2304+
@Override
2305+
public Patch setAlt(java.lang.String alt) {
2306+
return (Patch) super.setAlt(alt);
2307+
}
2308+
2309+
@Override
2310+
public Patch setCallback(java.lang.String callback) {
2311+
return (Patch) super.setCallback(callback);
2312+
}
2313+
2314+
@Override
2315+
public Patch setFields(java.lang.String fields) {
2316+
return (Patch) super.setFields(fields);
2317+
}
2318+
2319+
@Override
2320+
public Patch setKey(java.lang.String key) {
2321+
return (Patch) super.setKey(key);
2322+
}
2323+
2324+
@Override
2325+
public Patch setOauthToken(java.lang.String oauthToken) {
2326+
return (Patch) super.setOauthToken(oauthToken);
2327+
}
2328+
2329+
@Override
2330+
public Patch setPrettyPrint(java.lang.Boolean prettyPrint) {
2331+
return (Patch) super.setPrettyPrint(prettyPrint);
2332+
}
2333+
2334+
@Override
2335+
public Patch setQuotaUser(java.lang.String quotaUser) {
2336+
return (Patch) super.setQuotaUser(quotaUser);
2337+
}
2338+
2339+
@Override
2340+
public Patch setUploadType(java.lang.String uploadType) {
2341+
return (Patch) super.setUploadType(uploadType);
2342+
}
2343+
2344+
@Override
2345+
public Patch setUploadProtocol(java.lang.String uploadProtocol) {
2346+
return (Patch) super.setUploadProtocol(uploadProtocol);
2347+
}
2348+
2349+
/**
2350+
* Identifier. Resource name of the line item. Format:
2351+
* partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2352+
*/
2353+
@com.google.api.client.util.Key
2354+
private java.lang.String name;
2355+
2356+
/** Identifier. Resource name of the line item. Format:
2357+
partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2358+
*/
2359+
public java.lang.String getName() {
2360+
return name;
2361+
}
2362+
2363+
/**
2364+
* Identifier. Resource name of the line item. Format:
2365+
* partners/{partner}/subscriptions/{subscription}/lineItems/{lineItem}
2366+
*/
2367+
public Patch setName(java.lang.String name) {
2368+
if (!getSuppressPatternChecks()) {
2369+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
2370+
"Parameter name must conform to the pattern " +
2371+
"^partners/[^/]+/subscriptions/[^/]+/lineItems/[^/]+$");
2372+
}
2373+
this.name = name;
2374+
return this;
2375+
}
2376+
2377+
/**
2378+
* Required. The list of fields to update. Only a limited set of fields can be updated.
2379+
* The allowed fields are the following: -
2380+
* `product_payload.googleHomePayload.googleStructureId`
2381+
*/
2382+
@com.google.api.client.util.Key
2383+
private String updateMask;
2384+
2385+
/** Required. The list of fields to update. Only a limited set of fields can be updated. The allowed
2386+
fields are the following: - `product_payload.googleHomePayload.googleStructureId`
2387+
*/
2388+
public String getUpdateMask() {
2389+
return updateMask;
2390+
}
2391+
2392+
/**
2393+
* Required. The list of fields to update. Only a limited set of fields can be updated.
2394+
* The allowed fields are the following: -
2395+
* `product_payload.googleHomePayload.googleStructureId`
2396+
*/
2397+
public Patch setUpdateMask(String updateMask) {
2398+
this.updateMask = updateMask;
2399+
return this;
2400+
}
2401+
2402+
@Override
2403+
public Patch set(String parameterName, Object value) {
2404+
return (Patch) super.set(parameterName, value);
2405+
}
2406+
}
2407+
2408+
}
21892409
}
21902410
/**
21912411
* An accessor for creating requests from the UserSessions collection.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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+
* The cycle options when starting and resuming a 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 CycleOptions extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start
35+
* the subscription with this initial cycle duration starting at the request time (see available
36+
* methods below). A prorated charge will be applied. This option is available to the following
37+
* methods: - partners.subscriptions.provision - partners.subscriptions.resume -
38+
* partners.userSessions.generate
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private Duration initialCycleDuration;
43+
44+
/**
45+
* Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start
46+
* the subscription with this initial cycle duration starting at the request time (see available
47+
* methods below). A prorated charge will be applied. This option is available to the following
48+
* methods: - partners.subscriptions.provision - partners.subscriptions.resume -
49+
* partners.userSessions.generate
50+
* @return value or {@code null} for none
51+
*/
52+
public Duration getInitialCycleDuration() {
53+
return initialCycleDuration;
54+
}
55+
56+
/**
57+
* Optional. The duration of the initial cycle. Only `DAY` is supported. If set, Google will start
58+
* the subscription with this initial cycle duration starting at the request time (see available
59+
* methods below). A prorated charge will be applied. This option is available to the following
60+
* methods: - partners.subscriptions.provision - partners.subscriptions.resume -
61+
* partners.userSessions.generate
62+
* @param initialCycleDuration initialCycleDuration or {@code null} for none
63+
*/
64+
public CycleOptions setInitialCycleDuration(Duration initialCycleDuration) {
65+
this.initialCycleDuration = initialCycleDuration;
66+
return this;
67+
}
68+
69+
@Override
70+
public CycleOptions set(String fieldName, Object value) {
71+
return (CycleOptions) super.set(fieldName, value);
72+
}
73+
74+
@Override
75+
public CycleOptions clone() {
76+
return (CycleOptions) super.clone();
77+
}
78+
79+
}

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

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,30 @@
3030
@SuppressWarnings("javadoc")
3131
public final class ResumeSubscriptionRequest extends com.google.api.client.json.GenericJson {
3232

33+
/**
34+
* Optional. The cycle options for the subscription.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private CycleOptions cycleOptions;
39+
40+
/**
41+
* Optional. The cycle options for the subscription.
42+
* @return value or {@code null} for none
43+
*/
44+
public CycleOptions getCycleOptions() {
45+
return cycleOptions;
46+
}
47+
48+
/**
49+
* Optional. The cycle options for the subscription.
50+
* @param cycleOptions cycleOptions or {@code null} for none
51+
*/
52+
public ResumeSubscriptionRequest setCycleOptions(CycleOptions cycleOptions) {
53+
this.cycleOptions = cycleOptions;
54+
return this;
55+
}
56+
3357
@Override
3458
public ResumeSubscriptionRequest set(String fieldName, Object value) {
3559
return (ResumeSubscriptionRequest) super.set(fieldName, value);

clients/google-api-services-paymentsresellersubscription/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-paymentsresellersubscription</artifactId>
11-
<version>v1-rev20251005-2.0.0</version>
12-
<name>Payments Reseller Subscription API v1-rev20251005-2.0.0</name>
11+
<version>v1-rev20251012-2.0.0</version>
12+
<name>Payments Reseller Subscription API v1-rev20251012-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

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

0 commit comments

Comments
 (0)