| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
RecurlyClient.Operations.Remove_measured_unit
Description
Contains the different functions to run the operation remove_measured_unit
Synopsis
- remove_measured_unit :: forall m. MonadHTTP m => Text -> ClientT m (Response Remove_measured_unitResponse)
- data Remove_measured_unitResponse
- remove_measured_unitWithConfiguration :: forall m. MonadHTTP m => Configuration -> Text -> m (Response Remove_measured_unitResponse)
- remove_measured_unitRaw :: forall m. MonadHTTP m => Text -> ClientT m (Response ByteString)
- remove_measured_unitWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> Text -> 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`. |
| -> ClientT m (Response Remove_measured_unitResponse) | Monadic computation which returns the result of the operation |
DELETE /measured_units/{measured_unit_id}A mesured unit cannot be deleted if it is used by an active plan.
data Remove_measured_unitResponse Source #
Represents a response of the operation remove_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), Remove_measured_unitResponseError is used.
Constructors
| Remove_measured_unitResponseError String | Means either no matching case available or a parse error |
| Remove_measured_unitResponse200 MeasuredUnit | A measured unit. |
| Remove_measured_unitResponse422 Error | Measured unit may already be inactive. |
| Remove_measured_unitResponseDefault Error | Unexpected error. |
Instances
| Show Remove_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Remove_measured_unit Methods showsPrec :: Int -> Remove_measured_unitResponse -> ShowS # show :: Remove_measured_unitResponse -> String # showList :: [Remove_measured_unitResponse] -> ShowS # | |
| Eq Remove_measured_unitResponse Source # | |
Defined in RecurlyClient.Operations.Remove_measured_unit Methods (==) :: Remove_measured_unitResponse -> Remove_measured_unitResponse -> Bool # (/=) :: Remove_measured_unitResponse -> Remove_measured_unitResponse -> Bool # | |
remove_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`. |
| -> m (Response Remove_measured_unitResponse) | Monadic computation which returns the result of the operation |
DELETE /measured_units/{measured_unit_id}The same as remove_measured_unit but accepts an explicit configuration.
remove_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`. |
| -> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /measured_units/{measured_unit_id}The same as remove_measured_unit but returns the raw ByteString.
remove_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`. |
| -> m (Response ByteString) | Monadic computation which returns the result of the operation |
DELETE /measured_units/{measured_unit_id}The same as remove_measured_unit but accepts an explicit configuration and returns the raw ByteString.