-
Notifications
You must be signed in to change notification settings - Fork 4
/
flags.clj
33 lines (30 loc) · 976 Bytes
/
flags.clj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(ns happygapi.sql.flags
"Cloud SQL Admin API: flags.
API for Cloud SQL database instance management
See: https://developers.google.com/cloud-sql/api/reference/rest/v1beta4/flags"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn list$
"https://developers.google.com/cloud-sql/api/reference/rest/v1beta4/flags/list
Required parameters: none
Optional parameters: databaseVersion
List all available database flags for Cloud SQL instances."
{:scopes ["https://www.googleapis.com/auth/cloud-platform"
"https://www.googleapis.com/auth/sqlservice.admin"]}
[auth args]
{:pre [(util/has-keys? args #{})]}
(util/get-response
(http/get
(util/get-url
"https://sqladmin.googleapis.com/"
"sql/v1beta4/flags"
#{}
args)
(merge-with
merge
{:throw-exceptions false,
:query-params args,
:accept :json,
:as :json}
auth))))