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.Projects.UpdateBillingInfo

Contents

Description

Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. *Note:* Incurred charges that have not yet been reported in the transaction history of the GCP Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the billing account. You can disable billing on the project by setting the `billing_account_name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an *open* billing account.

See: Cloud Billing API Reference for cloudbilling.projects.updateBillingInfo.

Synopsis

REST Resource

type ProjectsUpdateBillingInfoResource = "v1" :> (Capture "name" Text :> ("billingInfo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ProjectBillingInfo :> Put '[JSON] ProjectBillingInfo))))))))) Source #

A resource alias for cloudbilling.projects.updateBillingInfo method which the ProjectsUpdateBillingInfo request conforms to.

Creating a Request

projectsUpdateBillingInfo Source #

Creates a value of ProjectsUpdateBillingInfo with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data ProjectsUpdateBillingInfo Source #

Sets or updates the billing account associated with a project. You specify the new billing account by setting the `billing_account_name` in the `ProjectBillingInfo` resource to the resource name of a billing account. Associating a project with an open billing account enables billing on the project and allows charges for resource usage. If the project already had a billing account, this method changes the billing account used for resource usage charges. *Note:* Incurred charges that have not yet been reported in the transaction history of the GCP Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project. The current authenticated user must have ownership privileges for both the [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the billing account. You can disable billing on the project by setting the `billing_account_name` field to empty. This action disassociates the current billing account from the project. Any billable activity of your in-use services will stop, and your application could stop functioning as expected. Any unbilled charges to date will be billed to the previously associated account. The current authenticated user must be either an owner of the project or an owner of the billing account for the project. Note that associating a project with a *closed* billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an *open* billing account.

See: projectsUpdateBillingInfo smart constructor.

Instances
Eq ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

Data ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

Methods

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

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

toConstr :: ProjectsUpdateBillingInfo -> Constr #

dataTypeOf :: ProjectsUpdateBillingInfo -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

Generic ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

Associated Types

type Rep ProjectsUpdateBillingInfo :: Type -> Type #

GoogleRequest ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

type Rep ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

type Rep ProjectsUpdateBillingInfo = D1 (MetaData "ProjectsUpdateBillingInfo" "Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "ProjectsUpdateBillingInfo'" PrefixI True) ((S1 (MetaSel (Just "_pubiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_pubiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pubiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pubiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pubiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ProjectBillingInfo)) :*: (S1 (MetaSel (Just "_pubiName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pubiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsUpdateBillingInfo Source # 
Instance details

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

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

Defined in Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo

Request Lenses

pubiUploadProtocol :: Lens' ProjectsUpdateBillingInfo (Maybe Text) Source #

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

pubiUploadType :: Lens' ProjectsUpdateBillingInfo (Maybe Text) Source #

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

pubiName :: Lens' ProjectsUpdateBillingInfo Text Source #

The resource name of the project associated with the billing information that you want to update. For example, `projects/tokyo-rain-123`.