@@ -747,6 +747,169 @@ public List set(String parameterName, Object value) {
747747 return (List ) super .set (parameterName , value );
748748 }
749749 }
750+ /**
751+ * Update a Platform Child Site.
752+ *
753+ * Create a request for the method "sites.patch".
754+ *
755+ * This request holds the parameters needed by the adsenseplatform server. After setting any
756+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
757+ *
758+ * @param name Identifier. Format:
759+ * accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}
760+ * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite}
761+ * @return the request
762+ */
763+ public Patch patch (java .lang .String name , com .google .api .services .adsenseplatform .v1alpha .model .PlatformChildSite content ) throws java .io .IOException {
764+ Patch result = new Patch (name , content );
765+ initialize (result );
766+ return result ;
767+ }
768+
769+ public class Patch extends AdSensePlatformRequest <com .google .api .services .adsenseplatform .v1alpha .model .PlatformChildSite > {
770+
771+ private static final String REST_PATH = "v1alpha/{+name}" ;
772+
773+ private final java .util .regex .Pattern NAME_PATTERN =
774+ java .util .regex .Pattern .compile ("^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$" );
775+
776+ /**
777+ * Update a Platform Child Site.
778+ *
779+ * Create a request for the method "sites.patch".
780+ *
781+ * This request holds the parameters needed by the the adsenseplatform server. After setting any
782+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
783+ * <p> {@link
784+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
785+ * be called to initialize this instance immediately after invoking the constructor. </p>
786+ *
787+ * @param name Identifier. Format:
788+ * accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}
789+ * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformChildSite}
790+ * @since 1.13
791+ */
792+ protected Patch (java .lang .String name , com .google .api .services .adsenseplatform .v1alpha .model .PlatformChildSite content ) {
793+ super (AdSensePlatform .this , "PATCH" , REST_PATH , content , com .google .api .services .adsenseplatform .v1alpha .model .PlatformChildSite .class );
794+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
795+ if (!getSuppressPatternChecks ()) {
796+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
797+ "Parameter name must conform to the pattern " +
798+ "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$" );
799+ }
800+ }
801+
802+ @ Override
803+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
804+ return (Patch ) super .set$Xgafv ($Xgafv );
805+ }
806+
807+ @ Override
808+ public Patch setAccessToken (java .lang .String accessToken ) {
809+ return (Patch ) super .setAccessToken (accessToken );
810+ }
811+
812+ @ Override
813+ public Patch setAlt (java .lang .String alt ) {
814+ return (Patch ) super .setAlt (alt );
815+ }
816+
817+ @ Override
818+ public Patch setCallback (java .lang .String callback ) {
819+ return (Patch ) super .setCallback (callback );
820+ }
821+
822+ @ Override
823+ public Patch setFields (java .lang .String fields ) {
824+ return (Patch ) super .setFields (fields );
825+ }
826+
827+ @ Override
828+ public Patch setKey (java .lang .String key ) {
829+ return (Patch ) super .setKey (key );
830+ }
831+
832+ @ Override
833+ public Patch setOauthToken (java .lang .String oauthToken ) {
834+ return (Patch ) super .setOauthToken (oauthToken );
835+ }
836+
837+ @ Override
838+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
839+ return (Patch ) super .setPrettyPrint (prettyPrint );
840+ }
841+
842+ @ Override
843+ public Patch setQuotaUser (java .lang .String quotaUser ) {
844+ return (Patch ) super .setQuotaUser (quotaUser );
845+ }
846+
847+ @ Override
848+ public Patch setUploadType (java .lang .String uploadType ) {
849+ return (Patch ) super .setUploadType (uploadType );
850+ }
851+
852+ @ Override
853+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
854+ return (Patch ) super .setUploadProtocol (uploadProtocol );
855+ }
856+
857+ /**
858+ * Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sit
859+ * es/{platformChildSite}
860+ */
861+ @ com .google .api .client .util .Key
862+ private java .lang .String name ;
863+
864+ /** Identifier. Format:
865+ accounts/{account}/platforms/{platform}/childAccounts/{child}/sites/{platformChildSite}
866+ */
867+ public java .lang .String getName () {
868+ return name ;
869+ }
870+
871+ /**
872+ * Identifier. Format: accounts/{account}/platforms/{platform}/childAccounts/{child}/sit
873+ * es/{platformChildSite}
874+ */
875+ public Patch setName (java .lang .String name ) {
876+ if (!getSuppressPatternChecks ()) {
877+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
878+ "Parameter name must conform to the pattern " +
879+ "^accounts/[^/]+/platforms/[^/]+/childAccounts/[^/]+/sites/[^/]+$" );
880+ }
881+ this .name = name ;
882+ return this ;
883+ }
884+
885+ /**
886+ * Optional. The list of fields to update - currently only supports updating the
887+ * `platform_group` field.
888+ */
889+ @ com .google .api .client .util .Key
890+ private String updateMask ;
891+
892+ /** Optional. The list of fields to update - currently only supports updating the `platform_group`
893+ field.
894+ */
895+ public String getUpdateMask () {
896+ return updateMask ;
897+ }
898+
899+ /**
900+ * Optional. The list of fields to update - currently only supports updating the
901+ * `platform_group` field.
902+ */
903+ public Patch setUpdateMask (String updateMask ) {
904+ this .updateMask = updateMask ;
905+ return this ;
906+ }
907+
908+ @ Override
909+ public Patch set (String parameterName , Object value ) {
910+ return (Patch ) super .set (parameterName , value );
911+ }
912+ }
750913
751914 }
752915 }
0 commit comments