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 access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account viewers.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.getIamPolicy
.
Synopsis
- type BillingAccountsGetIAMPolicyResource = "v1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy)))))))
- billingAccountsGetIAMPolicy :: Text -> BillingAccountsGetIAMPolicy
- data BillingAccountsGetIAMPolicy
- bagipXgafv :: Lens' BillingAccountsGetIAMPolicy (Maybe Xgafv)
- bagipUploadProtocol :: Lens' BillingAccountsGetIAMPolicy (Maybe Text)
- bagipAccessToken :: Lens' BillingAccountsGetIAMPolicy (Maybe Text)
- bagipUploadType :: Lens' BillingAccountsGetIAMPolicy (Maybe Text)
- bagipResource :: Lens' BillingAccountsGetIAMPolicy Text
- bagipCallback :: Lens' BillingAccountsGetIAMPolicy (Maybe Text)
REST Resource
type BillingAccountsGetIAMPolicyResource = "v1" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Policy))))))) Source #
A resource alias for cloudbilling.billingAccounts.getIamPolicy
method which the
BillingAccountsGetIAMPolicy
request conforms to.
Creating a Request
billingAccountsGetIAMPolicy Source #
Creates a value of BillingAccountsGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsGetIAMPolicy Source #
Gets the access control policy for a billing account. The caller must have the `billing.accounts.getIamPolicy` permission on the account, which is often given to billing account viewers.
See: billingAccountsGetIAMPolicy
smart constructor.
Instances
Request Lenses
bagipXgafv :: Lens' BillingAccountsGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
bagipUploadProtocol :: Lens' BillingAccountsGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bagipAccessToken :: Lens' BillingAccountsGetIAMPolicy (Maybe Text) Source #
OAuth access token.
bagipUploadType :: Lens' BillingAccountsGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bagipResource :: Lens' BillingAccountsGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
bagipCallback :: Lens' BillingAccountsGetIAMPolicy (Maybe Text) Source #
JSONP