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 a Role definition.
See: Identity and Access Management (IAM) API Reference for iam.projects.roles.get
.
Synopsis
- type ProjectsRolesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Role)))))))
- projectsRolesGet :: Text -> ProjectsRolesGet
- data ProjectsRolesGet
- prgXgafv :: Lens' ProjectsRolesGet (Maybe Xgafv)
- prgUploadProtocol :: Lens' ProjectsRolesGet (Maybe Text)
- prgAccessToken :: Lens' ProjectsRolesGet (Maybe Text)
- prgUploadType :: Lens' ProjectsRolesGet (Maybe Text)
- prgName :: Lens' ProjectsRolesGet Text
- prgCallback :: Lens' ProjectsRolesGet (Maybe Text)
REST Resource
type ProjectsRolesGetResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] Role))))))) Source #
A resource alias for iam.projects.roles.get
method which the
ProjectsRolesGet
request conforms to.
Creating a Request
Creates a value of ProjectsRolesGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsRolesGet Source #
Gets a Role definition.
See: projectsRolesGet
smart constructor.
Instances
Request Lenses
prgUploadProtocol :: Lens' ProjectsRolesGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
prgAccessToken :: Lens' ProjectsRolesGet (Maybe Text) Source #
OAuth access token.
prgUploadType :: Lens' ProjectsRolesGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
prgName :: Lens' ProjectsRolesGet Text Source #
The resource name of the role in one of the following formats: `roles/{ROLE_NAME}` `organizations/{ORGANIZATION_ID}/roles/{ROLE_NAME}` `projects/{PROJECT_ID}/roles/{ROLE_NAME}`
prgCallback :: Lens' ProjectsRolesGet (Maybe Text) Source #
JSONP