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 |
Gets the access control policy for a Folder. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the identified folder.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.getIamPolicy
.
Synopsis
- type FoldersGetIAMPolicyResource = "v2" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- foldersGetIAMPolicy :: GetIAMPolicyRequest -> Text -> FoldersGetIAMPolicy
- data FoldersGetIAMPolicy
- fgipXgafv :: Lens' FoldersGetIAMPolicy (Maybe Xgafv)
- fgipUploadProtocol :: Lens' FoldersGetIAMPolicy (Maybe Text)
- fgipAccessToken :: Lens' FoldersGetIAMPolicy (Maybe Text)
- fgipUploadType :: Lens' FoldersGetIAMPolicy (Maybe Text)
- fgipPayload :: Lens' FoldersGetIAMPolicy GetIAMPolicyRequest
- fgipResource :: Lens' FoldersGetIAMPolicy Text
- fgipCallback :: Lens' FoldersGetIAMPolicy (Maybe Text)
REST Resource
type FoldersGetIAMPolicyResource = "v2" :> (CaptureMode "resource" "getIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for cloudresourcemanager.folders.getIamPolicy
method which the
FoldersGetIAMPolicy
request conforms to.
Creating a Request
Creates a value of FoldersGetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersGetIAMPolicy Source #
Gets the access control policy for a Folder. The returned policy may be empty if no such policy or resource exists. The `resource` field should be the Folder's resource name, e.g. "folders/1234". The caller must have `resourcemanager.folders.getIamPolicy` permission on the identified folder.
See: foldersGetIAMPolicy
smart constructor.
Instances
Request Lenses
fgipUploadProtocol :: Lens' FoldersGetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
fgipAccessToken :: Lens' FoldersGetIAMPolicy (Maybe Text) Source #
OAuth access token.
fgipUploadType :: Lens' FoldersGetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
fgipPayload :: Lens' FoldersGetIAMPolicy GetIAMPolicyRequest Source #
Multipart request metadata.
fgipResource :: Lens' FoldersGetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field.
fgipCallback :: Lens' FoldersGetIAMPolicy (Maybe Text) Source #
JSONP