Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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)))))))))
- projectsLocationsClustersCreate :: Text -> CreateClusterRequest -> ProjectsLocationsClustersCreate
- data ProjectsLocationsClustersCreate
- plccParent :: Lens' ProjectsLocationsClustersCreate Text
- plccXgafv :: Lens' ProjectsLocationsClustersCreate (Maybe Xgafv)
- plccUploadProtocol :: Lens' ProjectsLocationsClustersCreate (Maybe Text)
- plccAccessToken :: Lens' ProjectsLocationsClustersCreate (Maybe Text)
- plccUploadType :: Lens' ProjectsLocationsClustersCreate (Maybe Text)
- plccPayload :: Lens' ProjectsLocationsClustersCreate CreateClusterRequest
- plccCallback :: Lens' ProjectsLocationsClustersCreate (Maybe Text)
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
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").
plccAccessToken :: Lens' ProjectsLocationsClustersCreate (Maybe Text) Source #
OAuth access token.
plccUploadType :: Lens' ProjectsLocationsClustersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plccPayload :: Lens' ProjectsLocationsClustersCreate CreateClusterRequest Source #
Multipart request metadata.
plccCallback :: Lens' ProjectsLocationsClustersCreate (Maybe Text) Source #
JSONP