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.subscriptions.setIamPolicy
.
Synopsis
- type ProjectsSubscriptionsSetIAMPolicyResource = "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))))))))
- projectsSubscriptionsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsSubscriptionsSetIAMPolicy
- data ProjectsSubscriptionsSetIAMPolicy
- pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Xgafv)
- pssipUploadProtocol :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipAccessToken :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipUploadType :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipPayload :: Lens' ProjectsSubscriptionsSetIAMPolicy SetIAMPolicyRequest
- pssipResource :: Lens' ProjectsSubscriptionsSetIAMPolicy Text
- pssipCallback :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsSubscriptionsSetIAMPolicyResource = "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.subscriptions.setIamPolicy
method which the
ProjectsSubscriptionsSetIAMPolicy
request conforms to.
Creating a Request
projectsSubscriptionsSetIAMPolicy Source #
Creates a value of ProjectsSubscriptionsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSubscriptionsSetIAMPolicy Source #
Sets the access control policy on the specified resource. Replaces any existing policy.
See: projectsSubscriptionsSetIAMPolicy
smart constructor.
Instances
Request Lenses
pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Xgafv) Source #
V1 error format.
pssipUploadProtocol :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pssipAccessToken :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source #
OAuth access token.
pssipUploadType :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pssipPayload :: Lens' ProjectsSubscriptionsSetIAMPolicy SetIAMPolicyRequest Source #
Multipart request metadata.
pssipResource :: Lens' ProjectsSubscriptionsSetIAMPolicy Text Source #
REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field.