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 |
Sets labels on a cluster.
See: Kubernetes Engine API Reference for container.projects.locations.clusters.setResourceLabels
.
Synopsis
- type ProjectsLocationsClustersSetResourceLabelsResource = "v1" :> (CaptureMode "name" "setResourceLabels" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetLabelsRequest :> Post '[JSON] Operation))))))))
- projectsLocationsClustersSetResourceLabels :: SetLabelsRequest -> Text -> ProjectsLocationsClustersSetResourceLabels
- data ProjectsLocationsClustersSetResourceLabels
- plcsrlXgafv :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Xgafv)
- plcsrlUploadProtocol :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
- plcsrlAccessToken :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
- plcsrlUploadType :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
- plcsrlPayload :: Lens' ProjectsLocationsClustersSetResourceLabels SetLabelsRequest
- plcsrlName :: Lens' ProjectsLocationsClustersSetResourceLabels Text
- plcsrlCallback :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text)
REST Resource
type ProjectsLocationsClustersSetResourceLabelsResource = "v1" :> (CaptureMode "name" "setResourceLabels" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetLabelsRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for container.projects.locations.clusters.setResourceLabels
method which the
ProjectsLocationsClustersSetResourceLabels
request conforms to.
Creating a Request
projectsLocationsClustersSetResourceLabels Source #
Creates a value of ProjectsLocationsClustersSetResourceLabels
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsClustersSetResourceLabels Source #
Sets labels on a cluster.
See: projectsLocationsClustersSetResourceLabels
smart constructor.
Instances
Request Lenses
plcsrlXgafv :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Xgafv) Source #
V1 error format.
plcsrlUploadProtocol :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plcsrlAccessToken :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text) Source #
OAuth access token.
plcsrlUploadType :: Lens' ProjectsLocationsClustersSetResourceLabels (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plcsrlPayload :: Lens' ProjectsLocationsClustersSetResourceLabels SetLabelsRequest Source #
Multipart request metadata.
plcsrlName :: Lens' ProjectsLocationsClustersSetResourceLabels Text Source #
The name (project, location, cluster id) of the cluster to set labels. Specified in the format 'projects/*/locations/*/clusters/*'.