Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaDocumentAclInfoAccessRestriction

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_wideBoolean Also known as: idp_wide?

All users within the Identity Provider. Corresponds to the JSON property idpWide

Returns:

  • (Boolean)


23903
23904
23905
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 23903

def idp_wide
  @idp_wide
end

#principalsArray<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