Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Update_usage
Description
Contains the different functions to run the operation update_usage
Synopsis
- update_usage :: forall m. MonadHTTP m => Text -> UsageCreate -> ClientT m (Response Update_usageResponse)
- data Update_usageResponse
- update_usageWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> UsageCreate -> m (Response Update_usageResponse)
- update_usageRaw :: forall m. MonadHTTP m => Text -> UsageCreate -> ClientT m (Response ByteString)
- update_usageWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> UsageCreate -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | usage_id: Usage Record ID. |
-> UsageCreate | The request body to send |
-> ClientT m (Response Update_usageResponse) | Monadic computation which returns the result of the operation |
PUT /usage/{usage_id}
Update a usage record
data Update_usageResponse Source #
Represents a response of the operation update_usage
.
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), Update_usageResponseError
is used.
Constructors
Update_usageResponseError String | Means either no matching case available or a parse error |
Update_usageResponse200 Usage | The updated usage record. |
Update_usageResponse400 Error | Invalid or unpermitted parameter. |
Update_usageResponse404 Error | Incorrect site or subscription, add-on, or usage ID. |
Update_usageResponse422 Error | A validation error. |
Update_usageResponseDefault Error | Unexpected error. |
Instances
Show Update_usageResponse Source # | |
Defined in RecurlyClient.Operations.Update_usage Methods showsPrec :: Int -> Update_usageResponse -> ShowS # show :: Update_usageResponse -> String # showList :: [Update_usageResponse] -> ShowS # | |
Eq Update_usageResponse Source # | |
Defined in RecurlyClient.Operations.Update_usage Methods (==) :: Update_usageResponse -> Update_usageResponse -> Bool # (/=) :: Update_usageResponse -> Update_usageResponse -> Bool # |
update_usageWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | usage_id: Usage Record ID. |
-> UsageCreate | The request body to send |
-> m (Response Update_usageResponse) | Monadic computation which returns the result of the operation |
PUT /usage/{usage_id}
The same as update_usage
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> Text | usage_id: Usage Record ID. |
-> UsageCreate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /usage/{usage_id}
The same as update_usage
but returns the raw ByteString
.
update_usageWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | usage_id: Usage Record ID. |
-> UsageCreate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /usage/{usage_id}
The same as update_usage
but accepts an explicit configuration and returns the raw ByteString
.