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

Contents

Description

Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account administrators.

See: Cloud Billing API Reference for cloudbilling.billingAccounts.setIamPolicy.

Synopsis

REST Resource

type BillingAccountsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #

A resource alias for cloudbilling.billingAccounts.setIamPolicy method which the BillingAccountsSetIAMPolicy request conforms to.

Creating a Request

billingAccountsSetIAMPolicy Source #

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

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

data BillingAccountsSetIAMPolicy Source #

Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account administrators.

See: billingAccountsSetIAMPolicy smart constructor.

Instances
Eq BillingAccountsSetIAMPolicy Source # 
Instance details

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

Data BillingAccountsSetIAMPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: BillingAccountsSetIAMPolicy -> Constr #

dataTypeOf :: BillingAccountsSetIAMPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show BillingAccountsSetIAMPolicy Source # 
Instance details

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

Generic BillingAccountsSetIAMPolicy Source # 
Instance details

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

Associated Types

type Rep BillingAccountsSetIAMPolicy :: Type -> Type #

GoogleRequest BillingAccountsSetIAMPolicy Source # 
Instance details

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

type Rep BillingAccountsSetIAMPolicy Source # 
Instance details

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

type Rep BillingAccountsSetIAMPolicy = D1 (MetaData "BillingAccountsSetIAMPolicy" "Network.Google.Resource.CloudBilling.BillingAccounts.SetIAMPolicy" "gogol-billing-0.4.0-JAyrjiWj8X6ES438iq9h49" False) (C1 (MetaCons "BillingAccountsSetIAMPolicy'" PrefixI True) ((S1 (MetaSel (Just "_basipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_basipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_basipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_basipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_basipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetIAMPolicyRequest)) :*: (S1 (MetaSel (Just "_basipResource") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_basipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes BillingAccountsSetIAMPolicy Source # 
Instance details

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

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

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

Request Lenses

basipUploadProtocol :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #

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

basipUploadType :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #

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

basipResource :: Lens' BillingAccountsSetIAMPolicy Text Source #

REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.