Class: Google::Apis::SecuritycenterV1beta1::SetIamPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta1::SetIamPolicyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb
Instance Attribute Summary collapse
-
#policy ⇒ Google::Apis::SecuritycenterV1beta1::Policy
Corresponds to the JSON property
policy. -
#update_mask ⇒ String
Corresponds to the JSON property
updateMask.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetIamPolicyRequest
constructor
A new instance of SetIamPolicyRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SetIamPolicyRequest
Returns a new instance of SetIamPolicyRequest.
11853 11854 11855 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11853 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy ⇒ Google::Apis::SecuritycenterV1beta1::Policy
Corresponds to the JSON property policy
11846 11847 11848 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11846 def policy @policy end |
#update_mask ⇒ String
Corresponds to the JSON property updateMask
11851 11852 11853 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11851 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11858 11859 11860 11861 |
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 11858 def update!(**args) @policy = args[:policy] if args.key?(:policy) @update_mask = args[:update_mask] if args.key?(:update_mask) end |