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 |
Returns metadata for the specified bucket.
See: Cloud Storage JSON API Reference for storage.buckets.get
.
Synopsis
- type BucketsGetResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] Bucket))))))))
- bucketsGet :: Text -> BucketsGet
- data BucketsGet
- bgIfMetagenerationMatch :: Lens' BucketsGet (Maybe Int64)
- bgBucket :: Lens' BucketsGet Text
- bgUserProject :: Lens' BucketsGet (Maybe Text)
- bgIfMetagenerationNotMatch :: Lens' BucketsGet (Maybe Int64)
- bgProjection :: Lens' BucketsGet (Maybe BucketsGetProjection)
REST Resource
type BucketsGetResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (QueryParam "userProject" Text :> (QueryParam "ifMetagenerationNotMatch" (Textual Int64) :> (QueryParam "projection" BucketsGetProjection :> (QueryParam "alt" AltJSON :> Get '[JSON] Bucket)))))))) Source #
A resource alias for storage.buckets.get
method which the
BucketsGet
request conforms to.
Creating a Request
:: Text | |
-> BucketsGet |
Creates a value of BucketsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsGet Source #
Returns metadata for the specified bucket.
See: bucketsGet
smart constructor.
Instances
Request Lenses
bgIfMetagenerationMatch :: Lens' BucketsGet (Maybe Int64) Source #
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
bgUserProject :: Lens' BucketsGet (Maybe Text) Source #
The project to be billed for this request. Required for Requester Pays buckets.
bgIfMetagenerationNotMatch :: Lens' BucketsGet (Maybe Int64) Source #
Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
bgProjection :: Lens' BucketsGet (Maybe BucketsGetProjection) Source #
Set of properties to return. Defaults to noAcl.