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.zones.clusters.setNetworkPolicy
.
Synopsis
- type ProjectsZonesClustersSetNetworkPolicyResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("zones" :> (Capture "zone" Text :> ("clusters" :> (CaptureMode "clusterId" "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)))))))))))))
- projectsZonesClustersSetNetworkPolicy :: Text -> SetNetworkPolicyRequest -> Text -> Text -> ProjectsZonesClustersSetNetworkPolicy
- data ProjectsZonesClustersSetNetworkPolicy
- pzcsnpXgafv :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Xgafv)
- pzcsnpUploadProtocol :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text)
- pzcsnpAccessToken :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text)
- pzcsnpUploadType :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text)
- pzcsnpZone :: Lens' ProjectsZonesClustersSetNetworkPolicy Text
- pzcsnpPayload :: Lens' ProjectsZonesClustersSetNetworkPolicy SetNetworkPolicyRequest
- pzcsnpClusterId :: Lens' ProjectsZonesClustersSetNetworkPolicy Text
- pzcsnpProjectId :: Lens' ProjectsZonesClustersSetNetworkPolicy Text
- pzcsnpCallback :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text)
REST Resource
type ProjectsZonesClustersSetNetworkPolicyResource = "v1" :> ("projects" :> (Capture "projectId" Text :> ("zones" :> (Capture "zone" Text :> ("clusters" :> (CaptureMode "clusterId" "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.zones.clusters.setNetworkPolicy
method which the
ProjectsZonesClustersSetNetworkPolicy
request conforms to.
Creating a Request
projectsZonesClustersSetNetworkPolicy Source #
Creates a value of ProjectsZonesClustersSetNetworkPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsZonesClustersSetNetworkPolicy Source #
Enables/Disables Network Policy for a cluster.
See: projectsZonesClustersSetNetworkPolicy
smart constructor.
Instances
Request Lenses
pzcsnpXgafv :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Xgafv) Source #
V1 error format.
pzcsnpUploadProtocol :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pzcsnpAccessToken :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text) Source #
OAuth access token.
pzcsnpUploadType :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pzcsnpZone :: Lens' ProjectsZonesClustersSetNetworkPolicy 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 name field.
pzcsnpPayload :: Lens' ProjectsZonesClustersSetNetworkPolicy SetNetworkPolicyRequest Source #
Multipart request metadata.
pzcsnpClusterId :: Lens' ProjectsZonesClustersSetNetworkPolicy Text Source #
Deprecated. The name of the cluster. This field has been deprecated and replaced by the name field.
pzcsnpProjectId :: Lens' ProjectsZonesClustersSetNetworkPolicy Text Source #
Deprecated. The Google Developers Console project ID or project number. This field has been deprecated and replaced by the name field.