| Copyright | (c) 2015 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.CloudResourceManager.Projects.Get
Description
Retrieves 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.get.
- type ProjectsGetResource = "v1beta1" :> ("projects" :> (Capture "projectId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Project))))))))))
- projectsGet :: Text -> ProjectsGet
- data ProjectsGet
- pgXgafv :: Lens' ProjectsGet (Maybe Text)
- pgUploadProtocol :: Lens' ProjectsGet (Maybe Text)
- pgPp :: Lens' ProjectsGet Bool
- pgAccessToken :: Lens' ProjectsGet (Maybe Text)
- pgUploadType :: Lens' ProjectsGet (Maybe Text)
- pgBearerToken :: Lens' ProjectsGet (Maybe Text)
- pgProjectId :: Lens' ProjectsGet Text
- pgCallback :: Lens' ProjectsGet (Maybe Text)
REST Resource
type ProjectsGetResource = "v1beta1" :> ("projects" :> (Capture "projectId" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Project)))))))))) Source
A resource alias for cloudresourcemanager.projects.get method which the
ProjectsGet request conforms to.
Creating a Request
Arguments
| :: Text | |
| -> ProjectsGet |
Creates a value of ProjectsGet with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsGet Source
Retrieves the project identified by the specified `project_id` (for example, `my-project-123`). The caller must have read permissions for this project.
See: projectsGet smart constructor.
Instances
Request Lenses
pgUploadProtocol :: Lens' ProjectsGet (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
pgPp :: Lens' ProjectsGet Bool Source
Pretty-print response.
pgAccessToken :: Lens' ProjectsGet (Maybe Text) Source
OAuth access token.
pgUploadType :: Lens' ProjectsGet (Maybe Text) Source
Legacy upload protocol for media (e.g. "media", "multipart").
pgBearerToken :: Lens' ProjectsGet (Maybe Text) Source
OAuth bearer token.
pgProjectId :: Lens' ProjectsGet Text Source
The project ID (for example, `my-project-123`). Required.
pgCallback :: Lens' ProjectsGet (Maybe Text) Source
JSONP