Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
RecurlyClient.Operations.List_sites
Description
Contains the different functions to run the operation list_sites
Synopsis
- list_sites :: forall m. MonadHTTP m => List_sitesParameters -> ClientT m (Response List_sitesResponse)
- data List_sitesParameters = List_sitesParameters {}
- mkList_sitesParameters :: List_sitesParameters
- data List_sitesParametersQueryOrder
- data List_sitesParametersQuerySort
- data List_sitesParametersQueryState
- data List_sitesResponse
- list_sitesWithConfiguration :: forall m. MonadHTTP m => Configuration -> List_sitesParameters -> m (Response List_sitesResponse)
- list_sitesRaw :: forall m. MonadHTTP m => List_sitesParameters -> ClientT m (Response ByteString)
- list_sitesWithConfigurationRaw :: forall m. MonadHTTP m => Configuration -> List_sitesParameters -> m (Response ByteString)
Documentation
Arguments
:: forall m. MonadHTTP m | |
=> List_sitesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response List_sitesResponse) | Monadic computation which returns the result of the operation |
GET /sites
This route is most useful for finding a site's ID for subsequent requests.
See the Pagination Guide to learn how to use pagination in the API and Client Libraries.
data List_sitesParameters Source #
Defines the object schema located at paths./sites.GET.parameters
in the specification.
Constructors
List_sitesParameters | |
Fields
|
Instances
FromJSON List_sitesParameters Source # | |
Defined in RecurlyClient.Operations.List_sites Methods parseJSON :: Value -> Parser List_sitesParameters # parseJSONList :: Value -> Parser [List_sitesParameters] # | |
ToJSON List_sitesParameters Source # | |
Defined in RecurlyClient.Operations.List_sites Methods toJSON :: List_sitesParameters -> Value # toEncoding :: List_sitesParameters -> Encoding # toJSONList :: [List_sitesParameters] -> Value # toEncodingList :: [List_sitesParameters] -> Encoding # | |
Show List_sitesParameters Source # | |
Defined in RecurlyClient.Operations.List_sites Methods showsPrec :: Int -> List_sitesParameters -> ShowS # show :: List_sitesParameters -> String # showList :: [List_sitesParameters] -> ShowS # | |
Eq List_sitesParameters Source # | |
Defined in RecurlyClient.Operations.List_sites Methods (==) :: List_sitesParameters -> List_sitesParameters -> Bool # (/=) :: List_sitesParameters -> List_sitesParameters -> Bool # |
mkList_sitesParameters :: List_sitesParameters Source #
Create a new List_sitesParameters
with all required fields.
data List_sitesParametersQueryOrder Source #
Defines the enum schema located at paths./sites.GET.parameters.properties.queryOrder
in the specification.
Represents the parameter named 'order'
Sort order.
Constructors
List_sitesParametersQueryOrderOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_sitesParametersQueryOrderTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_sitesParametersQueryOrderEnumAsc | Represents the JSON value |
List_sitesParametersQueryOrderEnumDesc | Represents the JSON value |
Instances
data List_sitesParametersQuerySort Source #
Defines the enum schema located at paths./sites.GET.parameters.properties.querySort
in the specification.
Represents the parameter named 'sort'
Sort field. You *really* only want to sort by `updated_at` in ascending order. In descending order updated records will move behind the cursor and could prevent some records from being returned.
Constructors
List_sitesParametersQuerySortOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_sitesParametersQuerySortTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_sitesParametersQuerySortEnumCreated_at | Represents the JSON value |
List_sitesParametersQuerySortEnumUpdated_at | Represents the JSON value |
Instances
FromJSON List_sitesParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_sites Methods parseJSON :: Value -> Parser List_sitesParametersQuerySort # parseJSONList :: Value -> Parser [List_sitesParametersQuerySort] # | |
ToJSON List_sitesParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_sites Methods toJSON :: List_sitesParametersQuerySort -> Value # toEncoding :: List_sitesParametersQuerySort -> Encoding # toJSONList :: [List_sitesParametersQuerySort] -> Value # toEncodingList :: [List_sitesParametersQuerySort] -> Encoding # | |
Show List_sitesParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_sites Methods showsPrec :: Int -> List_sitesParametersQuerySort -> ShowS # show :: List_sitesParametersQuerySort -> String # showList :: [List_sitesParametersQuerySort] -> ShowS # | |
Eq List_sitesParametersQuerySort Source # | |
Defined in RecurlyClient.Operations.List_sites |
data List_sitesParametersQueryState Source #
Defines the enum schema located at paths./sites.GET.parameters.properties.queryState
in the specification.
Represents the parameter named 'state'
Filter by state.
Constructors
List_sitesParametersQueryStateOther Value | This case is used if the value encountered during decoding does not match any of the provided cases in the specification. |
List_sitesParametersQueryStateTyped Text | This constructor can be used to send values to the server which are not present in the specification yet. |
List_sitesParametersQueryStateEnumActive | Represents the JSON value |
List_sitesParametersQueryStateEnumInactive | Represents the JSON value |
Instances
data List_sitesResponse Source #
Represents a response of the operation list_sites
.
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), List_sitesResponseError
is used.
Constructors
List_sitesResponseError String | Means either no matching case available or a parse error |
List_sitesResponse200 SiteList | A list of sites. |
List_sitesResponse400 Error | Invalid or unpermitted parameter. |
List_sitesResponseDefault Error | Unexpected error. |
Instances
Show List_sitesResponse Source # | |
Defined in RecurlyClient.Operations.List_sites Methods showsPrec :: Int -> List_sitesResponse -> ShowS # show :: List_sitesResponse -> String # showList :: [List_sitesResponse] -> ShowS # | |
Eq List_sitesResponse Source # | |
Defined in RecurlyClient.Operations.List_sites Methods (==) :: List_sitesResponse -> List_sitesResponse -> Bool # (/=) :: List_sitesResponse -> List_sitesResponse -> Bool # |
list_sitesWithConfiguration Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_sitesParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response List_sitesResponse) | Monadic computation which returns the result of the operation |
GET /sites
The same as list_sites
but accepts an explicit configuration.
Arguments
:: forall m. MonadHTTP m | |
=> List_sitesParameters | Contains all available parameters of this operation (query and path parameters) |
-> ClientT m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /sites
The same as list_sites
but returns the raw ByteString
.
list_sitesWithConfigurationRaw Source #
Arguments
:: forall m. MonadHTTP m | |
=> Configuration | The configuration to use in the request |
-> List_sitesParameters | Contains all available parameters of this operation (query and path parameters) |
-> m (Response ByteString) | Monadic computation which returns the result of the operation |
GET /sites
The same as list_sites
but accepts an explicit configuration and returns the raw ByteString
.