Class: Google::Apis::SecuritycenterV1::SetIamPolicyRequest
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::SetIamPolicyRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1/classes.rb,
lib/google/apis/securitycenter_v1/representations.rb,
lib/google/apis/securitycenter_v1/representations.rb
Instance Attribute Summary collapse
-
#policy ⇒ Google::Apis::SecuritycenterV1::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.
12947 12948 12949 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12947 def initialize(**args) update!(**args) end |
Instance Attribute Details
#policy ⇒ Google::Apis::SecuritycenterV1::Policy
Corresponds to the JSON property policy
12940 12941 12942 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12940 def policy @policy end |
#update_mask ⇒ String
Corresponds to the JSON property updateMask
12945 12946 12947 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12945 def update_mask @update_mask end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12952 12953 12954 12955 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12952 def update!(**args) @policy = args[:policy] if args.key?(:policy) @update_mask = args[:update_mask] if args.key?(:update_mask) end |