Copyright | (c) 2015 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: Google Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.setIamPolicy
.
- type ProjectsSubscriptionsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` SetIAMPolicyRequest :> Post `[JSON]` Policy))))))))))
- projectsSubscriptionsSetIAMPolicy :: SetIAMPolicyRequest -> Text -> ProjectsSubscriptionsSetIAMPolicy
- data ProjectsSubscriptionsSetIAMPolicy
- pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipUploadProtocol :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipPp :: Lens' ProjectsSubscriptionsSetIAMPolicy Bool
- pssipAccessToken :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipUploadType :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipPayload :: Lens' ProjectsSubscriptionsSetIAMPolicy SetIAMPolicyRequest
- pssipBearerToken :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
- pssipResource :: Lens' ProjectsSubscriptionsSetIAMPolicy Text
- pssipCallback :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text)
REST Resource
type ProjectsSubscriptionsSetIAMPolicyResource = "v1" :> (CaptureMode "resource" "setIamPolicy" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
Request Lenses
pssipXgafv :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source
V1 error format.
pssipUploadProtocol :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
pssipPp :: Lens' ProjectsSubscriptionsSetIAMPolicy Bool Source
Pretty-print response.
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.
pssipBearerToken :: Lens' ProjectsSubscriptionsSetIAMPolicy (Maybe Text) Source
OAuth bearer token.
pssipResource :: Lens' ProjectsSubscriptionsSetIAMPolicy Text Source
REQUIRED: The resource for which policy is being specified. `resource` is usually specified as a path, such as, `projects/{project}/zones/{zone}/disks/{disk}`.