@@ -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
0 commit comments