Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.Update_measured_unit
Description
Contains the different functions to run the operation update_measured_unit
Synopsis
- update_measured_unit :: forall m. MonadHTTP m => Text -> MeasuredUnitUpdate -> ClientT m (Response Update_measured_unitResponse)
- data Update_measured_unitResponse
- update_measured_unitWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> MeasuredUnitUpdate -> m (Response Update_measured_unitResponse)
- update_measured_unitRaw :: forall m. MonadHTTP m => Text -> MeasuredUnitUpdate -> ClientT m (Response ByteString)
- update_measured_unitWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> MeasuredUnitUpdate -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> Text | measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`. |
-> MeasuredUnitUpdate | The request body to send |
-> ClientT m (Response Update_measured_unitResponse) | Monadic computation which returns the result of the operation |
PUT /measured_units/{measured_unit_id}
Update a measured unit
data Update_measured_unitResponse Source #
Represents a response of the operation update_measured_unit
.
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_measured_unitResponseError
is used.
Constructors
Update_measured_unitResponseError String | Means either no matching case available or a parse error |
Update_measured_unitResponse200 MeasuredUnit | The updated measured_unit. |
Update_measured_unitResponse400 Error | Bad request, perhaps invalid JSON? |
Update_measured_unitResponse404 Error | Incorrect site or measured unit ID. |
Update_measured_unitResponse422 Error | Invalid request parameters |
Update_measured_unitResponseDefault Error | Unexpected error. |
Instances
Show Update_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Update_measured_unit Methods showsPrec :: Int -> Update_measured_unitResponse -> ShowS # show :: Update_measured_unitResponse -> String # showList :: [Update_measured_unitResponse] -> ShowS # | |
Eq Update_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Update_measured_unit Methods (==) :: Update_measured_unitResponse -> Update_measured_unitResponse -> Bool # (/=) :: Update_measured_unitResponse -> Update_measured_unitResponse -> Bool # |
update_measured_unitWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`. |
-> MeasuredUnitUpdate | The request body to send |
-> m (Response Update_measured_unitResponse) | Monadic computation which returns the result of the operation |
PUT /measured_units/{measured_unit_id}
The same as update_measured_unit
but accepts an explicit configuration.
update_measured_unitRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Text | measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`. |
-> MeasuredUnitUpdate | The request body to send |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /measured_units/{measured_unit_id}
The same as update_measured_unit
but returns the raw ByteString
.
update_measured_unitWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> Text | measured_unit_id: Measured unit ID or name. For ID no prefix is used e.g. `e28zov4fw0v2`. For name use prefix `name-`, e.g. `name-Storage`. |
-> MeasuredUnitUpdate | The request body to send |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
PUT /measured_units/{measured_unit_id}
The same as update_measured_unit
but accepts an explicit configuration and returns the raw ByteString
.