Skip to content

Commit 5d26463

Browse files
1 parent 56300d0 commit 5d26463

File tree

6 files changed

+247
-6
lines changed

6 files changed

+247
-6
lines changed

clients/google-api-services-androidpublisher/v3/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-androidpublisher</artifactId>
25-
<version>v3-rev20240117-2.0.0</version>
25+
<version>v3-rev20240129-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-androidpublisher:v3-rev20240117-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20240129-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-androidpublisher/v3/2.0.0/com/google/api/services/androidpublisher/AndroidPublisher.java

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,125 @@ public Applications applications() {
153153
*/
154154
public class Applications {
155155

156+
/**
157+
* Writes the Safety Labels declaration of an app.
158+
*
159+
* Create a request for the method "applications.dataSafety".
160+
*
161+
* This request holds the parameters needed by the androidpublisher server. After setting any
162+
* optional parameters, call the {@link DataSafety#execute()} method to invoke the remote operation.
163+
*
164+
* @param packageName Required. Package name of the app.
165+
* @param content the {@link com.google.api.services.androidpublisher.model.SafetyLabelsUpdateRequest}
166+
* @return the request
167+
*/
168+
public DataSafety dataSafety(java.lang.String packageName, com.google.api.services.androidpublisher.model.SafetyLabelsUpdateRequest content) throws java.io.IOException {
169+
DataSafety result = new DataSafety(packageName, content);
170+
initialize(result);
171+
return result;
172+
}
173+
174+
public class DataSafety extends AndroidPublisherRequest<com.google.api.services.androidpublisher.model.SafetyLabelsUpdateResponse> {
175+
176+
private static final String REST_PATH = "androidpublisher/v3/applications/{packageName}/dataSafety";
177+
178+
/**
179+
* Writes the Safety Labels declaration of an app.
180+
*
181+
* Create a request for the method "applications.dataSafety".
182+
*
183+
* This request holds the parameters needed by the the androidpublisher server. After setting any
184+
* optional parameters, call the {@link DataSafety#execute()} method to invoke the remote
185+
* operation. <p> {@link
186+
* DataSafety#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
187+
* must be called to initialize this instance immediately after invoking the constructor. </p>
188+
*
189+
* @param packageName Required. Package name of the app.
190+
* @param content the {@link com.google.api.services.androidpublisher.model.SafetyLabelsUpdateRequest}
191+
* @since 1.13
192+
*/
193+
protected DataSafety(java.lang.String packageName, com.google.api.services.androidpublisher.model.SafetyLabelsUpdateRequest content) {
194+
super(AndroidPublisher.this, "POST", REST_PATH, content, com.google.api.services.androidpublisher.model.SafetyLabelsUpdateResponse.class);
195+
this.packageName = com.google.api.client.util.Preconditions.checkNotNull(packageName, "Required parameter packageName must be specified.");
196+
}
197+
198+
@Override
199+
public DataSafety set$Xgafv(java.lang.String $Xgafv) {
200+
return (DataSafety) super.set$Xgafv($Xgafv);
201+
}
202+
203+
@Override
204+
public DataSafety setAccessToken(java.lang.String accessToken) {
205+
return (DataSafety) super.setAccessToken(accessToken);
206+
}
207+
208+
@Override
209+
public DataSafety setAlt(java.lang.String alt) {
210+
return (DataSafety) super.setAlt(alt);
211+
}
212+
213+
@Override
214+
public DataSafety setCallback(java.lang.String callback) {
215+
return (DataSafety) super.setCallback(callback);
216+
}
217+
218+
@Override
219+
public DataSafety setFields(java.lang.String fields) {
220+
return (DataSafety) super.setFields(fields);
221+
}
222+
223+
@Override
224+
public DataSafety setKey(java.lang.String key) {
225+
return (DataSafety) super.setKey(key);
226+
}
227+
228+
@Override
229+
public DataSafety setOauthToken(java.lang.String oauthToken) {
230+
return (DataSafety) super.setOauthToken(oauthToken);
231+
}
232+
233+
@Override
234+
public DataSafety setPrettyPrint(java.lang.Boolean prettyPrint) {
235+
return (DataSafety) super.setPrettyPrint(prettyPrint);
236+
}
237+
238+
@Override
239+
public DataSafety setQuotaUser(java.lang.String quotaUser) {
240+
return (DataSafety) super.setQuotaUser(quotaUser);
241+
}
242+
243+
@Override
244+
public DataSafety setUploadType(java.lang.String uploadType) {
245+
return (DataSafety) super.setUploadType(uploadType);
246+
}
247+
248+
@Override
249+
public DataSafety setUploadProtocol(java.lang.String uploadProtocol) {
250+
return (DataSafety) super.setUploadProtocol(uploadProtocol);
251+
}
252+
253+
/** Required. Package name of the app. */
254+
@com.google.api.client.util.Key
255+
private java.lang.String packageName;
256+
257+
/** Required. Package name of the app.
258+
*/
259+
public java.lang.String getPackageName() {
260+
return packageName;
261+
}
262+
263+
/** Required. Package name of the app. */
264+
public DataSafety setPackageName(java.lang.String packageName) {
265+
this.packageName = packageName;
266+
return this;
267+
}
268+
269+
@Override
270+
public DataSafety set(String parameterName, Object value) {
271+
return (DataSafety) super.set(parameterName, value);
272+
}
273+
}
274+
156275
/**
157276
* An accessor for creating requests from the DeviceTierConfigs collection.
158277
*
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.androidpublisher.model;
18+
19+
/**
20+
* Request to update Safety Labels of an app.
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 Google Play Android Developer 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 SafetyLabelsUpdateRequest extends com.google.api.client.json.GenericJson {
32+
33+
/**
34+
* Required. Contents of the CSV file containing Data Safety responses. For the format of this
35+
* file, see the Help Center documentation at https://support.google.com/googleplay/android-
36+
* developer/answer/10787469?hl=en#zippy=%2Cunderstand-the-csv-format To download an up to date
37+
* template, follow the steps at https://support.google.com/googleplay/android-
38+
* developer/answer/10787469?hl=en#zippy=%2Cexport-to-a-csv-file
39+
* The value may be {@code null}.
40+
*/
41+
@com.google.api.client.util.Key
42+
private java.lang.String safetyLabels;
43+
44+
/**
45+
* Required. Contents of the CSV file containing Data Safety responses. For the format of this
46+
* file, see the Help Center documentation at https://support.google.com/googleplay/android-
47+
* developer/answer/10787469?hl=en#zippy=%2Cunderstand-the-csv-format To download an up to date
48+
* template, follow the steps at https://support.google.com/googleplay/android-
49+
* developer/answer/10787469?hl=en#zippy=%2Cexport-to-a-csv-file
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getSafetyLabels() {
53+
return safetyLabels;
54+
}
55+
56+
/**
57+
* Required. Contents of the CSV file containing Data Safety responses. For the format of this
58+
* file, see the Help Center documentation at https://support.google.com/googleplay/android-
59+
* developer/answer/10787469?hl=en#zippy=%2Cunderstand-the-csv-format To download an up to date
60+
* template, follow the steps at https://support.google.com/googleplay/android-
61+
* developer/answer/10787469?hl=en#zippy=%2Cexport-to-a-csv-file
62+
* @param safetyLabels safetyLabels or {@code null} for none
63+
*/
64+
public SafetyLabelsUpdateRequest setSafetyLabels(java.lang.String safetyLabels) {
65+
this.safetyLabels = safetyLabels;
66+
return this;
67+
}
68+
69+
@Override
70+
public SafetyLabelsUpdateRequest set(String fieldName, Object value) {
71+
return (SafetyLabelsUpdateRequest) super.set(fieldName, value);
72+
}
73+
74+
@Override
75+
public SafetyLabelsUpdateRequest clone() {
76+
return (SafetyLabelsUpdateRequest) super.clone();
77+
}
78+
79+
}
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.androidpublisher.model;
18+
19+
/**
20+
* Response for SafetyLabelsUpdate rpc.
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 Google Play Android Developer 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 SafetyLabelsUpdateResponse extends com.google.api.client.json.GenericJson {
32+
33+
@Override
34+
public SafetyLabelsUpdateResponse set(String fieldName, Object value) {
35+
return (SafetyLabelsUpdateResponse) super.set(fieldName, value);
36+
}
37+
38+
@Override
39+
public SafetyLabelsUpdateResponse clone() {
40+
return (SafetyLabelsUpdateResponse) super.clone();
41+
}
42+
43+
}

clients/google-api-services-androidpublisher/v3/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-androidpublisher</artifactId>
11-
<version>v3-rev20240117-2.0.0</version>
12-
<name>Google Play Android Developer API v3-rev20240117-2.0.0</name>
11+
<version>v3-rev20240129-2.0.0</version>
12+
<name>Google Play Android Developer API v3-rev20240129-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-androidpublisher/v3/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-androidpublisher</artifactId>
25-
<version>v3-rev20240117-2.0.0</version>
25+
<version>v3-rev20240129-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-androidpublisher:v3-rev20240117-2.0.0'
38+
implementation 'com.google.apis:google-api-services-androidpublisher:v3-rev20240129-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)