google-apis-compute_alpha 0.40.0 → 0.43.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 +13 -0
- data/lib/google/apis/compute_alpha/classes.rb +1160 -127
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +381 -0
- data/lib/google/apis/compute_alpha/service.rb +449 -0
- metadata +3 -3
@@ -13255,6 +13255,7 @@ module Google
|
|
13255
13255
|
end
|
13256
13256
|
|
13257
13257
|
# Creates multiple instances. Count specifies the number of instances to create.
|
13258
|
+
# For more information, see About bulk creation of VMs.
|
13258
13259
|
# @param [String] project
|
13259
13260
|
# Project ID for this request.
|
13260
13261
|
# @param [String] zone
|
@@ -17026,6 +17027,171 @@ module Google
|
|
17026
17027
|
execute_or_queue_command(command, &block)
|
17027
17028
|
end
|
17028
17029
|
|
17030
|
+
# Returns the details for the specified interconnect remote location. Gets a
|
17031
|
+
# list of available interconnect remote locations by making a list() request.
|
17032
|
+
# @param [String] project
|
17033
|
+
# Project ID for this request.
|
17034
|
+
# @param [String] interconnect_remote_location
|
17035
|
+
# Name of the interconnect remote location to return.
|
17036
|
+
# @param [String] fields
|
17037
|
+
# Selector specifying which fields to include in a partial response.
|
17038
|
+
# @param [String] quota_user
|
17039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17041
|
+
# @param [String] user_ip
|
17042
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17043
|
+
# @param [Google::Apis::RequestOptions] options
|
17044
|
+
# Request-specific options
|
17045
|
+
#
|
17046
|
+
# @yield [result, err] Result & error if block supplied
|
17047
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectRemoteLocation] parsed result object
|
17048
|
+
# @yieldparam err [StandardError] error object if request failed
|
17049
|
+
#
|
17050
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectRemoteLocation]
|
17051
|
+
#
|
17052
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17053
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17054
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17055
|
+
def get_interconnect_remote_location(project, interconnect_remote_location, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17056
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations/{interconnectRemoteLocation}', options)
|
17057
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectRemoteLocation::Representation
|
17058
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectRemoteLocation
|
17059
|
+
command.params['project'] = project unless project.nil?
|
17060
|
+
command.params['interconnectRemoteLocation'] = interconnect_remote_location unless interconnect_remote_location.nil?
|
17061
|
+
command.query['fields'] = fields unless fields.nil?
|
17062
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17063
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17064
|
+
execute_or_queue_command(command, &block)
|
17065
|
+
end
|
17066
|
+
|
17067
|
+
# Retrieves the list of interconnect remote locations available to the specified
|
17068
|
+
# project.
|
17069
|
+
# @param [String] project
|
17070
|
+
# Project ID for this request.
|
17071
|
+
# @param [String] filter
|
17072
|
+
# A filter expression that filters resources listed in the response. Most
|
17073
|
+
# Compute resources support two types of filter expressions: expressions that
|
17074
|
+
# support regular expressions and expressions that follow API improvement
|
17075
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
17076
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
17077
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
17078
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
17079
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
17080
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
17081
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
17082
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
17083
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
17084
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
17085
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
17086
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
17087
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
17088
|
+
# provide each separate expression within parentheses. For example: ``` (
|
17089
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
17090
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
17091
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
17092
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
17093
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
17094
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
17095
|
+
# expression with or without quotes or against multiple parenthesized
|
17096
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
17097
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
17098
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
17099
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
17100
|
+
# match the entire field. For example, to filter for instances that do not end
|
17101
|
+
# with name "instance", you would use `name ne .*instance`.
|
17102
|
+
# @param [Fixnum] max_results
|
17103
|
+
# The maximum number of results per page that should be returned. If the number
|
17104
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
17105
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
17106
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
17107
|
+
# @param [String] order_by
|
17108
|
+
# Sorts list results by a certain order. By default, results are returned in
|
17109
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
17110
|
+
# descending order based on the creation timestamp using `orderBy="
|
17111
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
17112
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
17113
|
+
# resources like operations so that the newest operation is returned first.
|
17114
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
17115
|
+
# @param [String] page_token
|
17116
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
17117
|
+
# by a previous list request to get the next page of results.
|
17118
|
+
# @param [Boolean] return_partial_success
|
17119
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
17120
|
+
# failure. The default value is false.
|
17121
|
+
# @param [String] fields
|
17122
|
+
# Selector specifying which fields to include in a partial response.
|
17123
|
+
# @param [String] quota_user
|
17124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17126
|
+
# @param [String] user_ip
|
17127
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17128
|
+
# @param [Google::Apis::RequestOptions] options
|
17129
|
+
# Request-specific options
|
17130
|
+
#
|
17131
|
+
# @yield [result, err] Result & error if block supplied
|
17132
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectRemoteLocationList] parsed result object
|
17133
|
+
# @yieldparam err [StandardError] error object if request failed
|
17134
|
+
#
|
17135
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectRemoteLocationList]
|
17136
|
+
#
|
17137
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17138
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17139
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17140
|
+
def list_interconnect_remote_locations(project, 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)
|
17141
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectRemoteLocations', options)
|
17142
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectRemoteLocationList::Representation
|
17143
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectRemoteLocationList
|
17144
|
+
command.params['project'] = project unless project.nil?
|
17145
|
+
command.query['filter'] = filter unless filter.nil?
|
17146
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
17147
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
17148
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17149
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17150
|
+
command.query['fields'] = fields unless fields.nil?
|
17151
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17152
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17153
|
+
execute_or_queue_command(command, &block)
|
17154
|
+
end
|
17155
|
+
|
17156
|
+
# Returns permissions that a caller has on the specified resource.
|
17157
|
+
# @param [String] project
|
17158
|
+
# Project ID for this request.
|
17159
|
+
# @param [String] resource
|
17160
|
+
# Name or id of the resource for this request.
|
17161
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
17162
|
+
# @param [String] fields
|
17163
|
+
# Selector specifying which fields to include in a partial response.
|
17164
|
+
# @param [String] quota_user
|
17165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
17166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
17167
|
+
# @param [String] user_ip
|
17168
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
17169
|
+
# @param [Google::Apis::RequestOptions] options
|
17170
|
+
# Request-specific options
|
17171
|
+
#
|
17172
|
+
# @yield [result, err] Result & error if block supplied
|
17173
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
17174
|
+
# @yieldparam err [StandardError] error object if request failed
|
17175
|
+
#
|
17176
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
17177
|
+
#
|
17178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17181
|
+
def test_interconnect_remote_location_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17182
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectRemoteLocations/{resource}/testIamPermissions', options)
|
17183
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
17184
|
+
command.request_object = test_permissions_request_object
|
17185
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
17186
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
17187
|
+
command.params['project'] = project unless project.nil?
|
17188
|
+
command.params['resource'] = resource unless resource.nil?
|
17189
|
+
command.query['fields'] = fields unless fields.nil?
|
17190
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17191
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17192
|
+
execute_or_queue_command(command, &block)
|
17193
|
+
end
|
17194
|
+
|
17029
17195
|
# Deletes the specified interconnect.
|
17030
17196
|
# @param [String] project
|
17031
17197
|
# Project ID for this request.
|
@@ -46467,6 +46633,289 @@ module Google
|
|
46467
46633
|
execute_or_queue_command(command, &block)
|
46468
46634
|
end
|
46469
46635
|
|
46636
|
+
# Cancels a QueuedResource. Only a resource in ACCEPTED state may be cancelled.
|
46637
|
+
# @param [String] project
|
46638
|
+
# Project ID for this request.
|
46639
|
+
# @param [String] zone
|
46640
|
+
# Name of the zone for this request.
|
46641
|
+
# @param [String] queued_resource
|
46642
|
+
# Name of the QueuedResource to cancel.
|
46643
|
+
# @param [String] request_id
|
46644
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
46645
|
+
# that if you must retry your request, the server will know to ignore the
|
46646
|
+
# request if it has already been completed. For example, consider a situation
|
46647
|
+
# where you make an initial request and the request times out. If you make the
|
46648
|
+
# request again with the same request ID, the server can check if original
|
46649
|
+
# operation with the same request ID was received, and if so, will ignore the
|
46650
|
+
# second request. This prevents clients from accidentally creating duplicate
|
46651
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
46652
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
46653
|
+
# @param [String] fields
|
46654
|
+
# Selector specifying which fields to include in a partial response.
|
46655
|
+
# @param [String] quota_user
|
46656
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46657
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46658
|
+
# @param [String] user_ip
|
46659
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
46660
|
+
# @param [Google::Apis::RequestOptions] options
|
46661
|
+
# Request-specific options
|
46662
|
+
#
|
46663
|
+
# @yield [result, err] Result & error if block supplied
|
46664
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
46665
|
+
# @yieldparam err [StandardError] error object if request failed
|
46666
|
+
#
|
46667
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
46668
|
+
#
|
46669
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
46670
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
46671
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
46672
|
+
def cancel_zone_queued_resource(project, zone, queued_resource, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
46673
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}/cancel', options)
|
46674
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
46675
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
46676
|
+
command.params['project'] = project unless project.nil?
|
46677
|
+
command.params['zone'] = zone unless zone.nil?
|
46678
|
+
command.params['queuedResource'] = queued_resource unless queued_resource.nil?
|
46679
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
46680
|
+
command.query['fields'] = fields unless fields.nil?
|
46681
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
46682
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
46683
|
+
execute_or_queue_command(command, &block)
|
46684
|
+
end
|
46685
|
+
|
46686
|
+
# Deletes a QueuedResource. For a QueuedResource in ACCEPTED state, call cancel
|
46687
|
+
# on the resource before deleting, to make sure no VMs have been provisioned and
|
46688
|
+
# may require cleaning up. For a QueuedResource in PROVISIONING state the
|
46689
|
+
# request to delete is registered for execution following the provisioning.
|
46690
|
+
# @param [String] project
|
46691
|
+
# Project ID for this request.
|
46692
|
+
# @param [String] zone
|
46693
|
+
# Name of the zone for this request.
|
46694
|
+
# @param [String] queued_resource
|
46695
|
+
# Name of the QueuedResource to delete.
|
46696
|
+
# @param [String] request_id
|
46697
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
46698
|
+
# that if you must retry your request, the server will know to ignore the
|
46699
|
+
# request if it has already been completed. For example, consider a situation
|
46700
|
+
# where you make an initial request and the request times out. If you make the
|
46701
|
+
# request again with the same request ID, the server can check if original
|
46702
|
+
# operation with the same request ID was received, and if so, will ignore the
|
46703
|
+
# second request. This prevents clients from accidentally creating duplicate
|
46704
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
46705
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
46706
|
+
# @param [String] fields
|
46707
|
+
# Selector specifying which fields to include in a partial response.
|
46708
|
+
# @param [String] quota_user
|
46709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46711
|
+
# @param [String] user_ip
|
46712
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
46713
|
+
# @param [Google::Apis::RequestOptions] options
|
46714
|
+
# Request-specific options
|
46715
|
+
#
|
46716
|
+
# @yield [result, err] Result & error if block supplied
|
46717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
46718
|
+
# @yieldparam err [StandardError] error object if request failed
|
46719
|
+
#
|
46720
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
46721
|
+
#
|
46722
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
46723
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
46724
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
46725
|
+
def delete_zone_queued_resource(project, zone, queued_resource, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
46726
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}', options)
|
46727
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
46728
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
46729
|
+
command.params['project'] = project unless project.nil?
|
46730
|
+
command.params['zone'] = zone unless zone.nil?
|
46731
|
+
command.params['queuedResource'] = queued_resource unless queued_resource.nil?
|
46732
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
46733
|
+
command.query['fields'] = fields unless fields.nil?
|
46734
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
46735
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
46736
|
+
execute_or_queue_command(command, &block)
|
46737
|
+
end
|
46738
|
+
|
46739
|
+
# Returns the specified QueuedResource resource.
|
46740
|
+
# @param [String] project
|
46741
|
+
# Project ID for this request.
|
46742
|
+
# @param [String] zone
|
46743
|
+
# Name of the zone for this request.
|
46744
|
+
# @param [String] queued_resource
|
46745
|
+
# Name of the QueuedResource resource to return.
|
46746
|
+
# @param [String] fields
|
46747
|
+
# Selector specifying which fields to include in a partial response.
|
46748
|
+
# @param [String] quota_user
|
46749
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46750
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46751
|
+
# @param [String] user_ip
|
46752
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
46753
|
+
# @param [Google::Apis::RequestOptions] options
|
46754
|
+
# Request-specific options
|
46755
|
+
#
|
46756
|
+
# @yield [result, err] Result & error if block supplied
|
46757
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::QueuedResource] parsed result object
|
46758
|
+
# @yieldparam err [StandardError] error object if request failed
|
46759
|
+
#
|
46760
|
+
# @return [Google::Apis::ComputeAlpha::QueuedResource]
|
46761
|
+
#
|
46762
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
46763
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
46764
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
46765
|
+
def get_zone_queued_resource(project, zone, queued_resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
46766
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/queuedResources/{queuedResource}', options)
|
46767
|
+
command.response_representation = Google::Apis::ComputeAlpha::QueuedResource::Representation
|
46768
|
+
command.response_class = Google::Apis::ComputeAlpha::QueuedResource
|
46769
|
+
command.params['project'] = project unless project.nil?
|
46770
|
+
command.params['zone'] = zone unless zone.nil?
|
46771
|
+
command.params['queuedResource'] = queued_resource unless queued_resource.nil?
|
46772
|
+
command.query['fields'] = fields unless fields.nil?
|
46773
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
46774
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
46775
|
+
execute_or_queue_command(command, &block)
|
46776
|
+
end
|
46777
|
+
|
46778
|
+
# Creates a QueuedResource.
|
46779
|
+
# @param [String] project
|
46780
|
+
# Project ID for this request.
|
46781
|
+
# @param [String] zone
|
46782
|
+
# Name of the zone for this request.
|
46783
|
+
# @param [Google::Apis::ComputeAlpha::QueuedResource] queued_resource_object
|
46784
|
+
# @param [String] request_id
|
46785
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
46786
|
+
# that if you must retry your request, the server will know to ignore the
|
46787
|
+
# request if it has already been completed. For example, consider a situation
|
46788
|
+
# where you make an initial request and the request times out. If you make the
|
46789
|
+
# request again with the same request ID, the server can check if original
|
46790
|
+
# operation with the same request ID was received, and if so, will ignore the
|
46791
|
+
# second request. This prevents clients from accidentally creating duplicate
|
46792
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
46793
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
46794
|
+
# @param [String] fields
|
46795
|
+
# Selector specifying which fields to include in a partial response.
|
46796
|
+
# @param [String] quota_user
|
46797
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46798
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46799
|
+
# @param [String] user_ip
|
46800
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
46801
|
+
# @param [Google::Apis::RequestOptions] options
|
46802
|
+
# Request-specific options
|
46803
|
+
#
|
46804
|
+
# @yield [result, err] Result & error if block supplied
|
46805
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
46806
|
+
# @yieldparam err [StandardError] error object if request failed
|
46807
|
+
#
|
46808
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
46809
|
+
#
|
46810
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
46811
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
46812
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
46813
|
+
def insert_zone_queued_resource(project, zone, queued_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
46814
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/queuedResources', options)
|
46815
|
+
command.request_representation = Google::Apis::ComputeAlpha::QueuedResource::Representation
|
46816
|
+
command.request_object = queued_resource_object
|
46817
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
46818
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
46819
|
+
command.params['project'] = project unless project.nil?
|
46820
|
+
command.params['zone'] = zone unless zone.nil?
|
46821
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
46822
|
+
command.query['fields'] = fields unless fields.nil?
|
46823
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
46824
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
46825
|
+
execute_or_queue_command(command, &block)
|
46826
|
+
end
|
46827
|
+
|
46828
|
+
# Retrieves the list of QueuedResource resources.
|
46829
|
+
# @param [String] project
|
46830
|
+
# Project ID for this request.
|
46831
|
+
# @param [String] zone
|
46832
|
+
# Name of the zone for this request.
|
46833
|
+
# @param [String] filter
|
46834
|
+
# A filter expression that filters resources listed in the response. Most
|
46835
|
+
# Compute resources support two types of filter expressions: expressions that
|
46836
|
+
# support regular expressions and expressions that follow API improvement
|
46837
|
+
# proposal AIP-160. If you want to use AIP-160, your expression must specify the
|
46838
|
+
# field name, an operator, and the value that you want to use for filtering. The
|
46839
|
+
# value must be a string, a number, or a boolean. The operator must be either `=`
|
46840
|
+
# , `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
46841
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
46842
|
+
# specifying `name != example-instance`. The `:` operator can be used with
|
46843
|
+
# string fields to match substrings. For non-string fields it is equivalent to
|
46844
|
+
# the `=` operator. The `:*` comparison can be used to test whether a key has
|
46845
|
+
# been defined. For example, to find all objects with `owner` label use: ```
|
46846
|
+
# labels.owner:* ``` You can also filter nested fields. For example, you could
|
46847
|
+
# specify `scheduling.automaticRestart = false` to include instances only if
|
46848
|
+
# they are not scheduled for automatic restarts. You can use filtering on nested
|
46849
|
+
# fields to filter based on resource labels. To filter on multiple expressions,
|
46850
|
+
# provide each separate expression within parentheses. For example: ``` (
|
46851
|
+
# scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By
|
46852
|
+
# default, each expression is an `AND` expression. However, you can include `AND`
|
46853
|
+
# and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel
|
46854
|
+
# Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.
|
46855
|
+
# automaticRestart = true) ``` If you want to use a regular expression, use the `
|
46856
|
+
# eq` (equal) or `ne` (not equal) operator against a single un-parenthesized
|
46857
|
+
# expression with or without quotes or against multiple parenthesized
|
46858
|
+
# expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single
|
46859
|
+
# quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq
|
46860
|
+
# literal) (fieldname2 ne "literal")` The literal value is interpreted as a
|
46861
|
+
# regular expression using Google RE2 library syntax. The literal value must
|
46862
|
+
# match the entire field. For example, to filter for instances that do not end
|
46863
|
+
# with name "instance", you would use `name ne .*instance`.
|
46864
|
+
# @param [Fixnum] max_results
|
46865
|
+
# The maximum number of results per page that should be returned. If the number
|
46866
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
46867
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
46868
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
46869
|
+
# @param [String] order_by
|
46870
|
+
# Sorts list results by a certain order. By default, results are returned in
|
46871
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
46872
|
+
# descending order based on the creation timestamp using `orderBy="
|
46873
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
46874
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
46875
|
+
# resources like operations so that the newest operation is returned first.
|
46876
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
46877
|
+
# @param [String] page_token
|
46878
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
46879
|
+
# by a previous list request to get the next page of results.
|
46880
|
+
# @param [Boolean] return_partial_success
|
46881
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
46882
|
+
# failure. The default value is false.
|
46883
|
+
# @param [String] fields
|
46884
|
+
# Selector specifying which fields to include in a partial response.
|
46885
|
+
# @param [String] quota_user
|
46886
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
46887
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
46888
|
+
# @param [String] user_ip
|
46889
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
46890
|
+
# @param [Google::Apis::RequestOptions] options
|
46891
|
+
# Request-specific options
|
46892
|
+
#
|
46893
|
+
# @yield [result, err] Result & error if block supplied
|
46894
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::QueuedResourceList] parsed result object
|
46895
|
+
# @yieldparam err [StandardError] error object if request failed
|
46896
|
+
#
|
46897
|
+
# @return [Google::Apis::ComputeAlpha::QueuedResourceList]
|
46898
|
+
#
|
46899
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
46900
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
46901
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
46902
|
+
def list_zone_queued_resources(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)
|
46903
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/queuedResources', options)
|
46904
|
+
command.response_representation = Google::Apis::ComputeAlpha::QueuedResourceList::Representation
|
46905
|
+
command.response_class = Google::Apis::ComputeAlpha::QueuedResourceList
|
46906
|
+
command.params['project'] = project unless project.nil?
|
46907
|
+
command.params['zone'] = zone unless zone.nil?
|
46908
|
+
command.query['filter'] = filter unless filter.nil?
|
46909
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
46910
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
46911
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
46912
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
46913
|
+
command.query['fields'] = fields unless fields.nil?
|
46914
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
46915
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
46916
|
+
execute_or_queue_command(command, &block)
|
46917
|
+
end
|
46918
|
+
|
46470
46919
|
# Returns the specified Zone resource. Gets a list of available zones by making
|
46471
46920
|
# a list() request.
|
46472
46921
|
# @param [String] project
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.43.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: 2022-07-
|
11
|
+
date: 2022-07-25 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_alpha/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.43.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|