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 |
Creates a new bucket.
See: Cloud Storage JSON API Reference for storage.buckets.insert
.
Synopsis
- type BucketsInsertResource = "storage" :> ("v1" :> ("b" :> (QueryParam "project" Text :> (QueryParam "predefinedAcl" BucketsInsertPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsInsertPredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (QueryParam "projection" BucketsInsertProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Post '[JSON] Bucket)))))))))
- bucketsInsert :: Text -> Bucket -> BucketsInsert
- data BucketsInsert
- biProject :: Lens' BucketsInsert Text
- biPredefinedACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedACL)
- biPayload :: Lens' BucketsInsert Bucket
- biPredefinedDefaultObjectACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedDefaultObjectACL)
- biUserProject :: Lens' BucketsInsert (Maybe Text)
- biProjection :: Lens' BucketsInsert (Maybe BucketsInsertProjection)
REST Resource
type BucketsInsertResource = "storage" :> ("v1" :> ("b" :> (QueryParam "project" Text :> (QueryParam "predefinedAcl" BucketsInsertPredefinedACL :> (QueryParam "predefinedDefaultObjectAcl" BucketsInsertPredefinedDefaultObjectACL :> (QueryParam "userProject" Text :> (QueryParam "projection" BucketsInsertProjection :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Bucket :> Post '[JSON] Bucket))))))))) Source #
A resource alias for storage.buckets.insert
method which the
BucketsInsert
request conforms to.
Creating a Request
Creates a value of BucketsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BucketsInsert Source #
Creates a new bucket.
See: bucketsInsert
smart constructor.
Instances
Request Lenses
biPredefinedACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedACL) Source #
Apply a predefined set of access controls to this bucket.
biPredefinedDefaultObjectACL :: Lens' BucketsInsert (Maybe BucketsInsertPredefinedDefaultObjectACL) Source #
Apply a predefined set of default object access controls to this bucket.
biUserProject :: Lens' BucketsInsert (Maybe Text) Source #
The project to be billed for this request.
biProjection :: Lens' BucketsInsert (Maybe BucketsInsertProjection) Source #
Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.