gogol-billing-0.0.1: Google Cloud Billing SDK.

Copyright(c) 2015 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.Billing

Contents

Description

Retrieves Google Developers Console billing accounts and associates them with projects.

See: Google Cloud Billing API Reference

Synopsis

Service Configuration

billingService :: Service Source

Default request referring to version v1 of the Google Cloud Billing API. This contains the host and root path used as a starting point for constructing service requests.

API Declaration

type BillingAPI = ProjectsGetBillingInfoResource :<|> (ProjectsUpdateBillingInfoResource :<|> (BillingAccountsProjectsListResource :<|> (BillingAccountsListResource :<|> BillingAccountsGetResource))) Source

Represents the entirety of the methods and resources available for the Google Cloud Billing API service.

Resources

cloudbilling.billingAccounts.get

cloudbilling.billingAccounts.list

cloudbilling.billingAccounts.projects.list

cloudbilling.projects.getBillingInfo

cloudbilling.projects.updateBillingInfo

Types

BillingAccount

billingAccount :: BillingAccount Source

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

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

baOpen :: Lens' BillingAccount (Maybe Bool) Source

True if the billing account is open, and will therefore be charged for any usage on associated projects. False if the billing account is closed, and therefore projects associated with it will be unable to use paid services.

baName :: Lens' BillingAccount (Maybe Text) Source

The resource name of the billing account. The resource name has the form `billingAccounts/{billing_account_id}`. For example, `billingAccounts/012345-567890-ABCDEF` would be the resource name for billing account `012345-567890-ABCDEF`.

baDisplayName :: Lens' BillingAccount (Maybe Text) Source

The display name given to the billing account, such as `My Billing Account`. This name is displayed in the Google Developers Console.

ProjectBillingInfo

data ProjectBillingInfo Source

Encapsulation of billing information for a Developers Console project. A project has at most one associated billing account at a time (but a billing account can be assigned to multiple projects).

See: projectBillingInfo smart constructor.

projectBillingInfo :: ProjectBillingInfo Source

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

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

pbiName :: Lens' ProjectBillingInfo (Maybe Text) Source

The resource name for the `ProjectBillingInfo`; has the form `projects/{project_id}/billingInfo`. For example, the resource name for the billing information for project `tokyo-rain-123` would be `projects/tokyo-rain-123/billingInfo`. This field is read-only.

pbiBillingAccountName :: Lens' ProjectBillingInfo (Maybe Text) Source

The resource name of the billing account associated with the project, if any. For example, `billingAccounts/012345-567890-ABCDEF`.

pbiProjectId :: Lens' ProjectBillingInfo (Maybe Text) Source

The ID of the project that this `ProjectBillingInfo` represents, such as `tokyo-rain-123`. This is a convenience field so that you don't need to parse the `name` field to obtain a project ID. This field is read-only.

pbiBillingEnabled :: Lens' ProjectBillingInfo (Maybe Bool) Source

True if the project is associated with an open billing account, to which usage on the project is charged. False if the project is associated with a closed billing account, or no billing account at all, and therefore cannot use paid services. This field is read-only.

ListProjectBillingInfoResponse

listProjectBillingInfoResponse :: ListProjectBillingInfoResponse Source

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

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

lpbirNextPageToken :: Lens' ListProjectBillingInfoResponse (Maybe Text) Source

A token to retrieve the next page of results. To retrieve the next page, call `ListProjectBillingInfo` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.

lpbirProjectBillingInfo :: Lens' ListProjectBillingInfoResponse [ProjectBillingInfo] Source

A list of `ProjectBillingInfo` resources representing the projects associated with the billing account.

ListBillingAccountsResponse

listBillingAccountsResponse :: ListBillingAccountsResponse Source

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

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

lbarNextPageToken :: Lens' ListBillingAccountsResponse (Maybe Text) Source

A token to retrieve the next page of results. To retrieve the next page, call `ListBillingAccounts` again with the `page_token` field set to this value. This field is empty if there are no more results to retrieve.