summaryrefslogtreecommitdiff
path: root/gen/Network/Google/Resource/Dataflow/Projects/Locations
diff options
context:
space:
mode:
Diffstat (limited to 'gen/Network/Google/Resource/Dataflow/Projects/Locations')
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs26
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/GetConfig.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs28
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs29
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs32
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs31
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs10
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs28
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/SQL/Validate.hs193
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Delete.hs189
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Get.hs186
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/List.hs174
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Create.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Get.hs14
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Launch.hs17
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Locations/WorkerMessages.hs17
19 files changed, 979 insertions, 80 deletions
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs
index def1b41..4aebeb6 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Create.hs
@@ -20,7 +20,11 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Creates a Cloud Dataflow job.
+-- Creates a Cloud Dataflow job. To create a job, we recommend using
+-- \`projects.locations.jobs.create\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.create\` is not recommended, as your job will
+-- always start in \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.create@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Create
@@ -67,10 +71,15 @@ type ProjectsLocationsJobsCreateResource =
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Job :> Post '[JSON] Job
--- | Creates a Cloud Dataflow job.
+-- | Creates a Cloud Dataflow job. To create a job, we recommend using
+-- \`projects.locations.jobs.create\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.create\` is not recommended, as your job will
+-- always start in \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsCreate' smart constructor.
-data ProjectsLocationsJobsCreate = ProjectsLocationsJobsCreate'
+data ProjectsLocationsJobsCreate =
+ ProjectsLocationsJobsCreate'
{ _pljcXgafv :: !(Maybe Xgafv)
, _pljcUploadProtocol :: !(Maybe Text)
, _pljcLocation :: !Text
@@ -81,7 +90,9 @@ data ProjectsLocationsJobsCreate = ProjectsLocationsJobsCreate'
, _pljcProjectId :: !Text
, _pljcReplaceJobId :: !(Maybe Text)
, _pljcCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsCreate' with the minimum fields required to make a request.
--
@@ -112,7 +123,7 @@ projectsLocationsJobsCreate
-> Text -- ^ 'pljcProjectId'
-> ProjectsLocationsJobsCreate
projectsLocationsJobsCreate pPljcLocation_ pPljcPayload_ pPljcProjectId_ =
- ProjectsLocationsJobsCreate'
+ ProjectsLocationsJobsCreate'
{ _pljcXgafv = Nothing
, _pljcUploadProtocol = Nothing
, _pljcLocation = pPljcLocation_
@@ -125,6 +136,7 @@ projectsLocationsJobsCreate pPljcLocation_ pPljcPayload_ pPljcProjectId_ =
, _pljcCallback = Nothing
}
+
-- | V1 error format.
pljcXgafv :: Lens' ProjectsLocationsJobsCreate (Maybe Xgafv)
pljcXgafv
@@ -136,7 +148,9 @@ pljcUploadProtocol
= lens _pljcUploadProtocol
(\ s a -> s{_pljcUploadProtocol = a})
--- | The location that contains this job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains this job.
pljcLocation :: Lens' ProjectsLocationsJobsCreate Text
pljcLocation
= lens _pljcLocation (\ s a -> s{_pljcLocation = a})
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/GetConfig.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/GetConfig.hs
index dc417f8..93ad5fa 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/GetConfig.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/GetConfig.hs
@@ -71,7 +71,8 @@ type ProjectsLocationsJobsDebugGetConfigResource =
-- | Get encoded debug configuration for component. Not cacheable.
--
-- /See:/ 'projectsLocationsJobsDebugGetConfig' smart constructor.
-data ProjectsLocationsJobsDebugGetConfig = ProjectsLocationsJobsDebugGetConfig'
+data ProjectsLocationsJobsDebugGetConfig =
+ ProjectsLocationsJobsDebugGetConfig'
{ _pljdgcXgafv :: !(Maybe Xgafv)
, _pljdgcJobId :: !Text
, _pljdgcUploadProtocol :: !(Maybe Text)
@@ -81,7 +82,9 @@ data ProjectsLocationsJobsDebugGetConfig = ProjectsLocationsJobsDebugGetConfig'
, _pljdgcPayload :: !GetDebugConfigRequest
, _pljdgcProjectId :: !Text
, _pljdgcCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsDebugGetConfig' with the minimum fields required to make a request.
--
@@ -111,7 +114,7 @@ projectsLocationsJobsDebugGetConfig
-> Text -- ^ 'pljdgcProjectId'
-> ProjectsLocationsJobsDebugGetConfig
projectsLocationsJobsDebugGetConfig pPljdgcJobId_ pPljdgcLocation_ pPljdgcPayload_ pPljdgcProjectId_ =
- ProjectsLocationsJobsDebugGetConfig'
+ ProjectsLocationsJobsDebugGetConfig'
{ _pljdgcXgafv = Nothing
, _pljdgcJobId = pPljdgcJobId_
, _pljdgcUploadProtocol = Nothing
@@ -123,6 +126,7 @@ projectsLocationsJobsDebugGetConfig pPljdgcJobId_ pPljdgcLocation_ pPljdgcPayloa
, _pljdgcCallback = Nothing
}
+
-- | V1 error format.
pljdgcXgafv :: Lens' ProjectsLocationsJobsDebugGetConfig (Maybe Xgafv)
pljdgcXgafv
@@ -139,7 +143,9 @@ pljdgcUploadProtocol
= lens _pljdgcUploadProtocol
(\ s a -> s{_pljdgcUploadProtocol = a})
--- | The location which contains the job specified by job_id.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the job specified by job_id.
pljdgcLocation :: Lens' ProjectsLocationsJobsDebugGetConfig Text
pljdgcLocation
= lens _pljdgcLocation
@@ -176,7 +182,8 @@ pljdgcCallback
(\ s a -> s{_pljdgcCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsDebugGetConfig where
+ ProjectsLocationsJobsDebugGetConfig
+ where
type Rs ProjectsLocationsJobsDebugGetConfig =
GetDebugConfigResponse
type Scopes ProjectsLocationsJobsDebugGetConfig =
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs
index 87cace3..2f5ff7c 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Debug/SendCapture.hs
@@ -71,7 +71,8 @@ type ProjectsLocationsJobsDebugSendCaptureResource =
-- | Send encoded debug capture data for component.
--
-- /See:/ 'projectsLocationsJobsDebugSendCapture' smart constructor.
-data ProjectsLocationsJobsDebugSendCapture = ProjectsLocationsJobsDebugSendCapture'
+data ProjectsLocationsJobsDebugSendCapture =
+ ProjectsLocationsJobsDebugSendCapture'
{ _pljdscXgafv :: !(Maybe Xgafv)
, _pljdscJobId :: !Text
, _pljdscUploadProtocol :: !(Maybe Text)
@@ -81,7 +82,9 @@ data ProjectsLocationsJobsDebugSendCapture = ProjectsLocationsJobsDebugSendCaptu
, _pljdscPayload :: !SendDebugCaptureRequest
, _pljdscProjectId :: !Text
, _pljdscCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsDebugSendCapture' with the minimum fields required to make a request.
--
@@ -111,7 +114,7 @@ projectsLocationsJobsDebugSendCapture
-> Text -- ^ 'pljdscProjectId'
-> ProjectsLocationsJobsDebugSendCapture
projectsLocationsJobsDebugSendCapture pPljdscJobId_ pPljdscLocation_ pPljdscPayload_ pPljdscProjectId_ =
- ProjectsLocationsJobsDebugSendCapture'
+ ProjectsLocationsJobsDebugSendCapture'
{ _pljdscXgafv = Nothing
, _pljdscJobId = pPljdscJobId_
, _pljdscUploadProtocol = Nothing
@@ -123,6 +126,7 @@ projectsLocationsJobsDebugSendCapture pPljdscJobId_ pPljdscLocation_ pPljdscPayl
, _pljdscCallback = Nothing
}
+
-- | V1 error format.
pljdscXgafv :: Lens' ProjectsLocationsJobsDebugSendCapture (Maybe Xgafv)
pljdscXgafv
@@ -139,7 +143,9 @@ pljdscUploadProtocol
= lens _pljdscUploadProtocol
(\ s a -> s{_pljdscUploadProtocol = a})
--- | The location which contains the job specified by job_id.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the job specified by job_id.
pljdscLocation :: Lens' ProjectsLocationsJobsDebugSendCapture Text
pljdscLocation
= lens _pljdscLocation
@@ -176,7 +182,8 @@ pljdscCallback
(\ s a -> s{_pljdscCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsDebugSendCapture where
+ ProjectsLocationsJobsDebugSendCapture
+ where
type Rs ProjectsLocationsJobsDebugSendCapture =
SendDebugCaptureResponse
type Scopes ProjectsLocationsJobsDebugSendCapture =
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs
index d7b8a1f..899ead1 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Get.hs
@@ -20,7 +20,12 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Gets the state of the specified Cloud Dataflow job.
+-- Gets the state of the specified Cloud Dataflow job. To get the state of
+-- a job, we recommend using \`projects.locations.jobs.get\` with a
+-- [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.get\` is not recommended, as you can only get the
+-- state of jobs that are running in \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.get@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Get
@@ -65,10 +70,16 @@ type ProjectsLocationsJobsGetResource =
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Job
--- | Gets the state of the specified Cloud Dataflow job.
+-- | Gets the state of the specified Cloud Dataflow job. To get the state of
+-- a job, we recommend using \`projects.locations.jobs.get\` with a
+-- [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.get\` is not recommended, as you can only get the
+-- state of jobs that are running in \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsGet' smart constructor.
-data ProjectsLocationsJobsGet = ProjectsLocationsJobsGet'
+data ProjectsLocationsJobsGet =
+ ProjectsLocationsJobsGet'
{ _pljgXgafv :: !(Maybe Xgafv)
, _pljgJobId :: !Text
, _pljgUploadProtocol :: !(Maybe Text)
@@ -78,7 +89,9 @@ data ProjectsLocationsJobsGet = ProjectsLocationsJobsGet'
, _pljgView :: !(Maybe Text)
, _pljgProjectId :: !Text
, _pljgCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsGet' with the minimum fields required to make a request.
--
@@ -107,7 +120,7 @@ projectsLocationsJobsGet
-> Text -- ^ 'pljgProjectId'
-> ProjectsLocationsJobsGet
projectsLocationsJobsGet pPljgJobId_ pPljgLocation_ pPljgProjectId_ =
- ProjectsLocationsJobsGet'
+ ProjectsLocationsJobsGet'
{ _pljgXgafv = Nothing
, _pljgJobId = pPljgJobId_
, _pljgUploadProtocol = Nothing
@@ -119,6 +132,7 @@ projectsLocationsJobsGet pPljgJobId_ pPljgLocation_ pPljgProjectId_ =
, _pljgCallback = Nothing
}
+
-- | V1 error format.
pljgXgafv :: Lens' ProjectsLocationsJobsGet (Maybe Xgafv)
pljgXgafv
@@ -135,7 +149,9 @@ pljgUploadProtocol
= lens _pljgUploadProtocol
(\ s a -> s{_pljgUploadProtocol = a})
--- | The location that contains this job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains this job.
pljgLocation :: Lens' ProjectsLocationsJobsGet Text
pljgLocation
= lens _pljgLocation (\ s a -> s{_pljgLocation = a})
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs
index b7c91e9..04012b2 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/GetMetrics.hs
@@ -20,7 +20,11 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Request the job status.
+-- Request the job status. To request the status of a job, we recommend
+-- using \`projects.locations.jobs.getMetrics\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.getMetrics\` is not recommended, as you can only
+-- request the status of jobs that are running in \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.getMetrics@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.GetMetrics
@@ -67,10 +71,15 @@ type ProjectsLocationsJobsGetMetricsResource =
QueryParam "alt" AltJSON :>
Get '[JSON] JobMetrics
--- | Request the job status.
+-- | Request the job status. To request the status of a job, we recommend
+-- using \`projects.locations.jobs.getMetrics\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.getMetrics\` is not recommended, as you can only
+-- request the status of jobs that are running in \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsGetMetrics' smart constructor.
-data ProjectsLocationsJobsGetMetrics = ProjectsLocationsJobsGetMetrics'
+data ProjectsLocationsJobsGetMetrics =
+ ProjectsLocationsJobsGetMetrics'
{ _pljgmXgafv :: !(Maybe Xgafv)
, _pljgmJobId :: !Text
, _pljgmUploadProtocol :: !(Maybe Text)
@@ -80,7 +89,9 @@ data ProjectsLocationsJobsGetMetrics = ProjectsLocationsJobsGetMetrics'
, _pljgmUploadType :: !(Maybe Text)
, _pljgmProjectId :: !Text
, _pljgmCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsGetMetrics' with the minimum fields required to make a request.
--
@@ -109,7 +120,7 @@ projectsLocationsJobsGetMetrics
-> Text -- ^ 'pljgmProjectId'
-> ProjectsLocationsJobsGetMetrics
projectsLocationsJobsGetMetrics pPljgmJobId_ pPljgmLocation_ pPljgmProjectId_ =
- ProjectsLocationsJobsGetMetrics'
+ ProjectsLocationsJobsGetMetrics'
{ _pljgmXgafv = Nothing
, _pljgmJobId = pPljgmJobId_
, _pljgmUploadProtocol = Nothing
@@ -121,6 +132,7 @@ projectsLocationsJobsGetMetrics pPljgmJobId_ pPljgmLocation_ pPljgmProjectId_ =
, _pljgmCallback = Nothing
}
+
-- | V1 error format.
pljgmXgafv :: Lens' ProjectsLocationsJobsGetMetrics (Maybe Xgafv)
pljgmXgafv
@@ -137,7 +149,9 @@ pljgmUploadProtocol
= lens _pljgmUploadProtocol
(\ s a -> s{_pljgmUploadProtocol = a})
--- | The location which contains the job specified by job_id.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the job specified by job_id.
pljgmLocation :: Lens' ProjectsLocationsJobsGetMetrics Text
pljgmLocation
= lens _pljgmLocation
@@ -176,7 +190,8 @@ pljgmCallback
(\ s a -> s{_pljgmCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsGetMetrics where
+ ProjectsLocationsJobsGetMetrics
+ where
type Rs ProjectsLocationsJobsGetMetrics = JobMetrics
type Scopes ProjectsLocationsJobsGetMetrics =
'["https://www.googleapis.com/auth/cloud-platform",
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs
index 5e75988..ccdbe8f 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/List.hs
@@ -20,7 +20,14 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- List the jobs of a project in a given region.
+-- List the jobs of a project. To list the jobs of a project in a region,
+-- we recommend using \`projects.locations.jobs.get\` with a [regional
+-- endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- To list the all jobs across all regions, use
+-- \`projects.jobs.aggregated\`. Using \`projects.jobs.list\` is not
+-- recommended, as you can only get the list of jobs that are running in
+-- \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.list@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.List
@@ -70,10 +77,18 @@ type ProjectsLocationsJobsListResource =
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobsResponse
--- | List the jobs of a project in a given region.
+-- | List the jobs of a project. To list the jobs of a project in a region,
+-- we recommend using \`projects.locations.jobs.get\` with a [regional
+-- endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- To list the all jobs across all regions, use
+-- \`projects.jobs.aggregated\`. Using \`projects.jobs.list\` is not
+-- recommended, as you can only get the list of jobs that are running in
+-- \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsList' smart constructor.
-data ProjectsLocationsJobsList = ProjectsLocationsJobsList'
+data ProjectsLocationsJobsList =
+ ProjectsLocationsJobsList'
{ _pljlXgafv :: !(Maybe Xgafv)
, _pljlUploadProtocol :: !(Maybe Text)
, _pljlLocation :: !Text
@@ -85,7 +100,9 @@ data ProjectsLocationsJobsList = ProjectsLocationsJobsList'
, _pljlProjectId :: !Text
, _pljlPageSize :: !(Maybe (Textual Int32))
, _pljlCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsList' with the minimum fields required to make a request.
--
@@ -117,7 +134,7 @@ projectsLocationsJobsList
-> Text -- ^ 'pljlProjectId'
-> ProjectsLocationsJobsList
projectsLocationsJobsList pPljlLocation_ pPljlProjectId_ =
- ProjectsLocationsJobsList'
+ ProjectsLocationsJobsList'
{ _pljlXgafv = Nothing
, _pljlUploadProtocol = Nothing
, _pljlLocation = pPljlLocation_
@@ -131,6 +148,7 @@ projectsLocationsJobsList pPljlLocation_ pPljlProjectId_ =
, _pljlCallback = Nothing
}
+
-- | V1 error format.
pljlXgafv :: Lens' ProjectsLocationsJobsList (Maybe Xgafv)
pljlXgafv
@@ -142,7 +160,9 @@ pljlUploadProtocol
= lens _pljlUploadProtocol
(\ s a -> s{_pljlUploadProtocol = a})
--- | The location that contains this job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains this job.
pljlLocation :: Lens' ProjectsLocationsJobsList Text
pljlLocation
= lens _pljlLocation (\ s a -> s{_pljlLocation = a})
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs
index fbb699e..fb1175f 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Messages/List.hs
@@ -20,7 +20,12 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Request the job status.
+-- Request the job status. To request the status of a job, we recommend
+-- using \`projects.locations.jobs.messages.list\` with a [regional
+-- endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.messages.list\` is not recommended, as you can
+-- only request the status of jobs that are running in \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.messages.list@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Messages.List
@@ -75,10 +80,16 @@ type ProjectsLocationsJobsMessagesListResource =
QueryParam "alt" AltJSON :>
Get '[JSON] ListJobMessagesResponse
--- | Request the job status.
+-- | Request the job status. To request the status of a job, we recommend
+-- using \`projects.locations.jobs.messages.list\` with a [regional
+-- endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.messages.list\` is not recommended, as you can
+-- only request the status of jobs that are running in \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsMessagesList' smart constructor.
-data ProjectsLocationsJobsMessagesList = ProjectsLocationsJobsMessagesList'
+data ProjectsLocationsJobsMessagesList =
+ ProjectsLocationsJobsMessagesList'
{ _pljmlXgafv :: !(Maybe Xgafv)
, _pljmlJobId :: !Text
, _pljmlUploadProtocol :: !(Maybe Text)
@@ -92,7 +103,9 @@ data ProjectsLocationsJobsMessagesList = ProjectsLocationsJobsMessagesList'
, _pljmlProjectId :: !Text
, _pljmlPageSize :: !(Maybe (Textual Int32))
, _pljmlCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsMessagesList' with the minimum fields required to make a request.
--
@@ -129,7 +142,7 @@ projectsLocationsJobsMessagesList
-> Text -- ^ 'pljmlProjectId'
-> ProjectsLocationsJobsMessagesList
projectsLocationsJobsMessagesList pPljmlJobId_ pPljmlLocation_ pPljmlProjectId_ =
- ProjectsLocationsJobsMessagesList'
+ ProjectsLocationsJobsMessagesList'
{ _pljmlXgafv = Nothing
, _pljmlJobId = pPljmlJobId_
, _pljmlUploadProtocol = Nothing
@@ -145,6 +158,7 @@ projectsLocationsJobsMessagesList pPljmlJobId_ pPljmlLocation_ pPljmlProjectId_
, _pljmlCallback = Nothing
}
+
-- | V1 error format.
pljmlXgafv :: Lens' ProjectsLocationsJobsMessagesList (Maybe Xgafv)
pljmlXgafv
@@ -161,7 +175,9 @@ pljmlUploadProtocol
= lens _pljmlUploadProtocol
(\ s a -> s{_pljmlUploadProtocol = a})
--- | The location which contains the job specified by job_id.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the job specified by job_id.
pljmlLocation :: Lens' ProjectsLocationsJobsMessagesList Text
pljmlLocation
= lens _pljmlLocation
@@ -229,7 +245,8 @@ pljmlCallback
(\ s a -> s{_pljmlCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsMessagesList where
+ ProjectsLocationsJobsMessagesList
+ where
type Rs ProjectsLocationsJobsMessagesList =
ListJobMessagesResponse
type Scopes ProjectsLocationsJobsMessagesList =
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs
index 4866158..ff02413 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Snapshot.hs
@@ -69,7 +69,8 @@ type ProjectsLocationsJobsSnapshotResource =
-- | Snapshot the state of a streaming job.
--
-- /See:/ 'projectsLocationsJobsSnapshot' smart constructor.
-data ProjectsLocationsJobsSnapshot = ProjectsLocationsJobsSnapshot'
+data ProjectsLocationsJobsSnapshot =
+ ProjectsLocationsJobsSnapshot'
{ _pljsXgafv :: !(Maybe Xgafv)
, _pljsJobId :: !Text
, _pljsUploadProtocol :: !(Maybe Text)
@@ -79,7 +80,9 @@ data ProjectsLocationsJobsSnapshot = ProjectsLocationsJobsSnapshot'
, _pljsPayload :: !SnapshotJobRequest
, _pljsProjectId :: !Text
, _pljsCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsSnapshot' with the minimum fields required to make a request.
--
@@ -109,7 +112,7 @@ projectsLocationsJobsSnapshot
-> Text -- ^ 'pljsProjectId'
-> ProjectsLocationsJobsSnapshot
projectsLocationsJobsSnapshot pPljsJobId_ pPljsLocation_ pPljsPayload_ pPljsProjectId_ =
- ProjectsLocationsJobsSnapshot'
+ ProjectsLocationsJobsSnapshot'
{ _pljsXgafv = Nothing
, _pljsJobId = pPljsJobId_
, _pljsUploadProtocol = Nothing
@@ -121,6 +124,7 @@ projectsLocationsJobsSnapshot pPljsJobId_ pPljsLocation_ pPljsPayload_ pPljsProj
, _pljsCallback = Nothing
}
+
-- | V1 error format.
pljsXgafv :: Lens' ProjectsLocationsJobsSnapshot (Maybe Xgafv)
pljsXgafv
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs
index f78b12a..e859138 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/Update.hs
@@ -20,7 +20,12 @@
-- Stability : auto-generated
-- Portability : non-portable (GHC extensions)
--
--- Updates the state of an existing Cloud Dataflow job.
+-- Updates the state of an existing Cloud Dataflow job. To update the state
+-- of an existing job, we recommend using
+-- \`projects.locations.jobs.update\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.update\` is not recommended, as you can only
+-- update the state of jobs that are running in \`us-central1\`.
--
-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.jobs.update@.
module Network.Google.Resource.Dataflow.Projects.Locations.Jobs.Update
@@ -65,10 +70,16 @@ type ProjectsLocationsJobsUpdateResource =
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Job :> Put '[JSON] Job
--- | Updates the state of an existing Cloud Dataflow job.
+-- | Updates the state of an existing Cloud Dataflow job. To update the state
+-- of an existing job, we recommend using
+-- \`projects.locations.jobs.update\` with a [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints).
+-- Using \`projects.jobs.update\` is not recommended, as you can only
+-- update the state of jobs that are running in \`us-central1\`.
--
-- /See:/ 'projectsLocationsJobsUpdate' smart constructor.
-data ProjectsLocationsJobsUpdate = ProjectsLocationsJobsUpdate'
+data ProjectsLocationsJobsUpdate =
+ ProjectsLocationsJobsUpdate'
{ _pljuXgafv :: !(Maybe Xgafv)
, _pljuJobId :: !Text
, _pljuUploadProtocol :: !(Maybe Text)
@@ -78,7 +89,9 @@ data ProjectsLocationsJobsUpdate = ProjectsLocationsJobsUpdate'
, _pljuPayload :: !Job
, _pljuProjectId :: !Text
, _pljuCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsUpdate' with the minimum fields required to make a request.
--
@@ -108,7 +121,7 @@ projectsLocationsJobsUpdate
-> Text -- ^ 'pljuProjectId'
-> ProjectsLocationsJobsUpdate
projectsLocationsJobsUpdate pPljuJobId_ pPljuLocation_ pPljuPayload_ pPljuProjectId_ =
- ProjectsLocationsJobsUpdate'
+ ProjectsLocationsJobsUpdate'
{ _pljuXgafv = Nothing
, _pljuJobId = pPljuJobId_
, _pljuUploadProtocol = Nothing
@@ -120,6 +133,7 @@ projectsLocationsJobsUpdate pPljuJobId_ pPljuLocation_ pPljuPayload_ pPljuProjec
, _pljuCallback = Nothing
}
+
-- | V1 error format.
pljuXgafv :: Lens' ProjectsLocationsJobsUpdate (Maybe Xgafv)
pljuXgafv
@@ -136,7 +150,9 @@ pljuUploadProtocol
= lens _pljuUploadProtocol
(\ s a -> s{_pljuUploadProtocol = a})
--- | The location that contains this job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains this job.
pljuLocation :: Lens' ProjectsLocationsJobsUpdate Text
pljuLocation
= lens _pljuLocation (\ s a -> s{_pljuLocation = a})
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs
index 649f2f4..97c7215 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/Lease.hs
@@ -70,7 +70,8 @@ type ProjectsLocationsJobsWorkItemsLeaseResource =
-- | Leases a dataflow WorkItem to run.
--
-- /See:/ 'projectsLocationsJobsWorkItemsLease' smart constructor.
-data ProjectsLocationsJobsWorkItemsLease = ProjectsLocationsJobsWorkItemsLease'
+data ProjectsLocationsJobsWorkItemsLease =
+ ProjectsLocationsJobsWorkItemsLease'
{ _pljwilXgafv :: !(Maybe Xgafv)
, _pljwilJobId :: !Text
, _pljwilUploadProtocol :: !(Maybe Text)
@@ -80,7 +81,9 @@ data ProjectsLocationsJobsWorkItemsLease = ProjectsLocationsJobsWorkItemsLease'
, _pljwilPayload :: !LeaseWorkItemRequest
, _pljwilProjectId :: !Text
, _pljwilCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsWorkItemsLease' with the minimum fields required to make a request.
--
@@ -110,7 +113,7 @@ projectsLocationsJobsWorkItemsLease
-> Text -- ^ 'pljwilProjectId'
-> ProjectsLocationsJobsWorkItemsLease
projectsLocationsJobsWorkItemsLease pPljwilJobId_ pPljwilLocation_ pPljwilPayload_ pPljwilProjectId_ =
- ProjectsLocationsJobsWorkItemsLease'
+ ProjectsLocationsJobsWorkItemsLease'
{ _pljwilXgafv = Nothing
, _pljwilJobId = pPljwilJobId_
, _pljwilUploadProtocol = Nothing
@@ -122,6 +125,7 @@ projectsLocationsJobsWorkItemsLease pPljwilJobId_ pPljwilLocation_ pPljwilPayloa
, _pljwilCallback = Nothing
}
+
-- | V1 error format.
pljwilXgafv :: Lens' ProjectsLocationsJobsWorkItemsLease (Maybe Xgafv)
pljwilXgafv
@@ -138,7 +142,9 @@ pljwilUploadProtocol
= lens _pljwilUploadProtocol
(\ s a -> s{_pljwilUploadProtocol = a})
--- | The location which contains the WorkItem\'s job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the WorkItem\'s job.
pljwilLocation :: Lens' ProjectsLocationsJobsWorkItemsLease Text
pljwilLocation
= lens _pljwilLocation
@@ -175,7 +181,8 @@ pljwilCallback
(\ s a -> s{_pljwilCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsWorkItemsLease where
+ ProjectsLocationsJobsWorkItemsLease
+ where
type Rs ProjectsLocationsJobsWorkItemsLease =
LeaseWorkItemResponse
type Scopes ProjectsLocationsJobsWorkItemsLease =
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs
index f4d4e20..214c42f 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Jobs/WorkItems/ReportStatus.hs
@@ -71,7 +71,8 @@ type ProjectsLocationsJobsWorkItemsReportStatusResource
-- | Reports the status of dataflow WorkItems leased by a worker.
--
-- /See:/ 'projectsLocationsJobsWorkItemsReportStatus' smart constructor.
-data ProjectsLocationsJobsWorkItemsReportStatus = ProjectsLocationsJobsWorkItemsReportStatus'
+data ProjectsLocationsJobsWorkItemsReportStatus =
+ ProjectsLocationsJobsWorkItemsReportStatus'
{ _pljwirsXgafv :: !(Maybe Xgafv)
, _pljwirsJobId :: !Text
, _pljwirsUploadProtocol :: !(Maybe Text)
@@ -81,7 +82,9 @@ data ProjectsLocationsJobsWorkItemsReportStatus = ProjectsLocationsJobsWorkItems
, _pljwirsPayload :: !ReportWorkItemStatusRequest
, _pljwirsProjectId :: !Text
, _pljwirsCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsJobsWorkItemsReportStatus' with the minimum fields required to make a request.
--
@@ -111,7 +114,7 @@ projectsLocationsJobsWorkItemsReportStatus
-> Text -- ^ 'pljwirsProjectId'
-> ProjectsLocationsJobsWorkItemsReportStatus
projectsLocationsJobsWorkItemsReportStatus pPljwirsJobId_ pPljwirsLocation_ pPljwirsPayload_ pPljwirsProjectId_ =
- ProjectsLocationsJobsWorkItemsReportStatus'
+ ProjectsLocationsJobsWorkItemsReportStatus'
{ _pljwirsXgafv = Nothing
, _pljwirsJobId = pPljwirsJobId_
, _pljwirsUploadProtocol = Nothing
@@ -123,6 +126,7 @@ projectsLocationsJobsWorkItemsReportStatus pPljwirsJobId_ pPljwirsLocation_ pPlj
, _pljwirsCallback = Nothing
}
+
-- | V1 error format.
pljwirsXgafv :: Lens' ProjectsLocationsJobsWorkItemsReportStatus (Maybe Xgafv)
pljwirsXgafv
@@ -139,7 +143,9 @@ pljwirsUploadProtocol
= lens _pljwirsUploadProtocol
(\ s a -> s{_pljwirsUploadProtocol = a})
--- | The location which contains the WorkItem\'s job.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the WorkItem\'s job.
pljwirsLocation :: Lens' ProjectsLocationsJobsWorkItemsReportStatus Text
pljwirsLocation
= lens _pljwirsLocation
@@ -176,7 +182,8 @@ pljwirsCallback
(\ s a -> s{_pljwirsCallback = a})
instance GoogleRequest
- ProjectsLocationsJobsWorkItemsReportStatus where
+ ProjectsLocationsJobsWorkItemsReportStatus
+ where
type Rs ProjectsLocationsJobsWorkItemsReportStatus =
ReportWorkItemStatusResponse
type Scopes
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/SQL/Validate.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/SQL/Validate.hs
new file mode 100644
index 0000000..da6732c
--- /dev/null
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/SQL/Validate.hs
@@ -0,0 +1,193 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.SQL.Validate
+-- 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)
+--
+-- Validates a GoogleSQL query for Cloud Dataflow syntax. Will always
+-- confirm the given query parses correctly, and if able to look up schema
+-- information from DataCatalog, will validate that the query analyzes
+-- properly as well.
+--
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.sql.validate@.
+module Network.Google.Resource.Dataflow.Projects.Locations.SQL.Validate
+ (
+ -- * REST Resource
+ ProjectsLocationsSQLValidateResource
+
+ -- * Creating a Request
+ , projectsLocationsSQLValidate
+ , ProjectsLocationsSQLValidate
+
+ -- * Request Lenses
+ , plsqlvXgafv
+ , plsqlvUploadProtocol
+ , plsqlvLocation
+ , plsqlvAccessToken
+ , plsqlvUploadType
+ , plsqlvQuery
+ , plsqlvProjectId
+ , plsqlvCallback
+ ) where
+
+import Network.Google.Dataflow.Types
+import Network.Google.Prelude
+
+-- | A resource alias for @dataflow.projects.locations.sql.validate@ method which the
+-- 'ProjectsLocationsSQLValidate' request conforms to.
+type ProjectsLocationsSQLValidateResource =
+ "v1b3" :>
+ "projects" :>
+ Capture "projectId" Text :>
+ "locations" :>
+ Capture "location" Text :>
+ "sql:validate" :>
+ QueryParam "$.xgafv" Xgafv :>
+ QueryParam "upload_protocol" Text :>
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "query" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :>
+ Get '[JSON] ValidateResponse
+
+-- | Validates a GoogleSQL query for Cloud Dataflow syntax. Will always
+-- confirm the given query parses correctly, and if able to look up schema
+-- information from DataCatalog, will validate that the query analyzes
+-- properly as well.
+--
+-- /See:/ 'projectsLocationsSQLValidate' smart constructor.
+data ProjectsLocationsSQLValidate =
+ ProjectsLocationsSQLValidate'
+ { _plsqlvXgafv :: !(Maybe Xgafv)
+ , _plsqlvUploadProtocol :: !(Maybe Text)
+ , _plsqlvLocation :: !Text
+ , _plsqlvAccessToken :: !(Maybe Text)
+ , _plsqlvUploadType :: !(Maybe Text)
+ , _plsqlvQuery :: !(Maybe Text)
+ , _plsqlvProjectId :: !Text
+ , _plsqlvCallback :: !(Maybe Text)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ProjectsLocationsSQLValidate' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'plsqlvXgafv'
+--
+-- * 'plsqlvUploadProtocol'
+--
+-- * 'plsqlvLocation'
+--
+-- * 'plsqlvAccessToken'
+--
+-- * 'plsqlvUploadType'
+--
+-- * 'plsqlvQuery'
+--
+-- * 'plsqlvProjectId'
+--
+-- * 'plsqlvCallback'
+projectsLocationsSQLValidate
+ :: Text -- ^ 'plsqlvLocation'
+ -> Text -- ^ 'plsqlvProjectId'
+ -> ProjectsLocationsSQLValidate
+projectsLocationsSQLValidate pPlsqlvLocation_ pPlsqlvProjectId_ =
+ ProjectsLocationsSQLValidate'
+ { _plsqlvXgafv = Nothing
+ , _plsqlvUploadProtocol = Nothing
+ , _plsqlvLocation = pPlsqlvLocation_
+ , _plsqlvAccessToken = Nothing
+ , _plsqlvUploadType = Nothing
+ , _plsqlvQuery = Nothing
+ , _plsqlvProjectId = pPlsqlvProjectId_
+ , _plsqlvCallback = Nothing
+ }
+
+
+-- | V1 error format.
+plsqlvXgafv :: Lens' ProjectsLocationsSQLValidate (Maybe Xgafv)
+plsqlvXgafv
+ = lens _plsqlvXgafv (\ s a -> s{_plsqlvXgafv = a})
+
+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
+plsqlvUploadProtocol :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
+plsqlvUploadProtocol
+ = lens _plsqlvUploadProtocol
+ (\ s a -> s{_plsqlvUploadProtocol = a})
+
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- to which to direct the request.
+plsqlvLocation :: Lens' ProjectsLocationsSQLValidate Text
+plsqlvLocation
+ = lens _plsqlvLocation
+ (\ s a -> s{_plsqlvLocation = a})
+
+-- | OAuth access token.
+plsqlvAccessToken :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
+plsqlvAccessToken
+ = lens _plsqlvAccessToken
+ (\ s a -> s{_plsqlvAccessToken = a})
+
+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
+plsqlvUploadType :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
+plsqlvUploadType
+ = lens _plsqlvUploadType
+ (\ s a -> s{_plsqlvUploadType = a})
+
+-- | The sql query to validate.
+plsqlvQuery :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
+plsqlvQuery
+ = lens _plsqlvQuery (\ s a -> s{_plsqlvQuery = a})
+
+-- | Required. The ID of the Cloud Platform project that the job belongs to.
+plsqlvProjectId :: Lens' ProjectsLocationsSQLValidate Text
+plsqlvProjectId
+ = lens _plsqlvProjectId
+ (\ s a -> s{_plsqlvProjectId = a})
+
+-- | JSONP
+plsqlvCallback :: Lens' ProjectsLocationsSQLValidate (Maybe Text)
+plsqlvCallback
+ = lens _plsqlvCallback
+ (\ s a -> s{_plsqlvCallback = a})
+
+instance GoogleRequest ProjectsLocationsSQLValidate
+ where
+ type Rs ProjectsLocationsSQLValidate =
+ ValidateResponse
+ type Scopes ProjectsLocationsSQLValidate =
+ '["https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/userinfo.email"]
+ requestClient ProjectsLocationsSQLValidate'{..}
+ = go _plsqlvProjectId _plsqlvLocation _plsqlvXgafv
+ _plsqlvUploadProtocol
+ _plsqlvAccessToken
+ _plsqlvUploadType
+ _plsqlvQuery
+ _plsqlvCallback
+ (Just AltJSON)
+ dataflowService
+ where go
+ = buildClient
+ (Proxy :: Proxy ProjectsLocationsSQLValidateResource)
+ mempty
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Delete.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Delete.hs
new file mode 100644
index 0000000..d4d4d43
--- /dev/null
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Delete.hs
@@ -0,0 +1,189 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.Delete
+-- 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)
+--
+-- Deletes a snapshot.
+--
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.snapshots.delete@.
+module Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.Delete
+ (
+ -- * REST Resource
+ ProjectsLocationsSnapshotsDeleteResource
+
+ -- * Creating a Request
+ , projectsLocationsSnapshotsDelete
+ , ProjectsLocationsSnapshotsDelete
+
+ -- * Request Lenses
+ , plsdXgafv
+ , plsdUploadProtocol
+ , plsdLocation
+ , plsdAccessToken
+ , plsdUploadType
+ , plsdProjectId
+ , plsdCallback
+ , plsdSnapshotId
+ ) where
+
+import Network.Google.Dataflow.Types
+import Network.Google.Prelude
+
+-- | A resource alias for @dataflow.projects.locations.snapshots.delete@ method which the
+-- 'ProjectsLocationsSnapshotsDelete' request conforms to.
+type ProjectsLocationsSnapshotsDeleteResource =
+ "v1b3" :>
+ "projects" :>
+ Capture "projectId" Text :>
+ "locations" :>
+ Capture "location" Text :>
+ "snapshots" :>
+ Capture "snapshotId" Text :>
+ QueryParam "$.xgafv" Xgafv :>
+ QueryParam "upload_protocol" Text :>
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :>
+ Delete '[JSON] DeleteSnapshotResponse
+
+-- | Deletes a snapshot.
+--
+-- /See:/ 'projectsLocationsSnapshotsDelete' smart constructor.
+data ProjectsLocationsSnapshotsDelete =
+ ProjectsLocationsSnapshotsDelete'
+ { _plsdXgafv :: !(Maybe Xgafv)
+ , _plsdUploadProtocol :: !(Maybe Text)
+ , _plsdLocation :: !Text
+ , _plsdAccessToken :: !(Maybe Text)
+ , _plsdUploadType :: !(Maybe Text)
+ , _plsdProjectId :: !Text
+ , _plsdCallback :: !(Maybe Text)
+ , _plsdSnapshotId :: !Text
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ProjectsLocationsSnapshotsDelete' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'plsdXgafv'
+--
+-- * 'plsdUploadProtocol'
+--
+-- * 'plsdLocation'
+--
+-- * 'plsdAccessToken'
+--
+-- * 'plsdUploadType'
+--
+-- * 'plsdProjectId'
+--
+-- * 'plsdCallback'
+--
+-- * 'plsdSnapshotId'
+projectsLocationsSnapshotsDelete
+ :: Text -- ^ 'plsdLocation'
+ -> Text -- ^ 'plsdProjectId'
+ -> Text -- ^ 'plsdSnapshotId'
+ -> ProjectsLocationsSnapshotsDelete
+projectsLocationsSnapshotsDelete pPlsdLocation_ pPlsdProjectId_ pPlsdSnapshotId_ =
+ ProjectsLocationsSnapshotsDelete'
+ { _plsdXgafv = Nothing
+ , _plsdUploadProtocol = Nothing
+ , _plsdLocation = pPlsdLocation_
+ , _plsdAccessToken = Nothing
+ , _plsdUploadType = Nothing
+ , _plsdProjectId = pPlsdProjectId_
+ , _plsdCallback = Nothing
+ , _plsdSnapshotId = pPlsdSnapshotId_
+ }
+
+
+-- | V1 error format.
+plsdXgafv :: Lens' ProjectsLocationsSnapshotsDelete (Maybe Xgafv)
+plsdXgafv
+ = lens _plsdXgafv (\ s a -> s{_plsdXgafv = a})
+
+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
+plsdUploadProtocol :: Lens' ProjectsLocationsSnapshotsDelete (Maybe Text)
+plsdUploadProtocol
+ = lens _plsdUploadProtocol
+ (\ s a -> s{_plsdUploadProtocol = a})
+
+-- | The location that contains this snapshot.
+plsdLocation :: Lens' ProjectsLocationsSnapshotsDelete Text
+plsdLocation
+ = lens _plsdLocation (\ s a -> s{_plsdLocation = a})
+
+-- | OAuth access token.
+plsdAccessToken :: Lens' ProjectsLocationsSnapshotsDelete (Maybe Text)
+plsdAccessToken
+ = lens _plsdAccessToken
+ (\ s a -> s{_plsdAccessToken = a})
+
+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
+plsdUploadType :: Lens' ProjectsLocationsSnapshotsDelete (Maybe Text)
+plsdUploadType
+ = lens _plsdUploadType
+ (\ s a -> s{_plsdUploadType = a})
+
+-- | The ID of the Cloud Platform project that the snapshot belongs to.
+plsdProjectId :: Lens' ProjectsLocationsSnapshotsDelete Text
+plsdProjectId
+ = lens _plsdProjectId
+ (\ s a -> s{_plsdProjectId = a})
+
+-- | JSONP
+plsdCallback :: Lens' ProjectsLocationsSnapshotsDelete (Maybe Text)
+plsdCallback
+ = lens _plsdCallback (\ s a -> s{_plsdCallback = a})
+
+-- | The ID of the snapshot.
+plsdSnapshotId :: Lens' ProjectsLocationsSnapshotsDelete Text
+plsdSnapshotId
+ = lens _plsdSnapshotId
+ (\ s a -> s{_plsdSnapshotId = a})
+
+instance GoogleRequest
+ ProjectsLocationsSnapshotsDelete
+ where
+ type Rs ProjectsLocationsSnapshotsDelete =
+ DeleteSnapshotResponse
+ type Scopes ProjectsLocationsSnapshotsDelete =
+ '["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 ProjectsLocationsSnapshotsDelete'{..}
+ = go _plsdProjectId _plsdLocation _plsdSnapshotId
+ _plsdXgafv
+ _plsdUploadProtocol
+ _plsdAccessToken
+ _plsdUploadType
+ _plsdCallback
+ (Just AltJSON)
+ dataflowService
+ where go
+ = buildClient
+ (Proxy ::
+ Proxy ProjectsLocationsSnapshotsDeleteResource)
+ mempty
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Get.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Get.hs
new file mode 100644
index 0000000..211d5a9
--- /dev/null
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/Get.hs
@@ -0,0 +1,186 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.Get
+-- 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)
+--
+-- Gets information about a snapshot.
+--
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.snapshots.get@.
+module Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.Get
+ (
+ -- * REST Resource
+ ProjectsLocationsSnapshotsGetResource
+
+ -- * Creating a Request
+ , projectsLocationsSnapshotsGet
+ , ProjectsLocationsSnapshotsGet
+
+ -- * Request Lenses
+ , plsgXgafv
+ , plsgUploadProtocol
+ , plsgLocation
+ , plsgAccessToken
+ , plsgUploadType
+ , plsgProjectId
+ , plsgCallback
+ , plsgSnapshotId
+ ) where
+
+import Network.Google.Dataflow.Types
+import Network.Google.Prelude
+
+-- | A resource alias for @dataflow.projects.locations.snapshots.get@ method which the
+-- 'ProjectsLocationsSnapshotsGet' request conforms to.
+type ProjectsLocationsSnapshotsGetResource =
+ "v1b3" :>
+ "projects" :>
+ Capture "projectId" Text :>
+ "locations" :>
+ Capture "location" Text :>
+ "snapshots" :>
+ Capture "snapshotId" Text :>
+ QueryParam "$.xgafv" Xgafv :>
+ QueryParam "upload_protocol" Text :>
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :> Get '[JSON] Snapshot
+
+-- | Gets information about a snapshot.
+--
+-- /See:/ 'projectsLocationsSnapshotsGet' smart constructor.
+data ProjectsLocationsSnapshotsGet =
+ ProjectsLocationsSnapshotsGet'
+ { _plsgXgafv :: !(Maybe Xgafv)
+ , _plsgUploadProtocol :: !(Maybe Text)
+ , _plsgLocation :: !Text
+ , _plsgAccessToken :: !(Maybe Text)
+ , _plsgUploadType :: !(Maybe Text)
+ , _plsgProjectId :: !Text
+ , _plsgCallback :: !(Maybe Text)
+ , _plsgSnapshotId :: !Text
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ProjectsLocationsSnapshotsGet' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'plsgXgafv'
+--
+-- * 'plsgUploadProtocol'
+--
+-- * 'plsgLocation'
+--
+-- * 'plsgAccessToken'
+--
+-- * 'plsgUploadType'
+--
+-- * 'plsgProjectId'
+--
+-- * 'plsgCallback'
+--
+-- * 'plsgSnapshotId'
+projectsLocationsSnapshotsGet
+ :: Text -- ^ 'plsgLocation'
+ -> Text -- ^ 'plsgProjectId'
+ -> Text -- ^ 'plsgSnapshotId'
+ -> ProjectsLocationsSnapshotsGet
+projectsLocationsSnapshotsGet pPlsgLocation_ pPlsgProjectId_ pPlsgSnapshotId_ =
+ ProjectsLocationsSnapshotsGet'
+ { _plsgXgafv = Nothing
+ , _plsgUploadProtocol = Nothing
+ , _plsgLocation = pPlsgLocation_
+ , _plsgAccessToken = Nothing
+ , _plsgUploadType = Nothing
+ , _plsgProjectId = pPlsgProjectId_
+ , _plsgCallback = Nothing
+ , _plsgSnapshotId = pPlsgSnapshotId_
+ }
+
+
+-- | V1 error format.
+plsgXgafv :: Lens' ProjectsLocationsSnapshotsGet (Maybe Xgafv)
+plsgXgafv
+ = lens _plsgXgafv (\ s a -> s{_plsgXgafv = a})
+
+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
+plsgUploadProtocol :: Lens' ProjectsLocationsSnapshotsGet (Maybe Text)
+plsgUploadProtocol
+ = lens _plsgUploadProtocol
+ (\ s a -> s{_plsgUploadProtocol = a})
+
+-- | The location that contains this snapshot.
+plsgLocation :: Lens' ProjectsLocationsSnapshotsGet Text
+plsgLocation
+ = lens _plsgLocation (\ s a -> s{_plsgLocation = a})
+
+-- | OAuth access token.
+plsgAccessToken :: Lens' ProjectsLocationsSnapshotsGet (Maybe Text)
+plsgAccessToken
+ = lens _plsgAccessToken
+ (\ s a -> s{_plsgAccessToken = a})
+
+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
+plsgUploadType :: Lens' ProjectsLocationsSnapshotsGet (Maybe Text)
+plsgUploadType
+ = lens _plsgUploadType
+ (\ s a -> s{_plsgUploadType = a})
+
+-- | The ID of the Cloud Platform project that the snapshot belongs to.
+plsgProjectId :: Lens' ProjectsLocationsSnapshotsGet Text
+plsgProjectId
+ = lens _plsgProjectId
+ (\ s a -> s{_plsgProjectId = a})
+
+-- | JSONP
+plsgCallback :: Lens' ProjectsLocationsSnapshotsGet (Maybe Text)
+plsgCallback
+ = lens _plsgCallback (\ s a -> s{_plsgCallback = a})
+
+-- | The ID of the snapshot.
+plsgSnapshotId :: Lens' ProjectsLocationsSnapshotsGet Text
+plsgSnapshotId
+ = lens _plsgSnapshotId
+ (\ s a -> s{_plsgSnapshotId = a})
+
+instance GoogleRequest ProjectsLocationsSnapshotsGet
+ where
+ type Rs ProjectsLocationsSnapshotsGet = Snapshot
+ type Scopes ProjectsLocationsSnapshotsGet =
+ '["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 ProjectsLocationsSnapshotsGet'{..}
+ = go _plsgProjectId _plsgLocation _plsgSnapshotId
+ _plsgXgafv
+ _plsgUploadProtocol
+ _plsgAccessToken
+ _plsgUploadType
+ _plsgCallback
+ (Just AltJSON)
+ dataflowService
+ where go
+ = buildClient
+ (Proxy ::
+ Proxy ProjectsLocationsSnapshotsGetResource)
+ mempty
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/List.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/List.hs
new file mode 100644
index 0000000..8c96d2e
--- /dev/null
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots/List.hs
@@ -0,0 +1,174 @@
+{-# LANGUAGE DataKinds #-}
+{-# LANGUAGE DeriveDataTypeable #-}
+{-# LANGUAGE DeriveGeneric #-}
+{-# LANGUAGE FlexibleInstances #-}
+{-# LANGUAGE NoImplicitPrelude #-}
+{-# LANGUAGE OverloadedStrings #-}
+{-# LANGUAGE RecordWildCards #-}
+{-# LANGUAGE TypeFamilies #-}
+{-# LANGUAGE TypeOperators #-}
+
+{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
+{-# OPTIONS_GHC -fno-warn-unused-binds #-}
+{-# OPTIONS_GHC -fno-warn-unused-imports #-}
+
+-- |
+-- Module : Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.List
+-- 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)
+--
+-- Lists snapshots.
+--
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.locations.snapshots.list@.
+module Network.Google.Resource.Dataflow.Projects.Locations.Snapshots.List
+ (
+ -- * REST Resource
+ ProjectsLocationsSnapshotsListResource
+
+ -- * Creating a Request
+ , projectsLocationsSnapshotsList
+ , ProjectsLocationsSnapshotsList
+
+ -- * Request Lenses
+ , plslXgafv
+ , plslUploadProtocol
+ , plslLocation
+ , plslAccessToken
+ , plslUploadType
+ , plslProjectId
+ , plslCallback
+ ) where
+
+import Network.Google.Dataflow.Types
+import Network.Google.Prelude
+
+-- | A resource alias for @dataflow.projects.locations.snapshots.list@ method which the
+-- 'ProjectsLocationsSnapshotsList' request conforms to.
+type ProjectsLocationsSnapshotsListResource =
+ "v1b3" :>
+ "projects" :>
+ Capture "projectId" Text :>
+ "locations" :>
+ Capture "location" Text :>
+ "snapshots" :>
+ QueryParam "$.xgafv" Xgafv :>
+ QueryParam "upload_protocol" Text :>
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :>
+ Get '[JSON] ListSnapshotsResponse
+
+-- | Lists snapshots.
+--
+-- /See:/ 'projectsLocationsSnapshotsList' smart constructor.
+data ProjectsLocationsSnapshotsList =
+ ProjectsLocationsSnapshotsList'
+ { _plslXgafv :: !(Maybe Xgafv)
+ , _plslUploadProtocol :: !(Maybe Text)
+ , _plslLocation :: !Text
+ , _plslAccessToken :: !(Maybe Text)
+ , _plslUploadType :: !(Maybe Text)
+ , _plslProjectId :: !Text
+ , _plslCallback :: !(Maybe Text)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
+
+-- | Creates a value of 'ProjectsLocationsSnapshotsList' with the minimum fields required to make a request.
+--
+-- Use one of the following lenses to modify other fields as desired:
+--
+-- * 'plslXgafv'
+--
+-- * 'plslUploadProtocol'
+--
+-- * 'plslLocation'
+--
+-- * 'plslAccessToken'
+--
+-- * 'plslUploadType'
+--
+-- * 'plslProjectId'
+--
+-- * 'plslCallback'
+projectsLocationsSnapshotsList
+ :: Text -- ^ 'plslLocation'
+ -> Text -- ^ 'plslProjectId'
+ -> ProjectsLocationsSnapshotsList
+projectsLocationsSnapshotsList pPlslLocation_ pPlslProjectId_ =
+ ProjectsLocationsSnapshotsList'
+ { _plslXgafv = Nothing
+ , _plslUploadProtocol = Nothing
+ , _plslLocation = pPlslLocation_
+ , _plslAccessToken = Nothing
+ , _plslUploadType = Nothing
+ , _plslProjectId = pPlslProjectId_
+ , _plslCallback = Nothing
+ }
+
+
+-- | V1 error format.
+plslXgafv :: Lens' ProjectsLocationsSnapshotsList (Maybe Xgafv)
+plslXgafv
+ = lens _plslXgafv (\ s a -> s{_plslXgafv = a})
+
+-- | Upload protocol for media (e.g. \"raw\", \"multipart\").
+plslUploadProtocol :: Lens' ProjectsLocationsSnapshotsList (Maybe Text)
+plslUploadProtocol
+ = lens _plslUploadProtocol
+ (\ s a -> s{_plslUploadProtocol = a})
+
+-- | The location to list snapshots in.
+plslLocation :: Lens' ProjectsLocationsSnapshotsList Text
+plslLocation
+ = lens _plslLocation (\ s a -> s{_plslLocation = a})
+
+-- | OAuth access token.
+plslAccessToken :: Lens' ProjectsLocationsSnapshotsList (Maybe Text)
+plslAccessToken
+ = lens _plslAccessToken
+ (\ s a -> s{_plslAccessToken = a})
+
+-- | Legacy upload protocol for media (e.g. \"media\", \"multipart\").
+plslUploadType :: Lens' ProjectsLocationsSnapshotsList (Maybe Text)
+plslUploadType
+ = lens _plslUploadType
+ (\ s a -> s{_plslUploadType = a})
+
+-- | The project ID to list snapshots for.
+plslProjectId :: Lens' ProjectsLocationsSnapshotsList Text
+plslProjectId
+ = lens _plslProjectId
+ (\ s a -> s{_plslProjectId = a})
+
+-- | JSONP
+plslCallback :: Lens' ProjectsLocationsSnapshotsList (Maybe Text)
+plslCallback
+ = lens _plslCallback (\ s a -> s{_plslCallback = a})
+
+instance GoogleRequest ProjectsLocationsSnapshotsList
+ where
+ type Rs ProjectsLocationsSnapshotsList =
+ ListSnapshotsResponse
+ type Scopes ProjectsLocationsSnapshotsList =
+ '["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 ProjectsLocationsSnapshotsList'{..}
+ = go _plslProjectId _plslLocation _plslXgafv
+ _plslUploadProtocol
+ _plslAccessToken
+ _plslUploadType
+ _plslCallback
+ (Just AltJSON)
+ dataflowService
+ where go
+ = buildClient
+ (Proxy ::
+ Proxy ProjectsLocationsSnapshotsListResource)
+ mempty
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Create.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Create.hs
index af512ac..8c2aaf5 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Create.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Create.hs
@@ -67,7 +67,8 @@ type ProjectsLocationsTemplatesCreateResource =
-- | Creates a Cloud Dataflow job from a template.
--
-- /See:/ 'projectsLocationsTemplatesCreate' smart constructor.
-data ProjectsLocationsTemplatesCreate = ProjectsLocationsTemplatesCreate'
+data ProjectsLocationsTemplatesCreate =
+ ProjectsLocationsTemplatesCreate'
{ _pltcXgafv :: !(Maybe Xgafv)
, _pltcUploadProtocol :: !(Maybe Text)
, _pltcLocation :: !Text
@@ -76,7 +77,9 @@ data ProjectsLocationsTemplatesCreate = ProjectsLocationsTemplatesCreate'
, _pltcPayload :: !CreateJobFromTemplateRequest
, _pltcProjectId :: !Text
, _pltcCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsTemplatesCreate' with the minimum fields required to make a request.
--
@@ -103,7 +106,7 @@ projectsLocationsTemplatesCreate
-> Text -- ^ 'pltcProjectId'
-> ProjectsLocationsTemplatesCreate
projectsLocationsTemplatesCreate pPltcLocation_ pPltcPayload_ pPltcProjectId_ =
- ProjectsLocationsTemplatesCreate'
+ ProjectsLocationsTemplatesCreate'
{ _pltcXgafv = Nothing
, _pltcUploadProtocol = Nothing
, _pltcLocation = pPltcLocation_
@@ -114,6 +117,7 @@ projectsLocationsTemplatesCreate pPltcLocation_ pPltcPayload_ pPltcProjectId_ =
, _pltcCallback = Nothing
}
+
-- | V1 error format.
pltcXgafv :: Lens' ProjectsLocationsTemplatesCreate (Maybe Xgafv)
pltcXgafv
@@ -125,7 +129,9 @@ pltcUploadProtocol
= lens _pltcUploadProtocol
(\ s a -> s{_pltcUploadProtocol = a})
--- | The location to which to direct the request.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- to which to direct the request.
pltcLocation :: Lens' ProjectsLocationsTemplatesCreate Text
pltcLocation
= lens _pltcLocation (\ s a -> s{_pltcLocation = a})
@@ -159,7 +165,8 @@ pltcCallback
= lens _pltcCallback (\ s a -> s{_pltcCallback = a})
instance GoogleRequest
- ProjectsLocationsTemplatesCreate where
+ ProjectsLocationsTemplatesCreate
+ where
type Rs ProjectsLocationsTemplatesCreate = Job
type Scopes ProjectsLocationsTemplatesCreate =
'["https://www.googleapis.com/auth/cloud-platform",
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Get.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Get.hs
index 620da0f..c73f4fd 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Get.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Get.hs
@@ -69,7 +69,8 @@ type ProjectsLocationsTemplatesGetResource =
-- | Get the template associated with a template.
--
-- /See:/ 'projectsLocationsTemplatesGet' smart constructor.
-data ProjectsLocationsTemplatesGet = ProjectsLocationsTemplatesGet'
+data ProjectsLocationsTemplatesGet =
+ ProjectsLocationsTemplatesGet'
{ _pltgXgafv :: !(Maybe Xgafv)
, _pltgUploadProtocol :: !(Maybe Text)
, _pltgLocation :: !Text
@@ -79,7 +80,9 @@ data ProjectsLocationsTemplatesGet = ProjectsLocationsTemplatesGet'
, _pltgView :: !(Maybe Text)
, _pltgProjectId :: !Text
, _pltgCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsTemplatesGet' with the minimum fields required to make a request.
--
@@ -107,7 +110,7 @@ projectsLocationsTemplatesGet
-> Text -- ^ 'pltgProjectId'
-> ProjectsLocationsTemplatesGet
projectsLocationsTemplatesGet pPltgLocation_ pPltgProjectId_ =
- ProjectsLocationsTemplatesGet'
+ ProjectsLocationsTemplatesGet'
{ _pltgXgafv = Nothing
, _pltgUploadProtocol = Nothing
, _pltgLocation = pPltgLocation_
@@ -119,6 +122,7 @@ projectsLocationsTemplatesGet pPltgLocation_ pPltgProjectId_ =
, _pltgCallback = Nothing
}
+
-- | V1 error format.
pltgXgafv :: Lens' ProjectsLocationsTemplatesGet (Maybe Xgafv)
pltgXgafv
@@ -130,7 +134,9 @@ pltgUploadProtocol
= lens _pltgUploadProtocol
(\ s a -> s{_pltgUploadProtocol = a})
--- | The location to which to direct the request.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- to which to direct the request.
pltgLocation :: Lens' ProjectsLocationsTemplatesGet Text
pltgLocation
= lens _pltgLocation (\ s a -> s{_pltgLocation = a})
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Launch.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Launch.hs
index 4958cc6..b37e8bc 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Launch.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/Templates/Launch.hs
@@ -75,7 +75,8 @@ type ProjectsLocationsTemplatesLaunchResource =
-- | Launch a template.
--
-- /See:/ 'projectsLocationsTemplatesLaunch' smart constructor.
-data ProjectsLocationsTemplatesLaunch = ProjectsLocationsTemplatesLaunch'
+data ProjectsLocationsTemplatesLaunch =
+ ProjectsLocationsTemplatesLaunch'
{ _pltlXgafv :: !(Maybe Xgafv)
, _pltlValidateOnly :: !(Maybe Bool)
, _pltlUploadProtocol :: !(Maybe Text)
@@ -88,7 +89,9 @@ data ProjectsLocationsTemplatesLaunch = ProjectsLocationsTemplatesLaunch'
, _pltlProjectId :: !Text
, _pltlCallback :: !(Maybe Text)
, _pltlDynamicTemplateGcsPath :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsTemplatesLaunch' with the minimum fields required to make a request.
--
@@ -123,7 +126,7 @@ projectsLocationsTemplatesLaunch
-> Text -- ^ 'pltlProjectId'
-> ProjectsLocationsTemplatesLaunch
projectsLocationsTemplatesLaunch pPltlLocation_ pPltlPayload_ pPltlProjectId_ =
- ProjectsLocationsTemplatesLaunch'
+ ProjectsLocationsTemplatesLaunch'
{ _pltlXgafv = Nothing
, _pltlValidateOnly = Nothing
, _pltlUploadProtocol = Nothing
@@ -138,6 +141,7 @@ projectsLocationsTemplatesLaunch pPltlLocation_ pPltlPayload_ pPltlProjectId_ =
, _pltlDynamicTemplateGcsPath = Nothing
}
+
-- | V1 error format.
pltlXgafv :: Lens' ProjectsLocationsTemplatesLaunch (Maybe Xgafv)
pltlXgafv
@@ -156,7 +160,9 @@ pltlUploadProtocol
= lens _pltlUploadProtocol
(\ s a -> s{_pltlUploadProtocol = a})
--- | The location to which to direct the request.
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- to which to direct the request.
pltlLocation :: Lens' ProjectsLocationsTemplatesLaunch Text
pltlLocation
= lens _pltlLocation (\ s a -> s{_pltlLocation = a})
@@ -210,7 +216,8 @@ pltlDynamicTemplateGcsPath
(\ s a -> s{_pltlDynamicTemplateGcsPath = a})
instance GoogleRequest
- ProjectsLocationsTemplatesLaunch where
+ ProjectsLocationsTemplatesLaunch
+ where
type Rs ProjectsLocationsTemplatesLaunch =
LaunchTemplateResponse
type Scopes ProjectsLocationsTemplatesLaunch =
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Locations/WorkerMessages.hs b/gen/Network/Google/Resource/Dataflow/Projects/Locations/WorkerMessages.hs
index c6fc1ba..3489874 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Locations/WorkerMessages.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Locations/WorkerMessages.hs
@@ -67,7 +67,8 @@ type ProjectsLocationsWorkerMessagesResource =
-- | Send a worker_message to the service.
--
-- /See:/ 'projectsLocationsWorkerMessages' smart constructor.
-data ProjectsLocationsWorkerMessages = ProjectsLocationsWorkerMessages'
+data ProjectsLocationsWorkerMessages =
+ ProjectsLocationsWorkerMessages'
{ _plwmXgafv :: !(Maybe Xgafv)
, _plwmUploadProtocol :: !(Maybe Text)
, _plwmLocation :: !Text
@@ -76,7 +77,9 @@ data ProjectsLocationsWorkerMessages = ProjectsLocationsWorkerMessages'
, _plwmPayload :: !SendWorkerMessagesRequest
, _plwmProjectId :: !Text
, _plwmCallback :: !(Maybe Text)
- } deriving (Eq,Show,Data,Typeable,Generic)
+ }
+ deriving (Eq, Show, Data, Typeable, Generic)
+
-- | Creates a value of 'ProjectsLocationsWorkerMessages' with the minimum fields required to make a request.
--
@@ -103,7 +106,7 @@ projectsLocationsWorkerMessages
-> Text -- ^ 'plwmProjectId'
-> ProjectsLocationsWorkerMessages
projectsLocationsWorkerMessages pPlwmLocation_ pPlwmPayload_ pPlwmProjectId_ =
- ProjectsLocationsWorkerMessages'
+ ProjectsLocationsWorkerMessages'
{ _plwmXgafv = Nothing
, _plwmUploadProtocol = Nothing
, _plwmLocation = pPlwmLocation_
@@ -114,6 +117,7 @@ projectsLocationsWorkerMessages pPlwmLocation_ pPlwmPayload_ pPlwmProjectId_ =
, _plwmCallback = Nothing
}
+
-- | V1 error format.
plwmXgafv :: Lens' ProjectsLocationsWorkerMessages (Maybe Xgafv)
plwmXgafv
@@ -125,7 +129,9 @@ plwmUploadProtocol
= lens _plwmUploadProtocol
(\ s a -> s{_plwmUploadProtocol = a})
--- | The location which contains the job
+-- | The [regional endpoint]
+-- (https:\/\/cloud.google.com\/dataflow\/docs\/concepts\/regional-endpoints)
+-- that contains the job.
plwmLocation :: Lens' ProjectsLocationsWorkerMessages Text
plwmLocation
= lens _plwmLocation (\ s a -> s{_plwmLocation = a})
@@ -159,7 +165,8 @@ plwmCallback
= lens _plwmCallback (\ s a -> s{_plwmCallback = a})
instance GoogleRequest
- ProjectsLocationsWorkerMessages where
+ ProjectsLocationsWorkerMessages
+ where
type Rs ProjectsLocationsWorkerMessages =
SendWorkerMessagesResponse
type Scopes ProjectsLocationsWorkerMessages =