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