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: Service Broker API Reference for servicebroker.setIamPolicy
.
Synopsis
- type SetIAMPolicyResource = "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] GoogleIAMV1__SetIAMPolicyRequest :> Post '[JSON] GoogleIAMV1__Policy))))))))
- setIAMPolicy :: GoogleIAMV1__SetIAMPolicyRequest -> Text -> SetIAMPolicy
- data SetIAMPolicy
- sipXgafv :: Lens' SetIAMPolicy (Maybe Xgafv)
- sipUploadProtocol :: Lens' SetIAMPolicy (Maybe Text)
- sipAccessToken :: Lens' SetIAMPolicy (Maybe Text)
- sipUploadType :: Lens' SetIAMPolicy (Maybe Text)
- sipPayload :: Lens' SetIAMPolicy GoogleIAMV1__SetIAMPolicyRequest
- sipResource :: Lens' SetIAMPolicy Text
- sipCallback :: Lens' SetIAMPolicy (Maybe Text)
REST Resource
type SetIAMPolicyResource = "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] GoogleIAMV1__SetIAMPolicyRequest :> Post '[JSON] GoogleIAMV1__Policy)))))))) Source #
A resource alias for servicebroker.setIamPolicy
method which the
SetIAMPolicy
request conforms to.
Creating a Request
Creates a value of SetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: setIAMPolicy
smart constructor.
Instances
Request Lenses
sipUploadProtocol :: Lens' SetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sipAccessToken :: Lens' SetIAMPolicy (Maybe Text) Source #
OAuth access token.
sipUploadType :: Lens' SetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sipPayload :: Lens' SetIAMPolicy GoogleIAMV1__SetIAMPolicyRequest Source #
Multipart request metadata.
sipResource :: Lens' SetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
sipCallback :: Lens' SetIAMPolicy (Maybe Text) Source #
JSONP