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 |
Add a new tenant project to the tenancy unit. There can be a maximum of 512 tenant projects in a tenancy unit. If there are previously failed `AddTenantProject` calls, you might need to call `RemoveTenantProject` first to resolve them before you can make another call to `AddTenantProject` with the same tag. Operation.
See: Service Consumer Management API Reference for serviceconsumermanagement.services.tenancyUnits.addProject
.
Synopsis
- type ServicesTenancyUnitsAddProjectResource = "v1" :> (CaptureMode "parent" "addProject" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AddTenantProjectRequest :> Post '[JSON] Operation))))))))
- servicesTenancyUnitsAddProject :: Text -> AddTenantProjectRequest -> ServicesTenancyUnitsAddProject
- data ServicesTenancyUnitsAddProject
- sParent :: Lens' ServicesTenancyUnitsAddProject Text
- sXgafv :: Lens' ServicesTenancyUnitsAddProject (Maybe Xgafv)
- sUploadProtocol :: Lens' ServicesTenancyUnitsAddProject (Maybe Text)
- sAccessToken :: Lens' ServicesTenancyUnitsAddProject (Maybe Text)
- sUploadType :: Lens' ServicesTenancyUnitsAddProject (Maybe Text)
- sPayload :: Lens' ServicesTenancyUnitsAddProject AddTenantProjectRequest
- sCallback :: Lens' ServicesTenancyUnitsAddProject (Maybe Text)
REST Resource
type ServicesTenancyUnitsAddProjectResource = "v1" :> (CaptureMode "parent" "addProject" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AddTenantProjectRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for serviceconsumermanagement.services.tenancyUnits.addProject
method which the
ServicesTenancyUnitsAddProject
request conforms to.
Creating a Request
servicesTenancyUnitsAddProject Source #
Creates a value of ServicesTenancyUnitsAddProject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesTenancyUnitsAddProject Source #
Add a new tenant project to the tenancy unit. There can be a maximum of 512 tenant projects in a tenancy unit. If there are previously failed `AddTenantProject` calls, you might need to call `RemoveTenantProject` first to resolve them before you can make another call to `AddTenantProject` with the same tag. Operation.
See: servicesTenancyUnitsAddProject
smart constructor.
Instances
Request Lenses
sParent :: Lens' ServicesTenancyUnitsAddProject Text Source #
Name of the tenancy unit. Such as 'services/service.googleapis.com/projects/12345/tenancyUnits/abcd'.
sUploadProtocol :: Lens' ServicesTenancyUnitsAddProject (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
sAccessToken :: Lens' ServicesTenancyUnitsAddProject (Maybe Text) Source #
OAuth access token.
sUploadType :: Lens' ServicesTenancyUnitsAddProject (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
sPayload :: Lens' ServicesTenancyUnitsAddProject AddTenantProjectRequest Source #
Multipart request metadata.