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.Locations.Clusters.SetNetworkPolicy

Contents

Description

Enables/Disables Network Policy for a cluster.

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

Synopsis

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

data ProjectsLocationsClustersSetNetworkPolicy Source #

Enables/Disables Network Policy for a cluster.

See: projectsLocationsClustersSetNetworkPolicy smart constructor.

Instances
Eq ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

Data ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

Methods

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

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

toConstr :: ProjectsLocationsClustersSetNetworkPolicy -> Constr #

dataTypeOf :: ProjectsLocationsClustersSetNetworkPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

Generic ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

GoogleRequest ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

type Rep ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

type Rep ProjectsLocationsClustersSetNetworkPolicy = D1 (MetaData "ProjectsLocationsClustersSetNetworkPolicy" "Network.Google.Resource.Container.Projects.Locations.Clusters.SetNetworkPolicy" "gogol-container-0.4.0-7fMnJsS36zkISd1JtwIvdQ" False) (C1 (MetaCons "ProjectsLocationsClustersSetNetworkPolicy'" PrefixI True) ((S1 (MetaSel (Just "_plcsnpXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_plcsnpUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plcsnpAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_plcsnpUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_plcsnpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SetNetworkPolicyRequest)) :*: (S1 (MetaSel (Just "_plcsnpName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_plcsnpCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsLocationsClustersSetNetworkPolicy Source # 
Instance details

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

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

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

Request Lenses

plcsnpUploadProtocol :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text) Source #

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

plcsnpUploadType :: Lens' ProjectsLocationsClustersSetNetworkPolicy (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

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/*'.