Module Values.CreateModelRequestSource

Request to add a new Model to an existing RestApi resource.

Sourcetype nonrec t = {
  1. restApiId : String_.t;
    (*

    The RestApi identifier under which the Model will be created.

    *)
  2. name : String_.t;
    (*

    The name of the model. Must be alphanumeric.

    *)
  3. description : String_.t option;
    (*

    The description of the model.

    *)
  4. schema : String_.t option;
    (*

    The schema for the model. For application/json models, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB.

    *)
  5. contentType : String_.t;
    (*

    The content-type for the model.

    *)
}
Sourceval context_ : string
Sourceval make : ?description:??? -> ?schema:??? -> restApiId:String_.t -> name:String_.t -> contentType:String_.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of String_.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t