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 |
Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project.
See: Google Cloud Resource Manager API Reference for cloudresourcemanager.projects.getAncestry
.
- type ProjectsGetAncestryResource = "v1" :> ("projects" :> (CaptureMode "projectId" "getAncestry" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetAncestryRequest :> Post '[JSON] GetAncestryResponse)))))))))))
- projectsGetAncestry :: GetAncestryRequest -> Text -> ProjectsGetAncestry
- data ProjectsGetAncestry
- pgaXgafv :: Lens' ProjectsGetAncestry (Maybe Xgafv)
- pgaUploadProtocol :: Lens' ProjectsGetAncestry (Maybe Text)
- pgaPp :: Lens' ProjectsGetAncestry Bool
- pgaAccessToken :: Lens' ProjectsGetAncestry (Maybe Text)
- pgaUploadType :: Lens' ProjectsGetAncestry (Maybe Text)
- pgaPayload :: Lens' ProjectsGetAncestry GetAncestryRequest
- pgaBearerToken :: Lens' ProjectsGetAncestry (Maybe Text)
- pgaProjectId :: Lens' ProjectsGetAncestry Text
- pgaCallback :: Lens' ProjectsGetAncestry (Maybe Text)
REST Resource
type ProjectsGetAncestryResource = "v1" :> ("projects" :> (CaptureMode "projectId" "getAncestry" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] GetAncestryRequest :> Post '[JSON] GetAncestryResponse))))))))))) Source #
A resource alias for cloudresourcemanager.projects.getAncestry
method which the
ProjectsGetAncestry
request conforms to.
Creating a Request
Creates a value of ProjectsGetAncestry
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGetAncestry Source #
Gets a list of ancestors in the resource hierarchy for the Project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this Project.
See: projectsGetAncestry
smart constructor.
Request Lenses
pgaUploadProtocol :: Lens' ProjectsGetAncestry (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pgaAccessToken :: Lens' ProjectsGetAncestry (Maybe Text) Source #
OAuth access token.
pgaUploadType :: Lens' ProjectsGetAncestry (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pgaPayload :: Lens' ProjectsGetAncestry GetAncestryRequest Source #
Multipart request metadata.
pgaBearerToken :: Lens' ProjectsGetAncestry (Maybe Text) Source #
OAuth bearer token.
pgaProjectId :: Lens' ProjectsGetAncestry Text Source #
The Project ID (for example, `my-project-123`). Required.
pgaCallback :: Lens' ProjectsGetAncestry (Maybe Text) Source #
JSONP