{- Gitea API. This documentation describes the Gitea API. OpenAPI Version: 3.0.1 Gitea API. API version: 1.20.6 Generated by OpenAPI Generator (https://openapi-generator.tech) -} {-| Module : Gitea.API.Settings -} {-# LANGUAGE FlexibleContexts #-} {-# LANGUAGE FlexibleInstances #-} {-# LANGUAGE MonoLocalBinds #-} {-# LANGUAGE MultiParamTypeClasses #-} {-# LANGUAGE OverloadedStrings #-} {-# OPTIONS_GHC -fno-warn-name-shadowing -fno-warn-unused-binds -fno-warn-unused-imports #-} module Gitea.API.Settings where import Gitea.Core import Gitea.MimeTypes import Gitea.Model as M import qualified Data.Aeson as A import qualified Data.ByteString as B import qualified Data.ByteString.Lazy as BL import qualified Data.Data as P (Typeable, TypeRep, typeOf, typeRep) import qualified Data.Foldable as P import qualified Data.Map as Map import qualified Data.Maybe as P import qualified Data.Proxy as P (Proxy(..)) import qualified Data.Set as Set import qualified Data.String as P import qualified Data.Text as T import qualified Data.Text.Encoding as T import qualified Data.Text.Lazy as TL import qualified Data.Text.Lazy.Encoding as TL import qualified Data.Time as TI import qualified Network.HTTP.Client.MultipartFormData as NH import qualified Network.HTTP.Media as ME import qualified Network.HTTP.Types as NH import qualified Web.FormUrlEncoded as WH import qualified Web.HttpApiData as WH import Data.Text (Text) import GHC.Base ((<|>)) import Prelude ((==),(/=),($), (.),(<$>),(<*>),(>>=),Maybe(..),Bool(..),Char,Double,FilePath,Float,Int,Integer,String,fmap,undefined,mempty,maybe,pure,Monad,Applicative,Functor) import qualified Prelude as P -- * Operations -- ** Settings -- *** getGeneralAPISettings -- | @GET \/settings\/api@ -- -- Get instance's global settings for api -- -- AuthMethod: 'AuthApiKeyTOTPHeader', 'AuthApiKeyAuthorizationHeaderToken', 'AuthApiKeySudoHeader', 'AuthBasicBasicAuth', 'AuthApiKeyAccessToken', 'AuthApiKeySudoParam', 'AuthApiKeyToken' -- getGeneralAPISettings :: GiteaRequest GetGeneralAPISettings MimeNoContent GeneralAPISettings MimeJSON getGeneralAPISettings = _mkRequest "GET" ["/settings/api"] `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyTOTPHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAuthorizationHeaderToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthBasicBasicAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAccessToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoParam) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyToken) data GetGeneralAPISettings -- | @application/json@ instance Produces GetGeneralAPISettings MimeJSON -- *** getGeneralAttachmentSettings -- | @GET \/settings\/attachment@ -- -- Get instance's global settings for Attachment -- -- AuthMethod: 'AuthApiKeyTOTPHeader', 'AuthApiKeyAuthorizationHeaderToken', 'AuthApiKeySudoHeader', 'AuthBasicBasicAuth', 'AuthApiKeyAccessToken', 'AuthApiKeySudoParam', 'AuthApiKeyToken' -- getGeneralAttachmentSettings :: GiteaRequest GetGeneralAttachmentSettings MimeNoContent GeneralAttachmentSettings MimeJSON getGeneralAttachmentSettings = _mkRequest "GET" ["/settings/attachment"] `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyTOTPHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAuthorizationHeaderToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthBasicBasicAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAccessToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoParam) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyToken) data GetGeneralAttachmentSettings -- | @application/json@ instance Produces GetGeneralAttachmentSettings MimeJSON -- *** getGeneralRepositorySettings -- | @GET \/settings\/repository@ -- -- Get instance's global settings for repositories -- -- AuthMethod: 'AuthApiKeyTOTPHeader', 'AuthApiKeyAuthorizationHeaderToken', 'AuthApiKeySudoHeader', 'AuthBasicBasicAuth', 'AuthApiKeyAccessToken', 'AuthApiKeySudoParam', 'AuthApiKeyToken' -- getGeneralRepositorySettings :: GiteaRequest GetGeneralRepositorySettings MimeNoContent GeneralRepoSettings MimeJSON getGeneralRepositorySettings = _mkRequest "GET" ["/settings/repository"] `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyTOTPHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAuthorizationHeaderToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthBasicBasicAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAccessToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoParam) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyToken) data GetGeneralRepositorySettings -- | @application/json@ instance Produces GetGeneralRepositorySettings MimeJSON -- *** getGeneralUISettings -- | @GET \/settings\/ui@ -- -- Get instance's global settings for ui -- -- AuthMethod: 'AuthApiKeyTOTPHeader', 'AuthApiKeyAuthorizationHeaderToken', 'AuthApiKeySudoHeader', 'AuthBasicBasicAuth', 'AuthApiKeyAccessToken', 'AuthApiKeySudoParam', 'AuthApiKeyToken' -- getGeneralUISettings :: GiteaRequest GetGeneralUISettings MimeNoContent GeneralUISettings MimeJSON getGeneralUISettings = _mkRequest "GET" ["/settings/ui"] `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyTOTPHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAuthorizationHeaderToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoHeader) `_hasAuthType` (P.Proxy :: P.Proxy AuthBasicBasicAuth) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyAccessToken) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeySudoParam) `_hasAuthType` (P.Proxy :: P.Proxy AuthApiKeyToken) data GetGeneralUISettings -- | @application/json@ instance Produces GetGeneralUISettings MimeJSON