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.Patch

Contents

Description

Updates the metadata and configuration of a specific Redis instance. 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.patch.

Synopsis

REST Resource

type ProjectsLocationsInstancesPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "updateMask" GFieldMask :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Instance :> Patch '[JSON] Operation))))))))) Source #

A resource alias for redis.projects.locations.instances.patch method which the ProjectsLocationsInstancesPatch request conforms to.

Creating a Request

projectsLocationsInstancesPatch Source #

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

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

data ProjectsLocationsInstancesPatch Source #

Updates the metadata and configuration of a specific Redis instance. 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: projectsLocationsInstancesPatch smart constructor.

Instances
Eq ProjectsLocationsInstancesPatch Source # 
Instance details

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

Data ProjectsLocationsInstancesPatch Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsLocationsInstancesPatch -> Constr #

dataTypeOf :: ProjectsLocationsInstancesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsInstancesPatch Source # 
Instance details

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

Generic ProjectsLocationsInstancesPatch Source # 
Instance details

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

Associated Types

type Rep ProjectsLocationsInstancesPatch :: Type -> Type #

GoogleRequest ProjectsLocationsInstancesPatch Source # 
Instance details

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

type Rep ProjectsLocationsInstancesPatch Source # 
Instance details

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

type Rep ProjectsLocationsInstancesPatch = D1 (MetaData "ProjectsLocationsInstancesPatch" "Network.Google.Resource.Redis.Projects.Locations.Instances.Patch" "gogol-redis-0.4.0-JeQ7whRgDRe4ZrcQhhVPNa" False) (C1 (MetaCons "ProjectsLocationsInstancesPatch'" PrefixI True) (((S1 (MetaSel (Just "_plipXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plipUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plipUpdateMask") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe GFieldMask)) :*: S1 (MetaSel (Just "_plipAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plipUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plipPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Instance)) :*: (S1 (MetaSel (Just "_plipName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_plipCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsInstancesPatch Source # 
Instance details

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

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

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

Request Lenses

plipUploadProtocol :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #

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

plipUpdateMask :: Lens' ProjectsLocationsInstancesPatch (Maybe GFieldMask) Source #

Required. Mask of fields to update. At least one path must be supplied in this field. The elements of the repeated paths field may only include these fields from Instance: * `displayName` * `labels` * `memorySizeGb` * `redisConfig`

plipUploadType :: Lens' ProjectsLocationsInstancesPatch (Maybe Text) Source #

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

plipName :: Lens' ProjectsLocationsInstancesPatch Text Source #

Required. Unique name of the resource in this scope including project and location using the form: `projects/{project_id}/locations/{location_id}/instances/{instance_id}` Note: Redis instances are managed and addressed at regional level so location_id here refers to a GCP region; however, users may choose which specific zone (or collection of zones for cross-zone instances) an instance should be provisioned in. Refer to [location_id] and [alternative_location_id] fields for more details.