gogol-billing-0.3.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.GetBillingInfo

Contents

Description

Gets the billing information for a project. The current authenticated user must have [permission to view the project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).

See: Google Cloud Billing API Reference for cloudbilling.projects.getBillingInfo.

Synopsis

REST Resource

type ProjectsGetBillingInfoResource = "v1" :> (Capture "name" Text :> ("billingInfo" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ProjectBillingInfo)))))))))) Source #

A resource alias for cloudbilling.projects.getBillingInfo method which the ProjectsGetBillingInfo request conforms to.

Creating a Request

projectsGetBillingInfo Source #

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

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

data ProjectsGetBillingInfo Source #

Gets the billing information for a project. The current authenticated user must have [permission to view the project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).

See: projectsGetBillingInfo smart constructor.

Instances

Eq ProjectsGetBillingInfo Source # 
Data ProjectsGetBillingInfo Source # 

Methods

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

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

toConstr :: ProjectsGetBillingInfo -> Constr #

dataTypeOf :: ProjectsGetBillingInfo -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsGetBillingInfo Source # 
Generic ProjectsGetBillingInfo Source # 
GoogleRequest ProjectsGetBillingInfo Source # 
type Rep ProjectsGetBillingInfo Source # 
type Rep ProjectsGetBillingInfo = D1 (MetaData "ProjectsGetBillingInfo" "Network.Google.Resource.CloudBilling.Projects.GetBillingInfo" "gogol-billing-0.3.0-D8BqC7kBJ411P9f77hHicw" False) (C1 (MetaCons "ProjectsGetBillingInfo'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pgbiXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pgbiUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pgbiPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_pgbiAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_pgbiUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_pgbiBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_pgbiName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pgbiCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsGetBillingInfo Source # 
type Scopes ProjectsGetBillingInfo = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ([] Symbol)
type Rs ProjectsGetBillingInfo Source # 

Request Lenses

pgbiUploadProtocol :: Lens' ProjectsGetBillingInfo (Maybe Text) Source #

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

pgbiPp :: Lens' ProjectsGetBillingInfo Bool Source #

Pretty-print response.

pgbiUploadType :: Lens' ProjectsGetBillingInfo (Maybe Text) Source #

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

pgbiName :: Lens' ProjectsGetBillingInfo Text Source #

The resource name of the project for which billing information is retrieved. For example, `projects/tokyo-rain-123`.