Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Retrieves Google Developers Console billing accounts and associates them with projects.
- billingService :: ServiceConfig
- cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"]
- type BillingAPI = ProjectsGetBillingInfoResource :<|> (ProjectsUpdateBillingInfoResource :<|> (BillingAccountsProjectsListResource :<|> (BillingAccountsListResource :<|> BillingAccountsGetResource)))
- module Network.Google.Resource.CloudBilling.BillingAccounts.Get
- module Network.Google.Resource.CloudBilling.BillingAccounts.List
- module Network.Google.Resource.CloudBilling.BillingAccounts.Projects.List
- module Network.Google.Resource.CloudBilling.Projects.GetBillingInfo
- module Network.Google.Resource.CloudBilling.Projects.UpdateBillingInfo
- data BillingAccount
- billingAccount :: BillingAccount
- baOpen :: Lens' BillingAccount (Maybe Bool)
- baName :: Lens' BillingAccount (Maybe Text)
- baDisplayName :: Lens' BillingAccount (Maybe Text)
- data ProjectBillingInfo
- projectBillingInfo :: ProjectBillingInfo
- pbiName :: Lens' ProjectBillingInfo (Maybe Text)
- pbiBillingAccountName :: Lens' ProjectBillingInfo (Maybe Text)
- pbiProjectId :: Lens' ProjectBillingInfo (Maybe Text)
- pbiBillingEnabled :: Lens' ProjectBillingInfo (Maybe Bool)
- data ListProjectBillingInfoResponse
- listProjectBillingInfoResponse :: ListProjectBillingInfoResponse
- lpbirNextPageToken :: Lens' ListProjectBillingInfoResponse (Maybe Text)
- lpbirProjectBillingInfo :: Lens' ListProjectBillingInfoResponse [ProjectBillingInfo]
- data ListBillingAccountsResponse
- listBillingAccountsResponse :: ListBillingAccountsResponse
- lbarNextPageToken :: Lens' ListBillingAccountsResponse (Maybe Text)
- lbarBillingAccounts :: Lens' ListBillingAccountsResponse [BillingAccount]
Service Configuration
billingService :: ServiceConfig 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.
OAuth Scopes
cloudPlatformScope :: Proxy '["https://www.googleapis.com/auth/cloud-platform"] Source #
View and manage your data across Google Cloud Platform services
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
data BillingAccount Source #
A billing account in Google Developers Console. You can assign a billing account to one or more projects.
See: billingAccount
smart constructor.
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
data ListProjectBillingInfoResponse Source #
Request message for `ListProjectBillingInfoResponse`.
See: listProjectBillingInfoResponse
smart constructor.
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
data ListBillingAccountsResponse Source #
Response message for `ListBillingAccounts`.
See: listBillingAccountsResponse
smart constructor.
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.
lbarBillingAccounts :: Lens' ListBillingAccountsResponse [BillingAccount] Source #
A list of billing accounts.