Skip to content

Commit 7a456ad

Browse files
1 parent ac015ce commit 7a456ad

File tree

5 files changed

+289
-6
lines changed

5 files changed

+289
-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-rev20250106-2.0.0</version>
25+
<version>v1alpha-rev20250108-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-rev20250106-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250108-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: 190 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,196 @@ public Get set(String parameterName, Object value) {
317317
return (Get) super.set(parameterName, value);
318318
}
319319
}
320+
/**
321+
* Lists platforms for a specified account.
322+
*
323+
* Create a request for the method "platforms.list".
324+
*
325+
* This request holds the parameters needed by the adsenseplatform server. After setting any
326+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
327+
*
328+
* @param parent Required. The account which owns the platforms. Format: accounts/{account}
329+
* @return the request
330+
*/
331+
public List list(java.lang.String parent) throws java.io.IOException {
332+
List result = new List(parent);
333+
initialize(result);
334+
return result;
335+
}
336+
337+
public class List extends AdSensePlatformRequest<com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformsResponse> {
338+
339+
private static final String REST_PATH = "v1alpha/{+parent}/platforms";
340+
341+
private final java.util.regex.Pattern PARENT_PATTERN =
342+
java.util.regex.Pattern.compile("^accounts/[^/]+$");
343+
344+
/**
345+
* Lists platforms for a specified account.
346+
*
347+
* Create a request for the method "platforms.list".
348+
*
349+
* This request holds the parameters needed by the the adsenseplatform server. After setting any
350+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
351+
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
352+
* must be called to initialize this instance immediately after invoking the constructor. </p>
353+
*
354+
* @param parent Required. The account which owns the platforms. Format: accounts/{account}
355+
* @since 1.13
356+
*/
357+
protected List(java.lang.String parent) {
358+
super(AdSensePlatform.this, "GET", REST_PATH, null, com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformsResponse.class);
359+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
360+
if (!getSuppressPatternChecks()) {
361+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
362+
"Parameter parent must conform to the pattern " +
363+
"^accounts/[^/]+$");
364+
}
365+
}
366+
367+
@Override
368+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
369+
return super.executeUsingHead();
370+
}
371+
372+
@Override
373+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
374+
return super.buildHttpRequestUsingHead();
375+
}
376+
377+
@Override
378+
public List set$Xgafv(java.lang.String $Xgafv) {
379+
return (List) super.set$Xgafv($Xgafv);
380+
}
381+
382+
@Override
383+
public List setAccessToken(java.lang.String accessToken) {
384+
return (List) super.setAccessToken(accessToken);
385+
}
386+
387+
@Override
388+
public List setAlt(java.lang.String alt) {
389+
return (List) super.setAlt(alt);
390+
}
391+
392+
@Override
393+
public List setCallback(java.lang.String callback) {
394+
return (List) super.setCallback(callback);
395+
}
396+
397+
@Override
398+
public List setFields(java.lang.String fields) {
399+
return (List) super.setFields(fields);
400+
}
401+
402+
@Override
403+
public List setKey(java.lang.String key) {
404+
return (List) super.setKey(key);
405+
}
406+
407+
@Override
408+
public List setOauthToken(java.lang.String oauthToken) {
409+
return (List) super.setOauthToken(oauthToken);
410+
}
411+
412+
@Override
413+
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
414+
return (List) super.setPrettyPrint(prettyPrint);
415+
}
416+
417+
@Override
418+
public List setQuotaUser(java.lang.String quotaUser) {
419+
return (List) super.setQuotaUser(quotaUser);
420+
}
421+
422+
@Override
423+
public List setUploadType(java.lang.String uploadType) {
424+
return (List) super.setUploadType(uploadType);
425+
}
426+
427+
@Override
428+
public List setUploadProtocol(java.lang.String uploadProtocol) {
429+
return (List) super.setUploadProtocol(uploadProtocol);
430+
}
431+
432+
/** Required. The account which owns the platforms. Format: accounts/{account} */
433+
@com.google.api.client.util.Key
434+
private java.lang.String parent;
435+
436+
/** Required. The account which owns the platforms. Format: accounts/{account}
437+
*/
438+
public java.lang.String getParent() {
439+
return parent;
440+
}
441+
442+
/** Required. The account which owns the platforms. Format: accounts/{account} */
443+
public List setParent(java.lang.String parent) {
444+
if (!getSuppressPatternChecks()) {
445+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
446+
"Parameter parent must conform to the pattern " +
447+
"^accounts/[^/]+$");
448+
}
449+
this.parent = parent;
450+
return this;
451+
}
452+
453+
/**
454+
* Optional. The maximum number of platforms to include in the response, used for paging. If
455+
* unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values
456+
* above 10000 will be coerced to 10000.
457+
*/
458+
@com.google.api.client.util.Key
459+
private java.lang.Integer pageSize;
460+
461+
/** Optional. The maximum number of platforms to include in the response, used for paging. If
462+
unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above
463+
10000 will be coerced to 10000.
464+
*/
465+
public java.lang.Integer getPageSize() {
466+
return pageSize;
467+
}
468+
469+
/**
470+
* Optional. The maximum number of platforms to include in the response, used for paging. If
471+
* unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values
472+
* above 10000 will be coerced to 10000.
473+
*/
474+
public List setPageSize(java.lang.Integer pageSize) {
475+
this.pageSize = pageSize;
476+
return this;
477+
}
478+
479+
/**
480+
* Optional. A page token, received from a previous `ListPlatforms` call. Provide this to
481+
* retrieve the subsequent page. When paginating, all other parameters provided to
482+
* `ListPlatforms` must match the call that provided the page token.
483+
*/
484+
@com.google.api.client.util.Key
485+
private java.lang.String pageToken;
486+
487+
/** Optional. A page token, received from a previous `ListPlatforms` call. Provide this to retrieve the
488+
subsequent page. When paginating, all other parameters provided to `ListPlatforms` must match the
489+
call that provided the page token.
490+
*/
491+
public java.lang.String getPageToken() {
492+
return pageToken;
493+
}
494+
495+
/**
496+
* Optional. A page token, received from a previous `ListPlatforms` call. Provide this to
497+
* retrieve the subsequent page. When paginating, all other parameters provided to
498+
* `ListPlatforms` must match the call that provided the page token.
499+
*/
500+
public List setPageToken(java.lang.String pageToken) {
501+
this.pageToken = pageToken;
502+
return this;
503+
}
504+
505+
@Override
506+
public List set(String parameterName, Object value) {
507+
return (List) super.set(parameterName, value);
508+
}
509+
}
320510

321511
}
322512
}
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.adsenseplatform.v1alpha.model;
18+
19+
/**
20+
* Response definition for the platform list 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 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 ListPlatformsResponse extends com.google.api.client.json.GenericJson {
31+
32+
/**
33+
* Continuation token used to page through platforms. To retrieve the next page of the results,
34+
* set the next request's "page_token" value to this.
35+
* The value may be {@code null}.
36+
*/
37+
@com.google.api.client.util.Key
38+
private java.lang.String nextPageToken;
39+
40+
/**
41+
* The platforms returned in this list response.
42+
* The value may be {@code null}.
43+
*/
44+
@com.google.api.client.util.Key
45+
private java.util.List<Platform> platforms;
46+
47+
/**
48+
* Continuation token used to page through platforms. To retrieve the next page of the results,
49+
* set the next request's "page_token" value to this.
50+
* @return value or {@code null} for none
51+
*/
52+
public java.lang.String getNextPageToken() {
53+
return nextPageToken;
54+
}
55+
56+
/**
57+
* Continuation token used to page through platforms. To retrieve the next page of the results,
58+
* set the next request's "page_token" value to this.
59+
* @param nextPageToken nextPageToken or {@code null} for none
60+
*/
61+
public ListPlatformsResponse setNextPageToken(java.lang.String nextPageToken) {
62+
this.nextPageToken = nextPageToken;
63+
return this;
64+
}
65+
66+
/**
67+
* The platforms returned in this list response.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.util.List<Platform> getPlatforms() {
71+
return platforms;
72+
}
73+
74+
/**
75+
* The platforms returned in this list response.
76+
* @param platforms platforms or {@code null} for none
77+
*/
78+
public ListPlatformsResponse setPlatforms(java.util.List<Platform> platforms) {
79+
this.platforms = platforms;
80+
return this;
81+
}
82+
83+
@Override
84+
public ListPlatformsResponse set(String fieldName, Object value) {
85+
return (ListPlatformsResponse) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public ListPlatformsResponse clone() {
90+
return (ListPlatformsResponse) super.clone();
91+
}
92+
93+
}

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-rev20250106-2.0.0</version>
12-
<name>AdSense Platform API v1alpha-rev20250106-2.0.0</name>
11+
<version>v1alpha-rev20250108-2.0.0</version>
12+
<name>AdSense Platform API v1alpha-rev20250108-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-rev20250106-2.0.0</version>
25+
<version>v1alpha-rev20250108-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-rev20250106-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250108-2.0.0'
3939
}
4040
```
4141

0 commit comments

Comments
 (0)