summaryrefslogtreecommitdiff
path: root/gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots
diff options
context:
space:
mode:
Diffstat (limited to 'gen/Network/Google/Resource/Dataflow/Projects/Locations/Snapshots')
-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
3 files changed, 549 insertions, 0 deletions
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