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 an instance resource. Replaces any existing policy. Authorization requires `spanner.instances.setIamPolicy` on resource.
See: Cloud Spanner API Reference for spanner.projects.instances.setIamPolicy
.
Synopsis
- type ProjectsInstancesSetIAMPolicyResource = "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))))))))
- projectsInstancesSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsInstancesSetIAMPolicy
- data ProjectsInstancesSetIAMPolicy
- pisipXgafv :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Xgafv)
- pisipUploadProtocol :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text)
- pisipAccessToken :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text)
- pisipUploadType :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text)
- pisipPayload :: Lens' ProjectsInstancesSetIAMPolicy SetIAMPolicyRequest
- pisipResource :: Lens' ProjectsInstancesSetIAMPolicy Text
- pisipCallback :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsInstancesSetIAMPolicyResource = "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.setIamPolicy
method which the
ProjectsInstancesSetIAMPolicy
request conforms to.
Creating a Request
projectsInstancesSetIAMPolicy Source #
Creates a value of ProjectsInstancesSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsInstancesSetIAMPolicy Source #
Sets the access control policy on an instance resource. Replaces any existing policy. Authorization requires `spanner.instances.setIamPolicy` on resource.
See: projectsInstancesSetIAMPolicy
smart constructor.
Instances
Request Lenses
pisipXgafv :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pisipUploadProtocol :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pisipAccessToken :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #
OAuth access token.
pisipUploadType :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pisipPayload :: Lens' ProjectsInstancesSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
pisipResource :: Lens' ProjectsInstancesSetIAMPolicy 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.
pisipCallback :: Lens' ProjectsInstancesSetIAMPolicy (Maybe Text) Source #
JSONP