google-apis-compute_alpha 0.125.0 → 0.127.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 +8 -0
- data/lib/google/apis/compute_alpha/classes.rb +2873 -1806
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +193 -2
- data/lib/google/apis/compute_alpha/service.rb +836 -181
- metadata +2 -2
|
@@ -31234,8 +31234,10 @@ module Google
|
|
|
31234
31234
|
# This has billing implications. Projects in the hierarchy with effective
|
|
31235
31235
|
# hierarchical security policies will be automatically enrolled into Cloud
|
|
31236
31236
|
# Armor Enterprise if not already enrolled.
|
|
31237
|
-
# Use
|
|
31238
|
-
#
|
|
31237
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31238
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31239
|
+
# now disabled for most organizations. Use firewallPolicies.addAssociation
|
|
31240
|
+
# instead.
|
|
31239
31241
|
# @param [String] security_policy
|
|
31240
31242
|
# Name of the security policy to update.
|
|
31241
31243
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyAssociation] security_policy_association_object
|
|
@@ -31290,6 +31292,9 @@ module Google
|
|
|
31290
31292
|
end
|
|
31291
31293
|
|
|
31292
31294
|
# Inserts a rule into a security policy.
|
|
31295
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31296
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31297
|
+
# now disabled for most organizations. Use firewallPolicies.addRule instead.
|
|
31293
31298
|
# @param [String] security_policy
|
|
31294
31299
|
# Name of the security policy to update.
|
|
31295
31300
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
|
@@ -31339,8 +31344,10 @@ module Google
|
|
|
31339
31344
|
end
|
|
31340
31345
|
|
|
31341
31346
|
# Copies rules to the specified security policy.
|
|
31342
|
-
# Use
|
|
31343
|
-
#
|
|
31347
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31348
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31349
|
+
# now disabled for most organizations. Use firewallPolicies.cloneRules
|
|
31350
|
+
# instead.
|
|
31344
31351
|
# @param [String] security_policy
|
|
31345
31352
|
# Name of the security policy to update.
|
|
31346
31353
|
# @param [String] request_id
|
|
@@ -31390,8 +31397,9 @@ module Google
|
|
|
31390
31397
|
end
|
|
31391
31398
|
|
|
31392
31399
|
# Deletes the specified policy.
|
|
31393
|
-
# Use
|
|
31394
|
-
#
|
|
31400
|
+
# Use this API to remove Cloud Armor policies. Previously, alpha and beta
|
|
31401
|
+
# versions of this API were used to remove firewall policies. This usage is
|
|
31402
|
+
# now disabled for most organizations. Use firewallPolicies.delete instead.
|
|
31395
31403
|
# @param [String] security_policy
|
|
31396
31404
|
# Name of the security policy to delete.
|
|
31397
31405
|
# @param [String] request_id
|
|
@@ -31438,8 +31446,9 @@ module Google
|
|
|
31438
31446
|
end
|
|
31439
31447
|
|
|
31440
31448
|
# List all of the ordered rules present in a single specified policy.
|
|
31441
|
-
# Use
|
|
31442
|
-
#
|
|
31449
|
+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
|
|
31450
|
+
# versions of this API were used to read firewall policies. This usage is now
|
|
31451
|
+
# disabled for most organizations. Use firewallPolicies.get instead.
|
|
31443
31452
|
# @param [String] security_policy
|
|
31444
31453
|
# Name of the security policy to get.
|
|
31445
31454
|
# @param [String] fields
|
|
@@ -31473,8 +31482,10 @@ module Google
|
|
|
31473
31482
|
end
|
|
31474
31483
|
|
|
31475
31484
|
# Gets an association with the specified name.
|
|
31476
|
-
# Use
|
|
31477
|
-
#
|
|
31485
|
+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
|
|
31486
|
+
# versions of this API were used to read firewall policies. This usage is
|
|
31487
|
+
# now disabled for most organizations. Use firewallPolicies.getAssociation
|
|
31488
|
+
# instead.
|
|
31478
31489
|
# @param [String] security_policy
|
|
31479
31490
|
# Name of the security policy to which the queried rule belongs.
|
|
31480
31491
|
# @param [String] name
|
|
@@ -31511,8 +31522,9 @@ module Google
|
|
|
31511
31522
|
end
|
|
31512
31523
|
|
|
31513
31524
|
# Gets a rule at the specified priority.
|
|
31514
|
-
# Use
|
|
31515
|
-
#
|
|
31525
|
+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
|
|
31526
|
+
# versions of this API were used to read firewall policies. This usage is now
|
|
31527
|
+
# disabled for most organizations. Use firewallPolicies.getRule instead.
|
|
31516
31528
|
# @param [String] security_policy
|
|
31517
31529
|
# Name of the security policy to which the queried rule belongs.
|
|
31518
31530
|
# @param [Fixnum] priority
|
|
@@ -31550,8 +31562,9 @@ module Google
|
|
|
31550
31562
|
|
|
31551
31563
|
# Creates a new policy in the specified organization using the data included
|
|
31552
31564
|
# in the request.
|
|
31553
|
-
# Use
|
|
31554
|
-
#
|
|
31565
|
+
# Use this API to add Cloud Armor policies. Previously, alpha and beta
|
|
31566
|
+
# versions of this API were used to add firewall policies. This usage is now
|
|
31567
|
+
# disabled for most organizations. Use firewallPolicies.insert instead.
|
|
31555
31568
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
|
31556
31569
|
# @param [String] parent_id
|
|
31557
31570
|
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]"
|
|
@@ -31604,8 +31617,9 @@ module Google
|
|
|
31604
31617
|
|
|
31605
31618
|
# List all the policies that have been configured for the specified
|
|
31606
31619
|
# organization.
|
|
31607
|
-
# Use
|
|
31608
|
-
#
|
|
31620
|
+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
|
|
31621
|
+
# versions of this API were used to read firewall policies. This usage is now
|
|
31622
|
+
# disabled for most organizations. Use firewallPolicies.list instead.
|
|
31609
31623
|
# @param [String] filter
|
|
31610
31624
|
# A filter expression that filters resources listed in the response. Most
|
|
31611
31625
|
# Compute resources support two types of filter expressions:
|
|
@@ -31720,8 +31734,10 @@ module Google
|
|
|
31720
31734
|
end
|
|
31721
31735
|
|
|
31722
31736
|
# Lists associations of a specified target, i.e., organization or folder.
|
|
31723
|
-
# Use
|
|
31724
|
-
#
|
|
31737
|
+
# Use this API to read Cloud Armor policies. Previously, alpha and beta
|
|
31738
|
+
# versions of this API were used to read firewall policies. This usage is
|
|
31739
|
+
# now disabled for most organizations. Use firewallPolicies.listAssociations
|
|
31740
|
+
# instead.
|
|
31725
31741
|
# @param [String] target_resource
|
|
31726
31742
|
# The target resource to list associations. It is an organization, or a
|
|
31727
31743
|
# folder.
|
|
@@ -31871,8 +31887,9 @@ module Google
|
|
|
31871
31887
|
end
|
|
31872
31888
|
|
|
31873
31889
|
# Moves the specified security policy.
|
|
31874
|
-
# Use
|
|
31875
|
-
#
|
|
31890
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31891
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31892
|
+
# now disabled for most organizations. Use firewallPolicies.move instead.
|
|
31876
31893
|
# @param [String] security_policy
|
|
31877
31894
|
# Name of the security policy to update.
|
|
31878
31895
|
# @param [String] parent_id
|
|
@@ -31922,8 +31939,9 @@ module Google
|
|
|
31922
31939
|
end
|
|
31923
31940
|
|
|
31924
31941
|
# Patches the specified policy with the data included in the request.
|
|
31925
|
-
# Use
|
|
31926
|
-
#
|
|
31942
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31943
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31944
|
+
# now disabled for most organizations. Use firewallPolicies.patch instead.
|
|
31927
31945
|
# @param [String] security_policy
|
|
31928
31946
|
# Name of the security policy to update.
|
|
31929
31947
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
|
@@ -31976,8 +31994,10 @@ module Google
|
|
|
31976
31994
|
end
|
|
31977
31995
|
|
|
31978
31996
|
# Patches a rule at the specified priority.
|
|
31979
|
-
# Use
|
|
31980
|
-
#
|
|
31997
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
31998
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
31999
|
+
# now disabled for most organizations. Use firewallPolicies.patchRule
|
|
32000
|
+
# instead.
|
|
31981
32001
|
# @param [String] security_policy
|
|
31982
32002
|
# Name of the security policy to update.
|
|
31983
32003
|
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
|
@@ -32033,8 +32053,10 @@ module Google
|
|
|
32033
32053
|
end
|
|
32034
32054
|
|
|
32035
32055
|
# Removes an association for the specified security policy.
|
|
32036
|
-
# Use
|
|
32037
|
-
#
|
|
32056
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
32057
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
32058
|
+
# now disabled for most organizations. Use firewallPolicies.removeAssociation
|
|
32059
|
+
# instead.
|
|
32038
32060
|
# @param [String] security_policy
|
|
32039
32061
|
# Name of the security policy to update.
|
|
32040
32062
|
# @param [String] name
|
|
@@ -32084,6 +32106,10 @@ module Google
|
|
|
32084
32106
|
end
|
|
32085
32107
|
|
|
32086
32108
|
# Deletes a rule at the specified priority.
|
|
32109
|
+
# Use this API to modify Cloud Armor policies. Previously, alpha and beta
|
|
32110
|
+
# versions of this API were used to modify firewall policies. This usage is
|
|
32111
|
+
# now disabled for most organizations. Use firewallPolicies.removeRule
|
|
32112
|
+
# instead.
|
|
32087
32113
|
# @param [String] security_policy
|
|
32088
32114
|
# Name of the security policy to update.
|
|
32089
32115
|
# @param [Fixnum] priority
|
|
@@ -41691,6 +41717,69 @@ module Google
|
|
|
41691
41717
|
execute_or_queue_command(command, &block)
|
|
41692
41718
|
end
|
|
41693
41719
|
|
|
41720
|
+
# Flags the specified instances to be adopted to the managed instance
|
|
41721
|
+
# group. Adopting an instance does not change the instance status, but it
|
|
41722
|
+
# adds the instance to any target pools that are applied by the managed
|
|
41723
|
+
# instance group. This method increases the targetSize of the managed
|
|
41724
|
+
# instance group by the number of instances that you adopt. This operation
|
|
41725
|
+
# is marked as DONE when the action is scheduled even if the instances have
|
|
41726
|
+
# not been adopted to the group yet. You must separately verify the status
|
|
41727
|
+
# of the adopting action with the listManagedInstances method.
|
|
41728
|
+
# @param [String] project
|
|
41729
|
+
# Project ID for this request.
|
|
41730
|
+
# @param [String] region
|
|
41731
|
+
# Name of the region scoping this request. It should conform to RFC1035.
|
|
41732
|
+
# @param [String] instance_group_manager
|
|
41733
|
+
# Name of the managed instance group. It should conform to RFC1035 or be a
|
|
41734
|
+
# resource ID.
|
|
41735
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAdoptInstancesRequest] region_instance_group_managers_adopt_instances_request_object
|
|
41736
|
+
# @param [String] request_id
|
|
41737
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
41738
|
+
# that if you must retry your request, the server will know to ignore the
|
|
41739
|
+
# request if it has already been completed.
|
|
41740
|
+
# For example, consider a situation where you make an initial request and
|
|
41741
|
+
# the request times out. If you make the request again with the same
|
|
41742
|
+
# request ID, the server can check if original operation with the same
|
|
41743
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
41744
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
41745
|
+
# The request ID must be
|
|
41746
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
41747
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
41748
|
+
# @param [String] fields
|
|
41749
|
+
# Selector specifying which fields to include in a partial response.
|
|
41750
|
+
# @param [String] quota_user
|
|
41751
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
41752
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
41753
|
+
# @param [String] user_ip
|
|
41754
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
41755
|
+
# @param [Google::Apis::RequestOptions] options
|
|
41756
|
+
# Request-specific options
|
|
41757
|
+
#
|
|
41758
|
+
# @yield [result, err] Result & error if block supplied
|
|
41759
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
41760
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
41761
|
+
#
|
|
41762
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
41763
|
+
#
|
|
41764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
41765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
41766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
41767
|
+
def adopt_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_adopt_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
41768
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/adoptInstances', options)
|
|
41769
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAdoptInstancesRequest::Representation
|
|
41770
|
+
command.request_object = region_instance_group_managers_adopt_instances_request_object
|
|
41771
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
41772
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
41773
|
+
command.params['project'] = project unless project.nil?
|
|
41774
|
+
command.params['region'] = region unless region.nil?
|
|
41775
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
|
41776
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
41777
|
+
command.query['fields'] = fields unless fields.nil?
|
|
41778
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
41779
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
41780
|
+
execute_or_queue_command(command, &block)
|
|
41781
|
+
end
|
|
41782
|
+
|
|
41694
41783
|
# Apply updates to selected instances the managed instance group.
|
|
41695
41784
|
# @param [String] project
|
|
41696
41785
|
# Project ID for this request.
|
|
@@ -48463,58 +48552,14 @@ module Google
|
|
|
48463
48552
|
execute_or_queue_command(command, &block)
|
|
48464
48553
|
end
|
|
48465
48554
|
|
|
48466
|
-
#
|
|
48467
|
-
#
|
|
48468
|
-
# Project ID for this request.
|
|
48469
|
-
# @param [String] region
|
|
48470
|
-
# Name of the region scoping this request.
|
|
48471
|
-
# @param [String] security_policy
|
|
48472
|
-
# Name of the security policy to update.
|
|
48473
|
-
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
|
48474
|
-
# @param [Boolean] validate_only
|
|
48475
|
-
# If true, the request will not be committed.
|
|
48476
|
-
# @param [String] fields
|
|
48477
|
-
# Selector specifying which fields to include in a partial response.
|
|
48478
|
-
# @param [String] quota_user
|
|
48479
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
48480
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48481
|
-
# @param [String] user_ip
|
|
48482
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48483
|
-
# @param [Google::Apis::RequestOptions] options
|
|
48484
|
-
# Request-specific options
|
|
48485
|
-
#
|
|
48486
|
-
# @yield [result, err] Result & error if block supplied
|
|
48487
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
48488
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
48489
|
-
#
|
|
48490
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
48491
|
-
#
|
|
48492
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48493
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48494
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48495
|
-
def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48496
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
|
|
48497
|
-
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
|
48498
|
-
command.request_object = security_policy_rule_object
|
|
48499
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
48500
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
48501
|
-
command.params['project'] = project unless project.nil?
|
|
48502
|
-
command.params['region'] = region unless region.nil?
|
|
48503
|
-
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
48504
|
-
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
48505
|
-
command.query['fields'] = fields unless fields.nil?
|
|
48506
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48507
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48508
|
-
execute_or_queue_command(command, &block)
|
|
48509
|
-
end
|
|
48510
|
-
|
|
48511
|
-
# Deletes the specified policy.
|
|
48555
|
+
# Deletes the specified RecoverableSnapshot. Deleting a recoverable snapshot
|
|
48556
|
+
# will delete the underlying PD snapshot and is irreversible.
|
|
48512
48557
|
# @param [String] project
|
|
48513
48558
|
# Project ID for this request.
|
|
48514
48559
|
# @param [String] region
|
|
48515
|
-
# Name of the region
|
|
48516
|
-
# @param [String]
|
|
48517
|
-
# Name of the
|
|
48560
|
+
# Name of the region for this request.
|
|
48561
|
+
# @param [String] recoverable_snapshot
|
|
48562
|
+
# Name of the recoverable Snapshot resource to delete.
|
|
48518
48563
|
# @param [String] request_id
|
|
48519
48564
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
48520
48565
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -48546,13 +48591,13 @@ module Google
|
|
|
48546
48591
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48547
48592
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48548
48593
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48549
|
-
def
|
|
48550
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/
|
|
48594
|
+
def delete_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48595
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
|
|
48551
48596
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
48552
48597
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
48553
48598
|
command.params['project'] = project unless project.nil?
|
|
48554
48599
|
command.params['region'] = region unless region.nil?
|
|
48555
|
-
command.params['
|
|
48600
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
48556
48601
|
command.query['requestId'] = request_id unless request_id.nil?
|
|
48557
48602
|
command.query['fields'] = fields unless fields.nil?
|
|
48558
48603
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -48560,54 +48605,13 @@ module Google
|
|
|
48560
48605
|
execute_or_queue_command(command, &block)
|
|
48561
48606
|
end
|
|
48562
48607
|
|
|
48563
|
-
#
|
|
48564
|
-
# @param [String] project
|
|
48565
|
-
# Project ID for this request.
|
|
48566
|
-
# @param [String] region
|
|
48567
|
-
# Name of the region scoping this request.
|
|
48568
|
-
# @param [String] security_policy
|
|
48569
|
-
# Name of the security policy to get.
|
|
48570
|
-
# @param [String] fields
|
|
48571
|
-
# Selector specifying which fields to include in a partial response.
|
|
48572
|
-
# @param [String] quota_user
|
|
48573
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
|
48574
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48575
|
-
# @param [String] user_ip
|
|
48576
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48577
|
-
# @param [Google::Apis::RequestOptions] options
|
|
48578
|
-
# Request-specific options
|
|
48579
|
-
#
|
|
48580
|
-
# @yield [result, err] Result & error if block supplied
|
|
48581
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
|
|
48582
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
48583
|
-
#
|
|
48584
|
-
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
|
|
48585
|
-
#
|
|
48586
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48587
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48588
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48589
|
-
def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48590
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
|
48591
|
-
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
|
48592
|
-
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
|
|
48593
|
-
command.params['project'] = project unless project.nil?
|
|
48594
|
-
command.params['region'] = region unless region.nil?
|
|
48595
|
-
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
48596
|
-
command.query['fields'] = fields unless fields.nil?
|
|
48597
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48598
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48599
|
-
execute_or_queue_command(command, &block)
|
|
48600
|
-
end
|
|
48601
|
-
|
|
48602
|
-
# Gets a rule at the specified priority.
|
|
48608
|
+
# Returns the specified RecoverableSnapshot resource.
|
|
48603
48609
|
# @param [String] project
|
|
48604
48610
|
# Project ID for this request.
|
|
48605
48611
|
# @param [String] region
|
|
48606
|
-
# Name of the region
|
|
48607
|
-
# @param [String]
|
|
48608
|
-
# Name of the
|
|
48609
|
-
# @param [Fixnum] priority
|
|
48610
|
-
# The priority of the rule to get from the security policy.
|
|
48612
|
+
# Name of the region for this request.
|
|
48613
|
+
# @param [String] recoverable_snapshot
|
|
48614
|
+
# Name of the Snapshot resource to return.
|
|
48611
48615
|
# @param [String] fields
|
|
48612
48616
|
# Selector specifying which fields to include in a partial response.
|
|
48613
48617
|
# @param [String] quota_user
|
|
@@ -48619,49 +48623,37 @@ module Google
|
|
|
48619
48623
|
# Request-specific options
|
|
48620
48624
|
#
|
|
48621
48625
|
# @yield [result, err] Result & error if block supplied
|
|
48622
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
48626
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshot] parsed result object
|
|
48623
48627
|
# @yieldparam err [StandardError] error object if request failed
|
|
48624
48628
|
#
|
|
48625
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
48629
|
+
# @return [Google::Apis::ComputeAlpha::RecoverableSnapshot]
|
|
48626
48630
|
#
|
|
48627
48631
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48628
48632
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48629
48633
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48630
|
-
def
|
|
48631
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
|
48632
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
48633
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
48634
|
+
def get_region_recoverable_snapshot(project, region, recoverable_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48635
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}', options)
|
|
48636
|
+
command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshot::Representation
|
|
48637
|
+
command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshot
|
|
48634
48638
|
command.params['project'] = project unless project.nil?
|
|
48635
48639
|
command.params['region'] = region unless region.nil?
|
|
48636
|
-
command.params['
|
|
48637
|
-
command.query['priority'] = priority unless priority.nil?
|
|
48640
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
48638
48641
|
command.query['fields'] = fields unless fields.nil?
|
|
48639
48642
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48640
48643
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48641
48644
|
execute_or_queue_command(command, &block)
|
|
48642
48645
|
end
|
|
48643
48646
|
|
|
48644
|
-
#
|
|
48645
|
-
#
|
|
48647
|
+
# Gets the access control policy for a resource. May be empty if no such
|
|
48648
|
+
# policy or resource exists.
|
|
48646
48649
|
# @param [String] project
|
|
48647
48650
|
# Project ID for this request.
|
|
48648
48651
|
# @param [String] region
|
|
48649
|
-
#
|
|
48650
|
-
# @param [
|
|
48651
|
-
#
|
|
48652
|
-
#
|
|
48653
|
-
#
|
|
48654
|
-
# request if it has already been completed.
|
|
48655
|
-
# For example, consider a situation where you make an initial request and
|
|
48656
|
-
# the request times out. If you make the request again with the same
|
|
48657
|
-
# request ID, the server can check if original operation with the same
|
|
48658
|
-
# request ID was received, and if so, will ignore the second request. This
|
|
48659
|
-
# prevents clients from accidentally creating duplicate commitments.
|
|
48660
|
-
# The request ID must be
|
|
48661
|
-
# a valid UUID with the exception that zero UUID is not supported
|
|
48662
|
-
# (00000000-0000-0000-0000-000000000000).
|
|
48663
|
-
# @param [Boolean] validate_only
|
|
48664
|
-
# If true, the request will not be committed.
|
|
48652
|
+
# The name of the region for this request.
|
|
48653
|
+
# @param [String] resource
|
|
48654
|
+
# Name or id of the resource for this request.
|
|
48655
|
+
# @param [Fixnum] options_requested_policy_version
|
|
48656
|
+
# Requested IAM Policy version.
|
|
48665
48657
|
# @param [String] fields
|
|
48666
48658
|
# Selector specifying which fields to include in a partial response.
|
|
48667
48659
|
# @param [String] quota_user
|
|
@@ -48673,36 +48665,34 @@ module Google
|
|
|
48673
48665
|
# Request-specific options
|
|
48674
48666
|
#
|
|
48675
48667
|
# @yield [result, err] Result & error if block supplied
|
|
48676
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
48668
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
|
48677
48669
|
# @yieldparam err [StandardError] error object if request failed
|
|
48678
48670
|
#
|
|
48679
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
48671
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
|
48680
48672
|
#
|
|
48681
48673
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48682
48674
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48683
48675
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48684
|
-
def
|
|
48685
|
-
command = make_simple_command(:
|
|
48686
|
-
command.
|
|
48687
|
-
command.
|
|
48688
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
48689
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
48676
|
+
def get_region_recoverable_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48677
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/getIamPolicy', options)
|
|
48678
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
|
48679
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
|
48690
48680
|
command.params['project'] = project unless project.nil?
|
|
48691
48681
|
command.params['region'] = region unless region.nil?
|
|
48692
|
-
command.
|
|
48693
|
-
command.query['
|
|
48682
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48683
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
48694
48684
|
command.query['fields'] = fields unless fields.nil?
|
|
48695
48685
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48696
48686
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48697
48687
|
execute_or_queue_command(command, &block)
|
|
48698
48688
|
end
|
|
48699
48689
|
|
|
48700
|
-
#
|
|
48701
|
-
#
|
|
48690
|
+
# Retrieves the list of RecoverableSnapshot resources contained within
|
|
48691
|
+
# the specified region.
|
|
48702
48692
|
# @param [String] project
|
|
48703
48693
|
# Project ID for this request.
|
|
48704
48694
|
# @param [String] region
|
|
48705
|
-
# Name of the region
|
|
48695
|
+
# Name of the region for this request.
|
|
48706
48696
|
# @param [String] filter
|
|
48707
48697
|
# A filter expression that filters resources listed in the response. Most
|
|
48708
48698
|
# Compute resources support two types of filter expressions:
|
|
@@ -48790,18 +48780,18 @@ module Google
|
|
|
48790
48780
|
# Request-specific options
|
|
48791
48781
|
#
|
|
48792
48782
|
# @yield [result, err] Result & error if block supplied
|
|
48793
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
|
48783
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RecoverableSnapshotList] parsed result object
|
|
48794
48784
|
# @yieldparam err [StandardError] error object if request failed
|
|
48795
48785
|
#
|
|
48796
|
-
# @return [Google::Apis::ComputeAlpha::
|
|
48786
|
+
# @return [Google::Apis::ComputeAlpha::RecoverableSnapshotList]
|
|
48797
48787
|
#
|
|
48798
48788
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48799
48789
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48800
48790
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48801
|
-
def
|
|
48802
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
|
48803
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
|
48804
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
|
48791
|
+
def list_region_recoverable_snapshots(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)
|
|
48792
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/recoverableSnapshots', options)
|
|
48793
|
+
command.response_representation = Google::Apis::ComputeAlpha::RecoverableSnapshotList::Representation
|
|
48794
|
+
command.response_class = Google::Apis::ComputeAlpha::RecoverableSnapshotList
|
|
48805
48795
|
command.params['project'] = project unless project.nil?
|
|
48806
48796
|
command.params['region'] = region unless region.nil?
|
|
48807
48797
|
command.query['filter'] = filter unless filter.nil?
|
|
@@ -48815,19 +48805,13 @@ module Google
|
|
|
48815
48805
|
execute_or_queue_command(command, &block)
|
|
48816
48806
|
end
|
|
48817
48807
|
|
|
48818
|
-
#
|
|
48819
|
-
# clear fields in the policy, leave the fields empty and specify them in the
|
|
48820
|
-
# updateMask. This cannot be used to be update the rules in the policy.
|
|
48821
|
-
# Please use the per rule methods like addRule, patchRule, and removeRule
|
|
48822
|
-
# instead.
|
|
48808
|
+
# Recovers the specified RecoverableSnapshot.
|
|
48823
48809
|
# @param [String] project
|
|
48824
|
-
# Project
|
|
48810
|
+
# Project Id of the request
|
|
48825
48811
|
# @param [String] region
|
|
48826
|
-
# Name of the region
|
|
48827
|
-
# @param [String]
|
|
48828
|
-
# Name of the
|
|
48829
|
-
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
|
48830
|
-
# @param [Array<String>, String] paths
|
|
48812
|
+
# Name of the region for this request.
|
|
48813
|
+
# @param [String] recoverable_snapshot
|
|
48814
|
+
# Name of the recoverable resource to recover
|
|
48831
48815
|
# @param [String] request_id
|
|
48832
48816
|
# An optional request ID to identify requests. Specify a unique request ID so
|
|
48833
48817
|
# that if you must retry your request, the server will know to ignore the
|
|
@@ -48840,8 +48824,512 @@ module Google
|
|
|
48840
48824
|
# The request ID must be
|
|
48841
48825
|
# a valid UUID with the exception that zero UUID is not supported
|
|
48842
48826
|
# (00000000-0000-0000-0000-000000000000).
|
|
48843
|
-
# @param [String]
|
|
48844
|
-
#
|
|
48827
|
+
# @param [String] snapshot_name
|
|
48828
|
+
# Optional. Name of the snapshot after the recovery
|
|
48829
|
+
# The name will be 1-63 characters long, and comply withRFC1035.
|
|
48830
|
+
# Specifically, the name will be 1-63 characters long and match the regular
|
|
48831
|
+
# expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the first
|
|
48832
|
+
# character will be a lowercase letter, and all following characters can be
|
|
48833
|
+
# a dash, lowercase letter, or digit, except the last character, which cannot
|
|
48834
|
+
# be a dash.
|
|
48835
|
+
# @param [String] fields
|
|
48836
|
+
# Selector specifying which fields to include in a partial response.
|
|
48837
|
+
# @param [String] quota_user
|
|
48838
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48839
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48840
|
+
# @param [String] user_ip
|
|
48841
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48842
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48843
|
+
# Request-specific options
|
|
48844
|
+
#
|
|
48845
|
+
# @yield [result, err] Result & error if block supplied
|
|
48846
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
48847
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48848
|
+
#
|
|
48849
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
48850
|
+
#
|
|
48851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48854
|
+
def recover_region_recoverable_snapshot(project, region, recoverable_snapshot, request_id: nil, snapshot_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48855
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{recoverableSnapshot}/recover', options)
|
|
48856
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
48857
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
48858
|
+
command.params['project'] = project unless project.nil?
|
|
48859
|
+
command.params['region'] = region unless region.nil?
|
|
48860
|
+
command.params['recoverableSnapshot'] = recoverable_snapshot unless recoverable_snapshot.nil?
|
|
48861
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
48862
|
+
command.query['snapshotName'] = snapshot_name unless snapshot_name.nil?
|
|
48863
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48864
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48865
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48866
|
+
execute_or_queue_command(command, &block)
|
|
48867
|
+
end
|
|
48868
|
+
|
|
48869
|
+
# Sets the access control policy on the specified resource.
|
|
48870
|
+
# Replaces any existing policy.
|
|
48871
|
+
# @param [String] project
|
|
48872
|
+
# Project ID for this request.
|
|
48873
|
+
# @param [String] region
|
|
48874
|
+
# The name of the region for this request.
|
|
48875
|
+
# @param [String] resource
|
|
48876
|
+
# Name or id of the resource for this request.
|
|
48877
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
|
48878
|
+
# @param [String] fields
|
|
48879
|
+
# Selector specifying which fields to include in a partial response.
|
|
48880
|
+
# @param [String] quota_user
|
|
48881
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48882
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48883
|
+
# @param [String] user_ip
|
|
48884
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48885
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48886
|
+
# Request-specific options
|
|
48887
|
+
#
|
|
48888
|
+
# @yield [result, err] Result & error if block supplied
|
|
48889
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
|
48890
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48891
|
+
#
|
|
48892
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
|
48893
|
+
#
|
|
48894
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48895
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48896
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48897
|
+
def set_region_recoverable_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48898
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/setIamPolicy', options)
|
|
48899
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
|
48900
|
+
command.request_object = region_set_policy_request_object
|
|
48901
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
|
48902
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
|
48903
|
+
command.params['project'] = project unless project.nil?
|
|
48904
|
+
command.params['region'] = region unless region.nil?
|
|
48905
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48906
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48908
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48909
|
+
execute_or_queue_command(command, &block)
|
|
48910
|
+
end
|
|
48911
|
+
|
|
48912
|
+
# Returns permissions that a caller has on the specified resource.
|
|
48913
|
+
# @param [String] project
|
|
48914
|
+
# Project ID for this request.
|
|
48915
|
+
# @param [String] region
|
|
48916
|
+
# The name of the region for this request.
|
|
48917
|
+
# @param [String] resource
|
|
48918
|
+
# Name or id of the resource for this request.
|
|
48919
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
|
48920
|
+
# @param [String] fields
|
|
48921
|
+
# Selector specifying which fields to include in a partial response.
|
|
48922
|
+
# @param [String] quota_user
|
|
48923
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48924
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48925
|
+
# @param [String] user_ip
|
|
48926
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48927
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48928
|
+
# Request-specific options
|
|
48929
|
+
#
|
|
48930
|
+
# @yield [result, err] Result & error if block supplied
|
|
48931
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
|
48932
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48933
|
+
#
|
|
48934
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
|
48935
|
+
#
|
|
48936
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48937
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48938
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48939
|
+
def test_region_recoverable_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48940
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/recoverableSnapshots/{resource}/testIamPermissions', options)
|
|
48941
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
|
48942
|
+
command.request_object = test_permissions_request_object
|
|
48943
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
|
48944
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
|
48945
|
+
command.params['project'] = project unless project.nil?
|
|
48946
|
+
command.params['region'] = region unless region.nil?
|
|
48947
|
+
command.params['resource'] = resource unless resource.nil?
|
|
48948
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48949
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48950
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48951
|
+
execute_or_queue_command(command, &block)
|
|
48952
|
+
end
|
|
48953
|
+
|
|
48954
|
+
# Inserts a rule into a security policy.
|
|
48955
|
+
# @param [String] project
|
|
48956
|
+
# Project ID for this request.
|
|
48957
|
+
# @param [String] region
|
|
48958
|
+
# Name of the region scoping this request.
|
|
48959
|
+
# @param [String] security_policy
|
|
48960
|
+
# Name of the security policy to update.
|
|
48961
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
|
|
48962
|
+
# @param [Boolean] validate_only
|
|
48963
|
+
# If true, the request will not be committed.
|
|
48964
|
+
# @param [String] fields
|
|
48965
|
+
# Selector specifying which fields to include in a partial response.
|
|
48966
|
+
# @param [String] quota_user
|
|
48967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
48968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
48969
|
+
# @param [String] user_ip
|
|
48970
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
48971
|
+
# @param [Google::Apis::RequestOptions] options
|
|
48972
|
+
# Request-specific options
|
|
48973
|
+
#
|
|
48974
|
+
# @yield [result, err] Result & error if block supplied
|
|
48975
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
48976
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
48977
|
+
#
|
|
48978
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
48979
|
+
#
|
|
48980
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
48981
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
48982
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
48983
|
+
def add_region_security_policy_rule(project, region, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
48984
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/addRule', options)
|
|
48985
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
|
48986
|
+
command.request_object = security_policy_rule_object
|
|
48987
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
48988
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
48989
|
+
command.params['project'] = project unless project.nil?
|
|
48990
|
+
command.params['region'] = region unless region.nil?
|
|
48991
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
48992
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
48993
|
+
command.query['fields'] = fields unless fields.nil?
|
|
48994
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
48995
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
48996
|
+
execute_or_queue_command(command, &block)
|
|
48997
|
+
end
|
|
48998
|
+
|
|
48999
|
+
# Deletes the specified policy.
|
|
49000
|
+
# @param [String] project
|
|
49001
|
+
# Project ID for this request.
|
|
49002
|
+
# @param [String] region
|
|
49003
|
+
# Name of the region scoping this request.
|
|
49004
|
+
# @param [String] security_policy
|
|
49005
|
+
# Name of the security policy to delete.
|
|
49006
|
+
# @param [String] request_id
|
|
49007
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
49008
|
+
# that if you must retry your request, the server will know to ignore the
|
|
49009
|
+
# request if it has already been completed.
|
|
49010
|
+
# For example, consider a situation where you make an initial request and
|
|
49011
|
+
# the request times out. If you make the request again with the same
|
|
49012
|
+
# request ID, the server can check if original operation with the same
|
|
49013
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
49014
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
49015
|
+
# The request ID must be
|
|
49016
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
49017
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
49018
|
+
# @param [String] fields
|
|
49019
|
+
# Selector specifying which fields to include in a partial response.
|
|
49020
|
+
# @param [String] quota_user
|
|
49021
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49022
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49023
|
+
# @param [String] user_ip
|
|
49024
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49025
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49026
|
+
# Request-specific options
|
|
49027
|
+
#
|
|
49028
|
+
# @yield [result, err] Result & error if block supplied
|
|
49029
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
49030
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49031
|
+
#
|
|
49032
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
49033
|
+
#
|
|
49034
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49035
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49036
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49037
|
+
def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49038
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
|
49039
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
49040
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
49041
|
+
command.params['project'] = project unless project.nil?
|
|
49042
|
+
command.params['region'] = region unless region.nil?
|
|
49043
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
49044
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
49045
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49047
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49048
|
+
execute_or_queue_command(command, &block)
|
|
49049
|
+
end
|
|
49050
|
+
|
|
49051
|
+
# List all of the ordered rules present in a single specified policy.
|
|
49052
|
+
# @param [String] project
|
|
49053
|
+
# Project ID for this request.
|
|
49054
|
+
# @param [String] region
|
|
49055
|
+
# Name of the region scoping this request.
|
|
49056
|
+
# @param [String] security_policy
|
|
49057
|
+
# Name of the security policy to get.
|
|
49058
|
+
# @param [String] fields
|
|
49059
|
+
# Selector specifying which fields to include in a partial response.
|
|
49060
|
+
# @param [String] quota_user
|
|
49061
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49062
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49063
|
+
# @param [String] user_ip
|
|
49064
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49065
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49066
|
+
# Request-specific options
|
|
49067
|
+
#
|
|
49068
|
+
# @yield [result, err] Result & error if block supplied
|
|
49069
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
|
|
49070
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49071
|
+
#
|
|
49072
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
|
|
49073
|
+
#
|
|
49074
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49075
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49076
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49077
|
+
def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49078
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
|
49079
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
|
49080
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
|
|
49081
|
+
command.params['project'] = project unless project.nil?
|
|
49082
|
+
command.params['region'] = region unless region.nil?
|
|
49083
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
49084
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49085
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49086
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49087
|
+
execute_or_queue_command(command, &block)
|
|
49088
|
+
end
|
|
49089
|
+
|
|
49090
|
+
# Gets a rule at the specified priority.
|
|
49091
|
+
# @param [String] project
|
|
49092
|
+
# Project ID for this request.
|
|
49093
|
+
# @param [String] region
|
|
49094
|
+
# Name of the region scoping this request.
|
|
49095
|
+
# @param [String] security_policy
|
|
49096
|
+
# Name of the security policy to which the queried rule belongs.
|
|
49097
|
+
# @param [Fixnum] priority
|
|
49098
|
+
# The priority of the rule to get from the security policy.
|
|
49099
|
+
# @param [String] fields
|
|
49100
|
+
# Selector specifying which fields to include in a partial response.
|
|
49101
|
+
# @param [String] quota_user
|
|
49102
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49103
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49104
|
+
# @param [String] user_ip
|
|
49105
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49106
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49107
|
+
# Request-specific options
|
|
49108
|
+
#
|
|
49109
|
+
# @yield [result, err] Result & error if block supplied
|
|
49110
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyRule] parsed result object
|
|
49111
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49112
|
+
#
|
|
49113
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyRule]
|
|
49114
|
+
#
|
|
49115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49118
|
+
def get_region_security_policy_rule(project, region, security_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49119
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}/getRule', options)
|
|
49120
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
|
|
49121
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyRule
|
|
49122
|
+
command.params['project'] = project unless project.nil?
|
|
49123
|
+
command.params['region'] = region unless region.nil?
|
|
49124
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
|
49125
|
+
command.query['priority'] = priority unless priority.nil?
|
|
49126
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49127
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49128
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49129
|
+
execute_or_queue_command(command, &block)
|
|
49130
|
+
end
|
|
49131
|
+
|
|
49132
|
+
# Creates a new policy in the specified project using the data included in
|
|
49133
|
+
# the request.
|
|
49134
|
+
# @param [String] project
|
|
49135
|
+
# Project ID for this request.
|
|
49136
|
+
# @param [String] region
|
|
49137
|
+
# Name of the region scoping this request.
|
|
49138
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
|
49139
|
+
# @param [String] request_id
|
|
49140
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
49141
|
+
# that if you must retry your request, the server will know to ignore the
|
|
49142
|
+
# request if it has already been completed.
|
|
49143
|
+
# For example, consider a situation where you make an initial request and
|
|
49144
|
+
# the request times out. If you make the request again with the same
|
|
49145
|
+
# request ID, the server can check if original operation with the same
|
|
49146
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
49147
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
49148
|
+
# The request ID must be
|
|
49149
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
49150
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
49151
|
+
# @param [Boolean] validate_only
|
|
49152
|
+
# If true, the request will not be committed.
|
|
49153
|
+
# @param [String] fields
|
|
49154
|
+
# Selector specifying which fields to include in a partial response.
|
|
49155
|
+
# @param [String] quota_user
|
|
49156
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49157
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49158
|
+
# @param [String] user_ip
|
|
49159
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49160
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49161
|
+
# Request-specific options
|
|
49162
|
+
#
|
|
49163
|
+
# @yield [result, err] Result & error if block supplied
|
|
49164
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
|
49165
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49166
|
+
#
|
|
49167
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
|
49168
|
+
#
|
|
49169
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49170
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49171
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49172
|
+
def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
49173
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
|
|
49174
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
|
49175
|
+
command.request_object = security_policy_object
|
|
49176
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
|
49177
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
|
49178
|
+
command.params['project'] = project unless project.nil?
|
|
49179
|
+
command.params['region'] = region unless region.nil?
|
|
49180
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
|
49181
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
|
49182
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49184
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49185
|
+
execute_or_queue_command(command, &block)
|
|
49186
|
+
end
|
|
49187
|
+
|
|
49188
|
+
# List all the policies that have been configured for the specified project
|
|
49189
|
+
# and region.
|
|
49190
|
+
# @param [String] project
|
|
49191
|
+
# Project ID for this request.
|
|
49192
|
+
# @param [String] region
|
|
49193
|
+
# Name of the region scoping this request.
|
|
49194
|
+
# @param [String] filter
|
|
49195
|
+
# A filter expression that filters resources listed in the response. Most
|
|
49196
|
+
# Compute resources support two types of filter expressions:
|
|
49197
|
+
# expressions that support regular expressions and expressions that follow
|
|
49198
|
+
# API improvement proposal AIP-160.
|
|
49199
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
49200
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
49201
|
+
# operator, and the value that you want to use for filtering. The value
|
|
49202
|
+
# must be a string, a number, or a boolean. The operator
|
|
49203
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
49204
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
49205
|
+
# exclude instances named `example-instance` by specifying
|
|
49206
|
+
# `name != example-instance`.
|
|
49207
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
49208
|
+
# For example, to find all objects with `owner` label use:
|
|
49209
|
+
# ```
|
|
49210
|
+
# labels.owner:*
|
|
49211
|
+
# ```
|
|
49212
|
+
# You can also filter nested fields. For example, you could specify
|
|
49213
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
49214
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
49215
|
+
# on nested fields to filter based onresource labels.
|
|
49216
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
49217
|
+
# parentheses. For example:
|
|
49218
|
+
# ```
|
|
49219
|
+
# (scheduling.automaticRestart = true)
|
|
49220
|
+
# (cpuPlatform = "Intel Skylake")
|
|
49221
|
+
# ```
|
|
49222
|
+
# By default, each expression is an `AND` expression. However, you
|
|
49223
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
49224
|
+
# For example:
|
|
49225
|
+
# ```
|
|
49226
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
49227
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
49228
|
+
# (scheduling.automaticRestart = true)
|
|
49229
|
+
# ```
|
|
49230
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
49231
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
49232
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
49233
|
+
# `fieldname eq unquoted literal`
|
|
49234
|
+
# `fieldname eq 'single quoted literal'`
|
|
49235
|
+
# `fieldname eq "double quoted literal"`
|
|
49236
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
49237
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
49238
|
+
# library syntax.
|
|
49239
|
+
# The literal value must match the entire field.
|
|
49240
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
49241
|
+
# you would use `name ne .*instance`.
|
|
49242
|
+
# You cannot combine constraints on multiple fields using regular
|
|
49243
|
+
# expressions.
|
|
49244
|
+
# @param [Fixnum] max_results
|
|
49245
|
+
# The maximum number of results per page that should be returned.
|
|
49246
|
+
# If the number of available results is larger than `maxResults`,
|
|
49247
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
49248
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
49249
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
49250
|
+
# @param [String] order_by
|
|
49251
|
+
# Sorts list results by a certain order. By default, results
|
|
49252
|
+
# are returned in alphanumerical order based on the resource name.
|
|
49253
|
+
# You can also sort results in descending order based on the creation
|
|
49254
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
49255
|
+
# results based on the `creationTimestamp` field in
|
|
49256
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
49257
|
+
# resources like operations so that the newest operation is returned first.
|
|
49258
|
+
# Currently, only sorting by `name` or
|
|
49259
|
+
# `creationTimestamp desc` is supported.
|
|
49260
|
+
# @param [String] page_token
|
|
49261
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
49262
|
+
# `nextPageToken` returned by a previous list request to get
|
|
49263
|
+
# the next page of results.
|
|
49264
|
+
# @param [Boolean] return_partial_success
|
|
49265
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
49266
|
+
# of failure. The default value is false.
|
|
49267
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
49268
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
49269
|
+
# with an error code.
|
|
49270
|
+
# @param [String] fields
|
|
49271
|
+
# Selector specifying which fields to include in a partial response.
|
|
49272
|
+
# @param [String] quota_user
|
|
49273
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
49274
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
49275
|
+
# @param [String] user_ip
|
|
49276
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
49277
|
+
# @param [Google::Apis::RequestOptions] options
|
|
49278
|
+
# Request-specific options
|
|
49279
|
+
#
|
|
49280
|
+
# @yield [result, err] Result & error if block supplied
|
|
49281
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
|
|
49282
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
49283
|
+
#
|
|
49284
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
|
|
49285
|
+
#
|
|
49286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
49287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
49288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
49289
|
+
def list_region_security_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)
|
|
49290
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
|
|
49291
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
|
|
49292
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
|
|
49293
|
+
command.params['project'] = project unless project.nil?
|
|
49294
|
+
command.params['region'] = region unless region.nil?
|
|
49295
|
+
command.query['filter'] = filter unless filter.nil?
|
|
49296
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
49297
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
49298
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
49299
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
49300
|
+
command.query['fields'] = fields unless fields.nil?
|
|
49301
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
49302
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
49303
|
+
execute_or_queue_command(command, &block)
|
|
49304
|
+
end
|
|
49305
|
+
|
|
49306
|
+
# Patches the specified policy with the data included in the request. To
|
|
49307
|
+
# clear fields in the policy, leave the fields empty and specify them in the
|
|
49308
|
+
# updateMask. This cannot be used to be update the rules in the policy.
|
|
49309
|
+
# Please use the per rule methods like addRule, patchRule, and removeRule
|
|
49310
|
+
# instead.
|
|
49311
|
+
# @param [String] project
|
|
49312
|
+
# Project ID for this request.
|
|
49313
|
+
# @param [String] region
|
|
49314
|
+
# Name of the region scoping this request.
|
|
49315
|
+
# @param [String] security_policy
|
|
49316
|
+
# Name of the security policy to update.
|
|
49317
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
|
49318
|
+
# @param [Array<String>, String] paths
|
|
49319
|
+
# @param [String] request_id
|
|
49320
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
|
49321
|
+
# that if you must retry your request, the server will know to ignore the
|
|
49322
|
+
# request if it has already been completed.
|
|
49323
|
+
# For example, consider a situation where you make an initial request and
|
|
49324
|
+
# the request times out. If you make the request again with the same
|
|
49325
|
+
# request ID, the server can check if original operation with the same
|
|
49326
|
+
# request ID was received, and if so, will ignore the second request. This
|
|
49327
|
+
# prevents clients from accidentally creating duplicate commitments.
|
|
49328
|
+
# The request ID must be
|
|
49329
|
+
# a valid UUID with the exception that zero UUID is not supported
|
|
49330
|
+
# (00000000-0000-0000-0000-000000000000).
|
|
49331
|
+
# @param [String] update_mask
|
|
49332
|
+
# Indicates fields to be cleared as part of this request.
|
|
48845
49333
|
# @param [String] fields
|
|
48846
49334
|
# Selector specifying which fields to include in a partial response.
|
|
48847
49335
|
# @param [String] quota_user
|
|
@@ -52703,6 +53191,173 @@ module Google
|
|
|
52703
53191
|
execute_or_queue_command(command, &block)
|
|
52704
53192
|
end
|
|
52705
53193
|
|
|
53194
|
+
# Retrieves information about the specified reservation slot.
|
|
53195
|
+
# @param [String] project
|
|
53196
|
+
# Project ID for this request.
|
|
53197
|
+
# @param [String] zone
|
|
53198
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
53199
|
+
# @param [String] parent_name
|
|
53200
|
+
# The name of the parent reservation and parent block. In the format of
|
|
53201
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
|
|
53202
|
+
# reservationSubBlocks/`reservation_sub_block_name`
|
|
53203
|
+
# @param [String] reservation_slot
|
|
53204
|
+
# The name of the reservation slot.
|
|
53205
|
+
# Name should conform to RFC1035 or be a resource ID.
|
|
53206
|
+
# @param [String] fields
|
|
53207
|
+
# Selector specifying which fields to include in a partial response.
|
|
53208
|
+
# @param [String] quota_user
|
|
53209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53211
|
+
# @param [String] user_ip
|
|
53212
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53213
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53214
|
+
# Request-specific options
|
|
53215
|
+
#
|
|
53216
|
+
# @yield [result, err] Result & error if block supplied
|
|
53217
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationSlotsGetResponse] parsed result object
|
|
53218
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53219
|
+
#
|
|
53220
|
+
# @return [Google::Apis::ComputeAlpha::ReservationSlotsGetResponse]
|
|
53221
|
+
#
|
|
53222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53225
|
+
def get_reservation_slot(project, zone, parent_name, reservation_slot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
53226
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots/{reservationSlot}', options)
|
|
53227
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationSlotsGetResponse::Representation
|
|
53228
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationSlotsGetResponse
|
|
53229
|
+
command.params['project'] = project unless project.nil?
|
|
53230
|
+
command.params['zone'] = zone unless zone.nil?
|
|
53231
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
53232
|
+
command.params['reservationSlot'] = reservation_slot unless reservation_slot.nil?
|
|
53233
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53234
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53235
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53236
|
+
execute_or_queue_command(command, &block)
|
|
53237
|
+
end
|
|
53238
|
+
|
|
53239
|
+
# Retrieves a list of reservation slots under a single reservation.
|
|
53240
|
+
# @param [String] project
|
|
53241
|
+
# Project ID for this request.
|
|
53242
|
+
# @param [String] zone
|
|
53243
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
|
53244
|
+
# @param [String] parent_name
|
|
53245
|
+
# The name of the parent reservation and parent block. In the format of
|
|
53246
|
+
# reservations/`reservation_name`/reservationBlocks/`reservation_block_name`/
|
|
53247
|
+
# reservationSubBlocks/`reservation_sub_block_name`
|
|
53248
|
+
# @param [String] filter
|
|
53249
|
+
# A filter expression that filters resources listed in the response. Most
|
|
53250
|
+
# Compute resources support two types of filter expressions:
|
|
53251
|
+
# expressions that support regular expressions and expressions that follow
|
|
53252
|
+
# API improvement proposal AIP-160.
|
|
53253
|
+
# These two types of filter expressions cannot be mixed in one request.
|
|
53254
|
+
# If you want to use AIP-160, your expression must specify the field name, an
|
|
53255
|
+
# operator, and the value that you want to use for filtering. The value
|
|
53256
|
+
# must be a string, a number, or a boolean. The operator
|
|
53257
|
+
# must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
|
|
53258
|
+
# For example, if you are filtering Compute Engine instances, you can
|
|
53259
|
+
# exclude instances named `example-instance` by specifying
|
|
53260
|
+
# `name != example-instance`.
|
|
53261
|
+
# The `:*` comparison can be used to test whether a key has been defined.
|
|
53262
|
+
# For example, to find all objects with `owner` label use:
|
|
53263
|
+
# ```
|
|
53264
|
+
# labels.owner:*
|
|
53265
|
+
# ```
|
|
53266
|
+
# You can also filter nested fields. For example, you could specify
|
|
53267
|
+
# `scheduling.automaticRestart = false` to include instances only
|
|
53268
|
+
# if they are not scheduled for automatic restarts. You can use filtering
|
|
53269
|
+
# on nested fields to filter based onresource labels.
|
|
53270
|
+
# To filter on multiple expressions, provide each separate expression within
|
|
53271
|
+
# parentheses. For example:
|
|
53272
|
+
# ```
|
|
53273
|
+
# (scheduling.automaticRestart = true)
|
|
53274
|
+
# (cpuPlatform = "Intel Skylake")
|
|
53275
|
+
# ```
|
|
53276
|
+
# By default, each expression is an `AND` expression. However, you
|
|
53277
|
+
# can include `AND` and `OR` expressions explicitly.
|
|
53278
|
+
# For example:
|
|
53279
|
+
# ```
|
|
53280
|
+
# (cpuPlatform = "Intel Skylake") OR
|
|
53281
|
+
# (cpuPlatform = "Intel Broadwell") AND
|
|
53282
|
+
# (scheduling.automaticRestart = true)
|
|
53283
|
+
# ```
|
|
53284
|
+
# If you want to use a regular expression, use the `eq` (equal) or `ne`
|
|
53285
|
+
# (not equal) operator against a single un-parenthesized expression with or
|
|
53286
|
+
# without quotes or against multiple parenthesized expressions. Examples:
|
|
53287
|
+
# `fieldname eq unquoted literal`
|
|
53288
|
+
# `fieldname eq 'single quoted literal'`
|
|
53289
|
+
# `fieldname eq "double quoted literal"`
|
|
53290
|
+
# `(fieldname1 eq literal) (fieldname2 ne "literal")`
|
|
53291
|
+
# The literal value is interpreted as a regular expression using GoogleRE2
|
|
53292
|
+
# library syntax.
|
|
53293
|
+
# The literal value must match the entire field.
|
|
53294
|
+
# For example, to filter for instances that do not end with name "instance",
|
|
53295
|
+
# you would use `name ne .*instance`.
|
|
53296
|
+
# You cannot combine constraints on multiple fields using regular
|
|
53297
|
+
# expressions.
|
|
53298
|
+
# @param [Fixnum] max_results
|
|
53299
|
+
# The maximum number of results per page that should be returned.
|
|
53300
|
+
# If the number of available results is larger than `maxResults`,
|
|
53301
|
+
# Compute Engine returns a `nextPageToken` that can be used to get
|
|
53302
|
+
# the next page of results in subsequent list requests. Acceptable values are
|
|
53303
|
+
# `0` to `500`, inclusive. (Default: `500`)
|
|
53304
|
+
# @param [String] order_by
|
|
53305
|
+
# Sorts list results by a certain order. By default, results
|
|
53306
|
+
# are returned in alphanumerical order based on the resource name.
|
|
53307
|
+
# You can also sort results in descending order based on the creation
|
|
53308
|
+
# timestamp using `orderBy="creationTimestamp desc"`. This sorts
|
|
53309
|
+
# results based on the `creationTimestamp` field in
|
|
53310
|
+
# reverse chronological order (newest result first). Use this to sort
|
|
53311
|
+
# resources like operations so that the newest operation is returned first.
|
|
53312
|
+
# Currently, only sorting by `name` or
|
|
53313
|
+
# `creationTimestamp desc` is supported.
|
|
53314
|
+
# @param [String] page_token
|
|
53315
|
+
# Specifies a page token to use. Set `pageToken` to the
|
|
53316
|
+
# `nextPageToken` returned by a previous list request to get
|
|
53317
|
+
# the next page of results.
|
|
53318
|
+
# @param [Boolean] return_partial_success
|
|
53319
|
+
# Opt-in for partial success behavior which provides partial results in case
|
|
53320
|
+
# of failure. The default value is false.
|
|
53321
|
+
# For example, when partial success behavior is enabled, aggregatedList for a
|
|
53322
|
+
# single zone scope either returns all resources in the zone or no resources,
|
|
53323
|
+
# with an error code.
|
|
53324
|
+
# @param [String] fields
|
|
53325
|
+
# Selector specifying which fields to include in a partial response.
|
|
53326
|
+
# @param [String] quota_user
|
|
53327
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
53328
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
53329
|
+
# @param [String] user_ip
|
|
53330
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
|
53331
|
+
# @param [Google::Apis::RequestOptions] options
|
|
53332
|
+
# Request-specific options
|
|
53333
|
+
#
|
|
53334
|
+
# @yield [result, err] Result & error if block supplied
|
|
53335
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ReservationSlotsListResponse] parsed result object
|
|
53336
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
53337
|
+
#
|
|
53338
|
+
# @return [Google::Apis::ComputeAlpha::ReservationSlotsListResponse]
|
|
53339
|
+
#
|
|
53340
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
53341
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
53342
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
53343
|
+
def list_reservation_slots(project, zone, parent_name, 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)
|
|
53344
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/{+parentName}/reservationSlots', options)
|
|
53345
|
+
command.response_representation = Google::Apis::ComputeAlpha::ReservationSlotsListResponse::Representation
|
|
53346
|
+
command.response_class = Google::Apis::ComputeAlpha::ReservationSlotsListResponse
|
|
53347
|
+
command.params['project'] = project unless project.nil?
|
|
53348
|
+
command.params['zone'] = zone unless zone.nil?
|
|
53349
|
+
command.params['parentName'] = parent_name unless parent_name.nil?
|
|
53350
|
+
command.query['filter'] = filter unless filter.nil?
|
|
53351
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
53352
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
53353
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
53354
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
|
53355
|
+
command.query['fields'] = fields unless fields.nil?
|
|
53356
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
53357
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
53358
|
+
execute_or_queue_command(command, &block)
|
|
53359
|
+
end
|
|
53360
|
+
|
|
52706
53361
|
# Retrieves information about the specified reservation subBlock.
|
|
52707
53362
|
# @param [String] project
|
|
52708
53363
|
# Project ID for this request.
|