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 |
Lists the projects associated with a billing account. The current authenticated user must have the `billing.resourceAssociations.list` IAM permission, which is often given to billing account viewers.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.projects.list
.
Synopsis
- type BillingAccountsProjectsListResource = "v1" :> (Capture "name" Text :> ("projects" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListProjectBillingInfoResponse))))))))))
- billingAccountsProjectsList :: Text -> BillingAccountsProjectsList
- data BillingAccountsProjectsList
- baplXgafv :: Lens' BillingAccountsProjectsList (Maybe Xgafv)
- baplUploadProtocol :: Lens' BillingAccountsProjectsList (Maybe Text)
- baplAccessToken :: Lens' BillingAccountsProjectsList (Maybe Text)
- baplUploadType :: Lens' BillingAccountsProjectsList (Maybe Text)
- baplName :: Lens' BillingAccountsProjectsList Text
- baplPageToken :: Lens' BillingAccountsProjectsList (Maybe Text)
- baplPageSize :: Lens' BillingAccountsProjectsList (Maybe Int32)
- baplCallback :: Lens' BillingAccountsProjectsList (Maybe Text)
REST Resource
type BillingAccountsProjectsListResource = "v1" :> (Capture "name" Text :> ("projects" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListProjectBillingInfoResponse)))))))))) Source #
A resource alias for cloudbilling.billingAccounts.projects.list
method which the
BillingAccountsProjectsList
request conforms to.
Creating a Request
billingAccountsProjectsList Source #
Creates a value of BillingAccountsProjectsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsProjectsList Source #
Lists the projects associated with a billing account. The current authenticated user must have the `billing.resourceAssociations.list` IAM permission, which is often given to billing account viewers.
See: billingAccountsProjectsList
smart constructor.
Instances
Request Lenses
baplUploadProtocol :: Lens' BillingAccountsProjectsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
baplAccessToken :: Lens' BillingAccountsProjectsList (Maybe Text) Source #
OAuth access token.
baplUploadType :: Lens' BillingAccountsProjectsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
baplName :: Lens' BillingAccountsProjectsList Text Source #
The resource name of the billing account associated with the projects that you want to list. For example, `billingAccounts/012345-567890-ABCDEF`.
baplPageToken :: Lens' BillingAccountsProjectsList (Maybe Text) Source #
A token identifying a page of results to be returned. This should be a `next_page_token` value returned from a previous `ListProjectBillingInfo` call. If unspecified, the first page of results is returned.
baplPageSize :: Lens' BillingAccountsProjectsList (Maybe Int32) Source #
Requested page size. The maximum page size is 100; this is also the default.
baplCallback :: Lens' BillingAccountsProjectsList (Maybe Text) Source #
JSONP