Skip to content

Commit e752b6f

Browse files
1 parent 107a0ea commit e752b6f

File tree

5 files changed

+133
-7
lines changed

5 files changed

+133
-7
lines changed

clients/google-api-services-merchantapi/accounts_v1beta/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-merchantapi</artifactId>
25-
<version>accounts_v1beta-rev20250115-2.0.0</version>
25+
<version>accounts_v1beta-rev20250125-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-merchantapi:accounts_v1beta-rev20250115-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20250125-2.0.0'
3939
}
4040
```
4141

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
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.merchantapi.accounts_v1beta.model;
18+
19+
/**
20+
* Instruction for adding a user to the account during creation.
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 Merchant API. For a detailed explanation see:
24+
* <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>
25+
* </p>
26+
*
27+
* @author Google, Inc.
28+
*/
29+
@SuppressWarnings("javadoc")
30+
public final class AddUser extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Optional. Details about the user to be added. At the moment, only access rights may be
34+
* specified.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private User user;
39+
40+
/**
41+
* Required. The email address of the user (for example, `[email protected]`).
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.lang.String userId;
46+
47+
/**
48+
* Optional. Details about the user to be added. At the moment, only access rights may be
49+
* specified.
50+
* @return value or {@code null} for none
51+
*/
52+
public User getUser() {
53+
return user;
54+
}
55+
56+
/**
57+
* Optional. Details about the user to be added. At the moment, only access rights may be
58+
* specified.
59+
* @param user user or {@code null} for none
60+
*/
61+
public AddUser setUser(User user) {
62+
this.user = user;
63+
return this;
64+
}
65+
66+
/**
67+
* Required. The email address of the user (for example, `[email protected]`).
68+
* @return value or {@code null} for none
69+
*/
70+
public java.lang.String getUserId() {
71+
return userId;
72+
}
73+
74+
/**
75+
* Required. The email address of the user (for example, `[email protected]`).
76+
* @param userId userId or {@code null} for none
77+
*/
78+
public AddUser setUserId(java.lang.String userId) {
79+
this.userId = userId;
80+
return this;
81+
}
82+
83+
@Override
84+
public AddUser set(String fieldName, Object value) {
85+
return (AddUser) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public AddUser clone() {
90+
return (AddUser) super.clone();
91+
}
92+
93+
}

clients/google-api-services-merchantapi/accounts_v1beta/2.0.0/com/google/api/services/merchantapi/accounts_v1beta/model/CreateAndConfigureAccountRequest.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,20 @@ public final class CreateAndConfigureAccountRequest extends com.google.api.clien
5858
* The value may be {@code null}.
5959
*/
6060
@com.google.api.client.util.Key
61+
private java.util.List<AddUser> user;
62+
63+
static {
64+
// hack to force ProGuard to consider AddUser used, since otherwise it would be stripped out
65+
// see https://github.com/google/google-api-java-client/issues/543
66+
com.google.api.client.util.Data.nullOf(AddUser.class);
67+
}
68+
69+
/**
70+
* Optional. Users to be added to the account. This field is deprecated and will not exist after
71+
* the API evolves out of beta. Use the `user` field instead.
72+
* The value may be {@code null}.
73+
*/
74+
@com.google.api.client.util.Key
6175
private java.util.List<CreateUserRequest> users;
6276

6377
/**
@@ -106,12 +120,31 @@ public CreateAndConfigureAccountRequest setService(java.util.List<AddAccountServ
106120
* Optional. Users to be added to the account.
107121
* @return value or {@code null} for none
108122
*/
123+
public java.util.List<AddUser> getUser() {
124+
return user;
125+
}
126+
127+
/**
128+
* Optional. Users to be added to the account.
129+
* @param user user or {@code null} for none
130+
*/
131+
public CreateAndConfigureAccountRequest setUser(java.util.List<AddUser> user) {
132+
this.user = user;
133+
return this;
134+
}
135+
136+
/**
137+
* Optional. Users to be added to the account. This field is deprecated and will not exist after
138+
* the API evolves out of beta. Use the `user` field instead.
139+
* @return value or {@code null} for none
140+
*/
109141
public java.util.List<CreateUserRequest> getUsers() {
110142
return users;
111143
}
112144

113145
/**
114-
* Optional. Users to be added to the account.
146+
* Optional. Users to be added to the account. This field is deprecated and will not exist after
147+
* the API evolves out of beta. Use the `user` field instead.
115148
* @param users users or {@code null} for none
116149
*/
117150
public CreateAndConfigureAccountRequest setUsers(java.util.List<CreateUserRequest> users) {

clients/google-api-services-merchantapi/accounts_v1beta/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-merchantapi</artifactId>
11-
<version>accounts_v1beta-rev20250115-2.0.0</version>
12-
<name>Merchant API accounts_v1beta-rev20250115-2.0.0</name>
11+
<version>accounts_v1beta-rev20250125-2.0.0</version>
12+
<name>Merchant API accounts_v1beta-rev20250125-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-merchantapi/accounts_v1beta/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-merchantapi</artifactId>
25-
<version>accounts_v1beta-rev20250115-2.0.0</version>
25+
<version>accounts_v1beta-rev20250125-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-merchantapi:accounts_v1beta-rev20250115-2.0.0'
38+
implementation 'com.google.apis:google-api-services-merchantapi:accounts_v1beta-rev20250125-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)