/
hybrid.clj
36 lines (32 loc) · 1.54 KB
/
hybrid.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
34
35
36
(ns happygapi.apigee.hybrid
"Apigee API: hybrid.
The Apigee API lets you programmatically manage Apigee hybrid with a set of RESTful operations, including:<ul> <li>Create, edit, and delete API proxies</li> <li>Manage users</li> <li>Deploy and undeploy proxy revisions</li> <li>Configure environments</li></ul><p>For information on using the APIs described in this section, see <a href=\"/hybrid/api-get-started\">Get started using the APIs</a>.</p><p><strong>Note:</strong> This product is available as a free trial for a time period of 60 days.
See: https://cloud.google.com/apigee-api-management/api/reference/rest/v1/hybrid"
(:require [cheshire.core :as json]
[clj-http.client :as http]
[happy.util :as util]))
(defn issuers-list$
"https://cloud.google.com/apigee-api-management/api/reference/rest/v1/hybrid/issuers/list
Required parameters: name
Optional parameters: none
Lists hybrid services and its trusted issuers service account ids.
This api is authenticated and unauthorized(allow all the users) and used by
runtime authn-authz service to query control plane's issuer service account
ids."
{:scopes ["https://www.googleapis.com/auth/cloud-platform"]}
[auth parameters]
{:pre [(util/has-keys? parameters #{:name})]}
(util/get-response
(http/get
(util/get-url
"https://apigee.googleapis.com/"
"v1/{+name}"
#{:name}
parameters)
(merge-with
merge
{:throw-exceptions false,
:query-params parameters,
:accept :json,
:as :json}
auth))))