You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+60-21Lines changed: 60 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,43 +4,83 @@ gcp-api is a Clojure library which provides programmatic access to GCP services
4
4
5
5
## Rationale
6
6
7
-
See aws-api's rationale [here](https://github.com/cognitect-labs/aws-api#rationale).
7
+
See aws-api's rationale [here](https://github.com/cognitect-labs/aws-api#rationale).
8
8
9
+
## Approach
9
10
10
-
## Approach
11
+
Much the same as aws-api's [approach](https://github.com/cognitect-labs/aws-api#approach), this library publishes
12
+
descriptor files that specify the operations, inputs, and outputs. These descriptor files are created from
13
+
the [GCP discovery documents](https://developers.google.com/discovery/v1/reference).
11
14
12
-
Much the same as aws-api's [approach](https://github.com/cognitect-labs/aws-api#rationale), this library publishes descriptor files that specify the operations, inputs, and outputs.
13
-
These descriptor files are created from the [GCP discovery documents](https://developers.google.com/discovery/v1/reference).
14
-
15
-
The generated descriptor files are published in a separate repository located [here](https://github.com/ComputeSoftware/gcp-api-descriptors).
15
+
The generated descriptor files are published in a separate repository
16
+
located [here](https://github.com/ComputeSoftware/gcp-api-descriptors).
16
17
17
18
## Usage
18
19
19
-
Using gcp-api requires you to add `gcp-api` and the service(s) of your choosing.
20
-
In the below example we add the [GCP Compute Engine API](https://cloud.google.com/compute/docs/reference/rest/v1/)`gcp-api/compute`.
21
-
Note that you must replace part of the `:deps/root` path with the API version you want to use.
20
+
Using gcp-api requires you to add `gcp-api/gcp-api` and the service(s) of your choosing. In the below example we add
21
+
the [GCP Compute Engine API](https://cloud.google.com/compute/docs/reference/rest/v1/)`gcp-api/compute`. Note that you
22
+
must replace part of the `:deps/root` path with the API version you want to use.
23
+
24
+
To use, for example, the [compute v1 api](https://cloud.google.com/compute/docs/reference/rest/v1), add the following to
"description""The name of the zone for this request."
54
+
"required"true
55
+
"pattern""[a-z](?:[-a-z0-9]{0,61}[a-z0-9])?"
56
+
"location""path"}
57
+
"maxResults" {"type""integer"
58
+
"description""The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)"
59
+
"default""500"
60
+
"format""uint32"
61
+
"minimum""0"
62
+
"location""query"}
63
+
...}
64
+
:compute.gcp.descriptor/description"Retrieves the list of instances contained within the specified zone."}
0 commit comments