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 the specified resource. Replaces any existing policy.
See: Cloud Dataproc API Reference for dataproc.projects.regions.operations.setIamPolicy
.
Synopsis
- type ProjectsRegionsOperationsSetIAMPolicyResource = "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))))))))
- projectsRegionsOperationsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsRegionsOperationsSetIAMPolicy
- data ProjectsRegionsOperationsSetIAMPolicy
- prosipXgafv :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Xgafv)
- prosipUploadProtocol :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text)
- prosipAccessToken :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text)
- prosipUploadType :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text)
- prosipPayload :: Lens' ProjectsRegionsOperationsSetIAMPolicy SetIAMPolicyRequest
- prosipResource :: Lens' ProjectsRegionsOperationsSetIAMPolicy Text
- prosipCallback :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsRegionsOperationsSetIAMPolicyResource = "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 dataproc.projects.regions.operations.setIamPolicy
method which the
ProjectsRegionsOperationsSetIAMPolicy
request conforms to.
Creating a Request
projectsRegionsOperationsSetIAMPolicy Source #
Creates a value of ProjectsRegionsOperationsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsOperationsSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsRegionsOperationsSetIAMPolicy
smart constructor.
Instances
Request Lenses
prosipXgafv :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
prosipUploadProtocol :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prosipAccessToken :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
prosipUploadType :: Lens' ProjectsRegionsOperationsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prosipPayload :: Lens' ProjectsRegionsOperationsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
prosipResource :: Lens' ProjectsRegionsOperationsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.