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 |
Creates a billing account. This method can only be used to create billing subaccounts by GCP resellers. When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the master account, which is typically given to billing account administrators. This method will return an error if the master account has not been provisioned as a reseller account.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.create
.
Synopsis
- type BillingAccountsCreateResource = "v1" :> ("billingAccounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BillingAccount :> Post '[JSON] BillingAccount))))))))
- billingAccountsCreate :: BillingAccount -> BillingAccountsCreate
- data BillingAccountsCreate
- bacXgafv :: Lens' BillingAccountsCreate (Maybe Xgafv)
- bacUploadProtocol :: Lens' BillingAccountsCreate (Maybe Text)
- bacAccessToken :: Lens' BillingAccountsCreate (Maybe Text)
- bacUploadType :: Lens' BillingAccountsCreate (Maybe Text)
- bacPayload :: Lens' BillingAccountsCreate BillingAccount
- bacCallback :: Lens' BillingAccountsCreate (Maybe Text)
REST Resource
type BillingAccountsCreateResource = "v1" :> ("billingAccounts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] BillingAccount :> Post '[JSON] BillingAccount)))))))) Source #
A resource alias for cloudbilling.billingAccounts.create
method which the
BillingAccountsCreate
request conforms to.
Creating a Request
billingAccountsCreate Source #
Creates a value of BillingAccountsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsCreate Source #
Creates a billing account. This method can only be used to create billing subaccounts by GCP resellers. When creating a subaccount, the current authenticated user must have the `billing.accounts.update` IAM permission on the master account, which is typically given to billing account administrators. This method will return an error if the master account has not been provisioned as a reseller account.
See: billingAccountsCreate
smart constructor.
Instances
Request Lenses
bacUploadProtocol :: Lens' BillingAccountsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bacAccessToken :: Lens' BillingAccountsCreate (Maybe Text) Source #
OAuth access token.
bacUploadType :: Lens' BillingAccountsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bacPayload :: Lens' BillingAccountsCreate BillingAccount Source #
Multipart request metadata.
bacCallback :: Lens' BillingAccountsCreate (Maybe Text) Source #
JSONP