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 |
Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.
See: Replica Pool API Reference for replicapool.pools.resize
.
Synopsis
- type PoolsResizeResource = "replicapool" :> ("v1beta1" :> ("projects" :> (Capture "projectName" Text :> ("zones" :> (Capture "zone" Text :> ("pools" :> (Capture "poolName" Text :> ("resize" :> (QueryParam "numReplicas" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] Pool))))))))))
- poolsResize :: Text -> Text -> Text -> PoolsResize
- data PoolsResize
- prNumReplicas :: Lens' PoolsResize (Maybe Int32)
- prPoolName :: Lens' PoolsResize Text
- prZone :: Lens' PoolsResize Text
- prProjectName :: Lens' PoolsResize Text
REST Resource
type PoolsResizeResource = "replicapool" :> ("v1beta1" :> ("projects" :> (Capture "projectName" Text :> ("zones" :> (Capture "zone" Text :> ("pools" :> (Capture "poolName" Text :> ("resize" :> (QueryParam "numReplicas" (Textual Int32) :> (QueryParam "alt" AltJSON :> Post '[JSON] Pool)))))))))) Source #
A resource alias for replicapool.pools.resize
method which the
PoolsResize
request conforms to.
Creating a Request
Creates a value of PoolsResize
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data PoolsResize Source #
Resize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last resize request.
See: poolsResize
smart constructor.
Instances
Request Lenses
prNumReplicas :: Lens' PoolsResize (Maybe Int32) Source #
The desired number of replicas to resize to. If this number is larger than the existing number of replicas, new replicas will be added. If the number is smaller, then existing replicas will be deleted.
prPoolName :: Lens' PoolsResize Text Source #
The name of the replica pool for this request.
prProjectName :: Lens' PoolsResize Text Source #
The project ID for this replica pool.