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: Google Container Engine API Reference for container.projects.zones.clusters.create
.
- type ProjectsZonesClustersCreateResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("zones" :> (Capture "zone" Text :> ("clusters" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateClusterRequest :> Post '[JSON] Operation))))))))))))))
- projectsZonesClustersCreate :: Text -> CreateClusterRequest -> Text -> ProjectsZonesClustersCreate
- data ProjectsZonesClustersCreate
- pzccXgafv :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccUploadProtocol :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccPp :: Lens' ProjectsZonesClustersCreate Bool
- pzccAccessToken :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccUploadType :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- pzccZone :: Lens' ProjectsZonesClustersCreate Text
- pzccPayload :: Lens' ProjectsZonesClustersCreate CreateClusterRequest
- pzccBearerToken :: Lens' ProjectsZonesClustersCreate (Maybe Text)
- 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" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" 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.
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 #
The name of the Google Compute Engine zone in which the cluster resides.
pzccPayload :: Lens' ProjectsZonesClustersCreate CreateClusterRequest Source #
Multipart request metadata.
pzccBearerToken :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
OAuth bearer token.
pzccProjectId :: Lens' ProjectsZonesClustersCreate Text Source #
The Google Developers Console project ID or project number.
pzccCallback :: Lens' ProjectsZonesClustersCreate (Maybe Text) Source #
JSONP