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 |
Retrieves a list of buckets for a given project.
See: Cloud Storage JSON API Reference for storage.buckets.list
.
Synopsis
- type BucketsListResource = "storage" :> ("v1" :> ("b" :> (QueryParam "project" Text :> (QueryParam "prefix" Text :> (QueryParam "userProject" Text :> (QueryParam "projection" BucketsListProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Buckets)))))))))
- bucketsList :: Text -> BucketsList
- data BucketsList
- blProject :: Lens' BucketsList Text
- blPrefix :: Lens' BucketsList (Maybe Text)
- blUserProject :: Lens' BucketsList (Maybe Text)
- blProjection :: Lens' BucketsList (Maybe BucketsListProjection)
- blPageToken :: Lens' BucketsList (Maybe Text)
- blMaxResults :: Lens' BucketsList Word32
REST Resource
type BucketsListResource = "storage" :> ("v1" :> ("b" :> (QueryParam "project" Text :> (QueryParam "prefix" Text :> (QueryParam "userProject" Text :> (QueryParam "projection" BucketsListProjection :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Buckets))))))))) Source #
A resource alias for storage.buckets.list
method which the
BucketsList
request conforms to.
Creating a Request
:: Text | |
-> BucketsList |
Creates a value of BucketsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsList Source #
Retrieves a list of buckets for a given project.
See: bucketsList
smart constructor.
Instances
Request Lenses
blPrefix :: Lens' BucketsList (Maybe Text) Source #
Filter results to buckets whose names begin with this prefix.
blUserProject :: Lens' BucketsList (Maybe Text) Source #
The project to be billed for this request.
blProjection :: Lens' BucketsList (Maybe BucketsListProjection) Source #
Set of properties to return. Defaults to noAcl.
blPageToken :: Lens' BucketsList (Maybe Text) Source #
A previously-returned page token representing part of the larger set of results to view.
blMaxResults :: Lens' BucketsList Word32 Source #
Maximum number of buckets to return in a single response. The service will use this parameter or 1,000 items, whichever is smaller.