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 customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The customer receives an email that welcomes them to zero-touch enrollment and explains how to sign into the portal.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.customers.create
.
Synopsis
- type PartnersCustomersCreateResource = "v1" :> (Capture "parent" Text :> ("customers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateCustomerRequest :> Post '[JSON] Company)))))))))
- partnersCustomersCreate :: Text -> CreateCustomerRequest -> PartnersCustomersCreate
- data PartnersCustomersCreate
- pccParent :: Lens' PartnersCustomersCreate Text
- pccXgafv :: Lens' PartnersCustomersCreate (Maybe Xgafv)
- pccUploadProtocol :: Lens' PartnersCustomersCreate (Maybe Text)
- pccAccessToken :: Lens' PartnersCustomersCreate (Maybe Text)
- pccUploadType :: Lens' PartnersCustomersCreate (Maybe Text)
- pccPayload :: Lens' PartnersCustomersCreate CreateCustomerRequest
- pccCallback :: Lens' PartnersCustomersCreate (Maybe Text)
REST Resource
type PartnersCustomersCreateResource = "v1" :> (Capture "parent" Text :> ("customers" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateCustomerRequest :> Post '[JSON] Company))))))))) Source #
A resource alias for androiddeviceprovisioning.partners.customers.create
method which the
PartnersCustomersCreate
request conforms to.
Creating a Request
partnersCustomersCreate Source #
Creates a value of PartnersCustomersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PartnersCustomersCreate Source #
Creates a customer for zero-touch enrollment. After the method returns successfully, admin and owner roles can manage devices and EMM configs by calling API methods or using their zero-touch enrollment portal. The customer receives an email that welcomes them to zero-touch enrollment and explains how to sign into the portal.
See: partnersCustomersCreate
smart constructor.
Instances
Request Lenses
pccParent :: Lens' PartnersCustomersCreate Text Source #
Required. The parent resource ID in the format `partners/[PARTNER_ID]` that identifies the reseller.
pccUploadProtocol :: Lens' PartnersCustomersCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pccAccessToken :: Lens' PartnersCustomersCreate (Maybe Text) Source #
OAuth access token.
pccUploadType :: Lens' PartnersCustomersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pccPayload :: Lens' PartnersCustomersCreate CreateCustomerRequest Source #
Multipart request metadata.
pccCallback :: Lens' PartnersCustomersCreate (Maybe Text) Source #
JSONP