class Google::Apis::DriveV2::TeamDrive::Restrictions

A set of restrictions that apply to this Team Drive or items inside this Team Drive.

Attributes

admin_managed_restrictions[RW]

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

admin_managed_restrictions?[RW]

Whether administrative privileges on this Team 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 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` @return [Boolean]

copy_requires_writer_permission?[RW]

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

domain_users_only[RW]

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

domain_users_only?[RW]

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

team_members_only[RW]

Whether access to items inside this Team Drive is restricted to members of this Team Drive. Corresponds to the JSON property `teamMembersOnly` @return [Boolean]

team_members_only?[RW]

Whether access to items inside this Team Drive is restricted to members of this Team Drive. Corresponds to the JSON property `teamMembersOnly` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/drive_v2/classes.rb, line 4080
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 4085
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)
  @team_members_only = args[:team_members_only] if args.key?(:team_members_only)
end