Safe Haskell | None |
---|---|
Language | Haskell2010 |
Contains the different functions to run the operation postFileLinksLink
Synopsis
- postFileLinksLink :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostFileLinksLinkRequestBody -> m (Either HttpException (Response PostFileLinksLinkResponse))
- postFileLinksLinkRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostFileLinksLinkRequestBody -> m (Either HttpException (Response ByteString))
- postFileLinksLinkM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostFileLinksLinkRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostFileLinksLinkResponse))
- postFileLinksLinkRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostFileLinksLinkRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString))
- data PostFileLinksLinkRequestBody = PostFileLinksLinkRequestBody {}
- data PostFileLinksLinkRequestBodyExpiresAt'OneOf1
- data PostFileLinksLinkRequestBodyExpiresAt'OneOf2
- data PostFileLinksLinkRequestBodyExpiresAt'Variants
- = PostFileLinksLinkRequestBodyExpiresAt'PostFileLinksLinkRequestBodyExpiresAt'OneOf1 PostFileLinksLinkRequestBodyExpiresAt'OneOf1
- | PostFileLinksLinkRequestBodyExpiresAt'PostFileLinksLinkRequestBodyExpiresAt'OneOf2 PostFileLinksLinkRequestBodyExpiresAt'OneOf2
- | PostFileLinksLinkRequestBodyExpiresAt'Integer Integer
- data PostFileLinksLinkRequestBodyMetadata' = PostFileLinksLinkRequestBodyMetadata' {
- data PostFileLinksLinkResponse
Documentation
:: (MonadHTTP m, SecurityScheme s) | |
=> Configuration s | The configuration to use in the request |
-> String | link |
-> PostFileLinksLinkRequestBody | The request body to send |
-> m (Either HttpException (Response PostFileLinksLinkResponse)) | Monad containing the result of the operation |
POST /v1/file_links/{link}
<p>Updates an existing file link object. Expired links can no longer be updated.</p>
postFileLinksLinkRaw :: forall m s. (MonadHTTP m, SecurityScheme s) => Configuration s -> String -> PostFileLinksLinkRequestBody -> m (Either HttpException (Response ByteString)) Source #
POST /v1/file_links/{link}
The same as postFileLinksLink
but returns the raw ByteString
postFileLinksLinkM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostFileLinksLinkRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response PostFileLinksLinkResponse)) Source #
POST /v1/file_links/{link}
Monadic version of postFileLinksLink
(use with runWithConfiguration
)
postFileLinksLinkRawM :: forall m s. (MonadHTTP m, SecurityScheme s) => String -> PostFileLinksLinkRequestBody -> ReaderT (Configuration s) m (Either HttpException (Response ByteString)) Source #
POST /v1/file_links/{link}
Monadic version of postFileLinksLinkRaw
(use with runWithConfiguration
)
data PostFileLinksLinkRequestBody Source #
Defines the data type for the schema postFileLinksLinkRequestBody
PostFileLinksLinkRequestBody | |
|
Instances
data PostFileLinksLinkRequestBodyExpiresAt'OneOf1 Source #
Defines the enum schema postFileLinksLinkRequestBodyExpires_at'OneOf1
PostFileLinksLinkRequestBodyExpiresAt'OneOf1EnumOther Value | |
PostFileLinksLinkRequestBodyExpiresAt'OneOf1EnumTyped String | |
PostFileLinksLinkRequestBodyExpiresAt'OneOf1EnumString_ |
data PostFileLinksLinkRequestBodyExpiresAt'OneOf2 Source #
Defines the enum schema postFileLinksLinkRequestBodyExpires_at'OneOf2
PostFileLinksLinkRequestBodyExpiresAt'OneOf2EnumOther Value | |
PostFileLinksLinkRequestBodyExpiresAt'OneOf2EnumTyped String | |
PostFileLinksLinkRequestBodyExpiresAt'OneOf2EnumStringNow |
data PostFileLinksLinkRequestBodyExpiresAt'Variants Source #
Define the one-of schema postFileLinksLinkRequestBodyExpires_at'
A future timestamp after which the link will no longer be usable, or `now` to expire the link immediately.
Instances
data PostFileLinksLinkRequestBodyMetadata' Source #
Defines the data type for the schema postFileLinksLinkRequestBodyMetadata'
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
data PostFileLinksLinkResponse Source #
Represents a response of the operation postFileLinksLink
.
The response constructor is chosen by the status code of the response. If no case matches (no specific case for the response code, no range case, no default case), PostFileLinksLinkResponseError
is used.
PostFileLinksLinkResponseError String | Means either no matching case available or a parse error |
PostFileLinksLinkResponse200 FileLink | Successful response. |
PostFileLinksLinkResponseDefault Error | Error response. |