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