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 that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation
See: Service Usage API Reference for serviceusage.services.disable
.
Synopsis
- type ServicesDisableResource = "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))))))))
- servicesDisable :: DisableServiceRequest -> Text -> ServicesDisable
- data ServicesDisable
- sdXgafv :: Lens' ServicesDisable (Maybe Xgafv)
- sdUploadProtocol :: Lens' ServicesDisable (Maybe Text)
- sdAccessToken :: Lens' ServicesDisable (Maybe Text)
- sdUploadType :: Lens' ServicesDisable (Maybe Text)
- sdPayload :: Lens' ServicesDisable DisableServiceRequest
- sdName :: Lens' ServicesDisable Text
- sdCallback :: Lens' ServicesDisable (Maybe Text)
REST Resource
type ServicesDisableResource = "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 serviceusage.services.disable
method which the
ServicesDisable
request conforms to.
Creating a Request
Creates a value of ServicesDisable
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesDisable Source #
Disable a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation
See: servicesDisable
smart constructor.
Instances
Request Lenses
sdUploadProtocol :: Lens' ServicesDisable (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sdAccessToken :: Lens' ServicesDisable (Maybe Text) Source #
OAuth access token.
sdUploadType :: Lens' ServicesDisable (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sdPayload :: Lens' ServicesDisable DisableServiceRequest Source #
Multipart request metadata.
sdName :: Lens' ServicesDisable Text Source #
Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
sdCallback :: Lens' ServicesDisable (Maybe Text) Source #
JSONP