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 an instance resource. Returns an empty policy if an instance exists but does not have a policy set. Authorization requires `spanner.instances.getIamPolicy` on resource.
See: Cloud Spanner API Reference for spanner.projects.instances.getIamPolicy
.
Synopsis
- type ProjectsInstancesGetIAMPolicyResource = "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))))))))
- projectsInstancesGetIAMPolicy :: GetIAMPolicyRequest -> Text -> ProjectsInstancesGetIAMPolicy
- data ProjectsInstancesGetIAMPolicy
- pigipXgafv :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Xgafv)
- pigipUploadProtocol :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text)
- pigipAccessToken :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text)
- pigipUploadType :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text)
- pigipPayload :: Lens' ProjectsInstancesGetIAMPolicy GetIAMPolicyRequest
- pigipResource :: Lens' ProjectsInstancesGetIAMPolicy Text
- pigipCallback :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text)
REST Resource
type ProjectsInstancesGetIAMPolicyResource = "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.getIamPolicy
method which the
ProjectsInstancesGetIAMPolicy
request conforms to.
Creating a Request
projectsInstancesGetIAMPolicy Source #
Creates a value of ProjectsInstancesGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesGetIAMPolicy Source #
Gets the access control policy for an instance resource. Returns an empty policy if an instance exists but does not have a policy set. Authorization requires `spanner.instances.getIamPolicy` on resource.
See: projectsInstancesGetIAMPolicy
smart constructor.
Instances
Request Lenses
pigipXgafv :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pigipUploadProtocol :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pigipAccessToken :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #
OAuth access token.
pigipUploadType :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pigipPayload :: Lens' ProjectsInstancesGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
pigipResource :: Lens' ProjectsInstancesGetIAMPolicy 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.
pigipCallback :: Lens' ProjectsInstancesGetIAMPolicy (Maybe Text) Source #
JSONP