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.clusters.setIamPolicy
.
Synopsis
- type ProjectsRegionsClustersSetIAMPolicyResource = "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))))))))
- projectsRegionsClustersSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsRegionsClustersSetIAMPolicy
- data ProjectsRegionsClustersSetIAMPolicy
- prcsipXgafv :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Xgafv)
- prcsipUploadProtocol :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text)
- prcsipAccessToken :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text)
- prcsipUploadType :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text)
- prcsipPayload :: Lens' ProjectsRegionsClustersSetIAMPolicy SetIAMPolicyRequest
- prcsipResource :: Lens' ProjectsRegionsClustersSetIAMPolicy Text
- prcsipCallback :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsRegionsClustersSetIAMPolicyResource = "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.clusters.setIamPolicy
method which the
ProjectsRegionsClustersSetIAMPolicy
request conforms to.
Creating a Request
projectsRegionsClustersSetIAMPolicy Source #
Creates a value of ProjectsRegionsClustersSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRegionsClustersSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsRegionsClustersSetIAMPolicy
smart constructor.
Instances
Request Lenses
prcsipXgafv :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
prcsipUploadProtocol :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prcsipAccessToken :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text) Source #
OAuth access token.
prcsipUploadType :: Lens' ProjectsRegionsClustersSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prcsipPayload :: Lens' ProjectsRegionsClustersSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
prcsipResource :: Lens' ProjectsRegionsClustersSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.