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.Licenses.Insert

Contents

Description

Create a License resource in the specified project.

See: Compute Engine API Reference for compute.licenses.insert.

Synopsis

REST Resource

type LicensesInsertResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("licenses" :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] License :> Post '[JSON] Operation)))))))) Source #

A resource alias for compute.licenses.insert method which the LicensesInsert request conforms to.

Creating a Request

licensesInsert Source #

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

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

data LicensesInsert Source #

Create a License resource in the specified project.

See: licensesInsert smart constructor.

Instances
Eq LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

Data LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

Methods

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

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

toConstr :: LicensesInsert -> Constr #

dataTypeOf :: LicensesInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

Generic LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

Associated Types

type Rep LicensesInsert :: Type -> Type #

GoogleRequest LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

Associated Types

type Rs LicensesInsert :: Type #

type Scopes LicensesInsert :: [Symbol] #

type Rep LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

type Rep LicensesInsert = D1 (MetaData "LicensesInsert" "Network.Google.Resource.Compute.Licenses.Insert" "gogol-compute-0.4.0-3Vo4S3NyrNeJWlNkflB3dZ" False) (C1 (MetaCons "LicensesInsert'" PrefixI True) (S1 (MetaSel (Just "_liRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_liProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_liPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 License))))
type Scopes LicensesInsert Source # 
Instance details

Defined in Network.Google.Resource.Compute.Licenses.Insert

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

Defined in Network.Google.Resource.Compute.Licenses.Insert

Request Lenses

liRequestId :: Lens' LicensesInsert (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).

liProject :: Lens' LicensesInsert Text Source #

Project ID for this request.

liPayload :: Lens' LicensesInsert License Source #

Multipart request metadata.