{-# 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.Healthcare.Projects.Locations.DataSets.DicomStores.List -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Lists the DICOM stores in the given dataset. -- -- /See:/ for @healthcare.projects.locations.datasets.dicomStores.list@. module Network.Google.Resource.Healthcare.Projects.Locations.DataSets.DicomStores.List ( -- * REST Resource ProjectsLocationsDataSetsDicomStoresListResource -- * Creating a Request , projectsLocationsDataSetsDicomStoresList , ProjectsLocationsDataSetsDicomStoresList -- * Request Lenses , pldsdslParent , pldsdslXgafv , pldsdslUploadProtocol , pldsdslAccessToken , pldsdslUploadType , pldsdslFilter , pldsdslPageToken , pldsdslPageSize , pldsdslCallback ) where import Network.Google.Healthcare.Types import Network.Google.Prelude -- | A resource alias for @healthcare.projects.locations.datasets.dicomStores.list@ method which the -- 'ProjectsLocationsDataSetsDicomStoresList' request conforms to. type ProjectsLocationsDataSetsDicomStoresListResource = "v1beta1" :> Capture "parent" Text :> "dicomStores" :> QueryParam "$.xgafv" Xgafv :> QueryParam "upload_protocol" Text :> QueryParam "access_token" Text :> QueryParam "uploadType" Text :> QueryParam "filter" Text :> QueryParam "pageToken" Text :> QueryParam "pageSize" (Textual Int32) :> QueryParam "callback" Text :> QueryParam "alt" AltJSON :> Get '[JSON] ListDicomStoresResponse -- | Lists the DICOM stores in the given dataset. -- -- /See:/ 'projectsLocationsDataSetsDicomStoresList' smart constructor. data ProjectsLocationsDataSetsDicomStoresList = ProjectsLocationsDataSetsDicomStoresList' { _pldsdslParent :: !Text , _pldsdslXgafv :: !(Maybe Xgafv) , _pldsdslUploadProtocol :: !(Maybe Text) , _pldsdslAccessToken :: !(Maybe Text) , _pldsdslUploadType :: !(Maybe Text) , _pldsdslFilter :: !(Maybe Text) , _pldsdslPageToken :: !(Maybe Text) , _pldsdslPageSize :: !(Maybe (Textual Int32)) , _pldsdslCallback :: !(Maybe Text) } deriving (Eq, Show, Data, Typeable, Generic) -- | Creates a value of 'ProjectsLocationsDataSetsDicomStoresList' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'pldsdslParent' -- -- * 'pldsdslXgafv' -- -- * 'pldsdslUploadProtocol' -- -- * 'pldsdslAccessToken' -- -- * 'pldsdslUploadType' -- -- * 'pldsdslFilter' -- -- * 'pldsdslPageToken' -- -- * 'pldsdslPageSize' -- -- * 'pldsdslCallback' projectsLocationsDataSetsDicomStoresList :: Text -- ^ 'pldsdslParent' -> ProjectsLocationsDataSetsDicomStoresList projectsLocationsDataSetsDicomStoresList pPldsdslParent_ = ProjectsLocationsDataSetsDicomStoresList' { _pldsdslParent = pPldsdslParent_ , _pldsdslXgafv = Nothing , _pldsdslUploadProtocol = Nothing , _pldsdslAccessToken = Nothing , _pldsdslUploadType = Nothing , _pldsdslFilter = Nothing , _pldsdslPageToken = Nothing , _pldsdslPageSize = Nothing , _pldsdslCallback = Nothing } -- | Name of the dataset. pldsdslParent :: Lens' ProjectsLocationsDataSetsDicomStoresList Text pldsdslParent = lens _pldsdslParent (\ s a -> s{_pldsdslParent = a}) -- | V1 error format. pldsdslXgafv :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Xgafv) pldsdslXgafv = lens _pldsdslXgafv (\ s a -> s{_pldsdslXgafv = a}) -- | Upload protocol for media (e.g. \"raw\", \"multipart\"). pldsdslUploadProtocol :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslUploadProtocol = lens _pldsdslUploadProtocol (\ s a -> s{_pldsdslUploadProtocol = a}) -- | OAuth access token. pldsdslAccessToken :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslAccessToken = lens _pldsdslAccessToken (\ s a -> s{_pldsdslAccessToken = a}) -- | Legacy upload protocol for media (e.g. \"media\", \"multipart\"). pldsdslUploadType :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslUploadType = lens _pldsdslUploadType (\ s a -> s{_pldsdslUploadType = a}) -- | Restricts stores returned to those matching a filter. Syntax: -- https:\/\/cloud.google.com\/appengine\/docs\/standard\/python\/search\/query_strings -- Only filtering on labels is supported, for example \`labels.key=value\`. pldsdslFilter :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslFilter = lens _pldsdslFilter (\ s a -> s{_pldsdslFilter = a}) -- | The next_page_token value returned from the previous List request, if -- any. pldsdslPageToken :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslPageToken = lens _pldsdslPageToken (\ s a -> s{_pldsdslPageToken = a}) -- | Limit on the number of DICOM stores to return in a single response. If -- zero the default page size of 100 is used. pldsdslPageSize :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Int32) pldsdslPageSize = lens _pldsdslPageSize (\ s a -> s{_pldsdslPageSize = a}) . mapping _Coerce -- | JSONP pldsdslCallback :: Lens' ProjectsLocationsDataSetsDicomStoresList (Maybe Text) pldsdslCallback = lens _pldsdslCallback (\ s a -> s{_pldsdslCallback = a}) instance GoogleRequest ProjectsLocationsDataSetsDicomStoresList where type Rs ProjectsLocationsDataSetsDicomStoresList = ListDicomStoresResponse type Scopes ProjectsLocationsDataSetsDicomStoresList = '["https://www.googleapis.com/auth/cloud-platform"] requestClient ProjectsLocationsDataSetsDicomStoresList'{..} = go _pldsdslParent _pldsdslXgafv _pldsdslUploadProtocol _pldsdslAccessToken _pldsdslUploadType _pldsdslFilter _pldsdslPageToken _pldsdslPageSize _pldsdslCallback (Just AltJSON) healthcareService where go = buildClient (Proxy :: Proxy ProjectsLocationsDataSetsDicomStoresListResource) mempty