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 an enrollment token for a given enterprise.
See: Android Management API Reference for androidmanagement.enterprises.enrollmentTokens.create
.
Synopsis
- type EnterprisesEnrollmentTokensCreateResource = "v1" :> (Capture "parent" Text :> ("enrollmentTokens" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] EnrollmentToken :> Post '[JSON] EnrollmentToken)))))))))
- enterprisesEnrollmentTokensCreate :: Text -> EnrollmentToken -> EnterprisesEnrollmentTokensCreate
- data EnterprisesEnrollmentTokensCreate
- eetcParent :: Lens' EnterprisesEnrollmentTokensCreate Text
- eetcXgafv :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Xgafv)
- eetcUploadProtocol :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)
- eetcAccessToken :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)
- eetcUploadType :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)
- eetcPayload :: Lens' EnterprisesEnrollmentTokensCreate EnrollmentToken
- eetcCallback :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text)
REST Resource
type EnterprisesEnrollmentTokensCreateResource = "v1" :> (Capture "parent" Text :> ("enrollmentTokens" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] EnrollmentToken :> Post '[JSON] EnrollmentToken))))))))) Source #
A resource alias for androidmanagement.enterprises.enrollmentTokens.create
method which the
EnterprisesEnrollmentTokensCreate
request conforms to.
Creating a Request
enterprisesEnrollmentTokensCreate Source #
Creates a value of EnterprisesEnrollmentTokensCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesEnrollmentTokensCreate Source #
Creates an enrollment token for a given enterprise.
See: enterprisesEnrollmentTokensCreate
smart constructor.
Instances
Request Lenses
eetcParent :: Lens' EnterprisesEnrollmentTokensCreate Text Source #
The name of the enterprise in the form enterprises/{enterpriseId}.
eetcUploadProtocol :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
eetcAccessToken :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text) Source #
OAuth access token.
eetcUploadType :: Lens' EnterprisesEnrollmentTokensCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
eetcPayload :: Lens' EnterprisesEnrollmentTokensCreate EnrollmentToken Source #
Multipart request metadata.