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 |
Returns 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. It returns the Cloud IAM policy that reflects what members have access to the service account. This method does not return what resources the service account has access to. To see if a service account has access to a resource, call the `getIamPolicy` method on the target resource. For example, to view grants for a project, call the projects.getIamPolicy method.
See: Identity and Access Management (IAM) API Reference for iam.projects.serviceAccounts.getIamPolicy
.
Synopsis
- type ProjectsServiceAccountsGetIAMPolicyResource = "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 :> Post '[JSON] Policy)))))))
- projectsServiceAccountsGetIAMPolicy :: Text -> ProjectsServiceAccountsGetIAMPolicy
- data ProjectsServiceAccountsGetIAMPolicy
- psagipXgafv :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Xgafv)
- psagipUploadProtocol :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
- psagipAccessToken :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
- psagipUploadType :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
- psagipResource :: Lens' ProjectsServiceAccountsGetIAMPolicy Text
- psagipCallback :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsServiceAccountsGetIAMPolicyResource = "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 :> Post '[JSON] Policy))))))) Source #
A resource alias for iam.projects.serviceAccounts.getIamPolicy
method which the
ProjectsServiceAccountsGetIAMPolicy
request conforms to.
Creating a Request
projectsServiceAccountsGetIAMPolicy Source #
Creates a value of ProjectsServiceAccountsGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsServiceAccountsGetIAMPolicy Source #
Returns 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. It returns the Cloud IAM policy that reflects what members have access to the service account. This method does not return what resources the service account has access to. To see if a service account has access to a resource, call the `getIamPolicy` method on the target resource. For example, to view grants for a project, call the projects.getIamPolicy method.
See: projectsServiceAccountsGetIAMPolicy
smart constructor.
Instances
Request Lenses
psagipXgafv :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
psagipUploadProtocol :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psagipAccessToken :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text) Source #
OAuth access token.
psagipUploadType :: Lens' ProjectsServiceAccountsGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psagipResource :: Lens' ProjectsServiceAccountsGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.