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 |
Sets the access control policy on the specified resource. Replaces any existing policy.
See: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.setIamPolicy
.
Synopsis
- type ProjectsSnapshotsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy))))))))
- projectsSnapshotsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsSnapshotsSetIAMPolicy
- data ProjectsSnapshotsSetIAMPolicy
- pssiampXgafv :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Xgafv)
- pssiampUploadProtocol :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text)
- pssiampAccessToken :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text)
- pssiampUploadType :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text)
- pssiampPayload :: Lens' ProjectsSnapshotsSetIAMPolicy SetIAMPolicyRequest
- pssiampResource :: Lens' ProjectsSnapshotsSetIAMPolicy Text
- pssiampCallback :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsSnapshotsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetIAMPolicyRequest :> Post '[JSON] Policy)))))))) Source #
A resource alias for pubsub.projects.snapshots.setIamPolicy
method which the
ProjectsSnapshotsSetIAMPolicy
request conforms to.
Creating a Request
projectsSnapshotsSetIAMPolicy Source #
Creates a value of ProjectsSnapshotsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSnapshotsSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsSnapshotsSetIAMPolicy
smart constructor.
Instances
Request Lenses
pssiampXgafv :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pssiampUploadProtocol :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pssiampAccessToken :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
pssiampUploadType :: Lens' ProjectsSnapshotsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pssiampPayload :: Lens' ProjectsSnapshotsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
pssiampResource :: Lens' ProjectsSnapshotsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.