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 Membership.
See: Cloud Identity API Reference for cloudidentity.groups.memberships.create
.
Synopsis
- type GroupsMembershipsCreateResource = "v1" :> (Capture "parent" Text :> ("memberships" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Membership :> Post '[JSON] Operation)))))))))
- groupsMembershipsCreate :: Text -> Membership -> GroupsMembershipsCreate
- data GroupsMembershipsCreate
- gmcParent :: Lens' GroupsMembershipsCreate Text
- gmcXgafv :: Lens' GroupsMembershipsCreate (Maybe Xgafv)
- gmcUploadProtocol :: Lens' GroupsMembershipsCreate (Maybe Text)
- gmcAccessToken :: Lens' GroupsMembershipsCreate (Maybe Text)
- gmcUploadType :: Lens' GroupsMembershipsCreate (Maybe Text)
- gmcPayload :: Lens' GroupsMembershipsCreate Membership
- gmcCallback :: Lens' GroupsMembershipsCreate (Maybe Text)
REST Resource
type GroupsMembershipsCreateResource = "v1" :> (Capture "parent" Text :> ("memberships" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Membership :> Post '[JSON] Operation))))))))) Source #
A resource alias for cloudidentity.groups.memberships.create
method which the
GroupsMembershipsCreate
request conforms to.
Creating a Request
groupsMembershipsCreate Source #
Creates a value of GroupsMembershipsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data GroupsMembershipsCreate Source #
Creates a Membership.
See: groupsMembershipsCreate
smart constructor.
Instances
Request Lenses
gmcParent :: Lens' GroupsMembershipsCreate Text Source #
Resource name of the Group to create Membership within. Format: `groups/{group_id}`, where `group_id` is the unique ID assigned to the Group.
gmcUploadProtocol :: Lens' GroupsMembershipsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
gmcAccessToken :: Lens' GroupsMembershipsCreate (Maybe Text) Source #
OAuth access token.
gmcUploadType :: Lens' GroupsMembershipsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
gmcPayload :: Lens' GroupsMembershipsCreate Membership Source #
Multipart request metadata.
gmcCallback :: Lens' GroupsMembershipsCreate (Maybe Text) Source #
JSONP