Skip to content

Commit 571453f

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

10 files changed

+685
-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-rev20240922-2.0.0</version>
25+
<version>v1-rev20241105-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-rev20240922-2.0.0'
38+
implementation 'com.google.apis:google-api-services-paymentsresellersubscription:v1-rev20241105-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: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1904,6 +1904,167 @@ public UndoCancel set(String parameterName, Object value) {
19041904
}
19051905

19061906
}
1907+
/**
1908+
* An accessor for creating requests from the UserSessions collection.
1909+
*
1910+
* <p>The typical use is:</p>
1911+
* <pre>
1912+
* {@code PaymentsResellerSubscription paymentsresellersubscription = new PaymentsResellerSubscription(...);}
1913+
* {@code PaymentsResellerSubscription.UserSessions.List request = paymentsresellersubscription.userSessions().list(parameters ...)}
1914+
* </pre>
1915+
*
1916+
* @return the resource collection
1917+
*/
1918+
public UserSessions userSessions() {
1919+
return new UserSessions();
1920+
}
1921+
1922+
/**
1923+
* The "userSessions" collection of methods.
1924+
*/
1925+
public class UserSessions {
1926+
1927+
/**
1928+
* This API replaces user authorized OAuth consnet based APIs (Create, Entitle). Generates a short-
1929+
* lived token for a user session based on the user intent. You can use the session token to
1930+
* redirect the user to Google to finish the signup flow. You can re-generate new session token
1931+
* repeatedly for same request if necessary, regardless of the previous tokens being expired or not.
1932+
*
1933+
* Create a request for the method "userSessions.generate".
1934+
*
1935+
* This request holds the parameters needed by the paymentsresellersubscription server. After
1936+
* setting any optional parameters, call the {@link Generate#execute()} method to invoke the remote
1937+
* operation.
1938+
*
1939+
* @param parent Required. The parent, the partner that can resell. Format: partners/{partner}
1940+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest}
1941+
* @return the request
1942+
*/
1943+
public Generate generate(java.lang.String parent, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest content) throws java.io.IOException {
1944+
Generate result = new Generate(parent, content);
1945+
initialize(result);
1946+
return result;
1947+
}
1948+
1949+
public class Generate extends PaymentsResellerSubscriptionRequest<com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse> {
1950+
1951+
private static final String REST_PATH = "v1/{+parent}/userSessions:generate";
1952+
1953+
private final java.util.regex.Pattern PARENT_PATTERN =
1954+
java.util.regex.Pattern.compile("^partners/[^/]+$");
1955+
1956+
/**
1957+
* This API replaces user authorized OAuth consnet based APIs (Create, Entitle). Generates a
1958+
* short-lived token for a user session based on the user intent. You can use the session token to
1959+
* redirect the user to Google to finish the signup flow. You can re-generate new session token
1960+
* repeatedly for same request if necessary, regardless of the previous tokens being expired or
1961+
* not.
1962+
*
1963+
* Create a request for the method "userSessions.generate".
1964+
*
1965+
* This request holds the parameters needed by the the paymentsresellersubscription server. After
1966+
* setting any optional parameters, call the {@link Generate#execute()} method to invoke the
1967+
* remote operation. <p> {@link
1968+
* Generate#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
1969+
* must be called to initialize this instance immediately after invoking the constructor. </p>
1970+
*
1971+
* @param parent Required. The parent, the partner that can resell. Format: partners/{partner}
1972+
* @param content the {@link com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest}
1973+
* @since 1.13
1974+
*/
1975+
protected Generate(java.lang.String parent, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionRequest content) {
1976+
super(PaymentsResellerSubscription.this, "POST", REST_PATH, content, com.google.api.services.paymentsresellersubscription.v1.model.GoogleCloudPaymentsResellerSubscriptionV1GenerateUserSessionResponse.class);
1977+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
1978+
if (!getSuppressPatternChecks()) {
1979+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
1980+
"Parameter parent must conform to the pattern " +
1981+
"^partners/[^/]+$");
1982+
}
1983+
}
1984+
1985+
@Override
1986+
public Generate set$Xgafv(java.lang.String $Xgafv) {
1987+
return (Generate) super.set$Xgafv($Xgafv);
1988+
}
1989+
1990+
@Override
1991+
public Generate setAccessToken(java.lang.String accessToken) {
1992+
return (Generate) super.setAccessToken(accessToken);
1993+
}
1994+
1995+
@Override
1996+
public Generate setAlt(java.lang.String alt) {
1997+
return (Generate) super.setAlt(alt);
1998+
}
1999+
2000+
@Override
2001+
public Generate setCallback(java.lang.String callback) {
2002+
return (Generate) super.setCallback(callback);
2003+
}
2004+
2005+
@Override
2006+
public Generate setFields(java.lang.String fields) {
2007+
return (Generate) super.setFields(fields);
2008+
}
2009+
2010+
@Override
2011+
public Generate setKey(java.lang.String key) {
2012+
return (Generate) super.setKey(key);
2013+
}
2014+
2015+
@Override
2016+
public Generate setOauthToken(java.lang.String oauthToken) {
2017+
return (Generate) super.setOauthToken(oauthToken);
2018+
}
2019+
2020+
@Override
2021+
public Generate setPrettyPrint(java.lang.Boolean prettyPrint) {
2022+
return (Generate) super.setPrettyPrint(prettyPrint);
2023+
}
2024+
2025+
@Override
2026+
public Generate setQuotaUser(java.lang.String quotaUser) {
2027+
return (Generate) super.setQuotaUser(quotaUser);
2028+
}
2029+
2030+
@Override
2031+
public Generate setUploadType(java.lang.String uploadType) {
2032+
return (Generate) super.setUploadType(uploadType);
2033+
}
2034+
2035+
@Override
2036+
public Generate setUploadProtocol(java.lang.String uploadProtocol) {
2037+
return (Generate) super.setUploadProtocol(uploadProtocol);
2038+
}
2039+
2040+
/** Required. The parent, the partner that can resell. Format: partners/{partner} */
2041+
@com.google.api.client.util.Key
2042+
private java.lang.String parent;
2043+
2044+
/** Required. The parent, the partner that can resell. Format: partners/{partner}
2045+
*/
2046+
public java.lang.String getParent() {
2047+
return parent;
2048+
}
2049+
2050+
/** Required. The parent, the partner that can resell. Format: partners/{partner} */
2051+
public Generate setParent(java.lang.String parent) {
2052+
if (!getSuppressPatternChecks()) {
2053+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
2054+
"Parameter parent must conform to the pattern " +
2055+
"^partners/[^/]+$");
2056+
}
2057+
this.parent = parent;
2058+
return this;
2059+
}
2060+
2061+
@Override
2062+
public Generate set(String parameterName, Object value) {
2063+
return (Generate) super.set(parameterName, value);
2064+
}
2065+
}
2066+
2067+
}
19072068
}
19082069

19092070
/**
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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+
* Intent message for creating a Subscription resource.
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 GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The parent resource name, which is the identifier of the partner.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String parent;
39+
40+
/**
41+
* Required. The Subscription to be created.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private GoogleCloudPaymentsResellerSubscriptionV1Subscription subscription;
46+
47+
/**
48+
* Required. Identifies the subscription resource on the Partner side. The value is restricted to
49+
* 63 ASCII characters at the maximum. If a subscription was previously created with the same
50+
* subscription_id, we will directly return that one.
51+
* The value may be {@code null}.
52+
*/
53+
@com.google.api.client.util.Key
54+
private java.lang.String subscriptionId;
55+
56+
/**
57+
* Required. The parent resource name, which is the identifier of the partner.
58+
* @return value or {@code null} for none
59+
*/
60+
public java.lang.String getParent() {
61+
return parent;
62+
}
63+
64+
/**
65+
* Required. The parent resource name, which is the identifier of the partner.
66+
* @param parent parent or {@code null} for none
67+
*/
68+
public GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent setParent(java.lang.String parent) {
69+
this.parent = parent;
70+
return this;
71+
}
72+
73+
/**
74+
* Required. The Subscription to be created.
75+
* @return value or {@code null} for none
76+
*/
77+
public GoogleCloudPaymentsResellerSubscriptionV1Subscription getSubscription() {
78+
return subscription;
79+
}
80+
81+
/**
82+
* Required. The Subscription to be created.
83+
* @param subscription subscription or {@code null} for none
84+
*/
85+
public GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent setSubscription(GoogleCloudPaymentsResellerSubscriptionV1Subscription subscription) {
86+
this.subscription = subscription;
87+
return this;
88+
}
89+
90+
/**
91+
* Required. Identifies the subscription resource on the Partner side. The value is restricted to
92+
* 63 ASCII characters at the maximum. If a subscription was previously created with the same
93+
* subscription_id, we will directly return that one.
94+
* @return value or {@code null} for none
95+
*/
96+
public java.lang.String getSubscriptionId() {
97+
return subscriptionId;
98+
}
99+
100+
/**
101+
* Required. Identifies the subscription resource on the Partner side. The value is restricted to
102+
* 63 ASCII characters at the maximum. If a subscription was previously created with the same
103+
* subscription_id, we will directly return that one.
104+
* @param subscriptionId subscriptionId or {@code null} for none
105+
*/
106+
public GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent setSubscriptionId(java.lang.String subscriptionId) {
107+
this.subscriptionId = subscriptionId;
108+
return this;
109+
}
110+
111+
@Override
112+
public GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent set(String fieldName, Object value) {
113+
return (GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent) super.set(fieldName, value);
114+
}
115+
116+
@Override
117+
public GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent clone() {
118+
return (GoogleCloudPaymentsResellerSubscriptionV1CreateSubscriptionIntent) super.clone();
119+
}
120+
121+
}
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.paymentsresellersubscription.v1.model;
18+
19+
/**
20+
* Intent for entitling the previously provisioned subscription to an end user.
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 GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. The name of the subscription resource that is entitled to the current end user.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String name;
39+
40+
/**
41+
* Required. The name of the subscription resource that is entitled to the current end user.
42+
* @return value or {@code null} for none
43+
*/
44+
public java.lang.String getName() {
45+
return name;
46+
}
47+
48+
/**
49+
* Required. The name of the subscription resource that is entitled to the current end user.
50+
* @param name name or {@code null} for none
51+
*/
52+
public GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent setName(java.lang.String name) {
53+
this.name = name;
54+
return this;
55+
}
56+
57+
@Override
58+
public GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent set(String fieldName, Object value) {
59+
return (GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent) super.set(fieldName, value);
60+
}
61+
62+
@Override
63+
public GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent clone() {
64+
return (GoogleCloudPaymentsResellerSubscriptionV1EntitleSubscriptionIntent) super.clone();
65+
}
66+
67+
}

0 commit comments

Comments
 (0)