Class: Google::Cloud::DiscoveryEngine::V1::Document::AclInfo

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1/document.rb

Overview

ACL Information of the Document.

Defined Under Namespace

Classes: AccessRestriction

Instance Attribute Summary collapse

Instance Attribute Details

#readers::Array<::Google::Cloud::DiscoveryEngine::V1::Document::AclInfo::AccessRestriction>



149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
# File 'proto_docs/google/cloud/discoveryengine/v1/document.rb', line 149

class AclInfo
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # 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"
  #           }
  #         ],
  #       }
  #     ]
  #   }
  # }
  # @!attribute [rw] principals
  #   @return [::Array<::Google::Cloud::DiscoveryEngine::V1::Principal>]
  #     List of principals.
  # @!attribute [rw] idp_wide
  #   @return [::Boolean]
  #     All users within the Identity Provider.
  class AccessRestriction
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end