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 |
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
- 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))))))))
- servicesAddSubnetwork :: Text -> AddSubnetworkRequest -> ServicesAddSubnetwork
- data ServicesAddSubnetwork
- sasParent :: Lens' ServicesAddSubnetwork Text
- sasXgafv :: Lens' ServicesAddSubnetwork (Maybe Xgafv)
- sasUploadProtocol :: Lens' ServicesAddSubnetwork (Maybe Text)
- sasAccessToken :: Lens' ServicesAddSubnetwork (Maybe Text)
- sasUploadType :: Lens' ServicesAddSubnetwork (Maybe Text)
- sasPayload :: Lens' ServicesAddSubnetwork AddSubnetworkRequest
- sasCallback :: Lens' ServicesAddSubnetwork (Maybe Text)
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
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").
sasAccessToken :: Lens' ServicesAddSubnetwork (Maybe Text) Source #
OAuth access token.
sasUploadType :: Lens' ServicesAddSubnetwork (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sasPayload :: Lens' ServicesAddSubnetwork AddSubnetworkRequest Source #
Multipart request metadata.
sasCallback :: Lens' ServicesAddSubnetwork (Maybe Text) Source #
JSONP