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 or creates a policy.
See: Android Management API Reference for androidmanagement.enterprises.policies.patch
.
Synopsis
- type EnterprisesPoliciesPatchResource = "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] Policy :> Patch '[JSON] Policy)))))))))
- enterprisesPoliciesPatch :: Policy -> Text -> EnterprisesPoliciesPatch
- data EnterprisesPoliciesPatch
- eppXgafv :: Lens' EnterprisesPoliciesPatch (Maybe Xgafv)
- eppUploadProtocol :: Lens' EnterprisesPoliciesPatch (Maybe Text)
- eppUpdateMask :: Lens' EnterprisesPoliciesPatch (Maybe GFieldMask)
- eppAccessToken :: Lens' EnterprisesPoliciesPatch (Maybe Text)
- eppUploadType :: Lens' EnterprisesPoliciesPatch (Maybe Text)
- eppPayload :: Lens' EnterprisesPoliciesPatch Policy
- eppName :: Lens' EnterprisesPoliciesPatch Text
- eppCallback :: Lens' EnterprisesPoliciesPatch (Maybe Text)
REST Resource
type EnterprisesPoliciesPatchResource = "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] Policy :> Patch '[JSON] Policy))))))))) Source #
A resource alias for androidmanagement.enterprises.policies.patch
method which the
EnterprisesPoliciesPatch
request conforms to.
Creating a Request
enterprisesPoliciesPatch Source #
Creates a value of EnterprisesPoliciesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data EnterprisesPoliciesPatch Source #
Updates or creates a policy.
See: enterprisesPoliciesPatch
smart constructor.
Instances
Request Lenses
eppUploadProtocol :: Lens' EnterprisesPoliciesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
eppUpdateMask :: Lens' EnterprisesPoliciesPatch (Maybe GFieldMask) Source #
The field mask indicating the fields to update. If not set, all modifiable fields will be modified.
eppAccessToken :: Lens' EnterprisesPoliciesPatch (Maybe Text) Source #
OAuth access token.
eppUploadType :: Lens' EnterprisesPoliciesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
eppPayload :: Lens' EnterprisesPoliciesPatch Policy Source #
Multipart request metadata.
eppName :: Lens' EnterprisesPoliciesPatch Text Source #
The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
eppCallback :: Lens' EnterprisesPoliciesPatch (Maybe Text) Source #
JSONP