google-apis-compute_alpha 0.108.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/compute_alpha/classes.rb +8656 -5487
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +1153 -24
- data/lib/google/apis/compute_alpha/service.rb +2294 -284
- metadata +4 -4
@@ -3743,6 +3743,60 @@ module Google
|
|
3743
3743
|
execute_or_queue_command(command, &block)
|
3744
3744
|
end
|
3745
3745
|
|
3746
|
+
# Sets the labels on many disks at once. To learn more about labels, read the
|
3747
|
+
# Labeling Resources documentation.
|
3748
|
+
# @param [String] project
|
3749
|
+
# Project ID for this request.
|
3750
|
+
# @param [String] zone
|
3751
|
+
# The name of the zone for this request.
|
3752
|
+
# @param [Google::Apis::ComputeAlpha::BulkZoneSetLabelsRequest] bulk_zone_set_labels_request_object
|
3753
|
+
# @param [String] request_id
|
3754
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3755
|
+
# that if you must retry your request, the server will know to ignore the
|
3756
|
+
# request if it has already been completed. For example, consider a situation
|
3757
|
+
# where you make an initial request and the request times out. If you make the
|
3758
|
+
# request again with the same request ID, the server can check if original
|
3759
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3760
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3761
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3762
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3763
|
+
# @param [String] resource
|
3764
|
+
# Name or id of the resource for this request.
|
3765
|
+
# @param [String] fields
|
3766
|
+
# Selector specifying which fields to include in a partial response.
|
3767
|
+
# @param [String] quota_user
|
3768
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3769
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3770
|
+
# @param [String] user_ip
|
3771
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3772
|
+
# @param [Google::Apis::RequestOptions] options
|
3773
|
+
# Request-specific options
|
3774
|
+
#
|
3775
|
+
# @yield [result, err] Result & error if block supplied
|
3776
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3777
|
+
# @yieldparam err [StandardError] error object if request failed
|
3778
|
+
#
|
3779
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3780
|
+
#
|
3781
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3782
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3783
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3784
|
+
def bulk_disk_set_labels(project, zone, bulk_zone_set_labels_request_object = nil, request_id: nil, resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3785
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/bulkSetLabels', options)
|
3786
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkZoneSetLabelsRequest::Representation
|
3787
|
+
command.request_object = bulk_zone_set_labels_request_object
|
3788
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3789
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3790
|
+
command.params['project'] = project unless project.nil?
|
3791
|
+
command.params['zone'] = zone unless zone.nil?
|
3792
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3793
|
+
command.query['resource'] = resource unless resource.nil?
|
3794
|
+
command.query['fields'] = fields unless fields.nil?
|
3795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3796
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3797
|
+
execute_or_queue_command(command, &block)
|
3798
|
+
end
|
3799
|
+
|
3746
3800
|
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
3747
3801
|
# creation, consider using snapshots.insert instead, as that method supports
|
3748
3802
|
# more features, such as creating snapshots in a project different from the
|
@@ -18364,6 +18418,46 @@ module Google
|
|
18364
18418
|
execute_or_queue_command(command, &block)
|
18365
18419
|
end
|
18366
18420
|
|
18421
|
+
# Create Interconnect Attachments with redundancy by creating them in a
|
18422
|
+
# specified interconnect attachment group.
|
18423
|
+
# @param [String] project
|
18424
|
+
# Project ID for this request.
|
18425
|
+
# @param [String] interconnect_attachment_group
|
18426
|
+
# Name of the group resource to create members for.
|
18427
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsCreateMembersRequest] interconnect_attachment_groups_create_members_request_object
|
18428
|
+
# @param [String] fields
|
18429
|
+
# Selector specifying which fields to include in a partial response.
|
18430
|
+
# @param [String] quota_user
|
18431
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18432
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18433
|
+
# @param [String] user_ip
|
18434
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18435
|
+
# @param [Google::Apis::RequestOptions] options
|
18436
|
+
# Request-specific options
|
18437
|
+
#
|
18438
|
+
# @yield [result, err] Result & error if block supplied
|
18439
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18440
|
+
# @yieldparam err [StandardError] error object if request failed
|
18441
|
+
#
|
18442
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18443
|
+
#
|
18444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18447
|
+
def create_interconnect_attachment_group_members(project, interconnect_attachment_group, interconnect_attachment_groups_create_members_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18448
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/createMembers', options)
|
18449
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsCreateMembersRequest::Representation
|
18450
|
+
command.request_object = interconnect_attachment_groups_create_members_request_object
|
18451
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18452
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18453
|
+
command.params['project'] = project unless project.nil?
|
18454
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18455
|
+
command.query['fields'] = fields unless fields.nil?
|
18456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18457
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18458
|
+
execute_or_queue_command(command, &block)
|
18459
|
+
end
|
18460
|
+
|
18367
18461
|
# Deletes the specified InterconnectAttachmentGroup in the given scope
|
18368
18462
|
# @param [String] project
|
18369
18463
|
# Project ID for this request.
|
@@ -19379,6 +19473,46 @@ module Google
|
|
19379
19473
|
execute_or_queue_command(command, &block)
|
19380
19474
|
end
|
19381
19475
|
|
19476
|
+
# Create Interconnects with redundancy by creating them in a specified
|
19477
|
+
# interconnect group.
|
19478
|
+
# @param [String] project
|
19479
|
+
# Project ID for this request.
|
19480
|
+
# @param [String] interconnect_group
|
19481
|
+
# Name of the group resource to create members for.
|
19482
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectGroupsCreateMembersRequest] interconnect_groups_create_members_request_object
|
19483
|
+
# @param [String] fields
|
19484
|
+
# Selector specifying which fields to include in a partial response.
|
19485
|
+
# @param [String] quota_user
|
19486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19488
|
+
# @param [String] user_ip
|
19489
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19490
|
+
# @param [Google::Apis::RequestOptions] options
|
19491
|
+
# Request-specific options
|
19492
|
+
#
|
19493
|
+
# @yield [result, err] Result & error if block supplied
|
19494
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
19495
|
+
# @yieldparam err [StandardError] error object if request failed
|
19496
|
+
#
|
19497
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
19498
|
+
#
|
19499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19502
|
+
def create_interconnect_group_members(project, interconnect_group, interconnect_groups_create_members_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19503
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers', options)
|
19504
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectGroupsCreateMembersRequest::Representation
|
19505
|
+
command.request_object = interconnect_groups_create_members_request_object
|
19506
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19507
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
19508
|
+
command.params['project'] = project unless project.nil?
|
19509
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19510
|
+
command.query['fields'] = fields unless fields.nil?
|
19511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19512
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19513
|
+
execute_or_queue_command(command, &block)
|
19514
|
+
end
|
19515
|
+
|
19382
19516
|
# Deletes the specified InterconnectGroup in the given scope
|
19383
19517
|
# @param [String] project
|
19384
19518
|
# Project ID for this request.
|
@@ -21541,12 +21675,13 @@ module Google
|
|
21541
21675
|
execute_or_queue_command(command, &block)
|
21542
21676
|
end
|
21543
21677
|
|
21544
|
-
#
|
21678
|
+
# Sets the labels on a machine image. To learn more about labels, read the
|
21679
|
+
# Labeling Resources documentation.
|
21545
21680
|
# @param [String] project
|
21546
21681
|
# Project ID for this request.
|
21547
21682
|
# @param [String] resource
|
21548
21683
|
# Name or id of the resource for this request.
|
21549
|
-
# @param [Google::Apis::ComputeAlpha::
|
21684
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
|
21550
21685
|
# @param [String] fields
|
21551
21686
|
# Selector specifying which fields to include in a partial response.
|
21552
21687
|
# @param [String] quota_user
|
@@ -21558,20 +21693,20 @@ module Google
|
|
21558
21693
|
# Request-specific options
|
21559
21694
|
#
|
21560
21695
|
# @yield [result, err] Result & error if block supplied
|
21561
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
21696
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
21562
21697
|
# @yieldparam err [StandardError] error object if request failed
|
21563
21698
|
#
|
21564
|
-
# @return [Google::Apis::ComputeAlpha::
|
21699
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
21565
21700
|
#
|
21566
21701
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21567
21702
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21568
21703
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21569
|
-
def
|
21570
|
-
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/
|
21571
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
21572
|
-
command.request_object =
|
21573
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
21574
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
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
|
21575
21710
|
command.params['project'] = project unless project.nil?
|
21576
21711
|
command.params['resource'] = resource unless resource.nil?
|
21577
21712
|
command.query['fields'] = fields unless fields.nil?
|
@@ -21580,117 +21715,12 @@ module Google
|
|
21580
21715
|
execute_or_queue_command(command, &block)
|
21581
21716
|
end
|
21582
21717
|
|
21583
|
-
#
|
21584
|
-
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
21585
|
-
# @param [String] project
|
21586
|
-
# Project ID for this request.
|
21587
|
-
# @param [String] filter
|
21588
|
-
# A filter expression that filters resources listed in the response. Most
|
21589
|
-
# Compute resources support two types of filter expressions: expressions that
|
21590
|
-
# support regular expressions and expressions that follow API improvement
|
21591
|
-
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
21592
|
-
# request. If you want to use AIP-160, your expression must specify the field
|
21593
|
-
# name, an operator, and the value that you want to use for filtering. The value
|
21594
|
-
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
21595
|
-
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
21596
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
21597
|
-
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
21598
|
-
# whether a key has been defined. For example, to find all objects with `owner`
|
21599
|
-
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
21600
|
-
# example, you could specify `scheduling.automaticRestart = false` to include
|
21601
|
-
# instances only if they are not scheduled for automatic restarts. You can use
|
21602
|
-
# filtering on nested fields to filter based on resource labels. To filter on
|
21603
|
-
# multiple expressions, provide each separate expression within parentheses. For
|
21604
|
-
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
21605
|
-
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
21606
|
-
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
21607
|
-
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
21608
|
-
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
21609
|
-
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
21610
|
-
# un-parenthesized expression with or without quotes or against multiple
|
21611
|
-
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
21612
|
-
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
21613
|
-
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
21614
|
-
# interpreted as a regular expression using Google RE2 library syntax. The
|
21615
|
-
# literal value must match the entire field. For example, to filter for
|
21616
|
-
# instances that do not end with name "instance", you would use `name ne .*
|
21617
|
-
# instance`. You cannot combine constraints on multiple fields using regular
|
21618
|
-
# expressions.
|
21619
|
-
# @param [Boolean] include_all_scopes
|
21620
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
21621
|
-
# global) should be included in the response. For new resource types added after
|
21622
|
-
# this field, the flag has no effect as new resource types will always include
|
21623
|
-
# every visible scope for each scope type in response. For resource types which
|
21624
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
21625
|
-
# types where the resource type is expected to be found will be included.
|
21626
|
-
# @param [Fixnum] max_results
|
21627
|
-
# The maximum number of results per page that should be returned. If the number
|
21628
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
21629
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
21630
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
21631
|
-
# @param [String] order_by
|
21632
|
-
# Sorts list results by a certain order. By default, results are returned in
|
21633
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
21634
|
-
# descending order based on the creation timestamp using `orderBy="
|
21635
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
21636
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
21637
|
-
# resources like operations so that the newest operation is returned first.
|
21638
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
21639
|
-
# @param [String] page_token
|
21640
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
21641
|
-
# by a previous list request to get the next page of results.
|
21642
|
-
# @param [Boolean] return_partial_success
|
21643
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
21644
|
-
# failure. The default value is false. For example, when partial success
|
21645
|
-
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
21646
|
-
# resources in the zone or no resources, with an error code.
|
21647
|
-
# @param [Fixnum] service_project_number
|
21648
|
-
# The Shared VPC service project id or service project number for which
|
21649
|
-
# aggregated list request is invoked for subnetworks list-usable api.
|
21650
|
-
# @param [String] fields
|
21651
|
-
# Selector specifying which fields to include in a partial response.
|
21652
|
-
# @param [String] quota_user
|
21653
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
21654
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21655
|
-
# @param [String] user_ip
|
21656
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21657
|
-
# @param [Google::Apis::RequestOptions] options
|
21658
|
-
# Request-specific options
|
21659
|
-
#
|
21660
|
-
# @yield [result, err] Result & error if block supplied
|
21661
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeAggregatedList] parsed result object
|
21662
|
-
# @yieldparam err [StandardError] error object if request failed
|
21663
|
-
#
|
21664
|
-
# @return [Google::Apis::ComputeAlpha::MachineTypeAggregatedList]
|
21665
|
-
#
|
21666
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21667
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21668
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21669
|
-
def aggregated_machine_type_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)
|
21670
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
|
21671
|
-
command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation
|
21672
|
-
command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList
|
21673
|
-
command.params['project'] = project unless project.nil?
|
21674
|
-
command.query['filter'] = filter unless filter.nil?
|
21675
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
21676
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
21677
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
21678
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
21679
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
21680
|
-
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
21681
|
-
command.query['fields'] = fields unless fields.nil?
|
21682
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21683
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
21684
|
-
execute_or_queue_command(command, &block)
|
21685
|
-
end
|
21686
|
-
|
21687
|
-
# Returns the specified machine type.
|
21718
|
+
# Returns permissions that a caller has on the specified resource.
|
21688
21719
|
# @param [String] project
|
21689
21720
|
# Project ID for this request.
|
21690
|
-
# @param [String]
|
21691
|
-
#
|
21692
|
-
# @param [
|
21693
|
-
# Name of the machine type to return.
|
21721
|
+
# @param [String] resource
|
21722
|
+
# Name or id of the resource for this request.
|
21723
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
21694
21724
|
# @param [String] fields
|
21695
21725
|
# Selector specifying which fields to include in a partial response.
|
21696
21726
|
# @param [String] quota_user
|
@@ -21702,32 +21732,176 @@ module Google
|
|
21702
21732
|
# Request-specific options
|
21703
21733
|
#
|
21704
21734
|
# @yield [result, err] Result & error if block supplied
|
21705
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
21735
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
21706
21736
|
# @yieldparam err [StandardError] error object if request failed
|
21707
21737
|
#
|
21708
|
-
# @return [Google::Apis::ComputeAlpha::
|
21738
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
21709
21739
|
#
|
21710
21740
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21711
21741
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21712
21742
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21713
|
-
def
|
21714
|
-
command = make_simple_command(:
|
21715
|
-
command.
|
21716
|
-
command.
|
21743
|
+
def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21744
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/testIamPermissions', options)
|
21745
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
21746
|
+
command.request_object = test_permissions_request_object
|
21747
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
21748
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
21717
21749
|
command.params['project'] = project unless project.nil?
|
21718
|
-
command.params['
|
21719
|
-
command.params['machineType'] = machine_type unless machine_type.nil?
|
21750
|
+
command.params['resource'] = resource unless resource.nil?
|
21720
21751
|
command.query['fields'] = fields unless fields.nil?
|
21721
21752
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21722
21753
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
21723
21754
|
execute_or_queue_command(command, &block)
|
21724
21755
|
end
|
21725
21756
|
|
21726
|
-
# Retrieves
|
21757
|
+
# Retrieves an aggregated list of machine types. To prevent failure, Google
|
21758
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
21727
21759
|
# @param [String] project
|
21728
21760
|
# Project ID for this request.
|
21729
|
-
# @param [String]
|
21730
|
-
#
|
21761
|
+
# @param [String] filter
|
21762
|
+
# A filter expression that filters resources listed in the response. Most
|
21763
|
+
# Compute resources support two types of filter expressions: expressions that
|
21764
|
+
# support regular expressions and expressions that follow API improvement
|
21765
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
21766
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
21767
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
21768
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
21769
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
21770
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
21771
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
21772
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
21773
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
21774
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
21775
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
21776
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
21777
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
21778
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
21779
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
21780
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
21781
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
21782
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
21783
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
21784
|
+
# un-parenthesized expression with or without quotes or against multiple
|
21785
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
21786
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
21787
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
21788
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
21789
|
+
# literal value must match the entire field. For example, to filter for
|
21790
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
21791
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
21792
|
+
# expressions.
|
21793
|
+
# @param [Boolean] include_all_scopes
|
21794
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
21795
|
+
# global) should be included in the response. For new resource types added after
|
21796
|
+
# this field, the flag has no effect as new resource types will always include
|
21797
|
+
# every visible scope for each scope type in response. For resource types which
|
21798
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
21799
|
+
# types where the resource type is expected to be found will be included.
|
21800
|
+
# @param [Fixnum] max_results
|
21801
|
+
# The maximum number of results per page that should be returned. If the number
|
21802
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
21803
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
21804
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
21805
|
+
# @param [String] order_by
|
21806
|
+
# Sorts list results by a certain order. By default, results are returned in
|
21807
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
21808
|
+
# descending order based on the creation timestamp using `orderBy="
|
21809
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
21810
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
21811
|
+
# resources like operations so that the newest operation is returned first.
|
21812
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
21813
|
+
# @param [String] page_token
|
21814
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
21815
|
+
# by a previous list request to get the next page of results.
|
21816
|
+
# @param [Boolean] return_partial_success
|
21817
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
21818
|
+
# failure. The default value is false. For example, when partial success
|
21819
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
21820
|
+
# resources in the zone or no resources, with an error code.
|
21821
|
+
# @param [Fixnum] service_project_number
|
21822
|
+
# The Shared VPC service project id or service project number for which
|
21823
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
21824
|
+
# @param [String] fields
|
21825
|
+
# Selector specifying which fields to include in a partial response.
|
21826
|
+
# @param [String] quota_user
|
21827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21829
|
+
# @param [String] user_ip
|
21830
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21831
|
+
# @param [Google::Apis::RequestOptions] options
|
21832
|
+
# Request-specific options
|
21833
|
+
#
|
21834
|
+
# @yield [result, err] Result & error if block supplied
|
21835
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeAggregatedList] parsed result object
|
21836
|
+
# @yieldparam err [StandardError] error object if request failed
|
21837
|
+
#
|
21838
|
+
# @return [Google::Apis::ComputeAlpha::MachineTypeAggregatedList]
|
21839
|
+
#
|
21840
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21841
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21842
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21843
|
+
def aggregated_machine_type_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)
|
21844
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
|
21845
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation
|
21846
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList
|
21847
|
+
command.params['project'] = project unless project.nil?
|
21848
|
+
command.query['filter'] = filter unless filter.nil?
|
21849
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
21850
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
21851
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
21852
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
21853
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
21854
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
21855
|
+
command.query['fields'] = fields unless fields.nil?
|
21856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21857
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21858
|
+
execute_or_queue_command(command, &block)
|
21859
|
+
end
|
21860
|
+
|
21861
|
+
# Returns the specified machine type.
|
21862
|
+
# @param [String] project
|
21863
|
+
# Project ID for this request.
|
21864
|
+
# @param [String] zone
|
21865
|
+
# The name of the zone for this request.
|
21866
|
+
# @param [String] machine_type
|
21867
|
+
# Name of the machine type to return.
|
21868
|
+
# @param [String] fields
|
21869
|
+
# Selector specifying which fields to include in a partial response.
|
21870
|
+
# @param [String] quota_user
|
21871
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21872
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21873
|
+
# @param [String] user_ip
|
21874
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21875
|
+
# @param [Google::Apis::RequestOptions] options
|
21876
|
+
# Request-specific options
|
21877
|
+
#
|
21878
|
+
# @yield [result, err] Result & error if block supplied
|
21879
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineType] parsed result object
|
21880
|
+
# @yieldparam err [StandardError] error object if request failed
|
21881
|
+
#
|
21882
|
+
# @return [Google::Apis::ComputeAlpha::MachineType]
|
21883
|
+
#
|
21884
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21885
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21886
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21887
|
+
def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21888
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options)
|
21889
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineType::Representation
|
21890
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineType
|
21891
|
+
command.params['project'] = project unless project.nil?
|
21892
|
+
command.params['zone'] = zone unless zone.nil?
|
21893
|
+
command.params['machineType'] = machine_type unless machine_type.nil?
|
21894
|
+
command.query['fields'] = fields unless fields.nil?
|
21895
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21896
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21897
|
+
execute_or_queue_command(command, &block)
|
21898
|
+
end
|
21899
|
+
|
21900
|
+
# Retrieves a list of machine types available to the specified project.
|
21901
|
+
# @param [String] project
|
21902
|
+
# Project ID for this request.
|
21903
|
+
# @param [String] zone
|
21904
|
+
# The name of the zone for this request.
|
21731
21905
|
# @param [String] filter
|
21732
21906
|
# A filter expression that filters resources listed in the response. Most
|
21733
21907
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -26973,7 +27147,9 @@ module Google
|
|
26973
27147
|
execute_or_queue_command(command, &block)
|
26974
27148
|
end
|
26975
27149
|
|
26976
|
-
# Inserts an association for the specified security policy.
|
27150
|
+
# Inserts an association for the specified security policy. Use of this API to
|
27151
|
+
# modify firewall policies is deprecated. Use firewallPolicies.addAssociation
|
27152
|
+
# instead if possible.
|
26977
27153
|
# @param [String] security_policy
|
26978
27154
|
# Name of the security policy to update.
|
26979
27155
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
|
@@ -27072,7 +27248,8 @@ module Google
|
|
27072
27248
|
execute_or_queue_command(command, &block)
|
27073
27249
|
end
|
27074
27250
|
|
27075
|
-
# Copies rules to the specified security policy.
|
27251
|
+
# Copies rules to the specified security policy. Use of this API to modify
|
27252
|
+
# firewall policies is deprecated. Use firewallPolicies.copyRules instead.
|
27076
27253
|
# @param [String] security_policy
|
27077
27254
|
# Name of the security policy to update.
|
27078
27255
|
# @param [String] request_id
|
@@ -27119,7 +27296,8 @@ module Google
|
|
27119
27296
|
execute_or_queue_command(command, &block)
|
27120
27297
|
end
|
27121
27298
|
|
27122
|
-
# Deletes the specified policy.
|
27299
|
+
# Deletes the specified policy. Use of this API to remove firewall policies is
|
27300
|
+
# deprecated. Use firewallPolicies.delete instead.
|
27123
27301
|
# @param [String] security_policy
|
27124
27302
|
# Name of the security policy to delete.
|
27125
27303
|
# @param [String] request_id
|
@@ -27163,7 +27341,9 @@ module Google
|
|
27163
27341
|
execute_or_queue_command(command, &block)
|
27164
27342
|
end
|
27165
27343
|
|
27166
|
-
# List all of the ordered rules present in a single specified policy.
|
27344
|
+
# List all of the ordered rules present in a single specified policy. Use of
|
27345
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.get
|
27346
|
+
# instead.
|
27167
27347
|
# @param [String] security_policy
|
27168
27348
|
# Name of the security policy to get.
|
27169
27349
|
# @param [String] fields
|
@@ -27196,7 +27376,9 @@ module Google
|
|
27196
27376
|
execute_or_queue_command(command, &block)
|
27197
27377
|
end
|
27198
27378
|
|
27199
|
-
# Gets an association with the specified name.
|
27379
|
+
# Gets an association with the specified name. Use of this API to read firewall
|
27380
|
+
# policies is deprecated. Use firewallPolicies.getAssociation instead if
|
27381
|
+
# possible.
|
27200
27382
|
# @param [String] security_policy
|
27201
27383
|
# Name of the security policy to which the queried rule belongs.
|
27202
27384
|
# @param [String] name
|
@@ -27232,7 +27414,8 @@ module Google
|
|
27232
27414
|
execute_or_queue_command(command, &block)
|
27233
27415
|
end
|
27234
27416
|
|
27235
|
-
# Gets a rule at the specified priority.
|
27417
|
+
# Gets a rule at the specified priority. Use of this API to read firewall
|
27418
|
+
# policies is deprecated. Use firewallPolicies.getRule instead.
|
27236
27419
|
# @param [String] security_policy
|
27237
27420
|
# Name of the security policy to which the queried rule belongs.
|
27238
27421
|
# @param [Fixnum] priority
|
@@ -27269,7 +27452,8 @@ module Google
|
|
27269
27452
|
end
|
27270
27453
|
|
27271
27454
|
# Creates a new policy in the specified project using the data included in the
|
27272
|
-
# request.
|
27455
|
+
# request. Use of this API to insert firewall policies is deprecated. Use
|
27456
|
+
# firewallPolicies.insert instead.
|
27273
27457
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
27274
27458
|
# @param [String] parent_id
|
27275
27459
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
@@ -27318,7 +27502,9 @@ module Google
|
|
27318
27502
|
execute_or_queue_command(command, &block)
|
27319
27503
|
end
|
27320
27504
|
|
27321
|
-
# List all the policies that have been configured for the specified project.
|
27505
|
+
# List all the policies that have been configured for the specified project. Use
|
27506
|
+
# of this API to read firewall policies is deprecated. Use firewallPolicies.list
|
27507
|
+
# instead.
|
27322
27508
|
# @param [String] filter
|
27323
27509
|
# A filter expression that filters resources listed in the response. Most
|
27324
27510
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -27409,7 +27595,9 @@ module Google
|
|
27409
27595
|
execute_or_queue_command(command, &block)
|
27410
27596
|
end
|
27411
27597
|
|
27412
|
-
# Lists associations of a specified target, i.e., organization or folder.
|
27598
|
+
# Lists associations of a specified target, i.e., organization or folder. Use of
|
27599
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.
|
27600
|
+
# listAssociations instead if possible.
|
27413
27601
|
# @param [String] target_resource
|
27414
27602
|
# The target resource to list associations. It is an organization, or a folder.
|
27415
27603
|
# @param [String] fields
|
@@ -27534,7 +27722,8 @@ module Google
|
|
27534
27722
|
execute_or_queue_command(command, &block)
|
27535
27723
|
end
|
27536
27724
|
|
27537
|
-
# Moves the specified security policy.
|
27725
|
+
# Moves the specified security policy. Use of this API to modify firewall
|
27726
|
+
# policies is deprecated. Use firewallPolicies.move instead.
|
27538
27727
|
# @param [String] security_policy
|
27539
27728
|
# Name of the security policy to update.
|
27540
27729
|
# @param [String] parent_id
|
@@ -27581,7 +27770,9 @@ module Google
|
|
27581
27770
|
execute_or_queue_command(command, &block)
|
27582
27771
|
end
|
27583
27772
|
|
27584
|
-
# Patches the specified policy with the data included in the request.
|
27773
|
+
# Patches the specified policy with the data included in the request. Use of
|
27774
|
+
# this API to modify firewall policies is deprecated. Use firewallPolicies.patch
|
27775
|
+
# instead.
|
27585
27776
|
# @param [String] security_policy
|
27586
27777
|
# Name of the security policy to update.
|
27587
27778
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
@@ -27628,7 +27819,8 @@ module Google
|
|
27628
27819
|
execute_or_queue_command(command, &block)
|
27629
27820
|
end
|
27630
27821
|
|
27631
|
-
# Patches a rule at the specified priority.
|
27822
|
+
# Patches a rule at the specified priority. Use of this API to modify firewall
|
27823
|
+
# policies is deprecated. Use firewallPolicies.patchRule instead.
|
27632
27824
|
# @param [String] security_policy
|
27633
27825
|
# Name of the security policy to update.
|
27634
27826
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
@@ -27678,7 +27870,9 @@ module Google
|
|
27678
27870
|
execute_or_queue_command(command, &block)
|
27679
27871
|
end
|
27680
27872
|
|
27681
|
-
# Removes an association for the specified security policy.
|
27873
|
+
# Removes an association for the specified security policy. Use of this API to
|
27874
|
+
# modify firewall policies is deprecated. Use firewallPolicies.removeAssociation
|
27875
|
+
# instead if possible.
|
27682
27876
|
# @param [String] security_policy
|
27683
27877
|
# Name of the security policy to update.
|
27684
27878
|
# @param [String] name
|
@@ -31392,13 +31586,13 @@ module Google
|
|
31392
31586
|
|
31393
31587
|
# Updates the specified commitment with the data included in the request. Update
|
31394
31588
|
# is performed only on selected fields included as part of update-mask. Only the
|
31395
|
-
# following fields can be
|
31589
|
+
# following fields can be updated: auto_renew and plan.
|
31396
31590
|
# @param [String] project
|
31397
31591
|
# Project ID for this request.
|
31398
31592
|
# @param [String] region
|
31399
31593
|
# Name of the region for this request.
|
31400
31594
|
# @param [String] commitment
|
31401
|
-
# Name of the commitment
|
31595
|
+
# Name of the commitment that you want to update.
|
31402
31596
|
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
31403
31597
|
# @param [Array<String>, String] paths
|
31404
31598
|
# @param [String] request_id
|
@@ -31450,13 +31644,14 @@ module Google
|
|
31450
31644
|
execute_or_queue_command(command, &block)
|
31451
31645
|
end
|
31452
31646
|
|
31453
|
-
# Transfers GPUs or
|
31647
|
+
# Transfers GPUs or Local SSD disks between reservations that are attached to
|
31648
|
+
# the same commitment.
|
31454
31649
|
# @param [String] project
|
31455
31650
|
# Project ID for this request.
|
31456
31651
|
# @param [String] region
|
31457
31652
|
# Name of the region for this request.
|
31458
31653
|
# @param [String] commitment
|
31459
|
-
# Name of the commitment for which the
|
31654
|
+
# Name of the commitment for which the reservations are being updated.
|
31460
31655
|
# @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object
|
31461
31656
|
# @param [String] request_id
|
31462
31657
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -31503,139 +31698,576 @@ module Google
|
|
31503
31698
|
execute_or_queue_command(command, &block)
|
31504
31699
|
end
|
31505
31700
|
|
31506
|
-
#
|
31507
|
-
#
|
31508
|
-
#
|
31509
|
-
# @param [String] region
|
31510
|
-
# Name of the region for this request.
|
31511
|
-
# @param [String] fields
|
31512
|
-
# Selector specifying which fields to include in a partial response.
|
31513
|
-
# @param [String] quota_user
|
31514
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31515
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31516
|
-
# @param [String] user_ip
|
31517
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31518
|
-
# @param [Google::Apis::RequestOptions] options
|
31519
|
-
# Request-specific options
|
31520
|
-
#
|
31521
|
-
# @yield [result, err] Result & error if block supplied
|
31522
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
31523
|
-
# @yieldparam err [StandardError] error object if request failed
|
31524
|
-
#
|
31525
|
-
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
31526
|
-
#
|
31527
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31528
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31529
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31530
|
-
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31531
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
31532
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31533
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
31534
|
-
command.params['project'] = project unless project.nil?
|
31535
|
-
command.params['region'] = region unless region.nil?
|
31536
|
-
command.query['fields'] = fields unless fields.nil?
|
31537
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31538
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31539
|
-
execute_or_queue_command(command, &block)
|
31540
|
-
end
|
31541
|
-
|
31542
|
-
# Patch Regional Disk Settings
|
31543
|
-
# @param [String] project
|
31544
|
-
# Project ID for this request.
|
31545
|
-
# @param [String] region
|
31546
|
-
# Name of the region for this request.
|
31547
|
-
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
31548
|
-
# @param [String] request_id
|
31549
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31550
|
-
# that if you must retry your request, the server will know to ignore the
|
31551
|
-
# request if it has already been completed. For example, consider a situation
|
31552
|
-
# where you make an initial request and the request times out. If you make the
|
31553
|
-
# request again with the same request ID, the server can check if original
|
31554
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31555
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31556
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31557
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31558
|
-
# @param [String] update_mask
|
31559
|
-
# update_mask indicates fields to be updated as part of this request.
|
31560
|
-
# @param [String] fields
|
31561
|
-
# Selector specifying which fields to include in a partial response.
|
31562
|
-
# @param [String] quota_user
|
31563
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31564
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31565
|
-
# @param [String] user_ip
|
31566
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31567
|
-
# @param [Google::Apis::RequestOptions] options
|
31568
|
-
# Request-specific options
|
31569
|
-
#
|
31570
|
-
# @yield [result, err] Result & error if block supplied
|
31571
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31572
|
-
# @yieldparam err [StandardError] error object if request failed
|
31573
|
-
#
|
31574
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31575
|
-
#
|
31576
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31577
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31578
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31579
|
-
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31580
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
31581
|
-
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31582
|
-
command.request_object = disk_settings_object
|
31583
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31584
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31585
|
-
command.params['project'] = project unless project.nil?
|
31586
|
-
command.params['region'] = region unless region.nil?
|
31587
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31588
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
31589
|
-
command.query['fields'] = fields unless fields.nil?
|
31590
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31591
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31592
|
-
execute_or_queue_command(command, &block)
|
31593
|
-
end
|
31594
|
-
|
31595
|
-
# Returns the specified regional disk type.
|
31596
|
-
# @param [String] project
|
31597
|
-
# Project ID for this request.
|
31598
|
-
# @param [String] region
|
31599
|
-
# The name of the region for this request.
|
31600
|
-
# @param [String] disk_type
|
31601
|
-
# Name of the disk type to return.
|
31602
|
-
# @param [String] fields
|
31603
|
-
# Selector specifying which fields to include in a partial response.
|
31604
|
-
# @param [String] quota_user
|
31605
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31606
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31607
|
-
# @param [String] user_ip
|
31608
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31609
|
-
# @param [Google::Apis::RequestOptions] options
|
31610
|
-
# Request-specific options
|
31611
|
-
#
|
31612
|
-
# @yield [result, err] Result & error if block supplied
|
31613
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
31614
|
-
# @yieldparam err [StandardError] error object if request failed
|
31615
|
-
#
|
31616
|
-
# @return [Google::Apis::ComputeAlpha::DiskType]
|
31617
|
-
#
|
31618
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31619
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31620
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31621
|
-
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31622
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options)
|
31623
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
31624
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
31625
|
-
command.params['project'] = project unless project.nil?
|
31626
|
-
command.params['region'] = region unless region.nil?
|
31627
|
-
command.params['diskType'] = disk_type unless disk_type.nil?
|
31628
|
-
command.query['fields'] = fields unless fields.nil?
|
31629
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31630
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31631
|
-
execute_or_queue_command(command, &block)
|
31632
|
-
end
|
31633
|
-
|
31634
|
-
# Retrieves a list of regional disk types available to the specified project.
|
31701
|
+
# Retrieves the list of all CompositeHealthCheck resources (all regional)
|
31702
|
+
# available to the specified project. To prevent failure, Google recommends that
|
31703
|
+
# you set the `returnPartialSuccess` parameter to `true`.
|
31635
31704
|
# @param [String] project
|
31636
|
-
#
|
31637
|
-
# @param [String]
|
31638
|
-
#
|
31705
|
+
# Name of the project scoping this request.
|
31706
|
+
# @param [String] filter
|
31707
|
+
# A filter expression that filters resources listed in the response. Most
|
31708
|
+
# Compute resources support two types of filter expressions: expressions that
|
31709
|
+
# support regular expressions and expressions that follow API improvement
|
31710
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
31711
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
31712
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
31713
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
31714
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
31715
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
31716
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
31717
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
31718
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
31719
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
31720
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
31721
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
31722
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
31723
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
31724
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
31725
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
31726
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
31727
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
31728
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
31729
|
+
# un-parenthesized expression with or without quotes or against multiple
|
31730
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31731
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31732
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31733
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31734
|
+
# literal value must match the entire field. For example, to filter for
|
31735
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31736
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
31737
|
+
# expressions.
|
31738
|
+
# @param [Boolean] include_all_scopes
|
31739
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
31740
|
+
# global) should be included in the response. For new resource types added after
|
31741
|
+
# this field, the flag has no effect as new resource types will always include
|
31742
|
+
# every visible scope for each scope type in response. For resource types which
|
31743
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
31744
|
+
# types where the resource type is expected to be found will be included.
|
31745
|
+
# @param [Fixnum] max_results
|
31746
|
+
# The maximum number of results per page that should be returned. If the number
|
31747
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31748
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31749
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31750
|
+
# @param [String] order_by
|
31751
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31752
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31753
|
+
# descending order based on the creation timestamp using `orderBy="
|
31754
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31755
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31756
|
+
# resources like operations so that the newest operation is returned first.
|
31757
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31758
|
+
# @param [String] page_token
|
31759
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31760
|
+
# by a previous list request to get the next page of results.
|
31761
|
+
# @param [Boolean] return_partial_success
|
31762
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
31763
|
+
# failure. The default value is false. For example, when partial success
|
31764
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
31765
|
+
# resources in the zone or no resources, with an error code.
|
31766
|
+
# @param [Fixnum] service_project_number
|
31767
|
+
# The Shared VPC service project id or service project number for which
|
31768
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
31769
|
+
# @param [String] fields
|
31770
|
+
# Selector specifying which fields to include in a partial response.
|
31771
|
+
# @param [String] quota_user
|
31772
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31773
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31774
|
+
# @param [String] user_ip
|
31775
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31776
|
+
# @param [Google::Apis::RequestOptions] options
|
31777
|
+
# Request-specific options
|
31778
|
+
#
|
31779
|
+
# @yield [result, err] Result & error if block supplied
|
31780
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList] parsed result object
|
31781
|
+
# @yieldparam err [StandardError] error object if request failed
|
31782
|
+
#
|
31783
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList]
|
31784
|
+
#
|
31785
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31786
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31787
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31788
|
+
def aggregated_region_composite_health_check_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)
|
31789
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/compositeHealthChecks', options)
|
31790
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList::Representation
|
31791
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList
|
31792
|
+
command.params['project'] = project unless project.nil?
|
31793
|
+
command.query['filter'] = filter unless filter.nil?
|
31794
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
31795
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
31796
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
31797
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
31798
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31799
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
31800
|
+
command.query['fields'] = fields unless fields.nil?
|
31801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31802
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31803
|
+
execute_or_queue_command(command, &block)
|
31804
|
+
end
|
31805
|
+
|
31806
|
+
# Deletes the specified CompositeHealthCheck in the given region
|
31807
|
+
# @param [String] project
|
31808
|
+
# Project ID for this request.
|
31809
|
+
# @param [String] region
|
31810
|
+
# Name of the region scoping this request.
|
31811
|
+
# @param [String] composite_health_check
|
31812
|
+
# Name of the CompositeHealthCheck resource to delete.
|
31813
|
+
# @param [String] request_id
|
31814
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31815
|
+
# that if you must retry your request, the server will know to ignore the
|
31816
|
+
# request if it has already been completed. For example, consider a situation
|
31817
|
+
# where you make an initial request and the request times out. If you make the
|
31818
|
+
# request again with the same request ID, the server can check if original
|
31819
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31820
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31821
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31822
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31823
|
+
# @param [String] fields
|
31824
|
+
# Selector specifying which fields to include in a partial response.
|
31825
|
+
# @param [String] quota_user
|
31826
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31827
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31828
|
+
# @param [String] user_ip
|
31829
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31830
|
+
# @param [Google::Apis::RequestOptions] options
|
31831
|
+
# Request-specific options
|
31832
|
+
#
|
31833
|
+
# @yield [result, err] Result & error if block supplied
|
31834
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31835
|
+
# @yieldparam err [StandardError] error object if request failed
|
31836
|
+
#
|
31837
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31838
|
+
#
|
31839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31842
|
+
def delete_region_composite_health_check(project, region, composite_health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31843
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
31844
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31845
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31846
|
+
command.params['project'] = project unless project.nil?
|
31847
|
+
command.params['region'] = region unless region.nil?
|
31848
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31849
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31850
|
+
command.query['fields'] = fields unless fields.nil?
|
31851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31852
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31853
|
+
execute_or_queue_command(command, &block)
|
31854
|
+
end
|
31855
|
+
|
31856
|
+
# Returns the specified CompositeHealthCheck resource in the given region.
|
31857
|
+
# @param [String] project
|
31858
|
+
# Project ID for this request.
|
31859
|
+
# @param [String] region
|
31860
|
+
# Name of the region scoping this request.
|
31861
|
+
# @param [String] composite_health_check
|
31862
|
+
# Name of the CompositeHealthCheck resource to return.
|
31863
|
+
# @param [String] fields
|
31864
|
+
# Selector specifying which fields to include in a partial response.
|
31865
|
+
# @param [String] quota_user
|
31866
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31867
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31868
|
+
# @param [String] user_ip
|
31869
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31870
|
+
# @param [Google::Apis::RequestOptions] options
|
31871
|
+
# Request-specific options
|
31872
|
+
#
|
31873
|
+
# @yield [result, err] Result & error if block supplied
|
31874
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheck] parsed result object
|
31875
|
+
# @yieldparam err [StandardError] error object if request failed
|
31876
|
+
#
|
31877
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheck]
|
31878
|
+
#
|
31879
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31880
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31881
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31882
|
+
def get_region_composite_health_check(project, region, composite_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31883
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
31884
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
31885
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheck
|
31886
|
+
command.params['project'] = project unless project.nil?
|
31887
|
+
command.params['region'] = region unless region.nil?
|
31888
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31889
|
+
command.query['fields'] = fields unless fields.nil?
|
31890
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31891
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31892
|
+
execute_or_queue_command(command, &block)
|
31893
|
+
end
|
31894
|
+
|
31895
|
+
# Create a CompositeHealthCheck in the specified project in the given region
|
31896
|
+
# using the parameters that are included in the request.
|
31897
|
+
# @param [String] project
|
31898
|
+
# Project ID for this request.
|
31899
|
+
# @param [String] region
|
31900
|
+
# Name of the region scoping this request.
|
31901
|
+
# @param [Google::Apis::ComputeAlpha::CompositeHealthCheck] composite_health_check_object
|
31902
|
+
# @param [String] request_id
|
31903
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31904
|
+
# that if you must retry your request, the server will know to ignore the
|
31905
|
+
# request if it has already been completed. For example, consider a situation
|
31906
|
+
# where you make an initial request and the request times out. If you make the
|
31907
|
+
# request again with the same request ID, the server can check if original
|
31908
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31909
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31910
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31911
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31912
|
+
# @param [String] fields
|
31913
|
+
# Selector specifying which fields to include in a partial response.
|
31914
|
+
# @param [String] quota_user
|
31915
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31916
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31917
|
+
# @param [String] user_ip
|
31918
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31919
|
+
# @param [Google::Apis::RequestOptions] options
|
31920
|
+
# Request-specific options
|
31921
|
+
#
|
31922
|
+
# @yield [result, err] Result & error if block supplied
|
31923
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31924
|
+
# @yieldparam err [StandardError] error object if request failed
|
31925
|
+
#
|
31926
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31927
|
+
#
|
31928
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31929
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31930
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31931
|
+
def insert_region_composite_health_check(project, region, composite_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31932
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/compositeHealthChecks', options)
|
31933
|
+
command.request_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
31934
|
+
command.request_object = composite_health_check_object
|
31935
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31936
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31937
|
+
command.params['project'] = project unless project.nil?
|
31938
|
+
command.params['region'] = region unless region.nil?
|
31939
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31940
|
+
command.query['fields'] = fields unless fields.nil?
|
31941
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31942
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31943
|
+
execute_or_queue_command(command, &block)
|
31944
|
+
end
|
31945
|
+
|
31946
|
+
# Lists the CompositeHealthChecks for a project in the given region.
|
31947
|
+
# @param [String] project
|
31948
|
+
# Project ID for this request.
|
31949
|
+
# @param [String] region
|
31950
|
+
# Name of the region scoping this request.
|
31951
|
+
# @param [String] filter
|
31952
|
+
# A filter expression that filters resources listed in the response. Most
|
31953
|
+
# Compute resources support two types of filter expressions: expressions that
|
31954
|
+
# support regular expressions and expressions that follow API improvement
|
31955
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
31956
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
31957
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
31958
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
31959
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
31960
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
31961
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
31962
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
31963
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
31964
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
31965
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
31966
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
31967
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
31968
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
31969
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
31970
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
31971
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
31972
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
31973
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
31974
|
+
# un-parenthesized expression with or without quotes or against multiple
|
31975
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31976
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31977
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31978
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31979
|
+
# literal value must match the entire field. For example, to filter for
|
31980
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31981
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
31982
|
+
# expressions.
|
31983
|
+
# @param [Fixnum] max_results
|
31984
|
+
# The maximum number of results per page that should be returned. If the number
|
31985
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31986
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31987
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31988
|
+
# @param [String] order_by
|
31989
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31990
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31991
|
+
# descending order based on the creation timestamp using `orderBy="
|
31992
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31993
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31994
|
+
# resources like operations so that the newest operation is returned first.
|
31995
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31996
|
+
# @param [String] page_token
|
31997
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31998
|
+
# by a previous list request to get the next page of results.
|
31999
|
+
# @param [Boolean] return_partial_success
|
32000
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
32001
|
+
# failure. The default value is false. For example, when partial success
|
32002
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
32003
|
+
# resources in the zone or no resources, with an error code.
|
32004
|
+
# @param [String] fields
|
32005
|
+
# Selector specifying which fields to include in a partial response.
|
32006
|
+
# @param [String] quota_user
|
32007
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32008
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32009
|
+
# @param [String] user_ip
|
32010
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32011
|
+
# @param [Google::Apis::RequestOptions] options
|
32012
|
+
# Request-specific options
|
32013
|
+
#
|
32014
|
+
# @yield [result, err] Result & error if block supplied
|
32015
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheckList] parsed result object
|
32016
|
+
# @yieldparam err [StandardError] error object if request failed
|
32017
|
+
#
|
32018
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheckList]
|
32019
|
+
#
|
32020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32023
|
+
def list_region_composite_health_checks(project, region, 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)
|
32024
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/compositeHealthChecks', options)
|
32025
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheckList::Representation
|
32026
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheckList
|
32027
|
+
command.params['project'] = project unless project.nil?
|
32028
|
+
command.params['region'] = region unless region.nil?
|
32029
|
+
command.query['filter'] = filter unless filter.nil?
|
32030
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
32031
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
32032
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
32033
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32034
|
+
command.query['fields'] = fields unless fields.nil?
|
32035
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32036
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32037
|
+
execute_or_queue_command(command, &block)
|
32038
|
+
end
|
32039
|
+
|
32040
|
+
# Updates the specified regional CompositeHealthCheck resource with the data
|
32041
|
+
# included in the request. This method supports PATCH semantics and uses the
|
32042
|
+
# JSON merge patch format and processing rules.
|
32043
|
+
# @param [String] project
|
32044
|
+
# Project ID for this request.
|
32045
|
+
# @param [String] region
|
32046
|
+
# Name of the region scoping this request.
|
32047
|
+
# @param [String] composite_health_check
|
32048
|
+
# Name of the CompositeHealthCheck to update. The name must be 1-63 characters
|
32049
|
+
# long, and comply with RFC1035.
|
32050
|
+
# @param [Google::Apis::ComputeAlpha::CompositeHealthCheck] composite_health_check_object
|
32051
|
+
# @param [String] request_id
|
32052
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32053
|
+
# that if you must retry your request, the server will know to ignore the
|
32054
|
+
# request if it has already been completed. For example, consider a situation
|
32055
|
+
# where you make an initial request and the request times out. If you make the
|
32056
|
+
# request again with the same request ID, the server can check if original
|
32057
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32058
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32059
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32060
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32061
|
+
# @param [String] fields
|
32062
|
+
# Selector specifying which fields to include in a partial response.
|
32063
|
+
# @param [String] quota_user
|
32064
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32065
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32066
|
+
# @param [String] user_ip
|
32067
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32068
|
+
# @param [Google::Apis::RequestOptions] options
|
32069
|
+
# Request-specific options
|
32070
|
+
#
|
32071
|
+
# @yield [result, err] Result & error if block supplied
|
32072
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32073
|
+
# @yieldparam err [StandardError] error object if request failed
|
32074
|
+
#
|
32075
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32076
|
+
#
|
32077
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32078
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32079
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32080
|
+
def patch_region_composite_health_check(project, region, composite_health_check, composite_health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32081
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
32082
|
+
command.request_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
32083
|
+
command.request_object = composite_health_check_object
|
32084
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32085
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32086
|
+
command.params['project'] = project unless project.nil?
|
32087
|
+
command.params['region'] = region unless region.nil?
|
32088
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
32089
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32090
|
+
command.query['fields'] = fields unless fields.nil?
|
32091
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32092
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32093
|
+
execute_or_queue_command(command, &block)
|
32094
|
+
end
|
32095
|
+
|
32096
|
+
# Returns permissions that a caller has on the specified resource.
|
32097
|
+
# @param [String] project
|
32098
|
+
# Project ID for this request.
|
32099
|
+
# @param [String] region
|
32100
|
+
# The name of the region for this request.
|
32101
|
+
# @param [String] resource
|
32102
|
+
# Name or id of the resource for this request.
|
32103
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
32104
|
+
# @param [String] fields
|
32105
|
+
# Selector specifying which fields to include in a partial response.
|
32106
|
+
# @param [String] quota_user
|
32107
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32108
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32109
|
+
# @param [String] user_ip
|
32110
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32111
|
+
# @param [Google::Apis::RequestOptions] options
|
32112
|
+
# Request-specific options
|
32113
|
+
#
|
32114
|
+
# @yield [result, err] Result & error if block supplied
|
32115
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
32116
|
+
# @yieldparam err [StandardError] error object if request failed
|
32117
|
+
#
|
32118
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
32119
|
+
#
|
32120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32123
|
+
def test_region_composite_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32124
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions', options)
|
32125
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
32126
|
+
command.request_object = test_permissions_request_object
|
32127
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
32128
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
32129
|
+
command.params['project'] = project unless project.nil?
|
32130
|
+
command.params['region'] = region unless region.nil?
|
32131
|
+
command.params['resource'] = resource unless resource.nil?
|
32132
|
+
command.query['fields'] = fields unless fields.nil?
|
32133
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32134
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32135
|
+
execute_or_queue_command(command, &block)
|
32136
|
+
end
|
32137
|
+
|
32138
|
+
# Get Regional Disk Settings.
|
32139
|
+
# @param [String] project
|
32140
|
+
# Project ID for this request.
|
32141
|
+
# @param [String] region
|
32142
|
+
# Name of the region for this request.
|
32143
|
+
# @param [String] fields
|
32144
|
+
# Selector specifying which fields to include in a partial response.
|
32145
|
+
# @param [String] quota_user
|
32146
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32147
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32148
|
+
# @param [String] user_ip
|
32149
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32150
|
+
# @param [Google::Apis::RequestOptions] options
|
32151
|
+
# Request-specific options
|
32152
|
+
#
|
32153
|
+
# @yield [result, err] Result & error if block supplied
|
32154
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
32155
|
+
# @yieldparam err [StandardError] error object if request failed
|
32156
|
+
#
|
32157
|
+
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
32158
|
+
#
|
32159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32162
|
+
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32163
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
32164
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
32165
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
32166
|
+
command.params['project'] = project unless project.nil?
|
32167
|
+
command.params['region'] = region unless region.nil?
|
32168
|
+
command.query['fields'] = fields unless fields.nil?
|
32169
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32170
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32171
|
+
execute_or_queue_command(command, &block)
|
32172
|
+
end
|
32173
|
+
|
32174
|
+
# Patch Regional Disk Settings
|
32175
|
+
# @param [String] project
|
32176
|
+
# Project ID for this request.
|
32177
|
+
# @param [String] region
|
32178
|
+
# Name of the region for this request.
|
32179
|
+
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
32180
|
+
# @param [String] request_id
|
32181
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32182
|
+
# that if you must retry your request, the server will know to ignore the
|
32183
|
+
# request if it has already been completed. For example, consider a situation
|
32184
|
+
# where you make an initial request and the request times out. If you make the
|
32185
|
+
# request again with the same request ID, the server can check if original
|
32186
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32187
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32188
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32189
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32190
|
+
# @param [String] update_mask
|
32191
|
+
# update_mask indicates fields to be updated as part of this request.
|
32192
|
+
# @param [String] fields
|
32193
|
+
# Selector specifying which fields to include in a partial response.
|
32194
|
+
# @param [String] quota_user
|
32195
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32196
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32197
|
+
# @param [String] user_ip
|
32198
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32199
|
+
# @param [Google::Apis::RequestOptions] options
|
32200
|
+
# Request-specific options
|
32201
|
+
#
|
32202
|
+
# @yield [result, err] Result & error if block supplied
|
32203
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32204
|
+
# @yieldparam err [StandardError] error object if request failed
|
32205
|
+
#
|
32206
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32207
|
+
#
|
32208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32211
|
+
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32212
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
32213
|
+
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
32214
|
+
command.request_object = disk_settings_object
|
32215
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32216
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32217
|
+
command.params['project'] = project unless project.nil?
|
32218
|
+
command.params['region'] = region unless region.nil?
|
32219
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32220
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
32221
|
+
command.query['fields'] = fields unless fields.nil?
|
32222
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32223
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32224
|
+
execute_or_queue_command(command, &block)
|
32225
|
+
end
|
32226
|
+
|
32227
|
+
# Returns the specified regional disk type.
|
32228
|
+
# @param [String] project
|
32229
|
+
# Project ID for this request.
|
32230
|
+
# @param [String] region
|
32231
|
+
# The name of the region for this request.
|
32232
|
+
# @param [String] disk_type
|
32233
|
+
# Name of the disk type to return.
|
32234
|
+
# @param [String] fields
|
32235
|
+
# Selector specifying which fields to include in a partial response.
|
32236
|
+
# @param [String] quota_user
|
32237
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32238
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32239
|
+
# @param [String] user_ip
|
32240
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32241
|
+
# @param [Google::Apis::RequestOptions] options
|
32242
|
+
# Request-specific options
|
32243
|
+
#
|
32244
|
+
# @yield [result, err] Result & error if block supplied
|
32245
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
32246
|
+
# @yieldparam err [StandardError] error object if request failed
|
32247
|
+
#
|
32248
|
+
# @return [Google::Apis::ComputeAlpha::DiskType]
|
32249
|
+
#
|
32250
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32251
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32252
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32253
|
+
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32254
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options)
|
32255
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
32256
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
32257
|
+
command.params['project'] = project unless project.nil?
|
32258
|
+
command.params['region'] = region unless region.nil?
|
32259
|
+
command.params['diskType'] = disk_type unless disk_type.nil?
|
32260
|
+
command.query['fields'] = fields unless fields.nil?
|
32261
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32262
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32263
|
+
execute_or_queue_command(command, &block)
|
32264
|
+
end
|
32265
|
+
|
32266
|
+
# Retrieves a list of regional disk types available to the specified project.
|
32267
|
+
# @param [String] project
|
32268
|
+
# Project ID for this request.
|
32269
|
+
# @param [String] region
|
32270
|
+
# The name of the region for this request.
|
31639
32271
|
# @param [String] filter
|
31640
32272
|
# A filter expression that filters resources listed in the response. Most
|
31641
32273
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -32726,6 +33358,338 @@ module Google
|
|
32726
33358
|
execute_or_queue_command(command, &block)
|
32727
33359
|
end
|
32728
33360
|
|
33361
|
+
# Deletes the specified HealthAggregationPolicy in the given region.
|
33362
|
+
# @param [String] project
|
33363
|
+
# Project ID for this request.
|
33364
|
+
# @param [String] region
|
33365
|
+
# Name of the region scoping this request.
|
33366
|
+
# @param [String] health_aggregation_policy
|
33367
|
+
# Name of the HealthAggregationPolicy resource to delete.
|
33368
|
+
# @param [String] request_id
|
33369
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33370
|
+
# that if you must retry your request, the server will know to ignore the
|
33371
|
+
# request if it has already been completed. For example, consider a situation
|
33372
|
+
# where you make an initial request and the request times out. If you make the
|
33373
|
+
# request again with the same request ID, the server can check if original
|
33374
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33375
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33376
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33377
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33378
|
+
# @param [String] fields
|
33379
|
+
# Selector specifying which fields to include in a partial response.
|
33380
|
+
# @param [String] quota_user
|
33381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33383
|
+
# @param [String] user_ip
|
33384
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33385
|
+
# @param [Google::Apis::RequestOptions] options
|
33386
|
+
# Request-specific options
|
33387
|
+
#
|
33388
|
+
# @yield [result, err] Result & error if block supplied
|
33389
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33390
|
+
# @yieldparam err [StandardError] error object if request failed
|
33391
|
+
#
|
33392
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33393
|
+
#
|
33394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33397
|
+
def delete_region_health_aggregation_policy(project, region, health_aggregation_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33398
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33399
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33400
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33401
|
+
command.params['project'] = project unless project.nil?
|
33402
|
+
command.params['region'] = region unless region.nil?
|
33403
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
33404
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33405
|
+
command.query['fields'] = fields unless fields.nil?
|
33406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33407
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33408
|
+
execute_or_queue_command(command, &block)
|
33409
|
+
end
|
33410
|
+
|
33411
|
+
# Returns the specified HealthAggregationPolicy resource in the given region.
|
33412
|
+
# @param [String] project
|
33413
|
+
# Project ID for this request.
|
33414
|
+
# @param [String] region
|
33415
|
+
# Name of the region scoping this request.
|
33416
|
+
# @param [String] health_aggregation_policy
|
33417
|
+
# Name of the HealthAggregationPolicy resource to return.
|
33418
|
+
# @param [String] fields
|
33419
|
+
# Selector specifying which fields to include in a partial response.
|
33420
|
+
# @param [String] quota_user
|
33421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33423
|
+
# @param [String] user_ip
|
33424
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33425
|
+
# @param [Google::Apis::RequestOptions] options
|
33426
|
+
# Request-specific options
|
33427
|
+
#
|
33428
|
+
# @yield [result, err] Result & error if block supplied
|
33429
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicy] parsed result object
|
33430
|
+
# @yieldparam err [StandardError] error object if request failed
|
33431
|
+
#
|
33432
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicy]
|
33433
|
+
#
|
33434
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33435
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33436
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33437
|
+
def get_region_health_aggregation_policy(project, region, health_aggregation_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33438
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33439
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33440
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicy
|
33441
|
+
command.params['project'] = project unless project.nil?
|
33442
|
+
command.params['region'] = region unless region.nil?
|
33443
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
33444
|
+
command.query['fields'] = fields unless fields.nil?
|
33445
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33446
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33447
|
+
execute_or_queue_command(command, &block)
|
33448
|
+
end
|
33449
|
+
|
33450
|
+
# Create a HealthAggregationPolicy in the specified project in the given region
|
33451
|
+
# using the parameters that are included in the request.
|
33452
|
+
# @param [String] project
|
33453
|
+
# Project ID for this request.
|
33454
|
+
# @param [String] region
|
33455
|
+
# Name of the region scoping this request.
|
33456
|
+
# @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
|
33457
|
+
# @param [String] request_id
|
33458
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33459
|
+
# that if you must retry your request, the server will know to ignore the
|
33460
|
+
# request if it has already been completed. For example, consider a situation
|
33461
|
+
# where you make an initial request and the request times out. If you make the
|
33462
|
+
# request again with the same request ID, the server can check if original
|
33463
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33464
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33465
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33466
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33467
|
+
# @param [String] fields
|
33468
|
+
# Selector specifying which fields to include in a partial response.
|
33469
|
+
# @param [String] quota_user
|
33470
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33471
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33472
|
+
# @param [String] user_ip
|
33473
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33474
|
+
# @param [Google::Apis::RequestOptions] options
|
33475
|
+
# Request-specific options
|
33476
|
+
#
|
33477
|
+
# @yield [result, err] Result & error if block supplied
|
33478
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33479
|
+
# @yieldparam err [StandardError] error object if request failed
|
33480
|
+
#
|
33481
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33482
|
+
#
|
33483
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33484
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33485
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33486
|
+
def insert_region_health_aggregation_policy(project, region, health_aggregation_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33487
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
|
33488
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33489
|
+
command.request_object = health_aggregation_policy_object
|
33490
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33491
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33492
|
+
command.params['project'] = project unless project.nil?
|
33493
|
+
command.params['region'] = region unless region.nil?
|
33494
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33495
|
+
command.query['fields'] = fields unless fields.nil?
|
33496
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33497
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33498
|
+
execute_or_queue_command(command, &block)
|
33499
|
+
end
|
33500
|
+
|
33501
|
+
# Lists the HealthAggregationPolicies for a project in the given region.
|
33502
|
+
# @param [String] project
|
33503
|
+
# Project ID for this request.
|
33504
|
+
# @param [String] region
|
33505
|
+
# Name of the region scoping this request.
|
33506
|
+
# @param [String] filter
|
33507
|
+
# A filter expression that filters resources listed in the response. Most
|
33508
|
+
# Compute resources support two types of filter expressions: expressions that
|
33509
|
+
# support regular expressions and expressions that follow API improvement
|
33510
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
33511
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
33512
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
33513
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
33514
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
33515
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
33516
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
33517
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
33518
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
33519
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
33520
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
33521
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
33522
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
33523
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
33524
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
33525
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
33526
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
33527
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
33528
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
33529
|
+
# un-parenthesized expression with or without quotes or against multiple
|
33530
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
33531
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
33532
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
33533
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
33534
|
+
# literal value must match the entire field. For example, to filter for
|
33535
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
33536
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
33537
|
+
# expressions.
|
33538
|
+
# @param [Fixnum] max_results
|
33539
|
+
# The maximum number of results per page that should be returned. If the number
|
33540
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33541
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33542
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33543
|
+
# @param [String] order_by
|
33544
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33545
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
33546
|
+
# descending order based on the creation timestamp using `orderBy="
|
33547
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33548
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
33549
|
+
# resources like operations so that the newest operation is returned first.
|
33550
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33551
|
+
# @param [String] page_token
|
33552
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33553
|
+
# by a previous list request to get the next page of results.
|
33554
|
+
# @param [Boolean] return_partial_success
|
33555
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33556
|
+
# failure. The default value is false. For example, when partial success
|
33557
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
33558
|
+
# resources in the zone or no resources, with an error code.
|
33559
|
+
# @param [String] fields
|
33560
|
+
# Selector specifying which fields to include in a partial response.
|
33561
|
+
# @param [String] quota_user
|
33562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33564
|
+
# @param [String] user_ip
|
33565
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33566
|
+
# @param [Google::Apis::RequestOptions] options
|
33567
|
+
# Request-specific options
|
33568
|
+
#
|
33569
|
+
# @yield [result, err] Result & error if block supplied
|
33570
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyList] parsed result object
|
33571
|
+
# @yieldparam err [StandardError] error object if request failed
|
33572
|
+
#
|
33573
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyList]
|
33574
|
+
#
|
33575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33578
|
+
def list_region_health_aggregation_policies(project, region, 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)
|
33579
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
|
33580
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyList::Representation
|
33581
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyList
|
33582
|
+
command.params['project'] = project unless project.nil?
|
33583
|
+
command.params['region'] = region unless region.nil?
|
33584
|
+
command.query['filter'] = filter unless filter.nil?
|
33585
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33586
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33587
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33588
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33589
|
+
command.query['fields'] = fields unless fields.nil?
|
33590
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33591
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33592
|
+
execute_or_queue_command(command, &block)
|
33593
|
+
end
|
33594
|
+
|
33595
|
+
# Updates the specified regional HealthAggregationPolicy resource with the data
|
33596
|
+
# included in the request. This method supports PATCH semantics and uses the
|
33597
|
+
# JSON merge patch format and processing rules.
|
33598
|
+
# @param [String] project
|
33599
|
+
# Project ID for this request.
|
33600
|
+
# @param [String] region
|
33601
|
+
# Name of the region scoping this request.
|
33602
|
+
# @param [String] health_aggregation_policy
|
33603
|
+
# Name of the HealthAggregationPolicy to update. The name must be 1-63
|
33604
|
+
# characters long, and comply with RFC1035.
|
33605
|
+
# @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
|
33606
|
+
# @param [String] request_id
|
33607
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33608
|
+
# that if you must retry your request, the server will know to ignore the
|
33609
|
+
# request if it has already been completed. For example, consider a situation
|
33610
|
+
# where you make an initial request and the request times out. If you make the
|
33611
|
+
# request again with the same request ID, the server can check if original
|
33612
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33613
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33614
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33615
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33616
|
+
# @param [String] fields
|
33617
|
+
# Selector specifying which fields to include in a partial response.
|
33618
|
+
# @param [String] quota_user
|
33619
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33620
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33621
|
+
# @param [String] user_ip
|
33622
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33623
|
+
# @param [Google::Apis::RequestOptions] options
|
33624
|
+
# Request-specific options
|
33625
|
+
#
|
33626
|
+
# @yield [result, err] Result & error if block supplied
|
33627
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33628
|
+
# @yieldparam err [StandardError] error object if request failed
|
33629
|
+
#
|
33630
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33631
|
+
#
|
33632
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33633
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33634
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33635
|
+
def patch_region_health_aggregation_policy(project, region, health_aggregation_policy, health_aggregation_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33636
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33637
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33638
|
+
command.request_object = health_aggregation_policy_object
|
33639
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33640
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33641
|
+
command.params['project'] = project unless project.nil?
|
33642
|
+
command.params['region'] = region unless region.nil?
|
33643
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
33644
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33645
|
+
command.query['fields'] = fields unless fields.nil?
|
33646
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33647
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33648
|
+
execute_or_queue_command(command, &block)
|
33649
|
+
end
|
33650
|
+
|
33651
|
+
# Returns permissions that a caller has on the specified resource.
|
33652
|
+
# @param [String] project
|
33653
|
+
# Project ID for this request.
|
33654
|
+
# @param [String] region
|
33655
|
+
# The name of the region for this request.
|
33656
|
+
# @param [String] resource
|
33657
|
+
# Name or id of the resource for this request.
|
33658
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
33659
|
+
# @param [String] fields
|
33660
|
+
# Selector specifying which fields to include in a partial response.
|
33661
|
+
# @param [String] quota_user
|
33662
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33663
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33664
|
+
# @param [String] user_ip
|
33665
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33666
|
+
# @param [Google::Apis::RequestOptions] options
|
33667
|
+
# Request-specific options
|
33668
|
+
#
|
33669
|
+
# @yield [result, err] Result & error if block supplied
|
33670
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
33671
|
+
# @yieldparam err [StandardError] error object if request failed
|
33672
|
+
#
|
33673
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
33674
|
+
#
|
33675
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33676
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33677
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33678
|
+
def test_region_health_aggregation_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33679
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions', options)
|
33680
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
33681
|
+
command.request_object = test_permissions_request_object
|
33682
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
33683
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
33684
|
+
command.params['project'] = project unless project.nil?
|
33685
|
+
command.params['region'] = region unless region.nil?
|
33686
|
+
command.params['resource'] = resource unless resource.nil?
|
33687
|
+
command.query['fields'] = fields unless fields.nil?
|
33688
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33689
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33690
|
+
execute_or_queue_command(command, &block)
|
33691
|
+
end
|
33692
|
+
|
32729
33693
|
# Retrieves the list of all HealthCheckService resources, regional and global,
|
32730
33694
|
# available to the specified project. To prevent failure, Google recommends that
|
32731
33695
|
# you set the `returnPartialSuccess` parameter to `true`.
|
@@ -33535,15 +34499,410 @@ module Google
|
|
33535
34499
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33536
34500
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33537
34501
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33538
|
-
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33539
|
-
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
33540
|
-
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
33541
|
-
command.request_object = health_check_object
|
34502
|
+
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34503
|
+
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
34504
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
34505
|
+
command.request_object = health_check_object
|
34506
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34507
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34508
|
+
command.params['project'] = project unless project.nil?
|
34509
|
+
command.params['region'] = region unless region.nil?
|
34510
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
34511
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34512
|
+
command.query['fields'] = fields unless fields.nil?
|
34513
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34514
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34515
|
+
execute_or_queue_command(command, &block)
|
34516
|
+
end
|
34517
|
+
|
34518
|
+
# Retrieves the list of all HealthSource resources (all regional) available to
|
34519
|
+
# the specified project. To prevent failure, Google recommends that you set the `
|
34520
|
+
# returnPartialSuccess` parameter to `true`.
|
34521
|
+
# @param [String] project
|
34522
|
+
# Name of the project scoping this request.
|
34523
|
+
# @param [String] filter
|
34524
|
+
# A filter expression that filters resources listed in the response. Most
|
34525
|
+
# Compute resources support two types of filter expressions: expressions that
|
34526
|
+
# support regular expressions and expressions that follow API improvement
|
34527
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34528
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
34529
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
34530
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34531
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34532
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
34533
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34534
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
34535
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34536
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
34537
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
34538
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
34539
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
34540
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34541
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34542
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34543
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34544
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34545
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34546
|
+
# un-parenthesized expression with or without quotes or against multiple
|
34547
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34548
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34549
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34550
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
34551
|
+
# literal value must match the entire field. For example, to filter for
|
34552
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
34553
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
34554
|
+
# expressions.
|
34555
|
+
# @param [Boolean] include_all_scopes
|
34556
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
34557
|
+
# global) should be included in the response. For new resource types added after
|
34558
|
+
# this field, the flag has no effect as new resource types will always include
|
34559
|
+
# every visible scope for each scope type in response. For resource types which
|
34560
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
34561
|
+
# types where the resource type is expected to be found will be included.
|
34562
|
+
# @param [Fixnum] max_results
|
34563
|
+
# The maximum number of results per page that should be returned. If the number
|
34564
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34565
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34566
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34567
|
+
# @param [String] order_by
|
34568
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34569
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
34570
|
+
# descending order based on the creation timestamp using `orderBy="
|
34571
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34572
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
34573
|
+
# resources like operations so that the newest operation is returned first.
|
34574
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34575
|
+
# @param [String] page_token
|
34576
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34577
|
+
# by a previous list request to get the next page of results.
|
34578
|
+
# @param [Boolean] return_partial_success
|
34579
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34580
|
+
# failure. The default value is false. For example, when partial success
|
34581
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34582
|
+
# resources in the zone or no resources, with an error code.
|
34583
|
+
# @param [Fixnum] service_project_number
|
34584
|
+
# The Shared VPC service project id or service project number for which
|
34585
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
34586
|
+
# @param [String] fields
|
34587
|
+
# Selector specifying which fields to include in a partial response.
|
34588
|
+
# @param [String] quota_user
|
34589
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34590
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34591
|
+
# @param [String] user_ip
|
34592
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34593
|
+
# @param [Google::Apis::RequestOptions] options
|
34594
|
+
# Request-specific options
|
34595
|
+
#
|
34596
|
+
# @yield [result, err] Result & error if block supplied
|
34597
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceAggregatedList] parsed result object
|
34598
|
+
# @yieldparam err [StandardError] error object if request failed
|
34599
|
+
#
|
34600
|
+
# @return [Google::Apis::ComputeAlpha::HealthSourceAggregatedList]
|
34601
|
+
#
|
34602
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34603
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34604
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34605
|
+
def aggregated_region_health_source_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)
|
34606
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/healthSources', options)
|
34607
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSourceAggregatedList::Representation
|
34608
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSourceAggregatedList
|
34609
|
+
command.params['project'] = project unless project.nil?
|
34610
|
+
command.query['filter'] = filter unless filter.nil?
|
34611
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
34612
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34613
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34614
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34615
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34616
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
34617
|
+
command.query['fields'] = fields unless fields.nil?
|
34618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34619
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34620
|
+
execute_or_queue_command(command, &block)
|
34621
|
+
end
|
34622
|
+
|
34623
|
+
# Deletes the specified HealthSource in the given region
|
34624
|
+
# @param [String] project
|
34625
|
+
# Project ID for this request.
|
34626
|
+
# @param [String] region
|
34627
|
+
# Name of the region scoping this request.
|
34628
|
+
# @param [String] health_source
|
34629
|
+
# Name of the HealthSource resource to delete.
|
34630
|
+
# @param [String] request_id
|
34631
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34632
|
+
# that if you must retry your request, the server will know to ignore the
|
34633
|
+
# request if it has already been completed. For example, consider a situation
|
34634
|
+
# where you make an initial request and the request times out. If you make the
|
34635
|
+
# request again with the same request ID, the server can check if original
|
34636
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34637
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34638
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34639
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34640
|
+
# @param [String] fields
|
34641
|
+
# Selector specifying which fields to include in a partial response.
|
34642
|
+
# @param [String] quota_user
|
34643
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34644
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34645
|
+
# @param [String] user_ip
|
34646
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34647
|
+
# @param [Google::Apis::RequestOptions] options
|
34648
|
+
# Request-specific options
|
34649
|
+
#
|
34650
|
+
# @yield [result, err] Result & error if block supplied
|
34651
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34652
|
+
# @yieldparam err [StandardError] error object if request failed
|
34653
|
+
#
|
34654
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34655
|
+
#
|
34656
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34657
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34658
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34659
|
+
def delete_region_health_source(project, region, health_source, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34660
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34661
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34662
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34663
|
+
command.params['project'] = project unless project.nil?
|
34664
|
+
command.params['region'] = region unless region.nil?
|
34665
|
+
command.params['healthSource'] = health_source unless health_source.nil?
|
34666
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34667
|
+
command.query['fields'] = fields unless fields.nil?
|
34668
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34669
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34670
|
+
execute_or_queue_command(command, &block)
|
34671
|
+
end
|
34672
|
+
|
34673
|
+
# Returns the specified HealthSource resource in the given region.
|
34674
|
+
# @param [String] project
|
34675
|
+
# Project ID for this request.
|
34676
|
+
# @param [String] region
|
34677
|
+
# Name of the region scoping this request.
|
34678
|
+
# @param [String] health_source
|
34679
|
+
# Name of the HealthSource resource to return.
|
34680
|
+
# @param [String] fields
|
34681
|
+
# Selector specifying which fields to include in a partial response.
|
34682
|
+
# @param [String] quota_user
|
34683
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34684
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34685
|
+
# @param [String] user_ip
|
34686
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34687
|
+
# @param [Google::Apis::RequestOptions] options
|
34688
|
+
# Request-specific options
|
34689
|
+
#
|
34690
|
+
# @yield [result, err] Result & error if block supplied
|
34691
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthSource] parsed result object
|
34692
|
+
# @yieldparam err [StandardError] error object if request failed
|
34693
|
+
#
|
34694
|
+
# @return [Google::Apis::ComputeAlpha::HealthSource]
|
34695
|
+
#
|
34696
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34697
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34698
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34699
|
+
def get_region_health_source(project, region, health_source, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34700
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34701
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34702
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSource
|
34703
|
+
command.params['project'] = project unless project.nil?
|
34704
|
+
command.params['region'] = region unless region.nil?
|
34705
|
+
command.params['healthSource'] = health_source unless health_source.nil?
|
34706
|
+
command.query['fields'] = fields unless fields.nil?
|
34707
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34708
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34709
|
+
execute_or_queue_command(command, &block)
|
34710
|
+
end
|
34711
|
+
|
34712
|
+
# Create a HealthSource in the specified project in the given region using the
|
34713
|
+
# parameters that are included in the request.
|
34714
|
+
# @param [String] project
|
34715
|
+
# Project ID for this request.
|
34716
|
+
# @param [String] region
|
34717
|
+
# Name of the region scoping this request.
|
34718
|
+
# @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
|
34719
|
+
# @param [String] request_id
|
34720
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34721
|
+
# that if you must retry your request, the server will know to ignore the
|
34722
|
+
# request if it has already been completed. For example, consider a situation
|
34723
|
+
# where you make an initial request and the request times out. If you make the
|
34724
|
+
# request again with the same request ID, the server can check if original
|
34725
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34726
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34727
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34728
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34729
|
+
# @param [String] fields
|
34730
|
+
# Selector specifying which fields to include in a partial response.
|
34731
|
+
# @param [String] quota_user
|
34732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34734
|
+
# @param [String] user_ip
|
34735
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34736
|
+
# @param [Google::Apis::RequestOptions] options
|
34737
|
+
# Request-specific options
|
34738
|
+
#
|
34739
|
+
# @yield [result, err] Result & error if block supplied
|
34740
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34741
|
+
# @yieldparam err [StandardError] error object if request failed
|
34742
|
+
#
|
34743
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34744
|
+
#
|
34745
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34746
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34747
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34748
|
+
def insert_region_health_source(project, region, health_source_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34749
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources', options)
|
34750
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34751
|
+
command.request_object = health_source_object
|
34752
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34753
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34754
|
+
command.params['project'] = project unless project.nil?
|
34755
|
+
command.params['region'] = region unless region.nil?
|
34756
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34757
|
+
command.query['fields'] = fields unless fields.nil?
|
34758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34759
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34760
|
+
execute_or_queue_command(command, &block)
|
34761
|
+
end
|
34762
|
+
|
34763
|
+
# Lists the HealthSources for a project in the given region.
|
34764
|
+
# @param [String] project
|
34765
|
+
# Project ID for this request.
|
34766
|
+
# @param [String] region
|
34767
|
+
# Name of the region scoping this request.
|
34768
|
+
# @param [String] filter
|
34769
|
+
# A filter expression that filters resources listed in the response. Most
|
34770
|
+
# Compute resources support two types of filter expressions: expressions that
|
34771
|
+
# support regular expressions and expressions that follow API improvement
|
34772
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34773
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
34774
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
34775
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34776
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34777
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
34778
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34779
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
34780
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34781
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
34782
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
34783
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
34784
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
34785
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34786
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34787
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34788
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34789
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34790
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34791
|
+
# un-parenthesized expression with or without quotes or against multiple
|
34792
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34793
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34794
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34795
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
34796
|
+
# literal value must match the entire field. For example, to filter for
|
34797
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
34798
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
34799
|
+
# expressions.
|
34800
|
+
# @param [Fixnum] max_results
|
34801
|
+
# The maximum number of results per page that should be returned. If the number
|
34802
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34803
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34804
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34805
|
+
# @param [String] order_by
|
34806
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34807
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
34808
|
+
# descending order based on the creation timestamp using `orderBy="
|
34809
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34810
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
34811
|
+
# resources like operations so that the newest operation is returned first.
|
34812
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34813
|
+
# @param [String] page_token
|
34814
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34815
|
+
# by a previous list request to get the next page of results.
|
34816
|
+
# @param [Boolean] return_partial_success
|
34817
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34818
|
+
# failure. The default value is false. For example, when partial success
|
34819
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34820
|
+
# resources in the zone or no resources, with an error code.
|
34821
|
+
# @param [String] fields
|
34822
|
+
# Selector specifying which fields to include in a partial response.
|
34823
|
+
# @param [String] quota_user
|
34824
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34825
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34826
|
+
# @param [String] user_ip
|
34827
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34828
|
+
# @param [Google::Apis::RequestOptions] options
|
34829
|
+
# Request-specific options
|
34830
|
+
#
|
34831
|
+
# @yield [result, err] Result & error if block supplied
|
34832
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceList] parsed result object
|
34833
|
+
# @yieldparam err [StandardError] error object if request failed
|
34834
|
+
#
|
34835
|
+
# @return [Google::Apis::ComputeAlpha::HealthSourceList]
|
34836
|
+
#
|
34837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34840
|
+
def list_region_health_sources(project, region, 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)
|
34841
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources', options)
|
34842
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSourceList::Representation
|
34843
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSourceList
|
34844
|
+
command.params['project'] = project unless project.nil?
|
34845
|
+
command.params['region'] = region unless region.nil?
|
34846
|
+
command.query['filter'] = filter unless filter.nil?
|
34847
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34848
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34849
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34850
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34851
|
+
command.query['fields'] = fields unless fields.nil?
|
34852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34853
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34854
|
+
execute_or_queue_command(command, &block)
|
34855
|
+
end
|
34856
|
+
|
34857
|
+
# Updates the specified regional HealthSource resource with the data included in
|
34858
|
+
# the request. This method supports PATCH semantics and uses the JSON merge
|
34859
|
+
# patch format and processing rules.
|
34860
|
+
# @param [String] project
|
34861
|
+
# Project ID for this request.
|
34862
|
+
# @param [String] region
|
34863
|
+
# Name of the region scoping this request.
|
34864
|
+
# @param [String] health_source
|
34865
|
+
# Name of the HealthSource to update. The name must be 1-63 characters long, and
|
34866
|
+
# comply with RFC1035.
|
34867
|
+
# @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
|
34868
|
+
# @param [String] request_id
|
34869
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34870
|
+
# that if you must retry your request, the server will know to ignore the
|
34871
|
+
# request if it has already been completed. For example, consider a situation
|
34872
|
+
# where you make an initial request and the request times out. If you make the
|
34873
|
+
# request again with the same request ID, the server can check if original
|
34874
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34875
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34876
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34877
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34878
|
+
# @param [String] fields
|
34879
|
+
# Selector specifying which fields to include in a partial response.
|
34880
|
+
# @param [String] quota_user
|
34881
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34882
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34883
|
+
# @param [String] user_ip
|
34884
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34885
|
+
# @param [Google::Apis::RequestOptions] options
|
34886
|
+
# Request-specific options
|
34887
|
+
#
|
34888
|
+
# @yield [result, err] Result & error if block supplied
|
34889
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34890
|
+
# @yieldparam err [StandardError] error object if request failed
|
34891
|
+
#
|
34892
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34893
|
+
#
|
34894
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34895
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34896
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34897
|
+
def patch_region_health_source(project, region, health_source, health_source_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34898
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34899
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34900
|
+
command.request_object = health_source_object
|
33542
34901
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33543
34902
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33544
34903
|
command.params['project'] = project unless project.nil?
|
33545
34904
|
command.params['region'] = region unless region.nil?
|
33546
|
-
command.params['
|
34905
|
+
command.params['healthSource'] = health_source unless health_source.nil?
|
33547
34906
|
command.query['requestId'] = request_id unless request_id.nil?
|
33548
34907
|
command.query['fields'] = fields unless fields.nil?
|
33549
34908
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -33551,6 +34910,48 @@ module Google
|
|
33551
34910
|
execute_or_queue_command(command, &block)
|
33552
34911
|
end
|
33553
34912
|
|
34913
|
+
# Returns permissions that a caller has on the specified resource.
|
34914
|
+
# @param [String] project
|
34915
|
+
# Project ID for this request.
|
34916
|
+
# @param [String] region
|
34917
|
+
# The name of the region for this request.
|
34918
|
+
# @param [String] resource
|
34919
|
+
# Name or id of the resource for this request.
|
34920
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
34921
|
+
# @param [String] fields
|
34922
|
+
# Selector specifying which fields to include in a partial response.
|
34923
|
+
# @param [String] quota_user
|
34924
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34925
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34926
|
+
# @param [String] user_ip
|
34927
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34928
|
+
# @param [Google::Apis::RequestOptions] options
|
34929
|
+
# Request-specific options
|
34930
|
+
#
|
34931
|
+
# @yield [result, err] Result & error if block supplied
|
34932
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
34933
|
+
# @yieldparam err [StandardError] error object if request failed
|
34934
|
+
#
|
34935
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
34936
|
+
#
|
34937
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34938
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34939
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34940
|
+
def test_region_health_source_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34941
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions', options)
|
34942
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
34943
|
+
command.request_object = test_permissions_request_object
|
34944
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
34945
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
34946
|
+
command.params['project'] = project unless project.nil?
|
34947
|
+
command.params['region'] = region unless region.nil?
|
34948
|
+
command.params['resource'] = resource unless resource.nil?
|
34949
|
+
command.query['fields'] = fields unless fields.nil?
|
34950
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34951
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34952
|
+
execute_or_queue_command(command, &block)
|
34953
|
+
end
|
34954
|
+
|
33554
34955
|
# Cancels the specified resize request. Cancelled resize request no longer waits
|
33555
34956
|
# for the resources to be provisioned. Cancel is only possible for requests that
|
33556
34957
|
# are in accepted state.
|
@@ -36976,6 +38377,146 @@ module Google
|
|
36976
38377
|
execute_or_queue_command(command, &block)
|
36977
38378
|
end
|
36978
38379
|
|
38380
|
+
# Retrieves information about the specified multi-MIG member.
|
38381
|
+
# @param [String] project
|
38382
|
+
# Project ID for this request.
|
38383
|
+
# @param [String] region
|
38384
|
+
# Name of the region for this request. Region name should conform to RFC1035.
|
38385
|
+
# @param [String] multi_mig
|
38386
|
+
# The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID.
|
38387
|
+
# @param [String] multi_mig_member
|
38388
|
+
# The name of the multi-MIG member. Name should conform to RFC1035 or be a
|
38389
|
+
# resource ID.
|
38390
|
+
# @param [String] fields
|
38391
|
+
# Selector specifying which fields to include in a partial response.
|
38392
|
+
# @param [String] quota_user
|
38393
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38394
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38395
|
+
# @param [String] user_ip
|
38396
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38397
|
+
# @param [Google::Apis::RequestOptions] options
|
38398
|
+
# Request-specific options
|
38399
|
+
#
|
38400
|
+
# @yield [result, err] Result & error if block supplied
|
38401
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MultiMigMember] parsed result object
|
38402
|
+
# @yieldparam err [StandardError] error object if request failed
|
38403
|
+
#
|
38404
|
+
# @return [Google::Apis::ComputeAlpha::MultiMigMember]
|
38405
|
+
#
|
38406
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38407
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38408
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38409
|
+
def get_region_multi_mig_member(project, region, multi_mig, multi_mig_member, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38410
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers/{multiMigMember}', options)
|
38411
|
+
command.response_representation = Google::Apis::ComputeAlpha::MultiMigMember::Representation
|
38412
|
+
command.response_class = Google::Apis::ComputeAlpha::MultiMigMember
|
38413
|
+
command.params['project'] = project unless project.nil?
|
38414
|
+
command.params['region'] = region unless region.nil?
|
38415
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
38416
|
+
command.params['multiMigMember'] = multi_mig_member unless multi_mig_member.nil?
|
38417
|
+
command.query['fields'] = fields unless fields.nil?
|
38418
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38419
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38420
|
+
execute_or_queue_command(command, &block)
|
38421
|
+
end
|
38422
|
+
|
38423
|
+
# Retrieves a list of members of a specific multi-MIG.
|
38424
|
+
# @param [String] project
|
38425
|
+
# Project ID for this request.
|
38426
|
+
# @param [String] region
|
38427
|
+
# Name of the region for this request. Region name should conform to RFC1035.
|
38428
|
+
# @param [String] multi_mig
|
38429
|
+
# The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID.
|
38430
|
+
# @param [String] filter
|
38431
|
+
# A filter expression that filters resources listed in the response. Most
|
38432
|
+
# Compute resources support two types of filter expressions: expressions that
|
38433
|
+
# support regular expressions and expressions that follow API improvement
|
38434
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38435
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38436
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38437
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38438
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38439
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38440
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38441
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38442
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38443
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38444
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38445
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38446
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38447
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38448
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38449
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38450
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38451
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38452
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38453
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38454
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38455
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38456
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38457
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38458
|
+
# literal value must match the entire field. For example, to filter for
|
38459
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38460
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38461
|
+
# expressions.
|
38462
|
+
# @param [Fixnum] max_results
|
38463
|
+
# The maximum number of results per page that should be returned. If the number
|
38464
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38465
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38466
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38467
|
+
# @param [String] order_by
|
38468
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38469
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38470
|
+
# descending order based on the creation timestamp using `orderBy="
|
38471
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38472
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38473
|
+
# resources like operations so that the newest operation is returned first.
|
38474
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38475
|
+
# @param [String] page_token
|
38476
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38477
|
+
# by a previous list request to get the next page of results.
|
38478
|
+
# @param [Boolean] return_partial_success
|
38479
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38480
|
+
# failure. The default value is false. For example, when partial success
|
38481
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38482
|
+
# resources in the zone or no resources, with an error code.
|
38483
|
+
# @param [String] fields
|
38484
|
+
# Selector specifying which fields to include in a partial response.
|
38485
|
+
# @param [String] quota_user
|
38486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38488
|
+
# @param [String] user_ip
|
38489
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38490
|
+
# @param [Google::Apis::RequestOptions] options
|
38491
|
+
# Request-specific options
|
38492
|
+
#
|
38493
|
+
# @yield [result, err] Result & error if block supplied
|
38494
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MultiMigMemberList] parsed result object
|
38495
|
+
# @yieldparam err [StandardError] error object if request failed
|
38496
|
+
#
|
38497
|
+
# @return [Google::Apis::ComputeAlpha::MultiMigMemberList]
|
38498
|
+
#
|
38499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38502
|
+
def list_region_multi_mig_members(project, region, multi_mig, 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)
|
38503
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers', options)
|
38504
|
+
command.response_representation = Google::Apis::ComputeAlpha::MultiMigMemberList::Representation
|
38505
|
+
command.response_class = Google::Apis::ComputeAlpha::MultiMigMemberList
|
38506
|
+
command.params['project'] = project unless project.nil?
|
38507
|
+
command.params['region'] = region unless region.nil?
|
38508
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
38509
|
+
command.query['filter'] = filter unless filter.nil?
|
38510
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38511
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38512
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38513
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38514
|
+
command.query['fields'] = fields unless fields.nil?
|
38515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38516
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38517
|
+
execute_or_queue_command(command, &block)
|
38518
|
+
end
|
38519
|
+
|
36979
38520
|
# Deletes a multi-MIG in the specified project.
|
36980
38521
|
# @param [String] project
|
36981
38522
|
# Project ID for this request.
|
@@ -42673,6 +44214,133 @@ module Google
|
|
42673
44214
|
execute_or_queue_command(command, &block)
|
42674
44215
|
end
|
42675
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
|
+
|
42676
44344
|
# Retrieves information about the specified reservation block.
|
42677
44345
|
# @param [String] project
|
42678
44346
|
# Project ID for this request.
|
@@ -46976,6 +48644,348 @@ module Google
|
|
46976
48644
|
execute_or_queue_command(command, &block)
|
46977
48645
|
end
|
46978
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
|
+
|
46979
48989
|
# Get snapshot settings.
|
46980
48990
|
# @param [String] project
|
46981
48991
|
# Project ID for this request.
|