Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/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
-
#idp_wide ⇒ Boolean
(also: #idp_wide?)
All users within the Identity Provider.
-
#principals ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPrincipal>
List of principals.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction
constructor
A new instance of GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction
Returns a new instance of GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction.
23911 23912 23913 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 23911 def initialize(**args) update!(**args) end |
Instance Attribute Details
#idp_wide ⇒ Boolean Also known as: idp_wide?
All users within the Identity Provider.
Corresponds to the JSON property idpWide
23903 23904 23905 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 23903 def idp_wide @idp_wide end |
#principals ⇒ Array<Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaPrincipal>
List of principals.
Corresponds to the JSON property principals
23909 23910 23911 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 23909 def principals @principals end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
23916 23917 23918 23919 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 23916 def update!(**args) @idp_wide = args[:idp_wide] if args.key?(:idp_wide) @principals = args[:principals] if args.key?(:principals) end |