@@ -193171,6 +193171,237 @@ public List set(String parameterName, Object value) {
193171193171 return (List) super.set(parameterName, value);
193172193172 }
193173193173 }
193174+ /**
193175+ * Allows customers to perform maintenance on a reservation subBlock
193176+ *
193177+ * Create a request for the method "reservationSubBlocks.performMaintenance".
193178+ *
193179+ * This request holds the parameters needed by the compute server. After setting any optional
193180+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation.
193181+ *
193182+ * @param project Project ID for this request.
193183+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
193184+ * @param parentName The name of the parent reservation and parent block. In the format of
193185+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
193186+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
193187+ * @return the request
193188+ */
193189+ public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException {
193190+ PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock);
193191+ initialize(result);
193192+ return result;
193193+ }
193194+
193195+ public class PerformMaintenance extends ComputeRequest<com.google.api.services.compute.model.Operation> {
193196+
193197+ private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance";
193198+
193199+ /**
193200+ * Allows customers to perform maintenance on a reservation subBlock
193201+ *
193202+ * Create a request for the method "reservationSubBlocks.performMaintenance".
193203+ *
193204+ * This request holds the parameters needed by the the compute server. After setting any optional
193205+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote
193206+ * operation. <p> {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A
193207+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
193208+ * invoking the constructor. </p>
193209+ *
193210+ * @param project Project ID for this request.
193211+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
193212+ * @param parentName The name of the parent reservation and parent block. In the format of
193213+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
193214+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
193215+ * @since 1.13
193216+ */
193217+ protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) {
193218+ super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class);
193219+ this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
193220+ this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified.");
193221+ this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified.");
193222+ this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified.");
193223+ }
193224+
193225+ @Override
193226+ public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) {
193227+ return (PerformMaintenance) super.set$Xgafv($Xgafv);
193228+ }
193229+
193230+ @Override
193231+ public PerformMaintenance setAccessToken(java.lang.String accessToken) {
193232+ return (PerformMaintenance) super.setAccessToken(accessToken);
193233+ }
193234+
193235+ @Override
193236+ public PerformMaintenance setAlt(java.lang.String alt) {
193237+ return (PerformMaintenance) super.setAlt(alt);
193238+ }
193239+
193240+ @Override
193241+ public PerformMaintenance setCallback(java.lang.String callback) {
193242+ return (PerformMaintenance) super.setCallback(callback);
193243+ }
193244+
193245+ @Override
193246+ public PerformMaintenance setFields(java.lang.String fields) {
193247+ return (PerformMaintenance) super.setFields(fields);
193248+ }
193249+
193250+ @Override
193251+ public PerformMaintenance setKey(java.lang.String key) {
193252+ return (PerformMaintenance) super.setKey(key);
193253+ }
193254+
193255+ @Override
193256+ public PerformMaintenance setOauthToken(java.lang.String oauthToken) {
193257+ return (PerformMaintenance) super.setOauthToken(oauthToken);
193258+ }
193259+
193260+ @Override
193261+ public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) {
193262+ return (PerformMaintenance) super.setPrettyPrint(prettyPrint);
193263+ }
193264+
193265+ @Override
193266+ public PerformMaintenance setQuotaUser(java.lang.String quotaUser) {
193267+ return (PerformMaintenance) super.setQuotaUser(quotaUser);
193268+ }
193269+
193270+ @Override
193271+ public PerformMaintenance setUploadType(java.lang.String uploadType) {
193272+ return (PerformMaintenance) super.setUploadType(uploadType);
193273+ }
193274+
193275+ @Override
193276+ public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) {
193277+ return (PerformMaintenance) super.setUploadProtocol(uploadProtocol);
193278+ }
193279+
193280+ @Override
193281+ public PerformMaintenance setUserIp(java.lang.String userIp) {
193282+ return (PerformMaintenance) super.setUserIp(userIp);
193283+ }
193284+
193285+ /** Project ID for this request. */
193286+ @com.google.api.client.util.Key
193287+ private java.lang.String project;
193288+
193289+ /** Project ID for this request.
193290+ */
193291+ public java.lang.String getProject() {
193292+ return project;
193293+ }
193294+
193295+ /** Project ID for this request. */
193296+ public PerformMaintenance setProject(java.lang.String project) {
193297+ this.project = project;
193298+ return this;
193299+ }
193300+
193301+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
193302+ @com.google.api.client.util.Key
193303+ private java.lang.String zone;
193304+
193305+ /** Name of the zone for this request. Zone name should conform to RFC1035.
193306+ */
193307+ public java.lang.String getZone() {
193308+ return zone;
193309+ }
193310+
193311+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
193312+ public PerformMaintenance setZone(java.lang.String zone) {
193313+ this.zone = zone;
193314+ return this;
193315+ }
193316+
193317+ /**
193318+ * The name of the parent reservation and parent block. In the format of
193319+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
193320+ */
193321+ @com.google.api.client.util.Key
193322+ private java.lang.String parentName;
193323+
193324+ /** The name of the parent reservation and parent block. In the format of
193325+ reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
193326+ */
193327+ public java.lang.String getParentName() {
193328+ return parentName;
193329+ }
193330+
193331+ /**
193332+ * The name of the parent reservation and parent block. In the format of
193333+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
193334+ */
193335+ public PerformMaintenance setParentName(java.lang.String parentName) {
193336+ this.parentName = parentName;
193337+ return this;
193338+ }
193339+
193340+ /**
193341+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
193342+ */
193343+ @com.google.api.client.util.Key
193344+ private java.lang.String reservationSubBlock;
193345+
193346+ /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
193347+ */
193348+ public java.lang.String getReservationSubBlock() {
193349+ return reservationSubBlock;
193350+ }
193351+
193352+ /**
193353+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
193354+ */
193355+ public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) {
193356+ this.reservationSubBlock = reservationSubBlock;
193357+ return this;
193358+ }
193359+
193360+ /**
193361+ * An optional request ID to identify requests. Specify a unique request ID so that if you
193362+ * must retry your request, the server will know to ignore the request if it has already been
193363+ * completed. For example, consider a situation where you make an initial request and the
193364+ * request times out. If you make the request again with the same request ID, the server can
193365+ * check if original operation with the same request ID was received, and if so, will ignore
193366+ * the second request. This prevents clients from accidentally creating duplicate commitments.
193367+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
193368+ * 00000000-0000-0000-0000-000000000000).
193369+ */
193370+ @com.google.api.client.util.Key
193371+ private java.lang.String requestId;
193372+
193373+ /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry
193374+ your request, the server will know to ignore the request if it has already been completed. For
193375+ example, consider a situation where you make an initial request and the request times out. If you
193376+ make the request again with the same request ID, the server can check if original operation with
193377+ the same request ID was received, and if so, will ignore the second request. This prevents clients
193378+ from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
193379+ exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
193380+ */
193381+ public java.lang.String getRequestId() {
193382+ return requestId;
193383+ }
193384+
193385+ /**
193386+ * An optional request ID to identify requests. Specify a unique request ID so that if you
193387+ * must retry your request, the server will know to ignore the request if it has already been
193388+ * completed. For example, consider a situation where you make an initial request and the
193389+ * request times out. If you make the request again with the same request ID, the server can
193390+ * check if original operation with the same request ID was received, and if so, will ignore
193391+ * the second request. This prevents clients from accidentally creating duplicate commitments.
193392+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
193393+ * 00000000-0000-0000-0000-000000000000).
193394+ */
193395+ public PerformMaintenance setRequestId(java.lang.String requestId) {
193396+ this.requestId = requestId;
193397+ return this;
193398+ }
193399+
193400+ @Override
193401+ public PerformMaintenance set(String parameterName, Object value) {
193402+ return (PerformMaintenance) super.set(parameterName, value);
193403+ }
193404+ }
193174193405
193175193406 }
193176193407
0 commit comments