gogol-file-0.4.0: Google Cloud Filestore 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.File.Projects.Locations.Instances.Create

Contents

Description

Creates an instance.

See: Cloud Filestore API Reference for file.projects.locations.instances.create.

Synopsis

REST Resource

type ProjectsLocationsInstancesCreateResource = "v1beta1" :> (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 file.projects.locations.instances.create method which the ProjectsLocationsInstancesCreate request conforms to.

Creating a Request

data ProjectsLocationsInstancesCreate Source #

Creates an instance.

See: projectsLocationsInstancesCreate smart constructor.

Instances
Eq ProjectsLocationsInstancesCreate Source # 
Instance details

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

Data ProjectsLocationsInstancesCreate Source # 
Instance details

Defined in Network.Google.Resource.File.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.File.Projects.Locations.Instances.Create

Generic ProjectsLocationsInstancesCreate Source # 
Instance details

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

Associated Types

type Rep ProjectsLocationsInstancesCreate :: Type -> Type #

GoogleRequest ProjectsLocationsInstancesCreate Source # 
Instance details

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

type Rep ProjectsLocationsInstancesCreate Source # 
Instance details

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

type Rep ProjectsLocationsInstancesCreate = D1 (MetaData "ProjectsLocationsInstancesCreate" "Network.Google.Resource.File.Projects.Locations.Instances.Create" "gogol-file-0.4.0-9fk2PL5JEmGAVGvmRg4nZ" 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.File.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.File.Projects.Locations.Instances.Create

Request Lenses

plicParent :: Lens' ProjectsLocationsInstancesCreate Text Source #

The instance's project and location, in the format projects/{project_id}/locations/{location}. In Cloud Filestore, locations map to GCP zones, for example **us-west1-b**.

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

The name of the instance to create. The name must be unique for the specified project and 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").