gogol-servicenetworking-0.5.0: Google Service Networking 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.ServiceNetworking.Services.AddSubnetwork

Contents

Description

For service producers, provisions a new subnet in a peered service's shared VPC network in the requested region and with the requested size that's expressed as a CIDR range (number of leading bits of ipV4 network mask). The method checks against the assigned allocated ranges to find a non-conflicting IP address range. The method will reuse a subnet if subsequent calls contain the same subnet name, region, and prefix length. This method will make producer's tenant project to be a shared VPC service project as needed. The response from the `get` operation will be of type `Subnetwork` if the operation successfully completes.

See: Service Networking API Reference for servicenetworking.services.addSubnetwork.

Synopsis

REST Resource

type ServicesAddSubnetworkResource = "v1" :> (CaptureMode "parent" "addSubnetwork" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AddSubnetworkRequest :> Post '[JSON] Operation)))))))) Source #

A resource alias for servicenetworking.services.addSubnetwork method which the ServicesAddSubnetwork request conforms to.

Creating a Request

servicesAddSubnetwork Source #

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

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

data ServicesAddSubnetwork Source #

For service producers, provisions a new subnet in a peered service's shared VPC network in the requested region and with the requested size that's expressed as a CIDR range (number of leading bits of ipV4 network mask). The method checks against the assigned allocated ranges to find a non-conflicting IP address range. The method will reuse a subnet if subsequent calls contain the same subnet name, region, and prefix length. This method will make producer's tenant project to be a shared VPC service project as needed. The response from the `get` operation will be of type `Subnetwork` if the operation successfully completes.

See: servicesAddSubnetwork smart constructor.

Instances
Eq ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

Data ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

Methods

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

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

toConstr :: ServicesAddSubnetwork -> Constr #

dataTypeOf :: ServicesAddSubnetwork -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

Generic ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

Associated Types

type Rep ServicesAddSubnetwork :: Type -> Type #

GoogleRequest ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

type Rep ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

type Rep ServicesAddSubnetwork = D1 (MetaData "ServicesAddSubnetwork" "Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork" "gogol-servicenetworking-0.5.0-8ZYyNJVUNnRE5WvJBnqzZ8" False) (C1 (MetaCons "ServicesAddSubnetwork'" PrefixI True) ((S1 (MetaSel (Just "_sasParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_sasXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_sasUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_sasAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_sasUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_sasPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AddSubnetworkRequest) :*: S1 (MetaSel (Just "_sasCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ServicesAddSubnetwork Source # 
Instance details

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

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

Defined in Network.Google.Resource.ServiceNetworking.Services.AddSubnetwork

Request Lenses

sasParent :: Lens' ServicesAddSubnetwork Text Source #

Required. A tenant project in the service producer organization, in the following format: services/{service}/{collection-id}/{resource-id}. {collection-id} is the cloud resource collection type that represents the tenant project. Only `projects` are supported. {resource-id} is the tenant project numeric id, such as `123456`. {service} the name of the peering service, such as `service-peering.example.com`. This service must already be enabled in the service consumer's project.

sasUploadProtocol :: Lens' ServicesAddSubnetwork (Maybe Text) Source #

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

sasUploadType :: Lens' ServicesAddSubnetwork (Maybe Text) Source #

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