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.Patch

Contents

Description

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

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

billingAccountsPatch Source #

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

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

Data BillingAccountsPatch Source # 
Instance details

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

Methods

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

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

toConstr :: BillingAccountsPatch -> Constr #

dataTypeOf :: BillingAccountsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BillingAccountsPatch Source # 
Instance details

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

Generic BillingAccountsPatch Source # 
Instance details

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

Associated Types

type Rep BillingAccountsPatch :: Type -> Type #

GoogleRequest BillingAccountsPatch Source # 
Instance details

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

Associated Types

type Rs BillingAccountsPatch :: Type #

type Scopes BillingAccountsPatch :: [Symbol] #

type Rep BillingAccountsPatch Source # 
Instance details

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

type Rep BillingAccountsPatch = D1 (MetaData "BillingAccountsPatch" "Network.Google.Resource.CloudBilling.BillingAccounts.Patch" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "BillingAccountsPatch'" PrefixI True) (((S1 (MetaSel (Just "_bapXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_bapUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_bapUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_bapAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_bapUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_bapPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 BillingAccount)) :*: (S1 (MetaSel (Just "_bapName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_bapCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes BillingAccountsPatch Source # 
Instance details

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

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

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

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.

bapUploadType :: Lens' BillingAccountsPatch (Maybe Text) Source #

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

bapName :: Lens' BillingAccountsPatch Text Source #

The name of the billing account resource to be updated.