google-apis-compute_beta 0.75.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.
@@ -18170,6 +18603,62 @@ module Google
18170
18603
  execute_or_queue_command(command, &block)
18171
18604
  end
18172
18605
 
18606
+ # Patches the specified NetworkAttachment resource with the data included in the
18607
+ # request. This method supports PATCH semantics and uses JSON merge patch format
18608
+ # and processing rules.
18609
+ # @param [String] project
18610
+ # Project ID for this request.
18611
+ # @param [String] region
18612
+ # Name of the region for this request.
18613
+ # @param [String] network_attachment
18614
+ # Name of the NetworkAttachment resource to patch.
18615
+ # @param [Google::Apis::ComputeBeta::NetworkAttachment] network_attachment_object
18616
+ # @param [String] request_id
18617
+ # An optional request ID to identify requests. Specify a unique request ID so
18618
+ # that if you must retry your request, the server will know to ignore the
18619
+ # request if it has already been completed. For example, consider a situation
18620
+ # where you make an initial request and the request times out. If you make the
18621
+ # request again with the same request ID, the server can check if original
18622
+ # operation with the same request ID was received, and if so, will ignore the
18623
+ # second request. This prevents clients from accidentally creating duplicate
18624
+ # commitments. The request ID must be a valid UUID with the exception that zero
18625
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000). end_interface:
18626
+ # MixerMutationRequestBuilder
18627
+ # @param [String] fields
18628
+ # Selector specifying which fields to include in a partial response.
18629
+ # @param [String] quota_user
18630
+ # Available to use for quota purposes for server-side applications. Can be any
18631
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18632
+ # @param [String] user_ip
18633
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18634
+ # @param [Google::Apis::RequestOptions] options
18635
+ # Request-specific options
18636
+ #
18637
+ # @yield [result, err] Result & error if block supplied
18638
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
18639
+ # @yieldparam err [StandardError] error object if request failed
18640
+ #
18641
+ # @return [Google::Apis::ComputeBeta::Operation]
18642
+ #
18643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18646
+ def patch_network_attachment(project, region, network_attachment, network_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18647
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkAttachments/{networkAttachment}', options)
18648
+ command.request_representation = Google::Apis::ComputeBeta::NetworkAttachment::Representation
18649
+ command.request_object = network_attachment_object
18650
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
18651
+ command.response_class = Google::Apis::ComputeBeta::Operation
18652
+ command.params['project'] = project unless project.nil?
18653
+ command.params['region'] = region unless region.nil?
18654
+ command.params['networkAttachment'] = network_attachment unless network_attachment.nil?
18655
+ command.query['requestId'] = request_id unless request_id.nil?
18656
+ command.query['fields'] = fields unless fields.nil?
18657
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18658
+ command.query['userIp'] = user_ip unless user_ip.nil?
18659
+ execute_or_queue_command(command, &block)
18660
+ end
18661
+
18173
18662
  # Sets the access control policy on the specified resource. Replaces any
18174
18663
  # existing policy.
18175
18664
  # @param [String] project
@@ -36107,6 +36596,50 @@ module Google
36107
36596
  execute_or_queue_command(command, &block)
36108
36597
  end
36109
36598
 
36599
+ # Retrieves runtime NAT IP information.
36600
+ # @param [String] project
36601
+ # Project ID for this request.
36602
+ # @param [String] region
36603
+ # Name of the region for this request.
36604
+ # @param [String] router
36605
+ # Name of the Router resource to query for Nat IP information. The name should
36606
+ # conform to RFC1035.
36607
+ # @param [String] nat_name
36608
+ # Name of the nat service to filter the NAT IP information. If it is omitted,
36609
+ # all nats for this router will be returned. Name should conform to RFC1035.
36610
+ # @param [String] fields
36611
+ # Selector specifying which fields to include in a partial response.
36612
+ # @param [String] quota_user
36613
+ # Available to use for quota purposes for server-side applications. Can be any
36614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
36615
+ # @param [String] user_ip
36616
+ # Legacy name for parameter that has been superseded by `quotaUser`.
36617
+ # @param [Google::Apis::RequestOptions] options
36618
+ # Request-specific options
36619
+ #
36620
+ # @yield [result, err] Result & error if block supplied
36621
+ # @yieldparam result [Google::Apis::ComputeBeta::NatIpInfoResponse] parsed result object
36622
+ # @yieldparam err [StandardError] error object if request failed
36623
+ #
36624
+ # @return [Google::Apis::ComputeBeta::NatIpInfoResponse]
36625
+ #
36626
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36627
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36628
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
36629
+ def get_router_nat_ip_info(project, region, router, nat_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36630
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getNatIpInfo', options)
36631
+ command.response_representation = Google::Apis::ComputeBeta::NatIpInfoResponse::Representation
36632
+ command.response_class = Google::Apis::ComputeBeta::NatIpInfoResponse
36633
+ command.params['project'] = project unless project.nil?
36634
+ command.params['region'] = region unless region.nil?
36635
+ command.params['router'] = router unless router.nil?
36636
+ command.query['natName'] = nat_name unless nat_name.nil?
36637
+ command.query['fields'] = fields unless fields.nil?
36638
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
36639
+ command.query['userIp'] = user_ip unless user_ip.nil?
36640
+ execute_or_queue_command(command, &block)
36641
+ end
36642
+
36110
36643
  # Retrieves runtime Nat mapping information of VM endpoints.
36111
36644
  # @param [String] project
36112
36645
  # Project ID for this request.
@@ -38066,6 +38599,89 @@ module Google
38066
38599
  execute_or_queue_command(command, &block)
38067
38600
  end
38068
38601
 
38602
+ # Get snapshot settings.
38603
+ # @param [String] project
38604
+ # Project ID for this request.
38605
+ # @param [String] fields
38606
+ # Selector specifying which fields to include in a partial response.
38607
+ # @param [String] quota_user
38608
+ # Available to use for quota purposes for server-side applications. Can be any
38609
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38610
+ # @param [String] user_ip
38611
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38612
+ # @param [Google::Apis::RequestOptions] options
38613
+ # Request-specific options
38614
+ #
38615
+ # @yield [result, err] Result & error if block supplied
38616
+ # @yieldparam result [Google::Apis::ComputeBeta::SnapshotSettings] parsed result object
38617
+ # @yieldparam err [StandardError] error object if request failed
38618
+ #
38619
+ # @return [Google::Apis::ComputeBeta::SnapshotSettings]
38620
+ #
38621
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38622
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38623
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38624
+ def get_snapshot_setting(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38625
+ command = make_simple_command(:get, 'projects/{project}/global/snapshotSettings', options)
38626
+ command.response_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
38627
+ command.response_class = Google::Apis::ComputeBeta::SnapshotSettings
38628
+ command.params['project'] = project unless project.nil?
38629
+ command.query['fields'] = fields unless fields.nil?
38630
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38631
+ command.query['userIp'] = user_ip unless user_ip.nil?
38632
+ execute_or_queue_command(command, &block)
38633
+ end
38634
+
38635
+ # Patch snapshot settings.
38636
+ # @param [String] project
38637
+ # Project ID for this request.
38638
+ # @param [Google::Apis::ComputeBeta::SnapshotSettings] snapshot_settings_object
38639
+ # @param [String] request_id
38640
+ # An optional request ID to identify requests. Specify a unique request ID so
38641
+ # that if you must retry your request, the server will know to ignore the
38642
+ # request if it has already been completed. For example, consider a situation
38643
+ # where you make an initial request and the request times out. If you make the
38644
+ # request again with the same request ID, the server can check if original
38645
+ # operation with the same request ID was received, and if so, will ignore the
38646
+ # second request. This prevents clients from accidentally creating duplicate
38647
+ # commitments. The request ID must be a valid UUID with the exception that zero
38648
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
38649
+ # @param [String] update_mask
38650
+ # update_mask indicates fields to be updated as part of this request.
38651
+ # @param [String] fields
38652
+ # Selector specifying which fields to include in a partial response.
38653
+ # @param [String] quota_user
38654
+ # Available to use for quota purposes for server-side applications. Can be any
38655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38656
+ # @param [String] user_ip
38657
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38658
+ # @param [Google::Apis::RequestOptions] options
38659
+ # Request-specific options
38660
+ #
38661
+ # @yield [result, err] Result & error if block supplied
38662
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
38663
+ # @yieldparam err [StandardError] error object if request failed
38664
+ #
38665
+ # @return [Google::Apis::ComputeBeta::Operation]
38666
+ #
38667
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38668
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38669
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38670
+ def patch_snapshot_setting(project, snapshot_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38671
+ command = make_simple_command(:patch, 'projects/{project}/global/snapshotSettings', options)
38672
+ command.request_representation = Google::Apis::ComputeBeta::SnapshotSettings::Representation
38673
+ command.request_object = snapshot_settings_object
38674
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
38675
+ command.response_class = Google::Apis::ComputeBeta::Operation
38676
+ command.params['project'] = project unless project.nil?
38677
+ command.query['requestId'] = request_id unless request_id.nil?
38678
+ command.query['updateMask'] = update_mask unless update_mask.nil?
38679
+ command.query['fields'] = fields unless fields.nil?
38680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38681
+ command.query['userIp'] = user_ip unless user_ip.nil?
38682
+ execute_or_queue_command(command, &block)
38683
+ end
38684
+
38069
38685
  # Deletes the specified Snapshot resource. Keep in mind that deleting a single
38070
38686
  # snapshot might not necessarily delete all the data on that snapshot. If any
38071
38687
  # data on the snapshot that is marked for deletion is needed for subsequent