GoogleDriveModel
A module defining the GoogleDrive-specific implementations for the classes referenced by a file system.
In GoogleDrive, files and folders are both represented by the ''File'' resource. A ''File'' object contains basic properties, some Google-specific properties (such as permissions or information about the shared state), and maps with arbitrary global or application-specific properties. GoogleDriveJsonProtocol defines data classes that correspond to these structures.
The GoogleDrive-specific file and folder implementations reference such a GoogleDriveJsonProtocol.File object storing the underlying data. Their properties obtain their values from this object. The object can also be accessed by client code to access the additional information supported by the GoogleDrive protocol.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
GoogleDriveModel.type
Members list
Type members
Classlikes
A trait implementing basic functionality required by the GoogleDrive implementations for ''FileSystem'' files and folders.
A trait implementing basic functionality required by the GoogleDrive implementations for ''FileSystem'' files and folders.
This trait expect that the underlying data is available as a File object. It implements the basic properties by delegating to this object.
Attributes
- Supertypes
-
trait Element[String]class Objecttrait Matchableclass Any
- Known subtypes
-
class GoogleDriveFileclass GoogleDriveFolder
The GoogleDrive-specific implementation of the ''File'' trait
The GoogleDrive-specific implementation of the ''File'' trait
Value parameters
- googleFile
-
the underlying Google ''File'' object
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GoogleDriveElementtrait File[String]trait Element[String]class Objecttrait Matchableclass AnyShow all
The GoogleDrive-specific implementation of the ''Folder'' trait.
The GoogleDrive-specific implementation of the ''Folder'' trait.
Value parameters
- googleFile
-
the underlying Google ''File'' object
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait GoogleDriveElementtrait Folder[String]trait Element[String]class Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Constructs a ''GoogleDriveFile'' object for creating or updating a file in the GoogleDrive. For such an operation, typically only parts of the properties supported by a Google file need to be specified. Therefore, this function sets default values for all properties, and the caller only has to specify the relevant ones.
Constructs a ''GoogleDriveFile'' object for creating or updating a file in the GoogleDrive. For such an operation, typically only parts of the properties supported by a Google file need to be specified. Therefore, this function sets default values for all properties, and the caller only has to specify the relevant ones.
Value parameters
- appProperties
-
a map with application-specific properties
- createdAt
-
the time the file was created
- description
-
the description
- id
-
the file ID (needed for update operations)
- lastModifiedAt
-
the time of the last modification
- mimeType
-
the mime type of the file
- name
-
the name of the file
- properties
-
a map with properties for the file
- size
-
the size of the file; note that this property must be set when uploading the file's content
Attributes
- Returns
-
the new ''GoogleDriveFile'' object
Constructs a ''GoogleDriveFolder'' object for creating or updating a folder in the GoogleDrive. For such an operation, typically only parts of the properties supported by a Google folder need to be specified. Therefore, this function sets default values for all properties, and the caller only has to specify the relevant ones.
Constructs a ''GoogleDriveFolder'' object for creating or updating a folder in the GoogleDrive. For such an operation, typically only parts of the properties supported by a Google folder need to be specified. Therefore, this function sets default values for all properties, and the caller only has to specify the relevant ones.
Value parameters
- appProperties
-
a map with application-specific properties
- createdAt
-
the time the folder was created
- description
-
the description
- id
-
the folder ID (needed for update operations)
- lastModifiedAt
-
the time of the last modification
- name
-
the name of the folder
- properties
-
a map with properties for the folder
Attributes
- Returns
-
the new ''GoogleDriveFolder'' object
Concrete fields
Constant for the mime type used to mark a file in GoogleDrive as a folder.
Constant for the mime type used to mark a file in GoogleDrive as a folder.