class

GoogleDrive::TeamDriveCapabilities

Inherits OpenApi::Json / OpenApi::Validatable / JSON::Serializable::Unmapped / JSON::Serializable / Reference / Object

Capabilities the current user has on this Team Drive.

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, can_add_children : Bool | Nil = nil, can_change_copy_requires_writer_permission_restriction : Bool | Nil = nil, can_change_domain_users_only_restriction : Bool | Nil = nil, can_change_team_drive_background : Bool | Nil = nil, can_change_team_members_only_restriction : Bool | Nil = nil, can_comment : Bool | Nil = nil, can_copy : Bool | Nil = nil, can_delete_children : Bool | Nil = nil, can_delete_team_drive : Bool | Nil = nil, can_download : Bool | Nil = nil, can_edit : Bool | Nil = nil, can_list_children : Bool | Nil = nil, can_manage_members : Bool | Nil = nil, can_read_revisions : Bool | Nil = nil, can_remove_children : Bool | Nil = nil, can_rename : Bool | Nil = nil, can_rename_team_drive : Bool | Nil = nil, can_reset_team_drive_restrictions : Bool | Nil = nil, can_share : Bool | Nil = nil, can_trash_children : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

can_add_children

Whether the current user can add children to folders in this Team Drive.

Source
can_add_children=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_add_children Object to be assigned

Source
can_change_copy_requires_writer_permission_restriction

Whether the current user can change the copyRequiresWriterPermission restriction of this Team Drive.

Source
can_change_copy_requires_writer_permission_restriction=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_change_copy_requires_writer_permission_restriction Object to be assigned

Source
can_change_domain_users_only_restriction

Whether the current user can change the domainUsersOnly restriction of this Team Drive.

Source
can_change_domain_users_only_restriction=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_change_domain_users_only_restriction Object to be assigned

Source
can_change_team_drive_background

Whether the current user can change the background of this Team Drive.

Source
can_change_team_drive_background=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_change_team_drive_background Object to be assigned

Source
can_change_team_members_only_restriction

Whether the current user can change the teamMembersOnly restriction of this Team Drive.

Source
can_change_team_members_only_restriction=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_change_team_members_only_restriction Object to be assigned

Source
can_comment

Whether the current user can comment on files in this Team Drive.

Source
can_comment=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_comment Object to be assigned

Source
can_copy

Whether the current user can copy files in this Team Drive.

Source
can_copy=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_copy Object to be assigned

Source
can_delete_children

Whether the current user can delete children from folders in this Team Drive.

Source
can_delete_children=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_delete_children Object to be assigned

Source
can_delete_team_drive

Whether the current user can delete this Team Drive. Attempting to delete the Team Drive may still fail if there are untrashed items inside the Team Drive.

Source
can_delete_team_drive=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_delete_team_drive Object to be assigned

Source
can_download

Whether the current user can download files in this Team Drive.

Source
can_download=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_download Object to be assigned

Source
can_edit

Whether the current user can edit files in this Team Drive

Source
can_edit=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_edit Object to be assigned

Source
can_list_children

Whether the current user can list the children of folders in this Team Drive.

Source
can_list_children=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_list_children Object to be assigned

Source
can_manage_members

Whether the current user can add members to this Team Drive or remove them or change their role.

Source
can_manage_members=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_manage_members Object to be assigned

Source
can_read_revisions

Whether the current user can read the revisions resource of files in this Team Drive.

Source
can_read_revisions=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_read_revisions Object to be assigned

Source
can_remove_children

Deprecated - use canDeleteChildren or canTrashChildren instead.

Source
can_remove_children=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_remove_children Object to be assigned

Source
can_rename

Whether the current user can rename files or folders in this Team Drive.

Source
can_rename=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_rename Object to be assigned

Source
can_rename_team_drive

Whether the current user can rename this Team Drive.

Source
can_rename_team_drive=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_rename_team_drive Object to be assigned

Source
can_reset_team_drive_restrictions

Whether the current user can reset the Team Drive restrictions to defaults.

Source
can_reset_team_drive_restrictions=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_reset_team_drive_restrictions Object to be assigned

Source
can_share

Whether the current user can share files or folders in this Team Drive.

Source
can_share=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_share Object to be assigned

Source
can_trash_children

Whether the current user can trash children from folders in this Team Drive.

Source
can_trash_children=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] can_trash_children Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source