google-api-client 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/google-api-client.gemspec +4 -3
- data/lib/google/api_client/client_secrets.rb +1 -1
- data/lib/google/apis/core/download.rb +10 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/.env +4 -0
- data/samples/web/.env +2 -0
- data/samples/web/views/home.erb +0 -1
- metadata +5 -71
- data/api_names_out.yaml +0 -28434
- data/generated/google/apis/sheets_v1.rb +0 -43
- data/generated/google/apis/sheets_v1/classes.rb +0 -4542
- data/generated/google/apis/sheets_v1/representations.rb +0 -1703
- data/generated/google/apis/sheets_v1/service.rb +0 -363
- data/script/generate +0 -105
- data/script/package +0 -8
- data/script/release +0 -15
- data/spec/fixtures/files/api_names.yaml +0 -3
- data/spec/fixtures/files/auth_stored_credentials.json +0 -8
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/client_secrets.json +0 -1
- data/spec/fixtures/files/invalid.json +0 -1
- data/spec/fixtures/files/test.blah +0 -1
- data/spec/fixtures/files/test.txt +0 -1
- data/spec/fixtures/files/test_api.json +0 -440
- data/spec/google/api_client/auth/storage_spec.rb +0 -120
- data/spec/google/api_client/auth/storages/file_store_spec.rb +0 -39
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +0 -68
- data/spec/google/api_client/client_secrets_spec.rb +0 -389
- data/spec/google/apis/core/api_command_spec.rb +0 -209
- data/spec/google/apis/core/batch_spec.rb +0 -142
- data/spec/google/apis/core/download_spec.rb +0 -103
- data/spec/google/apis/core/hashable_spec.rb +0 -60
- data/spec/google/apis/core/http_command_spec.rb +0 -303
- data/spec/google/apis/core/json_representation_spec.rb +0 -199
- data/spec/google/apis/core/service_spec.rb +0 -313
- data/spec/google/apis/core/upload_spec.rb +0 -300
- data/spec/google/apis/generated_spec.rb +0 -27
- data/spec/google/apis/generator/generator_spec.rb +0 -324
- data/spec/google/apis/logging_spec.rb +0 -100
- data/spec/google/apis/options_spec.rb +0 -40
- data/spec/integration_tests/adsense_spec.rb +0 -29
- data/spec/integration_tests/drive_spec.rb +0 -35
- data/spec/integration_tests/pubsub_spec.rb +0 -48
- data/spec/integration_tests/url_shortener_spec.rb +0 -45
- data/spec/spec_helper.rb +0 -153
- data/spec/spec_helper/load_path_spec.rb +0 -33
data/script/package
DELETED
data/script/release
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
#!/usr/bin/env bash
|
2
|
-
# Usage: script/release
|
3
|
-
# Build the package, tag a commit, push it to origin, and then release the
|
4
|
-
# package publicly.
|
5
|
-
|
6
|
-
set -e
|
7
|
-
|
8
|
-
version="$(script/package | grep Version: | awk '{print $2}')"
|
9
|
-
[ -n "$version" ] || exit 1
|
10
|
-
|
11
|
-
git commit --allow-empty -a -m "Release $version"
|
12
|
-
git tag "$version"
|
13
|
-
git push --tags origin
|
14
|
-
gem push pkg/*-${version}.gem
|
15
|
-
|
@@ -1,8 +0,0 @@
|
|
1
|
-
{ "access_token":"access_token_123456789",
|
2
|
-
"authorization_uri":"https://accounts.google.com/o/oauth2/auth",
|
3
|
-
"client_id":"123456789p.apps.googleusercontent.com",
|
4
|
-
"client_secret":"very_secret",
|
5
|
-
"expires_in":3600,
|
6
|
-
"refresh_token":"refresh_token_12345679",
|
7
|
-
"token_credential_uri":"https://accounts.google.com/o/oauth2/token",
|
8
|
-
"issued_at":1386053761}
|
File without changes
|
@@ -1 +0,0 @@
|
|
1
|
-
{"installed":{"auth_uri":"https://accounts.google.com/o/oauth2/auth","client_secret":"i8YaXdGgiQ4_KrTVNGsB7QP1","token_uri":"https://accounts.google.com/o/oauth2/token","client_email":"","client_x509_cert_url":"","client_id":"898243283568.apps.googleusercontent.com","auth_provider_x509_cert_url":"https://www.googleapis.com/oauth2/v1/certs"}}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"invalid"}
|
@@ -1 +0,0 @@
|
|
1
|
-
test
|
@@ -1 +0,0 @@
|
|
1
|
-
Hello world
|
@@ -1,440 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"kind": "discovery#describeItem",
|
3
|
-
"name": "test",
|
4
|
-
"version": "v1",
|
5
|
-
"id": "test:v1",
|
6
|
-
"description": "Discovery doc API used for testing the code generator",
|
7
|
-
"basePath": "/test/",
|
8
|
-
"rootUrl": "https://www.googleapis.com/",
|
9
|
-
"servicePath": "test/v1/",
|
10
|
-
"rpcPath": "/rpc",
|
11
|
-
"auth": {
|
12
|
-
"oauth2": {
|
13
|
-
"scopes": {
|
14
|
-
"https://www.googleapis.com/auth/test": {
|
15
|
-
"description": "View and manage things"
|
16
|
-
},
|
17
|
-
"https://www.googleapis.com/auth/test.readonly": {
|
18
|
-
"description": "View things"
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|
22
|
-
},
|
23
|
-
"parameters": {
|
24
|
-
"alt": {
|
25
|
-
"type": "string",
|
26
|
-
"description": "Data format for the response.",
|
27
|
-
"default": "json",
|
28
|
-
"enum": [
|
29
|
-
"json"
|
30
|
-
],
|
31
|
-
"enumDescriptions": [
|
32
|
-
"Responses with Content-Type of application/json"
|
33
|
-
],
|
34
|
-
"location": "query"
|
35
|
-
},
|
36
|
-
"fields": {
|
37
|
-
"type": "string",
|
38
|
-
"description": "Selector specifying which fields to include in a partial response.",
|
39
|
-
"location": "query"
|
40
|
-
},
|
41
|
-
"key": {
|
42
|
-
"type": "string",
|
43
|
-
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
|
44
|
-
"location": "query"
|
45
|
-
},
|
46
|
-
"oauth_token": {
|
47
|
-
"type": "string",
|
48
|
-
"description": "OAuth 2.0 token for the current user.",
|
49
|
-
"location": "query"
|
50
|
-
},
|
51
|
-
"prettyPrint": {
|
52
|
-
"type": "boolean",
|
53
|
-
"description": "Returns response with indentations and line breaks.",
|
54
|
-
"default": "true",
|
55
|
-
"location": "query"
|
56
|
-
},
|
57
|
-
"quotaUser": {
|
58
|
-
"type": "string",
|
59
|
-
"description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.",
|
60
|
-
"location": "query"
|
61
|
-
},
|
62
|
-
"userIp": {
|
63
|
-
"type": "string",
|
64
|
-
"description": "IP address of the site where the request originates. Use this if you want to enforce per-user limits.",
|
65
|
-
"location": "query"
|
66
|
-
}
|
67
|
-
},
|
68
|
-
"schemas": {
|
69
|
-
"Thing": {
|
70
|
-
"id": "Thing",
|
71
|
-
"type": "object",
|
72
|
-
"properties": {
|
73
|
-
"id": {
|
74
|
-
"type": "string"
|
75
|
-
},
|
76
|
-
"etag": {
|
77
|
-
"type": "string"
|
78
|
-
},
|
79
|
-
"kind": {
|
80
|
-
"type": "string",
|
81
|
-
"default": "test#thing"
|
82
|
-
},
|
83
|
-
"name": {
|
84
|
-
"type": "string"
|
85
|
-
},
|
86
|
-
"enabled": {
|
87
|
-
"type": "boolean"
|
88
|
-
},
|
89
|
-
"hat": {
|
90
|
-
"$ref": "Hat"
|
91
|
-
},
|
92
|
-
"properties": {
|
93
|
-
"$ref": "HashLikeThing"
|
94
|
-
},
|
95
|
-
"photo": {
|
96
|
-
"type": "object",
|
97
|
-
"properties": {
|
98
|
-
"filename": {
|
99
|
-
"type": "string"
|
100
|
-
},
|
101
|
-
"hash": {
|
102
|
-
"type": "string"
|
103
|
-
},
|
104
|
-
"hashAlgorithm": {
|
105
|
-
"type": "string"
|
106
|
-
},
|
107
|
-
"size": {
|
108
|
-
"type": "integer"
|
109
|
-
},
|
110
|
-
"type": {
|
111
|
-
"type": "string"
|
112
|
-
}
|
113
|
-
}
|
114
|
-
}
|
115
|
-
}
|
116
|
-
},
|
117
|
-
"Hat": {
|
118
|
-
"type": "object",
|
119
|
-
"variant": {
|
120
|
-
"discriminant": "type",
|
121
|
-
"map": [
|
122
|
-
{
|
123
|
-
"type_value": "topHat",
|
124
|
-
"$ref": "TopHat"
|
125
|
-
},
|
126
|
-
{
|
127
|
-
"type_value": "baseballHat",
|
128
|
-
"$ref": "BaseballHat"
|
129
|
-
}
|
130
|
-
]
|
131
|
-
}
|
132
|
-
},
|
133
|
-
"TopHat": {
|
134
|
-
"type": "object",
|
135
|
-
"properties": {
|
136
|
-
"type": {
|
137
|
-
"type": "string"
|
138
|
-
},
|
139
|
-
"height": {
|
140
|
-
"type": "number"
|
141
|
-
}
|
142
|
-
}
|
143
|
-
},
|
144
|
-
"BaseballHat": {
|
145
|
-
"type": "object",
|
146
|
-
"properties": {
|
147
|
-
"type": {
|
148
|
-
"type": "string"
|
149
|
-
},
|
150
|
-
"color": {
|
151
|
-
"type": "string"
|
152
|
-
}
|
153
|
-
}
|
154
|
-
},
|
155
|
-
"HashLikeThing": {
|
156
|
-
"id": "HashLikeThing",
|
157
|
-
"type": "object",
|
158
|
-
"additionalProperties": {
|
159
|
-
"type": "string",
|
160
|
-
"description": "A mapping from export format to URL"
|
161
|
-
}
|
162
|
-
},
|
163
|
-
"TestThing": {
|
164
|
-
"id": "TestThing",
|
165
|
-
"type": "object",
|
166
|
-
"properties" :{}
|
167
|
-
},
|
168
|
-
"TestAnotherThing": {
|
169
|
-
"id": "TestAnotherThing",
|
170
|
-
"type": "object",
|
171
|
-
"properties" :{}
|
172
|
-
},
|
173
|
-
"ThingList": {
|
174
|
-
"id": "ThingList",
|
175
|
-
"type": "object",
|
176
|
-
"properties": {
|
177
|
-
"items": {
|
178
|
-
"type": "array",
|
179
|
-
"description": "The actual list of files.",
|
180
|
-
"items": {
|
181
|
-
"$ref": "Thing"
|
182
|
-
}
|
183
|
-
},
|
184
|
-
"kind": {
|
185
|
-
"type": "string",
|
186
|
-
"default": "test#thinglist"
|
187
|
-
}
|
188
|
-
}
|
189
|
-
},
|
190
|
-
"QueryResults": {
|
191
|
-
"id": "QueryResults",
|
192
|
-
"type": "object",
|
193
|
-
"properties": {
|
194
|
-
"rows": {
|
195
|
-
"$ref": "Rows"
|
196
|
-
}
|
197
|
-
}
|
198
|
-
},
|
199
|
-
"Rows": {
|
200
|
-
"id": "QueryResults",
|
201
|
-
"type": "array",
|
202
|
-
"items": {
|
203
|
-
"type": "object",
|
204
|
-
"properties": {
|
205
|
-
"value": {
|
206
|
-
"type": "string"
|
207
|
-
}
|
208
|
-
}
|
209
|
-
}
|
210
|
-
}
|
211
|
-
},
|
212
|
-
"methods": {
|
213
|
-
"query": {
|
214
|
-
"path": "query",
|
215
|
-
"id": "test.query",
|
216
|
-
"httpMethod": "GET",
|
217
|
-
"response": {
|
218
|
-
"$ref": "QueryResults"
|
219
|
-
//"$ref": "Rows" TODO: Support naked collections as a return value
|
220
|
-
},
|
221
|
-
"parameters": {
|
222
|
-
"s": {
|
223
|
-
"type": "string",
|
224
|
-
"location": "query",
|
225
|
-
"required": false,
|
226
|
-
"repeated": false
|
227
|
-
},
|
228
|
-
"i": {
|
229
|
-
"type": "integer",
|
230
|
-
"location": "query",
|
231
|
-
"required": false,
|
232
|
-
"repeated": false,
|
233
|
-
"minimum": "0",
|
234
|
-
"maximum": "4294967295",
|
235
|
-
"default": "20"
|
236
|
-
},
|
237
|
-
"n": {
|
238
|
-
"type": "number",
|
239
|
-
"location": "query",
|
240
|
-
"required": false,
|
241
|
-
"repeated": false
|
242
|
-
},
|
243
|
-
"b": {
|
244
|
-
"type": "boolean",
|
245
|
-
"location": "query",
|
246
|
-
"required": false,
|
247
|
-
"repeated": false
|
248
|
-
},
|
249
|
-
"a": {
|
250
|
-
"type": "any",
|
251
|
-
"location": "query",
|
252
|
-
"required": false,
|
253
|
-
"repeated": false
|
254
|
-
},
|
255
|
-
"e": {
|
256
|
-
"type": "string",
|
257
|
-
"location": "query",
|
258
|
-
"required": false,
|
259
|
-
"repeated": false,
|
260
|
-
"enum": [
|
261
|
-
"foo",
|
262
|
-
"bar"
|
263
|
-
]
|
264
|
-
},
|
265
|
-
"er": {
|
266
|
-
"type": "string",
|
267
|
-
"location": "query",
|
268
|
-
"required": false,
|
269
|
-
"repeated": true,
|
270
|
-
"enum": [
|
271
|
-
"one",
|
272
|
-
"two",
|
273
|
-
"three"
|
274
|
-
]
|
275
|
-
},
|
276
|
-
"sr": {
|
277
|
-
"type": "string",
|
278
|
-
"location": "query",
|
279
|
-
"required": false,
|
280
|
-
"repeated": true,
|
281
|
-
"pattern": "[a-z]+"
|
282
|
-
},
|
283
|
-
"do": {
|
284
|
-
"type": "string",
|
285
|
-
"location": "query",
|
286
|
-
"required": false
|
287
|
-
}
|
288
|
-
}
|
289
|
-
}
|
290
|
-
},
|
291
|
-
"resources": {
|
292
|
-
"things": {
|
293
|
-
"resources": {
|
294
|
-
"subthings": {
|
295
|
-
"methods": {
|
296
|
-
"list": {
|
297
|
-
"path": "things",
|
298
|
-
"id": "test.things.subthings.list",
|
299
|
-
"httpMethod": "GET",
|
300
|
-
"parameters": {
|
301
|
-
"max-results": {
|
302
|
-
"type": "number",
|
303
|
-
"location": "query",
|
304
|
-
"required": false
|
305
|
-
}
|
306
|
-
},
|
307
|
-
"response": {
|
308
|
-
"$ref": "ThingList"
|
309
|
-
}
|
310
|
-
}
|
311
|
-
}
|
312
|
-
}
|
313
|
-
},
|
314
|
-
"methods": {
|
315
|
-
"list": {
|
316
|
-
"path": "things",
|
317
|
-
"id": "test.things.list",
|
318
|
-
"httpMethod": "GET",
|
319
|
-
"parameters": {
|
320
|
-
"max-results": {
|
321
|
-
"type": "number",
|
322
|
-
"location": "query",
|
323
|
-
"required": false
|
324
|
-
}
|
325
|
-
},
|
326
|
-
"response": {
|
327
|
-
"$ref": "ThingList"
|
328
|
-
}
|
329
|
-
},
|
330
|
-
"delete": {
|
331
|
-
"path": "things/{id}",
|
332
|
-
"id": "test.things.delete",
|
333
|
-
"httpMethod": "DELETE",
|
334
|
-
"description": "Delete things",
|
335
|
-
"parameters": {
|
336
|
-
"id": {
|
337
|
-
"location": "path",
|
338
|
-
"required": true,
|
339
|
-
"description": "ID of the thing to delete",
|
340
|
-
"type": "string"
|
341
|
-
}
|
342
|
-
},
|
343
|
-
"parameterOrder": [
|
344
|
-
"id"
|
345
|
-
]
|
346
|
-
},
|
347
|
-
"get": {
|
348
|
-
"path": "things/{id}",
|
349
|
-
"id": "test.things.get",
|
350
|
-
"httpMethod": "GET",
|
351
|
-
"description": "Get things",
|
352
|
-
"supportsMediaDownload": true,
|
353
|
-
"parameters": {
|
354
|
-
"id": {
|
355
|
-
"location": "path",
|
356
|
-
"required": true,
|
357
|
-
"description": "ID of the thing to get",
|
358
|
-
"type": "string"
|
359
|
-
}
|
360
|
-
},
|
361
|
-
"supportsMediaDownload": true,
|
362
|
-
"parameterOrder": [
|
363
|
-
"id"
|
364
|
-
],
|
365
|
-
"response": {
|
366
|
-
"$ref": "Thing"
|
367
|
-
}
|
368
|
-
},
|
369
|
-
"create": {
|
370
|
-
"path": "things",
|
371
|
-
"id": "test.things.create",
|
372
|
-
"httpMethod": "POST",
|
373
|
-
"description": "Create things",
|
374
|
-
"request": {
|
375
|
-
"$ref": "Thing"
|
376
|
-
},
|
377
|
-
"response": {
|
378
|
-
"$ref": "Thing"
|
379
|
-
},
|
380
|
-
"supportsMediaUpload": true,
|
381
|
-
"mediaUpload": {
|
382
|
-
"accept": [
|
383
|
-
"*/*"
|
384
|
-
],
|
385
|
-
"maxSize": "1KB",
|
386
|
-
"protocols": {
|
387
|
-
"simple": {
|
388
|
-
"multipart": true,
|
389
|
-
"path": "upload/things/{id}"
|
390
|
-
},
|
391
|
-
"resumable": {
|
392
|
-
"multipart": true,
|
393
|
-
"path": "/resumable/upload/things/{id}"
|
394
|
-
}
|
395
|
-
}
|
396
|
-
}
|
397
|
-
},
|
398
|
-
"update": {
|
399
|
-
"path": "things/{id}",
|
400
|
-
"id": "test.things.update",
|
401
|
-
"httpMethod": "PUT",
|
402
|
-
"description": "Update things",
|
403
|
-
"parameters": {
|
404
|
-
"id": {
|
405
|
-
"location": "path",
|
406
|
-
"description": "ID of the thing to update",
|
407
|
-
"type": "string"
|
408
|
-
}
|
409
|
-
},
|
410
|
-
"parameterOrder": [
|
411
|
-
"id"
|
412
|
-
],
|
413
|
-
"request": {
|
414
|
-
"$ref": "Thing"
|
415
|
-
},
|
416
|
-
"response": {
|
417
|
-
"$ref": "Thing"
|
418
|
-
},
|
419
|
-
"supportsMediaUpload": true,
|
420
|
-
"mediaUpload": {
|
421
|
-
"accept": [
|
422
|
-
"*/*"
|
423
|
-
],
|
424
|
-
"maxSize": "1KB",
|
425
|
-
"protocols": {
|
426
|
-
"simple": {
|
427
|
-
"multipart": true,
|
428
|
-
"path": "upload/things/{id}"
|
429
|
-
},
|
430
|
-
"resumable": {
|
431
|
-
"multipart": true,
|
432
|
-
"path": "/resumable/upload/things/{id}"
|
433
|
-
}
|
434
|
-
}
|
435
|
-
}
|
436
|
-
}
|
437
|
-
}
|
438
|
-
}
|
439
|
-
}
|
440
|
-
}
|