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 |
Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.testIamPermissions
.
Synopsis
- type BillingAccountsTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))
- billingAccountsTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> BillingAccountsTestIAMPermissions
- data BillingAccountsTestIAMPermissions
- batipXgafv :: Lens' BillingAccountsTestIAMPermissions (Maybe Xgafv)
- batipUploadProtocol :: Lens' BillingAccountsTestIAMPermissions (Maybe Text)
- batipAccessToken :: Lens' BillingAccountsTestIAMPermissions (Maybe Text)
- batipUploadType :: Lens' BillingAccountsTestIAMPermissions (Maybe Text)
- batipPayload :: Lens' BillingAccountsTestIAMPermissions TestIAMPermissionsRequest
- batipResource :: Lens' BillingAccountsTestIAMPermissions Text
- batipCallback :: Lens' BillingAccountsTestIAMPermissions (Maybe Text)
REST Resource
type BillingAccountsTestIAMPermissionsResource = "v1" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #
A resource alias for cloudbilling.billingAccounts.testIamPermissions
method which the
BillingAccountsTestIAMPermissions
request conforms to.
Creating a Request
billingAccountsTestIAMPermissions Source #
Creates a value of BillingAccountsTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsTestIAMPermissions Source #
Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
See: billingAccountsTestIAMPermissions
smart constructor.
Instances
Request Lenses
batipXgafv :: Lens' BillingAccountsTestIAMPermissions (Maybe Xgafv) Source #
V1 error format.
batipUploadProtocol :: Lens' BillingAccountsTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
batipAccessToken :: Lens' BillingAccountsTestIAMPermissions (Maybe Text) Source #
OAuth access token.
batipUploadType :: Lens' BillingAccountsTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
batipPayload :: Lens' BillingAccountsTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
batipResource :: Lens' BillingAccountsTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.