Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb
Overview
AclRestriction to model complex inheritance restrictions. Example: Modeling a "
Both Permit" inheritance, where to access a child document, user needs to have
access to parent document. Document Hierarchy - Space_S --> Page_P. Readers:
Space_S: group_1, user_1 Page_P: group_2, group_3, user_2 Space_S ACL
Restriction - "acl_info":
"readers": [ "principals": [
"group_id": "
group_1" ,
"user_id": "user_1" ]
] Page_P ACL Restriction.
"
acl_info":
"readers": [ "principals": [
"group_id": "group_2" ,
"
group_id": "group_3" ,
"user_id": "user_2" ],
, "principals": [
"
group_id": "group_1" ,
"user_id": "user_1" ],
]
Instance Attribute Summary collapse
-
#principals ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal>
List of principals.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
Returns a new instance of GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction.
5975 5976 5977 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5975 def initialize(**args) update!(**args) end |
Instance Attribute Details
#principals ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal>
List of principals.
Corresponds to the JSON property principals
5973 5974 5975 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5973 def principals @principals end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5980 5981 5982 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5980 def update!(**args) @principals = args[:principals] if args.key?(:principals) end |