@@ -1431,6 +1431,163 @@ public List set(String parameterName, Object value) {
14311431 return (List ) super .set (parameterName , value );
14321432 }
14331433 }
1434+ /**
1435+ * Update a Platform Group.
1436+ *
1437+ * Create a request for the method "groups.patch".
1438+ *
1439+ * This request holds the parameters needed by the adsenseplatform server. After setting any
1440+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1441+ *
1442+ * @param name Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}
1443+ * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformGroup}
1444+ * @return the request
1445+ */
1446+ public Patch patch (java .lang .String name , com .google .api .services .adsenseplatform .v1alpha .model .PlatformGroup content ) throws java .io .IOException {
1447+ Patch result = new Patch (name , content );
1448+ initialize (result );
1449+ return result ;
1450+ }
1451+
1452+ public class Patch extends AdSensePlatformRequest <com .google .api .services .adsenseplatform .v1alpha .model .PlatformGroup > {
1453+
1454+ private static final String REST_PATH = "v1alpha/{+name}" ;
1455+
1456+ private final java .util .regex .Pattern NAME_PATTERN =
1457+ java .util .regex .Pattern .compile ("^accounts/[^/]+/platforms/[^/]+/groups/[^/]+$" );
1458+
1459+ /**
1460+ * Update a Platform Group.
1461+ *
1462+ * Create a request for the method "groups.patch".
1463+ *
1464+ * This request holds the parameters needed by the the adsenseplatform server. After setting any
1465+ * optional parameters, call the {@link Patch#execute()} method to invoke the remote operation.
1466+ * <p> {@link
1467+ * Patch#initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)} must
1468+ * be called to initialize this instance immediately after invoking the constructor. </p>
1469+ *
1470+ * @param name Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}
1471+ * @param content the {@link com.google.api.services.adsenseplatform.v1alpha.model.PlatformGroup}
1472+ * @since 1.13
1473+ */
1474+ protected Patch (java .lang .String name , com .google .api .services .adsenseplatform .v1alpha .model .PlatformGroup content ) {
1475+ super (AdSensePlatform .this , "PATCH" , REST_PATH , content , com .google .api .services .adsenseplatform .v1alpha .model .PlatformGroup .class );
1476+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1477+ if (!getSuppressPatternChecks ()) {
1478+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1479+ "Parameter name must conform to the pattern " +
1480+ "^accounts/[^/]+/platforms/[^/]+/groups/[^/]+$" );
1481+ }
1482+ }
1483+
1484+ @ Override
1485+ public Patch set$Xgafv (java .lang .String $Xgafv ) {
1486+ return (Patch ) super .set$Xgafv ($Xgafv );
1487+ }
1488+
1489+ @ Override
1490+ public Patch setAccessToken (java .lang .String accessToken ) {
1491+ return (Patch ) super .setAccessToken (accessToken );
1492+ }
1493+
1494+ @ Override
1495+ public Patch setAlt (java .lang .String alt ) {
1496+ return (Patch ) super .setAlt (alt );
1497+ }
1498+
1499+ @ Override
1500+ public Patch setCallback (java .lang .String callback ) {
1501+ return (Patch ) super .setCallback (callback );
1502+ }
1503+
1504+ @ Override
1505+ public Patch setFields (java .lang .String fields ) {
1506+ return (Patch ) super .setFields (fields );
1507+ }
1508+
1509+ @ Override
1510+ public Patch setKey (java .lang .String key ) {
1511+ return (Patch ) super .setKey (key );
1512+ }
1513+
1514+ @ Override
1515+ public Patch setOauthToken (java .lang .String oauthToken ) {
1516+ return (Patch ) super .setOauthToken (oauthToken );
1517+ }
1518+
1519+ @ Override
1520+ public Patch setPrettyPrint (java .lang .Boolean prettyPrint ) {
1521+ return (Patch ) super .setPrettyPrint (prettyPrint );
1522+ }
1523+
1524+ @ Override
1525+ public Patch setQuotaUser (java .lang .String quotaUser ) {
1526+ return (Patch ) super .setQuotaUser (quotaUser );
1527+ }
1528+
1529+ @ Override
1530+ public Patch setUploadType (java .lang .String uploadType ) {
1531+ return (Patch ) super .setUploadType (uploadType );
1532+ }
1533+
1534+ @ Override
1535+ public Patch setUploadProtocol (java .lang .String uploadProtocol ) {
1536+ return (Patch ) super .setUploadProtocol (uploadProtocol );
1537+ }
1538+
1539+ /**
1540+ * Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}
1541+ */
1542+ @ com .google .api .client .util .Key
1543+ private java .lang .String name ;
1544+
1545+ /** Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}
1546+ */
1547+ public java .lang .String getName () {
1548+ return name ;
1549+ }
1550+
1551+ /**
1552+ * Identifier. Format: accounts/{account}/platforms/{platform}/groups/{platform_group}
1553+ */
1554+ public Patch setName (java .lang .String name ) {
1555+ if (!getSuppressPatternChecks ()) {
1556+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1557+ "Parameter name must conform to the pattern " +
1558+ "^accounts/[^/]+/platforms/[^/]+/groups/[^/]+$" );
1559+ }
1560+ this .name = name ;
1561+ return this ;
1562+ }
1563+
1564+ /**
1565+ * Optional. The list of fields to update - currently only supports updating the
1566+ * `description` field.
1567+ */
1568+ @ com .google .api .client .util .Key
1569+ private String updateMask ;
1570+
1571+ /** Optional. The list of fields to update - currently only supports updating the `description` field.
1572+ */
1573+ public String getUpdateMask () {
1574+ return updateMask ;
1575+ }
1576+
1577+ /**
1578+ * Optional. The list of fields to update - currently only supports updating the
1579+ * `description` field.
1580+ */
1581+ public Patch setUpdateMask (String updateMask ) {
1582+ this .updateMask = updateMask ;
1583+ return this ;
1584+ }
1585+
1586+ @ Override
1587+ public Patch set (String parameterName , Object value ) {
1588+ return (Patch ) super .set (parameterName , value );
1589+ }
1590+ }
14341591
14351592 }
14361593 }
0 commit comments