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 |
Creates a tenancy unit with no tenant resources.
See: Service Consumer Management API Reference for serviceconsumermanagement.services.tenancyUnits.create
.
Synopsis
- type ServicesTenancyUnitsCreateResource = "v1" :> (Capture "parent" Text :> ("tenancyUnits" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTenancyUnitRequest :> Post '[JSON] TenancyUnit)))))))))
- servicesTenancyUnitsCreate :: Text -> CreateTenancyUnitRequest -> ServicesTenancyUnitsCreate
- data ServicesTenancyUnitsCreate
- stucParent :: Lens' ServicesTenancyUnitsCreate Text
- stucXgafv :: Lens' ServicesTenancyUnitsCreate (Maybe Xgafv)
- stucUploadProtocol :: Lens' ServicesTenancyUnitsCreate (Maybe Text)
- stucAccessToken :: Lens' ServicesTenancyUnitsCreate (Maybe Text)
- stucUploadType :: Lens' ServicesTenancyUnitsCreate (Maybe Text)
- stucPayload :: Lens' ServicesTenancyUnitsCreate CreateTenancyUnitRequest
- stucCallback :: Lens' ServicesTenancyUnitsCreate (Maybe Text)
REST Resource
type ServicesTenancyUnitsCreateResource = "v1" :> (Capture "parent" Text :> ("tenancyUnits" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateTenancyUnitRequest :> Post '[JSON] TenancyUnit))))))))) Source #
A resource alias for serviceconsumermanagement.services.tenancyUnits.create
method which the
ServicesTenancyUnitsCreate
request conforms to.
Creating a Request
servicesTenancyUnitsCreate Source #
Creates a value of ServicesTenancyUnitsCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesTenancyUnitsCreate Source #
Creates a tenancy unit with no tenant resources.
See: servicesTenancyUnitsCreate
smart constructor.
Instances
Request Lenses
stucParent :: Lens' ServicesTenancyUnitsCreate Text Source #
services/{service}/{collection id}/{resource id} {collection id} is the cloud resource collection type representing the service consumer, for example 'projects', or 'organizations'. {resource id} is the consumer numeric id, such as project number: '123456'. {service} the name of a service, for example 'service.googleapis.com'. Enabled service binding using the new tenancy unit.
stucUploadProtocol :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
stucAccessToken :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #
OAuth access token.
stucUploadType :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
stucPayload :: Lens' ServicesTenancyUnitsCreate CreateTenancyUnitRequest Source #
Multipart request metadata.
stucCallback :: Lens' ServicesTenancyUnitsCreate (Maybe Text) Source #
JSONP