Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update Drive Model (appDataContents)

  • Loading branch information...
commit 03413aefc6928d971b02a76e5f61e53a18e4560d 1 parent 80fb925
@astrada authored
Showing with 14 additions and 0 deletions.
  1. +11 −0 src/gapi/gapiDriveV2Model.ml
  2. +3 −0  src/gapi/gapiDriveV2Model.mli
View
11 src/gapi/gapiDriveV2Model.ml
@@ -793,6 +793,7 @@ struct
type t = {
alternateLink : string;
+ appDataContents : bool;
createdDate : GapiDate.t;
description : string;
downloadUrl : string;
@@ -835,6 +836,10 @@ struct
GapiLens.get = (fun x -> x.alternateLink);
GapiLens.set = (fun v x -> { x with alternateLink = v });
}
+ let appDataContents = {
+ GapiLens.get = (fun x -> x.appDataContents);
+ GapiLens.set = (fun v x -> { x with appDataContents = v });
+ }
let createdDate = {
GapiLens.get = (fun x -> x.createdDate);
GapiLens.set = (fun v x -> { x with createdDate = v });
@@ -978,6 +983,7 @@ struct
let empty = {
alternateLink = "";
+ appDataContents = false;
createdDate = GapiDate.epoch;
description = "";
downloadUrl = "";
@@ -1019,6 +1025,7 @@ struct
let rec render_content x =
[
GapiJson.render_string_value "alternateLink" x.alternateLink;
+ GapiJson.render_bool_value "appDataContents" x.appDataContents;
GapiJson.render_date_value "createdDate" x.createdDate;
GapiJson.render_string_value "description" x.description;
GapiJson.render_string_value "downloadUrl" x.downloadUrl;
@@ -1065,6 +1072,10 @@ struct
`String v) ->
{ x with alternateLink = v }
| GapiCore.AnnotatedTree.Leaf
+ ({ GapiJson.name = "appDataContents"; data_type = GapiJson.Scalar },
+ `Bool v) ->
+ { x with appDataContents = v }
+ | GapiCore.AnnotatedTree.Leaf
({ GapiJson.name = "createdDate"; data_type = GapiJson.Scalar },
`String v) ->
{ x with createdDate = GapiDate.of_string v }
View
3  src/gapi/gapiDriveV2Model.mli
@@ -278,6 +278,8 @@ sig
type t = {
alternateLink : string;
(** A link for opening the file in using a relevant Google editor or viewer. *)
+ appDataContents : bool;
+ (** Whether this file is in the appdata folder. *)
createdDate : GapiDate.t;
(** Create time for this file (formatted ISO8601 timestamp). *)
description : string;
@@ -353,6 +355,7 @@ Setting this field will put the file in all of the provided folders. On insert,
}
val alternateLink : (t, string) GapiLens.t
+ val appDataContents : (t, bool) GapiLens.t
val createdDate : (t, GapiDate.t) GapiLens.t
val description : (t, string) GapiLens.t
val downloadUrl : (t, string) GapiLens.t
Please sign in to comment.
Something went wrong with that request. Please try again.