gogol-compute-0.4.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.AddAccessConfig

Contents

Description

Adds an access config to an instance's network interface.

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

Synopsis

REST Resource

type InstancesAddAccessConfigResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("zones" :> (Capture "zone" Text :> ("instances" :> (Capture "instance" Text :> ("addAccessConfig" :> (QueryParam "networkInterface" Text :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AccessConfig :> Post '[JSON] Operation)))))))))))) Source #

A resource alias for compute.instances.addAccessConfig method which the InstancesAddAccessConfig request conforms to.

Creating a Request

instancesAddAccessConfig Source #

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

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

data InstancesAddAccessConfig Source #

Adds an access config to an instance's network interface.

See: instancesAddAccessConfig smart constructor.

Instances
Eq InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

Data InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

Methods

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

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

toConstr :: InstancesAddAccessConfig -> Constr #

dataTypeOf :: InstancesAddAccessConfig -> DataType #

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

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

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

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

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

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

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

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

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

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

Show InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

Generic InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

Associated Types

type Rep InstancesAddAccessConfig :: Type -> Type #

GoogleRequest InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

type Rep InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

type Rep InstancesAddAccessConfig = D1 (MetaData "InstancesAddAccessConfig" "Network.Google.Resource.Compute.Instances.AddAccessConfig" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "InstancesAddAccessConfig'" PrefixI True) ((S1 (MetaSel (Just "_iaacRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_iaacProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_iaacNetworkInterface") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: (S1 (MetaSel (Just "_iaacZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_iaacPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AccessConfig) :*: S1 (MetaSel (Just "_iaacInstance") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

type Scopes InstancesAddAccessConfig = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/compute" ': ([] :: [Symbol]))
type Rs InstancesAddAccessConfig Source # 
Instance details

Defined in Network.Google.Resource.Compute.Instances.AddAccessConfig

Request Lenses

iaacRequestId :: Lens' InstancesAddAccessConfig (Maybe Text) Source #

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

iaacProject :: Lens' InstancesAddAccessConfig Text Source #

Project ID for this request.

iaacNetworkInterface :: Lens' InstancesAddAccessConfig Text Source #

The name of the network interface to add to this instance.

iaacZone :: Lens' InstancesAddAccessConfig Text Source #

The name of the zone for this request.

iaacInstance :: Lens' InstancesAddAccessConfig Text Source #

The instance name for this request.