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 |
Returns the service configuration and enabled state for a given service.
See: Service Usage API Reference for serviceusage.services.get
.
Synopsis
- type ServicesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleAPIServiceusageV1Service)))))))
- servicesGet :: Text -> ServicesGet
- data ServicesGet
- sgXgafv :: Lens' ServicesGet (Maybe Xgafv)
- sgUploadProtocol :: Lens' ServicesGet (Maybe Text)
- sgAccessToken :: Lens' ServicesGet (Maybe Text)
- sgUploadType :: Lens' ServicesGet (Maybe Text)
- sgName :: Lens' ServicesGet Text
- sgCallback :: Lens' ServicesGet (Maybe Text)
REST Resource
type ServicesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] GoogleAPIServiceusageV1Service))))))) Source #
A resource alias for serviceusage.services.get
method which the
ServicesGet
request conforms to.
Creating a Request
:: Text | |
-> ServicesGet |
Creates a value of ServicesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesGet Source #
Returns the service configuration and enabled state for a given service.
See: servicesGet
smart constructor.
Instances
Request Lenses
sgUploadProtocol :: Lens' ServicesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sgAccessToken :: Lens' ServicesGet (Maybe Text) Source #
OAuth access token.
sgUploadType :: Lens' ServicesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sgName :: Lens' ServicesGet Text Source #
Name of the consumer and service to get the `ConsumerState` for. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
sgCallback :: Lens' ServicesGet (Maybe Text) Source #
JSONP