Class: Google::Apis::DriveV2::TeamDrive::Restrictions

Inherits:
Object
  • Object
show all
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 Team Drive or items inside this Team Drive.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Restrictions

Returns a new instance of Restrictions.



4021
4022
4023
# File 'generated/google/apis/drive_v2/classes.rb', line 4021

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#admin_managed_restrictionsBoolean Also known as: admin_managed_restrictions?

Whether administrative privileges on this Team Drive are required to modify restrictions. Corresponds to the JSON property adminManagedRestrictions

Returns:

  • (Boolean)


3993
3994
3995
# File 'generated/google/apis/drive_v2/classes.rb', line 3993

def admin_managed_restrictions
  @admin_managed_restrictions
end

#copy_requires_writer_permissionBoolean 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

Returns:

  • (Boolean)


4002
4003
4004
# File 'generated/google/apis/drive_v2/classes.rb', line 4002

def copy_requires_writer_permission
  @copy_requires_writer_permission
end

#domain_users_onlyBoolean 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

Returns:

  • (Boolean)


4011
4012
4013
# File 'generated/google/apis/drive_v2/classes.rb', line 4011

def domain_users_only
  @domain_users_only
end

#team_members_onlyBoolean 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

Returns:

  • (Boolean)


4018
4019
4020
# File 'generated/google/apis/drive_v2/classes.rb', line 4018

def team_members_only
  @team_members_only
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4026
4027
4028
4029
4030
4031
# File 'generated/google/apis/drive_v2/classes.rb', line 4026

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