gogol-redis-0.4.0: Google Cloud Memorystore for Redis 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.Redis.Projects.Locations.Instances.Create

Contents

Description

Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's default network. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

See: Google Cloud Memorystore for Redis API Reference for redis.projects.locations.instances.create.

Synopsis

REST Resource

type ProjectsLocationsInstancesCreateResource = "v1" :> (Capture "parent" Text :> ("instances" :> (QueryParam "instanceId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Post '[JSON] Operation)))))))))) Source #

A resource alias for redis.projects.locations.instances.create method which the ProjectsLocationsInstancesCreate request conforms to.

Creating a Request

data ProjectsLocationsInstancesCreate Source #

Creates a Redis instance based on the specified tier and memory size. By default, the instance is accessible from the project's default network. The creation is executed asynchronously and callers may check the returned operation to track its progress. Once the operation is completed the Redis instance will be fully functional. Completed longrunning.Operation will contain the new instance object in the response field. The returned operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.

See: projectsLocationsInstancesCreate smart constructor.

Instances
Eq ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

Data ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

Methods

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

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

toConstr :: ProjectsLocationsInstancesCreate -> Constr #

dataTypeOf :: ProjectsLocationsInstancesCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

Generic ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

Associated Types

type Rep ProjectsLocationsInstancesCreate :: Type -> Type #

GoogleRequest ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

type Rep ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

type Rep ProjectsLocationsInstancesCreate = D1 (MetaData "ProjectsLocationsInstancesCreate" "Network.Google.Resource.Redis.Projects.Locations.Instances.Create" "gogol-redis-0.4.0-JeQ7whRgDRe4ZrcQhhVPNa" False) (C1 (MetaCons "ProjectsLocationsInstancesCreate'" PrefixI True) (((S1 (MetaSel (Just "_plicParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_plicInstanceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plicXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plicUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plicAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plicUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plicPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Instance) :*: S1 (MetaSel (Just "_plicCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

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

Defined in Network.Google.Resource.Redis.Projects.Locations.Instances.Create

Request Lenses

plicParent :: Lens' ProjectsLocationsInstancesCreate Text Source #

Required. The resource name of the instance location using the form: `projects/{project_id}/locations/{location_id}` where `location_id` refers to a GCP region

plicInstanceId :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #

Required. The logical name of the Redis instance in the customer project with the following restrictions: * Must contain only lowercase letters, numbers, and hyphens. * Must start with a letter. * Must be between 1-40 characters. * Must end with a number or a letter. * Must be unique within the customer project / location

plicUploadProtocol :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

plicUploadType :: Lens' ProjectsLocationsInstancesCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").