DriveFileCapabilities
extends Model
in package
This class defines attributes, valid values, and usage which is generated from a given json schema.
http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5
Table of Contents
Constants
- NULL_VALUE = "{}gapi-php-null"
- If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.
Properties
- $canAddChildren : mixed
- $canAddFolderFromAnotherDrive : mixed
- $canAddMyDriveParent : mixed
- $canChangeCopyRequiresWriterPermission : mixed
- $canChangeSecurityUpdateEnabled : mixed
- $canChangeViewersCanCopyContent : mixed
- $canComment : mixed
- $canCopy : mixed
- $canDelete : mixed
- $canDeleteChildren : mixed
- $canDownload : mixed
- $canEdit : mixed
- $canListChildren : mixed
- $canModifyContent : mixed
- $canModifyContentRestriction : mixed
- $canMoveChildrenOutOfDrive : mixed
- $canMoveChildrenOutOfTeamDrive : mixed
- $canMoveChildrenWithinDrive : mixed
- $canMoveChildrenWithinTeamDrive : mixed
- $canMoveItemIntoTeamDrive : mixed
- $canMoveItemOutOfDrive : mixed
- $canMoveItemOutOfTeamDrive : mixed
- $canMoveItemWithinDrive : mixed
- $canMoveItemWithinTeamDrive : mixed
- $canMoveTeamDriveItem : mixed
- $canReadDrive : mixed
- $canReadRevisions : mixed
- $canReadTeamDrive : mixed
- $canRemoveChildren : mixed
- $canRemoveMyDriveParent : mixed
- $canRename : mixed
- $canShare : mixed
- $canTrash : mixed
- $canTrashChildren : mixed
- $canUntrash : mixed
- $internal_gapi_mappings : mixed
- $modelData : mixed
- $processed : mixed
Methods
- __construct() : mixed
- Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.
- __get() : mixed
- Getter that handles passthrough access to the data array, and lazy object creation.
- __isset() : mixed
- __unset() : mixed
- assertIsArray() : mixed
- Verify if $obj is an array.
- getCanAddChildren() : mixed
- getCanAddFolderFromAnotherDrive() : mixed
- getCanAddMyDriveParent() : mixed
- getCanChangeCopyRequiresWriterPermission() : mixed
- getCanChangeSecurityUpdateEnabled() : mixed
- getCanChangeViewersCanCopyContent() : mixed
- getCanComment() : mixed
- getCanCopy() : mixed
- getCanDelete() : mixed
- getCanDeleteChildren() : mixed
- getCanDownload() : mixed
- getCanEdit() : mixed
- getCanListChildren() : mixed
- getCanModifyContent() : mixed
- getCanModifyContentRestriction() : mixed
- getCanMoveChildrenOutOfDrive() : mixed
- getCanMoveChildrenOutOfTeamDrive() : mixed
- getCanMoveChildrenWithinDrive() : mixed
- getCanMoveChildrenWithinTeamDrive() : mixed
- getCanMoveItemIntoTeamDrive() : mixed
- getCanMoveItemOutOfDrive() : mixed
- getCanMoveItemOutOfTeamDrive() : mixed
- getCanMoveItemWithinDrive() : mixed
- getCanMoveItemWithinTeamDrive() : mixed
- getCanMoveTeamDriveItem() : mixed
- getCanReadDrive() : mixed
- getCanReadRevisions() : mixed
- getCanReadTeamDrive() : mixed
- getCanRemoveChildren() : mixed
- getCanRemoveMyDriveParent() : mixed
- getCanRename() : mixed
- getCanShare() : mixed
- getCanTrash() : mixed
- getCanTrashChildren() : mixed
- getCanUntrash() : mixed
- offsetExists() : mixed
- offsetGet() : mixed
- offsetSet() : mixed
- offsetUnset() : mixed
- setCanAddChildren() : mixed
- setCanAddFolderFromAnotherDrive() : mixed
- setCanAddMyDriveParent() : mixed
- setCanChangeCopyRequiresWriterPermission() : mixed
- setCanChangeSecurityUpdateEnabled() : mixed
- setCanChangeViewersCanCopyContent() : mixed
- setCanComment() : mixed
- setCanCopy() : mixed
- setCanDelete() : mixed
- setCanDeleteChildren() : mixed
- setCanDownload() : mixed
- setCanEdit() : mixed
- setCanListChildren() : mixed
- setCanModifyContent() : mixed
- setCanModifyContentRestriction() : mixed
- setCanMoveChildrenOutOfDrive() : mixed
- setCanMoveChildrenOutOfTeamDrive() : mixed
- setCanMoveChildrenWithinDrive() : mixed
- setCanMoveChildrenWithinTeamDrive() : mixed
- setCanMoveItemIntoTeamDrive() : mixed
- setCanMoveItemOutOfDrive() : mixed
- setCanMoveItemOutOfTeamDrive() : mixed
- setCanMoveItemWithinDrive() : mixed
- setCanMoveItemWithinTeamDrive() : mixed
- setCanMoveTeamDriveItem() : mixed
- setCanReadDrive() : mixed
- setCanReadRevisions() : mixed
- setCanReadTeamDrive() : mixed
- setCanRemoveChildren() : mixed
- setCanRemoveMyDriveParent() : mixed
- setCanRename() : mixed
- setCanShare() : mixed
- setCanTrash() : mixed
- setCanTrashChildren() : mixed
- setCanUntrash() : mixed
- toSimpleObject() : mixed
- Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.
- dataType() : mixed
- gapiInit() : mixed
- Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.
- isAssociativeArray() : bool
- Returns true only if the array is associative.
- keyType() : mixed
- mapTypes() : void
- Initialize this object's properties from an array.
- camelCase() : string
- Convert a string to camelCase
- getMappedName() : mixed
- If there is an internal name mapping, use that.
- getSimpleValue() : mixed
- Handle different types of values, primarily other objects and map and array data types.
- nullPlaceholderCheck() : mixed
- Check whether the value is the null placeholder and return true null.
Constants
NULL_VALUE
If you need to specify a NULL JSON value, use Google\Model::NULL_VALUE instead - it will be replaced when converting to JSON with a real null.
public
mixed
NULL_VALUE
= "{}gapi-php-null"
Properties
$canAddChildren
public
mixed
$canAddChildren
$canAddFolderFromAnotherDrive
public
mixed
$canAddFolderFromAnotherDrive
$canAddMyDriveParent
public
mixed
$canAddMyDriveParent
$canChangeCopyRequiresWriterPermission
public
mixed
$canChangeCopyRequiresWriterPermission
$canChangeSecurityUpdateEnabled
public
mixed
$canChangeSecurityUpdateEnabled
$canChangeViewersCanCopyContent
public
mixed
$canChangeViewersCanCopyContent
$canComment
public
mixed
$canComment
$canCopy
public
mixed
$canCopy
$canDelete
public
mixed
$canDelete
$canDeleteChildren
public
mixed
$canDeleteChildren
$canDownload
public
mixed
$canDownload
$canEdit
public
mixed
$canEdit
$canListChildren
public
mixed
$canListChildren
$canModifyContent
public
mixed
$canModifyContent
$canModifyContentRestriction
public
mixed
$canModifyContentRestriction
$canMoveChildrenOutOfDrive
public
mixed
$canMoveChildrenOutOfDrive
$canMoveChildrenOutOfTeamDrive
public
mixed
$canMoveChildrenOutOfTeamDrive
$canMoveChildrenWithinDrive
public
mixed
$canMoveChildrenWithinDrive
$canMoveChildrenWithinTeamDrive
public
mixed
$canMoveChildrenWithinTeamDrive
$canMoveItemIntoTeamDrive
public
mixed
$canMoveItemIntoTeamDrive
$canMoveItemOutOfDrive
public
mixed
$canMoveItemOutOfDrive
$canMoveItemOutOfTeamDrive
public
mixed
$canMoveItemOutOfTeamDrive
$canMoveItemWithinDrive
public
mixed
$canMoveItemWithinDrive
$canMoveItemWithinTeamDrive
public
mixed
$canMoveItemWithinTeamDrive
$canMoveTeamDriveItem
public
mixed
$canMoveTeamDriveItem
$canReadDrive
public
mixed
$canReadDrive
$canReadRevisions
public
mixed
$canReadRevisions
$canReadTeamDrive
public
mixed
$canReadTeamDrive
$canRemoveChildren
public
mixed
$canRemoveChildren
$canRemoveMyDriveParent
public
mixed
$canRemoveMyDriveParent
$canRename
public
mixed
$canRename
$canShare
public
mixed
$canShare
$canTrash
public
mixed
$canTrash
$canTrashChildren
public
mixed
$canTrashChildren
$canUntrash
public
mixed
$canUntrash
$internal_gapi_mappings
protected
mixed
$internal_gapi_mappings
= array()
$modelData
protected
mixed
$modelData
= array()
$processed
protected
mixed
$processed
= array()
Methods
__construct()
Polymorphic - accepts a variable number of arguments dependent on the type of the model subclass.
public
final __construct() : mixed
__get()
Getter that handles passthrough access to the data array, and lazy object creation.
public
__get(string $key) : mixed
Parameters
- $key : string
-
Property name.
Return values
mixed —The value if any, or null.
__isset()
public
__isset(mixed $key) : mixed
Parameters
- $key : mixed
__unset()
public
__unset(mixed $key) : mixed
Parameters
- $key : mixed
assertIsArray()
Verify if $obj is an array.
public
assertIsArray(array<string|int, mixed> $obj, string $method) : mixed
Parameters
- $obj : array<string|int, mixed>
-
Items that should be validated.
- $method : string
-
Method expecting an array as an argument.
Tags
getCanAddChildren()
public
getCanAddChildren() : mixed
getCanAddFolderFromAnotherDrive()
public
getCanAddFolderFromAnotherDrive() : mixed
getCanAddMyDriveParent()
public
getCanAddMyDriveParent() : mixed
getCanChangeCopyRequiresWriterPermission()
public
getCanChangeCopyRequiresWriterPermission() : mixed
getCanChangeSecurityUpdateEnabled()
public
getCanChangeSecurityUpdateEnabled() : mixed
getCanChangeViewersCanCopyContent()
public
getCanChangeViewersCanCopyContent() : mixed
getCanComment()
public
getCanComment() : mixed
getCanCopy()
public
getCanCopy() : mixed
getCanDelete()
public
getCanDelete() : mixed
getCanDeleteChildren()
public
getCanDeleteChildren() : mixed
getCanDownload()
public
getCanDownload() : mixed
getCanEdit()
public
getCanEdit() : mixed
getCanListChildren()
public
getCanListChildren() : mixed
getCanModifyContent()
public
getCanModifyContent() : mixed
getCanModifyContentRestriction()
public
getCanModifyContentRestriction() : mixed
getCanMoveChildrenOutOfDrive()
public
getCanMoveChildrenOutOfDrive() : mixed
getCanMoveChildrenOutOfTeamDrive()
public
getCanMoveChildrenOutOfTeamDrive() : mixed
getCanMoveChildrenWithinDrive()
public
getCanMoveChildrenWithinDrive() : mixed
getCanMoveChildrenWithinTeamDrive()
public
getCanMoveChildrenWithinTeamDrive() : mixed
getCanMoveItemIntoTeamDrive()
public
getCanMoveItemIntoTeamDrive() : mixed
getCanMoveItemOutOfDrive()
public
getCanMoveItemOutOfDrive() : mixed
getCanMoveItemOutOfTeamDrive()
public
getCanMoveItemOutOfTeamDrive() : mixed
getCanMoveItemWithinDrive()
public
getCanMoveItemWithinDrive() : mixed
getCanMoveItemWithinTeamDrive()
public
getCanMoveItemWithinTeamDrive() : mixed
getCanMoveTeamDriveItem()
public
getCanMoveTeamDriveItem() : mixed
getCanReadDrive()
public
getCanReadDrive() : mixed
getCanReadRevisions()
public
getCanReadRevisions() : mixed
getCanReadTeamDrive()
public
getCanReadTeamDrive() : mixed
getCanRemoveChildren()
public
getCanRemoveChildren() : mixed
getCanRemoveMyDriveParent()
public
getCanRemoveMyDriveParent() : mixed
getCanRename()
public
getCanRename() : mixed
getCanShare()
public
getCanShare() : mixed
getCanTrash()
public
getCanTrash() : mixed
getCanTrashChildren()
public
getCanTrashChildren() : mixed
getCanUntrash()
public
getCanUntrash() : mixed
offsetExists()
public
offsetExists(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetGet()
public
offsetGet(mixed $offset) : mixed
Parameters
- $offset : mixed
offsetSet()
public
offsetSet(mixed $offset, mixed $value) : mixed
Parameters
- $offset : mixed
- $value : mixed
offsetUnset()
public
offsetUnset(mixed $offset) : mixed
Parameters
- $offset : mixed
setCanAddChildren()
public
setCanAddChildren(mixed $canAddChildren) : mixed
Parameters
- $canAddChildren : mixed
setCanAddFolderFromAnotherDrive()
public
setCanAddFolderFromAnotherDrive(mixed $canAddFolderFromAnotherDrive) : mixed
Parameters
- $canAddFolderFromAnotherDrive : mixed
setCanAddMyDriveParent()
public
setCanAddMyDriveParent(mixed $canAddMyDriveParent) : mixed
Parameters
- $canAddMyDriveParent : mixed
setCanChangeCopyRequiresWriterPermission()
public
setCanChangeCopyRequiresWriterPermission(mixed $canChangeCopyRequiresWriterPermission) : mixed
Parameters
- $canChangeCopyRequiresWriterPermission : mixed
setCanChangeSecurityUpdateEnabled()
public
setCanChangeSecurityUpdateEnabled(mixed $canChangeSecurityUpdateEnabled) : mixed
Parameters
- $canChangeSecurityUpdateEnabled : mixed
setCanChangeViewersCanCopyContent()
public
setCanChangeViewersCanCopyContent(mixed $canChangeViewersCanCopyContent) : mixed
Parameters
- $canChangeViewersCanCopyContent : mixed
setCanComment()
public
setCanComment(mixed $canComment) : mixed
Parameters
- $canComment : mixed
setCanCopy()
public
setCanCopy(mixed $canCopy) : mixed
Parameters
- $canCopy : mixed
setCanDelete()
public
setCanDelete(mixed $canDelete) : mixed
Parameters
- $canDelete : mixed
setCanDeleteChildren()
public
setCanDeleteChildren(mixed $canDeleteChildren) : mixed
Parameters
- $canDeleteChildren : mixed
setCanDownload()
public
setCanDownload(mixed $canDownload) : mixed
Parameters
- $canDownload : mixed
setCanEdit()
public
setCanEdit(mixed $canEdit) : mixed
Parameters
- $canEdit : mixed
setCanListChildren()
public
setCanListChildren(mixed $canListChildren) : mixed
Parameters
- $canListChildren : mixed
setCanModifyContent()
public
setCanModifyContent(mixed $canModifyContent) : mixed
Parameters
- $canModifyContent : mixed
setCanModifyContentRestriction()
public
setCanModifyContentRestriction(mixed $canModifyContentRestriction) : mixed
Parameters
- $canModifyContentRestriction : mixed
setCanMoveChildrenOutOfDrive()
public
setCanMoveChildrenOutOfDrive(mixed $canMoveChildrenOutOfDrive) : mixed
Parameters
- $canMoveChildrenOutOfDrive : mixed
setCanMoveChildrenOutOfTeamDrive()
public
setCanMoveChildrenOutOfTeamDrive(mixed $canMoveChildrenOutOfTeamDrive) : mixed
Parameters
- $canMoveChildrenOutOfTeamDrive : mixed
setCanMoveChildrenWithinDrive()
public
setCanMoveChildrenWithinDrive(mixed $canMoveChildrenWithinDrive) : mixed
Parameters
- $canMoveChildrenWithinDrive : mixed
setCanMoveChildrenWithinTeamDrive()
public
setCanMoveChildrenWithinTeamDrive(mixed $canMoveChildrenWithinTeamDrive) : mixed
Parameters
- $canMoveChildrenWithinTeamDrive : mixed
setCanMoveItemIntoTeamDrive()
public
setCanMoveItemIntoTeamDrive(mixed $canMoveItemIntoTeamDrive) : mixed
Parameters
- $canMoveItemIntoTeamDrive : mixed
setCanMoveItemOutOfDrive()
public
setCanMoveItemOutOfDrive(mixed $canMoveItemOutOfDrive) : mixed
Parameters
- $canMoveItemOutOfDrive : mixed
setCanMoveItemOutOfTeamDrive()
public
setCanMoveItemOutOfTeamDrive(mixed $canMoveItemOutOfTeamDrive) : mixed
Parameters
- $canMoveItemOutOfTeamDrive : mixed
setCanMoveItemWithinDrive()
public
setCanMoveItemWithinDrive(mixed $canMoveItemWithinDrive) : mixed
Parameters
- $canMoveItemWithinDrive : mixed
setCanMoveItemWithinTeamDrive()
public
setCanMoveItemWithinTeamDrive(mixed $canMoveItemWithinTeamDrive) : mixed
Parameters
- $canMoveItemWithinTeamDrive : mixed
setCanMoveTeamDriveItem()
public
setCanMoveTeamDriveItem(mixed $canMoveTeamDriveItem) : mixed
Parameters
- $canMoveTeamDriveItem : mixed
setCanReadDrive()
public
setCanReadDrive(mixed $canReadDrive) : mixed
Parameters
- $canReadDrive : mixed
setCanReadRevisions()
public
setCanReadRevisions(mixed $canReadRevisions) : mixed
Parameters
- $canReadRevisions : mixed
setCanReadTeamDrive()
public
setCanReadTeamDrive(mixed $canReadTeamDrive) : mixed
Parameters
- $canReadTeamDrive : mixed
setCanRemoveChildren()
public
setCanRemoveChildren(mixed $canRemoveChildren) : mixed
Parameters
- $canRemoveChildren : mixed
setCanRemoveMyDriveParent()
public
setCanRemoveMyDriveParent(mixed $canRemoveMyDriveParent) : mixed
Parameters
- $canRemoveMyDriveParent : mixed
setCanRename()
public
setCanRename(mixed $canRename) : mixed
Parameters
- $canRename : mixed
setCanShare()
public
setCanShare(mixed $canShare) : mixed
Parameters
- $canShare : mixed
setCanTrash()
public
setCanTrash(mixed $canTrash) : mixed
Parameters
- $canTrash : mixed
setCanTrashChildren()
public
setCanTrashChildren(mixed $canTrashChildren) : mixed
Parameters
- $canTrashChildren : mixed
setCanUntrash()
public
setCanUntrash(mixed $canUntrash) : mixed
Parameters
- $canUntrash : mixed
toSimpleObject()
Create a simplified object suitable for straightforward conversion to JSON. This is relatively expensive due to the usage of reflection, but shouldn't be called a whole lot, and is the most straightforward way to filter.
public
toSimpleObject() : mixed
dataType()
protected
dataType(mixed $key) : mixed
Parameters
- $key : mixed
gapiInit()
Blank initialiser to be used in subclasses to do post-construction initialisation - this avoids the need for subclasses to have to implement the variadics handling in their constructors.
protected
gapiInit() : mixed
isAssociativeArray()
Returns true only if the array is associative.
protected
isAssociativeArray(array<string|int, mixed> $array) : bool
Parameters
- $array : array<string|int, mixed>
Return values
bool —True if the array is associative.
keyType()
protected
keyType(mixed $key) : mixed
Parameters
- $key : mixed
mapTypes()
Initialize this object's properties from an array.
protected
mapTypes(array<string|int, mixed> $array) : void
Parameters
- $array : array<string|int, mixed>
-
Used to seed this object's properties.
camelCase()
Convert a string to camelCase
private
camelCase(string $value) : string
Parameters
- $value : string
Return values
stringgetMappedName()
If there is an internal name mapping, use that.
private
getMappedName(mixed $key) : mixed
Parameters
- $key : mixed
getSimpleValue()
Handle different types of values, primarily other objects and map and array data types.
private
getSimpleValue(mixed $value) : mixed
Parameters
- $value : mixed
nullPlaceholderCheck()
Check whether the value is the null placeholder and return true null.
private
nullPlaceholderCheck(mixed $value) : mixed
Parameters
- $value : mixed