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 |
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: Cloud Billing API Reference for cloudbilling.projects.getBillingInfo
.
Synopsis
- type ProjectsGetBillingInfoResource = "v1" :> (Capture "name" Text :> ("billingInfo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ProjectBillingInfo))))))))
- projectsGetBillingInfo :: Text -> ProjectsGetBillingInfo
- data ProjectsGetBillingInfo
- pgbiXgafv :: Lens' ProjectsGetBillingInfo (Maybe Xgafv)
- pgbiUploadProtocol :: Lens' ProjectsGetBillingInfo (Maybe Text)
- pgbiAccessToken :: Lens' ProjectsGetBillingInfo (Maybe Text)
- pgbiUploadType :: Lens' ProjectsGetBillingInfo (Maybe Text)
- pgbiName :: Lens' ProjectsGetBillingInfo Text
- pgbiCallback :: Lens' ProjectsGetBillingInfo (Maybe Text)
REST Resource
type ProjectsGetBillingInfoResource = "v1" :> (Capture "name" Text :> ("billingInfo" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
Request Lenses
pgbiUploadProtocol :: Lens' ProjectsGetBillingInfo (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgbiAccessToken :: Lens' ProjectsGetBillingInfo (Maybe Text) Source #
OAuth access token.
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`.
pgbiCallback :: Lens' ProjectsGetBillingInfo (Maybe Text) Source #
JSONP