@@ -154823,6 +154823,237 @@ public List set(String parameterName, Object value) {
154823
154823
return (List) super.set(parameterName, value);
154824
154824
}
154825
154825
}
154826
+ /**
154827
+ * Allows customers to perform maintenance on a reservation subBlock
154828
+ *
154829
+ * Create a request for the method "reservationSubBlocks.performMaintenance".
154830
+ *
154831
+ * This request holds the parameters needed by the compute server. After setting any optional
154832
+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote operation.
154833
+ *
154834
+ * @param project Project ID for this request.
154835
+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
154836
+ * @param parentName The name of the parent reservation and parent block. In the format of
154837
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
154838
+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
154839
+ * @return the request
154840
+ */
154841
+ public PerformMaintenance performMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) throws java.io.IOException {
154842
+ PerformMaintenance result = new PerformMaintenance(project, zone, parentName, reservationSubBlock);
154843
+ initialize(result);
154844
+ return result;
154845
+ }
154846
+
154847
+ public class PerformMaintenance extends ComputeRequest<com.google.api.services.compute.model.Operation> {
154848
+
154849
+ private static final String REST_PATH = "projects/{project}/zones/{zone}/{parentName}/reservationSubBlocks/{reservationSubBlock}/performMaintenance";
154850
+
154851
+ /**
154852
+ * Allows customers to perform maintenance on a reservation subBlock
154853
+ *
154854
+ * Create a request for the method "reservationSubBlocks.performMaintenance".
154855
+ *
154856
+ * This request holds the parameters needed by the the compute server. After setting any optional
154857
+ * parameters, call the {@link PerformMaintenance#execute()} method to invoke the remote
154858
+ * operation. <p> {@link PerformMaintenance#initialize(com.google.api.client.googleapis.services.A
154859
+ * bstractGoogleClientRequest)} must be called to initialize this instance immediately after
154860
+ * invoking the constructor. </p>
154861
+ *
154862
+ * @param project Project ID for this request.
154863
+ * @param zone Name of the zone for this request. Zone name should conform to RFC1035.
154864
+ * @param parentName The name of the parent reservation and parent block. In the format of
154865
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
154866
+ * @param reservationSubBlock The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
154867
+ * @since 1.13
154868
+ */
154869
+ protected PerformMaintenance(java.lang.String project, java.lang.String zone, java.lang.String parentName, java.lang.String reservationSubBlock) {
154870
+ super(Compute.this, "POST", REST_PATH, null, com.google.api.services.compute.model.Operation.class);
154871
+ this.project = com.google.api.client.util.Preconditions.checkNotNull(project, "Required parameter project must be specified.");
154872
+ this.zone = com.google.api.client.util.Preconditions.checkNotNull(zone, "Required parameter zone must be specified.");
154873
+ this.parentName = com.google.api.client.util.Preconditions.checkNotNull(parentName, "Required parameter parentName must be specified.");
154874
+ this.reservationSubBlock = com.google.api.client.util.Preconditions.checkNotNull(reservationSubBlock, "Required parameter reservationSubBlock must be specified.");
154875
+ }
154876
+
154877
+ @Override
154878
+ public PerformMaintenance set$Xgafv(java.lang.String $Xgafv) {
154879
+ return (PerformMaintenance) super.set$Xgafv($Xgafv);
154880
+ }
154881
+
154882
+ @Override
154883
+ public PerformMaintenance setAccessToken(java.lang.String accessToken) {
154884
+ return (PerformMaintenance) super.setAccessToken(accessToken);
154885
+ }
154886
+
154887
+ @Override
154888
+ public PerformMaintenance setAlt(java.lang.String alt) {
154889
+ return (PerformMaintenance) super.setAlt(alt);
154890
+ }
154891
+
154892
+ @Override
154893
+ public PerformMaintenance setCallback(java.lang.String callback) {
154894
+ return (PerformMaintenance) super.setCallback(callback);
154895
+ }
154896
+
154897
+ @Override
154898
+ public PerformMaintenance setFields(java.lang.String fields) {
154899
+ return (PerformMaintenance) super.setFields(fields);
154900
+ }
154901
+
154902
+ @Override
154903
+ public PerformMaintenance setKey(java.lang.String key) {
154904
+ return (PerformMaintenance) super.setKey(key);
154905
+ }
154906
+
154907
+ @Override
154908
+ public PerformMaintenance setOauthToken(java.lang.String oauthToken) {
154909
+ return (PerformMaintenance) super.setOauthToken(oauthToken);
154910
+ }
154911
+
154912
+ @Override
154913
+ public PerformMaintenance setPrettyPrint(java.lang.Boolean prettyPrint) {
154914
+ return (PerformMaintenance) super.setPrettyPrint(prettyPrint);
154915
+ }
154916
+
154917
+ @Override
154918
+ public PerformMaintenance setQuotaUser(java.lang.String quotaUser) {
154919
+ return (PerformMaintenance) super.setQuotaUser(quotaUser);
154920
+ }
154921
+
154922
+ @Override
154923
+ public PerformMaintenance setUploadType(java.lang.String uploadType) {
154924
+ return (PerformMaintenance) super.setUploadType(uploadType);
154925
+ }
154926
+
154927
+ @Override
154928
+ public PerformMaintenance setUploadProtocol(java.lang.String uploadProtocol) {
154929
+ return (PerformMaintenance) super.setUploadProtocol(uploadProtocol);
154930
+ }
154931
+
154932
+ @Override
154933
+ public PerformMaintenance setUserIp(java.lang.String userIp) {
154934
+ return (PerformMaintenance) super.setUserIp(userIp);
154935
+ }
154936
+
154937
+ /** Project ID for this request. */
154938
+ @com.google.api.client.util.Key
154939
+ private java.lang.String project;
154940
+
154941
+ /** Project ID for this request.
154942
+ */
154943
+ public java.lang.String getProject() {
154944
+ return project;
154945
+ }
154946
+
154947
+ /** Project ID for this request. */
154948
+ public PerformMaintenance setProject(java.lang.String project) {
154949
+ this.project = project;
154950
+ return this;
154951
+ }
154952
+
154953
+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
154954
+ @com.google.api.client.util.Key
154955
+ private java.lang.String zone;
154956
+
154957
+ /** Name of the zone for this request. Zone name should conform to RFC1035.
154958
+ */
154959
+ public java.lang.String getZone() {
154960
+ return zone;
154961
+ }
154962
+
154963
+ /** Name of the zone for this request. Zone name should conform to RFC1035. */
154964
+ public PerformMaintenance setZone(java.lang.String zone) {
154965
+ this.zone = zone;
154966
+ return this;
154967
+ }
154968
+
154969
+ /**
154970
+ * The name of the parent reservation and parent block. In the format of
154971
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
154972
+ */
154973
+ @com.google.api.client.util.Key
154974
+ private java.lang.String parentName;
154975
+
154976
+ /** The name of the parent reservation and parent block. In the format of
154977
+ reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
154978
+ */
154979
+ public java.lang.String getParentName() {
154980
+ return parentName;
154981
+ }
154982
+
154983
+ /**
154984
+ * The name of the parent reservation and parent block. In the format of
154985
+ * reservations/{reservation_name}/reservationBlocks/{reservation_block_name}
154986
+ */
154987
+ public PerformMaintenance setParentName(java.lang.String parentName) {
154988
+ this.parentName = parentName;
154989
+ return this;
154990
+ }
154991
+
154992
+ /**
154993
+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
154994
+ */
154995
+ @com.google.api.client.util.Key
154996
+ private java.lang.String reservationSubBlock;
154997
+
154998
+ /** The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
154999
+ */
155000
+ public java.lang.String getReservationSubBlock() {
155001
+ return reservationSubBlock;
155002
+ }
155003
+
155004
+ /**
155005
+ * The name of the reservation subBlock. Name should conform to RFC1035 or be a resource ID.
155006
+ */
155007
+ public PerformMaintenance setReservationSubBlock(java.lang.String reservationSubBlock) {
155008
+ this.reservationSubBlock = reservationSubBlock;
155009
+ return this;
155010
+ }
155011
+
155012
+ /**
155013
+ * An optional request ID to identify requests. Specify a unique request ID so that if you
155014
+ * must retry your request, the server will know to ignore the request if it has already been
155015
+ * completed. For example, consider a situation where you make an initial request and the
155016
+ * request times out. If you make the request again with the same request ID, the server can
155017
+ * check if original operation with the same request ID was received, and if so, will ignore
155018
+ * the second request. This prevents clients from accidentally creating duplicate commitments.
155019
+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
155020
+ * 00000000-0000-0000-0000-000000000000).
155021
+ */
155022
+ @com.google.api.client.util.Key
155023
+ private java.lang.String requestId;
155024
+
155025
+ /** An optional request ID to identify requests. Specify a unique request ID so that if you must retry
155026
+ your request, the server will know to ignore the request if it has already been completed. For
155027
+ example, consider a situation where you make an initial request and the request times out. If you
155028
+ make the request again with the same request ID, the server can check if original operation with
155029
+ the same request ID was received, and if so, will ignore the second request. This prevents clients
155030
+ from accidentally creating duplicate commitments. The request ID must be a valid UUID with the
155031
+ exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
155032
+ */
155033
+ public java.lang.String getRequestId() {
155034
+ return requestId;
155035
+ }
155036
+
155037
+ /**
155038
+ * An optional request ID to identify requests. Specify a unique request ID so that if you
155039
+ * must retry your request, the server will know to ignore the request if it has already been
155040
+ * completed. For example, consider a situation where you make an initial request and the
155041
+ * request times out. If you make the request again with the same request ID, the server can
155042
+ * check if original operation with the same request ID was received, and if so, will ignore
155043
+ * the second request. This prevents clients from accidentally creating duplicate commitments.
155044
+ * The request ID must be a valid UUID with the exception that zero UUID is not supported (
155045
+ * 00000000-0000-0000-0000-000000000000).
155046
+ */
155047
+ public PerformMaintenance setRequestId(java.lang.String requestId) {
155048
+ this.requestId = requestId;
155049
+ return this;
155050
+ }
155051
+
155052
+ @Override
155053
+ public PerformMaintenance set(String parameterName, Object value) {
155054
+ return (PerformMaintenance) super.set(parameterName, value);
155055
+ }
155056
+ }
154826
155057
154827
155058
}
154828
155059
0 commit comments