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 |
Creates a new Role.
See: Identity and Access Management (IAM) API Reference for iam.organizations.roles.create
.
Synopsis
- type OrganizationsRolesCreateResource = "v1" :> (Capture "parent" Text :> ("roles" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateRoleRequest :> Post '[JSON] Role)))))))))
- organizationsRolesCreate :: Text -> CreateRoleRequest -> OrganizationsRolesCreate
- data OrganizationsRolesCreate
- orcParent :: Lens' OrganizationsRolesCreate Text
- orcXgafv :: Lens' OrganizationsRolesCreate (Maybe Xgafv)
- orcUploadProtocol :: Lens' OrganizationsRolesCreate (Maybe Text)
- orcAccessToken :: Lens' OrganizationsRolesCreate (Maybe Text)
- orcUploadType :: Lens' OrganizationsRolesCreate (Maybe Text)
- orcPayload :: Lens' OrganizationsRolesCreate CreateRoleRequest
- orcCallback :: Lens' OrganizationsRolesCreate (Maybe Text)
REST Resource
type OrganizationsRolesCreateResource = "v1" :> (Capture "parent" Text :> ("roles" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateRoleRequest :> Post '[JSON] Role))))))))) Source #
A resource alias for iam.organizations.roles.create
method which the
OrganizationsRolesCreate
request conforms to.
Creating a Request
organizationsRolesCreate Source #
Creates a value of OrganizationsRolesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data OrganizationsRolesCreate Source #
Creates a new Role.
See: organizationsRolesCreate
smart constructor.
Instances
Request Lenses
orcParent :: Lens' OrganizationsRolesCreate Text Source #
The resource name of the parent resource in one of the following formats: `organizations/{ORGANIZATION_ID}` `projects/{PROJECT_ID}`
orcUploadProtocol :: Lens' OrganizationsRolesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
orcAccessToken :: Lens' OrganizationsRolesCreate (Maybe Text) Source #
OAuth access token.
orcUploadType :: Lens' OrganizationsRolesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
orcPayload :: Lens' OrganizationsRolesCreate CreateRoleRequest Source #
Multipart request metadata.
orcCallback :: Lens' OrganizationsRolesCreate (Maybe Text) Source #
JSONP