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 an enterprise.
See: Android Management API Reference for androidmanagement.enterprises.patch
.
Synopsis
- type EnterprisesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Enterprise :> Patch '[JSON] Enterprise)))))))))
- enterprisesPatch :: Enterprise -> Text -> EnterprisesPatch
- data EnterprisesPatch
- epXgafv :: Lens' EnterprisesPatch (Maybe Xgafv)
- epUploadProtocol :: Lens' EnterprisesPatch (Maybe Text)
- epUpdateMask :: Lens' EnterprisesPatch (Maybe GFieldMask)
- epAccessToken :: Lens' EnterprisesPatch (Maybe Text)
- epUploadType :: Lens' EnterprisesPatch (Maybe Text)
- epPayload :: Lens' EnterprisesPatch Enterprise
- epName :: Lens' EnterprisesPatch Text
- epCallback :: Lens' EnterprisesPatch (Maybe Text)
REST Resource
type EnterprisesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Enterprise :> Patch '[JSON] Enterprise))))))))) Source #
A resource alias for androidmanagement.enterprises.patch
method which the
EnterprisesPatch
request conforms to.
Creating a Request
Creates a value of EnterprisesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesPatch Source #
Updates an enterprise.
See: enterprisesPatch
smart constructor.
Instances
Request Lenses
epUploadProtocol :: Lens' EnterprisesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
epUpdateMask :: Lens' EnterprisesPatch (Maybe GFieldMask) Source #
The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
epAccessToken :: Lens' EnterprisesPatch (Maybe Text) Source #
OAuth access token.
epUploadType :: Lens' EnterprisesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
epPayload :: Lens' EnterprisesPatch Enterprise Source #
Multipart request metadata.
epName :: Lens' EnterprisesPatch Text Source #
The name of the enterprise in the form enterprises/{enterpriseId}.
epCallback :: Lens' EnterprisesPatch (Maybe Text) Source #
JSONP