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 |
Enables/Disables Network Policy for a cluster.
See: Kubernetes Engine API Reference for container.projects.locations.clusters.setNetworkPolicy
.
Synopsis
- type ProjectsLocationsClustersSetNetworkPolicyResource = "v1" :> (CaptureMode "name" "setNetworkPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetNetworkPolicyRequest :> Post '[JSON] Operation))))))))
- projectsLocationsClustersSetNetworkPolicy :: SetNetworkPolicyRequest -> Text -> ProjectsLocationsClustersSetNetworkPolicy
- data ProjectsLocationsClustersSetNetworkPolicy
- plcsnpXgafv :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Xgafv)
- plcsnpUploadProtocol :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text)
- plcsnpAccessToken :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text)
- plcsnpUploadType :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text)
- plcsnpPayload :: Lens' ProjectsLocationsClustersSetNetworkPolicy SetNetworkPolicyRequest
- plcsnpName :: Lens' ProjectsLocationsClustersSetNetworkPolicy Text
- plcsnpCallback :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text)
REST Resource
type ProjectsLocationsClustersSetNetworkPolicyResource = "v1" :> (CaptureMode "name" "setNetworkPolicy" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] SetNetworkPolicyRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for container.projects.locations.clusters.setNetworkPolicy
method which the
ProjectsLocationsClustersSetNetworkPolicy
request conforms to.
Creating a Request
projectsLocationsClustersSetNetworkPolicy Source #
Creates a value of ProjectsLocationsClustersSetNetworkPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsLocationsClustersSetNetworkPolicy Source #
Enables/Disables Network Policy for a cluster.
See: projectsLocationsClustersSetNetworkPolicy
smart constructor.
Instances
Request Lenses
plcsnpXgafv :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Xgafv) Source #
V1 error format.
plcsnpUploadProtocol :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
plcsnpAccessToken :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text) Source #
OAuth access token.
plcsnpUploadType :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
plcsnpPayload :: Lens' ProjectsLocationsClustersSetNetworkPolicy SetNetworkPolicyRequest Source #
Multipart request metadata.
plcsnpName :: Lens' ProjectsLocationsClustersSetNetworkPolicy Text Source #
The name (project, location, cluster id) of the cluster to set networking policy. Specified in the format 'projects/*/locations/*/clusters/*'.