Skip to content

Commit 03b5cbe

Browse files
1 parent 7bc97ed commit 03b5cbe

File tree

5 files changed

+308
-6
lines changed

5 files changed

+308
-6
lines changed

clients/google-api-services-adsenseplatform/v1alpha/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-adsenseplatform</artifactId>
25-
<version>v1alpha-rev20241203-2.0.0</version>
25+
<version>v1alpha-rev20250106-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-adsenseplatform:v1alpha-rev20241203-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250106-2.0.0'
3939
}
4040
```
4141

clients/google-api-services-adsenseplatform/v1alpha/2.0.0/com/google/api/services/adsenseplatform/v1alpha/AdSensePlatform.java

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,194 @@ protected void initialize(com.google.api.client.googleapis.services.AbstractGoog
133133
super.initialize(httpClientRequest);
134134
}
135135

136+
/**
137+
* An accessor for creating requests from the Accounts collection.
138+
*
139+
* <p>The typical use is:</p>
140+
* <pre>
141+
* {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
142+
* {@code AdSensePlatform.Accounts.List request = adsenseplatform.accounts().list(parameters ...)}
143+
* </pre>
144+
*
145+
* @return the resource collection
146+
*/
147+
public Accounts accounts() {
148+
return new Accounts();
149+
}
150+
151+
/**
152+
* The "accounts" collection of methods.
153+
*/
154+
public class Accounts {
155+
156+
/**
157+
* An accessor for creating requests from the Platforms collection.
158+
*
159+
* <p>The typical use is:</p>
160+
* <pre>
161+
* {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
162+
* {@code AdSensePlatform.Platforms.List request = adsenseplatform.platforms().list(parameters ...)}
163+
* </pre>
164+
*
165+
* @return the resource collection
166+
*/
167+
public Platforms platforms() {
168+
return new Platforms();
169+
}
170+
171+
/**
172+
* The "platforms" collection of methods.
173+
*/
174+
public class Platforms {
175+
176+
/**
177+
* Gets a platform.
178+
*
179+
* Create a request for the method "platforms.get".
180+
*
181+
* This request holds the parameters needed by the adsenseplatform server. After setting any
182+
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation.
183+
*
184+
* @param name Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
185+
* @return the request
186+
*/
187+
public Get get(java.lang.String name) throws java.io.IOException {
188+
Get result = new Get(name);
189+
initialize(result);
190+
return result;
191+
}
192+
193+
public class Get extends AdSensePlatformRequest<com.google.api.services.adsenseplatform.v1alpha.model.Platform> {
194+
195+
private static final String REST_PATH = "v1alpha/{+name}";
196+
197+
private final java.util.regex.Pattern NAME_PATTERN =
198+
java.util.regex.Pattern.compile("^accounts/[^/]+/platforms/[^/]+$");
199+
200+
/**
201+
* Gets a platform.
202+
*
203+
* Create a request for the method "platforms.get".
204+
*
205+
* This request holds the parameters needed by the the adsenseplatform server. After setting any
206+
* optional parameters, call the {@link Get#execute()} method to invoke the remote operation. <p>
207+
* {@link Get#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
208+
* must be called to initialize this instance immediately after invoking the constructor. </p>
209+
*
210+
* @param name Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
211+
* @since 1.13
212+
*/
213+
protected Get(java.lang.String name) {
214+
super(AdSensePlatform.this, "GET", REST_PATH, null, com.google.api.services.adsenseplatform.v1alpha.model.Platform.class);
215+
this.name = com.google.api.client.util.Preconditions.checkNotNull(name, "Required parameter name must be specified.");
216+
if (!getSuppressPatternChecks()) {
217+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
218+
"Parameter name must conform to the pattern " +
219+
"^accounts/[^/]+/platforms/[^/]+$");
220+
}
221+
}
222+
223+
@Override
224+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
225+
return super.executeUsingHead();
226+
}
227+
228+
@Override
229+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
230+
return super.buildHttpRequestUsingHead();
231+
}
232+
233+
@Override
234+
public Get set$Xgafv(java.lang.String $Xgafv) {
235+
return (Get) super.set$Xgafv($Xgafv);
236+
}
237+
238+
@Override
239+
public Get setAccessToken(java.lang.String accessToken) {
240+
return (Get) super.setAccessToken(accessToken);
241+
}
242+
243+
@Override
244+
public Get setAlt(java.lang.String alt) {
245+
return (Get) super.setAlt(alt);
246+
}
247+
248+
@Override
249+
public Get setCallback(java.lang.String callback) {
250+
return (Get) super.setCallback(callback);
251+
}
252+
253+
@Override
254+
public Get setFields(java.lang.String fields) {
255+
return (Get) super.setFields(fields);
256+
}
257+
258+
@Override
259+
public Get setKey(java.lang.String key) {
260+
return (Get) super.setKey(key);
261+
}
262+
263+
@Override
264+
public Get setOauthToken(java.lang.String oauthToken) {
265+
return (Get) super.setOauthToken(oauthToken);
266+
}
267+
268+
@Override
269+
public Get setPrettyPrint(java.lang.Boolean prettyPrint) {
270+
return (Get) super.setPrettyPrint(prettyPrint);
271+
}
272+
273+
@Override
274+
public Get setQuotaUser(java.lang.String quotaUser) {
275+
return (Get) super.setQuotaUser(quotaUser);
276+
}
277+
278+
@Override
279+
public Get setUploadType(java.lang.String uploadType) {
280+
return (Get) super.setUploadType(uploadType);
281+
}
282+
283+
@Override
284+
public Get setUploadProtocol(java.lang.String uploadProtocol) {
285+
return (Get) super.setUploadProtocol(uploadProtocol);
286+
}
287+
288+
/**
289+
* Required. The name of the platform to retrieve. Format:
290+
* accounts/{account}/platforms/{platform}
291+
*/
292+
@com.google.api.client.util.Key
293+
private java.lang.String name;
294+
295+
/** Required. The name of the platform to retrieve. Format: accounts/{account}/platforms/{platform}
296+
*/
297+
public java.lang.String getName() {
298+
return name;
299+
}
300+
301+
/**
302+
* Required. The name of the platform to retrieve. Format:
303+
* accounts/{account}/platforms/{platform}
304+
*/
305+
public Get setName(java.lang.String name) {
306+
if (!getSuppressPatternChecks()) {
307+
com.google.api.client.util.Preconditions.checkArgument(NAME_PATTERN.matcher(name).matches(),
308+
"Parameter name must conform to the pattern " +
309+
"^accounts/[^/]+/platforms/[^/]+$");
310+
}
311+
this.name = name;
312+
return this;
313+
}
314+
315+
@Override
316+
public Get set(String parameterName, Object value) {
317+
return (Get) super.set(parameterName, value);
318+
}
319+
}
320+
321+
}
322+
}
323+
136324
/**
137325
* An accessor for creating requests from the Platforms collection.
138326
*
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
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.adsenseplatform.v1alpha.model;
18+
19+
/**
20+
* Representation of a Transparent Platform.
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 AdSense Platform 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 Platform extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Default platform group for the platform.
34+
* The value may be {@code null}.
35+
*/
36+
@com.google.api.client.util.Key
37+
private java.lang.String defaultPlatformGroup;
38+
39+
/**
40+
* Output only. Description of the platform.
41+
* The value may be {@code null}.
42+
*/
43+
@com.google.api.client.util.Key
44+
private java.lang.String description;
45+
46+
/**
47+
* Identifier. Resource name of a platform. Format: accounts/{account}/platforms/{platform}
48+
* The value may be {@code null}.
49+
*/
50+
@com.google.api.client.util.Key
51+
private java.lang.String name;
52+
53+
/**
54+
* Default platform group for the platform.
55+
* @return value or {@code null} for none
56+
*/
57+
public java.lang.String getDefaultPlatformGroup() {
58+
return defaultPlatformGroup;
59+
}
60+
61+
/**
62+
* Default platform group for the platform.
63+
* @param defaultPlatformGroup defaultPlatformGroup or {@code null} for none
64+
*/
65+
public Platform setDefaultPlatformGroup(java.lang.String defaultPlatformGroup) {
66+
this.defaultPlatformGroup = defaultPlatformGroup;
67+
return this;
68+
}
69+
70+
/**
71+
* Output only. Description of the platform.
72+
* @return value or {@code null} for none
73+
*/
74+
public java.lang.String getDescription() {
75+
return description;
76+
}
77+
78+
/**
79+
* Output only. Description of the platform.
80+
* @param description description or {@code null} for none
81+
*/
82+
public Platform setDescription(java.lang.String description) {
83+
this.description = description;
84+
return this;
85+
}
86+
87+
/**
88+
* Identifier. Resource name of a platform. Format: accounts/{account}/platforms/{platform}
89+
* @return value or {@code null} for none
90+
*/
91+
public java.lang.String getName() {
92+
return name;
93+
}
94+
95+
/**
96+
* Identifier. Resource name of a platform. Format: accounts/{account}/platforms/{platform}
97+
* @param name name or {@code null} for none
98+
*/
99+
public Platform setName(java.lang.String name) {
100+
this.name = name;
101+
return this;
102+
}
103+
104+
@Override
105+
public Platform set(String fieldName, Object value) {
106+
return (Platform) super.set(fieldName, value);
107+
}
108+
109+
@Override
110+
public Platform clone() {
111+
return (Platform) super.clone();
112+
}
113+
114+
}

clients/google-api-services-adsenseplatform/v1alpha/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-adsenseplatform</artifactId>
11-
<version>v1alpha-rev20241203-2.0.0</version>
12-
<name>AdSense Platform API v1alpha-rev20241203-2.0.0</name>
11+
<version>v1alpha-rev20250106-2.0.0</version>
12+
<name>AdSense Platform API v1alpha-rev20250106-2.0.0</name>
1313
<packaging>jar</packaging>
1414

1515
<inceptionYear>2011</inceptionYear>

clients/google-api-services-adsenseplatform/v1alpha/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-adsenseplatform</artifactId>
25-
<version>v1alpha-rev20241203-2.0.0</version>
25+
<version>v1alpha-rev20250106-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-adsenseplatform:v1alpha-rev20241203-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250106-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)