google-apis-compute_alpha 0.109.0 → 0.110.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.
@@ -21675,6 +21675,46 @@ module Google
|
|
21675
21675
|
execute_or_queue_command(command, &block)
|
21676
21676
|
end
|
21677
21677
|
|
21678
|
+
# Sets the labels on a machine image. To learn more about labels, read the
|
21679
|
+
# Labeling Resources documentation.
|
21680
|
+
# @param [String] project
|
21681
|
+
# Project ID for this request.
|
21682
|
+
# @param [String] resource
|
21683
|
+
# Name or id of the resource for this request.
|
21684
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
|
21685
|
+
# @param [String] fields
|
21686
|
+
# Selector specifying which fields to include in a partial response.
|
21687
|
+
# @param [String] quota_user
|
21688
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21689
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21690
|
+
# @param [String] user_ip
|
21691
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21692
|
+
# @param [Google::Apis::RequestOptions] options
|
21693
|
+
# Request-specific options
|
21694
|
+
#
|
21695
|
+
# @yield [result, err] Result & error if block supplied
|
21696
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
21697
|
+
# @yieldparam err [StandardError] error object if request failed
|
21698
|
+
#
|
21699
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
21700
|
+
#
|
21701
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21702
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21703
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21704
|
+
def set_machine_image_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21705
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setLabels', options)
|
21706
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
|
21707
|
+
command.request_object = global_set_labels_request_object
|
21708
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
21709
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
21710
|
+
command.params['project'] = project unless project.nil?
|
21711
|
+
command.params['resource'] = resource unless resource.nil?
|
21712
|
+
command.query['fields'] = fields unless fields.nil?
|
21713
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21714
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21715
|
+
execute_or_queue_command(command, &block)
|
21716
|
+
end
|
21717
|
+
|
21678
21718
|
# Returns permissions that a caller has on the specified resource.
|
21679
21719
|
# @param [String] project
|
21680
21720
|
# Project ID for this request.
|
@@ -44174,6 +44214,133 @@ module Google
|
|
44174
44214
|
execute_or_queue_command(command, &block)
|
44175
44215
|
end
|
44176
44216
|
|
44217
|
+
# Returns the specified ReliabilityRisk resource.
|
44218
|
+
# @param [String] project
|
44219
|
+
# Project ID for this request.
|
44220
|
+
# @param [String] reliability_risk
|
44221
|
+
# Name of the ReliabilityRisk resource to return.
|
44222
|
+
# @param [String] fields
|
44223
|
+
# Selector specifying which fields to include in a partial response.
|
44224
|
+
# @param [String] quota_user
|
44225
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44226
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44227
|
+
# @param [String] user_ip
|
44228
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44229
|
+
# @param [Google::Apis::RequestOptions] options
|
44230
|
+
# Request-specific options
|
44231
|
+
#
|
44232
|
+
# @yield [result, err] Result & error if block supplied
|
44233
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReliabilityRisk] parsed result object
|
44234
|
+
# @yieldparam err [StandardError] error object if request failed
|
44235
|
+
#
|
44236
|
+
# @return [Google::Apis::ComputeAlpha::ReliabilityRisk]
|
44237
|
+
#
|
44238
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44239
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44240
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44241
|
+
def get_reliability_risk(project, reliability_risk, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
44242
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks/{reliabilityRisk}', options)
|
44243
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReliabilityRisk::Representation
|
44244
|
+
command.response_class = Google::Apis::ComputeAlpha::ReliabilityRisk
|
44245
|
+
command.params['project'] = project unless project.nil?
|
44246
|
+
command.params['reliabilityRisk'] = reliability_risk unless reliability_risk.nil?
|
44247
|
+
command.query['fields'] = fields unless fields.nil?
|
44248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44249
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44250
|
+
execute_or_queue_command(command, &block)
|
44251
|
+
end
|
44252
|
+
|
44253
|
+
# Retrieves the list of reliabilityRisks available in the specified project.
|
44254
|
+
# @param [String] project
|
44255
|
+
# Project ID for this request.
|
44256
|
+
# @param [String] filter
|
44257
|
+
# A filter expression that filters resources listed in the response. Most
|
44258
|
+
# Compute resources support two types of filter expressions: expressions that
|
44259
|
+
# support regular expressions and expressions that follow API improvement
|
44260
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
44261
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
44262
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
44263
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
44264
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
44265
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
44266
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
44267
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
44268
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
44269
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
44270
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
44271
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
44272
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
44273
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
44274
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
44275
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
44276
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
44277
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
44278
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
44279
|
+
# un-parenthesized expression with or without quotes or against multiple
|
44280
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
44281
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
44282
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
44283
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
44284
|
+
# literal value must match the entire field. For example, to filter for
|
44285
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
44286
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
44287
|
+
# expressions.
|
44288
|
+
# @param [Fixnum] max_results
|
44289
|
+
# The maximum number of results per page that should be returned. If the number
|
44290
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
44291
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
44292
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
44293
|
+
# @param [String] order_by
|
44294
|
+
# Sorts list results by a certain order. By default, results are returned in
|
44295
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
44296
|
+
# descending order based on the creation timestamp using `orderBy="
|
44297
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
44298
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
44299
|
+
# resources like operations so that the newest operation is returned first.
|
44300
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
44301
|
+
# @param [String] page_token
|
44302
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
44303
|
+
# by a previous list request to get the next page of results.
|
44304
|
+
# @param [Boolean] return_partial_success
|
44305
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
44306
|
+
# failure. The default value is false. For example, when partial success
|
44307
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
44308
|
+
# resources in the zone or no resources, with an error code.
|
44309
|
+
# @param [String] fields
|
44310
|
+
# Selector specifying which fields to include in a partial response.
|
44311
|
+
# @param [String] quota_user
|
44312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44314
|
+
# @param [String] user_ip
|
44315
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44316
|
+
# @param [Google::Apis::RequestOptions] options
|
44317
|
+
# Request-specific options
|
44318
|
+
#
|
44319
|
+
# @yield [result, err] Result & error if block supplied
|
44320
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReliabilityRisksListResponse] parsed result object
|
44321
|
+
# @yieldparam err [StandardError] error object if request failed
|
44322
|
+
#
|
44323
|
+
# @return [Google::Apis::ComputeAlpha::ReliabilityRisksListResponse]
|
44324
|
+
#
|
44325
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44326
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44327
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44328
|
+
def list_reliability_risks(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)
|
44329
|
+
command = make_simple_command(:get, 'projects/{project}/global/reliabilityRisks', options)
|
44330
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReliabilityRisksListResponse::Representation
|
44331
|
+
command.response_class = Google::Apis::ComputeAlpha::ReliabilityRisksListResponse
|
44332
|
+
command.params['project'] = project unless project.nil?
|
44333
|
+
command.query['filter'] = filter unless filter.nil?
|
44334
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
44335
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
44336
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
44337
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
44338
|
+
command.query['fields'] = fields unless fields.nil?
|
44339
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44340
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44341
|
+
execute_or_queue_command(command, &block)
|
44342
|
+
end
|
44343
|
+
|
44177
44344
|
# Retrieves information about the specified reservation block.
|
44178
44345
|
# @param [String] project
|
44179
44346
|
# Project ID for this request.
|
@@ -48477,6 +48644,348 @@ module Google
|
|
48477
48644
|
execute_or_queue_command(command, &block)
|
48478
48645
|
end
|
48479
48646
|
|
48647
|
+
# Deletes the specified SnapshotGroup resource
|
48648
|
+
# @param [String] project
|
48649
|
+
# Project ID for this request.
|
48650
|
+
# @param [String] snapshot_group
|
48651
|
+
# Name of the SnapshotGroup resource to delete.
|
48652
|
+
# @param [String] request_id
|
48653
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
48654
|
+
# that if you must retry your request, the server will know to ignore the
|
48655
|
+
# request if it has already been completed. For example, consider a situation
|
48656
|
+
# where you make an initial request and the request times out. If you make the
|
48657
|
+
# request again with the same request ID, the server can check if original
|
48658
|
+
# operation with the same request ID was received, and if so, will ignore the
|
48659
|
+
# second request. This prevents clients from accidentally creating duplicate
|
48660
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
48661
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
48662
|
+
# @param [String] fields
|
48663
|
+
# Selector specifying which fields to include in a partial response.
|
48664
|
+
# @param [String] quota_user
|
48665
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48666
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48667
|
+
# @param [String] user_ip
|
48668
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48669
|
+
# @param [Google::Apis::RequestOptions] options
|
48670
|
+
# Request-specific options
|
48671
|
+
#
|
48672
|
+
# @yield [result, err] Result & error if block supplied
|
48673
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
48674
|
+
# @yieldparam err [StandardError] error object if request failed
|
48675
|
+
#
|
48676
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
48677
|
+
#
|
48678
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48679
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48680
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48681
|
+
def delete_snapshot_group(project, snapshot_group, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48682
|
+
command = make_simple_command(:delete, 'projects/{project}/global/snapshotGroups/{snapshotGroup}', options)
|
48683
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
48684
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
48685
|
+
command.params['project'] = project unless project.nil?
|
48686
|
+
command.params['snapshotGroup'] = snapshot_group unless snapshot_group.nil?
|
48687
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
48688
|
+
command.query['fields'] = fields unless fields.nil?
|
48689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48690
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48691
|
+
execute_or_queue_command(command, &block)
|
48692
|
+
end
|
48693
|
+
|
48694
|
+
# returns the specified SnapshotGroup resource.
|
48695
|
+
# @param [String] project
|
48696
|
+
# Project ID for this request.
|
48697
|
+
# @param [String] snapshot_group
|
48698
|
+
# Name of the SnapshotGroup resource to return.
|
48699
|
+
# @param [String] fields
|
48700
|
+
# Selector specifying which fields to include in a partial response.
|
48701
|
+
# @param [String] quota_user
|
48702
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48703
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48704
|
+
# @param [String] user_ip
|
48705
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48706
|
+
# @param [Google::Apis::RequestOptions] options
|
48707
|
+
# Request-specific options
|
48708
|
+
#
|
48709
|
+
# @yield [result, err] Result & error if block supplied
|
48710
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SnapshotGroup] parsed result object
|
48711
|
+
# @yieldparam err [StandardError] error object if request failed
|
48712
|
+
#
|
48713
|
+
# @return [Google::Apis::ComputeAlpha::SnapshotGroup]
|
48714
|
+
#
|
48715
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48716
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48717
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48718
|
+
def get_snapshot_group(project, snapshot_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48719
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshotGroups/{snapshotGroup}', options)
|
48720
|
+
command.response_representation = Google::Apis::ComputeAlpha::SnapshotGroup::Representation
|
48721
|
+
command.response_class = Google::Apis::ComputeAlpha::SnapshotGroup
|
48722
|
+
command.params['project'] = project unless project.nil?
|
48723
|
+
command.params['snapshotGroup'] = snapshot_group unless snapshot_group.nil?
|
48724
|
+
command.query['fields'] = fields unless fields.nil?
|
48725
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48726
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48727
|
+
execute_or_queue_command(command, &block)
|
48728
|
+
end
|
48729
|
+
|
48730
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
48731
|
+
# or resource exists.
|
48732
|
+
# @param [String] project
|
48733
|
+
# Project ID for this request.
|
48734
|
+
# @param [String] resource
|
48735
|
+
# Name or id of the resource for this request.
|
48736
|
+
# @param [Fixnum] options_requested_policy_version
|
48737
|
+
# Requested IAM Policy version.
|
48738
|
+
# @param [String] fields
|
48739
|
+
# Selector specifying which fields to include in a partial response.
|
48740
|
+
# @param [String] quota_user
|
48741
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48742
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48743
|
+
# @param [String] user_ip
|
48744
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48745
|
+
# @param [Google::Apis::RequestOptions] options
|
48746
|
+
# Request-specific options
|
48747
|
+
#
|
48748
|
+
# @yield [result, err] Result & error if block supplied
|
48749
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
48750
|
+
# @yieldparam err [StandardError] error object if request failed
|
48751
|
+
#
|
48752
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
48753
|
+
#
|
48754
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48755
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48756
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48757
|
+
def get_snapshot_group_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48758
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshotGroups/{resource}/getIamPolicy', options)
|
48759
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
48760
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
48761
|
+
command.params['project'] = project unless project.nil?
|
48762
|
+
command.params['resource'] = resource unless resource.nil?
|
48763
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
48764
|
+
command.query['fields'] = fields unless fields.nil?
|
48765
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48766
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48767
|
+
execute_or_queue_command(command, &block)
|
48768
|
+
end
|
48769
|
+
|
48770
|
+
# Creates a snapshot group in the specified project using the data included in
|
48771
|
+
# the request.
|
48772
|
+
# @param [String] project
|
48773
|
+
# Project ID for this request.
|
48774
|
+
# @param [Google::Apis::ComputeAlpha::SnapshotGroup] snapshot_group_object
|
48775
|
+
# @param [String] request_id
|
48776
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
48777
|
+
# that if you must retry your request, the server will know to ignore the
|
48778
|
+
# request if it has already been completed. For example, consider a situation
|
48779
|
+
# where you make an initial request and the request times out. If you make the
|
48780
|
+
# request again with the same request ID, the server can check if original
|
48781
|
+
# operation with the same request ID was received, and if so, will ignore the
|
48782
|
+
# second request. This prevents clients from accidentally creating duplicate
|
48783
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
48784
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
48785
|
+
# @param [String] fields
|
48786
|
+
# Selector specifying which fields to include in a partial response.
|
48787
|
+
# @param [String] quota_user
|
48788
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48789
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48790
|
+
# @param [String] user_ip
|
48791
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48792
|
+
# @param [Google::Apis::RequestOptions] options
|
48793
|
+
# Request-specific options
|
48794
|
+
#
|
48795
|
+
# @yield [result, err] Result & error if block supplied
|
48796
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
48797
|
+
# @yieldparam err [StandardError] error object if request failed
|
48798
|
+
#
|
48799
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
48800
|
+
#
|
48801
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48802
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48803
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48804
|
+
def insert_snapshot_group(project, snapshot_group_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48805
|
+
command = make_simple_command(:post, 'projects/{project}/global/snapshotGroups', options)
|
48806
|
+
command.request_representation = Google::Apis::ComputeAlpha::SnapshotGroup::Representation
|
48807
|
+
command.request_object = snapshot_group_object
|
48808
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
48809
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
48810
|
+
command.params['project'] = project unless project.nil?
|
48811
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
48812
|
+
command.query['fields'] = fields unless fields.nil?
|
48813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48814
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48815
|
+
execute_or_queue_command(command, &block)
|
48816
|
+
end
|
48817
|
+
|
48818
|
+
# retrieves the list of SnapshotGroup resources contained within the specified
|
48819
|
+
# project.
|
48820
|
+
# @param [String] project
|
48821
|
+
# Project ID for this request.
|
48822
|
+
# @param [String] filter
|
48823
|
+
# A filter expression that filters resources listed in the response. Most
|
48824
|
+
# Compute resources support two types of filter expressions: expressions that
|
48825
|
+
# support regular expressions and expressions that follow API improvement
|
48826
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
48827
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
48828
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
48829
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
48830
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
48831
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
48832
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
48833
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
48834
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
48835
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
48836
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
48837
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
48838
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
48839
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
48840
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
48841
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
48842
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
48843
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
48844
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
48845
|
+
# un-parenthesized expression with or without quotes or against multiple
|
48846
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
48847
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
48848
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
48849
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
48850
|
+
# literal value must match the entire field. For example, to filter for
|
48851
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
48852
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
48853
|
+
# expressions.
|
48854
|
+
# @param [Fixnum] max_results
|
48855
|
+
# The maximum number of results per page that should be returned. If the number
|
48856
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
48857
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
48858
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
48859
|
+
# @param [String] order_by
|
48860
|
+
# Sorts list results by a certain order. By default, results are returned in
|
48861
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
48862
|
+
# descending order based on the creation timestamp using `orderBy="
|
48863
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
48864
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
48865
|
+
# resources like operations so that the newest operation is returned first.
|
48866
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
48867
|
+
# @param [String] page_token
|
48868
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
48869
|
+
# by a previous list request to get the next page of results.
|
48870
|
+
# @param [Boolean] return_partial_success
|
48871
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
48872
|
+
# failure. The default value is false. For example, when partial success
|
48873
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
48874
|
+
# resources in the zone or no resources, with an error code.
|
48875
|
+
# @param [String] fields
|
48876
|
+
# Selector specifying which fields to include in a partial response.
|
48877
|
+
# @param [String] quota_user
|
48878
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48879
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48880
|
+
# @param [String] user_ip
|
48881
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48882
|
+
# @param [Google::Apis::RequestOptions] options
|
48883
|
+
# Request-specific options
|
48884
|
+
#
|
48885
|
+
# @yield [result, err] Result & error if block supplied
|
48886
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ListSnapshotGroups] parsed result object
|
48887
|
+
# @yieldparam err [StandardError] error object if request failed
|
48888
|
+
#
|
48889
|
+
# @return [Google::Apis::ComputeAlpha::ListSnapshotGroups]
|
48890
|
+
#
|
48891
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48892
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48893
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48894
|
+
def list_snapshot_groups(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)
|
48895
|
+
command = make_simple_command(:get, 'projects/{project}/global/snapshotGroups', options)
|
48896
|
+
command.response_representation = Google::Apis::ComputeAlpha::ListSnapshotGroups::Representation
|
48897
|
+
command.response_class = Google::Apis::ComputeAlpha::ListSnapshotGroups
|
48898
|
+
command.params['project'] = project unless project.nil?
|
48899
|
+
command.query['filter'] = filter unless filter.nil?
|
48900
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
48901
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
48902
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
48903
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
48904
|
+
command.query['fields'] = fields unless fields.nil?
|
48905
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48906
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48907
|
+
execute_or_queue_command(command, &block)
|
48908
|
+
end
|
48909
|
+
|
48910
|
+
# Sets the access control policy on the specified resource. Replaces any
|
48911
|
+
# existing policy.
|
48912
|
+
# @param [String] project
|
48913
|
+
# Project ID for this request.
|
48914
|
+
# @param [String] resource
|
48915
|
+
# Name or id of the resource for this request.
|
48916
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
48917
|
+
# @param [String] fields
|
48918
|
+
# Selector specifying which fields to include in a partial response.
|
48919
|
+
# @param [String] quota_user
|
48920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48922
|
+
# @param [String] user_ip
|
48923
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48924
|
+
# @param [Google::Apis::RequestOptions] options
|
48925
|
+
# Request-specific options
|
48926
|
+
#
|
48927
|
+
# @yield [result, err] Result & error if block supplied
|
48928
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
48929
|
+
# @yieldparam err [StandardError] error object if request failed
|
48930
|
+
#
|
48931
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
48932
|
+
#
|
48933
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48934
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48935
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48936
|
+
def set_snapshot_group_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48937
|
+
command = make_simple_command(:post, 'projects/{project}/global/snapshotGroups/{resource}/setIamPolicy', options)
|
48938
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
48939
|
+
command.request_object = global_set_policy_request_object
|
48940
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
48941
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
48942
|
+
command.params['project'] = project unless project.nil?
|
48943
|
+
command.params['resource'] = resource unless resource.nil?
|
48944
|
+
command.query['fields'] = fields unless fields.nil?
|
48945
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48946
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48947
|
+
execute_or_queue_command(command, &block)
|
48948
|
+
end
|
48949
|
+
|
48950
|
+
# Returns permissions that a caller has on the specified resource.
|
48951
|
+
# @param [String] project
|
48952
|
+
# Project ID for this request.
|
48953
|
+
# @param [String] resource
|
48954
|
+
# Name or id of the resource for this request.
|
48955
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
48956
|
+
# @param [String] fields
|
48957
|
+
# Selector specifying which fields to include in a partial response.
|
48958
|
+
# @param [String] quota_user
|
48959
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
48960
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
48961
|
+
# @param [String] user_ip
|
48962
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
48963
|
+
# @param [Google::Apis::RequestOptions] options
|
48964
|
+
# Request-specific options
|
48965
|
+
#
|
48966
|
+
# @yield [result, err] Result & error if block supplied
|
48967
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
48968
|
+
# @yieldparam err [StandardError] error object if request failed
|
48969
|
+
#
|
48970
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
48971
|
+
#
|
48972
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
48973
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
48974
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
48975
|
+
def test_snapshot_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
48976
|
+
command = make_simple_command(:post, 'projects/{project}/global/snapshotGroups/{resource}/testIamPermissions', options)
|
48977
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
48978
|
+
command.request_object = test_permissions_request_object
|
48979
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
48980
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
48981
|
+
command.params['project'] = project unless project.nil?
|
48982
|
+
command.params['resource'] = resource unless resource.nil?
|
48983
|
+
command.query['fields'] = fields unless fields.nil?
|
48984
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
48985
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
48986
|
+
execute_or_queue_command(command, &block)
|
48987
|
+
end
|
48988
|
+
|
48480
48989
|
# Get snapshot settings.
|
48481
48990
|
# @param [String] project
|
48482
48991
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
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.110.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-03-
|
10
|
+
date: 2025-03-23 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: google-apis-core
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.110.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|