summaryrefslogtreecommitdiff
path: root/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs
diff options
context:
space:
mode:
Diffstat (limited to 'gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs')
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs58
1 files changed, 18 insertions, 40 deletions
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs
index 177f2bc..9f07fb8 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/List.hs
@@ -20,9 +20,9 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- List the jobs of a project.
+-- List the jobs of a project in a given region.
--
--- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.list@.
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.jobs.list@.
module Network.Google.Resource.Dataflow.Projects.Jobs.List
(
-- * REST Resource
@@ -36,10 +36,8 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.List
, pjlXgafv
, pjlUploadProtocol
, pjlLocation
- , pjlPp
, pjlAccessToken
, pjlUploadType
- , pjlBearerToken
, pjlView
, pjlFilter
, pjlPageToken
@@ -58,32 +56,28 @@ type ProjectsJobsListResource =
"projects" :>
Capture "projectId" Text :>
"jobs" :>
- 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 "filter" Text :>
- QueryParam "pageToken" Text :>
- QueryParam "pageSize" (Textual Int32) :>
- QueryParam "callback" Text :>
- QueryParam "alt" AltJSON :>
- Get '[JSON] ListJobsResponse
-
--- | List the jobs of a project.
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "view" Text :>
+ QueryParam "filter" Text :>
+ QueryParam "pageToken" Text :>
+ QueryParam "pageSize" (Textual Int32) :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :>
+ Get '[JSON] ListJobsResponse
+
+-- | List the jobs of a project in a given region.
--
-- /See:/ 'projectsJobsList' smart constructor.
data ProjectsJobsList = ProjectsJobsList'
- { _pjlXgafv :: !(Maybe Text)
+ { _pjlXgafv :: !(Maybe Xgafv)
, _pjlUploadProtocol :: !(Maybe Text)
, _pjlLocation :: !(Maybe Text)
- , _pjlPp :: !Bool
, _pjlAccessToken :: !(Maybe Text)
, _pjlUploadType :: !(Maybe Text)
- , _pjlBearerToken :: !(Maybe Text)
, _pjlView :: !(Maybe Text)
, _pjlFilter :: !(Maybe Text)
, _pjlPageToken :: !(Maybe Text)
@@ -102,14 +96,10 @@ data ProjectsJobsList = ProjectsJobsList'
--
-- * 'pjlLocation'
--
--- * 'pjlPp'
---
-- * 'pjlAccessToken'
--
-- * 'pjlUploadType'
--
--- * 'pjlBearerToken'
---
-- * 'pjlView'
--
-- * 'pjlFilter'
@@ -129,10 +119,8 @@ projectsJobsList pPjlProjectId_ =
{ _pjlXgafv = Nothing
, _pjlUploadProtocol = Nothing
, _pjlLocation = Nothing
- , _pjlPp = True
, _pjlAccessToken = Nothing
, _pjlUploadType = Nothing
- , _pjlBearerToken = Nothing
, _pjlView = Nothing
, _pjlFilter = Nothing
, _pjlPageToken = Nothing
@@ -142,7 +130,7 @@ projectsJobsList pPjlProjectId_ =
}
-- | V1 error format.
-pjlXgafv :: Lens' ProjectsJobsList (Maybe Text)
+pjlXgafv :: Lens' ProjectsJobsList (Maybe Xgafv)
pjlXgafv = lens _pjlXgafv (\ s a -> s{_pjlXgafv = a})
-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
@@ -156,10 +144,6 @@ pjlLocation :: Lens' ProjectsJobsList (Maybe Text)
pjlLocation
= lens _pjlLocation (\ s a -> s{_pjlLocation = a})
--- | Pretty-print response.
-pjlPp :: Lens' ProjectsJobsList Bool
-pjlPp = lens _pjlPp (\ s a -> s{_pjlPp = a})
-
-- | OAuth access token.
pjlAccessToken :: Lens' ProjectsJobsList (Maybe Text)
pjlAccessToken
@@ -172,12 +156,6 @@ pjlUploadType
= lens _pjlUploadType
(\ s a -> s{_pjlUploadType = a})
--- | OAuth bearer token.
-pjlBearerToken :: Lens' ProjectsJobsList (Maybe Text)
-pjlBearerToken
- = lens _pjlBearerToken
- (\ s a -> s{_pjlBearerToken = a})
-
-- | Level of information requested in response. Default is
-- \`JOB_VIEW_SUMMARY\`.
pjlView :: Lens' ProjectsJobsList (Maybe Text)
@@ -216,14 +194,14 @@ instance GoogleRequest ProjectsJobsList where
type Rs ProjectsJobsList = ListJobsResponse
type Scopes ProjectsJobsList =
'["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 ProjectsJobsList'{..}
= go _pjlProjectId _pjlXgafv _pjlUploadProtocol
_pjlLocation
- (Just _pjlPp)
_pjlAccessToken
_pjlUploadType
- _pjlBearerToken
_pjlView
_pjlFilter
_pjlPageToken