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 |
Attempts to allocate quota for the specified consumer. It should be called before the operation is executed. This method requires the `servicemanagement.services.quota` permission on the specified service. For more information, see Cloud IAM. **NOTE:** The client **must** fail-open on server errors `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system reliability, the server may inject these errors to prohibit any hard dependency on the quota functionality.
See: Service Control API Reference for servicecontrol.services.allocateQuota
.
Synopsis
- type ServicesAllocateQuotaResource = "v1" :> ("services" :> (CaptureMode "serviceName" "allocateQuota" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AllocateQuotaRequest :> Post '[JSON] AllocateQuotaResponse)))))))))
- servicesAllocateQuota :: AllocateQuotaRequest -> Text -> ServicesAllocateQuota
- data ServicesAllocateQuota
- saqXgafv :: Lens' ServicesAllocateQuota (Maybe Xgafv)
- saqUploadProtocol :: Lens' ServicesAllocateQuota (Maybe Text)
- saqAccessToken :: Lens' ServicesAllocateQuota (Maybe Text)
- saqUploadType :: Lens' ServicesAllocateQuota (Maybe Text)
- saqPayload :: Lens' ServicesAllocateQuota AllocateQuotaRequest
- saqServiceName :: Lens' ServicesAllocateQuota Text
- saqCallback :: Lens' ServicesAllocateQuota (Maybe Text)
REST Resource
type ServicesAllocateQuotaResource = "v1" :> ("services" :> (CaptureMode "serviceName" "allocateQuota" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AllocateQuotaRequest :> Post '[JSON] AllocateQuotaResponse))))))))) Source #
A resource alias for servicecontrol.services.allocateQuota
method which the
ServicesAllocateQuota
request conforms to.
Creating a Request
servicesAllocateQuota Source #
Creates a value of ServicesAllocateQuota
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesAllocateQuota Source #
Attempts to allocate quota for the specified consumer. It should be called before the operation is executed. This method requires the `servicemanagement.services.quota` permission on the specified service. For more information, see Cloud IAM. **NOTE:** The client **must** fail-open on server errors `INTERNAL`, `UNKNOWN`, `DEADLINE_EXCEEDED`, and `UNAVAILABLE`. To ensure system reliability, the server may inject these errors to prohibit any hard dependency on the quota functionality.
See: servicesAllocateQuota
smart constructor.
Instances
Request Lenses
saqUploadProtocol :: Lens' ServicesAllocateQuota (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
saqAccessToken :: Lens' ServicesAllocateQuota (Maybe Text) Source #
OAuth access token.
saqUploadType :: Lens' ServicesAllocateQuota (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
saqPayload :: Lens' ServicesAllocateQuota AllocateQuotaRequest Source #
Multipart request metadata.
saqServiceName :: Lens' ServicesAllocateQuota Text Source #
Name of the service as specified in the service configuration. For example, `"pubsub.googleapis.com"`. See google.api.Service for the definition of a service name.
saqCallback :: Lens' ServicesAllocateQuota (Maybe Text) Source #
JSONP