Module GapiDiscoveryV1Model.RestMethod

module MediaUpload : sig ... end
module Request : sig ... end
module Response : sig ... end
type t = {
etagRequired : bool;(*

Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.

*)
description : string;(*

Description of this method.

*)
response : Response.t;(*

The schema for the response.

*)
id : string;(*

A unique ID for this method. This property can be used to match methods between different versions of Discovery.

*)
parameters : (string * JsonSchema.t) list;(*

Details for all parameters in this method.

*)
supportsSubscription : bool;(*

Whether this method supports subscriptions.

*)
parameterOrder : string list;(*

Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the "most-significant" parameter appears first.

*)
flatPath : string;(*

The URI path of this REST method in (RFC 6570) format without level 2 features ({+var}). Supplementary to the path property.

*)
supportsMediaDownload : bool;(*

Whether this method supports media downloads.

*)
httpMethod : string;(*

HTTP method used by this method.

*)
request : Request.t;(*

The schema for the request.

*)
path : string;(*

The URI path of this REST method. Should be used in conjunction with the basePath property at the api-level.

*)
supportsMediaUpload : bool;(*

Whether this method supports media uploads.

*)
scopes : string list;(*

OAuth 2.0 scopes applicable to this method.

*)
mediaUpload : MediaUpload.t;(*

Media upload parameters.

*)
useMediaDownloadService : bool;(*

Indicates that downloads from this method should use the download service URL (i.e. "/download"). Only applies if the method supports media download.

*)
}
val etagRequired : ( t, bool ) GapiLens.t
val description : ( t, string ) GapiLens.t
val response : ( t, Response.t ) GapiLens.t
val id : ( t, string ) GapiLens.t
val parameters : ( t, (string * JsonSchema.t) list ) GapiLens.t
val supportsSubscription : ( t, bool ) GapiLens.t
val parameterOrder : ( t, string list ) GapiLens.t
val flatPath : ( t, string ) GapiLens.t
val supportsMediaDownload : ( t, bool ) GapiLens.t
val httpMethod : ( t, string ) GapiLens.t
val request : ( t, Request.t ) GapiLens.t
val path : ( t, string ) GapiLens.t
val supportsMediaUpload : ( t, bool ) GapiLens.t
val scopes : ( t, string list ) GapiLens.t
val mediaUpload : ( t, MediaUpload.t ) GapiLens.t
val useMediaDownloadService : ( t, bool ) 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