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 |
Disable a service so it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. Operation
See: Service User API Reference for serviceuser.projects.services.disable
.
Synopsis
- type ProjectsServicesDisableResource = "v1" :> (CaptureMode "name" "disable" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DisableServiceRequest :> Post '[JSON] Operation))))))))
- projectsServicesDisable :: DisableServiceRequest -> Text -> ProjectsServicesDisable
- data ProjectsServicesDisable
- psdXgafv :: Lens' ProjectsServicesDisable (Maybe Xgafv)
- psdUploadProtocol :: Lens' ProjectsServicesDisable (Maybe Text)
- psdAccessToken :: Lens' ProjectsServicesDisable (Maybe Text)
- psdUploadType :: Lens' ProjectsServicesDisable (Maybe Text)
- psdPayload :: Lens' ProjectsServicesDisable DisableServiceRequest
- psdName :: Lens' ProjectsServicesDisable Text
- psdCallback :: Lens' ProjectsServicesDisable (Maybe Text)
REST Resource
type ProjectsServicesDisableResource = "v1" :> (CaptureMode "name" "disable" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DisableServiceRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for serviceuser.projects.services.disable
method which the
ProjectsServicesDisable
request conforms to.
Creating a Request
projectsServicesDisable Source #
Creates a value of ProjectsServicesDisable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServicesDisable Source #
Disable a service so it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. Operation
See: projectsServicesDisable
smart constructor.
Instances
Request Lenses
psdUploadProtocol :: Lens' ProjectsServicesDisable (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psdAccessToken :: Lens' ProjectsServicesDisable (Maybe Text) Source #
OAuth access token.
psdUploadType :: Lens' ProjectsServicesDisable (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psdPayload :: Lens' ProjectsServicesDisable DisableServiceRequest Source #
Multipart request metadata.
psdName :: Lens' ProjectsServicesDisable Text Source #
Name of the consumer and the service to disable for that consumer. The Service User implementation accepts the following forms for consumer: - "project:" A valid path would be: - projects/my-project/services/servicemanagement.googleapis.com
psdCallback :: Lens' ProjectsServicesDisable (Maybe Text) Source #
JSONP