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 access control policy on a database resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource.
See: Cloud Spanner API Reference for spanner.projects.instances.databases.setIamPolicy
.
Synopsis
- type ProjectsInstancesDatabasesSetIAMPolicyResource = "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))))))))
- projectsInstancesDatabasesSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsInstancesDatabasesSetIAMPolicy
- data ProjectsInstancesDatabasesSetIAMPolicy
- pidsipXgafv :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Xgafv)
- pidsipUploadProtocol :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text)
- pidsipAccessToken :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text)
- pidsipUploadType :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text)
- pidsipPayload :: Lens' ProjectsInstancesDatabasesSetIAMPolicy SetIAMPolicyRequest
- pidsipResource :: Lens' ProjectsInstancesDatabasesSetIAMPolicy Text
- pidsipCallback :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsInstancesDatabasesSetIAMPolicyResource = "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 spanner.projects.instances.databases.setIamPolicy
method which the
ProjectsInstancesDatabasesSetIAMPolicy
request conforms to.
Creating a Request
projectsInstancesDatabasesSetIAMPolicy Source #
Creates a value of ProjectsInstancesDatabasesSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesDatabasesSetIAMPolicy Source #
Sets the access control policy on a database resource. Replaces any existing policy. Authorization requires `spanner.databases.setIamPolicy` permission on resource.
See: projectsInstancesDatabasesSetIAMPolicy
smart constructor.
Instances
Request Lenses
pidsipXgafv :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pidsipUploadProtocol :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pidsipAccessToken :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text) Source #
OAuth access token.
pidsipUploadType :: Lens' ProjectsInstancesDatabasesSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pidsipPayload :: Lens' ProjectsInstancesDatabasesSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
pidsipResource :: Lens' ProjectsInstancesDatabasesSetIAMPolicy Text Source #
REQUIRED: The Cloud Spanner resource for which the policy is being set. The format is `projects//instances/` for instance resources and `projects//instances//databases/` for databases resources.