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
-
#idp_wide ⇒ Boolean
(also: #idp_wide?)
All users within the Identity Provider.
-
#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.
8855 8856 8857 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8855 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
8847 8848 8849 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8847 def idp_wide @idp_wide end |
#principals ⇒ Array<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaPrincipal>
List of principals.
Corresponds to the JSON property principals
8853 8854 8855 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8853 def principals @principals end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
8860 8861 8862 8863 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8860 def update!(**args) @idp_wide = args[:idp_wide] if args.key?(:idp_wide) @principals = args[:principals] if args.key?(:principals) end |