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 |
Enable a service so that it can be used with a project. Operation
See: Service Usage API Reference for serviceusage.services.enable
.
Synopsis
- type ServicesEnableResource = "v1" :> (CaptureMode "name" "enable" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] EnableServiceRequest :> Post '[JSON] Operation))))))))
- servicesEnable :: EnableServiceRequest -> Text -> ServicesEnable
- data ServicesEnable
- seXgafv :: Lens' ServicesEnable (Maybe Xgafv)
- seUploadProtocol :: Lens' ServicesEnable (Maybe Text)
- seAccessToken :: Lens' ServicesEnable (Maybe Text)
- seUploadType :: Lens' ServicesEnable (Maybe Text)
- sePayload :: Lens' ServicesEnable EnableServiceRequest
- seName :: Lens' ServicesEnable Text
- seCallback :: Lens' ServicesEnable (Maybe Text)
REST Resource
type ServicesEnableResource = "v1" :> (CaptureMode "name" "enable" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] EnableServiceRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for serviceusage.services.enable
method which the
ServicesEnable
request conforms to.
Creating a Request
Creates a value of ServicesEnable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesEnable Source #
Enable a service so that it can be used with a project. Operation
See: servicesEnable
smart constructor.
Instances
Request Lenses
seUploadProtocol :: Lens' ServicesEnable (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
seAccessToken :: Lens' ServicesEnable (Maybe Text) Source #
OAuth access token.
seUploadType :: Lens' ServicesEnable (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sePayload :: Lens' ServicesEnable EnableServiceRequest Source #
Multipart request metadata.
seName :: Lens' ServicesEnable Text Source #
Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
seCallback :: Lens' ServicesEnable (Maybe Text) Source #
JSONP