gogol-container-0.4.0: Google Kubernetes 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.Container.Projects.Locations.Clusters.Create

Contents

Description

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the cluster creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range is being used by the cluster.

See: Kubernetes Engine API Reference for container.projects.locations.clusters.create.

Synopsis

REST Resource

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

A resource alias for container.projects.locations.clusters.create method which the ProjectsLocationsClustersCreate request conforms to.

Creating a Request

projectsLocationsClustersCreate Source #

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

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

data ProjectsLocationsClustersCreate Source #

Creates a cluster, consisting of the specified number and type of Google Compute Engine instances. By default, the cluster is created in the project's default network. One firewall is added for the cluster. After cluster creation, the cluster creates routes for each node to allow the containers on that node to communicate with all other instances in the cluster. Finally, an entry is added to the project's global metadata indicating which CIDR range is being used by the cluster.

See: projectsLocationsClustersCreate smart constructor.

Instances
Eq ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

Data ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

Methods

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

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

toConstr :: ProjectsLocationsClustersCreate -> Constr #

dataTypeOf :: ProjectsLocationsClustersCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

Generic ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

Associated Types

type Rep ProjectsLocationsClustersCreate :: Type -> Type #

GoogleRequest ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

type Rep ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

type Rep ProjectsLocationsClustersCreate = D1 (MetaData "ProjectsLocationsClustersCreate" "Network.Google.Resource.Container.Projects.Locations.Clusters.Create" "gogol-container-0.4.0-7fMnJsS36zkISd1JtwIvdQ" False) (C1 (MetaCons "ProjectsLocationsClustersCreate'" PrefixI True) ((S1 (MetaSel (Just "_plccParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_plccXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_plccUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plccAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plccUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_plccPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateClusterRequest) :*: S1 (MetaSel (Just "_plccCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsClustersCreate Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

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

Defined in Network.Google.Resource.Container.Projects.Locations.Clusters.Create

Request Lenses

plccParent :: Lens' ProjectsLocationsClustersCreate Text Source #

The parent (project and location) where the cluster will be created. Specified in the format 'projects/*/locations/*'.

plccUploadProtocol :: Lens' ProjectsLocationsClustersCreate (Maybe Text) Source #

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

plccUploadType :: Lens' ProjectsLocationsClustersCreate (Maybe Text) Source #

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