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 IAM access control policy for a ServiceAccount.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.setIamPolicy
.
Synopsis
- type ProjectsServiceAccountsSetIAMPolicyResource = "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))))))))
- projectsServiceAccountsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsServiceAccountsSetIAMPolicy
- data ProjectsServiceAccountsSetIAMPolicy
- psasipXgafv :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Xgafv)
- psasipUploadProtocol :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
- psasipAccessToken :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
- psasipUploadType :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
- psasipPayload :: Lens' ProjectsServiceAccountsSetIAMPolicy SetIAMPolicyRequest
- psasipResource :: Lens' ProjectsServiceAccountsSetIAMPolicy Text
- psasipCallback :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsServiceAccountsSetIAMPolicyResource = "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 iam.projects.serviceAccounts.setIamPolicy
method which the
ProjectsServiceAccountsSetIAMPolicy
request conforms to.
Creating a Request
projectsServiceAccountsSetIAMPolicy Source #
Creates a value of ProjectsServiceAccountsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsSetIAMPolicy Source #
Sets the IAM access control policy for a ServiceAccount.
See: projectsServiceAccountsSetIAMPolicy
smart constructor.
Instances
Request Lenses
psasipXgafv :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
psasipUploadProtocol :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psasipAccessToken :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
psasipUploadType :: Lens' ProjectsServiceAccountsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psasipPayload :: Lens' ProjectsServiceAccountsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
psasipResource :: Lens' ProjectsServiceAccountsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.