google-apis-compute_alpha 0.107.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/google/apis/compute_alpha/classes.rb +4130 -827
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +1305 -23
- data/lib/google/apis/compute_alpha/service.rb +1944 -223
- metadata +4 -7
@@ -780,6 +780,47 @@ module Google
|
|
780
780
|
execute_or_queue_command(command, &block)
|
781
781
|
end
|
782
782
|
|
783
|
+
# Advise how, where and when to create the requested amount of instances with
|
784
|
+
# specified accelerators, within the specified time and location limits. The
|
785
|
+
# method recommends creating future reservations for the requested resources.
|
786
|
+
# @param [String] project
|
787
|
+
# Project ID for this request.
|
788
|
+
# @param [String] region
|
789
|
+
# Name of the region for this request.
|
790
|
+
# @param [Google::Apis::ComputeAlpha::CalendarModeAdviceRequest] calendar_mode_advice_request_object
|
791
|
+
# @param [String] fields
|
792
|
+
# Selector specifying which fields to include in a partial response.
|
793
|
+
# @param [String] quota_user
|
794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
796
|
+
# @param [String] user_ip
|
797
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
798
|
+
# @param [Google::Apis::RequestOptions] options
|
799
|
+
# Request-specific options
|
800
|
+
#
|
801
|
+
# @yield [result, err] Result & error if block supplied
|
802
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CalendarModeAdviceResponse] parsed result object
|
803
|
+
# @yieldparam err [StandardError] error object if request failed
|
804
|
+
#
|
805
|
+
# @return [Google::Apis::ComputeAlpha::CalendarModeAdviceResponse]
|
806
|
+
#
|
807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
810
|
+
def calendar_mode_advice(project, region, calendar_mode_advice_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
811
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/advice/calendarMode', options)
|
812
|
+
command.request_representation = Google::Apis::ComputeAlpha::CalendarModeAdviceRequest::Representation
|
813
|
+
command.request_object = calendar_mode_advice_request_object
|
814
|
+
command.response_representation = Google::Apis::ComputeAlpha::CalendarModeAdviceResponse::Representation
|
815
|
+
command.response_class = Google::Apis::ComputeAlpha::CalendarModeAdviceResponse
|
816
|
+
command.params['project'] = project unless project.nil?
|
817
|
+
command.params['region'] = region unless region.nil?
|
818
|
+
command.query['fields'] = fields unless fields.nil?
|
819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
821
|
+
execute_or_queue_command(command, &block)
|
822
|
+
end
|
823
|
+
|
783
824
|
# Retrieves an aggregated list of autoscalers. To prevent failure, Google
|
784
825
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
785
826
|
# @param [String] project
|
@@ -3702,6 +3743,60 @@ module Google
|
|
3702
3743
|
execute_or_queue_command(command, &block)
|
3703
3744
|
end
|
3704
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
|
+
|
3705
3800
|
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
3706
3801
|
# creation, consider using snapshots.insert instead, as that method supports
|
3707
3802
|
# more features, such as creating snapshots in a project different from the
|
@@ -18323,6 +18418,46 @@ module Google
|
|
18323
18418
|
execute_or_queue_command(command, &block)
|
18324
18419
|
end
|
18325
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
|
+
|
18326
18461
|
# Deletes the specified InterconnectAttachmentGroup in the given scope
|
18327
18462
|
# @param [String] project
|
18328
18463
|
# Project ID for this request.
|
@@ -18447,6 +18582,43 @@ module Google
|
|
18447
18582
|
execute_or_queue_command(command, &block)
|
18448
18583
|
end
|
18449
18584
|
|
18585
|
+
# Returns the InterconnectAttachmentStatuses for the specified
|
18586
|
+
# InterconnectAttachmentGroup resource.
|
18587
|
+
# @param [String] project
|
18588
|
+
# Project ID for this request.
|
18589
|
+
# @param [String] interconnect_attachment_group
|
18590
|
+
# Name of the interconnectAttachmentGroup resource to query.
|
18591
|
+
# @param [String] fields
|
18592
|
+
# Selector specifying which fields to include in a partial response.
|
18593
|
+
# @param [String] quota_user
|
18594
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18595
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18596
|
+
# @param [String] user_ip
|
18597
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18598
|
+
# @param [Google::Apis::RequestOptions] options
|
18599
|
+
# Request-specific options
|
18600
|
+
#
|
18601
|
+
# @yield [result, err] Result & error if block supplied
|
18602
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse] parsed result object
|
18603
|
+
# @yieldparam err [StandardError] error object if request failed
|
18604
|
+
#
|
18605
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse]
|
18606
|
+
#
|
18607
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18608
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18609
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18610
|
+
def get_interconnect_attachment_group_operational_status(project, interconnect_attachment_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18611
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/getOperationalStatus', options)
|
18612
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse::Representation
|
18613
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsGetOperationalStatusResponse
|
18614
|
+
command.params['project'] = project unless project.nil?
|
18615
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18616
|
+
command.query['fields'] = fields unless fields.nil?
|
18617
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18618
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18619
|
+
execute_or_queue_command(command, &block)
|
18620
|
+
end
|
18621
|
+
|
18450
18622
|
# Creates a InterconnectAttachmentGroup in the specified project in the given
|
18451
18623
|
# scope using the parameters that are included in the request.
|
18452
18624
|
# @param [String] project
|
@@ -19301,6 +19473,46 @@ module Google
|
|
19301
19473
|
execute_or_queue_command(command, &block)
|
19302
19474
|
end
|
19303
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
|
+
|
19304
19516
|
# Deletes the specified InterconnectGroup in the given scope
|
19305
19517
|
# @param [String] project
|
19306
19518
|
# Project ID for this request.
|
@@ -19425,6 +19637,42 @@ module Google
|
|
19425
19637
|
execute_or_queue_command(command, &block)
|
19426
19638
|
end
|
19427
19639
|
|
19640
|
+
# Returns the interconnectStatuses for the specified InterconnectGroup.
|
19641
|
+
# @param [String] project
|
19642
|
+
# Project ID for this request.
|
19643
|
+
# @param [String] interconnect_group
|
19644
|
+
# Name of the interconnectGroup resource to query.
|
19645
|
+
# @param [String] fields
|
19646
|
+
# Selector specifying which fields to include in a partial response.
|
19647
|
+
# @param [String] quota_user
|
19648
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19649
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19650
|
+
# @param [String] user_ip
|
19651
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19652
|
+
# @param [Google::Apis::RequestOptions] options
|
19653
|
+
# Request-specific options
|
19654
|
+
#
|
19655
|
+
# @yield [result, err] Result & error if block supplied
|
19656
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse] parsed result object
|
19657
|
+
# @yieldparam err [StandardError] error object if request failed
|
19658
|
+
#
|
19659
|
+
# @return [Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse]
|
19660
|
+
#
|
19661
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19662
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19663
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19664
|
+
def get_interconnect_group_operational_status(project, interconnect_group, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19665
|
+
command = make_simple_command(:get, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/getOperationalStatus', options)
|
19666
|
+
command.response_representation = Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse::Representation
|
19667
|
+
command.response_class = Google::Apis::ComputeAlpha::InterconnectGroupsGetOperationalStatusResponse
|
19668
|
+
command.params['project'] = project unless project.nil?
|
19669
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19670
|
+
command.query['fields'] = fields unless fields.nil?
|
19671
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19672
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19673
|
+
execute_or_queue_command(command, &block)
|
19674
|
+
end
|
19675
|
+
|
19428
19676
|
# Creates a InterconnectGroup in the specified project in the given scope using
|
19429
19677
|
# the parameters that are included in the request.
|
19430
19678
|
# @param [String] project
|
@@ -23312,6 +23560,112 @@ module Google
|
|
23312
23560
|
execute_or_queue_command(command, &block)
|
23313
23561
|
end
|
23314
23562
|
|
23563
|
+
# Retrieves an aggregated list of network firewall policies, listing network
|
23564
|
+
# firewall policies from all applicable scopes (global and regional) and
|
23565
|
+
# grouping the results per scope. To prevent failure, Google recommends that you
|
23566
|
+
# set the `returnPartialSuccess` parameter to `true`.
|
23567
|
+
# @param [String] project
|
23568
|
+
# Project ID for this request.
|
23569
|
+
# @param [String] filter
|
23570
|
+
# A filter expression that filters resources listed in the response. Most
|
23571
|
+
# Compute resources support two types of filter expressions: expressions that
|
23572
|
+
# support regular expressions and expressions that follow API improvement
|
23573
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
23574
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
23575
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
23576
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
23577
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
23578
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
23579
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
23580
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
23581
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
23582
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
23583
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
23584
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
23585
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
23586
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
23587
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
23588
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
23589
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
23590
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
23591
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
23592
|
+
# un-parenthesized expression with or without quotes or against multiple
|
23593
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
23594
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
23595
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
23596
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
23597
|
+
# literal value must match the entire field. For example, to filter for
|
23598
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
23599
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
23600
|
+
# expressions.
|
23601
|
+
# @param [Boolean] include_all_scopes
|
23602
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
23603
|
+
# global) should be included in the response. For new resource types added after
|
23604
|
+
# this field, the flag has no effect as new resource types will always include
|
23605
|
+
# every visible scope for each scope type in response. For resource types which
|
23606
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
23607
|
+
# types where the resource type is expected to be found will be included.
|
23608
|
+
# @param [Fixnum] max_results
|
23609
|
+
# The maximum number of results per page that should be returned. If the number
|
23610
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
23611
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
23612
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
23613
|
+
# @param [String] order_by
|
23614
|
+
# Sorts list results by a certain order. By default, results are returned in
|
23615
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
23616
|
+
# descending order based on the creation timestamp using `orderBy="
|
23617
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
23618
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
23619
|
+
# resources like operations so that the newest operation is returned first.
|
23620
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
23621
|
+
# @param [String] page_token
|
23622
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
23623
|
+
# by a previous list request to get the next page of results.
|
23624
|
+
# @param [Boolean] return_partial_success
|
23625
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
23626
|
+
# failure. The default value is false. For example, when partial success
|
23627
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
23628
|
+
# resources in the zone or no resources, with an error code.
|
23629
|
+
# @param [Fixnum] service_project_number
|
23630
|
+
# The Shared VPC service project id or service project number for which
|
23631
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
23632
|
+
# @param [String] fields
|
23633
|
+
# Selector specifying which fields to include in a partial response.
|
23634
|
+
# @param [String] quota_user
|
23635
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
23636
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
23637
|
+
# @param [String] user_ip
|
23638
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
23639
|
+
# @param [Google::Apis::RequestOptions] options
|
23640
|
+
# Request-specific options
|
23641
|
+
#
|
23642
|
+
# @yield [result, err] Result & error if block supplied
|
23643
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList] parsed result object
|
23644
|
+
# @yieldparam err [StandardError] error object if request failed
|
23645
|
+
#
|
23646
|
+
# @return [Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList]
|
23647
|
+
#
|
23648
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23649
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23650
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23651
|
+
def aggregated_network_firewall_policy_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)
|
23652
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/firewallPolicies', options)
|
23653
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList::Representation
|
23654
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkFirewallPolicyAggregatedList
|
23655
|
+
command.params['project'] = project unless project.nil?
|
23656
|
+
command.query['filter'] = filter unless filter.nil?
|
23657
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
23658
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
23659
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
23660
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
23661
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
23662
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
23663
|
+
command.query['fields'] = fields unless fields.nil?
|
23664
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23665
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23666
|
+
execute_or_queue_command(command, &block)
|
23667
|
+
end
|
23668
|
+
|
23315
23669
|
# Copies rules to the specified firewall policy.
|
23316
23670
|
# @param [String] project
|
23317
23671
|
# Project ID for this request.
|
@@ -26753,7 +27107,9 @@ module Google
|
|
26753
27107
|
execute_or_queue_command(command, &block)
|
26754
27108
|
end
|
26755
27109
|
|
26756
|
-
# Inserts an association for the specified security policy.
|
27110
|
+
# Inserts an association for the specified security policy. Use of this API to
|
27111
|
+
# modify firewall policies is deprecated. Use firewallPolicies.addAssociation
|
27112
|
+
# instead if possible.
|
26757
27113
|
# @param [String] security_policy
|
26758
27114
|
# Name of the security policy to update.
|
26759
27115
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
|
@@ -26852,7 +27208,8 @@ module Google
|
|
26852
27208
|
execute_or_queue_command(command, &block)
|
26853
27209
|
end
|
26854
27210
|
|
26855
|
-
# Copies rules to the specified security policy.
|
27211
|
+
# Copies rules to the specified security policy. Use of this API to modify
|
27212
|
+
# firewall policies is deprecated. Use firewallPolicies.copyRules instead.
|
26856
27213
|
# @param [String] security_policy
|
26857
27214
|
# Name of the security policy to update.
|
26858
27215
|
# @param [String] request_id
|
@@ -26899,7 +27256,8 @@ module Google
|
|
26899
27256
|
execute_or_queue_command(command, &block)
|
26900
27257
|
end
|
26901
27258
|
|
26902
|
-
# Deletes the specified policy.
|
27259
|
+
# Deletes the specified policy. Use of this API to remove firewall policies is
|
27260
|
+
# deprecated. Use firewallPolicies.delete instead.
|
26903
27261
|
# @param [String] security_policy
|
26904
27262
|
# Name of the security policy to delete.
|
26905
27263
|
# @param [String] request_id
|
@@ -26943,7 +27301,9 @@ module Google
|
|
26943
27301
|
execute_or_queue_command(command, &block)
|
26944
27302
|
end
|
26945
27303
|
|
26946
|
-
# List all of the ordered rules present in a single specified policy.
|
27304
|
+
# List all of the ordered rules present in a single specified policy. Use of
|
27305
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.get
|
27306
|
+
# instead.
|
26947
27307
|
# @param [String] security_policy
|
26948
27308
|
# Name of the security policy to get.
|
26949
27309
|
# @param [String] fields
|
@@ -26976,7 +27336,9 @@ module Google
|
|
26976
27336
|
execute_or_queue_command(command, &block)
|
26977
27337
|
end
|
26978
27338
|
|
26979
|
-
# Gets an association with the specified name.
|
27339
|
+
# Gets an association with the specified name. Use of this API to read firewall
|
27340
|
+
# policies is deprecated. Use firewallPolicies.getAssociation instead if
|
27341
|
+
# possible.
|
26980
27342
|
# @param [String] security_policy
|
26981
27343
|
# Name of the security policy to which the queried rule belongs.
|
26982
27344
|
# @param [String] name
|
@@ -27012,7 +27374,8 @@ module Google
|
|
27012
27374
|
execute_or_queue_command(command, &block)
|
27013
27375
|
end
|
27014
27376
|
|
27015
|
-
# Gets a rule at the specified priority.
|
27377
|
+
# Gets a rule at the specified priority. Use of this API to read firewall
|
27378
|
+
# policies is deprecated. Use firewallPolicies.getRule instead.
|
27016
27379
|
# @param [String] security_policy
|
27017
27380
|
# Name of the security policy to which the queried rule belongs.
|
27018
27381
|
# @param [Fixnum] priority
|
@@ -27049,7 +27412,8 @@ module Google
|
|
27049
27412
|
end
|
27050
27413
|
|
27051
27414
|
# Creates a new policy in the specified project using the data included in the
|
27052
|
-
# request.
|
27415
|
+
# request. Use of this API to insert firewall policies is deprecated. Use
|
27416
|
+
# firewallPolicies.insert instead.
|
27053
27417
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
27054
27418
|
# @param [String] parent_id
|
27055
27419
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
@@ -27098,7 +27462,9 @@ module Google
|
|
27098
27462
|
execute_or_queue_command(command, &block)
|
27099
27463
|
end
|
27100
27464
|
|
27101
|
-
# List all the policies that have been configured for the specified project.
|
27465
|
+
# List all the policies that have been configured for the specified project. Use
|
27466
|
+
# of this API to read firewall policies is deprecated. Use firewallPolicies.list
|
27467
|
+
# instead.
|
27102
27468
|
# @param [String] filter
|
27103
27469
|
# A filter expression that filters resources listed in the response. Most
|
27104
27470
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -27189,7 +27555,9 @@ module Google
|
|
27189
27555
|
execute_or_queue_command(command, &block)
|
27190
27556
|
end
|
27191
27557
|
|
27192
|
-
# Lists associations of a specified target, i.e., organization or folder.
|
27558
|
+
# Lists associations of a specified target, i.e., organization or folder. Use of
|
27559
|
+
# this API to read firewall policies is deprecated. Use firewallPolicies.
|
27560
|
+
# listAssociations instead if possible.
|
27193
27561
|
# @param [String] target_resource
|
27194
27562
|
# The target resource to list associations. It is an organization, or a folder.
|
27195
27563
|
# @param [String] fields
|
@@ -27314,7 +27682,8 @@ module Google
|
|
27314
27682
|
execute_or_queue_command(command, &block)
|
27315
27683
|
end
|
27316
27684
|
|
27317
|
-
# Moves the specified security policy.
|
27685
|
+
# Moves the specified security policy. Use of this API to modify firewall
|
27686
|
+
# policies is deprecated. Use firewallPolicies.move instead.
|
27318
27687
|
# @param [String] security_policy
|
27319
27688
|
# Name of the security policy to update.
|
27320
27689
|
# @param [String] parent_id
|
@@ -27361,7 +27730,9 @@ module Google
|
|
27361
27730
|
execute_or_queue_command(command, &block)
|
27362
27731
|
end
|
27363
27732
|
|
27364
|
-
# Patches the specified policy with the data included in the request.
|
27733
|
+
# Patches the specified policy with the data included in the request. Use of
|
27734
|
+
# this API to modify firewall policies is deprecated. Use firewallPolicies.patch
|
27735
|
+
# instead.
|
27365
27736
|
# @param [String] security_policy
|
27366
27737
|
# Name of the security policy to update.
|
27367
27738
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
@@ -27408,7 +27779,8 @@ module Google
|
|
27408
27779
|
execute_or_queue_command(command, &block)
|
27409
27780
|
end
|
27410
27781
|
|
27411
|
-
# Patches a rule at the specified priority.
|
27782
|
+
# Patches a rule at the specified priority. Use of this API to modify firewall
|
27783
|
+
# policies is deprecated. Use firewallPolicies.patchRule instead.
|
27412
27784
|
# @param [String] security_policy
|
27413
27785
|
# Name of the security policy to update.
|
27414
27786
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
@@ -27458,7 +27830,9 @@ module Google
|
|
27458
27830
|
execute_or_queue_command(command, &block)
|
27459
27831
|
end
|
27460
27832
|
|
27461
|
-
# Removes an association for the specified security policy.
|
27833
|
+
# Removes an association for the specified security policy. Use of this API to
|
27834
|
+
# modify firewall policies is deprecated. Use firewallPolicies.removeAssociation
|
27835
|
+
# instead if possible.
|
27462
27836
|
# @param [String] security_policy
|
27463
27837
|
# Name of the security policy to update.
|
27464
27838
|
# @param [String] name
|
@@ -31172,13 +31546,13 @@ module Google
|
|
31172
31546
|
|
31173
31547
|
# Updates the specified commitment with the data included in the request. Update
|
31174
31548
|
# is performed only on selected fields included as part of update-mask. Only the
|
31175
|
-
# following fields can be
|
31549
|
+
# following fields can be updated: auto_renew and plan.
|
31176
31550
|
# @param [String] project
|
31177
31551
|
# Project ID for this request.
|
31178
31552
|
# @param [String] region
|
31179
31553
|
# Name of the region for this request.
|
31180
31554
|
# @param [String] commitment
|
31181
|
-
# Name of the commitment
|
31555
|
+
# Name of the commitment that you want to update.
|
31182
31556
|
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
31183
31557
|
# @param [Array<String>, String] paths
|
31184
31558
|
# @param [String] request_id
|
@@ -31230,13 +31604,14 @@ module Google
|
|
31230
31604
|
execute_or_queue_command(command, &block)
|
31231
31605
|
end
|
31232
31606
|
|
31233
|
-
# Transfers GPUs or
|
31607
|
+
# Transfers GPUs or Local SSD disks between reservations that are attached to
|
31608
|
+
# the same commitment.
|
31234
31609
|
# @param [String] project
|
31235
31610
|
# Project ID for this request.
|
31236
31611
|
# @param [String] region
|
31237
31612
|
# Name of the region for this request.
|
31238
31613
|
# @param [String] commitment
|
31239
|
-
# Name of the commitment for which the
|
31614
|
+
# Name of the commitment for which the reservations are being updated.
|
31240
31615
|
# @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object
|
31241
31616
|
# @param [String] request_id
|
31242
31617
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -31283,139 +31658,11 @@ module Google
|
|
31283
31658
|
execute_or_queue_command(command, &block)
|
31284
31659
|
end
|
31285
31660
|
|
31286
|
-
#
|
31287
|
-
#
|
31288
|
-
#
|
31289
|
-
# @param [String] region
|
31290
|
-
# Name of the region for this request.
|
31291
|
-
# @param [String] fields
|
31292
|
-
# Selector specifying which fields to include in a partial response.
|
31293
|
-
# @param [String] quota_user
|
31294
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31295
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31296
|
-
# @param [String] user_ip
|
31297
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31298
|
-
# @param [Google::Apis::RequestOptions] options
|
31299
|
-
# Request-specific options
|
31300
|
-
#
|
31301
|
-
# @yield [result, err] Result & error if block supplied
|
31302
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
31303
|
-
# @yieldparam err [StandardError] error object if request failed
|
31304
|
-
#
|
31305
|
-
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
31306
|
-
#
|
31307
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31308
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31309
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31310
|
-
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31311
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
31312
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31313
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
31314
|
-
command.params['project'] = project unless project.nil?
|
31315
|
-
command.params['region'] = region unless region.nil?
|
31316
|
-
command.query['fields'] = fields unless fields.nil?
|
31317
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31318
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31319
|
-
execute_or_queue_command(command, &block)
|
31320
|
-
end
|
31321
|
-
|
31322
|
-
# Patch Regional Disk Settings
|
31323
|
-
# @param [String] project
|
31324
|
-
# Project ID for this request.
|
31325
|
-
# @param [String] region
|
31326
|
-
# Name of the region for this request.
|
31327
|
-
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
31328
|
-
# @param [String] request_id
|
31329
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31330
|
-
# that if you must retry your request, the server will know to ignore the
|
31331
|
-
# request if it has already been completed. For example, consider a situation
|
31332
|
-
# where you make an initial request and the request times out. If you make the
|
31333
|
-
# request again with the same request ID, the server can check if original
|
31334
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31335
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31336
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31337
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31338
|
-
# @param [String] update_mask
|
31339
|
-
# update_mask indicates fields to be updated as part of this request.
|
31340
|
-
# @param [String] fields
|
31341
|
-
# Selector specifying which fields to include in a partial response.
|
31342
|
-
# @param [String] quota_user
|
31343
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31344
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31345
|
-
# @param [String] user_ip
|
31346
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31347
|
-
# @param [Google::Apis::RequestOptions] options
|
31348
|
-
# Request-specific options
|
31349
|
-
#
|
31350
|
-
# @yield [result, err] Result & error if block supplied
|
31351
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31352
|
-
# @yieldparam err [StandardError] error object if request failed
|
31353
|
-
#
|
31354
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31355
|
-
#
|
31356
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31357
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31358
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31359
|
-
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)
|
31360
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
31361
|
-
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31362
|
-
command.request_object = disk_settings_object
|
31363
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31364
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31365
|
-
command.params['project'] = project unless project.nil?
|
31366
|
-
command.params['region'] = region unless region.nil?
|
31367
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31368
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
31369
|
-
command.query['fields'] = fields unless fields.nil?
|
31370
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31371
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31372
|
-
execute_or_queue_command(command, &block)
|
31373
|
-
end
|
31374
|
-
|
31375
|
-
# Returns the specified regional disk type.
|
31376
|
-
# @param [String] project
|
31377
|
-
# Project ID for this request.
|
31378
|
-
# @param [String] region
|
31379
|
-
# The name of the region for this request.
|
31380
|
-
# @param [String] disk_type
|
31381
|
-
# Name of the disk type to return.
|
31382
|
-
# @param [String] fields
|
31383
|
-
# Selector specifying which fields to include in a partial response.
|
31384
|
-
# @param [String] quota_user
|
31385
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31386
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31387
|
-
# @param [String] user_ip
|
31388
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31389
|
-
# @param [Google::Apis::RequestOptions] options
|
31390
|
-
# Request-specific options
|
31391
|
-
#
|
31392
|
-
# @yield [result, err] Result & error if block supplied
|
31393
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
31394
|
-
# @yieldparam err [StandardError] error object if request failed
|
31395
|
-
#
|
31396
|
-
# @return [Google::Apis::ComputeAlpha::DiskType]
|
31397
|
-
#
|
31398
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31399
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31400
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31401
|
-
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31402
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options)
|
31403
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
31404
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
31405
|
-
command.params['project'] = project unless project.nil?
|
31406
|
-
command.params['region'] = region unless region.nil?
|
31407
|
-
command.params['diskType'] = disk_type unless disk_type.nil?
|
31408
|
-
command.query['fields'] = fields unless fields.nil?
|
31409
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31410
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31411
|
-
execute_or_queue_command(command, &block)
|
31412
|
-
end
|
31413
|
-
|
31414
|
-
# Retrieves a list of regional disk types available to the specified project.
|
31661
|
+
# Retrieves the list of all CompositeHealthCheck resources (all regional)
|
31662
|
+
# available to the specified project. To prevent failure, Google recommends that
|
31663
|
+
# you set the `returnPartialSuccess` parameter to `true`.
|
31415
31664
|
# @param [String] project
|
31416
|
-
#
|
31417
|
-
# @param [String] region
|
31418
|
-
# The name of the region for this request.
|
31665
|
+
# Name of the project scoping this request.
|
31419
31666
|
# @param [String] filter
|
31420
31667
|
# A filter expression that filters resources listed in the response. Most
|
31421
31668
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -31448,6 +31695,13 @@ module Google
|
|
31448
31695
|
# instances that do not end with name "instance", you would use `name ne .*
|
31449
31696
|
# instance`. You cannot combine constraints on multiple fields using regular
|
31450
31697
|
# expressions.
|
31698
|
+
# @param [Boolean] include_all_scopes
|
31699
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
31700
|
+
# global) should be included in the response. For new resource types added after
|
31701
|
+
# this field, the flag has no effect as new resource types will always include
|
31702
|
+
# every visible scope for each scope type in response. For resource types which
|
31703
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
31704
|
+
# types where the resource type is expected to be found will be included.
|
31451
31705
|
# @param [Fixnum] max_results
|
31452
31706
|
# The maximum number of results per page that should be returned. If the number
|
31453
31707
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
@@ -31469,6 +31723,9 @@ module Google
|
|
31469
31723
|
# failure. The default value is false. For example, when partial success
|
31470
31724
|
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
31471
31725
|
# resources in the zone or no resources, with an error code.
|
31726
|
+
# @param [Fixnum] service_project_number
|
31727
|
+
# The Shared VPC service project id or service project number for which
|
31728
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
31472
31729
|
# @param [String] fields
|
31473
31730
|
# Selector specifying which fields to include in a partial response.
|
31474
31731
|
# @param [String] quota_user
|
@@ -31480,40 +31737,39 @@ module Google
|
|
31480
31737
|
# Request-specific options
|
31481
31738
|
#
|
31482
31739
|
# @yield [result, err] Result & error if block supplied
|
31483
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
31740
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList] parsed result object
|
31484
31741
|
# @yieldparam err [StandardError] error object if request failed
|
31485
31742
|
#
|
31486
|
-
# @return [Google::Apis::ComputeAlpha::
|
31743
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList]
|
31487
31744
|
#
|
31488
31745
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31489
31746
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31490
31747
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31491
|
-
def
|
31492
|
-
command = make_simple_command(:get, 'projects/{project}/
|
31493
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
31494
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
31748
|
+
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)
|
31749
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/compositeHealthChecks', options)
|
31750
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList::Representation
|
31751
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList
|
31495
31752
|
command.params['project'] = project unless project.nil?
|
31496
|
-
command.params['region'] = region unless region.nil?
|
31497
31753
|
command.query['filter'] = filter unless filter.nil?
|
31754
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
31498
31755
|
command.query['maxResults'] = max_results unless max_results.nil?
|
31499
31756
|
command.query['orderBy'] = order_by unless order_by.nil?
|
31500
31757
|
command.query['pageToken'] = page_token unless page_token.nil?
|
31501
31758
|
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31759
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
31502
31760
|
command.query['fields'] = fields unless fields.nil?
|
31503
31761
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31504
31762
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
31505
31763
|
execute_or_queue_command(command, &block)
|
31506
31764
|
end
|
31507
31765
|
|
31508
|
-
#
|
31509
|
-
# policy which will be applied to this disk for scheduling snapshot creation.
|
31766
|
+
# Deletes the specified CompositeHealthCheck in the given region
|
31510
31767
|
# @param [String] project
|
31511
31768
|
# Project ID for this request.
|
31512
31769
|
# @param [String] region
|
31513
|
-
#
|
31514
|
-
# @param [String]
|
31515
|
-
#
|
31516
|
-
# @param [Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object
|
31770
|
+
# Name of the region scoping this request.
|
31771
|
+
# @param [String] composite_health_check
|
31772
|
+
# Name of the CompositeHealthCheck resource to delete.
|
31517
31773
|
# @param [String] request_id
|
31518
31774
|
# An optional request ID to identify requests. Specify a unique request ID so
|
31519
31775
|
# that if you must retry your request, the server will know to ignore the
|
@@ -31543,15 +31799,13 @@ module Google
|
|
31543
31799
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31544
31800
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31545
31801
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31546
|
-
def
|
31547
|
-
command = make_simple_command(:
|
31548
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest::Representation
|
31549
|
-
command.request_object = region_disks_add_resource_policies_request_object
|
31802
|
+
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)
|
31803
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
31550
31804
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31551
31805
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31552
31806
|
command.params['project'] = project unless project.nil?
|
31553
31807
|
command.params['region'] = region unless region.nil?
|
31554
|
-
command.params['
|
31808
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31555
31809
|
command.query['requestId'] = request_id unless request_id.nil?
|
31556
31810
|
command.query['fields'] = fields unless fields.nil?
|
31557
31811
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -31559,22 +31813,13 @@ module Google
|
|
31559
31813
|
execute_or_queue_command(command, &block)
|
31560
31814
|
end
|
31561
31815
|
|
31562
|
-
#
|
31816
|
+
# Returns the specified CompositeHealthCheck resource in the given region.
|
31563
31817
|
# @param [String] project
|
31564
31818
|
# Project ID for this request.
|
31565
31819
|
# @param [String] region
|
31566
|
-
#
|
31567
|
-
# @param [
|
31568
|
-
#
|
31569
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31570
|
-
# that if you must retry your request, the server will know to ignore the
|
31571
|
-
# request if it has already been completed. For example, consider a situation
|
31572
|
-
# where you make an initial request and the request times out. If you make the
|
31573
|
-
# request again with the same request ID, the server can check if original
|
31574
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31575
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31576
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31577
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31820
|
+
# Name of the region scoping this request.
|
31821
|
+
# @param [String] composite_health_check
|
31822
|
+
# Name of the CompositeHealthCheck resource to return.
|
31578
31823
|
# @param [String] fields
|
31579
31824
|
# Selector specifying which fields to include in a partial response.
|
31580
31825
|
# @param [String] quota_user
|
@@ -31586,43 +31831,34 @@ module Google
|
|
31586
31831
|
# Request-specific options
|
31587
31832
|
#
|
31588
31833
|
# @yield [result, err] Result & error if block supplied
|
31589
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
31834
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheck] parsed result object
|
31590
31835
|
# @yieldparam err [StandardError] error object if request failed
|
31591
31836
|
#
|
31592
|
-
# @return [Google::Apis::ComputeAlpha::
|
31837
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheck]
|
31593
31838
|
#
|
31594
31839
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31595
31840
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31596
31841
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31597
|
-
def
|
31598
|
-
command = make_simple_command(:
|
31599
|
-
command.
|
31600
|
-
command.
|
31601
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31602
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31842
|
+
def get_region_composite_health_check(project, region, composite_health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31843
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
31844
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
31845
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheck
|
31603
31846
|
command.params['project'] = project unless project.nil?
|
31604
31847
|
command.params['region'] = region unless region.nil?
|
31605
|
-
command.
|
31848
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31606
31849
|
command.query['fields'] = fields unless fields.nil?
|
31607
31850
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31608
31851
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
31609
31852
|
execute_or_queue_command(command, &block)
|
31610
31853
|
end
|
31611
31854
|
|
31612
|
-
#
|
31613
|
-
#
|
31614
|
-
# more features, such as creating snapshots in a project different from the
|
31615
|
-
# source disk project.
|
31855
|
+
# Create a CompositeHealthCheck in the specified project in the given region
|
31856
|
+
# using the parameters that are included in the request.
|
31616
31857
|
# @param [String] project
|
31617
31858
|
# Project ID for this request.
|
31618
31859
|
# @param [String] region
|
31619
|
-
# Name of the region
|
31620
|
-
# @param [
|
31621
|
-
# Name of the regional persistent disk to snapshot.
|
31622
|
-
# @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
|
31623
|
-
# @param [Boolean] guest_flush
|
31624
|
-
# [Input Only] Specifies to create an application consistent snapshot by
|
31625
|
-
# informing the OS to prepare for the snapshot process.
|
31860
|
+
# Name of the region scoping this request.
|
31861
|
+
# @param [Google::Apis::ComputeAlpha::CompositeHealthCheck] composite_health_check_object
|
31626
31862
|
# @param [String] request_id
|
31627
31863
|
# An optional request ID to identify requests. Specify a unique request ID so
|
31628
31864
|
# that if you must retry your request, the server will know to ignore the
|
@@ -31652,16 +31888,14 @@ module Google
|
|
31652
31888
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31653
31889
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31654
31890
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31655
|
-
def
|
31656
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
31657
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
31658
|
-
command.request_object =
|
31891
|
+
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)
|
31892
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/compositeHealthChecks', options)
|
31893
|
+
command.request_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
31894
|
+
command.request_object = composite_health_check_object
|
31659
31895
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31660
31896
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31661
31897
|
command.params['project'] = project unless project.nil?
|
31662
31898
|
command.params['region'] = region unless region.nil?
|
31663
|
-
command.params['disk'] = disk unless disk.nil?
|
31664
|
-
command.query['guestFlush'] = guest_flush unless guest_flush.nil?
|
31665
31899
|
command.query['requestId'] = request_id unless request_id.nil?
|
31666
31900
|
command.query['fields'] = fields unless fields.nil?
|
31667
31901
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -31669,16 +31903,594 @@ module Google
|
|
31669
31903
|
execute_or_queue_command(command, &block)
|
31670
31904
|
end
|
31671
31905
|
|
31672
|
-
#
|
31673
|
-
# removes all the replicas of its data permanently and is irreversible. However,
|
31674
|
-
# deleting a disk does not delete any snapshots previously made from the disk.
|
31675
|
-
# You must separately delete snapshots.
|
31906
|
+
# Lists the CompositeHealthChecks for a project in the given region.
|
31676
31907
|
# @param [String] project
|
31677
31908
|
# Project ID for this request.
|
31678
31909
|
# @param [String] region
|
31679
|
-
# Name of the region
|
31680
|
-
# @param [String]
|
31681
|
-
#
|
31910
|
+
# Name of the region scoping this request.
|
31911
|
+
# @param [String] filter
|
31912
|
+
# A filter expression that filters resources listed in the response. Most
|
31913
|
+
# Compute resources support two types of filter expressions: expressions that
|
31914
|
+
# support regular expressions and expressions that follow API improvement
|
31915
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
31916
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
31917
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
31918
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
31919
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
31920
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
31921
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
31922
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
31923
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
31924
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
31925
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
31926
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
31927
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
31928
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
31929
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
31930
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
31931
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
31932
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
31933
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
31934
|
+
# un-parenthesized expression with or without quotes or against multiple
|
31935
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31936
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31937
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31938
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31939
|
+
# literal value must match the entire field. For example, to filter for
|
31940
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31941
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
31942
|
+
# expressions.
|
31943
|
+
# @param [Fixnum] max_results
|
31944
|
+
# The maximum number of results per page that should be returned. If the number
|
31945
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31946
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31947
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31948
|
+
# @param [String] order_by
|
31949
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31950
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31951
|
+
# descending order based on the creation timestamp using `orderBy="
|
31952
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31953
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31954
|
+
# resources like operations so that the newest operation is returned first.
|
31955
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31956
|
+
# @param [String] page_token
|
31957
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31958
|
+
# by a previous list request to get the next page of results.
|
31959
|
+
# @param [Boolean] return_partial_success
|
31960
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
31961
|
+
# failure. The default value is false. For example, when partial success
|
31962
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
31963
|
+
# resources in the zone or no resources, with an error code.
|
31964
|
+
# @param [String] fields
|
31965
|
+
# Selector specifying which fields to include in a partial response.
|
31966
|
+
# @param [String] quota_user
|
31967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31969
|
+
# @param [String] user_ip
|
31970
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31971
|
+
# @param [Google::Apis::RequestOptions] options
|
31972
|
+
# Request-specific options
|
31973
|
+
#
|
31974
|
+
# @yield [result, err] Result & error if block supplied
|
31975
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheckList] parsed result object
|
31976
|
+
# @yieldparam err [StandardError] error object if request failed
|
31977
|
+
#
|
31978
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheckList]
|
31979
|
+
#
|
31980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31983
|
+
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)
|
31984
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/compositeHealthChecks', options)
|
31985
|
+
command.response_representation = Google::Apis::ComputeAlpha::CompositeHealthCheckList::Representation
|
31986
|
+
command.response_class = Google::Apis::ComputeAlpha::CompositeHealthCheckList
|
31987
|
+
command.params['project'] = project unless project.nil?
|
31988
|
+
command.params['region'] = region unless region.nil?
|
31989
|
+
command.query['filter'] = filter unless filter.nil?
|
31990
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
31991
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
31992
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
31993
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31994
|
+
command.query['fields'] = fields unless fields.nil?
|
31995
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31996
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31997
|
+
execute_or_queue_command(command, &block)
|
31998
|
+
end
|
31999
|
+
|
32000
|
+
# Updates the specified regional CompositeHealthCheck resource with the data
|
32001
|
+
# included in the request. This method supports PATCH semantics and uses the
|
32002
|
+
# JSON merge patch format and processing rules.
|
32003
|
+
# @param [String] project
|
32004
|
+
# Project ID for this request.
|
32005
|
+
# @param [String] region
|
32006
|
+
# Name of the region scoping this request.
|
32007
|
+
# @param [String] composite_health_check
|
32008
|
+
# Name of the CompositeHealthCheck to update. The name must be 1-63 characters
|
32009
|
+
# long, and comply with RFC1035.
|
32010
|
+
# @param [Google::Apis::ComputeAlpha::CompositeHealthCheck] composite_health_check_object
|
32011
|
+
# @param [String] request_id
|
32012
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32013
|
+
# that if you must retry your request, the server will know to ignore the
|
32014
|
+
# request if it has already been completed. For example, consider a situation
|
32015
|
+
# where you make an initial request and the request times out. If you make the
|
32016
|
+
# request again with the same request ID, the server can check if original
|
32017
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32018
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32019
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32020
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32021
|
+
# @param [String] fields
|
32022
|
+
# Selector specifying which fields to include in a partial response.
|
32023
|
+
# @param [String] quota_user
|
32024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32026
|
+
# @param [String] user_ip
|
32027
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32028
|
+
# @param [Google::Apis::RequestOptions] options
|
32029
|
+
# Request-specific options
|
32030
|
+
#
|
32031
|
+
# @yield [result, err] Result & error if block supplied
|
32032
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32033
|
+
# @yieldparam err [StandardError] error object if request failed
|
32034
|
+
#
|
32035
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32036
|
+
#
|
32037
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32038
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32039
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32040
|
+
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)
|
32041
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/compositeHealthChecks/{compositeHealthCheck}', options)
|
32042
|
+
command.request_representation = Google::Apis::ComputeAlpha::CompositeHealthCheck::Representation
|
32043
|
+
command.request_object = composite_health_check_object
|
32044
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32045
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32046
|
+
command.params['project'] = project unless project.nil?
|
32047
|
+
command.params['region'] = region unless region.nil?
|
32048
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
32049
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32050
|
+
command.query['fields'] = fields unless fields.nil?
|
32051
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32052
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32053
|
+
execute_or_queue_command(command, &block)
|
32054
|
+
end
|
32055
|
+
|
32056
|
+
# Returns permissions that a caller has on the specified resource.
|
32057
|
+
# @param [String] project
|
32058
|
+
# Project ID for this request.
|
32059
|
+
# @param [String] region
|
32060
|
+
# The name of the region for this request.
|
32061
|
+
# @param [String] resource
|
32062
|
+
# Name or id of the resource for this request.
|
32063
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
32064
|
+
# @param [String] fields
|
32065
|
+
# Selector specifying which fields to include in a partial response.
|
32066
|
+
# @param [String] quota_user
|
32067
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32068
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32069
|
+
# @param [String] user_ip
|
32070
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32071
|
+
# @param [Google::Apis::RequestOptions] options
|
32072
|
+
# Request-specific options
|
32073
|
+
#
|
32074
|
+
# @yield [result, err] Result & error if block supplied
|
32075
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
32076
|
+
# @yieldparam err [StandardError] error object if request failed
|
32077
|
+
#
|
32078
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
32079
|
+
#
|
32080
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32081
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32082
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32083
|
+
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)
|
32084
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/compositeHealthChecks/{resource}/testIamPermissions', options)
|
32085
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
32086
|
+
command.request_object = test_permissions_request_object
|
32087
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
32088
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
32089
|
+
command.params['project'] = project unless project.nil?
|
32090
|
+
command.params['region'] = region unless region.nil?
|
32091
|
+
command.params['resource'] = resource unless resource.nil?
|
32092
|
+
command.query['fields'] = fields unless fields.nil?
|
32093
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32094
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32095
|
+
execute_or_queue_command(command, &block)
|
32096
|
+
end
|
32097
|
+
|
32098
|
+
# Get Regional Disk Settings.
|
32099
|
+
# @param [String] project
|
32100
|
+
# Project ID for this request.
|
32101
|
+
# @param [String] region
|
32102
|
+
# Name of the region for this request.
|
32103
|
+
# @param [String] fields
|
32104
|
+
# Selector specifying which fields to include in a partial response.
|
32105
|
+
# @param [String] quota_user
|
32106
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32107
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32108
|
+
# @param [String] user_ip
|
32109
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32110
|
+
# @param [Google::Apis::RequestOptions] options
|
32111
|
+
# Request-specific options
|
32112
|
+
#
|
32113
|
+
# @yield [result, err] Result & error if block supplied
|
32114
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
32115
|
+
# @yieldparam err [StandardError] error object if request failed
|
32116
|
+
#
|
32117
|
+
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
32118
|
+
#
|
32119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32122
|
+
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32123
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
32124
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
32125
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
32126
|
+
command.params['project'] = project unless project.nil?
|
32127
|
+
command.params['region'] = region unless region.nil?
|
32128
|
+
command.query['fields'] = fields unless fields.nil?
|
32129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32130
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32131
|
+
execute_or_queue_command(command, &block)
|
32132
|
+
end
|
32133
|
+
|
32134
|
+
# Patch Regional Disk Settings
|
32135
|
+
# @param [String] project
|
32136
|
+
# Project ID for this request.
|
32137
|
+
# @param [String] region
|
32138
|
+
# Name of the region for this request.
|
32139
|
+
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
32140
|
+
# @param [String] request_id
|
32141
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32142
|
+
# that if you must retry your request, the server will know to ignore the
|
32143
|
+
# request if it has already been completed. For example, consider a situation
|
32144
|
+
# where you make an initial request and the request times out. If you make the
|
32145
|
+
# request again with the same request ID, the server can check if original
|
32146
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32147
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32148
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32149
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32150
|
+
# @param [String] update_mask
|
32151
|
+
# update_mask indicates fields to be updated as part of this request.
|
32152
|
+
# @param [String] fields
|
32153
|
+
# Selector specifying which fields to include in a partial response.
|
32154
|
+
# @param [String] quota_user
|
32155
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32156
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32157
|
+
# @param [String] user_ip
|
32158
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32159
|
+
# @param [Google::Apis::RequestOptions] options
|
32160
|
+
# Request-specific options
|
32161
|
+
#
|
32162
|
+
# @yield [result, err] Result & error if block supplied
|
32163
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32164
|
+
# @yieldparam err [StandardError] error object if request failed
|
32165
|
+
#
|
32166
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32167
|
+
#
|
32168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32171
|
+
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)
|
32172
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
32173
|
+
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
32174
|
+
command.request_object = disk_settings_object
|
32175
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32176
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32177
|
+
command.params['project'] = project unless project.nil?
|
32178
|
+
command.params['region'] = region unless region.nil?
|
32179
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32180
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
32181
|
+
command.query['fields'] = fields unless fields.nil?
|
32182
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32183
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32184
|
+
execute_or_queue_command(command, &block)
|
32185
|
+
end
|
32186
|
+
|
32187
|
+
# Returns the specified regional disk type.
|
32188
|
+
# @param [String] project
|
32189
|
+
# Project ID for this request.
|
32190
|
+
# @param [String] region
|
32191
|
+
# The name of the region for this request.
|
32192
|
+
# @param [String] disk_type
|
32193
|
+
# Name of the disk type to return.
|
32194
|
+
# @param [String] fields
|
32195
|
+
# Selector specifying which fields to include in a partial response.
|
32196
|
+
# @param [String] quota_user
|
32197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32199
|
+
# @param [String] user_ip
|
32200
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32201
|
+
# @param [Google::Apis::RequestOptions] options
|
32202
|
+
# Request-specific options
|
32203
|
+
#
|
32204
|
+
# @yield [result, err] Result & error if block supplied
|
32205
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
32206
|
+
# @yieldparam err [StandardError] error object if request failed
|
32207
|
+
#
|
32208
|
+
# @return [Google::Apis::ComputeAlpha::DiskType]
|
32209
|
+
#
|
32210
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32211
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32212
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32213
|
+
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32214
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options)
|
32215
|
+
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
32216
|
+
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
32217
|
+
command.params['project'] = project unless project.nil?
|
32218
|
+
command.params['region'] = region unless region.nil?
|
32219
|
+
command.params['diskType'] = disk_type unless disk_type.nil?
|
32220
|
+
command.query['fields'] = fields unless fields.nil?
|
32221
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32222
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32223
|
+
execute_or_queue_command(command, &block)
|
32224
|
+
end
|
32225
|
+
|
32226
|
+
# Retrieves a list of regional disk types available to the specified project.
|
32227
|
+
# @param [String] project
|
32228
|
+
# Project ID for this request.
|
32229
|
+
# @param [String] region
|
32230
|
+
# The name of the region for this request.
|
32231
|
+
# @param [String] filter
|
32232
|
+
# A filter expression that filters resources listed in the response. Most
|
32233
|
+
# Compute resources support two types of filter expressions: expressions that
|
32234
|
+
# support regular expressions and expressions that follow API improvement
|
32235
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
32236
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
32237
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
32238
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
32239
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
32240
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
32241
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
32242
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
32243
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
32244
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
32245
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
32246
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
32247
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
32248
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
32249
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
32250
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
32251
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
32252
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
32253
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
32254
|
+
# un-parenthesized expression with or without quotes or against multiple
|
32255
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
32256
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
32257
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
32258
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
32259
|
+
# literal value must match the entire field. For example, to filter for
|
32260
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
32261
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
32262
|
+
# expressions.
|
32263
|
+
# @param [Fixnum] max_results
|
32264
|
+
# The maximum number of results per page that should be returned. If the number
|
32265
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
32266
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
32267
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
32268
|
+
# @param [String] order_by
|
32269
|
+
# Sorts list results by a certain order. By default, results are returned in
|
32270
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
32271
|
+
# descending order based on the creation timestamp using `orderBy="
|
32272
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
32273
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
32274
|
+
# resources like operations so that the newest operation is returned first.
|
32275
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
32276
|
+
# @param [String] page_token
|
32277
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
32278
|
+
# by a previous list request to get the next page of results.
|
32279
|
+
# @param [Boolean] return_partial_success
|
32280
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
32281
|
+
# failure. The default value is false. For example, when partial success
|
32282
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
32283
|
+
# resources in the zone or no resources, with an error code.
|
32284
|
+
# @param [String] fields
|
32285
|
+
# Selector specifying which fields to include in a partial response.
|
32286
|
+
# @param [String] quota_user
|
32287
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32288
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32289
|
+
# @param [String] user_ip
|
32290
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32291
|
+
# @param [Google::Apis::RequestOptions] options
|
32292
|
+
# Request-specific options
|
32293
|
+
#
|
32294
|
+
# @yield [result, err] Result & error if block supplied
|
32295
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionDiskTypeList] parsed result object
|
32296
|
+
# @yieldparam err [StandardError] error object if request failed
|
32297
|
+
#
|
32298
|
+
# @return [Google::Apis::ComputeAlpha::RegionDiskTypeList]
|
32299
|
+
#
|
32300
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32301
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32302
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32303
|
+
def list_region_disk_types(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)
|
32304
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes', options)
|
32305
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionDiskTypeList::Representation
|
32306
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionDiskTypeList
|
32307
|
+
command.params['project'] = project unless project.nil?
|
32308
|
+
command.params['region'] = region unless region.nil?
|
32309
|
+
command.query['filter'] = filter unless filter.nil?
|
32310
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
32311
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
32312
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
32313
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
32314
|
+
command.query['fields'] = fields unless fields.nil?
|
32315
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32316
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32317
|
+
execute_or_queue_command(command, &block)
|
32318
|
+
end
|
32319
|
+
|
32320
|
+
# Adds existing resource policies to a regional disk. You can only add one
|
32321
|
+
# policy which will be applied to this disk for scheduling snapshot creation.
|
32322
|
+
# @param [String] project
|
32323
|
+
# Project ID for this request.
|
32324
|
+
# @param [String] region
|
32325
|
+
# The name of the region for this request.
|
32326
|
+
# @param [String] disk
|
32327
|
+
# The disk name for this request.
|
32328
|
+
# @param [Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest] region_disks_add_resource_policies_request_object
|
32329
|
+
# @param [String] request_id
|
32330
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32331
|
+
# that if you must retry your request, the server will know to ignore the
|
32332
|
+
# request if it has already been completed. For example, consider a situation
|
32333
|
+
# where you make an initial request and the request times out. If you make the
|
32334
|
+
# request again with the same request ID, the server can check if original
|
32335
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32336
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32337
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32338
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32339
|
+
# @param [String] fields
|
32340
|
+
# Selector specifying which fields to include in a partial response.
|
32341
|
+
# @param [String] quota_user
|
32342
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32343
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32344
|
+
# @param [String] user_ip
|
32345
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32346
|
+
# @param [Google::Apis::RequestOptions] options
|
32347
|
+
# Request-specific options
|
32348
|
+
#
|
32349
|
+
# @yield [result, err] Result & error if block supplied
|
32350
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32351
|
+
# @yieldparam err [StandardError] error object if request failed
|
32352
|
+
#
|
32353
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32354
|
+
#
|
32355
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32356
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32357
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32358
|
+
def add_region_disk_resource_policies(project, region, disk, region_disks_add_resource_policies_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32359
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies', options)
|
32360
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionDisksAddResourcePoliciesRequest::Representation
|
32361
|
+
command.request_object = region_disks_add_resource_policies_request_object
|
32362
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32363
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32364
|
+
command.params['project'] = project unless project.nil?
|
32365
|
+
command.params['region'] = region unless region.nil?
|
32366
|
+
command.params['disk'] = disk unless disk.nil?
|
32367
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32368
|
+
command.query['fields'] = fields unless fields.nil?
|
32369
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32370
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32371
|
+
execute_or_queue_command(command, &block)
|
32372
|
+
end
|
32373
|
+
|
32374
|
+
# Bulk create a set of disks.
|
32375
|
+
# @param [String] project
|
32376
|
+
# Project ID for this request.
|
32377
|
+
# @param [String] region
|
32378
|
+
# The name of the region for this request.
|
32379
|
+
# @param [Google::Apis::ComputeAlpha::BulkInsertDiskResource] bulk_insert_disk_resource_object
|
32380
|
+
# @param [String] request_id
|
32381
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32382
|
+
# that if you must retry your request, the server will know to ignore the
|
32383
|
+
# request if it has already been completed. For example, consider a situation
|
32384
|
+
# where you make an initial request and the request times out. If you make the
|
32385
|
+
# request again with the same request ID, the server can check if original
|
32386
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32387
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32388
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32389
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32390
|
+
# @param [String] fields
|
32391
|
+
# Selector specifying which fields to include in a partial response.
|
32392
|
+
# @param [String] quota_user
|
32393
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32394
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32395
|
+
# @param [String] user_ip
|
32396
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32397
|
+
# @param [Google::Apis::RequestOptions] options
|
32398
|
+
# Request-specific options
|
32399
|
+
#
|
32400
|
+
# @yield [result, err] Result & error if block supplied
|
32401
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32402
|
+
# @yieldparam err [StandardError] error object if request failed
|
32403
|
+
#
|
32404
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32405
|
+
#
|
32406
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32407
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32408
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32409
|
+
def bulk_region_disk_insert(project, region, bulk_insert_disk_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32410
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/bulkInsert', options)
|
32411
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertDiskResource::Representation
|
32412
|
+
command.request_object = bulk_insert_disk_resource_object
|
32413
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32414
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32415
|
+
command.params['project'] = project unless project.nil?
|
32416
|
+
command.params['region'] = region unless region.nil?
|
32417
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32418
|
+
command.query['fields'] = fields unless fields.nil?
|
32419
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32420
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32421
|
+
execute_or_queue_command(command, &block)
|
32422
|
+
end
|
32423
|
+
|
32424
|
+
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
32425
|
+
# creation, consider using snapshots.insert instead, as that method supports
|
32426
|
+
# more features, such as creating snapshots in a project different from the
|
32427
|
+
# source disk project.
|
32428
|
+
# @param [String] project
|
32429
|
+
# Project ID for this request.
|
32430
|
+
# @param [String] region
|
32431
|
+
# Name of the region for this request.
|
32432
|
+
# @param [String] disk
|
32433
|
+
# Name of the regional persistent disk to snapshot.
|
32434
|
+
# @param [Google::Apis::ComputeAlpha::Snapshot] snapshot_object
|
32435
|
+
# @param [Boolean] guest_flush
|
32436
|
+
# [Input Only] Specifies to create an application consistent snapshot by
|
32437
|
+
# informing the OS to prepare for the snapshot process.
|
32438
|
+
# @param [String] request_id
|
32439
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
32440
|
+
# that if you must retry your request, the server will know to ignore the
|
32441
|
+
# request if it has already been completed. For example, consider a situation
|
32442
|
+
# where you make an initial request and the request times out. If you make the
|
32443
|
+
# request again with the same request ID, the server can check if original
|
32444
|
+
# operation with the same request ID was received, and if so, will ignore the
|
32445
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32446
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
32447
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32448
|
+
# @param [String] fields
|
32449
|
+
# Selector specifying which fields to include in a partial response.
|
32450
|
+
# @param [String] quota_user
|
32451
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
32452
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
32453
|
+
# @param [String] user_ip
|
32454
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
32455
|
+
# @param [Google::Apis::RequestOptions] options
|
32456
|
+
# Request-specific options
|
32457
|
+
#
|
32458
|
+
# @yield [result, err] Result & error if block supplied
|
32459
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
32460
|
+
# @yieldparam err [StandardError] error object if request failed
|
32461
|
+
#
|
32462
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
32463
|
+
#
|
32464
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32465
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32466
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32467
|
+
def create_region_disk_snapshot(project, region, disk, snapshot_object = nil, guest_flush: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32468
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/createSnapshot', options)
|
32469
|
+
command.request_representation = Google::Apis::ComputeAlpha::Snapshot::Representation
|
32470
|
+
command.request_object = snapshot_object
|
32471
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32472
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32473
|
+
command.params['project'] = project unless project.nil?
|
32474
|
+
command.params['region'] = region unless region.nil?
|
32475
|
+
command.params['disk'] = disk unless disk.nil?
|
32476
|
+
command.query['guestFlush'] = guest_flush unless guest_flush.nil?
|
32477
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
32478
|
+
command.query['fields'] = fields unless fields.nil?
|
32479
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
32480
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
32481
|
+
execute_or_queue_command(command, &block)
|
32482
|
+
end
|
32483
|
+
|
32484
|
+
# Deletes the specified regional persistent disk. Deleting a regional disk
|
32485
|
+
# removes all the replicas of its data permanently and is irreversible. However,
|
32486
|
+
# deleting a disk does not delete any snapshots previously made from the disk.
|
32487
|
+
# You must separately delete snapshots.
|
32488
|
+
# @param [String] project
|
32489
|
+
# Project ID for this request.
|
32490
|
+
# @param [String] region
|
32491
|
+
# Name of the region for this request.
|
32492
|
+
# @param [String] disk
|
32493
|
+
# Name of the regional persistent disk to delete.
|
31682
32494
|
# @param [String] request_id
|
31683
32495
|
# An optional request ID to identify requests. Specify a unique request ID so
|
31684
32496
|
# that if you must retry your request, the server will know to ignore the
|
@@ -32490,15 +33302,305 @@ module Google
|
|
32490
33302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32491
33303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32492
33304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32493
|
-
def wait_region_disk_for_replication_catch_up(project, region, disk, region_wait_for_replication_catch_up_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
32494
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
|
32495
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
32496
|
-
command.request_object = region_wait_for_replication_catch_up_request_object
|
33305
|
+
def wait_region_disk_for_replication_catch_up(project, region, disk, region_wait_for_replication_catch_up_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33306
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
|
33307
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
33308
|
+
command.request_object = region_wait_for_replication_catch_up_request_object
|
33309
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33310
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33311
|
+
command.params['project'] = project unless project.nil?
|
33312
|
+
command.params['region'] = region unless region.nil?
|
33313
|
+
command.params['disk'] = disk unless disk.nil?
|
33314
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33315
|
+
command.query['fields'] = fields unless fields.nil?
|
33316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33317
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33318
|
+
execute_or_queue_command(command, &block)
|
33319
|
+
end
|
33320
|
+
|
33321
|
+
# Deletes the specified HealthAggregationPolicy in the given region.
|
33322
|
+
# @param [String] project
|
33323
|
+
# Project ID for this request.
|
33324
|
+
# @param [String] region
|
33325
|
+
# Name of the region scoping this request.
|
33326
|
+
# @param [String] health_aggregation_policy
|
33327
|
+
# Name of the HealthAggregationPolicy resource to delete.
|
33328
|
+
# @param [String] request_id
|
33329
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33330
|
+
# that if you must retry your request, the server will know to ignore the
|
33331
|
+
# request if it has already been completed. For example, consider a situation
|
33332
|
+
# where you make an initial request and the request times out. If you make the
|
33333
|
+
# request again with the same request ID, the server can check if original
|
33334
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33335
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33336
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33337
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33338
|
+
# @param [String] fields
|
33339
|
+
# Selector specifying which fields to include in a partial response.
|
33340
|
+
# @param [String] quota_user
|
33341
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33342
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33343
|
+
# @param [String] user_ip
|
33344
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33345
|
+
# @param [Google::Apis::RequestOptions] options
|
33346
|
+
# Request-specific options
|
33347
|
+
#
|
33348
|
+
# @yield [result, err] Result & error if block supplied
|
33349
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33350
|
+
# @yieldparam err [StandardError] error object if request failed
|
33351
|
+
#
|
33352
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33353
|
+
#
|
33354
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33355
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33356
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33357
|
+
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)
|
33358
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33359
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33360
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33361
|
+
command.params['project'] = project unless project.nil?
|
33362
|
+
command.params['region'] = region unless region.nil?
|
33363
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
33364
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33365
|
+
command.query['fields'] = fields unless fields.nil?
|
33366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33367
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33368
|
+
execute_or_queue_command(command, &block)
|
33369
|
+
end
|
33370
|
+
|
33371
|
+
# Returns the specified HealthAggregationPolicy resource in the given region.
|
33372
|
+
# @param [String] project
|
33373
|
+
# Project ID for this request.
|
33374
|
+
# @param [String] region
|
33375
|
+
# Name of the region scoping this request.
|
33376
|
+
# @param [String] health_aggregation_policy
|
33377
|
+
# Name of the HealthAggregationPolicy resource to return.
|
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::HealthAggregationPolicy] parsed result object
|
33390
|
+
# @yieldparam err [StandardError] error object if request failed
|
33391
|
+
#
|
33392
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicy]
|
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 get_region_health_aggregation_policy(project, region, health_aggregation_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33398
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33399
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33400
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicy
|
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['fields'] = fields unless fields.nil?
|
33405
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33406
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33407
|
+
execute_or_queue_command(command, &block)
|
33408
|
+
end
|
33409
|
+
|
33410
|
+
# Create a HealthAggregationPolicy in the specified project in the given region
|
33411
|
+
# using the parameters that are included in the request.
|
33412
|
+
# @param [String] project
|
33413
|
+
# Project ID for this request.
|
33414
|
+
# @param [String] region
|
33415
|
+
# Name of the region scoping this request.
|
33416
|
+
# @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
|
33417
|
+
# @param [String] request_id
|
33418
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33419
|
+
# that if you must retry your request, the server will know to ignore the
|
33420
|
+
# request if it has already been completed. For example, consider a situation
|
33421
|
+
# where you make an initial request and the request times out. If you make the
|
33422
|
+
# request again with the same request ID, the server can check if original
|
33423
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33424
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33425
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33426
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33427
|
+
# @param [String] fields
|
33428
|
+
# Selector specifying which fields to include in a partial response.
|
33429
|
+
# @param [String] quota_user
|
33430
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33431
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33432
|
+
# @param [String] user_ip
|
33433
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33434
|
+
# @param [Google::Apis::RequestOptions] options
|
33435
|
+
# Request-specific options
|
33436
|
+
#
|
33437
|
+
# @yield [result, err] Result & error if block supplied
|
33438
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33439
|
+
# @yieldparam err [StandardError] error object if request failed
|
33440
|
+
#
|
33441
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33442
|
+
#
|
33443
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33444
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33445
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33446
|
+
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)
|
33447
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
|
33448
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33449
|
+
command.request_object = health_aggregation_policy_object
|
33450
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33451
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33452
|
+
command.params['project'] = project unless project.nil?
|
33453
|
+
command.params['region'] = region unless region.nil?
|
33454
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33455
|
+
command.query['fields'] = fields unless fields.nil?
|
33456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33457
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33458
|
+
execute_or_queue_command(command, &block)
|
33459
|
+
end
|
33460
|
+
|
33461
|
+
# Lists the HealthAggregationPolicies for a project in the given region.
|
33462
|
+
# @param [String] project
|
33463
|
+
# Project ID for this request.
|
33464
|
+
# @param [String] region
|
33465
|
+
# Name of the region scoping this request.
|
33466
|
+
# @param [String] filter
|
33467
|
+
# A filter expression that filters resources listed in the response. Most
|
33468
|
+
# Compute resources support two types of filter expressions: expressions that
|
33469
|
+
# support regular expressions and expressions that follow API improvement
|
33470
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
33471
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
33472
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
33473
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
33474
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
33475
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
33476
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
33477
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
33478
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
33479
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
33480
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
33481
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
33482
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
33483
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
33484
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
33485
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
33486
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
33487
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
33488
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
33489
|
+
# un-parenthesized expression with or without quotes or against multiple
|
33490
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
33491
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
33492
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
33493
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
33494
|
+
# literal value must match the entire field. For example, to filter for
|
33495
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
33496
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
33497
|
+
# expressions.
|
33498
|
+
# @param [Fixnum] max_results
|
33499
|
+
# The maximum number of results per page that should be returned. If the number
|
33500
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33501
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33502
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33503
|
+
# @param [String] order_by
|
33504
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33505
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
33506
|
+
# descending order based on the creation timestamp using `orderBy="
|
33507
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33508
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
33509
|
+
# resources like operations so that the newest operation is returned first.
|
33510
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33511
|
+
# @param [String] page_token
|
33512
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33513
|
+
# by a previous list request to get the next page of results.
|
33514
|
+
# @param [Boolean] return_partial_success
|
33515
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33516
|
+
# failure. The default value is false. For example, when partial success
|
33517
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
33518
|
+
# resources in the zone or no resources, with an error code.
|
33519
|
+
# @param [String] fields
|
33520
|
+
# Selector specifying which fields to include in a partial response.
|
33521
|
+
# @param [String] quota_user
|
33522
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33523
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33524
|
+
# @param [String] user_ip
|
33525
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33526
|
+
# @param [Google::Apis::RequestOptions] options
|
33527
|
+
# Request-specific options
|
33528
|
+
#
|
33529
|
+
# @yield [result, err] Result & error if block supplied
|
33530
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyList] parsed result object
|
33531
|
+
# @yieldparam err [StandardError] error object if request failed
|
33532
|
+
#
|
33533
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyList]
|
33534
|
+
#
|
33535
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33536
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33537
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33538
|
+
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)
|
33539
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
|
33540
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyList::Representation
|
33541
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyList
|
33542
|
+
command.params['project'] = project unless project.nil?
|
33543
|
+
command.params['region'] = region unless region.nil?
|
33544
|
+
command.query['filter'] = filter unless filter.nil?
|
33545
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33546
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33547
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33548
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33549
|
+
command.query['fields'] = fields unless fields.nil?
|
33550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33551
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33552
|
+
execute_or_queue_command(command, &block)
|
33553
|
+
end
|
33554
|
+
|
33555
|
+
# Updates the specified regional HealthAggregationPolicy resource with the data
|
33556
|
+
# included in the request. This method supports PATCH semantics and uses the
|
33557
|
+
# JSON merge patch format and processing rules.
|
33558
|
+
# @param [String] project
|
33559
|
+
# Project ID for this request.
|
33560
|
+
# @param [String] region
|
33561
|
+
# Name of the region scoping this request.
|
33562
|
+
# @param [String] health_aggregation_policy
|
33563
|
+
# Name of the HealthAggregationPolicy to update. The name must be 1-63
|
33564
|
+
# characters long, and comply with RFC1035.
|
33565
|
+
# @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
|
33566
|
+
# @param [String] request_id
|
33567
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33568
|
+
# that if you must retry your request, the server will know to ignore the
|
33569
|
+
# request if it has already been completed. For example, consider a situation
|
33570
|
+
# where you make an initial request and the request times out. If you make the
|
33571
|
+
# request again with the same request ID, the server can check if original
|
33572
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33573
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33574
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33575
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33576
|
+
# @param [String] fields
|
33577
|
+
# Selector specifying which fields to include in a partial response.
|
33578
|
+
# @param [String] quota_user
|
33579
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33580
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33581
|
+
# @param [String] user_ip
|
33582
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33583
|
+
# @param [Google::Apis::RequestOptions] options
|
33584
|
+
# Request-specific options
|
33585
|
+
#
|
33586
|
+
# @yield [result, err] Result & error if block supplied
|
33587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
33588
|
+
# @yieldparam err [StandardError] error object if request failed
|
33589
|
+
#
|
33590
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
33591
|
+
#
|
33592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33595
|
+
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)
|
33596
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
33597
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
33598
|
+
command.request_object = health_aggregation_policy_object
|
32497
33599
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32498
33600
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32499
33601
|
command.params['project'] = project unless project.nil?
|
32500
33602
|
command.params['region'] = region unless region.nil?
|
32501
|
-
command.params['
|
33603
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
32502
33604
|
command.query['requestId'] = request_id unless request_id.nil?
|
32503
33605
|
command.query['fields'] = fields unless fields.nil?
|
32504
33606
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -32506,6 +33608,48 @@ module Google
|
|
32506
33608
|
execute_or_queue_command(command, &block)
|
32507
33609
|
end
|
32508
33610
|
|
33611
|
+
# Returns permissions that a caller has on the specified resource.
|
33612
|
+
# @param [String] project
|
33613
|
+
# Project ID for this request.
|
33614
|
+
# @param [String] region
|
33615
|
+
# The name of the region for this request.
|
33616
|
+
# @param [String] resource
|
33617
|
+
# Name or id of the resource for this request.
|
33618
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
33619
|
+
# @param [String] fields
|
33620
|
+
# Selector specifying which fields to include in a partial response.
|
33621
|
+
# @param [String] quota_user
|
33622
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33623
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33624
|
+
# @param [String] user_ip
|
33625
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33626
|
+
# @param [Google::Apis::RequestOptions] options
|
33627
|
+
# Request-specific options
|
33628
|
+
#
|
33629
|
+
# @yield [result, err] Result & error if block supplied
|
33630
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
33631
|
+
# @yieldparam err [StandardError] error object if request failed
|
33632
|
+
#
|
33633
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
33634
|
+
#
|
33635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33638
|
+
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)
|
33639
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions', options)
|
33640
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
33641
|
+
command.request_object = test_permissions_request_object
|
33642
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
33643
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
33644
|
+
command.params['project'] = project unless project.nil?
|
33645
|
+
command.params['region'] = region unless region.nil?
|
33646
|
+
command.params['resource'] = resource unless resource.nil?
|
33647
|
+
command.query['fields'] = fields unless fields.nil?
|
33648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33649
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33650
|
+
execute_or_queue_command(command, &block)
|
33651
|
+
end
|
33652
|
+
|
32509
33653
|
# Retrieves the list of all HealthCheckService resources, regional and global,
|
32510
33654
|
# available to the specified project. To prevent failure, Google recommends that
|
32511
33655
|
# you set the `returnPartialSuccess` parameter to `true`.
|
@@ -33315,15 +34459,260 @@ module Google
|
|
33315
34459
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33316
34460
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33317
34461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33318
|
-
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)
|
33319
|
-
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
33320
|
-
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
33321
|
-
command.request_object = health_check_object
|
34462
|
+
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)
|
34463
|
+
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
34464
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
34465
|
+
command.request_object = health_check_object
|
34466
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34467
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34468
|
+
command.params['project'] = project unless project.nil?
|
34469
|
+
command.params['region'] = region unless region.nil?
|
34470
|
+
command.params['healthCheck'] = health_check unless health_check.nil?
|
34471
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34472
|
+
command.query['fields'] = fields unless fields.nil?
|
34473
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34474
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34475
|
+
execute_or_queue_command(command, &block)
|
34476
|
+
end
|
34477
|
+
|
34478
|
+
# Retrieves the list of all HealthSource resources (all regional) available to
|
34479
|
+
# the specified project. To prevent failure, Google recommends that you set the `
|
34480
|
+
# returnPartialSuccess` parameter to `true`.
|
34481
|
+
# @param [String] project
|
34482
|
+
# Name of the project scoping this request.
|
34483
|
+
# @param [String] filter
|
34484
|
+
# A filter expression that filters resources listed in the response. Most
|
34485
|
+
# Compute resources support two types of filter expressions: expressions that
|
34486
|
+
# support regular expressions and expressions that follow API improvement
|
34487
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34488
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
34489
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
34490
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34491
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34492
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
34493
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34494
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
34495
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34496
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
34497
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
34498
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
34499
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
34500
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34501
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34502
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34503
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34504
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34505
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34506
|
+
# un-parenthesized expression with or without quotes or against multiple
|
34507
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34508
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34509
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34510
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
34511
|
+
# literal value must match the entire field. For example, to filter for
|
34512
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
34513
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
34514
|
+
# expressions.
|
34515
|
+
# @param [Boolean] include_all_scopes
|
34516
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
34517
|
+
# global) should be included in the response. For new resource types added after
|
34518
|
+
# this field, the flag has no effect as new resource types will always include
|
34519
|
+
# every visible scope for each scope type in response. For resource types which
|
34520
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
34521
|
+
# types where the resource type is expected to be found will be included.
|
34522
|
+
# @param [Fixnum] max_results
|
34523
|
+
# The maximum number of results per page that should be returned. If the number
|
34524
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34525
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34526
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34527
|
+
# @param [String] order_by
|
34528
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34529
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
34530
|
+
# descending order based on the creation timestamp using `orderBy="
|
34531
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34532
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
34533
|
+
# resources like operations so that the newest operation is returned first.
|
34534
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34535
|
+
# @param [String] page_token
|
34536
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34537
|
+
# by a previous list request to get the next page of results.
|
34538
|
+
# @param [Boolean] return_partial_success
|
34539
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34540
|
+
# failure. The default value is false. For example, when partial success
|
34541
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34542
|
+
# resources in the zone or no resources, with an error code.
|
34543
|
+
# @param [Fixnum] service_project_number
|
34544
|
+
# The Shared VPC service project id or service project number for which
|
34545
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
34546
|
+
# @param [String] fields
|
34547
|
+
# Selector specifying which fields to include in a partial response.
|
34548
|
+
# @param [String] quota_user
|
34549
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34550
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34551
|
+
# @param [String] user_ip
|
34552
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34553
|
+
# @param [Google::Apis::RequestOptions] options
|
34554
|
+
# Request-specific options
|
34555
|
+
#
|
34556
|
+
# @yield [result, err] Result & error if block supplied
|
34557
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceAggregatedList] parsed result object
|
34558
|
+
# @yieldparam err [StandardError] error object if request failed
|
34559
|
+
#
|
34560
|
+
# @return [Google::Apis::ComputeAlpha::HealthSourceAggregatedList]
|
34561
|
+
#
|
34562
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34563
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34564
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34565
|
+
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)
|
34566
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/healthSources', options)
|
34567
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSourceAggregatedList::Representation
|
34568
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSourceAggregatedList
|
34569
|
+
command.params['project'] = project unless project.nil?
|
34570
|
+
command.query['filter'] = filter unless filter.nil?
|
34571
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
34572
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34573
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34574
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34575
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34576
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
34577
|
+
command.query['fields'] = fields unless fields.nil?
|
34578
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34579
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34580
|
+
execute_or_queue_command(command, &block)
|
34581
|
+
end
|
34582
|
+
|
34583
|
+
# Deletes the specified HealthSource in the given region
|
34584
|
+
# @param [String] project
|
34585
|
+
# Project ID for this request.
|
34586
|
+
# @param [String] region
|
34587
|
+
# Name of the region scoping this request.
|
34588
|
+
# @param [String] health_source
|
34589
|
+
# Name of the HealthSource resource to delete.
|
34590
|
+
# @param [String] request_id
|
34591
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34592
|
+
# that if you must retry your request, the server will know to ignore the
|
34593
|
+
# request if it has already been completed. For example, consider a situation
|
34594
|
+
# where you make an initial request and the request times out. If you make the
|
34595
|
+
# request again with the same request ID, the server can check if original
|
34596
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34597
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34598
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34599
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34600
|
+
# @param [String] fields
|
34601
|
+
# Selector specifying which fields to include in a partial response.
|
34602
|
+
# @param [String] quota_user
|
34603
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34604
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34605
|
+
# @param [String] user_ip
|
34606
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34607
|
+
# @param [Google::Apis::RequestOptions] options
|
34608
|
+
# Request-specific options
|
34609
|
+
#
|
34610
|
+
# @yield [result, err] Result & error if block supplied
|
34611
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34612
|
+
# @yieldparam err [StandardError] error object if request failed
|
34613
|
+
#
|
34614
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34615
|
+
#
|
34616
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34617
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34618
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34619
|
+
def delete_region_health_source(project, region, health_source, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34620
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34621
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34622
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34623
|
+
command.params['project'] = project unless project.nil?
|
34624
|
+
command.params['region'] = region unless region.nil?
|
34625
|
+
command.params['healthSource'] = health_source unless health_source.nil?
|
34626
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34627
|
+
command.query['fields'] = fields unless fields.nil?
|
34628
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34629
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34630
|
+
execute_or_queue_command(command, &block)
|
34631
|
+
end
|
34632
|
+
|
34633
|
+
# Returns the specified HealthSource resource in the given region.
|
34634
|
+
# @param [String] project
|
34635
|
+
# Project ID for this request.
|
34636
|
+
# @param [String] region
|
34637
|
+
# Name of the region scoping this request.
|
34638
|
+
# @param [String] health_source
|
34639
|
+
# Name of the HealthSource resource to return.
|
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::HealthSource] parsed result object
|
34652
|
+
# @yieldparam err [StandardError] error object if request failed
|
34653
|
+
#
|
34654
|
+
# @return [Google::Apis::ComputeAlpha::HealthSource]
|
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 get_region_health_source(project, region, health_source, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34660
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34661
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34662
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSource
|
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['fields'] = fields unless fields.nil?
|
34667
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34668
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34669
|
+
execute_or_queue_command(command, &block)
|
34670
|
+
end
|
34671
|
+
|
34672
|
+
# Create a HealthSource in the specified project in the given region using the
|
34673
|
+
# parameters that are included in the request.
|
34674
|
+
# @param [String] project
|
34675
|
+
# Project ID for this request.
|
34676
|
+
# @param [String] region
|
34677
|
+
# Name of the region scoping this request.
|
34678
|
+
# @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
|
34679
|
+
# @param [String] request_id
|
34680
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34681
|
+
# that if you must retry your request, the server will know to ignore the
|
34682
|
+
# request if it has already been completed. For example, consider a situation
|
34683
|
+
# where you make an initial request and the request times out. If you make the
|
34684
|
+
# request again with the same request ID, the server can check if original
|
34685
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34686
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34687
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34688
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34689
|
+
# @param [String] fields
|
34690
|
+
# Selector specifying which fields to include in a partial response.
|
34691
|
+
# @param [String] quota_user
|
34692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34694
|
+
# @param [String] user_ip
|
34695
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34696
|
+
# @param [Google::Apis::RequestOptions] options
|
34697
|
+
# Request-specific options
|
34698
|
+
#
|
34699
|
+
# @yield [result, err] Result & error if block supplied
|
34700
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34701
|
+
# @yieldparam err [StandardError] error object if request failed
|
34702
|
+
#
|
34703
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34704
|
+
#
|
34705
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34706
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34707
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34708
|
+
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)
|
34709
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources', options)
|
34710
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34711
|
+
command.request_object = health_source_object
|
33322
34712
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33323
34713
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33324
34714
|
command.params['project'] = project unless project.nil?
|
33325
34715
|
command.params['region'] = region unless region.nil?
|
33326
|
-
command.params['healthCheck'] = health_check unless health_check.nil?
|
33327
34716
|
command.query['requestId'] = request_id unless request_id.nil?
|
33328
34717
|
command.query['fields'] = fields unless fields.nil?
|
33329
34718
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -33331,6 +34720,198 @@ module Google
|
|
33331
34720
|
execute_or_queue_command(command, &block)
|
33332
34721
|
end
|
33333
34722
|
|
34723
|
+
# Lists the HealthSources for a project in the given region.
|
34724
|
+
# @param [String] project
|
34725
|
+
# Project ID for this request.
|
34726
|
+
# @param [String] region
|
34727
|
+
# Name of the region scoping this request.
|
34728
|
+
# @param [String] filter
|
34729
|
+
# A filter expression that filters resources listed in the response. Most
|
34730
|
+
# Compute resources support two types of filter expressions: expressions that
|
34731
|
+
# support regular expressions and expressions that follow API improvement
|
34732
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34733
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
34734
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
34735
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34736
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34737
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
34738
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34739
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
34740
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34741
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
34742
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
34743
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
34744
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
34745
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34746
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34747
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34748
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34749
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34750
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34751
|
+
# un-parenthesized expression with or without quotes or against multiple
|
34752
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34753
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34754
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34755
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
34756
|
+
# literal value must match the entire field. For example, to filter for
|
34757
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
34758
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
34759
|
+
# expressions.
|
34760
|
+
# @param [Fixnum] max_results
|
34761
|
+
# The maximum number of results per page that should be returned. If the number
|
34762
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34763
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34764
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34765
|
+
# @param [String] order_by
|
34766
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34767
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
34768
|
+
# descending order based on the creation timestamp using `orderBy="
|
34769
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34770
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
34771
|
+
# resources like operations so that the newest operation is returned first.
|
34772
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34773
|
+
# @param [String] page_token
|
34774
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34775
|
+
# by a previous list request to get the next page of results.
|
34776
|
+
# @param [Boolean] return_partial_success
|
34777
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34778
|
+
# failure. The default value is false. For example, when partial success
|
34779
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34780
|
+
# resources in the zone or no resources, with an error code.
|
34781
|
+
# @param [String] fields
|
34782
|
+
# Selector specifying which fields to include in a partial response.
|
34783
|
+
# @param [String] quota_user
|
34784
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34785
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34786
|
+
# @param [String] user_ip
|
34787
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34788
|
+
# @param [Google::Apis::RequestOptions] options
|
34789
|
+
# Request-specific options
|
34790
|
+
#
|
34791
|
+
# @yield [result, err] Result & error if block supplied
|
34792
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceList] parsed result object
|
34793
|
+
# @yieldparam err [StandardError] error object if request failed
|
34794
|
+
#
|
34795
|
+
# @return [Google::Apis::ComputeAlpha::HealthSourceList]
|
34796
|
+
#
|
34797
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34798
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34799
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34800
|
+
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)
|
34801
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources', options)
|
34802
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthSourceList::Representation
|
34803
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthSourceList
|
34804
|
+
command.params['project'] = project unless project.nil?
|
34805
|
+
command.params['region'] = region unless region.nil?
|
34806
|
+
command.query['filter'] = filter unless filter.nil?
|
34807
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34808
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34809
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34810
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34811
|
+
command.query['fields'] = fields unless fields.nil?
|
34812
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34813
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34814
|
+
execute_or_queue_command(command, &block)
|
34815
|
+
end
|
34816
|
+
|
34817
|
+
# Updates the specified regional HealthSource resource with the data included in
|
34818
|
+
# the request. This method supports PATCH semantics and uses the JSON merge
|
34819
|
+
# patch format and processing rules.
|
34820
|
+
# @param [String] project
|
34821
|
+
# Project ID for this request.
|
34822
|
+
# @param [String] region
|
34823
|
+
# Name of the region scoping this request.
|
34824
|
+
# @param [String] health_source
|
34825
|
+
# Name of the HealthSource to update. The name must be 1-63 characters long, and
|
34826
|
+
# comply with RFC1035.
|
34827
|
+
# @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
|
34828
|
+
# @param [String] request_id
|
34829
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34830
|
+
# that if you must retry your request, the server will know to ignore the
|
34831
|
+
# request if it has already been completed. For example, consider a situation
|
34832
|
+
# where you make an initial request and the request times out. If you make the
|
34833
|
+
# request again with the same request ID, the server can check if original
|
34834
|
+
# operation with the same request ID was received, and if so, will ignore the
|
34835
|
+
# second request. This prevents clients from accidentally creating duplicate
|
34836
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
34837
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
34838
|
+
# @param [String] fields
|
34839
|
+
# Selector specifying which fields to include in a partial response.
|
34840
|
+
# @param [String] quota_user
|
34841
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34842
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34843
|
+
# @param [String] user_ip
|
34844
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34845
|
+
# @param [Google::Apis::RequestOptions] options
|
34846
|
+
# Request-specific options
|
34847
|
+
#
|
34848
|
+
# @yield [result, err] Result & error if block supplied
|
34849
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34850
|
+
# @yieldparam err [StandardError] error object if request failed
|
34851
|
+
#
|
34852
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34853
|
+
#
|
34854
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34855
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34856
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34857
|
+
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)
|
34858
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
|
34859
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
|
34860
|
+
command.request_object = health_source_object
|
34861
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34862
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34863
|
+
command.params['project'] = project unless project.nil?
|
34864
|
+
command.params['region'] = region unless region.nil?
|
34865
|
+
command.params['healthSource'] = health_source unless health_source.nil?
|
34866
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34867
|
+
command.query['fields'] = fields unless fields.nil?
|
34868
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34869
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34870
|
+
execute_or_queue_command(command, &block)
|
34871
|
+
end
|
34872
|
+
|
34873
|
+
# Returns permissions that a caller has on the specified resource.
|
34874
|
+
# @param [String] project
|
34875
|
+
# Project ID for this request.
|
34876
|
+
# @param [String] region
|
34877
|
+
# The name of the region for this request.
|
34878
|
+
# @param [String] resource
|
34879
|
+
# Name or id of the resource for this request.
|
34880
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
34881
|
+
# @param [String] fields
|
34882
|
+
# Selector specifying which fields to include in a partial response.
|
34883
|
+
# @param [String] quota_user
|
34884
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
34885
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34886
|
+
# @param [String] user_ip
|
34887
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34888
|
+
# @param [Google::Apis::RequestOptions] options
|
34889
|
+
# Request-specific options
|
34890
|
+
#
|
34891
|
+
# @yield [result, err] Result & error if block supplied
|
34892
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
34893
|
+
# @yieldparam err [StandardError] error object if request failed
|
34894
|
+
#
|
34895
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
34896
|
+
#
|
34897
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34898
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34899
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34900
|
+
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)
|
34901
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources/{resource}/testIamPermissions', options)
|
34902
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
34903
|
+
command.request_object = test_permissions_request_object
|
34904
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
34905
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
34906
|
+
command.params['project'] = project unless project.nil?
|
34907
|
+
command.params['region'] = region unless region.nil?
|
34908
|
+
command.params['resource'] = resource unless resource.nil?
|
34909
|
+
command.query['fields'] = fields unless fields.nil?
|
34910
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34911
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34912
|
+
execute_or_queue_command(command, &block)
|
34913
|
+
end
|
34914
|
+
|
33334
34915
|
# Cancels the specified resize request. Cancelled resize request no longer waits
|
33335
34916
|
# for the resources to be provisioned. Cancel is only possible for requests that
|
33336
34917
|
# are in accepted state.
|
@@ -36756,6 +38337,146 @@ module Google
|
|
36756
38337
|
execute_or_queue_command(command, &block)
|
36757
38338
|
end
|
36758
38339
|
|
38340
|
+
# Retrieves information about the specified multi-MIG member.
|
38341
|
+
# @param [String] project
|
38342
|
+
# Project ID for this request.
|
38343
|
+
# @param [String] region
|
38344
|
+
# Name of the region for this request. Region name should conform to RFC1035.
|
38345
|
+
# @param [String] multi_mig
|
38346
|
+
# The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID.
|
38347
|
+
# @param [String] multi_mig_member
|
38348
|
+
# The name of the multi-MIG member. Name should conform to RFC1035 or be a
|
38349
|
+
# resource ID.
|
38350
|
+
# @param [String] fields
|
38351
|
+
# Selector specifying which fields to include in a partial response.
|
38352
|
+
# @param [String] quota_user
|
38353
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38354
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38355
|
+
# @param [String] user_ip
|
38356
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38357
|
+
# @param [Google::Apis::RequestOptions] options
|
38358
|
+
# Request-specific options
|
38359
|
+
#
|
38360
|
+
# @yield [result, err] Result & error if block supplied
|
38361
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MultiMigMember] parsed result object
|
38362
|
+
# @yieldparam err [StandardError] error object if request failed
|
38363
|
+
#
|
38364
|
+
# @return [Google::Apis::ComputeAlpha::MultiMigMember]
|
38365
|
+
#
|
38366
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38367
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38368
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38369
|
+
def get_region_multi_mig_member(project, region, multi_mig, multi_mig_member, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38370
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers/{multiMigMember}', options)
|
38371
|
+
command.response_representation = Google::Apis::ComputeAlpha::MultiMigMember::Representation
|
38372
|
+
command.response_class = Google::Apis::ComputeAlpha::MultiMigMember
|
38373
|
+
command.params['project'] = project unless project.nil?
|
38374
|
+
command.params['region'] = region unless region.nil?
|
38375
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
38376
|
+
command.params['multiMigMember'] = multi_mig_member unless multi_mig_member.nil?
|
38377
|
+
command.query['fields'] = fields unless fields.nil?
|
38378
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38379
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38380
|
+
execute_or_queue_command(command, &block)
|
38381
|
+
end
|
38382
|
+
|
38383
|
+
# Retrieves a list of members of a specific multi-MIG.
|
38384
|
+
# @param [String] project
|
38385
|
+
# Project ID for this request.
|
38386
|
+
# @param [String] region
|
38387
|
+
# Name of the region for this request. Region name should conform to RFC1035.
|
38388
|
+
# @param [String] multi_mig
|
38389
|
+
# The name of the multi-MIG. Name should conform to RFC1035 or be a resource ID.
|
38390
|
+
# @param [String] filter
|
38391
|
+
# A filter expression that filters resources listed in the response. Most
|
38392
|
+
# Compute resources support two types of filter expressions: expressions that
|
38393
|
+
# support regular expressions and expressions that follow API improvement
|
38394
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38395
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38396
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38397
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38398
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38399
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38400
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38401
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38402
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38403
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38404
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38405
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38406
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38407
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38408
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38409
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38410
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38411
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38412
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38413
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38414
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38415
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38416
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38417
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38418
|
+
# literal value must match the entire field. For example, to filter for
|
38419
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38420
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38421
|
+
# expressions.
|
38422
|
+
# @param [Fixnum] max_results
|
38423
|
+
# The maximum number of results per page that should be returned. If the number
|
38424
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38425
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38426
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38427
|
+
# @param [String] order_by
|
38428
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38429
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38430
|
+
# descending order based on the creation timestamp using `orderBy="
|
38431
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38432
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38433
|
+
# resources like operations so that the newest operation is returned first.
|
38434
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38435
|
+
# @param [String] page_token
|
38436
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38437
|
+
# by a previous list request to get the next page of results.
|
38438
|
+
# @param [Boolean] return_partial_success
|
38439
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38440
|
+
# failure. The default value is false. For example, when partial success
|
38441
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38442
|
+
# resources in the zone or no resources, with an error code.
|
38443
|
+
# @param [String] fields
|
38444
|
+
# Selector specifying which fields to include in a partial response.
|
38445
|
+
# @param [String] quota_user
|
38446
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38447
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38448
|
+
# @param [String] user_ip
|
38449
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38450
|
+
# @param [Google::Apis::RequestOptions] options
|
38451
|
+
# Request-specific options
|
38452
|
+
#
|
38453
|
+
# @yield [result, err] Result & error if block supplied
|
38454
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MultiMigMemberList] parsed result object
|
38455
|
+
# @yieldparam err [StandardError] error object if request failed
|
38456
|
+
#
|
38457
|
+
# @return [Google::Apis::ComputeAlpha::MultiMigMemberList]
|
38458
|
+
#
|
38459
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38460
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38461
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38462
|
+
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)
|
38463
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}/multiMigMembers', options)
|
38464
|
+
command.response_representation = Google::Apis::ComputeAlpha::MultiMigMemberList::Representation
|
38465
|
+
command.response_class = Google::Apis::ComputeAlpha::MultiMigMemberList
|
38466
|
+
command.params['project'] = project unless project.nil?
|
38467
|
+
command.params['region'] = region unless region.nil?
|
38468
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
38469
|
+
command.query['filter'] = filter unless filter.nil?
|
38470
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38471
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38472
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38473
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
38474
|
+
command.query['fields'] = fields unless fields.nil?
|
38475
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38476
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38477
|
+
execute_or_queue_command(command, &block)
|
38478
|
+
end
|
38479
|
+
|
36759
38480
|
# Deletes a multi-MIG in the specified project.
|
36760
38481
|
# @param [String] project
|
36761
38482
|
# Project ID for this request.
|