class

GoogleDrive::DriveCapabilities

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

Capabilities the current user has on this shared 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_drive_background : Bool | Nil = nil, can_change_drive_members_only_restriction : Bool | Nil = nil, can_comment : Bool | Nil = nil, can_copy : Bool | Nil = nil, can_delete_children : Bool | Nil = nil, can_delete_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_rename : Bool | Nil = nil, can_rename_drive : Bool | Nil = nil, can_reset_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 shared 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 shared 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 shared 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_drive_background

Whether the current user can change the background of this shared drive.

Source
can_change_drive_background=(new_value : Bool | Nil)

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

Source
can_change_drive_members_only_restriction

Whether the current user can change the driveMembersOnly restriction of this shared drive.

Source
can_change_drive_members_only_restriction=(new_value : Bool | Nil)

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

Source
can_comment

Whether the current user can comment on files in this shared 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 shared 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 shared 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_drive

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

Source
can_delete_drive=(new_value : Bool | Nil)

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

Source
can_download

Whether the current user can download files in this shared 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 shared 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 shared 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 shared 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 shared 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_rename

Whether the current user can rename files or folders in this shared 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_drive

Whether the current user can rename this shared drive.

Source
can_rename_drive=(new_value : Bool | Nil)

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

Source
can_reset_drive_restrictions

Whether the current user can reset the shared drive restrictions to defaults.

Source
can_reset_drive_restrictions=(new_value : Bool | Nil)

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

Source
can_share

Whether the current user can share files or folders in this shared 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 shared 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