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 it can be used with a project. See Cloud Auth Guide for more information. Operation
See: Service User API Reference for serviceuser.projects.services.enable
.
Synopsis
- type ProjectsServicesEnableResource = "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))))))))
- projectsServicesEnable :: EnableServiceRequest -> Text -> ProjectsServicesEnable
- data ProjectsServicesEnable
- pseXgafv :: Lens' ProjectsServicesEnable (Maybe Xgafv)
- pseUploadProtocol :: Lens' ProjectsServicesEnable (Maybe Text)
- pseAccessToken :: Lens' ProjectsServicesEnable (Maybe Text)
- pseUploadType :: Lens' ProjectsServicesEnable (Maybe Text)
- psePayload :: Lens' ProjectsServicesEnable EnableServiceRequest
- pseName :: Lens' ProjectsServicesEnable Text
- pseCallback :: Lens' ProjectsServicesEnable (Maybe Text)
REST Resource
type ProjectsServicesEnableResource = "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 serviceuser.projects.services.enable
method which the
ProjectsServicesEnable
request conforms to.
Creating a Request
projectsServicesEnable Source #
Creates a value of ProjectsServicesEnable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServicesEnable Source #
Enable a service so it can be used with a project. See Cloud Auth Guide for more information. Operation
See: projectsServicesEnable
smart constructor.
Instances
Request Lenses
pseUploadProtocol :: Lens' ProjectsServicesEnable (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pseAccessToken :: Lens' ProjectsServicesEnable (Maybe Text) Source #
OAuth access token.
pseUploadType :: Lens' ProjectsServicesEnable (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psePayload :: Lens' ProjectsServicesEnable EnableServiceRequest Source #
Multipart request metadata.
pseName :: Lens' ProjectsServicesEnable Text Source #
Name of the consumer and the service to enable for that consumer. A valid path would be: - projects/my-project/services/servicemanagement.googleapis.com
pseCallback :: Lens' ProjectsServicesEnable (Maybe Text) Source #
JSONP