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: Binary Authorization API Reference for binaryauthorization.projects.policy.setIamPolicy
.
Synopsis
- type ProjectsPolicySetIAMPolicyResource = "v1beta1" :> (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] IAMPolicy))))))))
- projectsPolicySetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsPolicySetIAMPolicy
- data ProjectsPolicySetIAMPolicy
- ppsipXgafv :: Lens' ProjectsPolicySetIAMPolicy (Maybe Xgafv)
- ppsipUploadProtocol :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text)
- ppsipAccessToken :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text)
- ppsipUploadType :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text)
- ppsipPayload :: Lens' ProjectsPolicySetIAMPolicy SetIAMPolicyRequest
- ppsipResource :: Lens' ProjectsPolicySetIAMPolicy Text
- ppsipCallback :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text)
REST Resource
type ProjectsPolicySetIAMPolicyResource = "v1beta1" :> (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] IAMPolicy)))))))) Source #
A resource alias for binaryauthorization.projects.policy.setIamPolicy
method which the
ProjectsPolicySetIAMPolicy
request conforms to.
Creating a Request
projectsPolicySetIAMPolicy Source #
Creates a value of ProjectsPolicySetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsPolicySetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsPolicySetIAMPolicy
smart constructor.
Instances
Request Lenses
ppsipXgafv :: Lens' ProjectsPolicySetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
ppsipUploadProtocol :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ppsipAccessToken :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text) Source #
OAuth access token.
ppsipUploadType :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ppsipPayload :: Lens' ProjectsPolicySetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
ppsipResource :: Lens' ProjectsPolicySetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
ppsipCallback :: Lens' ProjectsPolicySetIAMPolicy (Maybe Text) Source #
JSONP