Class: Google::Apis::DriveV2::Drive::Restrictions
- Inherits:
-
Object
- Object
- Google::Apis::DriveV2::Drive::Restrictions
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/drive_v2/classes.rb,
generated/google/apis/drive_v2/representations.rb,
generated/google/apis/drive_v2/representations.rb
Overview
A set of restrictions that apply to this shared drive or items inside this shared drive.
Instance Attribute Summary collapse
-
#admin_managed_restrictions ⇒ Boolean
(also: #admin_managed_restrictions?)
Whether administrative privileges on this shared 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 shared drive, should be disabled for readers and commenters.
-
#domain_users_only ⇒ Boolean
(also: #domain_users_only?)
Whether access to this shared drive and items inside this shared drive is restricted to users of the domain to which this shared drive belongs.
-
#drive_members_only ⇒ Boolean
(also: #drive_members_only?)
Whether access to items inside this shared drive is restricted to its members.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Restrictions
constructor
A new instance of Restrictions.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Restrictions
Returns a new instance of Restrictions
1663 1664 1665 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1663 def initialize(**args) update!(**args) end |
Instance Attribute Details
#admin_managed_restrictions ⇒ Boolean Also known as: admin_managed_restrictions?
Whether administrative privileges on this shared drive are required to modify
restrictions.
Corresponds to the JSON property adminManagedRestrictions
1636 1637 1638 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1636 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 shared 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 shared drive.
Corresponds to the JSON property copyRequiresWriterPermission
1645 1646 1647 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1645 def @copy_requires_writer_permission end |
#domain_users_only ⇒ Boolean Also known as: domain_users_only?
Whether access to this shared drive and items inside this shared drive is
restricted to users of the domain to which this shared drive belongs. This
restriction may be overridden by other sharing policies controlled outside of
this shared drive.
Corresponds to the JSON property domainUsersOnly
1654 1655 1656 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1654 def domain_users_only @domain_users_only end |
#drive_members_only ⇒ Boolean Also known as: drive_members_only?
Whether access to items inside this shared drive is restricted to its members.
Corresponds to the JSON property driveMembersOnly
1660 1661 1662 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1660 def drive_members_only @drive_members_only end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1668 1669 1670 1671 1672 1673 |
# File 'generated/google/apis/drive_v2/classes.rb', line 1668 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) @drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only) end |