Class: Google::Apis::DriveV3::TeamDrive::Restrictions
- Inherits:
-
Object
- Object
- Google::Apis::DriveV3::TeamDrive::Restrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/google/apis/drive_v3/representations.rb
Overview
A set of restrictions that apply to this Team Drive or items inside this Team Drive.
Instance Attribute Summary collapse
-
#admin_managed_restrictions ⇒ Boolean
(also: #admin_managed_restrictions?)
Whether administrative privileges on this Team Drive are required to modify restrictions.
-
#copy_requires_writer_permission ⇒ Boolean
(also: #copy_requires_writer_permission?)
Whether the options to copy, print, or download files inside this Team Drive, should be disabled for readers and commenters.
-
#domain_users_only ⇒ Boolean
(also: #domain_users_only?)
Whether access to this Team Drive and items inside this Team Drive is restricted to users of the domain to which this Team Drive belongs.
-
#download_restriction ⇒ Google::Apis::DriveV3::DownloadRestriction
A restriction for copy and download of the file.
-
#sharing_folders_requires_organizer_permission ⇒ Boolean
(also: #sharing_folders_requires_organizer_permission?)
If true, only users with the organizer role can share folders.
-
#team_members_only ⇒ Boolean
(also: #team_members_only?)
Whether access to items inside this Team Drive is restricted to members of this Team Drive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Restrictions
constructor
A new instance of Restrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Restrictions
Returns a new instance of Restrictions.
4147 4148 4149 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4147 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_managed_restrictions ⇒ Boolean Also known as: admin_managed_restrictions?
Whether administrative privileges on this Team Drive are required to modify
restrictions.
Corresponds to the JSON property adminManagedRestrictions
4107 4108 4109 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4107 def admin_managed_restrictions @admin_managed_restrictions end |
#copy_requires_writer_permission ⇒ Boolean Also known as: copy_requires_writer_permission?
Whether the options to copy, print, or download files inside this Team Drive,
should be disabled for readers and commenters. When this restriction is set to
true, it will override the similarly named field to true for any file
inside this Team Drive.
Corresponds to the JSON property copyRequiresWriterPermission
4116 4117 4118 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4116 def @copy_requires_writer_permission end |
#domain_users_only ⇒ Boolean Also known as: domain_users_only?
Whether access to this Team Drive and items inside this Team Drive is
restricted to users of the domain to which this Team Drive belongs. This
restriction may be overridden by other sharing policies controlled outside of
this Team Drive.
Corresponds to the JSON property domainUsersOnly
4125 4126 4127 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4125 def domain_users_only @domain_users_only end |
#download_restriction ⇒ Google::Apis::DriveV3::DownloadRestriction
A restriction for copy and download of the file.
Corresponds to the JSON property downloadRestriction
4131 4132 4133 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4131 def download_restriction @download_restriction end |
#sharing_folders_requires_organizer_permission ⇒ Boolean Also known as:
If true, only users with the organizer role can share folders. If false, users
with either the organizer role or the file organizer role can share folders.
Corresponds to the JSON property sharingFoldersRequiresOrganizerPermission
4137 4138 4139 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4137 def @sharing_folders_requires_organizer_permission end |
#team_members_only ⇒ Boolean Also known as: team_members_only?
Whether access to items inside this Team Drive is restricted to members of
this Team Drive.
Corresponds to the JSON property teamMembersOnly
4144 4145 4146 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4144 def team_members_only @team_members_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4152 4153 4154 4155 4156 4157 4158 4159 |
# File 'lib/google/apis/drive_v3/classes.rb', line 4152 def update!(**args) @admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions) @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission) @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only) @download_restriction = args[:download_restriction] if args.key?(:download_restriction) @sharing_folders_requires_organizer_permission = args[:sharing_folders_requires_organizer_permission] if args.key?(:sharing_folders_requires_organizer_permission) @team_members_only = args[:team_members_only] if args.key?(:team_members_only) end |