google-apis-compute_alpha 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/compute_alpha/classes.rb +1099 -141
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +369 -0
- data/lib/google/apis/compute_alpha/service.rb +1054 -3
- metadata +4 -4
@@ -2945,7 +2945,7 @@ module Google
|
|
2945
2945
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
2946
2946
|
# supported (00000000-0000-0000-0000-000000000000).
|
2947
2947
|
# @param [String] source_image
|
2948
|
-
#
|
2948
|
+
# Source image to restore onto a disk. This field is optional.
|
2949
2949
|
# @param [String] fields
|
2950
2950
|
# Selector specifying which fields to include in a partial response.
|
2951
2951
|
# @param [String] quota_user
|
@@ -3655,6 +3655,817 @@ module Google
|
|
3655
3655
|
execute_or_queue_command(command, &block)
|
3656
3656
|
end
|
3657
3657
|
|
3658
|
+
# Inserts an association for the specified firewall policy.
|
3659
|
+
# @param [String] firewall_policy
|
3660
|
+
# Name of the firewall policy to update.
|
3661
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
|
3662
|
+
# @param [Boolean] replace_existing_association
|
3663
|
+
# Indicates whether or not to replace it if an association of the attachment
|
3664
|
+
# already exists. This is false by default, in which case an error will be
|
3665
|
+
# returned if an association already exists.
|
3666
|
+
# @param [String] request_id
|
3667
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3668
|
+
# that if you must retry your request, the server will know to ignore the
|
3669
|
+
# request if it has already been completed.
|
3670
|
+
# For example, consider a situation where you make an initial request and the
|
3671
|
+
# request times out. If you make the request again with the same request ID, the
|
3672
|
+
# server can check if original operation with the same request ID was received,
|
3673
|
+
# and if so, will ignore the second request. This prevents clients from
|
3674
|
+
# accidentally creating duplicate commitments.
|
3675
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3676
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3677
|
+
# @param [String] fields
|
3678
|
+
# Selector specifying which fields to include in a partial response.
|
3679
|
+
# @param [String] quota_user
|
3680
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3681
|
+
# characters.
|
3682
|
+
# @param [String] user_ip
|
3683
|
+
# Deprecated. Please use quotaUser instead.
|
3684
|
+
# @param [Google::Apis::RequestOptions] options
|
3685
|
+
# Request-specific options
|
3686
|
+
#
|
3687
|
+
# @yield [result, err] Result & error if block supplied
|
3688
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3689
|
+
# @yieldparam err [StandardError] error object if request failed
|
3690
|
+
#
|
3691
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3692
|
+
#
|
3693
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3694
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3695
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3696
|
+
def add_firewall_policy_association(firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3697
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addAssociation', options)
|
3698
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
3699
|
+
command.request_object = firewall_policy_association_object
|
3700
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3701
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3702
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3703
|
+
command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
|
3704
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3705
|
+
command.query['fields'] = fields unless fields.nil?
|
3706
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3707
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3708
|
+
execute_or_queue_command(command, &block)
|
3709
|
+
end
|
3710
|
+
|
3711
|
+
# Inserts a rule into a firewall policy.
|
3712
|
+
# @param [String] firewall_policy
|
3713
|
+
# Name of the firewall policy to update.
|
3714
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
3715
|
+
# @param [String] request_id
|
3716
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3717
|
+
# that if you must retry your request, the server will know to ignore the
|
3718
|
+
# request if it has already been completed.
|
3719
|
+
# For example, consider a situation where you make an initial request and the
|
3720
|
+
# request times out. If you make the request again with the same request ID, the
|
3721
|
+
# server can check if original operation with the same request ID was received,
|
3722
|
+
# and if so, will ignore the second request. This prevents clients from
|
3723
|
+
# accidentally creating duplicate commitments.
|
3724
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3725
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3726
|
+
# @param [String] fields
|
3727
|
+
# Selector specifying which fields to include in a partial response.
|
3728
|
+
# @param [String] quota_user
|
3729
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3730
|
+
# characters.
|
3731
|
+
# @param [String] user_ip
|
3732
|
+
# Deprecated. Please use quotaUser instead.
|
3733
|
+
# @param [Google::Apis::RequestOptions] options
|
3734
|
+
# Request-specific options
|
3735
|
+
#
|
3736
|
+
# @yield [result, err] Result & error if block supplied
|
3737
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3738
|
+
# @yieldparam err [StandardError] error object if request failed
|
3739
|
+
#
|
3740
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3741
|
+
#
|
3742
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3743
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3744
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3745
|
+
def add_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3746
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
3747
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
3748
|
+
command.request_object = firewall_policy_rule_object
|
3749
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3750
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3751
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3752
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3753
|
+
command.query['fields'] = fields unless fields.nil?
|
3754
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3755
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3756
|
+
execute_or_queue_command(command, &block)
|
3757
|
+
end
|
3758
|
+
|
3759
|
+
# Copies rules to the specified firewall policy.
|
3760
|
+
# @param [String] firewall_policy
|
3761
|
+
# Name of the firewall policy to update.
|
3762
|
+
# @param [String] request_id
|
3763
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3764
|
+
# that if you must retry your request, the server will know to ignore the
|
3765
|
+
# request if it has already been completed.
|
3766
|
+
# For example, consider a situation where you make an initial request and the
|
3767
|
+
# request times out. If you make the request again with the same request ID, the
|
3768
|
+
# server can check if original operation with the same request ID was received,
|
3769
|
+
# and if so, will ignore the second request. This prevents clients from
|
3770
|
+
# accidentally creating duplicate commitments.
|
3771
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3772
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3773
|
+
# @param [String] source_firewall_policy
|
3774
|
+
# The firewall policy from which to copy rules.
|
3775
|
+
# @param [String] fields
|
3776
|
+
# Selector specifying which fields to include in a partial response.
|
3777
|
+
# @param [String] quota_user
|
3778
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3779
|
+
# characters.
|
3780
|
+
# @param [String] user_ip
|
3781
|
+
# Deprecated. Please use quotaUser instead.
|
3782
|
+
# @param [Google::Apis::RequestOptions] options
|
3783
|
+
# Request-specific options
|
3784
|
+
#
|
3785
|
+
# @yield [result, err] Result & error if block supplied
|
3786
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3787
|
+
# @yieldparam err [StandardError] error object if request failed
|
3788
|
+
#
|
3789
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3790
|
+
#
|
3791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3794
|
+
def clone_firewall_policy_rules(firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3795
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/cloneRules', options)
|
3796
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3797
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3798
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3799
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3800
|
+
command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
|
3801
|
+
command.query['fields'] = fields unless fields.nil?
|
3802
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3803
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3804
|
+
execute_or_queue_command(command, &block)
|
3805
|
+
end
|
3806
|
+
|
3807
|
+
# Deletes the specified policy.
|
3808
|
+
# @param [String] firewall_policy
|
3809
|
+
# Name of the firewall policy to delete.
|
3810
|
+
# @param [String] request_id
|
3811
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
3812
|
+
# that if you must retry your request, the server will know to ignore the
|
3813
|
+
# request if it has already been completed.
|
3814
|
+
# For example, consider a situation where you make an initial request and the
|
3815
|
+
# request times out. If you make the request again with the same request ID, the
|
3816
|
+
# server can check if original operation with the same request ID was received,
|
3817
|
+
# and if so, will ignore the second request. This prevents clients from
|
3818
|
+
# accidentally creating duplicate commitments.
|
3819
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
3820
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
3821
|
+
# @param [String] fields
|
3822
|
+
# Selector specifying which fields to include in a partial response.
|
3823
|
+
# @param [String] quota_user
|
3824
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3825
|
+
# characters.
|
3826
|
+
# @param [String] user_ip
|
3827
|
+
# Deprecated. Please use quotaUser instead.
|
3828
|
+
# @param [Google::Apis::RequestOptions] options
|
3829
|
+
# Request-specific options
|
3830
|
+
#
|
3831
|
+
# @yield [result, err] Result & error if block supplied
|
3832
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
3833
|
+
# @yieldparam err [StandardError] error object if request failed
|
3834
|
+
#
|
3835
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
3836
|
+
#
|
3837
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3838
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3839
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3840
|
+
def delete_firewall_policy(firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3841
|
+
command = make_simple_command(:delete, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
3842
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
3843
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
3844
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3845
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
3846
|
+
command.query['fields'] = fields unless fields.nil?
|
3847
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3848
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3849
|
+
execute_or_queue_command(command, &block)
|
3850
|
+
end
|
3851
|
+
|
3852
|
+
# Returns the specified firewall policy.
|
3853
|
+
# @param [String] firewall_policy
|
3854
|
+
# Name of the firewall policy to get.
|
3855
|
+
# @param [String] fields
|
3856
|
+
# Selector specifying which fields to include in a partial response.
|
3857
|
+
# @param [String] quota_user
|
3858
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3859
|
+
# characters.
|
3860
|
+
# @param [String] user_ip
|
3861
|
+
# Deprecated. Please use quotaUser instead.
|
3862
|
+
# @param [Google::Apis::RequestOptions] options
|
3863
|
+
# Request-specific options
|
3864
|
+
#
|
3865
|
+
# @yield [result, err] Result & error if block supplied
|
3866
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
|
3867
|
+
# @yieldparam err [StandardError] error object if request failed
|
3868
|
+
#
|
3869
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicy]
|
3870
|
+
#
|
3871
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3872
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3873
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3874
|
+
def get_firewall_policy(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3875
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
3876
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
3877
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
|
3878
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3879
|
+
command.query['fields'] = fields unless fields.nil?
|
3880
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3881
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3882
|
+
execute_or_queue_command(command, &block)
|
3883
|
+
end
|
3884
|
+
|
3885
|
+
# Gets an association with the specified name.
|
3886
|
+
# @param [String] firewall_policy
|
3887
|
+
# Name of the firewall policy to which the queried rule belongs.
|
3888
|
+
# @param [String] name
|
3889
|
+
# The name of the association to get from the firewall policy.
|
3890
|
+
# @param [String] fields
|
3891
|
+
# Selector specifying which fields to include in a partial response.
|
3892
|
+
# @param [String] quota_user
|
3893
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3894
|
+
# characters.
|
3895
|
+
# @param [String] user_ip
|
3896
|
+
# Deprecated. Please use quotaUser instead.
|
3897
|
+
# @param [Google::Apis::RequestOptions] options
|
3898
|
+
# Request-specific options
|
3899
|
+
#
|
3900
|
+
# @yield [result, err] Result & error if block supplied
|
3901
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
|
3902
|
+
# @yieldparam err [StandardError] error object if request failed
|
3903
|
+
#
|
3904
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
|
3905
|
+
#
|
3906
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3907
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3908
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3909
|
+
def get_firewall_policy_association(firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3910
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getAssociation', options)
|
3911
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
3912
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
|
3913
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3914
|
+
command.query['name'] = name unless name.nil?
|
3915
|
+
command.query['fields'] = fields unless fields.nil?
|
3916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3917
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3918
|
+
execute_or_queue_command(command, &block)
|
3919
|
+
end
|
3920
|
+
|
3921
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
3922
|
+
# or resource exists.
|
3923
|
+
# @param [String] resource
|
3924
|
+
# Name or id of the resource for this request.
|
3925
|
+
# @param [Fixnum] options_requested_policy_version
|
3926
|
+
# Requested IAM Policy version.
|
3927
|
+
# @param [String] fields
|
3928
|
+
# Selector specifying which fields to include in a partial response.
|
3929
|
+
# @param [String] quota_user
|
3930
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3931
|
+
# characters.
|
3932
|
+
# @param [String] user_ip
|
3933
|
+
# Deprecated. Please use quotaUser instead.
|
3934
|
+
# @param [Google::Apis::RequestOptions] options
|
3935
|
+
# Request-specific options
|
3936
|
+
#
|
3937
|
+
# @yield [result, err] Result & error if block supplied
|
3938
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
3939
|
+
# @yieldparam err [StandardError] error object if request failed
|
3940
|
+
#
|
3941
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
3942
|
+
#
|
3943
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3944
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3945
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3946
|
+
def get_firewall_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3947
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{resource}/getIamPolicy', options)
|
3948
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
3949
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
3950
|
+
command.params['resource'] = resource unless resource.nil?
|
3951
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
3952
|
+
command.query['fields'] = fields unless fields.nil?
|
3953
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3954
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3955
|
+
execute_or_queue_command(command, &block)
|
3956
|
+
end
|
3957
|
+
|
3958
|
+
# Gets a rule of the specified priority.
|
3959
|
+
# @param [String] firewall_policy
|
3960
|
+
# Name of the firewall policy to which the queried rule belongs.
|
3961
|
+
# @param [Fixnum] priority
|
3962
|
+
# The priority of the rule to get from the firewall policy.
|
3963
|
+
# @param [String] fields
|
3964
|
+
# Selector specifying which fields to include in a partial response.
|
3965
|
+
# @param [String] quota_user
|
3966
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
3967
|
+
# characters.
|
3968
|
+
# @param [String] user_ip
|
3969
|
+
# Deprecated. Please use quotaUser instead.
|
3970
|
+
# @param [Google::Apis::RequestOptions] options
|
3971
|
+
# Request-specific options
|
3972
|
+
#
|
3973
|
+
# @yield [result, err] Result & error if block supplied
|
3974
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
|
3975
|
+
# @yieldparam err [StandardError] error object if request failed
|
3976
|
+
#
|
3977
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
|
3978
|
+
#
|
3979
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3980
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3981
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3982
|
+
def get_firewall_policy_rule(firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
3983
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getRule', options)
|
3984
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
3985
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
|
3986
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
3987
|
+
command.query['priority'] = priority unless priority.nil?
|
3988
|
+
command.query['fields'] = fields unless fields.nil?
|
3989
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3990
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
3991
|
+
execute_or_queue_command(command, &block)
|
3992
|
+
end
|
3993
|
+
|
3994
|
+
# Creates a new policy in the specified project using the data included in the
|
3995
|
+
# request.
|
3996
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
3997
|
+
# @param [String] parent_id
|
3998
|
+
# Parent ID for this request. The ID can be either be "folders/[FOLDER_ID]" if
|
3999
|
+
# the parent is a folder or "organizations/[ORGANIZATION_ID]" if the parent is
|
4000
|
+
# an organization.
|
4001
|
+
# @param [String] request_id
|
4002
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4003
|
+
# that if you must retry your request, the server will know to ignore the
|
4004
|
+
# request if it has already been completed.
|
4005
|
+
# For example, consider a situation where you make an initial request and the
|
4006
|
+
# request times out. If you make the request again with the same request ID, the
|
4007
|
+
# server can check if original operation with the same request ID was received,
|
4008
|
+
# and if so, will ignore the second request. This prevents clients from
|
4009
|
+
# accidentally creating duplicate commitments.
|
4010
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4011
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4012
|
+
# @param [String] fields
|
4013
|
+
# Selector specifying which fields to include in a partial response.
|
4014
|
+
# @param [String] quota_user
|
4015
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4016
|
+
# characters.
|
4017
|
+
# @param [String] user_ip
|
4018
|
+
# Deprecated. Please use quotaUser instead.
|
4019
|
+
# @param [Google::Apis::RequestOptions] options
|
4020
|
+
# Request-specific options
|
4021
|
+
#
|
4022
|
+
# @yield [result, err] Result & error if block supplied
|
4023
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4024
|
+
# @yieldparam err [StandardError] error object if request failed
|
4025
|
+
#
|
4026
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4027
|
+
#
|
4028
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4029
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4030
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4031
|
+
def insert_firewall_policy(firewall_policy_object = nil, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4032
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies', options)
|
4033
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
4034
|
+
command.request_object = firewall_policy_object
|
4035
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4036
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4037
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
4038
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4039
|
+
command.query['fields'] = fields unless fields.nil?
|
4040
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4041
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4042
|
+
execute_or_queue_command(command, &block)
|
4043
|
+
end
|
4044
|
+
|
4045
|
+
# Lists all the policies that have been configured for the specified project.
|
4046
|
+
# @param [String] filter
|
4047
|
+
# A filter expression that filters resources listed in the response. The
|
4048
|
+
# expression must specify the field name, a comparison operator, and the value
|
4049
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
4050
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
4051
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
4052
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
4053
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
4054
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
4055
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
4056
|
+
# on resource labels.
|
4057
|
+
# To filter on multiple expressions, provide each separate expression within
|
4058
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
4059
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
4060
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
4061
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
4062
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
4063
|
+
# @param [Fixnum] max_results
|
4064
|
+
# The maximum number of results per page that should be returned. If the number
|
4065
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
4066
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
4067
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
4068
|
+
# @param [String] order_by
|
4069
|
+
# Sorts list results by a certain order. By default, results are returned in
|
4070
|
+
# alphanumerical order based on the resource name.
|
4071
|
+
# You can also sort results in descending order based on the creation timestamp
|
4072
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
4073
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
4074
|
+
# Use this to sort resources like operations so that the newest operation is
|
4075
|
+
# returned first.
|
4076
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
4077
|
+
# @param [String] page_token
|
4078
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
4079
|
+
# by a previous list request to get the next page of results.
|
4080
|
+
# @param [String] parent_id
|
4081
|
+
# Parent ID for this request.
|
4082
|
+
# @param [Boolean] return_partial_success
|
4083
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
4084
|
+
# failure. The default value is false and the logic is the same as today.
|
4085
|
+
# @param [String] fields
|
4086
|
+
# Selector specifying which fields to include in a partial response.
|
4087
|
+
# @param [String] quota_user
|
4088
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4089
|
+
# characters.
|
4090
|
+
# @param [String] user_ip
|
4091
|
+
# Deprecated. Please use quotaUser instead.
|
4092
|
+
# @param [Google::Apis::RequestOptions] options
|
4093
|
+
# Request-specific options
|
4094
|
+
#
|
4095
|
+
# @yield [result, err] Result & error if block supplied
|
4096
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
4097
|
+
# @yieldparam err [StandardError] error object if request failed
|
4098
|
+
#
|
4099
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
|
4100
|
+
#
|
4101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4104
|
+
def list_firewall_policies(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4105
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies', options)
|
4106
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
|
4107
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
|
4108
|
+
command.query['filter'] = filter unless filter.nil?
|
4109
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
4110
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
4111
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4112
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
4113
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
4114
|
+
command.query['fields'] = fields unless fields.nil?
|
4115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4116
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4117
|
+
execute_or_queue_command(command, &block)
|
4118
|
+
end
|
4119
|
+
|
4120
|
+
# Lists associations of a specified target, i.e., organization or folder.
|
4121
|
+
# @param [String] target_resource
|
4122
|
+
# The target resource to list associations. It is an organization, or a folder.
|
4123
|
+
# @param [String] fields
|
4124
|
+
# Selector specifying which fields to include in a partial response.
|
4125
|
+
# @param [String] quota_user
|
4126
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4127
|
+
# characters.
|
4128
|
+
# @param [String] user_ip
|
4129
|
+
# Deprecated. Please use quotaUser instead.
|
4130
|
+
# @param [Google::Apis::RequestOptions] options
|
4131
|
+
# Request-specific options
|
4132
|
+
#
|
4133
|
+
# @yield [result, err] Result & error if block supplied
|
4134
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse] parsed result object
|
4135
|
+
# @yieldparam err [StandardError] error object if request failed
|
4136
|
+
#
|
4137
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse]
|
4138
|
+
#
|
4139
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4140
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4141
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4142
|
+
def list_firewall_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4143
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/listAssociations', options)
|
4144
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse::Representation
|
4145
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse
|
4146
|
+
command.query['targetResource'] = target_resource unless target_resource.nil?
|
4147
|
+
command.query['fields'] = fields unless fields.nil?
|
4148
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4149
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4150
|
+
execute_or_queue_command(command, &block)
|
4151
|
+
end
|
4152
|
+
|
4153
|
+
# Moves the specified firewall policy.
|
4154
|
+
# @param [String] firewall_policy
|
4155
|
+
# Name of the firewall policy to update.
|
4156
|
+
# @param [String] parent_id
|
4157
|
+
# The new parent of the firewall policy.
|
4158
|
+
# @param [String] request_id
|
4159
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4160
|
+
# that if you must retry your request, the server will know to ignore the
|
4161
|
+
# request if it has already been completed.
|
4162
|
+
# For example, consider a situation where you make an initial request and the
|
4163
|
+
# request times out. If you make the request again with the same request ID, the
|
4164
|
+
# server can check if original operation with the same request ID was received,
|
4165
|
+
# and if so, will ignore the second request. This prevents clients from
|
4166
|
+
# accidentally creating duplicate commitments.
|
4167
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4168
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4169
|
+
# @param [String] fields
|
4170
|
+
# Selector specifying which fields to include in a partial response.
|
4171
|
+
# @param [String] quota_user
|
4172
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4173
|
+
# characters.
|
4174
|
+
# @param [String] user_ip
|
4175
|
+
# Deprecated. Please use quotaUser instead.
|
4176
|
+
# @param [Google::Apis::RequestOptions] options
|
4177
|
+
# Request-specific options
|
4178
|
+
#
|
4179
|
+
# @yield [result, err] Result & error if block supplied
|
4180
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4181
|
+
# @yieldparam err [StandardError] error object if request failed
|
4182
|
+
#
|
4183
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4184
|
+
#
|
4185
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4186
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4187
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4188
|
+
def move_firewall_policy(firewall_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4189
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/move', options)
|
4190
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4191
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4192
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4193
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
4194
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4195
|
+
command.query['fields'] = fields unless fields.nil?
|
4196
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4197
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4198
|
+
execute_or_queue_command(command, &block)
|
4199
|
+
end
|
4200
|
+
|
4201
|
+
# Patches the specified policy with the data included in the request.
|
4202
|
+
# @param [String] firewall_policy
|
4203
|
+
# Name of the firewall policy to update.
|
4204
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
4205
|
+
# @param [String] request_id
|
4206
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4207
|
+
# that if you must retry your request, the server will know to ignore the
|
4208
|
+
# request if it has already been completed.
|
4209
|
+
# For example, consider a situation where you make an initial request and the
|
4210
|
+
# request times out. If you make the request again with the same request ID, the
|
4211
|
+
# server can check if original operation with the same request ID was received,
|
4212
|
+
# and if so, will ignore the second request. This prevents clients from
|
4213
|
+
# accidentally creating duplicate commitments.
|
4214
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4215
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4216
|
+
# @param [String] fields
|
4217
|
+
# Selector specifying which fields to include in a partial response.
|
4218
|
+
# @param [String] quota_user
|
4219
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4220
|
+
# characters.
|
4221
|
+
# @param [String] user_ip
|
4222
|
+
# Deprecated. Please use quotaUser instead.
|
4223
|
+
# @param [Google::Apis::RequestOptions] options
|
4224
|
+
# Request-specific options
|
4225
|
+
#
|
4226
|
+
# @yield [result, err] Result & error if block supplied
|
4227
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4228
|
+
# @yieldparam err [StandardError] error object if request failed
|
4229
|
+
#
|
4230
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4231
|
+
#
|
4232
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4233
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4234
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4235
|
+
def patch_firewall_policy(firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4236
|
+
command = make_simple_command(:patch, 'locations/global/firewallPolicies/{firewallPolicy}', options)
|
4237
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
4238
|
+
command.request_object = firewall_policy_object
|
4239
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4240
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4241
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4242
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4243
|
+
command.query['fields'] = fields unless fields.nil?
|
4244
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4245
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4246
|
+
execute_or_queue_command(command, &block)
|
4247
|
+
end
|
4248
|
+
|
4249
|
+
# Patches a rule of the specified priority.
|
4250
|
+
# @param [String] firewall_policy
|
4251
|
+
# Name of the firewall policy to update.
|
4252
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
4253
|
+
# @param [Fixnum] priority
|
4254
|
+
# The priority of the rule to patch.
|
4255
|
+
# @param [String] request_id
|
4256
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4257
|
+
# that if you must retry your request, the server will know to ignore the
|
4258
|
+
# request if it has already been completed.
|
4259
|
+
# For example, consider a situation where you make an initial request and the
|
4260
|
+
# request times out. If you make the request again with the same request ID, the
|
4261
|
+
# server can check if original operation with the same request ID was received,
|
4262
|
+
# and if so, will ignore the second request. This prevents clients from
|
4263
|
+
# accidentally creating duplicate commitments.
|
4264
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4265
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4266
|
+
# @param [String] fields
|
4267
|
+
# Selector specifying which fields to include in a partial response.
|
4268
|
+
# @param [String] quota_user
|
4269
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4270
|
+
# characters.
|
4271
|
+
# @param [String] user_ip
|
4272
|
+
# Deprecated. Please use quotaUser instead.
|
4273
|
+
# @param [Google::Apis::RequestOptions] options
|
4274
|
+
# Request-specific options
|
4275
|
+
#
|
4276
|
+
# @yield [result, err] Result & error if block supplied
|
4277
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4278
|
+
# @yieldparam err [StandardError] error object if request failed
|
4279
|
+
#
|
4280
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4281
|
+
#
|
4282
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4283
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4284
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4285
|
+
def patch_firewall_policy_rule(firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4286
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/patchRule', options)
|
4287
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
4288
|
+
command.request_object = firewall_policy_rule_object
|
4289
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4290
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4291
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4292
|
+
command.query['priority'] = priority unless priority.nil?
|
4293
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4294
|
+
command.query['fields'] = fields unless fields.nil?
|
4295
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4296
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4297
|
+
execute_or_queue_command(command, &block)
|
4298
|
+
end
|
4299
|
+
|
4300
|
+
# Removes an association for the specified firewall policy.
|
4301
|
+
# @param [String] firewall_policy
|
4302
|
+
# Name of the firewall policy to update.
|
4303
|
+
# @param [String] name
|
4304
|
+
# Name for the attachment that will be removed.
|
4305
|
+
# @param [String] request_id
|
4306
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4307
|
+
# that if you must retry your request, the server will know to ignore the
|
4308
|
+
# request if it has already been completed.
|
4309
|
+
# For example, consider a situation where you make an initial request and the
|
4310
|
+
# request times out. If you make the request again with the same request ID, the
|
4311
|
+
# server can check if original operation with the same request ID was received,
|
4312
|
+
# and if so, will ignore the second request. This prevents clients from
|
4313
|
+
# accidentally creating duplicate commitments.
|
4314
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4315
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4316
|
+
# @param [String] fields
|
4317
|
+
# Selector specifying which fields to include in a partial response.
|
4318
|
+
# @param [String] quota_user
|
4319
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4320
|
+
# characters.
|
4321
|
+
# @param [String] user_ip
|
4322
|
+
# Deprecated. Please use quotaUser instead.
|
4323
|
+
# @param [Google::Apis::RequestOptions] options
|
4324
|
+
# Request-specific options
|
4325
|
+
#
|
4326
|
+
# @yield [result, err] Result & error if block supplied
|
4327
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4328
|
+
# @yieldparam err [StandardError] error object if request failed
|
4329
|
+
#
|
4330
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4331
|
+
#
|
4332
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4333
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4334
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4335
|
+
def remove_firewall_policy_association(firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4336
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
4337
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4338
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4339
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4340
|
+
command.query['name'] = name unless name.nil?
|
4341
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4342
|
+
command.query['fields'] = fields unless fields.nil?
|
4343
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4344
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4345
|
+
execute_or_queue_command(command, &block)
|
4346
|
+
end
|
4347
|
+
|
4348
|
+
# Deletes a rule of the specified priority.
|
4349
|
+
# @param [String] firewall_policy
|
4350
|
+
# Name of the firewall policy to update.
|
4351
|
+
# @param [Fixnum] priority
|
4352
|
+
# The priority of the rule to remove from the firewall policy.
|
4353
|
+
# @param [String] request_id
|
4354
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4355
|
+
# that if you must retry your request, the server will know to ignore the
|
4356
|
+
# request if it has already been completed.
|
4357
|
+
# For example, consider a situation where you make an initial request and the
|
4358
|
+
# request times out. If you make the request again with the same request ID, the
|
4359
|
+
# server can check if original operation with the same request ID was received,
|
4360
|
+
# and if so, will ignore the second request. This prevents clients from
|
4361
|
+
# accidentally creating duplicate commitments.
|
4362
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
4363
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
4364
|
+
# @param [String] fields
|
4365
|
+
# Selector specifying which fields to include in a partial response.
|
4366
|
+
# @param [String] quota_user
|
4367
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4368
|
+
# characters.
|
4369
|
+
# @param [String] user_ip
|
4370
|
+
# Deprecated. Please use quotaUser instead.
|
4371
|
+
# @param [Google::Apis::RequestOptions] options
|
4372
|
+
# Request-specific options
|
4373
|
+
#
|
4374
|
+
# @yield [result, err] Result & error if block supplied
|
4375
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4376
|
+
# @yieldparam err [StandardError] error object if request failed
|
4377
|
+
#
|
4378
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4379
|
+
#
|
4380
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4381
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4382
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4383
|
+
def remove_firewall_policy_rule(firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4384
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removeRule', options)
|
4385
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4386
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4387
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4388
|
+
command.query['priority'] = priority unless priority.nil?
|
4389
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4390
|
+
command.query['fields'] = fields unless fields.nil?
|
4391
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4392
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4393
|
+
execute_or_queue_command(command, &block)
|
4394
|
+
end
|
4395
|
+
|
4396
|
+
# Sets the access control policy on the specified resource. Replaces any
|
4397
|
+
# existing policy.
|
4398
|
+
# @param [String] resource
|
4399
|
+
# Name or id of the resource for this request.
|
4400
|
+
# @param [Google::Apis::ComputeAlpha::GlobalOrganizationSetPolicyRequest] global_organization_set_policy_request_object
|
4401
|
+
# @param [String] fields
|
4402
|
+
# Selector specifying which fields to include in a partial response.
|
4403
|
+
# @param [String] quota_user
|
4404
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4405
|
+
# characters.
|
4406
|
+
# @param [String] user_ip
|
4407
|
+
# Deprecated. Please use quotaUser instead.
|
4408
|
+
# @param [Google::Apis::RequestOptions] options
|
4409
|
+
# Request-specific options
|
4410
|
+
#
|
4411
|
+
# @yield [result, err] Result & error if block supplied
|
4412
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
4413
|
+
# @yieldparam err [StandardError] error object if request failed
|
4414
|
+
#
|
4415
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
4416
|
+
#
|
4417
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4418
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4419
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4420
|
+
def set_firewall_policy_iam_policy(resource, global_organization_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4421
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/setIamPolicy', options)
|
4422
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalOrganizationSetPolicyRequest::Representation
|
4423
|
+
command.request_object = global_organization_set_policy_request_object
|
4424
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
4425
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
4426
|
+
command.params['resource'] = resource unless resource.nil?
|
4427
|
+
command.query['fields'] = fields unless fields.nil?
|
4428
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4429
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4430
|
+
execute_or_queue_command(command, &block)
|
4431
|
+
end
|
4432
|
+
|
4433
|
+
# Returns permissions that a caller has on the specified resource.
|
4434
|
+
# @param [String] resource
|
4435
|
+
# Name or id of the resource for this request.
|
4436
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
4437
|
+
# @param [String] fields
|
4438
|
+
# Selector specifying which fields to include in a partial response.
|
4439
|
+
# @param [String] quota_user
|
4440
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
4441
|
+
# characters.
|
4442
|
+
# @param [String] user_ip
|
4443
|
+
# Deprecated. Please use quotaUser instead.
|
4444
|
+
# @param [Google::Apis::RequestOptions] options
|
4445
|
+
# Request-specific options
|
4446
|
+
#
|
4447
|
+
# @yield [result, err] Result & error if block supplied
|
4448
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
4449
|
+
# @yieldparam err [StandardError] error object if request failed
|
4450
|
+
#
|
4451
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
4452
|
+
#
|
4453
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4454
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4455
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4456
|
+
def test_firewall_policy_iam_permissions(resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4457
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{resource}/testIamPermissions', options)
|
4458
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
4459
|
+
command.request_object = test_permissions_request_object
|
4460
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
4461
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
4462
|
+
command.params['resource'] = resource unless resource.nil?
|
4463
|
+
command.query['fields'] = fields unless fields.nil?
|
4464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4466
|
+
execute_or_queue_command(command, &block)
|
4467
|
+
end
|
4468
|
+
|
3658
4469
|
# Deletes the specified firewall.
|
3659
4470
|
# @param [String] project
|
3660
4471
|
# Project ID for this request.
|
@@ -12865,7 +13676,11 @@ module Google
|
|
12865
13676
|
execute_or_queue_command(command, &block)
|
12866
13677
|
end
|
12867
13678
|
|
12868
|
-
# Updates an instance's network interface. This method
|
13679
|
+
# Updates an instance's network interface. This method can only update an
|
13680
|
+
# interface's alias IP range and attached network. See Modifying alias IP ranges
|
13681
|
+
# for an existing instance for instructions on changing alias IP ranges. See
|
13682
|
+
# Migrating a VM between networks for instructions on migrating an interface.
|
13683
|
+
# This method follows PATCH semantics.
|
12869
13684
|
# @param [String] project
|
12870
13685
|
# Project ID for this request.
|
12871
13686
|
# @param [String] zone
|
@@ -22638,7 +23453,7 @@ module Google
|
|
22638
23453
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
22639
23454
|
# supported (00000000-0000-0000-0000-000000000000).
|
22640
23455
|
# @param [String] source_image
|
22641
|
-
#
|
23456
|
+
# Source image to restore onto a disk. This field is optional.
|
22642
23457
|
# @param [String] fields
|
22643
23458
|
# Selector specifying which fields to include in a partial response.
|
22644
23459
|
# @param [String] quota_user
|
@@ -22999,6 +23814,90 @@ module Google
|
|
22999
23814
|
execute_or_queue_command(command, &block)
|
23000
23815
|
end
|
23001
23816
|
|
23817
|
+
# Retrieves the list of all HealthCheckService resources, regional and global,
|
23818
|
+
# available to the specified project.
|
23819
|
+
# @param [String] project
|
23820
|
+
# Name of the project scoping this request.
|
23821
|
+
# @param [String] filter
|
23822
|
+
# A filter expression that filters resources listed in the response. The
|
23823
|
+
# expression must specify the field name, a comparison operator, and the value
|
23824
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
23825
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
23826
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
23827
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
23828
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
23829
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
23830
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
23831
|
+
# on resource labels.
|
23832
|
+
# To filter on multiple expressions, provide each separate expression within
|
23833
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
23834
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
23835
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
23836
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
23837
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
23838
|
+
# @param [Boolean] include_all_scopes
|
23839
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
23840
|
+
# global) should be included in the response. For new resource types added after
|
23841
|
+
# this field, the flag has no effect as new resource types will always include
|
23842
|
+
# every visible scope for each scope type in response. For resource types which
|
23843
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
23844
|
+
# types where the resource type is expected to be found will be included.
|
23845
|
+
# @param [Fixnum] max_results
|
23846
|
+
# The maximum number of results per page that should be returned. If the number
|
23847
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
23848
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
23849
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
23850
|
+
# @param [String] order_by
|
23851
|
+
# Sorts list results by a certain order. By default, results are returned in
|
23852
|
+
# alphanumerical order based on the resource name.
|
23853
|
+
# You can also sort results in descending order based on the creation timestamp
|
23854
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
23855
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
23856
|
+
# Use this to sort resources like operations so that the newest operation is
|
23857
|
+
# returned first.
|
23858
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
23859
|
+
# @param [String] page_token
|
23860
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
23861
|
+
# by a previous list request to get the next page of results.
|
23862
|
+
# @param [Boolean] return_partial_success
|
23863
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
23864
|
+
# failure. The default value is false and the logic is the same as today.
|
23865
|
+
# @param [String] fields
|
23866
|
+
# Selector specifying which fields to include in a partial response.
|
23867
|
+
# @param [String] quota_user
|
23868
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23869
|
+
# characters.
|
23870
|
+
# @param [String] user_ip
|
23871
|
+
# Deprecated. Please use quotaUser instead.
|
23872
|
+
# @param [Google::Apis::RequestOptions] options
|
23873
|
+
# Request-specific options
|
23874
|
+
#
|
23875
|
+
# @yield [result, err] Result & error if block supplied
|
23876
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList] parsed result object
|
23877
|
+
# @yieldparam err [StandardError] error object if request failed
|
23878
|
+
#
|
23879
|
+
# @return [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList]
|
23880
|
+
#
|
23881
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23882
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23883
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23884
|
+
def aggregated_region_health_check_service_list(project, filter: nil, include_all_scopes: 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)
|
23885
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/healthCheckServices', options)
|
23886
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList::Representation
|
23887
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList
|
23888
|
+
command.params['project'] = project unless project.nil?
|
23889
|
+
command.query['filter'] = filter unless filter.nil?
|
23890
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
23891
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
23892
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
23893
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
23894
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
23895
|
+
command.query['fields'] = fields unless fields.nil?
|
23896
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23897
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23898
|
+
execute_or_queue_command(command, &block)
|
23899
|
+
end
|
23900
|
+
|
23002
23901
|
# Deletes the specified regional HealthCheckService.
|
23003
23902
|
# @param [String] project
|
23004
23903
|
# Project ID for this request.
|
@@ -25091,6 +25990,74 @@ module Google
|
|
25091
25990
|
execute_or_queue_command(command, &block)
|
25092
25991
|
end
|
25093
25992
|
|
25993
|
+
# Resizes the regional managed instance group with advanced configuration
|
25994
|
+
# options like disabling creation retries. This is an extended version of the
|
25995
|
+
# resize method.
|
25996
|
+
# If you increase the size, the group creates new instances using the current
|
25997
|
+
# instance template. If you decrease the size, the group deletes one or more
|
25998
|
+
# instances.
|
25999
|
+
# The resize operation is marked DONE if the resize request is successful. The
|
26000
|
+
# underlying actions take additional time. You must separately verify the status
|
26001
|
+
# of the creating or deleting actions with the get or listmanagedinstances
|
26002
|
+
# method.
|
26003
|
+
# If the group is part of a backend service that has enabled connection draining,
|
26004
|
+
# it can take up to 60 seconds after the connection draining duration has
|
26005
|
+
# elapsed before the VM instance is removed or deleted.
|
26006
|
+
# @param [String] project
|
26007
|
+
# Project ID for this request.
|
26008
|
+
# @param [String] region
|
26009
|
+
# Name of the region scoping this request. It must be a string that meets the
|
26010
|
+
# requirements in RFC1035.
|
26011
|
+
# @param [String] instance_group_manager
|
26012
|
+
# The name of the managed instance group. It must be a string that meets the
|
26013
|
+
# requirements in RFC1035.
|
26014
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResizeAdvancedRequest] region_instance_group_managers_resize_advanced_request_object
|
26015
|
+
# @param [String] request_id
|
26016
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
26017
|
+
# that if you must retry your request, the server will know to ignore the
|
26018
|
+
# request if it has already been completed.
|
26019
|
+
# For example, consider a situation where you make an initial request and the
|
26020
|
+
# request times out. If you make the request again with the same request ID, the
|
26021
|
+
# server can check if original operation with the same request ID was received,
|
26022
|
+
# and if so, will ignore the second request. This prevents clients from
|
26023
|
+
# accidentally creating duplicate commitments.
|
26024
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
26025
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
26026
|
+
# @param [String] fields
|
26027
|
+
# Selector specifying which fields to include in a partial response.
|
26028
|
+
# @param [String] quota_user
|
26029
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
26030
|
+
# characters.
|
26031
|
+
# @param [String] user_ip
|
26032
|
+
# Deprecated. Please use quotaUser instead.
|
26033
|
+
# @param [Google::Apis::RequestOptions] options
|
26034
|
+
# Request-specific options
|
26035
|
+
#
|
26036
|
+
# @yield [result, err] Result & error if block supplied
|
26037
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
26038
|
+
# @yieldparam err [StandardError] error object if request failed
|
26039
|
+
#
|
26040
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
26041
|
+
#
|
26042
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
26043
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
26044
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
26045
|
+
def resize_region_instance_group_manager_advanced(project, region, instance_group_manager, region_instance_group_managers_resize_advanced_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
26046
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced', options)
|
26047
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResizeAdvancedRequest::Representation
|
26048
|
+
command.request_object = region_instance_group_managers_resize_advanced_request_object
|
26049
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
26050
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
26051
|
+
command.params['project'] = project unless project.nil?
|
26052
|
+
command.params['region'] = region unless region.nil?
|
26053
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
26054
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
26055
|
+
command.query['fields'] = fields unless fields.nil?
|
26056
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
26057
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
26058
|
+
execute_or_queue_command(command, &block)
|
26059
|
+
end
|
26060
|
+
|
25094
26061
|
# Modifies the autohealing policy for the instances in this managed instance
|
25095
26062
|
# group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
|
25096
26063
|
# patch instead.
|
@@ -26457,6 +27424,90 @@ module Google
|
|
26457
27424
|
execute_or_queue_command(command, &block)
|
26458
27425
|
end
|
26459
27426
|
|
27427
|
+
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
27428
|
+
# available to the specified project.
|
27429
|
+
# @param [String] project
|
27430
|
+
# Name of the project scoping this request.
|
27431
|
+
# @param [String] filter
|
27432
|
+
# A filter expression that filters resources listed in the response. The
|
27433
|
+
# expression must specify the field name, a comparison operator, and the value
|
27434
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
27435
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
27436
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
27437
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
27438
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
27439
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
27440
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
27441
|
+
# on resource labels.
|
27442
|
+
# To filter on multiple expressions, provide each separate expression within
|
27443
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
27444
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
27445
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
27446
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
27447
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
27448
|
+
# @param [Boolean] include_all_scopes
|
27449
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
27450
|
+
# global) should be included in the response. For new resource types added after
|
27451
|
+
# this field, the flag has no effect as new resource types will always include
|
27452
|
+
# every visible scope for each scope type in response. For resource types which
|
27453
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
27454
|
+
# types where the resource type is expected to be found will be included.
|
27455
|
+
# @param [Fixnum] max_results
|
27456
|
+
# The maximum number of results per page that should be returned. If the number
|
27457
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
27458
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
27459
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
27460
|
+
# @param [String] order_by
|
27461
|
+
# Sorts list results by a certain order. By default, results are returned in
|
27462
|
+
# alphanumerical order based on the resource name.
|
27463
|
+
# You can also sort results in descending order based on the creation timestamp
|
27464
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
27465
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
27466
|
+
# Use this to sort resources like operations so that the newest operation is
|
27467
|
+
# returned first.
|
27468
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
27469
|
+
# @param [String] page_token
|
27470
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
27471
|
+
# by a previous list request to get the next page of results.
|
27472
|
+
# @param [Boolean] return_partial_success
|
27473
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
27474
|
+
# failure. The default value is false and the logic is the same as today.
|
27475
|
+
# @param [String] fields
|
27476
|
+
# Selector specifying which fields to include in a partial response.
|
27477
|
+
# @param [String] quota_user
|
27478
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27479
|
+
# characters.
|
27480
|
+
# @param [String] user_ip
|
27481
|
+
# Deprecated. Please use quotaUser instead.
|
27482
|
+
# @param [Google::Apis::RequestOptions] options
|
27483
|
+
# Request-specific options
|
27484
|
+
#
|
27485
|
+
# @yield [result, err] Result & error if block supplied
|
27486
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList] parsed result object
|
27487
|
+
# @yieldparam err [StandardError] error object if request failed
|
27488
|
+
#
|
27489
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList]
|
27490
|
+
#
|
27491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27494
|
+
def aggregated_region_notification_endpoint_list(project, filter: nil, include_all_scopes: 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)
|
27495
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/notificationEndpoints', options)
|
27496
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList::Representation
|
27497
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointAggregatedList
|
27498
|
+
command.params['project'] = project unless project.nil?
|
27499
|
+
command.query['filter'] = filter unless filter.nil?
|
27500
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
27501
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
27502
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
27503
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
27504
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
27505
|
+
command.query['fields'] = fields unless fields.nil?
|
27506
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27507
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27508
|
+
execute_or_queue_command(command, &block)
|
27509
|
+
end
|
27510
|
+
|
26460
27511
|
# Deletes the specified NotificationEndpoint in the given region
|
26461
27512
|
# @param [String] project
|
26462
27513
|
# Project ID for this request.
|