Skip to content

Commit 7934acb

Browse files
1 parent 4e863e4 commit 7934acb

File tree

7 files changed

+462
-10
lines changed

7 files changed

+462
-10
lines changed

clients/google-api-services-adsenseplatform/v1/2.0.0/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<link>http://docs.oracle.com/javase/7/docs/api</link>
9393
<link>https://googleapis.dev/java/google-http-client/1.45.3/</link>
9494
<link>https://googleapis.dev/java/google-oauth-client/1.37.0/</link>
95-
<link>https://googleapis.dev/java/google-api-client/2.7.0/</link>
95+
<link>https://googleapis.dev/java/google-api-client/2.7.1/</link>
9696
</links>
9797
</configuration>
9898
</plugin>
@@ -125,7 +125,7 @@
125125
<dependency>
126126
<groupId>com.google.api-client</groupId>
127127
<artifactId>google-api-client</artifactId>
128-
<version>2.7.0</version>
128+
<version>2.7.1</version>
129129
</dependency>
130130
</dependencies>
131131

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-rev20250108-2.0.0</version>
25+
<version>v1alpha-rev20250114-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-rev20250108-2.0.0'
38+
implementation 'com.google.apis:google-api-services-adsenseplatform:v1alpha-rev20250114-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: 242 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,248 @@ public List set(String parameterName, Object value) {
508508
}
509509
}
510510

511+
/**
512+
* An accessor for creating requests from the ChildAccounts collection.
513+
*
514+
* <p>The typical use is:</p>
515+
* <pre>
516+
* {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
517+
* {@code AdSensePlatform.ChildAccounts.List request = adsenseplatform.childAccounts().list(parameters ...)}
518+
* </pre>
519+
*
520+
* @return the resource collection
521+
*/
522+
public ChildAccounts childAccounts() {
523+
return new ChildAccounts();
524+
}
525+
526+
/**
527+
* The "childAccounts" collection of methods.
528+
*/
529+
public class ChildAccounts {
530+
531+
/**
532+
* An accessor for creating requests from the Sites collection.
533+
*
534+
* <p>The typical use is:</p>
535+
* <pre>
536+
* {@code AdSensePlatform adsenseplatform = new AdSensePlatform(...);}
537+
* {@code AdSensePlatform.Sites.List request = adsenseplatform.sites().list(parameters ...)}
538+
* </pre>
539+
*
540+
* @return the resource collection
541+
*/
542+
public Sites sites() {
543+
return new Sites();
544+
}
545+
546+
/**
547+
* The "sites" collection of methods.
548+
*/
549+
public class Sites {
550+
551+
/**
552+
* Lists Platform Child Sites for a specified Platform Child Account.
553+
*
554+
* Create a request for the method "sites.list".
555+
*
556+
* This request holds the parameters needed by the adsenseplatform server. After setting any
557+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation.
558+
*
559+
* @param parent Required. The name of the platform to retrieve. Format:
560+
* accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}
561+
* @return the request
562+
*/
563+
public List list(java.lang.String parent) throws java.io.IOException {
564+
List result = new List(parent);
565+
initialize(result);
566+
return result;
567+
}
568+
569+
public class List extends AdSensePlatformRequest<com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformChildSitesResponse> {
570+
571+
private static final String REST_PATH = "v1alpha/{+parent}/sites";
572+
573+
private final java.util.regex.Pattern PARENT_PATTERN =
574+
java.util.regex.Pattern.compile("^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+$");
575+
576+
/**
577+
* Lists Platform Child Sites for a specified Platform Child Account.
578+
*
579+
* Create a request for the method "sites.list".
580+
*
581+
* This request holds the parameters needed by the the adsenseplatform server. After setting any
582+
* optional parameters, call the {@link List#execute()} method to invoke the remote operation. <p>
583+
* {@link List#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)}
584+
* must be called to initialize this instance immediately after invoking the constructor. </p>
585+
*
586+
* @param parent Required. The name of the platform to retrieve. Format:
587+
* accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}
588+
* @since 1.13
589+
*/
590+
protected List(java.lang.String parent) {
591+
super(AdSensePlatform.this, "GET", REST_PATH, null, com.google.api.services.adsenseplatform.v1alpha.model.ListPlatformChildSitesResponse.class);
592+
this.parent = com.google.api.client.util.Preconditions.checkNotNull(parent, "Required parameter parent must be specified.");
593+
if (!getSuppressPatternChecks()) {
594+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
595+
"Parameter parent must conform to the pattern " +
596+
"^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+$");
597+
}
598+
}
599+
600+
@Override
601+
public com.google.api.client.http.HttpResponse executeUsingHead() throws java.io.IOException {
602+
return super.executeUsingHead();
603+
}
604+
605+
@Override
606+
public com.google.api.client.http.HttpRequest buildHttpRequestUsingHead() throws java.io.IOException {
607+
return super.buildHttpRequestUsingHead();
608+
}
609+
610+
@Override
611+
public List set$Xgafv(java.lang.String $Xgafv) {
612+
return (List) super.set$Xgafv($Xgafv);
613+
}
614+
615+
@Override
616+
public List setAccessToken(java.lang.String accessToken) {
617+
return (List) super.setAccessToken(accessToken);
618+
}
619+
620+
@Override
621+
public List setAlt(java.lang.String alt) {
622+
return (List) super.setAlt(alt);
623+
}
624+
625+
@Override
626+
public List setCallback(java.lang.String callback) {
627+
return (List) super.setCallback(callback);
628+
}
629+
630+
@Override
631+
public List setFields(java.lang.String fields) {
632+
return (List) super.setFields(fields);
633+
}
634+
635+
@Override
636+
public List setKey(java.lang.String key) {
637+
return (List) super.setKey(key);
638+
}
639+
640+
@Override
641+
public List setOauthToken(java.lang.String oauthToken) {
642+
return (List) super.setOauthToken(oauthToken);
643+
}
644+
645+
@Override
646+
public List setPrettyPrint(java.lang.Boolean prettyPrint) {
647+
return (List) super.setPrettyPrint(prettyPrint);
648+
}
649+
650+
@Override
651+
public List setQuotaUser(java.lang.String quotaUser) {
652+
return (List) super.setQuotaUser(quotaUser);
653+
}
654+
655+
@Override
656+
public List setUploadType(java.lang.String uploadType) {
657+
return (List) super.setUploadType(uploadType);
658+
}
659+
660+
@Override
661+
public List setUploadProtocol(java.lang.String uploadProtocol) {
662+
return (List) super.setUploadProtocol(uploadProtocol);
663+
}
664+
665+
/**
666+
* Required. The name of the platform to retrieve. Format:
667+
* accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}
668+
*/
669+
@com.google.api.client.util.Key
670+
private java.lang.String parent;
671+
672+
/** Required. The name of the platform to retrieve. Format:
673+
accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}
674+
*/
675+
public java.lang.String getParent() {
676+
return parent;
677+
}
678+
679+
/**
680+
* Required. The name of the platform to retrieve. Format:
681+
* accounts/{account}/platforms/{platform}/childAccounts/{child_publisher_code}
682+
*/
683+
public List setParent(java.lang.String parent) {
684+
if (!getSuppressPatternChecks()) {
685+
com.google.api.client.util.Preconditions.checkArgument(PARENT_PATTERN.matcher(parent).matches(),
686+
"Parameter parent must conform to the pattern " +
687+
"^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+$");
688+
}
689+
this.parent = parent;
690+
return this;
691+
}
692+
693+
/**
694+
* Optional. The maximum number of children to include in the response, used for paging.
695+
* If unspecified, at most 10000 platforms will be returned. The maximum value is 10000;
696+
* values above 10000 will be coerced to 10000.
697+
*/
698+
@com.google.api.client.util.Key
699+
private java.lang.Integer pageSize;
700+
701+
/** Optional. The maximum number of children to include in the response, used for paging. If
702+
unspecified, at most 10000 platforms will be returned. The maximum value is 10000; values above
703+
10000 will be coerced to 10000.
704+
*/
705+
public java.lang.Integer getPageSize() {
706+
return pageSize;
707+
}
708+
709+
/**
710+
* Optional. The maximum number of children to include in the response, used for paging.
711+
* If unspecified, at most 10000 platforms will be returned. The maximum value is 10000;
712+
* values above 10000 will be coerced to 10000.
713+
*/
714+
public List setPageSize(java.lang.Integer pageSize) {
715+
this.pageSize = pageSize;
716+
return this;
717+
}
718+
719+
/**
720+
* Optional. A page token, received from a previous `ListPlatformChildren` call. Provide
721+
* this to retrieve the subsequent page. When paginating, all other parameters provided
722+
* to `ListPlatformChildren` must match the call that provided the page token.
723+
*/
724+
@com.google.api.client.util.Key
725+
private java.lang.String pageToken;
726+
727+
/** Optional. A page token, received from a previous `ListPlatformChildren` call. Provide this to
728+
retrieve the subsequent page. When paginating, all other parameters provided to
729+
`ListPlatformChildren` must match the call that provided the page token.
730+
*/
731+
public java.lang.String getPageToken() {
732+
return pageToken;
733+
}
734+
735+
/**
736+
* Optional. A page token, received from a previous `ListPlatformChildren` call. Provide
737+
* this to retrieve the subsequent page. When paginating, all other parameters provided
738+
* to `ListPlatformChildren` must match the call that provided the page token.
739+
*/
740+
public List setPageToken(java.lang.String pageToken) {
741+
this.pageToken = pageToken;
742+
return this;
743+
}
744+
745+
@Override
746+
public List set(String parameterName, Object value) {
747+
return (List) super.set(parameterName, value);
748+
}
749+
}
750+
751+
}
752+
}
511753
}
512754
}
513755

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 list platform child sites 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 ListPlatformChildSitesResponse 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 platform child sites 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<PlatformChildSite> platformChildSites;
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 ListPlatformChildSitesResponse setNextPageToken(java.lang.String nextPageToken) {
62+
this.nextPageToken = nextPageToken;
63+
return this;
64+
}
65+
66+
/**
67+
* The platform child sites returned in this list response.
68+
* @return value or {@code null} for none
69+
*/
70+
public java.util.List<PlatformChildSite> getPlatformChildSites() {
71+
return platformChildSites;
72+
}
73+
74+
/**
75+
* The platform child sites returned in this list response.
76+
* @param platformChildSites platformChildSites or {@code null} for none
77+
*/
78+
public ListPlatformChildSitesResponse setPlatformChildSites(java.util.List<PlatformChildSite> platformChildSites) {
79+
this.platformChildSites = platformChildSites;
80+
return this;
81+
}
82+
83+
@Override
84+
public ListPlatformChildSitesResponse set(String fieldName, Object value) {
85+
return (ListPlatformChildSitesResponse) super.set(fieldName, value);
86+
}
87+
88+
@Override
89+
public ListPlatformChildSitesResponse clone() {
90+
return (ListPlatformChildSitesResponse) super.clone();
91+
}
92+
93+
}

0 commit comments

Comments
 (0)