Skip to content

Commit

Permalink
saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco Zocca committed Oct 30, 2023
1 parent cd7dc91 commit da6f48b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ms-azure-api/src/MSAzureAPI/CostManagement.hs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ generateCostDetailsReport rid = MSA.post MSA.APManagement [
, "generateCostDetailsReport"
] ("api-version" MSA.==: "2023-08-01")

data CDRQueryResult = CDRQResult {
cdrqrLocation :: Text
} deriving (Show, Generic)
instance A.FromJSON CDRQueryResult where
parseJSON = A.genericParseJSON (MSA.aesonOptions "cdrqr")


data CDROptions = CDROptions {
cdrTimePeriod :: CDRTimePeriod
} deriving (Show, Generic)
Expand Down
2 changes: 1 addition & 1 deletion ms-azure-api/src/MSAzureAPI/Internal/Common.hs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import Text.URI (URI, mkURI)
-- ms-auth
import MSAuth (OAuth2Token(..), AccessToken(..), ExchangeToken(..), RefreshToken(..), OAuth2Error, IdToken(..))
-- req
import Network.HTTP.Req (Req, runReq, HttpBody(..), HttpConfig(..), HttpException(..), defaultHttpConfig, req, Option, (=:), GET(..), POST(..), PUT(..), DELETE(..), Url, Scheme(..), urlQ, useHttpsURI, https, (/:), ReqBodyJson(..), NoReqBody(..), oAuth2Bearer, HttpResponse(..), jsonResponse, JsonResponse, lbsResponse, LbsResponse, bsResponse, BsResponse, responseBody)
import Network.HTTP.Req (Req, runReq, HttpBody(..), HttpConfig(..), HttpException(..), defaultHttpConfig, req, Option, (=:), GET(..), POST(..), PUT(..), DELETE(..), Url, Scheme(..), urlQ, useHttpsURI, https, (/:), ReqBodyJson(..), NoReqBody(..), oAuth2Bearer, HttpResponse(..), jsonResponse, JsonResponse, lbsResponse, LbsResponse, bsResponse, BsResponse, responseBody, responseHeader)
-- text
import Data.Text (Text, pack, unpack)
-- unliftio
Expand Down

0 comments on commit da6f48b

Please sign in to comment.