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 Cloud IAM access control policy for a ServiceAccount. Note: Service accounts are both resources and identities. This method treats the service account as a resource. Use it to grant members access to the service account, such as when they need to impersonate it. This method does not grant the service account access to other resources, such as projects. To grant a service account access to resources, include the service account in the Cloud IAM policy for the desired resource, then call the appropriate `setIamPolicy` method on the target resource. For example, to grant a service account access to a project, call the projects.setIamPolicy method.
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 Cloud IAM access control policy for a ServiceAccount. Note: Service accounts are both resources and identities. This method treats the service account as a resource. Use it to grant members access to the service account, such as when they need to impersonate it. This method does not grant the service account access to other resources, such as projects. To grant a service account access to resources, include the service account in the Cloud IAM policy for the desired resource, then call the appropriate `setIamPolicy` method on the target resource. For example, to grant a service account access to a project, call the projects.setIamPolicy method.
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.