@@ -1588,6 +1588,152 @@ public Patch set(String parameterName, Object value) {
1588
1588
return (Patch ) super .set (parameterName , value );
1589
1589
}
1590
1590
}
1591
+ /**
1592
+ * Reschedules upcoming maintenance event.
1593
+ *
1594
+ * Create a request for the method "clusters.rescheduleClusterMaintenance".
1595
+ *
1596
+ * This request holds the parameters needed by the redis server. After setting any optional
1597
+ * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote
1598
+ * operation.
1599
+ *
1600
+ * @param name Required. Redis Cluster instance resource name using the form:
1601
+ * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id`
1602
+ * refers to a GCP region.
1603
+ * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest}
1604
+ * @return the request
1605
+ */
1606
+ public RescheduleClusterMaintenance rescheduleClusterMaintenance (java .lang .String name , com .google .api .services .redis .v1 .model .RescheduleClusterMaintenanceRequest content ) throws java .io .IOException {
1607
+ RescheduleClusterMaintenance result = new RescheduleClusterMaintenance (name , content );
1608
+ initialize (result );
1609
+ return result ;
1610
+ }
1611
+
1612
+ public class RescheduleClusterMaintenance extends CloudRedisRequest <com .google .api .services .redis .v1 .model .Operation > {
1613
+
1614
+ private static final String REST_PATH = "v1/{+name}:rescheduleClusterMaintenance" ;
1615
+
1616
+ private final java .util .regex .Pattern NAME_PATTERN =
1617
+ java .util .regex .Pattern .compile ("^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
1618
+
1619
+ /**
1620
+ * Reschedules upcoming maintenance event.
1621
+ *
1622
+ * Create a request for the method "clusters.rescheduleClusterMaintenance".
1623
+ *
1624
+ * This request holds the parameters needed by the the redis server. After setting any optional
1625
+ * parameters, call the {@link RescheduleClusterMaintenance#execute()} method to invoke the remote
1626
+ * operation. <p> {@link RescheduleClusterMaintenance#initialize(com.google.api.client.googleapis.
1627
+ * services.AbstractGoogleClientRequest)} must be called to initialize this instance immediately
1628
+ * after invoking the constructor. </p>
1629
+ *
1630
+ * @param name Required. Redis Cluster instance resource name using the form:
1631
+ * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id`
1632
+ * refers to a GCP region.
1633
+ * @param content the {@link com.google.api.services.redis.v1.model.RescheduleClusterMaintenanceRequest}
1634
+ * @since 1.13
1635
+ */
1636
+ protected RescheduleClusterMaintenance (java .lang .String name , com .google .api .services .redis .v1 .model .RescheduleClusterMaintenanceRequest content ) {
1637
+ super (CloudRedis .this , "POST" , REST_PATH , content , com .google .api .services .redis .v1 .model .Operation .class );
1638
+ this .name = com .google .api .client .util .Preconditions .checkNotNull (name , "Required parameter name must be specified." );
1639
+ if (!getSuppressPatternChecks ()) {
1640
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1641
+ "Parameter name must conform to the pattern " +
1642
+ "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
1643
+ }
1644
+ }
1645
+
1646
+ @ Override
1647
+ public RescheduleClusterMaintenance set$Xgafv (java .lang .String $Xgafv ) {
1648
+ return (RescheduleClusterMaintenance ) super .set$Xgafv ($Xgafv );
1649
+ }
1650
+
1651
+ @ Override
1652
+ public RescheduleClusterMaintenance setAccessToken (java .lang .String accessToken ) {
1653
+ return (RescheduleClusterMaintenance ) super .setAccessToken (accessToken );
1654
+ }
1655
+
1656
+ @ Override
1657
+ public RescheduleClusterMaintenance setAlt (java .lang .String alt ) {
1658
+ return (RescheduleClusterMaintenance ) super .setAlt (alt );
1659
+ }
1660
+
1661
+ @ Override
1662
+ public RescheduleClusterMaintenance setCallback (java .lang .String callback ) {
1663
+ return (RescheduleClusterMaintenance ) super .setCallback (callback );
1664
+ }
1665
+
1666
+ @ Override
1667
+ public RescheduleClusterMaintenance setFields (java .lang .String fields ) {
1668
+ return (RescheduleClusterMaintenance ) super .setFields (fields );
1669
+ }
1670
+
1671
+ @ Override
1672
+ public RescheduleClusterMaintenance setKey (java .lang .String key ) {
1673
+ return (RescheduleClusterMaintenance ) super .setKey (key );
1674
+ }
1675
+
1676
+ @ Override
1677
+ public RescheduleClusterMaintenance setOauthToken (java .lang .String oauthToken ) {
1678
+ return (RescheduleClusterMaintenance ) super .setOauthToken (oauthToken );
1679
+ }
1680
+
1681
+ @ Override
1682
+ public RescheduleClusterMaintenance setPrettyPrint (java .lang .Boolean prettyPrint ) {
1683
+ return (RescheduleClusterMaintenance ) super .setPrettyPrint (prettyPrint );
1684
+ }
1685
+
1686
+ @ Override
1687
+ public RescheduleClusterMaintenance setQuotaUser (java .lang .String quotaUser ) {
1688
+ return (RescheduleClusterMaintenance ) super .setQuotaUser (quotaUser );
1689
+ }
1690
+
1691
+ @ Override
1692
+ public RescheduleClusterMaintenance setUploadType (java .lang .String uploadType ) {
1693
+ return (RescheduleClusterMaintenance ) super .setUploadType (uploadType );
1694
+ }
1695
+
1696
+ @ Override
1697
+ public RescheduleClusterMaintenance setUploadProtocol (java .lang .String uploadProtocol ) {
1698
+ return (RescheduleClusterMaintenance ) super .setUploadProtocol (uploadProtocol );
1699
+ }
1700
+
1701
+ /**
1702
+ * Required. Redis Cluster instance resource name using the form:
1703
+ * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
1704
+ * `location_id` refers to a GCP region.
1705
+ */
1706
+ @ com .google .api .client .util .Key
1707
+ private java .lang .String name ;
1708
+
1709
+ /** Required. Redis Cluster instance resource name using the form:
1710
+ `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where `location_id` refers to
1711
+ a GCP region.
1712
+ */
1713
+ public java .lang .String getName () {
1714
+ return name ;
1715
+ }
1716
+
1717
+ /**
1718
+ * Required. Redis Cluster instance resource name using the form:
1719
+ * `projects/{project_id}/locations/{location_id}/clusters/{cluster_id}` where
1720
+ * `location_id` refers to a GCP region.
1721
+ */
1722
+ public RescheduleClusterMaintenance setName (java .lang .String name ) {
1723
+ if (!getSuppressPatternChecks ()) {
1724
+ com .google .api .client .util .Preconditions .checkArgument (NAME_PATTERN .matcher (name ).matches (),
1725
+ "Parameter name must conform to the pattern " +
1726
+ "^projects/[^/]+/locations/[^/]+/clusters/[^/]+$" );
1727
+ }
1728
+ this .name = name ;
1729
+ return this ;
1730
+ }
1731
+
1732
+ @ Override
1733
+ public RescheduleClusterMaintenance set (String parameterName , Object value ) {
1734
+ return (RescheduleClusterMaintenance ) super .set (parameterName , value );
1735
+ }
1736
+ }
1591
1737
1592
1738
}
1593
1739
/**
0 commit comments