Module Values.ImportDocumentationPartsRequestSource

Import documentation parts from an external (e.g., OpenAPI) definition file.

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

    The string identifier of the associated RestApi.

    *)
  2. mode : PutMode.t option;
    (*

    A query parameter to indicate whether to overwrite (overwrite) any existing DocumentationParts definition or to merge (merge) the new definition into the existing one. The default value is merge.

    *)
  3. failOnWarnings : Boolean.t option;
    (*

    A query parameter to specify whether to rollback the documentation importation (true) or not (false) when a warning is encountered. The default value is false.

    *)
  4. body : Blob.t;
    (*

    Raw byte array representing the to-be-imported documentation parts. To import from an OpenAPI file, this is a JSON object.

    *)
}
Sourceval context_ : string
Sourceval make : ?mode:??? -> ?failOnWarnings:??? -> restApiId:String_.t -> body:Blob.t -> unit -> t
Sourceval of_header_and_body : ((string, String_.t) Awso.Import.List.Assoc.t * Blob.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of Blob.t | `Boolean of Boolean.t | `Enum 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