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 |
Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has 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.create
.
Synopsis
- type AccessPoliciesCreateResource = "v1beta" :> ("accessPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AccessPolicy :> Post '[JSON] Operation))))))))
- accessPoliciesCreate :: AccessPolicy -> AccessPoliciesCreate
- data AccessPoliciesCreate
- apcXgafv :: Lens' AccessPoliciesCreate (Maybe Xgafv)
- apcUploadProtocol :: Lens' AccessPoliciesCreate (Maybe Text)
- apcAccessToken :: Lens' AccessPoliciesCreate (Maybe Text)
- apcUploadType :: Lens' AccessPoliciesCreate (Maybe Text)
- apcPayload :: Lens' AccessPoliciesCreate AccessPolicy
- apcCallback :: Lens' AccessPoliciesCreate (Maybe Text)
REST Resource
type AccessPoliciesCreateResource = "v1beta" :> ("accessPolicies" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AccessPolicy :> Post '[JSON] Operation)))))))) Source #
A resource alias for accesscontextmanager.accessPolicies.create
method which the
AccessPoliciesCreate
request conforms to.
Creating a Request
Creates a value of AccessPoliciesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AccessPoliciesCreate Source #
Create an `AccessPolicy`. Fails if this organization already has a `AccessPolicy`. The longrunning Operation will have a successful status once the `AccessPolicy` has propagated to long-lasting storage. Syntactic and basic semantic errors will be returned in `metadata` as a BadRequest proto.
See: accessPoliciesCreate
smart constructor.
Instances
Request Lenses
apcUploadProtocol :: Lens' AccessPoliciesCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
apcAccessToken :: Lens' AccessPoliciesCreate (Maybe Text) Source #
OAuth access token.
apcUploadType :: Lens' AccessPoliciesCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
apcPayload :: Lens' AccessPoliciesCreate AccessPolicy Source #
Multipart request metadata.
apcCallback :: Lens' AccessPoliciesCreate (Maybe Text) Source #
JSONP