google-apis-compute_beta 0.76.0 → 0.77.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5858,6 +5858,439 @@ module Google
5858
5858
  execute_or_queue_command(command, &block)
5859
5859
  end
5860
5860
 
5861
+ # Retrieves an aggregated list of future reservations.
5862
+ # @param [String] project
5863
+ # Project ID for this request.
5864
+ # @param [String] filter
5865
+ # A filter expression that filters resources listed in the response. Most
5866
+ # Compute resources support two types of filter expressions: expressions that
5867
+ # support regular expressions and expressions that follow API improvement
5868
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
5869
+ # field name, an operator, and the value that you want to use for filtering. The
5870
+ # value must be a string, a number, or a boolean. The operator must be either `=`
5871
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
5872
+ # Engine instances, you can exclude instances named `example-instance` by
5873
+ # specifying `name != example-instance`. The `:` operator can be used with
5874
+ # string fields to match substrings. For non-string fields it is equivalent to
5875
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
5876
+ # been defined. For example, to find all objects with `owner` label use: ```
5877
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
5878
+ # specify `scheduling.automaticRestart = false` to include instances only if
5879
+ # they are not scheduled for automatic restarts. You can use filtering on nested
5880
+ # fields to filter based on resource labels. To filter on multiple expressions,
5881
+ # provide each separate expression within parentheses. For example: ``` (
5882
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
5883
+ # default, each expression is an `AND` expression. However, you can include `AND`
5884
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
5885
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
5886
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
5887
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
5888
+ # expression with or without quotes or against multiple parenthesized
5889
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
5890
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
5891
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
5892
+ # regular expression using Google RE2 library syntax. The literal value must
5893
+ # match the entire field. For example, to filter for instances that do not end
5894
+ # with name "instance", you would use `name ne .*instance`.
5895
+ # @param [Boolean] include_all_scopes
5896
+ # Indicates whether every visible scope for each scope type (zone, region,
5897
+ # global) should be included in the response. For new resource types added after
5898
+ # this field, the flag has no effect as new resource types will always include
5899
+ # every visible scope for each scope type in response. For resource types which
5900
+ # predate this field, if this flag is omitted or false, only scopes of the scope
5901
+ # types where the resource type is expected to be found will be included.
5902
+ # @param [Fixnum] max_results
5903
+ # The maximum number of results per page that should be returned. If the number
5904
+ # of available results is larger than `maxResults`, Compute Engine returns a `
5905
+ # nextPageToken` that can be used to get the next page of results in subsequent
5906
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
5907
+ # @param [String] order_by
5908
+ # Sorts list results by a certain order. By default, results are returned in
5909
+ # alphanumerical order based on the resource name. You can also sort results in
5910
+ # descending order based on the creation timestamp using `orderBy="
5911
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
5912
+ # field in reverse chronological order (newest result first). Use this to sort
5913
+ # resources like operations so that the newest operation is returned first.
5914
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
5915
+ # @param [String] page_token
5916
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
5917
+ # by a previous list request to get the next page of results.
5918
+ # @param [Boolean] return_partial_success
5919
+ # Opt-in for partial success behavior which provides partial results in case of
5920
+ # failure. The default value is false.
5921
+ # @param [String] fields
5922
+ # Selector specifying which fields to include in a partial response.
5923
+ # @param [String] quota_user
5924
+ # Available to use for quota purposes for server-side applications. Can be any
5925
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5926
+ # @param [String] user_ip
5927
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5928
+ # @param [Google::Apis::RequestOptions] options
5929
+ # Request-specific options
5930
+ #
5931
+ # @yield [result, err] Result & error if block supplied
5932
+ # @yieldparam result [Google::Apis::ComputeBeta::FutureReservationsAggregatedListResponse] parsed result object
5933
+ # @yieldparam err [StandardError] error object if request failed
5934
+ #
5935
+ # @return [Google::Apis::ComputeBeta::FutureReservationsAggregatedListResponse]
5936
+ #
5937
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5938
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5939
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5940
+ def aggregated_future_reservation_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5941
+ command = make_simple_command(:get, 'projects/{project}/aggregated/futureReservations', options)
5942
+ command.response_representation = Google::Apis::ComputeBeta::FutureReservationsAggregatedListResponse::Representation
5943
+ command.response_class = Google::Apis::ComputeBeta::FutureReservationsAggregatedListResponse
5944
+ command.params['project'] = project unless project.nil?
5945
+ command.query['filter'] = filter unless filter.nil?
5946
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
5947
+ command.query['maxResults'] = max_results unless max_results.nil?
5948
+ command.query['orderBy'] = order_by unless order_by.nil?
5949
+ command.query['pageToken'] = page_token unless page_token.nil?
5950
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
5951
+ command.query['fields'] = fields unless fields.nil?
5952
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
5953
+ command.query['userIp'] = user_ip unless user_ip.nil?
5954
+ execute_or_queue_command(command, &block)
5955
+ end
5956
+
5957
+ # Cancel the specified future reservation.
5958
+ # @param [String] project
5959
+ # Project ID for this request.
5960
+ # @param [String] zone
5961
+ # Name of the zone for this request. Name should conform to RFC1035.
5962
+ # @param [String] future_reservation
5963
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
5964
+ # @param [String] request_id
5965
+ # An optional request ID to identify requests. Specify a unique request ID so
5966
+ # that if you must retry your request, the server will know to ignore the
5967
+ # request if it has already been completed. For example, consider a situation
5968
+ # where you make an initial request and the request times out. If you make the
5969
+ # request again with the same request ID, the server can check if original
5970
+ # operation with the same request ID was received, and if so, will ignore the
5971
+ # second request. This prevents clients from accidentally creating duplicate
5972
+ # commitments. The request ID must be a valid UUID with the exception that zero
5973
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
5974
+ # @param [String] fields
5975
+ # Selector specifying which fields to include in a partial response.
5976
+ # @param [String] quota_user
5977
+ # Available to use for quota purposes for server-side applications. Can be any
5978
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
5979
+ # @param [String] user_ip
5980
+ # Legacy name for parameter that has been superseded by `quotaUser`.
5981
+ # @param [Google::Apis::RequestOptions] options
5982
+ # Request-specific options
5983
+ #
5984
+ # @yield [result, err] Result & error if block supplied
5985
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
5986
+ # @yieldparam err [StandardError] error object if request failed
5987
+ #
5988
+ # @return [Google::Apis::ComputeBeta::Operation]
5989
+ #
5990
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
5991
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
5992
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
5993
+ def cancel_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
5994
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel', options)
5995
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
5996
+ command.response_class = Google::Apis::ComputeBeta::Operation
5997
+ command.params['project'] = project unless project.nil?
5998
+ command.params['zone'] = zone unless zone.nil?
5999
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6000
+ command.query['requestId'] = request_id unless request_id.nil?
6001
+ command.query['fields'] = fields unless fields.nil?
6002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6003
+ command.query['userIp'] = user_ip unless user_ip.nil?
6004
+ execute_or_queue_command(command, &block)
6005
+ end
6006
+
6007
+ # Deletes the specified future reservation.
6008
+ # @param [String] project
6009
+ # Project ID for this request.
6010
+ # @param [String] zone
6011
+ # Name of the zone for this request. Name should conform to RFC1035.
6012
+ # @param [String] future_reservation
6013
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
6014
+ # @param [String] request_id
6015
+ # An optional request ID to identify requests. Specify a unique request ID so
6016
+ # that if you must retry your request, the server will know to ignore the
6017
+ # request if it has already been completed. For example, consider a situation
6018
+ # where you make an initial request and the request times out. If you make the
6019
+ # request again with the same request ID, the server can check if original
6020
+ # operation with the same request ID was received, and if so, will ignore the
6021
+ # second request. This prevents clients from accidentally creating duplicate
6022
+ # commitments. The request ID must be a valid UUID with the exception that zero
6023
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
6024
+ # @param [String] fields
6025
+ # Selector specifying which fields to include in a partial response.
6026
+ # @param [String] quota_user
6027
+ # Available to use for quota purposes for server-side applications. Can be any
6028
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6029
+ # @param [String] user_ip
6030
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6031
+ # @param [Google::Apis::RequestOptions] options
6032
+ # Request-specific options
6033
+ #
6034
+ # @yield [result, err] Result & error if block supplied
6035
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
6036
+ # @yieldparam err [StandardError] error object if request failed
6037
+ #
6038
+ # @return [Google::Apis::ComputeBeta::Operation]
6039
+ #
6040
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6041
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6042
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6043
+ def delete_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6044
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
6045
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
6046
+ command.response_class = Google::Apis::ComputeBeta::Operation
6047
+ command.params['project'] = project unless project.nil?
6048
+ command.params['zone'] = zone unless zone.nil?
6049
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6050
+ command.query['requestId'] = request_id unless request_id.nil?
6051
+ command.query['fields'] = fields unless fields.nil?
6052
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6053
+ command.query['userIp'] = user_ip unless user_ip.nil?
6054
+ execute_or_queue_command(command, &block)
6055
+ end
6056
+
6057
+ # Retrieves information about the specified future reservation.
6058
+ # @param [String] project
6059
+ # Project ID for this request.
6060
+ # @param [String] zone
6061
+ # Name of the zone for this request. Name should conform to RFC1035.
6062
+ # @param [String] future_reservation
6063
+ # Name of the future reservation to retrieve. Name should conform to RFC1035.
6064
+ # @param [String] fields
6065
+ # Selector specifying which fields to include in a partial response.
6066
+ # @param [String] quota_user
6067
+ # Available to use for quota purposes for server-side applications. Can be any
6068
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6069
+ # @param [String] user_ip
6070
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6071
+ # @param [Google::Apis::RequestOptions] options
6072
+ # Request-specific options
6073
+ #
6074
+ # @yield [result, err] Result & error if block supplied
6075
+ # @yieldparam result [Google::Apis::ComputeBeta::FutureReservation] parsed result object
6076
+ # @yieldparam err [StandardError] error object if request failed
6077
+ #
6078
+ # @return [Google::Apis::ComputeBeta::FutureReservation]
6079
+ #
6080
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6081
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6082
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6083
+ def get_future_reservation(project, zone, future_reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6084
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
6085
+ command.response_representation = Google::Apis::ComputeBeta::FutureReservation::Representation
6086
+ command.response_class = Google::Apis::ComputeBeta::FutureReservation
6087
+ command.params['project'] = project unless project.nil?
6088
+ command.params['zone'] = zone unless zone.nil?
6089
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6090
+ command.query['fields'] = fields unless fields.nil?
6091
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6092
+ command.query['userIp'] = user_ip unless user_ip.nil?
6093
+ execute_or_queue_command(command, &block)
6094
+ end
6095
+
6096
+ # Creates a new Future Reservation.
6097
+ # @param [String] project
6098
+ # Project ID for this request.
6099
+ # @param [String] zone
6100
+ # Name of the zone for this request. Name should conform to RFC1035.
6101
+ # @param [Google::Apis::ComputeBeta::FutureReservation] future_reservation_object
6102
+ # @param [String] request_id
6103
+ # An optional request ID to identify requests. Specify a unique request ID so
6104
+ # that if you must retry your request, the server will know to ignore the
6105
+ # request if it has already been completed. For example, consider a situation
6106
+ # where you make an initial request and the request times out. If you make the
6107
+ # request again with the same request ID, the server can check if original
6108
+ # operation with the same request ID was received, and if so, will ignore the
6109
+ # second request. This prevents clients from accidentally creating duplicate
6110
+ # commitments. The request ID must be a valid UUID with the exception that zero
6111
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
6112
+ # @param [String] fields
6113
+ # Selector specifying which fields to include in a partial response.
6114
+ # @param [String] quota_user
6115
+ # Available to use for quota purposes for server-side applications. Can be any
6116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6117
+ # @param [String] user_ip
6118
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6119
+ # @param [Google::Apis::RequestOptions] options
6120
+ # Request-specific options
6121
+ #
6122
+ # @yield [result, err] Result & error if block supplied
6123
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
6124
+ # @yieldparam err [StandardError] error object if request failed
6125
+ #
6126
+ # @return [Google::Apis::ComputeBeta::Operation]
6127
+ #
6128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6131
+ def insert_future_reservation(project, zone, future_reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6132
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations', options)
6133
+ command.request_representation = Google::Apis::ComputeBeta::FutureReservation::Representation
6134
+ command.request_object = future_reservation_object
6135
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
6136
+ command.response_class = Google::Apis::ComputeBeta::Operation
6137
+ command.params['project'] = project unless project.nil?
6138
+ command.params['zone'] = zone unless zone.nil?
6139
+ command.query['requestId'] = request_id unless request_id.nil?
6140
+ command.query['fields'] = fields unless fields.nil?
6141
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6142
+ command.query['userIp'] = user_ip unless user_ip.nil?
6143
+ execute_or_queue_command(command, &block)
6144
+ end
6145
+
6146
+ # A list of all the future reservations that have been configured for the
6147
+ # specified project in specified zone.
6148
+ # @param [String] project
6149
+ # Project ID for this request.
6150
+ # @param [String] zone
6151
+ # Name of the zone for this request. Name should conform to RFC1035.
6152
+ # @param [String] filter
6153
+ # A filter expression that filters resources listed in the response. Most
6154
+ # Compute resources support two types of filter expressions: expressions that
6155
+ # support regular expressions and expressions that follow API improvement
6156
+ # proposal AIP-160. If you want to use AIP-160, your expression must specify the
6157
+ # field name, an operator, and the value that you want to use for filtering. The
6158
+ # value must be a string, a number, or a boolean. The operator must be either `=`
6159
+ # , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
6160
+ # Engine instances, you can exclude instances named `example-instance` by
6161
+ # specifying `name != example-instance`. The `:` operator can be used with
6162
+ # string fields to match substrings. For non-string fields it is equivalent to
6163
+ # the `=` operator. The `:*` comparison can be used to test whether a key has
6164
+ # been defined. For example, to find all objects with `owner` label use: ```
6165
+ # labels.owner:* ``` You can also filter nested fields. For example, you could
6166
+ # specify `scheduling.automaticRestart = false` to include instances only if
6167
+ # they are not scheduled for automatic restarts. You can use filtering on nested
6168
+ # fields to filter based on resource labels. To filter on multiple expressions,
6169
+ # provide each separate expression within parentheses. For example: ``` (
6170
+ # scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
6171
+ # default, each expression is an `AND` expression. However, you can include `AND`
6172
+ # and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
6173
+ # Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
6174
+ # automaticRestart = true) ``` If you want to use a regular expression, use the `
6175
+ # eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
6176
+ # expression with or without quotes or against multiple parenthesized
6177
+ # expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
6178
+ # quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
6179
+ # literal) (fieldname2 ne "literal")` The literal value is interpreted as a
6180
+ # regular expression using Google RE2 library syntax. The literal value must
6181
+ # match the entire field. For example, to filter for instances that do not end
6182
+ # with name "instance", you would use `name ne .*instance`.
6183
+ # @param [Fixnum] max_results
6184
+ # The maximum number of results per page that should be returned. If the number
6185
+ # of available results is larger than `maxResults`, Compute Engine returns a `
6186
+ # nextPageToken` that can be used to get the next page of results in subsequent
6187
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
6188
+ # @param [String] order_by
6189
+ # Sorts list results by a certain order. By default, results are returned in
6190
+ # alphanumerical order based on the resource name. You can also sort results in
6191
+ # descending order based on the creation timestamp using `orderBy="
6192
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
6193
+ # field in reverse chronological order (newest result first). Use this to sort
6194
+ # resources like operations so that the newest operation is returned first.
6195
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
6196
+ # @param [String] page_token
6197
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
6198
+ # by a previous list request to get the next page of results.
6199
+ # @param [Boolean] return_partial_success
6200
+ # Opt-in for partial success behavior which provides partial results in case of
6201
+ # failure. The default value is false.
6202
+ # @param [String] fields
6203
+ # Selector specifying which fields to include in a partial response.
6204
+ # @param [String] quota_user
6205
+ # Available to use for quota purposes for server-side applications. Can be any
6206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6207
+ # @param [String] user_ip
6208
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6209
+ # @param [Google::Apis::RequestOptions] options
6210
+ # Request-specific options
6211
+ #
6212
+ # @yield [result, err] Result & error if block supplied
6213
+ # @yieldparam result [Google::Apis::ComputeBeta::FutureReservationsListResponse] parsed result object
6214
+ # @yieldparam err [StandardError] error object if request failed
6215
+ #
6216
+ # @return [Google::Apis::ComputeBeta::FutureReservationsListResponse]
6217
+ #
6218
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6219
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6220
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6221
+ def list_future_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6222
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations', options)
6223
+ command.response_representation = Google::Apis::ComputeBeta::FutureReservationsListResponse::Representation
6224
+ command.response_class = Google::Apis::ComputeBeta::FutureReservationsListResponse
6225
+ command.params['project'] = project unless project.nil?
6226
+ command.params['zone'] = zone unless zone.nil?
6227
+ command.query['filter'] = filter unless filter.nil?
6228
+ command.query['maxResults'] = max_results unless max_results.nil?
6229
+ command.query['orderBy'] = order_by unless order_by.nil?
6230
+ command.query['pageToken'] = page_token unless page_token.nil?
6231
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
6232
+ command.query['fields'] = fields unless fields.nil?
6233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6234
+ command.query['userIp'] = user_ip unless user_ip.nil?
6235
+ execute_or_queue_command(command, &block)
6236
+ end
6237
+
6238
+ # Updates the specified future reservation.
6239
+ # @param [String] project
6240
+ # Project ID for this request.
6241
+ # @param [String] zone
6242
+ # Name of the zone for this request. Name should conform to RFC1035.
6243
+ # @param [String] future_reservation
6244
+ # Name of the reservation to update. Name should conform to RFC1035.
6245
+ # @param [Google::Apis::ComputeBeta::FutureReservation] future_reservation_object
6246
+ # @param [String] request_id
6247
+ # An optional request ID to identify requests. Specify a unique request ID so
6248
+ # that if you must retry your request, the server will know to ignore the
6249
+ # request if it has already been completed. For example, consider a situation
6250
+ # where you make an initial request and the request times out. If you make the
6251
+ # request again with the same request ID, the server can check if original
6252
+ # operation with the same request ID was received, and if so, will ignore the
6253
+ # second request. This prevents clients from accidentally creating duplicate
6254
+ # commitments. The request ID must be a valid UUID with the exception that zero
6255
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
6256
+ # @param [String] update_mask
6257
+ # update_mask indicates fields to be updated as part of this request.
6258
+ # @param [String] fields
6259
+ # Selector specifying which fields to include in a partial response.
6260
+ # @param [String] quota_user
6261
+ # Available to use for quota purposes for server-side applications. Can be any
6262
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
6263
+ # @param [String] user_ip
6264
+ # Legacy name for parameter that has been superseded by `quotaUser`.
6265
+ # @param [Google::Apis::RequestOptions] options
6266
+ # Request-specific options
6267
+ #
6268
+ # @yield [result, err] Result & error if block supplied
6269
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
6270
+ # @yieldparam err [StandardError] error object if request failed
6271
+ #
6272
+ # @return [Google::Apis::ComputeBeta::Operation]
6273
+ #
6274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6277
+ def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6278
+ command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
6279
+ command.request_representation = Google::Apis::ComputeBeta::FutureReservation::Representation
6280
+ command.request_object = future_reservation_object
6281
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
6282
+ command.response_class = Google::Apis::ComputeBeta::Operation
6283
+ command.params['project'] = project unless project.nil?
6284
+ command.params['zone'] = zone unless zone.nil?
6285
+ command.params['futureReservation'] = future_reservation unless future_reservation.nil?
6286
+ command.query['requestId'] = request_id unless request_id.nil?
6287
+ command.query['updateMask'] = update_mask unless update_mask.nil?
6288
+ command.query['fields'] = fields unless fields.nil?
6289
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6290
+ command.query['userIp'] = user_ip unless user_ip.nil?
6291
+ execute_or_queue_command(command, &block)
6292
+ end
6293
+
5861
6294
  # Deletes the specified address resource.
5862
6295
  # @param [String] project
5863
6296
  # Project ID for this request.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-compute_beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.76.0
4
+ version: 0.77.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-06 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.76.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-compute_beta/v0.77.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_beta
63
63
  post_install_message:
64
64
  rdoc_options: []