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 |
Gets the access control policy for a database resource. Returns an empty policy if a database exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.getIamPolicy
.
Synopsis
- type ProjectsInstancesDatabasesGetIAMPolicyResource = "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 :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- projectsInstancesDatabasesGetIAMPolicy :: GetIAMPolicyRequest -> Text -> ProjectsInstancesDatabasesGetIAMPolicy
- data ProjectsInstancesDatabasesGetIAMPolicy
- pidgipXgafv :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Xgafv)
- pidgipUploadProtocol :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text)
- pidgipAccessToken :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text)
- pidgipUploadType :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text)
- pidgipPayload :: Lens' ProjectsInstancesDatabasesGetIAMPolicy GetIAMPolicyRequest
- pidgipResource :: Lens' ProjectsInstancesDatabasesGetIAMPolicy Text
- pidgipCallback :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesGetIAMPolicyResource = "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 :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for spanner.projects.instances.databases.getIamPolicy
method which the
ProjectsInstancesDatabasesGetIAMPolicy
request conforms to.
Creating a Request
projectsInstancesDatabasesGetIAMPolicy Source #
Creates a value of ProjectsInstancesDatabasesGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesGetIAMPolicy Source #
Gets the access control policy for a database resource. Returns an empty policy if a database exists but does not have a policy set. Authorization requires `spanner.databases.getIamPolicy` permission on resource.
See: projectsInstancesDatabasesGetIAMPolicy
smart constructor.
Instances
Request Lenses
pidgipXgafv :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pidgipUploadProtocol :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidgipAccessToken :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text) Source #
OAuth access token.
pidgipUploadType :: Lens' ProjectsInstancesDatabasesGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidgipPayload :: Lens' ProjectsInstancesDatabasesGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
pidgipResource :: Lens' ProjectsInstancesDatabasesGetIAMPolicy Text Source #
REQUIRED: The Cloud Spanner resource for which the policy is being retrieved. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for database resources.