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 |
Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.
See: Access Context Manager API Reference for accesscontextmanager.accessPolicies.patch
.
Synopsis
- type AccessPoliciesPatchResource = "v1beta" :> (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] AccessPolicy :> Patch '[JSON] Operation)))))))))
- accessPoliciesPatch :: AccessPolicy -> Text -> AccessPoliciesPatch
- data AccessPoliciesPatch
- appXgafv :: Lens' AccessPoliciesPatch (Maybe Xgafv)
- appUploadProtocol :: Lens' AccessPoliciesPatch (Maybe Text)
- appUpdateMask :: Lens' AccessPoliciesPatch (Maybe GFieldMask)
- appAccessToken :: Lens' AccessPoliciesPatch (Maybe Text)
- appUploadType :: Lens' AccessPoliciesPatch (Maybe Text)
- appPayload :: Lens' AccessPoliciesPatch AccessPolicy
- appName :: Lens' AccessPoliciesPatch Text
- appCallback :: Lens' AccessPoliciesPatch (Maybe Text)
REST Resource
type AccessPoliciesPatchResource = "v1beta" :> (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] AccessPolicy :> Patch '[JSON] Operation))))))))) Source #
A resource alias for accesscontextmanager.accessPolicies.patch
method which the
AccessPoliciesPatch
request conforms to.
Creating a Request
Creates a value of AccessPoliciesPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccessPoliciesPatch Source #
Update an AccessPolicy. The longrunning Operation from this RPC will have a successful status once the changes to the AccessPolicy have propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.
See: accessPoliciesPatch
smart constructor.
Instances
Request Lenses
appUploadProtocol :: Lens' AccessPoliciesPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
appUpdateMask :: Lens' AccessPoliciesPatch (Maybe GFieldMask) Source #
Required. Mask to control which fields get updated. Must be non-empty.
appAccessToken :: Lens' AccessPoliciesPatch (Maybe Text) Source #
OAuth access token.
appUploadType :: Lens' AccessPoliciesPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
appPayload :: Lens' AccessPoliciesPatch AccessPolicy Source #
Multipart request metadata.
appName :: Lens' AccessPoliciesPatch Text Source #
Output only. Resource name of the `AccessPolicy`. Format: `accessPolicies/{policy_id}`
appCallback :: Lens' AccessPoliciesPatch (Maybe Text) Source #
JSONP