Class: Google::Apis::CloudassetV1p4beta1::AccessSelector
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p4beta1::AccessSelector
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudasset_v1p4beta1/classes.rb,
generated/google/apis/cloudasset_v1p4beta1/representations.rb,
generated/google/apis/cloudasset_v1p4beta1/representations.rb
Overview
Specifies roles and/or permissions to analyze, to determine both the identities possessing them and the resources they control. If multiple values are specified, results will include identities and resources matching any of them. The total number of roles and permissions should be equal or less than 10.
Instance Attribute Summary collapse
-
#permissions ⇒ Array<String>
Optional.
-
#roles ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AccessSelector
constructor
A new instance of AccessSelector.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AccessSelector
Returns a new instance of AccessSelector.
43 44 45 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 43 def initialize(**args) update!(**args) end |
Instance Attribute Details
#permissions ⇒ Array<String>
Optional. The permissions to appear in result.
Corresponds to the JSON property permissions
36 37 38 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 36 def @permissions end |
#roles ⇒ Array<String>
Optional. The roles to appear in result.
Corresponds to the JSON property roles
41 42 43 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 41 def roles @roles end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
48 49 50 51 |
# File 'generated/google/apis/cloudasset_v1p4beta1/classes.rb', line 48 def update!(**args) @permissions = args[:permissions] if args.key?(:permissions) @roles = args[:roles] if args.key?(:roles) end |