gogol-compute-0.5.0: Google Compute 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.Compute.Firewalls.Update

Contents

Description

Updates the specified firewall rule with the data included in the request. The PUT method can only update the following fields of firewall rule: allowed, description, sourceRanges, sourceTags, targetTags.

See: Compute Engine API Reference for compute.firewalls.update.

Synopsis

REST Resource

type FirewallsUpdateResource = "compute" :> ("v1" :> ("projects" :> (Capture "project" Text :> ("global" :> ("firewalls" :> (Capture "firewall" Text :> (QueryParam "requestId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Firewall :> Put '[JSON] Operation))))))))) Source #

A resource alias for compute.firewalls.update method which the FirewallsUpdate request conforms to.

Creating a Request

firewallsUpdate Source #

Creates a value of FirewallsUpdate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data FirewallsUpdate Source #

Updates the specified firewall rule with the data included in the request. The PUT method can only update the following fields of firewall rule: allowed, description, sourceRanges, sourceTags, targetTags.

See: firewallsUpdate smart constructor.

Instances
Eq FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

Data FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

Methods

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

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

toConstr :: FirewallsUpdate -> Constr #

dataTypeOf :: FirewallsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

Generic FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

Associated Types

type Rep FirewallsUpdate :: Type -> Type #

GoogleRequest FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

Associated Types

type Rs FirewallsUpdate :: Type #

type Scopes FirewallsUpdate :: [Symbol] #

type Rep FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

type Rep FirewallsUpdate = D1 (MetaData "FirewallsUpdate" "Network.Google.Resource.Compute.Firewalls.Update" "gogol-compute-0.5.0-COFx0B1aAnaBzgHFC8Y2g1" False) (C1 (MetaCons "FirewallsUpdate'" PrefixI True) ((S1 (MetaSel (Just "_fuRequestId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_fuProject") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_fuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Firewall) :*: S1 (MetaSel (Just "_fuFirewall") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes FirewallsUpdate Source # 
Instance details

Defined in Network.Google.Resource.Compute.Firewalls.Update

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

Defined in Network.Google.Resource.Compute.Firewalls.Update

Request Lenses

fuRequestId :: Lens' FirewallsUpdate (Maybe Text) Source #

An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).

fuProject :: Lens' FirewallsUpdate Text Source #

Project ID for this request.

fuPayload :: Lens' FirewallsUpdate Firewall Source #

Multipart request metadata.

fuFirewall :: Lens' FirewallsUpdate Text Source #

Name of the firewall rule to update.