GoogleDriveJsonProtocol
A module defining data classes that correspond to the GoogleDrive REST API as described at https://developers.google.com/drive/api/v3/reference/files.
The GoogleDrive REST API uses JSON as data exchange format. The classes defined here are used to read and write JSON to and from Scala objects.
In addition, the module defines converters for these data classes to enable a proper JSON serialization. They are available as implicits, which must be available in the current scope to make the conversion to and from JSON possible.
Attributes
- Graph
-
- Supertypes
-
trait DefaultJsonProtocoltrait AdditionalFormatstrait ProductFormatstrait ProductFormatsInstancestrait CollectionFormatstrait StandardFormatstrait BasicFormatsclass Objecttrait Matchableclass AnyShow all
- Self type
Members list
Type members
Classlikes
A data class corresponding to the GoogleDrive ''File'' resource.
A data class corresponding to the GoogleDrive ''File'' resource.
This resource is used to represent files and folders stored on a GoogleDrive. The ''FileSystem'' implementation for GoogleDrive mainly interacts with this resource.
Refer to https://developers.google.com/drive/api/v3/reference/files.
Value parameters
- appProperties
-
optional application-specific properties
- createdTime
-
the creation time
- description
-
the optional description for this file
- id
-
the ID of the file
- mimeType
-
the mime type
- modifiedTime
-
the time of the last modification
- name
-
the name of the file (or folder)
- parents
-
a list with the parents of this file
- properties
-
optional properties assigned to this file
- size
-
the size of the file
- trashed
-
flag whether the file is in trash
- trashedTime
-
optional time when the file was moved to trash
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A data class representing a reference to a file.
A data class representing a reference to a file.
This class is used for resolve operation, where only file IDs are relevant. Other information is ignored.
Value parameters
- id
-
the ID of the referenced file
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A data class describing the content of a folder with all its files.
A data class describing the content of a folder with all its files.
In Google Drive, there is the single type File representing both files and folders; so a single list with elements of this type is sufficient to hold all the elements the folder contains.
Value parameters
- files
-
the elements contained in the folder
- nextPageToken
-
an optional token to query the next result page
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A format implementation to deal with date-time values. GoogleDrive uses the default ISO format that can be parsed by the ''Instant'' class. Therefore, this implementation is straight-forward.
A format implementation to deal with date-time values. GoogleDrive uses the default ISO format that can be parsed by the ''Instant'' class. Therefore, this implementation is straight-forward.
Attributes
- Supertypes
-
trait JsonFormat[Instant]trait JsonWriter[Instant]trait JsonReader[Instant]class Objecttrait Matchableclass AnyShow all
- Self type
-
InstantFormat.type
A data class describing the response of a query to resolve files.
A data class describing the response of a query to resolve files.
The query requests only the ID field of files; therefore, only FileReference objects are constructed. Paging needs to be supported as well.
Value parameters
- files
-
the elements returned by the query
- nextPageToken
-
an optional token to query the next result page
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
A data class representing a ''File'' resource when it is created or updated.
A data class representing a ''File'' resource when it is created or updated.
This class has a subset of the properties of File, and all are optional. These are the writable properties that can be set in create or update operations. The class is used to generate the JSON payload for these operations.
Value parameters
- appProperties
-
the optional new application-specific properties
- createdTime
-
the optional new creation time
- description
-
the optional new description
- mimeType
-
the optional new mime type
- modifiedTime
-
the optional new modified time
- name
-
the optional new name of the file
- parents
-
the optional parents
- properties
-
the optional new properties
- trashed
-
the optional new trashed flag
- trashedTime
-
the optional new trashed time
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Inherited classlikes
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[BigDecimal]trait JsonWriter[BigDecimal]trait JsonReader[BigDecimal]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[BigInt]trait JsonWriter[BigInt]trait JsonReader[BigInt]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Boolean]trait JsonWriter[Boolean]trait JsonReader[Boolean]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Byte]trait JsonWriter[Byte]trait JsonReader[Byte]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Char]trait JsonWriter[Char]trait JsonReader[Char]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Double]trait JsonWriter[Double]trait JsonReader[Double]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Float]trait JsonWriter[Float]trait JsonReader[Float]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Int]trait JsonWriter[Int]trait JsonReader[Int]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- AdditionalFormats
- Supertypes
-
trait JsonFormat[JsValue]trait JsonWriter[JsValue]trait JsonReader[JsValue]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Long]trait JsonWriter[Long]trait JsonReader[Long]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- StandardFormats
- Supertypes
-
trait JsonFormat[Option[T]]trait JsonWriter[Option[T]]trait JsonReader[Option[T]]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- AdditionalFormats
- Supertypes
-
trait RootJsonFormat[JsArray]trait RootJsonWriter[JsArray]trait RootJsonReader[JsArray]trait JsonFormat[JsArray]trait JsonWriter[JsArray]trait JsonReader[JsArray]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- AdditionalFormats
- Supertypes
-
trait RootJsonFormat[JsObject]trait RootJsonWriter[JsObject]trait RootJsonReader[JsObject]trait JsonFormat[JsObject]trait JsonWriter[JsObject]trait JsonReader[JsObject]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Short]trait JsonWriter[Short]trait JsonReader[Short]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[String]trait JsonWriter[String]trait JsonReader[String]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Symbol]trait JsonWriter[Symbol]trait JsonReader[Symbol]class Objecttrait Matchableclass AnyShow all
Attributes
- Inherited from:
- BasicFormats
- Supertypes
-
trait JsonFormat[Unit]trait JsonWriter[Unit]trait JsonReader[Unit]class Objecttrait Matchableclass AnyShow all
Value members
Inherited methods
Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.
Constructs a JsonFormat from its two parts, JsonReader and JsonWriter.
Attributes
- Inherited from:
- AdditionalFormats
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormats
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Attributes
- Inherited from:
- ProductFormatsInstances
Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.
Lazy wrapper around serialization. Useful when you want to serialize (mutually) recursive structures.
Attributes
- Inherited from:
- AdditionalFormats
Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.
Turns a RootJsonReader into a RootJsonFormat that throws an UnsupportedOperationException for writes.
Attributes
- Inherited from:
- AdditionalFormats
Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.
Turns a JsonReader into a JsonFormat that throws an UnsupportedOperationException for writes.
Attributes
- Inherited from:
- AdditionalFormats
Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.
Turns a RootJsonWriter into a RootJsonFormat that throws an UnsupportedOperationException for reads.
Attributes
- Inherited from:
- AdditionalFormats
Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.
Turns a JsonWriter into a JsonFormat that throws an UnsupportedOperationException for reads.
Attributes
- Inherited from:
- AdditionalFormats
Explicitly turns a JsonFormat into a RootJsonFormat.
Explicitly turns a JsonFormat into a RootJsonFormat.
Attributes
- Inherited from:
- AdditionalFormats
Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.
Constructs a RootJsonFormat from its two parts, RootJsonReader and RootJsonWriter.
Attributes
- Inherited from:
- AdditionalFormats
Wraps an existing JsonReader with Exception protection.
Wraps an existing JsonReader with Exception protection.
Attributes
- Inherited from:
- AdditionalFormats
A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.
A JsonFormat construction helper that creates a JsonFormat for an Iterable type I from a builder function List => I.
Attributes
- Inherited from:
- CollectionFormats
Implicits
Implicits
Inherited implicits
Supplies the JsonFormat for Arrays.
Supplies the JsonFormat for Arrays.
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Supplies the JsonFormat for Lists.
Supplies the JsonFormat for Lists.
Attributes
- Inherited from:
- CollectionFormats
Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a spray.json.SerializationException will be thrown.
Supplies the JsonFormat for Maps. The implicitly available JsonFormat for the key type K must always write JsStrings, otherwise a spray.json.SerializationException will be thrown.
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- CollectionFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- StandardFormats
Attributes
- Inherited from:
- CollectionFormats