Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.
See: Service Usage API Reference for serviceusage.services.list
.
Synopsis
- type ServicesListResource = "v1" :> (Capture "parent" Text :> ("services" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListServicesResponse)))))))))))
- servicesList :: Text -> ServicesList
- data ServicesList
- slParent :: Lens' ServicesList Text
- slXgafv :: Lens' ServicesList (Maybe Xgafv)
- slUploadProtocol :: Lens' ServicesList (Maybe Text)
- slAccessToken :: Lens' ServicesList (Maybe Text)
- slUploadType :: Lens' ServicesList (Maybe Text)
- slFilter :: Lens' ServicesList (Maybe Text)
- slPageToken :: Lens' ServicesList (Maybe Text)
- slPageSize :: Lens' ServicesList (Maybe Int32)
- slCallback :: Lens' ServicesList (Maybe Text)
REST Resource
type ServicesListResource = "v1" :> (Capture "parent" Text :> ("services" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListServicesResponse))))))))))) Source #
A resource alias for serviceusage.services.list
method which the
ServicesList
request conforms to.
Creating a Request
:: Text | |
-> ServicesList |
Creates a value of ServicesList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesList Source #
List all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.
See: servicesList
smart constructor.
Instances
Request Lenses
slParent :: Lens' ServicesList Text Source #
Parent to search for services on. An example name would be: `projects/123` where `123` is the project number (not project ID).
slUploadProtocol :: Lens' ServicesList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
slAccessToken :: Lens' ServicesList (Maybe Text) Source #
OAuth access token.
slUploadType :: Lens' ServicesList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
slFilter :: Lens' ServicesList (Maybe Text) Source #
Only list services that conform to the given filter. The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
slPageToken :: Lens' ServicesList (Maybe Text) Source #
Token identifying which result to start with, which is returned by a previous list call.
slPageSize :: Lens' ServicesList (Maybe Int32) Source #
Requested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50.
slCallback :: Lens' ServicesList (Maybe Text) Source #
JSONP