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 |
Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the administrator of the billing account.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.patch
.
Synopsis
- type BillingAccountsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BillingAccount :> Patch '[JSON] BillingAccount)))))))))
- billingAccountsPatch :: BillingAccount -> Text -> BillingAccountsPatch
- data BillingAccountsPatch
- bapXgafv :: Lens' BillingAccountsPatch (Maybe Xgafv)
- bapUploadProtocol :: Lens' BillingAccountsPatch (Maybe Text)
- bapUpdateMask :: Lens' BillingAccountsPatch (Maybe GFieldMask)
- bapAccessToken :: Lens' BillingAccountsPatch (Maybe Text)
- bapUploadType :: Lens' BillingAccountsPatch (Maybe Text)
- bapPayload :: Lens' BillingAccountsPatch BillingAccount
- bapName :: Lens' BillingAccountsPatch Text
- bapCallback :: Lens' BillingAccountsPatch (Maybe Text)
REST Resource
type BillingAccountsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BillingAccount :> Patch '[JSON] BillingAccount))))))))) Source #
A resource alias for cloudbilling.billingAccounts.patch
method which the
BillingAccountsPatch
request conforms to.
Creating a Request
Creates a value of BillingAccountsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsPatch Source #
Updates a billing account's fields. Currently the only field that can be edited is `display_name`. The current authenticated user must have the `billing.accounts.update` IAM permission, which is typically given to the administrator of the billing account.
See: billingAccountsPatch
smart constructor.
Instances
Request Lenses
bapUploadProtocol :: Lens' BillingAccountsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bapUpdateMask :: Lens' BillingAccountsPatch (Maybe GFieldMask) Source #
The update mask applied to the resource. Only "display_name" is currently supported.
bapAccessToken :: Lens' BillingAccountsPatch (Maybe Text) Source #
OAuth access token.
bapUploadType :: Lens' BillingAccountsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bapPayload :: Lens' BillingAccountsPatch BillingAccount Source #
Multipart request metadata.
bapName :: Lens' BillingAccountsPatch Text Source #
The name of the billing account resource to be updated.
bapCallback :: Lens' BillingAccountsPatch (Maybe Text) Source #
JSONP