package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. readOnly : bool;
    (*

    Whether the content of the file is read-only. If a file is read-only, a new revision of the file may not be added, comments may not be added or modified, and the title of the file may not be modified.

    *)
  2. reason : string;
    (*

    Reason for why the content of the file is restricted. This is only mutable on requests that also set readOnly=true.

    *)
  3. restrictingUser : User.t;
    (*

    The user who set the content restriction. Only populated if readOnly is true.

    *)
  4. restrictionTime : GapiDate.t;
    (*

    The time at which the content restriction was set (formatted RFC 3339 timestamp). Only populated if readOnly is true.

    *)
  5. _type : string;
    (*

    The type of the content restriction. Currently the only possible value is globalContentRestriction.

    *)
}
val readOnly : (t, bool) GapiLens.t
val reason : (t, string) GapiLens.t
val restrictingUser : (t, User.t) GapiLens.t
val restrictionTime : (t, GapiDate.t) GapiLens.t
val _type : (t, string) 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
OCaml

Innovation. Community. Security.