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 |
Adds new Autoscaler resource.
See: Google Compute Engine Autoscaler API Reference for autoscaler.autoscalers.insert
.
- type AutoscalersInsertResource = "autoscaler" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("autoscalers" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Autoscaler :> Post `[JSON]` Operation))))))))
- autoscalersInsert :: Text -> Text -> Autoscaler -> AutoscalersInsert
- data AutoscalersInsert
- aiProject :: Lens' AutoscalersInsert Text
- aiZone :: Lens' AutoscalersInsert Text
- aiPayload :: Lens' AutoscalersInsert Autoscaler
REST Resource
type AutoscalersInsertResource = "autoscaler" :> ("v1beta2" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("autoscalers" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Autoscaler :> Post `[JSON]` Operation)))))))) Source
A resource alias for autoscaler.autoscalers.insert
method which the
AutoscalersInsert
request conforms to.
Creating a Request
Creates a value of AutoscalersInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AutoscalersInsert Source
Adds new Autoscaler resource.
See: autoscalersInsert
smart constructor.
Request Lenses
aiProject :: Lens' AutoscalersInsert Text Source
Project ID of Autoscaler resource.
aiZone :: Lens' AutoscalersInsert Text Source
Zone name of Autoscaler resource.
aiPayload :: Lens' AutoscalersInsert Autoscaler Source
Multipart request metadata.