gogol-container-0.4.0: Google Kubernetes Engine SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

Contents

Description

Enables/Disables Network Policy for a cluster.

See: Kubernetes Engine API Reference for container.projects.zones.clusters.setNetworkPolicy.

Synopsis

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

data ProjectsZonesClustersSetNetworkPolicy Source #

Enables/Disables Network Policy for a cluster.

See: projectsZonesClustersSetNetworkPolicy smart constructor.

Instances
Eq ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

Data ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ProjectsZonesClustersSetNetworkPolicy -> c ProjectsZonesClustersSetNetworkPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ProjectsZonesClustersSetNetworkPolicy #

toConstr :: ProjectsZonesClustersSetNetworkPolicy -> Constr #

dataTypeOf :: ProjectsZonesClustersSetNetworkPolicy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c ProjectsZonesClustersSetNetworkPolicy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ProjectsZonesClustersSetNetworkPolicy) #

gmapT :: (forall b. Data b => b -> b) -> ProjectsZonesClustersSetNetworkPolicy -> ProjectsZonesClustersSetNetworkPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsZonesClustersSetNetworkPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ProjectsZonesClustersSetNetworkPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> ProjectsZonesClustersSetNetworkPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ProjectsZonesClustersSetNetworkPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ProjectsZonesClustersSetNetworkPolicy -> m ProjectsZonesClustersSetNetworkPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsZonesClustersSetNetworkPolicy -> m ProjectsZonesClustersSetNetworkPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ProjectsZonesClustersSetNetworkPolicy -> m ProjectsZonesClustersSetNetworkPolicy #

Show ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

Generic ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

GoogleRequest ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

type Rep ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

type Rep ProjectsZonesClustersSetNetworkPolicy = D1 (MetaData "ProjectsZonesClustersSetNetworkPolicy" "Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy" "gogol-container-0.4.0-7fMnJsS36zkISd1JtwIvdQ" False) (C1 (MetaCons "ProjectsZonesClustersSetNetworkPolicy'" PrefixI True) (((S1 (MetaSel (Just "_pzcsnpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pzcsnpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pzcsnpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pzcsnpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pzcsnpZone") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pzcsnpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetNetworkPolicyRequest)) :*: (S1 (MetaSel (Just "_pzcsnpClusterId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pzcsnpProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pzcsnpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

type Scopes ProjectsZonesClustersSetNetworkPolicy = "https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol])
type Rs ProjectsZonesClustersSetNetworkPolicy Source # 
Instance details

Defined in Network.Google.Resource.Container.Projects.Zones.Clusters.SetNetworkPolicy

Request Lenses

pzcsnpUploadProtocol :: Lens' ProjectsZonesClustersSetNetworkPolicy (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

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.

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.