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 |
Returns permissions that a caller has on the specified Folder. The `resource` field should be the Folder's resource name, e.g. "folders/1234". There are no permissions required for making this API call.
See: Cloud Resource Manager API Reference for cloudresourcemanager.folders.testIamPermissions
.
Synopsis
- type FoldersTestIAMPermissionsResource = "v2" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse))))))))
- foldersTestIAMPermissions :: TestIAMPermissionsRequest -> Text -> FoldersTestIAMPermissions
- data FoldersTestIAMPermissions
- ftipXgafv :: Lens' FoldersTestIAMPermissions (Maybe Xgafv)
- ftipUploadProtocol :: Lens' FoldersTestIAMPermissions (Maybe Text)
- ftipAccessToken :: Lens' FoldersTestIAMPermissions (Maybe Text)
- ftipUploadType :: Lens' FoldersTestIAMPermissions (Maybe Text)
- ftipPayload :: Lens' FoldersTestIAMPermissions TestIAMPermissionsRequest
- ftipResource :: Lens' FoldersTestIAMPermissions Text
- ftipCallback :: Lens' FoldersTestIAMPermissions (Maybe Text)
REST Resource
type FoldersTestIAMPermissionsResource = "v2" :> (CaptureMode "resource" "testIamPermissions" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] TestIAMPermissionsRequest :> Post '[JSON] TestIAMPermissionsResponse)))))))) Source #
A resource alias for cloudresourcemanager.folders.testIamPermissions
method which the
FoldersTestIAMPermissions
request conforms to.
Creating a Request
foldersTestIAMPermissions Source #
Creates a value of FoldersTestIAMPermissions
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data FoldersTestIAMPermissions Source #
Returns permissions that a caller has on the specified Folder. The `resource` field should be the Folder's resource name, e.g. "folders/1234". There are no permissions required for making this API call.
See: foldersTestIAMPermissions
smart constructor.
Instances
Request Lenses
ftipUploadProtocol :: Lens' FoldersTestIAMPermissions (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
ftipAccessToken :: Lens' FoldersTestIAMPermissions (Maybe Text) Source #
OAuth access token.
ftipUploadType :: Lens' FoldersTestIAMPermissions (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
ftipPayload :: Lens' FoldersTestIAMPermissions TestIAMPermissionsRequest Source #
Multipart request metadata.
ftipResource :: Lens' FoldersTestIAMPermissions Text Source #
REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field.
ftipCallback :: Lens' FoldersTestIAMPermissions (Maybe Text) Source #
JSONP