Class: Google::Apis::CloudsearchV1::AclFixRequest
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::AclFixRequest
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
The request set by clients to instruct Backend how the user intend to fix the ACL. Technically it's not a request to ACL Fixer, because Backend uses / DriveService.Share to modify Drive ACLs.
Instance Attribute Summary collapse
-
#recipient_emails ⇒ Array<String>
For Spaces messages: This field is ignored.
-
#role ⇒ String
Corresponds to the JSON property
role
. -
#should_fix ⇒ Boolean
(also: #should_fix?)
Whether to attempt to fix the ACL by adding the room or DM members to the Drive file's ACL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AclFixRequest
constructor
A new instance of AclFixRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AclFixRequest
Returns a new instance of AclFixRequest.
107 108 109 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 107 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recipient_emails ⇒ Array<String>
For Spaces messages: This field is ignored. For DMs messages: The list of
email addresses that should be added to the Drive item's ACL. In general, the
list should not be empty when the boolean "should_fix" field is set; otherwise,
the list should be empty. During transition - when clients do not specify
this field but the "should_fix" is true, we follow the legacy behavior: share
to all users in the DM regardless of emails. This behavior is being phased out.
Corresponds to the JSON property recipientEmails
93 94 95 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 93 def recipient_emails @recipient_emails end |
#role ⇒ String
Corresponds to the JSON property role
98 99 100 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 98 def role @role end |
#should_fix ⇒ Boolean Also known as: should_fix?
Whether to attempt to fix the ACL by adding the room or DM members to the
Drive file's ACL.
Corresponds to the JSON property shouldFix
104 105 106 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 104 def should_fix @should_fix end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
112 113 114 115 116 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 112 def update!(**args) @recipient_emails = args[:recipient_emails] if args.key?(:recipient_emails) @role = args[:role] if args.key?(:role) @should_fix = args[:should_fix] if args.key?(:should_fix) end |