Module Values.ResourceSource

Represents an API resource.

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

    The resource's identifier.

    *)
  2. parentId : String_.t option;
    (*

    The parent resource's identifier.

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

    The last path segment for this resource.

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

    The full path for this resource.

    *)
  5. resourceMethods : MapOfMethod.t option;
    (*

    Gets an API resource's method of a given HTTP verb.

    *)
}
Sourcetype nonrec error = [
  1. | `BadRequestException of BadRequestException.t
  2. | `ConflictException of ConflictException.t
  3. | `LimitExceededException of LimitExceededException.t
  4. | `NotFoundException of NotFoundException.t
  5. | `TooManyRequestsException of TooManyRequestsException.t
  6. | `UnauthorizedException of UnauthorizedException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?id:??? -> ?parentId:??? -> ?pathPart:??? -> ?path:??? -> ?resourceMethods:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `LimitExceededException of LimitExceededException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `BadRequestException of BadRequestException.t | `ConflictException of ConflictException.t | `LimitExceededException of LimitExceededException.t | `NotFoundException of NotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `UnauthorizedException of UnauthorizedException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `Structure of (string * [> `Boolean of NullableBoolean.t | `List of [> `String of String_.t ] list | `Map of ([> `String of String_.t ] * [> `Boolean of NullableBoolean.t | `String of String_.t | `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `Boolean of NullableBoolean.t | `String of String_.t ]) list | `String of StatusCode.t ]) list ]) list | `String of String_.t | `Structure of (string * [> `Enum of string | `Integer of Integer.t | `List of [> `String of String_.t ] list | `Map of ([> `String of String_.t ] * [> `String of String_.t | `Structure of (string * [> `Enum of string | `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of StatusCode.t ]) list ]) list | `String of String_.t | `Structure of (string * [> `Boolean of Boolean.t ]) list ]) list ]) list ]) list | `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