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 |
Network.Google.Resource.ServiceConsumerManagement.Services.TenancyUnits.AttachProject
Description
Attach an existing project to the tenancy unit as a new tenant resource. The project could either be the tenant project reserved by calling `AddTenantProject` under a tenancy unit of a service producer's project of a managed service, or from a separate project. The caller is checked against a set of permissions as if calling `AddTenantProject` on the same service consumer. To trigger the attachment, the targeted tenant project must be in a folder. Make sure the ServiceConsumerManagement service account is the owner of that project. These two requirements are already met if the project is reserved by calling `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 #
Arguments
:: AttachTenantProjectRequest | |
-> Text | |
-> ServicesTenancyUnitsAttachProject |
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 either be the tenant project reserved by calling `AddTenantProject` under a tenancy unit of a service producer's project of a managed service, or from a separate project. The caller is checked against a set of permissions as if calling `AddTenantProject` on the same service consumer. To trigger the attachment, the targeted tenant project must be in a folder. Make sure the ServiceConsumerManagement service account is the owner of that project. These two requirements are already met if the project is reserved by calling `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.