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 multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation
See: Service Usage API Reference for serviceusage.services.batchEnable
.
Synopsis
- type ServicesBatchEnableResource = "v1" :> (Capture "parent" Text :> ("services:batchEnable" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchEnableServicesRequest :> Post '[JSON] Operation)))))))))
- servicesBatchEnable :: Text -> BatchEnableServicesRequest -> ServicesBatchEnable
- data ServicesBatchEnable
- sbeParent :: Lens' ServicesBatchEnable Text
- sbeXgafv :: Lens' ServicesBatchEnable (Maybe Xgafv)
- sbeUploadProtocol :: Lens' ServicesBatchEnable (Maybe Text)
- sbeAccessToken :: Lens' ServicesBatchEnable (Maybe Text)
- sbeUploadType :: Lens' ServicesBatchEnable (Maybe Text)
- sbePayload :: Lens' ServicesBatchEnable BatchEnableServicesRequest
- sbeCallback :: Lens' ServicesBatchEnable (Maybe Text)
REST Resource
type ServicesBatchEnableResource = "v1" :> (Capture "parent" Text :> ("services:batchEnable" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BatchEnableServicesRequest :> Post '[JSON] Operation))))))))) Source #
A resource alias for serviceusage.services.batchEnable
method which the
ServicesBatchEnable
request conforms to.
Creating a Request
Creates a value of ServicesBatchEnable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesBatchEnable Source #
Enable multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation
See: servicesBatchEnable
smart constructor.
Instances
Request Lenses
sbeParent :: Lens' ServicesBatchEnable Text Source #
Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
sbeUploadProtocol :: Lens' ServicesBatchEnable (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sbeAccessToken :: Lens' ServicesBatchEnable (Maybe Text) Source #
OAuth access token.
sbeUploadType :: Lens' ServicesBatchEnable (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sbePayload :: Lens' ServicesBatchEnable BatchEnableServicesRequest Source #
Multipart request metadata.
sbeCallback :: Lens' ServicesBatchEnable (Maybe Text) Source #
JSONP