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 |
Returns metadata for the specified bucket.
See: Cloud Storage JSON API Reference for storage.buckets.get
.
- type BucketsGetResource = "storage" :> ("v1" :> ("b" :> (Capture "bucket" Text :> (QueryParam "ifMetagenerationMatch" (Textual Int64) :> (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
- 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 "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.
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.
bgBucket :: Lens' BucketsGet Text Source
Name of a bucket.
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.