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 |
Attach an existing project to the tenancy unit as a new tenant resource. The project could be either the tenant project reserved by calling AddTenantProject under tenancy unit for the producer project of service, or from outside. Caller will be checked against the permission as if calling AddTenantProject on the same consumer. To trigger the attachement, the targeted tenant project must be in a folder. Please also make sure ServiceConsumerManagement service account is the owner of that project. Note that these two requirements are already met if the project is reserved through AddTenantProject. Operation.
See: Service Consumer Management API Reference for serviceconsumermanagement.services.tenancyUnits.attachProject
.
Synopsis
- type ServicesTenancyUnitsAttachProjectResource = "v1" :> (CaptureMode "name" "attachProject" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AttachTenantProjectRequest :> Post '[JSON] Operation))))))))
- servicesTenancyUnitsAttachProject :: AttachTenantProjectRequest -> Text -> ServicesTenancyUnitsAttachProject
- data ServicesTenancyUnitsAttachProject
- stuapXgafv :: Lens' ServicesTenancyUnitsAttachProject (Maybe Xgafv)
- stuapUploadProtocol :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text)
- stuapAccessToken :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text)
- stuapUploadType :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text)
- stuapPayload :: Lens' ServicesTenancyUnitsAttachProject AttachTenantProjectRequest
- stuapName :: Lens' ServicesTenancyUnitsAttachProject Text
- stuapCallback :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text)
REST Resource
type ServicesTenancyUnitsAttachProjectResource = "v1" :> (CaptureMode "name" "attachProject" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AttachTenantProjectRequest :> Post '[JSON] Operation)))))))) Source #
A resource alias for serviceconsumermanagement.services.tenancyUnits.attachProject
method which the
ServicesTenancyUnitsAttachProject
request conforms to.
Creating a Request
servicesTenancyUnitsAttachProject Source #
Creates a value of ServicesTenancyUnitsAttachProject
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ServicesTenancyUnitsAttachProject Source #
Attach an existing project to the tenancy unit as a new tenant resource. The project could be either the tenant project reserved by calling AddTenantProject under tenancy unit for the producer project of service, or from outside. Caller will be checked against the permission as if calling AddTenantProject on the same consumer. To trigger the attachement, the targeted tenant project must be in a folder. Please also make sure ServiceConsumerManagement service account is the owner of that project. Note that these two requirements are already met if the project is reserved through AddTenantProject. Operation.
See: servicesTenancyUnitsAttachProject
smart constructor.
Instances
Request Lenses
stuapXgafv :: Lens' ServicesTenancyUnitsAttachProject (Maybe Xgafv) Source #
V1 error format.
stuapUploadProtocol :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
stuapAccessToken :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text) Source #
OAuth access token.
stuapUploadType :: Lens' ServicesTenancyUnitsAttachProject (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
stuapPayload :: Lens' ServicesTenancyUnitsAttachProject AttachTenantProjectRequest Source #
Multipart request metadata.