summaryrefslogtreecommitdiff
path: root/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs
diff options
context:
space:
mode:
Diffstat (limited to 'gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs')
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs44
1 files changed, 11 insertions, 33 deletions
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs
index 1cb3cf5..2ed39cc 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Get.hs
@@ -22,7 +22,7 @@
--
-- Gets the state of the specified Cloud Dataflow job.
--
--- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.get@.
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.jobs.get@.
module Network.Google.Resource.Dataflow.Projects.Jobs.Get
(
-- * REST Resource
@@ -37,10 +37,8 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Get
, pjgJobId
, pjgUploadProtocol
, pjgLocation
- , pjgPp
, pjgAccessToken
, pjgUploadType
- , pjgBearerToken
, pjgView
, pjgProjectId
, pjgCallback
@@ -57,29 +55,25 @@ type ProjectsJobsGetResource =
Capture "projectId" Text :>
"jobs" :>
Capture "jobId" Text :>
- QueryParam "$.xgafv" Text :>
+ QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "location" Text :>
- QueryParam "pp" Bool :>
- QueryParam "access_token" Text :>
- QueryParam "uploadType" Text :>
- QueryParam "bearer_token" Text :>
- QueryParam "view" Text :>
- QueryParam "callback" Text :>
- QueryParam "alt" AltJSON :> Get '[JSON] Job
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "view" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :> Get '[JSON] Job
-- | Gets the state of the specified Cloud Dataflow job.
--
-- /See:/ 'projectsJobsGet' smart constructor.
data ProjectsJobsGet = ProjectsJobsGet'
- { _pjgXgafv :: !(Maybe Text)
+ { _pjgXgafv :: !(Maybe Xgafv)
, _pjgJobId :: !Text
, _pjgUploadProtocol :: !(Maybe Text)
, _pjgLocation :: !(Maybe Text)
- , _pjgPp :: !Bool
, _pjgAccessToken :: !(Maybe Text)
, _pjgUploadType :: !(Maybe Text)
- , _pjgBearerToken :: !(Maybe Text)
, _pjgView :: !(Maybe Text)
, _pjgProjectId :: !Text
, _pjgCallback :: !(Maybe Text)
@@ -97,14 +91,10 @@ data ProjectsJobsGet = ProjectsJobsGet'
--
-- * 'pjgLocation'
--
--- * 'pjgPp'
---
-- * 'pjgAccessToken'
--
-- * 'pjgUploadType'
--
--- * 'pjgBearerToken'
---
-- * 'pjgView'
--
-- * 'pjgProjectId'
@@ -120,17 +110,15 @@ projectsJobsGet pPjgJobId_ pPjgProjectId_ =
, _pjgJobId = pPjgJobId_
, _pjgUploadProtocol = Nothing
, _pjgLocation = Nothing
- , _pjgPp = True
, _pjgAccessToken = Nothing
, _pjgUploadType = Nothing
- , _pjgBearerToken = Nothing
, _pjgView = Nothing
, _pjgProjectId = pPjgProjectId_
, _pjgCallback = Nothing
}
-- | V1 error format.
-pjgXgafv :: Lens' ProjectsJobsGet (Maybe Text)
+pjgXgafv :: Lens' ProjectsJobsGet (Maybe Xgafv)
pjgXgafv = lens _pjgXgafv (\ s a -> s{_pjgXgafv = a})
-- | The job ID.
@@ -148,10 +136,6 @@ pjgLocation :: Lens' ProjectsJobsGet (Maybe Text)
pjgLocation
= lens _pjgLocation (\ s a -> s{_pjgLocation = a})
--- | Pretty-print response.
-pjgPp :: Lens' ProjectsJobsGet Bool
-pjgPp = lens _pjgPp (\ s a -> s{_pjgPp = a})
-
-- | OAuth access token.
pjgAccessToken :: Lens' ProjectsJobsGet (Maybe Text)
pjgAccessToken
@@ -164,12 +148,6 @@ pjgUploadType
= lens _pjgUploadType
(\ s a -> s{_pjgUploadType = a})
--- | OAuth bearer token.
-pjgBearerToken :: Lens' ProjectsJobsGet (Maybe Text)
-pjgBearerToken
- = lens _pjgBearerToken
- (\ s a -> s{_pjgBearerToken = a})
-
-- | The level of information requested in response.
pjgView :: Lens' ProjectsJobsGet (Maybe Text)
pjgView = lens _pjgView (\ s a -> s{_pjgView = a})
@@ -188,15 +166,15 @@ instance GoogleRequest ProjectsJobsGet where
type Rs ProjectsJobsGet = Job
type Scopes ProjectsJobsGet =
'["https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/compute",
+ "https://www.googleapis.com/auth/compute.readonly",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient ProjectsJobsGet'{..}
= go _pjgProjectId _pjgJobId _pjgXgafv
_pjgUploadProtocol
_pjgLocation
- (Just _pjgPp)
_pjgAccessToken
_pjgUploadType
- _pjgBearerToken
_pjgView
_pjgCallback
(Just AltJSON)