google-apis-compute_alpha 0.108.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 +5 -0
- data/lib/google/apis/compute_alpha/classes.rb +7671 -5191
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +928 -30
- data/lib/google/apis/compute_alpha/service.rb +1660 -159
- metadata +4 -4
@@ -3743,6 +3743,60 @@ module Google
|
|
3743
3743
|
execute_or_queue_command(command, &block)
|
3744
3744
|
end
|
3745
3745
|
|
3746
|
+
# Sets the labels on many disks at once. To learn more about labels, read the
|
3747
|
+
# Labeling Resources documentation.
|
3748
|
+
# @param [String] project
|
3749
|
+
# Project ID for this request.
|
3750
|
+
# @param [String] zone
|
3751
|
+
# The name of the zone for this request.
|
3752
|
+
# @param [Google::Apis::ComputeAlpha::BulkZoneSetLabelsRequest] bulk_zone_set_labels_request_object
|
3753
|
+
# @param [String] request_id
|
3754
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3755
|
+
# that if you must retry your request, the server will know to ignore the
|
3756
|
+
# request if it has already been completed. For example, consider a situation
|
3757
|
+
# where you make an initial request and the request times out. If you make the
|
3758
|
+
# request again with the same request ID, the server can check if original
|
3759
|
+
# operation with the same request ID was received, and if so, will ignore the
|
3760
|
+
# second request. This prevents clients from accidentally creating duplicate
|
3761
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
3762
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
3763
|
+
# @param [String] resource
|
3764
|
+
# Name or id of the resource for this request.
|
3765
|
+
# @param [String] fields
|
3766
|
+
# Selector specifying which fields to include in a partial response.
|
3767
|
+
# @param [String] quota_user
|
3768
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3769
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3770
|
+
# @param [String] user_ip
|
3771
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
3772
|
+
# @param [Google::Apis::RequestOptions] options
|
3773
|
+
# Request-specific options
|
3774
|
+
#
|
3775
|
+
# @yield [result, err] Result & error if block supplied
|
3776
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3777
|
+
# @yieldparam err [StandardError] error object if request failed
|
3778
|
+
#
|
3779
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3780
|
+
#
|
3781
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3782
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3783
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3784
|
+
def bulk_disk_set_labels(project, zone, bulk_zone_set_labels_request_object = nil, request_id: nil, resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3785
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/bulkSetLabels', options)
|
3786
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkZoneSetLabelsRequest::Representation
|
3787
|
+
command.request_object = bulk_zone_set_labels_request_object
|
3788
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3789
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3790
|
+
command.params['project'] = project unless project.nil?
|
3791
|
+
command.params['zone'] = zone unless zone.nil?
|
3792
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3793
|
+
command.query['resource'] = resource unless resource.nil?
|
3794
|
+
command.query['fields'] = fields unless fields.nil?
|
3795
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3796
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3797
|
+
execute_or_queue_command(command, &block)
|
3798
|
+
end
|
3799
|
+
|
3746
3800
|
# Creates a snapshot of a specified persistent disk. For regular snapshot
|
3747
3801
|
# creation, consider using snapshots.insert instead, as that method supports
|
3748
3802
|
# more features, such as creating snapshots in a project different from the
|
@@ -18364,6 +18418,46 @@ module Google
|
|
18364
18418
|
execute_or_queue_command(command, &block)
|
18365
18419
|
end
|
18366
18420
|
|
18421
|
+
# Create Interconnect Attachments with redundancy by creating them in a
|
18422
|
+
# specified interconnect attachment group.
|
18423
|
+
# @param [String] project
|
18424
|
+
# Project ID for this request.
|
18425
|
+
# @param [String] interconnect_attachment_group
|
18426
|
+
# Name of the group resource to create members for.
|
18427
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsCreateMembersRequest] interconnect_attachment_groups_create_members_request_object
|
18428
|
+
# @param [String] fields
|
18429
|
+
# Selector specifying which fields to include in a partial response.
|
18430
|
+
# @param [String] quota_user
|
18431
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
18432
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
18433
|
+
# @param [String] user_ip
|
18434
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
18435
|
+
# @param [Google::Apis::RequestOptions] options
|
18436
|
+
# Request-specific options
|
18437
|
+
#
|
18438
|
+
# @yield [result, err] Result & error if block supplied
|
18439
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
18440
|
+
# @yieldparam err [StandardError] error object if request failed
|
18441
|
+
#
|
18442
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
18443
|
+
#
|
18444
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
18445
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
18446
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
18447
|
+
def create_interconnect_attachment_group_members(project, interconnect_attachment_group, interconnect_attachment_groups_create_members_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
18448
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectAttachmentGroups/{interconnectAttachmentGroup}/createMembers', options)
|
18449
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectAttachmentGroupsCreateMembersRequest::Representation
|
18450
|
+
command.request_object = interconnect_attachment_groups_create_members_request_object
|
18451
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
18452
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
18453
|
+
command.params['project'] = project unless project.nil?
|
18454
|
+
command.params['interconnectAttachmentGroup'] = interconnect_attachment_group unless interconnect_attachment_group.nil?
|
18455
|
+
command.query['fields'] = fields unless fields.nil?
|
18456
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
18457
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
18458
|
+
execute_or_queue_command(command, &block)
|
18459
|
+
end
|
18460
|
+
|
18367
18461
|
# Deletes the specified InterconnectAttachmentGroup in the given scope
|
18368
18462
|
# @param [String] project
|
18369
18463
|
# Project ID for this request.
|
@@ -19379,6 +19473,46 @@ module Google
|
|
19379
19473
|
execute_or_queue_command(command, &block)
|
19380
19474
|
end
|
19381
19475
|
|
19476
|
+
# Create Interconnects with redundancy by creating them in a specified
|
19477
|
+
# interconnect group.
|
19478
|
+
# @param [String] project
|
19479
|
+
# Project ID for this request.
|
19480
|
+
# @param [String] interconnect_group
|
19481
|
+
# Name of the group resource to create members for.
|
19482
|
+
# @param [Google::Apis::ComputeAlpha::InterconnectGroupsCreateMembersRequest] interconnect_groups_create_members_request_object
|
19483
|
+
# @param [String] fields
|
19484
|
+
# Selector specifying which fields to include in a partial response.
|
19485
|
+
# @param [String] quota_user
|
19486
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19487
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19488
|
+
# @param [String] user_ip
|
19489
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19490
|
+
# @param [Google::Apis::RequestOptions] options
|
19491
|
+
# Request-specific options
|
19492
|
+
#
|
19493
|
+
# @yield [result, err] Result & error if block supplied
|
19494
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
19495
|
+
# @yieldparam err [StandardError] error object if request failed
|
19496
|
+
#
|
19497
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
19498
|
+
#
|
19499
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19500
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19501
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19502
|
+
def create_interconnect_group_members(project, interconnect_group, interconnect_groups_create_members_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19503
|
+
command = make_simple_command(:post, 'projects/{project}/global/interconnectGroups/{interconnectGroup}/createMembers', options)
|
19504
|
+
command.request_representation = Google::Apis::ComputeAlpha::InterconnectGroupsCreateMembersRequest::Representation
|
19505
|
+
command.request_object = interconnect_groups_create_members_request_object
|
19506
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
19507
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
19508
|
+
command.params['project'] = project unless project.nil?
|
19509
|
+
command.params['interconnectGroup'] = interconnect_group unless interconnect_group.nil?
|
19510
|
+
command.query['fields'] = fields unless fields.nil?
|
19511
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19512
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19513
|
+
execute_or_queue_command(command, &block)
|
19514
|
+
end
|
19515
|
+
|
19382
19516
|
# Deletes the specified InterconnectGroup in the given scope
|
19383
19517
|
# @param [String] project
|
19384
19518
|
# Project ID for this request.
|
@@ -26973,7 +27107,9 @@ module Google
|
|
26973
27107
|
execute_or_queue_command(command, &block)
|
26974
27108
|
end
|
26975
27109
|
|
26976
|
-
# 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.
|
26977
27113
|
# @param [String] security_policy
|
26978
27114
|
# Name of the security policy to update.
|
26979
27115
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
|
@@ -27072,7 +27208,8 @@ module Google
|
|
27072
27208
|
execute_or_queue_command(command, &block)
|
27073
27209
|
end
|
27074
27210
|
|
27075
|
-
# 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.
|
27076
27213
|
# @param [String] security_policy
|
27077
27214
|
# Name of the security policy to update.
|
27078
27215
|
# @param [String] request_id
|
@@ -27119,7 +27256,8 @@ module Google
|
|
27119
27256
|
execute_or_queue_command(command, &block)
|
27120
27257
|
end
|
27121
27258
|
|
27122
|
-
# Deletes the specified policy.
|
27259
|
+
# Deletes the specified policy. Use of this API to remove firewall policies is
|
27260
|
+
# deprecated. Use firewallPolicies.delete instead.
|
27123
27261
|
# @param [String] security_policy
|
27124
27262
|
# Name of the security policy to delete.
|
27125
27263
|
# @param [String] request_id
|
@@ -27163,7 +27301,9 @@ module Google
|
|
27163
27301
|
execute_or_queue_command(command, &block)
|
27164
27302
|
end
|
27165
27303
|
|
27166
|
-
# 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.
|
27167
27307
|
# @param [String] security_policy
|
27168
27308
|
# Name of the security policy to get.
|
27169
27309
|
# @param [String] fields
|
@@ -27196,7 +27336,9 @@ module Google
|
|
27196
27336
|
execute_or_queue_command(command, &block)
|
27197
27337
|
end
|
27198
27338
|
|
27199
|
-
# 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.
|
27200
27342
|
# @param [String] security_policy
|
27201
27343
|
# Name of the security policy to which the queried rule belongs.
|
27202
27344
|
# @param [String] name
|
@@ -27232,7 +27374,8 @@ module Google
|
|
27232
27374
|
execute_or_queue_command(command, &block)
|
27233
27375
|
end
|
27234
27376
|
|
27235
|
-
# 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.
|
27236
27379
|
# @param [String] security_policy
|
27237
27380
|
# Name of the security policy to which the queried rule belongs.
|
27238
27381
|
# @param [Fixnum] priority
|
@@ -27269,7 +27412,8 @@ module Google
|
|
27269
27412
|
end
|
27270
27413
|
|
27271
27414
|
# Creates a new policy in the specified project using the data included in the
|
27272
|
-
# request.
|
27415
|
+
# request. Use of this API to insert firewall policies is deprecated. Use
|
27416
|
+
# firewallPolicies.insert instead.
|
27273
27417
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
27274
27418
|
# @param [String] parent_id
|
27275
27419
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
@@ -27318,7 +27462,9 @@ module Google
|
|
27318
27462
|
execute_or_queue_command(command, &block)
|
27319
27463
|
end
|
27320
27464
|
|
27321
|
-
# 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.
|
27322
27468
|
# @param [String] filter
|
27323
27469
|
# A filter expression that filters resources listed in the response. Most
|
27324
27470
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -27409,7 +27555,9 @@ module Google
|
|
27409
27555
|
execute_or_queue_command(command, &block)
|
27410
27556
|
end
|
27411
27557
|
|
27412
|
-
# 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.
|
27413
27561
|
# @param [String] target_resource
|
27414
27562
|
# The target resource to list associations. It is an organization, or a folder.
|
27415
27563
|
# @param [String] fields
|
@@ -27534,7 +27682,8 @@ module Google
|
|
27534
27682
|
execute_or_queue_command(command, &block)
|
27535
27683
|
end
|
27536
27684
|
|
27537
|
-
# 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.
|
27538
27687
|
# @param [String] security_policy
|
27539
27688
|
# Name of the security policy to update.
|
27540
27689
|
# @param [String] parent_id
|
@@ -27581,7 +27730,9 @@ module Google
|
|
27581
27730
|
execute_or_queue_command(command, &block)
|
27582
27731
|
end
|
27583
27732
|
|
27584
|
-
# 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.
|
27585
27736
|
# @param [String] security_policy
|
27586
27737
|
# Name of the security policy to update.
|
27587
27738
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
@@ -27628,7 +27779,8 @@ module Google
|
|
27628
27779
|
execute_or_queue_command(command, &block)
|
27629
27780
|
end
|
27630
27781
|
|
27631
|
-
# 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.
|
27632
27784
|
# @param [String] security_policy
|
27633
27785
|
# Name of the security policy to update.
|
27634
27786
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
@@ -27678,7 +27830,9 @@ module Google
|
|
27678
27830
|
execute_or_queue_command(command, &block)
|
27679
27831
|
end
|
27680
27832
|
|
27681
|
-
# 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.
|
27682
27836
|
# @param [String] security_policy
|
27683
27837
|
# Name of the security policy to update.
|
27684
27838
|
# @param [String] name
|
@@ -31392,13 +31546,13 @@ module Google
|
|
31392
31546
|
|
31393
31547
|
# Updates the specified commitment with the data included in the request. Update
|
31394
31548
|
# is performed only on selected fields included as part of update-mask. Only the
|
31395
|
-
# following fields can be
|
31549
|
+
# following fields can be updated: auto_renew and plan.
|
31396
31550
|
# @param [String] project
|
31397
31551
|
# Project ID for this request.
|
31398
31552
|
# @param [String] region
|
31399
31553
|
# Name of the region for this request.
|
31400
31554
|
# @param [String] commitment
|
31401
|
-
# Name of the commitment
|
31555
|
+
# Name of the commitment that you want to update.
|
31402
31556
|
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
31403
31557
|
# @param [Array<String>, String] paths
|
31404
31558
|
# @param [String] request_id
|
@@ -31450,13 +31604,14 @@ module Google
|
|
31450
31604
|
execute_or_queue_command(command, &block)
|
31451
31605
|
end
|
31452
31606
|
|
31453
|
-
# Transfers GPUs or
|
31607
|
+
# Transfers GPUs or Local SSD disks between reservations that are attached to
|
31608
|
+
# the same commitment.
|
31454
31609
|
# @param [String] project
|
31455
31610
|
# Project ID for this request.
|
31456
31611
|
# @param [String] region
|
31457
31612
|
# Name of the region for this request.
|
31458
31613
|
# @param [String] commitment
|
31459
|
-
# Name of the commitment for which the
|
31614
|
+
# Name of the commitment for which the reservations are being updated.
|
31460
31615
|
# @param [Google::Apis::ComputeAlpha::RegionCommitmentsUpdateReservationsRequest] region_commitments_update_reservations_request_object
|
31461
31616
|
# @param [String] request_id
|
31462
31617
|
# An optional request ID to identify requests. Specify a unique request ID so
|
@@ -31503,139 +31658,576 @@ module Google
|
|
31503
31658
|
execute_or_queue_command(command, &block)
|
31504
31659
|
end
|
31505
31660
|
|
31506
|
-
#
|
31507
|
-
#
|
31508
|
-
#
|
31509
|
-
# @param [String] region
|
31510
|
-
# Name of the region for this request.
|
31511
|
-
# @param [String] fields
|
31512
|
-
# Selector specifying which fields to include in a partial response.
|
31513
|
-
# @param [String] quota_user
|
31514
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31515
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31516
|
-
# @param [String] user_ip
|
31517
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31518
|
-
# @param [Google::Apis::RequestOptions] options
|
31519
|
-
# Request-specific options
|
31520
|
-
#
|
31521
|
-
# @yield [result, err] Result & error if block supplied
|
31522
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskSettings] parsed result object
|
31523
|
-
# @yieldparam err [StandardError] error object if request failed
|
31524
|
-
#
|
31525
|
-
# @return [Google::Apis::ComputeAlpha::DiskSettings]
|
31526
|
-
#
|
31527
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31528
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31529
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31530
|
-
def get_region_disk_setting(project, region, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31531
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskSettings', options)
|
31532
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31533
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskSettings
|
31534
|
-
command.params['project'] = project unless project.nil?
|
31535
|
-
command.params['region'] = region unless region.nil?
|
31536
|
-
command.query['fields'] = fields unless fields.nil?
|
31537
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31538
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31539
|
-
execute_or_queue_command(command, &block)
|
31540
|
-
end
|
31541
|
-
|
31542
|
-
# Patch Regional Disk Settings
|
31543
|
-
# @param [String] project
|
31544
|
-
# Project ID for this request.
|
31545
|
-
# @param [String] region
|
31546
|
-
# Name of the region for this request.
|
31547
|
-
# @param [Google::Apis::ComputeAlpha::DiskSettings] disk_settings_object
|
31548
|
-
# @param [String] request_id
|
31549
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
31550
|
-
# that if you must retry your request, the server will know to ignore the
|
31551
|
-
# request if it has already been completed. For example, consider a situation
|
31552
|
-
# where you make an initial request and the request times out. If you make the
|
31553
|
-
# request again with the same request ID, the server can check if original
|
31554
|
-
# operation with the same request ID was received, and if so, will ignore the
|
31555
|
-
# second request. This prevents clients from accidentally creating duplicate
|
31556
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
31557
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31558
|
-
# @param [String] update_mask
|
31559
|
-
# update_mask indicates fields to be updated as part of this request.
|
31560
|
-
# @param [String] fields
|
31561
|
-
# Selector specifying which fields to include in a partial response.
|
31562
|
-
# @param [String] quota_user
|
31563
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31564
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31565
|
-
# @param [String] user_ip
|
31566
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31567
|
-
# @param [Google::Apis::RequestOptions] options
|
31568
|
-
# Request-specific options
|
31569
|
-
#
|
31570
|
-
# @yield [result, err] Result & error if block supplied
|
31571
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31572
|
-
# @yieldparam err [StandardError] error object if request failed
|
31573
|
-
#
|
31574
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
31575
|
-
#
|
31576
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31577
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31578
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31579
|
-
def patch_region_disk_setting(project, region, disk_settings_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31580
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/diskSettings', options)
|
31581
|
-
command.request_representation = Google::Apis::ComputeAlpha::DiskSettings::Representation
|
31582
|
-
command.request_object = disk_settings_object
|
31583
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31584
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31585
|
-
command.params['project'] = project unless project.nil?
|
31586
|
-
command.params['region'] = region unless region.nil?
|
31587
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
31588
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
31589
|
-
command.query['fields'] = fields unless fields.nil?
|
31590
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31591
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31592
|
-
execute_or_queue_command(command, &block)
|
31593
|
-
end
|
31594
|
-
|
31595
|
-
# Returns the specified regional disk type.
|
31596
|
-
# @param [String] project
|
31597
|
-
# Project ID for this request.
|
31598
|
-
# @param [String] region
|
31599
|
-
# The name of the region for this request.
|
31600
|
-
# @param [String] disk_type
|
31601
|
-
# Name of the disk type to return.
|
31602
|
-
# @param [String] fields
|
31603
|
-
# Selector specifying which fields to include in a partial response.
|
31604
|
-
# @param [String] quota_user
|
31605
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
31606
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31607
|
-
# @param [String] user_ip
|
31608
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31609
|
-
# @param [Google::Apis::RequestOptions] options
|
31610
|
-
# Request-specific options
|
31611
|
-
#
|
31612
|
-
# @yield [result, err] Result & error if block supplied
|
31613
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::DiskType] parsed result object
|
31614
|
-
# @yieldparam err [StandardError] error object if request failed
|
31615
|
-
#
|
31616
|
-
# @return [Google::Apis::ComputeAlpha::DiskType]
|
31617
|
-
#
|
31618
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31619
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31620
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31621
|
-
def get_region_disk_type(project, region, disk_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
31622
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/diskTypes/{diskType}', options)
|
31623
|
-
command.response_representation = Google::Apis::ComputeAlpha::DiskType::Representation
|
31624
|
-
command.response_class = Google::Apis::ComputeAlpha::DiskType
|
31625
|
-
command.params['project'] = project unless project.nil?
|
31626
|
-
command.params['region'] = region unless region.nil?
|
31627
|
-
command.params['diskType'] = disk_type unless disk_type.nil?
|
31628
|
-
command.query['fields'] = fields unless fields.nil?
|
31629
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31630
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
31631
|
-
execute_or_queue_command(command, &block)
|
31632
|
-
end
|
31633
|
-
|
31634
|
-
# Retrieves a list of regional disk types available to the specified project.
|
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`.
|
31635
31664
|
# @param [String] project
|
31636
|
-
#
|
31637
|
-
# @param [String]
|
31638
|
-
#
|
31665
|
+
# Name of the project scoping this request.
|
31666
|
+
# @param [String] filter
|
31667
|
+
# A filter expression that filters resources listed in the response. Most
|
31668
|
+
# Compute resources support two types of filter expressions: expressions that
|
31669
|
+
# support regular expressions and expressions that follow API improvement
|
31670
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
31671
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
31672
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
31673
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
31674
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
31675
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
31676
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
31677
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
31678
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
31679
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
31680
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
31681
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
31682
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
31683
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
31684
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
31685
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
31686
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
31687
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
31688
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
31689
|
+
# un-parenthesized expression with or without quotes or against multiple
|
31690
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
31691
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
31692
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
31693
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
31694
|
+
# literal value must match the entire field. For example, to filter for
|
31695
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
31696
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
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.
|
31705
|
+
# @param [Fixnum] max_results
|
31706
|
+
# The maximum number of results per page that should be returned. If the number
|
31707
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
31708
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
31709
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
31710
|
+
# @param [String] order_by
|
31711
|
+
# Sorts list results by a certain order. By default, results are returned in
|
31712
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
31713
|
+
# descending order based on the creation timestamp using `orderBy="
|
31714
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
31715
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
31716
|
+
# resources like operations so that the newest operation is returned first.
|
31717
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
31718
|
+
# @param [String] page_token
|
31719
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
31720
|
+
# by a previous list request to get the next page of results.
|
31721
|
+
# @param [Boolean] return_partial_success
|
31722
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
31723
|
+
# failure. The default value is false. For example, when partial success
|
31724
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
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.
|
31729
|
+
# @param [String] fields
|
31730
|
+
# Selector specifying which fields to include in a partial response.
|
31731
|
+
# @param [String] quota_user
|
31732
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31733
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31734
|
+
# @param [String] user_ip
|
31735
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31736
|
+
# @param [Google::Apis::RequestOptions] options
|
31737
|
+
# Request-specific options
|
31738
|
+
#
|
31739
|
+
# @yield [result, err] Result & error if block supplied
|
31740
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList] parsed result object
|
31741
|
+
# @yieldparam err [StandardError] error object if request failed
|
31742
|
+
#
|
31743
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheckAggregatedList]
|
31744
|
+
#
|
31745
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31746
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31747
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
31752
|
+
command.params['project'] = project unless project.nil?
|
31753
|
+
command.query['filter'] = filter unless filter.nil?
|
31754
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
31755
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
31756
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
31757
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
31758
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
31759
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
31760
|
+
command.query['fields'] = fields unless fields.nil?
|
31761
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31762
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31763
|
+
execute_or_queue_command(command, &block)
|
31764
|
+
end
|
31765
|
+
|
31766
|
+
# Deletes the specified CompositeHealthCheck in the given region
|
31767
|
+
# @param [String] project
|
31768
|
+
# Project ID for this request.
|
31769
|
+
# @param [String] region
|
31770
|
+
# Name of the region scoping this request.
|
31771
|
+
# @param [String] composite_health_check
|
31772
|
+
# Name of the CompositeHealthCheck resource to delete.
|
31773
|
+
# @param [String] request_id
|
31774
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31775
|
+
# that if you must retry your request, the server will know to ignore the
|
31776
|
+
# request if it has already been completed. For example, consider a situation
|
31777
|
+
# where you make an initial request and the request times out. If you make the
|
31778
|
+
# request again with the same request ID, the server can check if original
|
31779
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31780
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31781
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31782
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31783
|
+
# @param [String] fields
|
31784
|
+
# Selector specifying which fields to include in a partial response.
|
31785
|
+
# @param [String] quota_user
|
31786
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31787
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31788
|
+
# @param [String] user_ip
|
31789
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31790
|
+
# @param [Google::Apis::RequestOptions] options
|
31791
|
+
# Request-specific options
|
31792
|
+
#
|
31793
|
+
# @yield [result, err] Result & error if block supplied
|
31794
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31795
|
+
# @yieldparam err [StandardError] error object if request failed
|
31796
|
+
#
|
31797
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31798
|
+
#
|
31799
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31800
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31801
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
31804
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31805
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31806
|
+
command.params['project'] = project unless project.nil?
|
31807
|
+
command.params['region'] = region unless region.nil?
|
31808
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31809
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31810
|
+
command.query['fields'] = fields unless fields.nil?
|
31811
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31812
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31813
|
+
execute_or_queue_command(command, &block)
|
31814
|
+
end
|
31815
|
+
|
31816
|
+
# Returns the specified CompositeHealthCheck resource in the given region.
|
31817
|
+
# @param [String] project
|
31818
|
+
# Project ID for this request.
|
31819
|
+
# @param [String] region
|
31820
|
+
# Name of the region scoping this request.
|
31821
|
+
# @param [String] composite_health_check
|
31822
|
+
# Name of the CompositeHealthCheck resource to return.
|
31823
|
+
# @param [String] fields
|
31824
|
+
# Selector specifying which fields to include in a partial response.
|
31825
|
+
# @param [String] quota_user
|
31826
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31827
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31828
|
+
# @param [String] user_ip
|
31829
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31830
|
+
# @param [Google::Apis::RequestOptions] options
|
31831
|
+
# Request-specific options
|
31832
|
+
#
|
31833
|
+
# @yield [result, err] Result & error if block supplied
|
31834
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CompositeHealthCheck] parsed result object
|
31835
|
+
# @yieldparam err [StandardError] error object if request failed
|
31836
|
+
#
|
31837
|
+
# @return [Google::Apis::ComputeAlpha::CompositeHealthCheck]
|
31838
|
+
#
|
31839
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31840
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31841
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
31842
|
+
def 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
|
31846
|
+
command.params['project'] = project unless project.nil?
|
31847
|
+
command.params['region'] = region unless region.nil?
|
31848
|
+
command.params['compositeHealthCheck'] = composite_health_check unless composite_health_check.nil?
|
31849
|
+
command.query['fields'] = fields unless fields.nil?
|
31850
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31851
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31852
|
+
execute_or_queue_command(command, &block)
|
31853
|
+
end
|
31854
|
+
|
31855
|
+
# Create a CompositeHealthCheck in the specified project in the given region
|
31856
|
+
# using the parameters that are included in the request.
|
31857
|
+
# @param [String] project
|
31858
|
+
# Project ID for this request.
|
31859
|
+
# @param [String] region
|
31860
|
+
# Name of the region scoping this request.
|
31861
|
+
# @param [Google::Apis::ComputeAlpha::CompositeHealthCheck] composite_health_check_object
|
31862
|
+
# @param [String] request_id
|
31863
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
31864
|
+
# that if you must retry your request, the server will know to ignore the
|
31865
|
+
# request if it has already been completed. For example, consider a situation
|
31866
|
+
# where you make an initial request and the request times out. If you make the
|
31867
|
+
# request again with the same request ID, the server can check if original
|
31868
|
+
# operation with the same request ID was received, and if so, will ignore the
|
31869
|
+
# second request. This prevents clients from accidentally creating duplicate
|
31870
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
31871
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
31872
|
+
# @param [String] fields
|
31873
|
+
# Selector specifying which fields to include in a partial response.
|
31874
|
+
# @param [String] quota_user
|
31875
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
31876
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
31877
|
+
# @param [String] user_ip
|
31878
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
31879
|
+
# @param [Google::Apis::RequestOptions] options
|
31880
|
+
# Request-specific options
|
31881
|
+
#
|
31882
|
+
# @yield [result, err] Result & error if block supplied
|
31883
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
31884
|
+
# @yieldparam err [StandardError] error object if request failed
|
31885
|
+
#
|
31886
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
31887
|
+
#
|
31888
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
31889
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
31890
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
31895
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
31896
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
31897
|
+
command.params['project'] = project unless project.nil?
|
31898
|
+
command.params['region'] = region unless region.nil?
|
31899
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
31900
|
+
command.query['fields'] = fields unless fields.nil?
|
31901
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
31902
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
31903
|
+
execute_or_queue_command(command, &block)
|
31904
|
+
end
|
31905
|
+
|
31906
|
+
# Lists the CompositeHealthChecks for a project in the given region.
|
31907
|
+
# @param [String] project
|
31908
|
+
# Project ID for this request.
|
31909
|
+
# @param [String] region
|
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.
|
31639
32231
|
# @param [String] filter
|
31640
32232
|
# A filter expression that filters resources listed in the response. Most
|
31641
32233
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -32710,15 +33302,305 @@ module Google
|
|
32710
33302
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32711
33303
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32712
33304
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32713
|
-
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)
|
32714
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
|
32715
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
32716
|
-
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
|
32717
33599
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
32718
33600
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
32719
33601
|
command.params['project'] = project unless project.nil?
|
32720
33602
|
command.params['region'] = region unless region.nil?
|
32721
|
-
command.params['
|
33603
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
32722
33604
|
command.query['requestId'] = request_id unless request_id.nil?
|
32723
33605
|
command.query['fields'] = fields unless fields.nil?
|
32724
33606
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -32726,6 +33608,48 @@ module Google
|
|
32726
33608
|
execute_or_queue_command(command, &block)
|
32727
33609
|
end
|
32728
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
|
+
|
32729
33653
|
# Retrieves the list of all HealthCheckService resources, regional and global,
|
32730
33654
|
# available to the specified project. To prevent failure, Google recommends that
|
32731
33655
|
# you set the `returnPartialSuccess` parameter to `true`.
|
@@ -33535,15 +34459,260 @@ module Google
|
|
33535
34459
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33536
34460
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33537
34461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33538
|
-
def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33539
|
-
command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
|
33540
|
-
command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
|
33541
|
-
command.request_object = health_check_object
|
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
|
33542
34712
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
33543
34713
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
33544
34714
|
command.params['project'] = project unless project.nil?
|
33545
34715
|
command.params['region'] = region unless region.nil?
|
33546
|
-
command.params['healthCheck'] = health_check unless health_check.nil?
|
33547
34716
|
command.query['requestId'] = request_id unless request_id.nil?
|
33548
34717
|
command.query['fields'] = fields unless fields.nil?
|
33549
34718
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -33551,6 +34720,198 @@ module Google
|
|
33551
34720
|
execute_or_queue_command(command, &block)
|
33552
34721
|
end
|
33553
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
|
+
|
33554
34915
|
# Cancels the specified resize request. Cancelled resize request no longer waits
|
33555
34916
|
# for the resources to be provisioned. Cancel is only possible for requests that
|
33556
34917
|
# are in accepted state.
|
@@ -36976,6 +38337,146 @@ module Google
|
|
36976
38337
|
execute_or_queue_command(command, &block)
|
36977
38338
|
end
|
36978
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
|
+
|
36979
38480
|
# Deletes a multi-MIG in the specified project.
|
36980
38481
|
# @param [String] project
|
36981
38482
|
# Project ID for this request.
|