module PermissionsResource: sig .. end
val delete : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
fileId:string ->
permissionId:string ->
GapiConversation.Session.t -> unit * GapiConversation.Session.t
Deletes a permission from a file.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
fileId : The ID for the file.
permissionId : The ID for the permission.
val get : ?base_url:string ->
?etag:string ->
?std_params:GapiService.StandardParameters.t ->
fileId:string ->
permissionId:string ->
GapiConversation.Session.t ->
GapiDriveV2Model.Permission.t * GapiConversation.Session.t
Gets a permission by ID.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
etag : Optional ETag.
std_params : Optional standard parameters.
fileId : The ID for the file.
permissionId : The ID for the permission.
val getIdForEmail : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
email:string ->
GapiConversation.Session.t ->
GapiDriveV2Model.PermissionId.t * GapiConversation.Session.t
Returns the permission ID for an email address.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
email : The email address for which to return a permission ID
val insert : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?sendNotificationEmails:bool ->
?emailMessage:string ->
fileId:string ->
GapiDriveV2Model.Permission.t ->
GapiConversation.Session.t ->
GapiDriveV2Model.Permission.t * GapiConversation.Session.t
Inserts a permission for a file.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
sendNotificationEmails : Whether to send notification emails when sharing to users or groups. This parameter is ignored and an email is sent if the role is owner.
emailMessage : A custom message to include in notification emails.
fileId : The ID for the file.
val list : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
fileId:string ->
GapiConversation.Session.t ->
GapiDriveV2Model.PermissionList.t * GapiConversation.Session.t
Lists a file's permissions.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
fileId : The ID for the file.
val patch : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?removeExpiration:bool ->
?transferOwnership:bool ->
fileId:string ->
permissionId:string ->
GapiDriveV2Model.Permission.t ->
GapiConversation.Session.t ->
GapiDriveV2Model.Permission.t * GapiConversation.Session.t
Updates a permission using patch semantics.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
removeExpiration : Whether to remove the expiration date.
transferOwnership : Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.
fileId : The ID for the file.
permissionId : The ID for the permission.
val update : ?base_url:string ->
?std_params:GapiService.StandardParameters.t ->
?removeExpiration:bool ->
?transferOwnership:bool ->
fileId:string ->
permissionId:string ->
GapiDriveV2Model.Permission.t ->
GapiConversation.Session.t ->
GapiDriveV2Model.Permission.t * GapiConversation.Session.t
Updates a permission.
base_url : Service endpoint base URL (defaults to "https://www.googleapis.com/drive/v2/").
std_params : Optional standard parameters.
removeExpiration : Whether to remove the expiration date.
transferOwnership : Whether changing a role to 'owner' downgrades the current owners to writers. Does nothing if the specified role is not 'owner'.
fileId : The ID for the file.
permissionId : The ID for the permission.