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 |
Updates reseller metadata associated with the device.
See: Android Device Provisioning Partner API Reference for androiddeviceprovisioning.partners.devices.metadata
.
Synopsis
- type PartnersDevicesMetadataResource = "v1" :> ("partners" :> (Capture "metadataOwnerId" (Textual Int64) :> ("devices" :> (Capture "deviceId" (Textual Int64) :> ("metadata" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateDeviceMetadataRequest :> Post '[JSON] DeviceMetadata))))))))))))
- partnersDevicesMetadata :: UpdateDeviceMetadataRequest -> Int64 -> Int64 -> PartnersDevicesMetadata
- data PartnersDevicesMetadata
- pdmXgafv :: Lens' PartnersDevicesMetadata (Maybe Xgafv)
- pdmUploadProtocol :: Lens' PartnersDevicesMetadata (Maybe Text)
- pdmAccessToken :: Lens' PartnersDevicesMetadata (Maybe Text)
- pdmUploadType :: Lens' PartnersDevicesMetadata (Maybe Text)
- pdmPayload :: Lens' PartnersDevicesMetadata UpdateDeviceMetadataRequest
- pdmDeviceId :: Lens' PartnersDevicesMetadata Int64
- pdmCallback :: Lens' PartnersDevicesMetadata (Maybe Text)
- pdmMetadataOwnerId :: Lens' PartnersDevicesMetadata Int64
REST Resource
type PartnersDevicesMetadataResource = "v1" :> ("partners" :> (Capture "metadataOwnerId" (Textual Int64) :> ("devices" :> (Capture "deviceId" (Textual Int64) :> ("metadata" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateDeviceMetadataRequest :> Post '[JSON] DeviceMetadata)))))))))))) Source #
A resource alias for androiddeviceprovisioning.partners.devices.metadata
method which the
PartnersDevicesMetadata
request conforms to.
Creating a Request
partnersDevicesMetadata Source #
Creates a value of PartnersDevicesMetadata
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PartnersDevicesMetadata Source #
Updates reseller metadata associated with the device.
See: partnersDevicesMetadata
smart constructor.
Instances
Request Lenses
pdmUploadProtocol :: Lens' PartnersDevicesMetadata (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pdmAccessToken :: Lens' PartnersDevicesMetadata (Maybe Text) Source #
OAuth access token.
pdmUploadType :: Lens' PartnersDevicesMetadata (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pdmPayload :: Lens' PartnersDevicesMetadata UpdateDeviceMetadataRequest Source #
Multipart request metadata.
pdmDeviceId :: Lens' PartnersDevicesMetadata Int64 Source #
Required. The ID of the device.
pdmCallback :: Lens' PartnersDevicesMetadata (Maybe Text) Source #
JSONP
pdmMetadataOwnerId :: Lens' PartnersDevicesMetadata Int64 Source #
Required. The owner of the newly set metadata. Set this to the partner ID.