Skip to content

Commit c0a2476

Browse files
committed
feat(deps): update-json using discovery API
Instead of depending on the google go client API repository, I now use the original data source, namely the discovery API. fixes #5
1 parent c8061eb commit c0a2476

85 files changed

Lines changed: 6937 additions & 1097 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Makefile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: json-to-xml clean help api-deps regen-apis license update-json
1+
.PHONY: json-to-xml clean help api-deps regen-apis license
22
.SUFFIXES:
33

44
include Makefile.helpers
@@ -36,7 +36,7 @@ help:
3636
$(info help-api - show all api targets to build individually)
3737
$(info help - print this help)
3838
$(info license - regenerate the main license file)
39-
$(info update-json - copy API definitions from source GOOGLE_GO_APIS_REPO=<path>)
39+
$(info update-json - rediscover API schema json files and update api-list.yaml with latest versions)
4040
$(info api-deps - generate a file to tell make what API file dependencies will be)
4141

4242
$(PYTHON):
@@ -50,9 +50,6 @@ $(API_DEPS): $(API_DEPS_TPL) $(MAKO_STANDARD_DEPENDENCIES) $(API_LIST)
5050

5151
api-deps: $(API_DEPS)
5252

53-
$(API_LIST): $(API_VERSION_GEN)
54-
$(API_VERSION_GEN) etc/api $@ $@
55-
5653
include $(API_DEPS)
5754

5855
LICENSE.md: $(MAKO_SRC)/LICENSE.md.mako $(API_SHARED_INFO) $(MAKO_RENDER)
@@ -65,6 +62,3 @@ regen-apis: clean-apis apis license
6562
clean: clean-apis
6663
-rm -Rf $(VENV_DIR)
6764
-rm $(API_DEPS)
68-
69-
update-json:
70-
etc/bin/update-json.sh $(GOOGLE_GO_APIS_REPO) etc/api

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,6 @@ What follows is a list of other material that is licensed differently.
3535

3636

3737
[oauth]: https://crates.io/crates/yup-oauth2
38-
[google-lic]: https://github.com/google/google-api-go-client/blob/master/LICENSE
38+
[google-lic]: https://github.com/google/google-api-go-client/blob/master/LICENSE
39+
[api-discovery-video]: https://www.youtube.com/watch?v=lQbT1NrxpUo
40+
[api-discovery]: https://developers.google.com/discovery/v1/using

etc/api/adexchangebuyer/v1.2/adexchangebuyer-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/lyqQOHJaq-GnjxN_zYrPyfHYUGs\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/dEGRoa3EnpVgcuPKmp71Dn4qTV4\"",
44
"discoveryVersion": "v1",
55
"id": "adexchangebuyer:v1.2",
66
"name": "adexchangebuyer",
77
"canonicalName": "Ad Exchange Buyer",
88
"version": "v1.2",
9-
"revision": "20141123",
9+
"revision": "20150218",
1010
"title": "Ad Exchange Buyer API",
1111
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
1212
"ownerDomain": "google.com",

etc/api/adexchangebuyer/v1.3/adexchangebuyer-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/TNq58uhDuCyuU5JtNXwx-a0s4AI\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/2M7A4OXwHvtbF26OH-dqTpdcCxY\"",
44
"discoveryVersion": "v1",
55
"id": "adexchangebuyer:v1.3",
66
"name": "adexchangebuyer",
77
"canonicalName": "Ad Exchange Buyer",
88
"version": "v1.3",
9-
"revision": "20141123",
9+
"revision": "20150218",
1010
"title": "Ad Exchange Buyer API",
1111
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
1212
"ownerDomain": "google.com",

etc/api/adexchangeseller/v1.1/adexchangeseller-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Ob-vIbU0CMw39spLQLZEQavYp3Q\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/LJI9qShCZjBHg072lrR-8ZdwqHs\"",
44
"discoveryVersion": "v1",
55
"id": "adexchangeseller:v1.1",
66
"name": "adexchangeseller",
77
"canonicalName": "Ad Exchange Seller",
88
"version": "v1.1",
9-
"revision": "20141112",
9+
"revision": "20150225",
1010
"title": "Ad Exchange Seller API",
1111
"description": "Gives Ad Exchange seller users access to their inventory and the ability to generate reports",
1212
"ownerDomain": "google.com",

etc/api/adexchangeseller/v1/adexchangeseller-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/kgKc4O1bceVftsMmf3p1OXF57gg\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/Udv6xd2CTeF5gBc5RK-Xrdwi5BU\"",
44
"discoveryVersion": "v1",
55
"id": "adexchangeseller:v1",
66
"name": "adexchangeseller",
77
"canonicalName": "Ad Exchange Seller",
88
"version": "v1",
9-
"revision": "20141112",
9+
"revision": "20150225",
1010
"title": "Ad Exchange Seller API",
1111
"description": "Gives Ad Exchange seller users access to their inventory and the ability to generate reports",
1212
"ownerDomain": "google.com",

etc/api/adexchangeseller/v2.0/adexchangeseller-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/6aC1_omptpkys969gj83ZtJAvZ8\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/-2ppmthl020S47FH8VO33hbOboc\"",
44
"discoveryVersion": "v1",
55
"id": "adexchangeseller:v2.0",
66
"name": "adexchangeseller",
77
"canonicalName": "Ad Exchange Seller",
88
"version": "v2.0",
9-
"revision": "20141112",
9+
"revision": "20150225",
1010
"title": "Ad Exchange Seller API",
1111
"description": "Gives Ad Exchange seller users access to their inventory and the ability to generate reports",
1212
"ownerDomain": "google.com",

etc/api/admin/email_migration_v2/admin-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"uUWyYHXmEn-ab7WLvo8qNz2S8ws/Dam2iHq0kOgu8qnsdYB9fhgy5SY\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/_VRzIG5q4_x1FzCCxocLHIuiUhw\"",
44
"discoveryVersion": "v1",
55
"id": "admin:email_migration_v2",
66
"name": "admin",
77
"version": "email_migration_v2",
8-
"revision": "20140903",
8+
"revision": "20150303",
99
"title": "Email Migration API v2",
1010
"description": "Email Migration API lets you migrate emails of users to Google backends.",
1111
"ownerDomain": "google.com",

etc/api/adsense/v1.2/adsense-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/4sbh2CScTU4USzSvCohsjZ1YVxQ\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/qR09Xr4WyuppZd0FxNauFU4HZEY\"",
44
"discoveryVersion": "v1",
55
"id": "adsense:v1.2",
66
"name": "adsense",
77
"canonicalName": "AdSense",
88
"version": "v1.2",
9-
"revision": "20141218",
9+
"revision": "20150126",
1010
"title": "AdSense Management API",
1111
"description": "Gives AdSense publishers access to their inventory and the ability to generate reports",
1212
"ownerDomain": "google.com",

etc/api/adsense/v1.3/adsense-api.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"kind": "discovery#restDescription",
3-
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/gTf3J_Tcqy5jzBteF-x9VlOxF-c\"",
3+
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/QLzYLvfST0FjKuQb6H8Y9VPJgoE\"",
44
"discoveryVersion": "v1",
55
"id": "adsense:v1.3",
66
"name": "adsense",
77
"canonicalName": "AdSense",
88
"version": "v1.3",
9-
"revision": "20141218",
9+
"revision": "20150126",
1010
"title": "AdSense Management API",
1111
"description": "Gives AdSense publishers access to their inventory and the ability to generate reports",
1212
"ownerDomain": "google.com",

0 commit comments

Comments
 (0)