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 |
Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account administrators.
See: Cloud Billing API Reference for cloudbilling.billingAccounts.setIamPolicy
.
Synopsis
- type BillingAccountsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- billingAccountsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> BillingAccountsSetIAMPolicy
- data BillingAccountsSetIAMPolicy
- basipXgafv :: Lens' BillingAccountsSetIAMPolicy (Maybe Xgafv)
- basipUploadProtocol :: Lens' BillingAccountsSetIAMPolicy (Maybe Text)
- basipAccessToken :: Lens' BillingAccountsSetIAMPolicy (Maybe Text)
- basipUploadType :: Lens' BillingAccountsSetIAMPolicy (Maybe Text)
- basipPayload :: Lens' BillingAccountsSetIAMPolicy SetIAMPolicyRequest
- basipResource :: Lens' BillingAccountsSetIAMPolicy Text
- basipCallback :: Lens' BillingAccountsSetIAMPolicy (Maybe Text)
REST Resource
type BillingAccountsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for cloudbilling.billingAccounts.setIamPolicy
method which the
BillingAccountsSetIAMPolicy
request conforms to.
Creating a Request
billingAccountsSetIAMPolicy Source #
Creates a value of BillingAccountsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BillingAccountsSetIAMPolicy Source #
Sets the access control policy for a billing account. Replaces any existing policy. The caller must have the `billing.accounts.setIamPolicy` permission on the account, which is often given to billing account administrators.
See: billingAccountsSetIAMPolicy
smart constructor.
Instances
Request Lenses
basipXgafv :: Lens' BillingAccountsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
basipUploadProtocol :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
basipAccessToken :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
basipUploadType :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
basipPayload :: Lens' BillingAccountsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
basipResource :: Lens' BillingAccountsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
basipCallback :: Lens' BillingAccountsSetIAMPolicy (Maybe Text) Source #
JSONP