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 a Folder, replacing any existing policy. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.setIamPolicy` permission on the identified folder.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.setIamPolicy
.
Synopsis
- type FoldersSetIAMPolicyResource = "v2" :> (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))))))))
- foldersSetIAMPolicy :: SetIAMPolicyRequest -> Text -> FoldersSetIAMPolicy
- data FoldersSetIAMPolicy
- fsipXgafv :: Lens' FoldersSetIAMPolicy (Maybe Xgafv)
- fsipUploadProtocol :: Lens' FoldersSetIAMPolicy (Maybe Text)
- fsipAccessToken :: Lens' FoldersSetIAMPolicy (Maybe Text)
- fsipUploadType :: Lens' FoldersSetIAMPolicy (Maybe Text)
- fsipPayload :: Lens' FoldersSetIAMPolicy SetIAMPolicyRequest
- fsipResource :: Lens' FoldersSetIAMPolicy Text
- fsipCallback :: Lens' FoldersSetIAMPolicy (Maybe Text)
REST Resource
type FoldersSetIAMPolicyResource = "v2" :> (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 cloudresourcemanager.folders.setIamPolicy
method which the
FoldersSetIAMPolicy
request conforms to.
Creating a Request
Creates a value of FoldersSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersSetIAMPolicy Source #
Sets the access control policy on a Folder, replacing any existing policy. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.setIamPolicy` permission on the identified folder.
See: foldersSetIAMPolicy
smart constructor.
Instances
Request Lenses
fsipUploadProtocol :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fsipAccessToken :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #
OAuth access token.
fsipUploadType :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fsipPayload :: Lens' FoldersSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
fsipResource :: Lens' FoldersSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.
fsipCallback :: Lens' FoldersSetIAMPolicy (Maybe Text) Source #
JSONP