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 |
Updates an IAM policy for the specified object.
See: Cloud Storage JSON API Reference for storage.objects.setIamPolicy
.
Synopsis
- type ObjectsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy))))))))))
- objectsSetIAMPolicy :: Text -> Policy -> Text -> ObjectsSetIAMPolicy
- data ObjectsSetIAMPolicy
- osipBucket :: Lens' ObjectsSetIAMPolicy Text
- osipPayload :: Lens' ObjectsSetIAMPolicy Policy
- osipUserProject :: Lens' ObjectsSetIAMPolicy (Maybe Text)
- osipObject :: Lens' ObjectsSetIAMPolicy Text
- osipGeneration :: Lens' ObjectsSetIAMPolicy (Maybe Int64)
REST Resource
type ObjectsSetIAMPolicyResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> ("o" :> (Capture "object" Text :> ("iam" :> (QueryParam "userProject" Text :> (QueryParam "generation" (Textual Int64) :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Policy :> Put '[JSON] Policy)))))))))) Source #
A resource alias for storage.objects.setIamPolicy
method which the
ObjectsSetIAMPolicy
request conforms to.
Creating a Request
Creates a value of ObjectsSetIAMPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ObjectsSetIAMPolicy Source #
Updates an IAM policy for the specified object.
See: objectsSetIAMPolicy
smart constructor.
Instances
Request Lenses
osipBucket :: Lens' ObjectsSetIAMPolicy Text Source #
Name of the bucket in which the object resides.
osipPayload :: Lens' ObjectsSetIAMPolicy Policy Source #
Multipart request metadata.
osipUserProject :: Lens' ObjectsSetIAMPolicy (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
osipObject :: Lens' ObjectsSetIAMPolicy Text Source #
Name of the object. For information about how to URL encode object names to be path safe, see Encoding URI Path Parts.
osipGeneration :: Lens' ObjectsSetIAMPolicy (Maybe Int64) Source #
If present, selects a specific revision of this object (as opposed to the latest version, the default).