| 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 |
Network.Google.Resource.DNS.ManagedZones.Create
Description
Create a new ManagedZone.
See: Google Cloud DNS API Reference for dns.managedZones.create.
- type ManagedZonesCreateResource = "dns" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("managedZones" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` ManagedZone :> Post `[JSON]` ManagedZone))))))
- managedZonesCreate :: Text -> ManagedZone -> ManagedZonesCreate
- data ManagedZonesCreate
- mzcProject :: Lens' ManagedZonesCreate Text
- mzcPayload :: Lens' ManagedZonesCreate ManagedZone
REST Resource
type ManagedZonesCreateResource = "dns" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("managedZones" :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` ManagedZone :> Post `[JSON]` ManagedZone)))))) Source
A resource alias for dns.managedZones.create method which the
ManagedZonesCreate request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> ManagedZone | |
| -> ManagedZonesCreate |
Creates a value of ManagedZonesCreate with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ManagedZonesCreate Source
Create a new ManagedZone.
See: managedZonesCreate smart constructor.
Request Lenses
mzcProject :: Lens' ManagedZonesCreate Text Source
Identifies the project addressed by this request.
mzcPayload :: Lens' ManagedZonesCreate ManagedZone Source
Multipart request metadata.