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