gogol-compute-0.1.0: Google Compute Engine SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Compute.Instances.SetMachineType

Contents

Description

Changes the machine type for a stopped instance to the machine type specified in the request.

See: Compute Engine API Reference for compute.instances.setMachineType.

Synopsis

REST Resource

type InstancesSetMachineTypeResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("setMachineType" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] InstancesSetMachineTypeRequest :> Post '[JSON] Operation)))))))))) Source #

A resource alias for compute.instances.setMachineType method which the InstancesSetMachineType request conforms to.

Creating a Request

instancesSetMachineType Source #

Creates a value of InstancesSetMachineType with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data InstancesSetMachineType Source #

Changes the machine type for a stopped instance to the machine type specified in the request.

See: instancesSetMachineType smart constructor.

Instances

Eq InstancesSetMachineType Source # 
Data InstancesSetMachineType Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> InstancesSetMachineType -> c InstancesSetMachineType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c InstancesSetMachineType #

toConstr :: InstancesSetMachineType -> Constr #

dataTypeOf :: InstancesSetMachineType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c InstancesSetMachineType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c InstancesSetMachineType) #

gmapT :: (forall b. Data b => b -> b) -> InstancesSetMachineType -> InstancesSetMachineType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> InstancesSetMachineType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> InstancesSetMachineType -> r #

gmapQ :: (forall d. Data d => d -> u) -> InstancesSetMachineType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> InstancesSetMachineType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> InstancesSetMachineType -> m InstancesSetMachineType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> InstancesSetMachineType -> m InstancesSetMachineType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> InstancesSetMachineType -> m InstancesSetMachineType #

Show InstancesSetMachineType Source # 
Generic InstancesSetMachineType Source # 
GoogleRequest InstancesSetMachineType Source # 
type Rep InstancesSetMachineType Source # 
type Rep InstancesSetMachineType = D1 (MetaData "InstancesSetMachineType" "Network.Google.Resource.Compute.Instances.SetMachineType" "gogol-compute-0.1.0-Fd4nHFZ7jFE8hoV8Pam8UC" False) (C1 (MetaCons "InstancesSetMachineType'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_ismtProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ismtZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_ismtPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 InstancesSetMachineTypeRequest)) (S1 (MetaSel (Just Symbol "_ismtInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesSetMachineType Source # 
type Scopes InstancesSetMachineType = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/compute" ([] Symbol))
type Rs InstancesSetMachineType Source # 

Request Lenses

ismtProject :: Lens' InstancesSetMachineType Text Source #

Project ID for this request.

ismtZone :: Lens' InstancesSetMachineType Text Source #

The name of the zone for this request.

ismtInstance :: Lens' InstancesSetMachineType Text Source #

Name of the instance scoping this request.