| 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.ReplicaPool.Pools.Insert
Description
Inserts a new replica pool.
See: Replica Pool API Reference for replicapool.pools.insert.
Synopsis
- type PoolsInsertResource = "replicapool" :> ("v1beta1" :> ("projects" :> (Capture "projectName" Text :> ("zones" :> (Capture "zone" Text :> ("pools" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Pool :> Post '[JSON] Pool))))))))
- poolsInsert :: Text -> Pool -> Text -> PoolsInsert
- data PoolsInsert
- piZone :: Lens' PoolsInsert Text
- piPayload :: Lens' PoolsInsert Pool
- piProjectName :: Lens' PoolsInsert Text
REST Resource
type PoolsInsertResource = "replicapool" :> ("v1beta1" :> ("projects" :> (Capture "projectName" Text :> ("zones" :> (Capture "zone" Text :> ("pools" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Pool :> Post '[JSON] Pool)))))))) Source #
A resource alias for replicapool.pools.insert method which the
PoolsInsert request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> Pool | |
| -> Text | |
| -> PoolsInsert |
Creates a value of PoolsInsert with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PoolsInsert Source #
Inserts a new replica pool.
See: poolsInsert smart constructor.
Instances
Request Lenses
piProjectName :: Lens' PoolsInsert Text Source #
The project ID for this replica pool.