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.zones.clusters.create
.
Synopsis
- type ProjectsZonesClustersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("zones" :> (Capture "zone" 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))))))))))))
- projectsZonesClustersCreate :: Text -> CreateClusterRequest -> Text -> ProjectsZonesClustersCreate
- data ProjectsZonesClustersCreate
- pzccXgafv :: Lens' ProjectsZonesClustersCreate (Maybe Xgafv)
- pzccUploadProtocol :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccAccessToken :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccUploadType :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccZone :: Lens' ProjectsZonesClustersCreate Text
- pzccPayload :: Lens' ProjectsZonesClustersCreate CreateClusterRequest
- pzccProjectId :: Lens' ProjectsZonesClustersCreate Text
- pzccCallback :: Lens' ProjectsZonesClustersCreate (Maybe Text)
REST Resource
type ProjectsZonesClustersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("zones" :> (Capture "zone" 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.zones.clusters.create
method which the
ProjectsZonesClustersCreate
request conforms to.
Creating a Request
projectsZonesClustersCreate Source #
Creates a value of ProjectsZonesClustersCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsZonesClustersCreate 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: projectsZonesClustersCreate
smart constructor.
Instances
Request Lenses
pzccUploadProtocol :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pzccAccessToken :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
OAuth access token.
pzccUploadType :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pzccZone :: Lens' ProjectsZonesClustersCreate Text Source #
Deprecated. The name of the Google Compute Engine zone in which the cluster resides. This field has been deprecated and replaced by the parent field.
pzccPayload :: Lens' ProjectsZonesClustersCreate CreateClusterRequest Source #
Multipart request metadata.
pzccProjectId :: Lens' ProjectsZonesClustersCreate Text Source #
Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the parent field.
pzccCallback :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
JSONP