Class: Google::Apis::SecuritycenterV1::Binding
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1::Binding
- 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
-
#condition ⇒ Google::Apis::SecuritycenterV1::Expr
Corresponds to the JSON property
condition. -
#members ⇒ Array<String>
Corresponds to the JSON property
members. -
#role ⇒ String
Corresponds to the JSON property
role.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Binding
constructor
A new instance of Binding.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Binding
Returns a new instance of Binding.
1307 1308 1309 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1307 def initialize(**args) update!(**args) end |
Instance Attribute Details
#condition ⇒ Google::Apis::SecuritycenterV1::Expr
Corresponds to the JSON property condition
1295 1296 1297 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1295 def condition @condition end |
#members ⇒ Array<String>
Corresponds to the JSON property members
1300 1301 1302 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1300 def members @members end |
#role ⇒ String
Corresponds to the JSON property role
1305 1306 1307 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1305 def role @role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1312 1313 1314 1315 1316 |
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 1312 def update!(**args) @condition = args[:condition] if args.key?(:condition) @members = args[:members] if args.key?(:members) @role = args[:role] if args.key?(:role) end |