class Google::Apis::DriveV2::Drive::Restrictions

A set of restrictions that apply to this shared drive or items inside this shared drive.

Attributes

admin_managed_restrictions[RW]

Whether administrative privileges on this shared drive are required to modify restrictions. Corresponds to the JSON property `adminManagedRestrictions` @return [Boolean]

admin_managed_restrictions?[RW]

Whether administrative privileges on this shared drive are required to modify restrictions. Corresponds to the JSON property `adminManagedRestrictions` @return [Boolean]

copy_requires_writer_permission[RW]

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` @return [Boolean]

copy_requires_writer_permission?[RW]

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` @return [Boolean]

domain_users_only[RW]

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` @return [Boolean]

domain_users_only?[RW]

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` @return [Boolean]

drive_members_only[RW]

Whether access to items inside this shared drive is restricted to its members. Corresponds to the JSON property `driveMembersOnly` @return [Boolean]

drive_members_only?[RW]

Whether access to items inside this shared drive is restricted to its members. Corresponds to the JSON property `driveMembersOnly` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v2/classes.rb, line 1715
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/drive_v2/classes.rb, line 1720
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