summaryrefslogtreecommitdiff
path: root/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs
diff options
context:
space:
mode:
Diffstat (limited to 'gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs')
-rw-r--r--gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs46
1 files changed, 12 insertions, 34 deletions
diff --git a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs
index 61dd537..d7eee23 100644
--- a/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs
+++ b/gen/Network/Google/Resource/Dataflow/Projects/Jobs/Debug/GetConfig.hs
@@ -22,7 +22,7 @@
--
-- Get encoded debug configuration for component. Not cacheable.
--
--- /See:/ <https://cloud.google.com/dataflow Google Dataflow API Reference> for @dataflow.projects.jobs.debug.getConfig@.
+-- /See:/ <https://cloud.google.com/dataflow Dataflow API Reference> for @dataflow.projects.jobs.debug.getConfig@.
module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
(
-- * REST Resource
@@ -36,11 +36,9 @@ module Network.Google.Resource.Dataflow.Projects.Jobs.Debug.GetConfig
, pjdgcXgafv
, pjdgcJobId
, pjdgcUploadProtocol
- , pjdgcPp
, pjdgcAccessToken
, pjdgcUploadType
, pjdgcPayload
- , pjdgcBearerToken
, pjdgcProjectId
, pjdgcCallback
) where
@@ -58,29 +56,25 @@ type ProjectsJobsDebugGetConfigResource =
Capture "jobId" Text :>
"debug" :>
"getConfig" :>
- QueryParam "$.xgafv" 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] GetDebugConfigRequest :>
- Post '[JSON] GetDebugConfigResponse
+ QueryParam "access_token" Text :>
+ QueryParam "uploadType" Text :>
+ QueryParam "callback" Text :>
+ QueryParam "alt" AltJSON :>
+ ReqBody '[JSON] GetDebugConfigRequest :>
+ Post '[JSON] GetDebugConfigResponse
-- | Get encoded debug configuration for component. Not cacheable.
--
-- /See:/ 'projectsJobsDebugGetConfig' smart constructor.
data ProjectsJobsDebugGetConfig = ProjectsJobsDebugGetConfig'
- { _pjdgcXgafv :: !(Maybe Text)
+ { _pjdgcXgafv :: !(Maybe Xgafv)
, _pjdgcJobId :: !Text
, _pjdgcUploadProtocol :: !(Maybe Text)
- , _pjdgcPp :: !Bool
, _pjdgcAccessToken :: !(Maybe Text)
, _pjdgcUploadType :: !(Maybe Text)
, _pjdgcPayload :: !GetDebugConfigRequest
- , _pjdgcBearerToken :: !(Maybe Text)
, _pjdgcProjectId :: !Text
, _pjdgcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
@@ -95,16 +89,12 @@ data ProjectsJobsDebugGetConfig = ProjectsJobsDebugGetConfig'
--
-- * 'pjdgcUploadProtocol'
--
--- * 'pjdgcPp'
---
-- * 'pjdgcAccessToken'
--
-- * 'pjdgcUploadType'
--
-- * 'pjdgcPayload'
--
--- * 'pjdgcBearerToken'
---
-- * 'pjdgcProjectId'
--
-- * 'pjdgcCallback'
@@ -118,17 +108,15 @@ projectsJobsDebugGetConfig pPjdgcJobId_ pPjdgcPayload_ pPjdgcProjectId_ =
{ _pjdgcXgafv = Nothing
, _pjdgcJobId = pPjdgcJobId_
, _pjdgcUploadProtocol = Nothing
- , _pjdgcPp = True
, _pjdgcAccessToken = Nothing
, _pjdgcUploadType = Nothing
, _pjdgcPayload = pPjdgcPayload_
- , _pjdgcBearerToken = Nothing
, _pjdgcProjectId = pPjdgcProjectId_
, _pjdgcCallback = Nothing
}
-- | V1 error format.
-pjdgcXgafv :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
+pjdgcXgafv :: Lens' ProjectsJobsDebugGetConfig (Maybe Xgafv)
pjdgcXgafv
= lens _pjdgcXgafv (\ s a -> s{_pjdgcXgafv = a})
@@ -143,10 +131,6 @@ pjdgcUploadProtocol
= lens _pjdgcUploadProtocol
(\ s a -> s{_pjdgcUploadProtocol = a})
--- | Pretty-print response.
-pjdgcPp :: Lens' ProjectsJobsDebugGetConfig Bool
-pjdgcPp = lens _pjdgcPp (\ s a -> s{_pjdgcPp = a})
-
-- | OAuth access token.
pjdgcAccessToken :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
pjdgcAccessToken
@@ -164,12 +148,6 @@ pjdgcPayload :: Lens' ProjectsJobsDebugGetConfig GetDebugConfigRequest
pjdgcPayload
= lens _pjdgcPayload (\ s a -> s{_pjdgcPayload = a})
--- | OAuth bearer token.
-pjdgcBearerToken :: Lens' ProjectsJobsDebugGetConfig (Maybe Text)
-pjdgcBearerToken
- = lens _pjdgcBearerToken
- (\ s a -> s{_pjdgcBearerToken = a})
-
-- | The project id.
pjdgcProjectId :: Lens' ProjectsJobsDebugGetConfig Text
pjdgcProjectId
@@ -188,14 +166,14 @@ instance GoogleRequest ProjectsJobsDebugGetConfig
GetDebugConfigResponse
type Scopes ProjectsJobsDebugGetConfig =
'["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 ProjectsJobsDebugGetConfig'{..}
= go _pjdgcProjectId _pjdgcJobId _pjdgcXgafv
_pjdgcUploadProtocol
- (Just _pjdgcPp)
_pjdgcAccessToken
_pjdgcUploadType
- _pjdgcBearerToken
_pjdgcCallback
(Just AltJSON)
_pjdgcPayload