gogol-billing-0.4.0: Google Cloud Billing SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.CloudBilling.BillingAccounts.Create

Contents

Description

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

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
Eq BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

Data BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BillingAccountsCreate -> c BillingAccountsCreate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BillingAccountsCreate #

toConstr :: BillingAccountsCreate -> Constr #

dataTypeOf :: BillingAccountsCreate -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BillingAccountsCreate) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BillingAccountsCreate) #

gmapT :: (forall b. Data b => b -> b) -> BillingAccountsCreate -> BillingAccountsCreate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BillingAccountsCreate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BillingAccountsCreate -> r #

gmapQ :: (forall d. Data d => d -> u) -> BillingAccountsCreate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BillingAccountsCreate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BillingAccountsCreate -> m BillingAccountsCreate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BillingAccountsCreate -> m BillingAccountsCreate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BillingAccountsCreate -> m BillingAccountsCreate #

Show BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

Generic BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

Associated Types

type Rep BillingAccountsCreate :: Type -> Type #

GoogleRequest BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

type Rep BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

type Rep BillingAccountsCreate = D1 (MetaData "BillingAccountsCreate" "Network.Google.Resource.CloudBilling.BillingAccounts.Create" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "BillingAccountsCreate'" PrefixI True) ((S1 (MetaSel (Just "_bacXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_bacUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bacAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_bacUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_bacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BillingAccount) :*: S1 (MetaSel (Just "_bacCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

type Scopes BillingAccountsCreate = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs BillingAccountsCreate Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.BillingAccounts.Create

Request Lenses

bacUploadProtocol :: Lens' BillingAccountsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

bacUploadType :: Lens' BillingAccountsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").