Module GapiDriveV2Model.Permission

module Permission: sig .. end

type t = {
   additionalRoles : string list; (*
Additional roles for this user. Only commenter is currently allowed.
*)
   authKey : string; (*
The authkey parameter required for this permission.
*)
   domain : string; (*
The domain name of the entity this permission refers to. This is an output-only field which is present when the permission type is user, group or domain.
*)
   emailAddress : string; (*
The email address of the user or group this permission refers to. This is an output-only field which is present when the permission type is user or group.
*)
   etag : string; (*
The ETag of the permission.
*)
   expirationDate : GapiDate.t; (*
The time at which this permission will expire (RFC 3339 date-time).
*)
   id : string; (*
The ID of the user this permission refers to, and identical to the permissionId in the About and Files resources. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type anyone, in which case both id and value are ignored.
*)
   kind : string; (*
This is always drive#permission.
*)
   name : string; (*
The name for this permission.
*)
   photoLink : string; (*
A link to the profile photo, if available.
*)
   role : string; (*
The primary role for this user. Allowed values are:
  • owner
  • reader
  • writer

*)
   selfLink : string; (*
A link back to this permission.
*)
   _type : string; (*
The account type. Allowed values are:
  • user
  • group
  • domain
  • anyone

*)
   value : string; (*
The email address or domain name for the entity. This is used during inserts and is not populated in responses. When making a drive.permissions.insert request, exactly one of the id or value fields must be specified unless the permission type anyone, in which case both id and value are ignored.
*)
   withLink : bool; (*
Whether the link is required for this permission.
*)
}
val additionalRoles : (t, string list) GapiLens.t
val authKey : (t, string) GapiLens.t
val domain : (t, string) GapiLens.t
val emailAddress : (t, string) GapiLens.t
val etag : (t, string) GapiLens.t
val expirationDate : (t, GapiDate.t) GapiLens.t
val id : (t, string) GapiLens.t
val kind : (t, string) GapiLens.t
val name : (t, string) GapiLens.t
val photoLink : (t, string) GapiLens.t
val role : (t, string) GapiLens.t
val selfLink : (t, string) GapiLens.t
val _type : (t, string) GapiLens.t
val value : (t, string) GapiLens.t
val withLink : (t, bool) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t ->
GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t