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