google-api-client 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  4. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +76 -1
  5. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +22 -0
  6. data/generated/google/apis/adsense_v1_4.rb +1 -1
  7. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  8. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  9. data/generated/google/apis/analyticsreporting_v4/classes.rb +32 -14
  10. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  11. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  12. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  13. data/generated/google/apis/appstate_v1.rb +1 -1
  14. data/generated/google/apis/bigquery_v2.rb +1 -1
  15. data/generated/google/apis/bigquery_v2/classes.rb +10 -0
  16. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  17. data/generated/google/apis/calendar_v3.rb +1 -1
  18. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  19. data/generated/google/apis/clouddebugger_v2/service.rb +2 -2
  20. data/generated/google/apis/compute_beta.rb +1 -1
  21. data/generated/google/apis/compute_beta/classes.rb +28 -5
  22. data/generated/google/apis/compute_beta/representations.rb +3 -0
  23. data/generated/google/apis/compute_beta/service.rb +1 -2
  24. data/generated/google/apis/compute_v1.rb +1 -1
  25. data/generated/google/apis/compute_v1/classes.rb +680 -4
  26. data/generated/google/apis/compute_v1/representations.rb +274 -0
  27. data/generated/google/apis/compute_v1/service.rb +442 -2
  28. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  29. data/generated/google/apis/dns_v1.rb +1 -1
  30. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  31. data/generated/google/apis/drive_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2/classes.rb +6 -0
  33. data/generated/google/apis/drive_v2/representations.rb +2 -0
  34. data/generated/google/apis/drive_v2/service.rb +8 -2
  35. data/generated/google/apis/drive_v3.rb +1 -1
  36. data/generated/google/apis/drive_v3/classes.rb +6 -0
  37. data/generated/google/apis/drive_v3/representations.rb +2 -0
  38. data/generated/google/apis/drive_v3/service.rb +4 -1
  39. data/generated/google/apis/fusiontables_v2.rb +1 -1
  40. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  41. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  42. data/generated/google/apis/games_management_v1management.rb +1 -1
  43. data/generated/google/apis/games_v1.rb +1 -1
  44. data/generated/google/apis/genomics_v1.rb +1 -1
  45. data/generated/google/apis/genomics_v1/classes.rb +63 -0
  46. data/generated/google/apis/genomics_v1/representations.rb +31 -0
  47. data/generated/google/apis/gmail_v1.rb +1 -1
  48. data/generated/google/apis/groupssettings_v1.rb +1 -1
  49. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  50. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  51. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  52. data/generated/google/apis/identitytoolkit_v3/classes.rb +30 -0
  53. data/generated/google/apis/identitytoolkit_v3/representations.rb +5 -0
  54. data/generated/google/apis/monitoring_v3.rb +45 -0
  55. data/generated/google/apis/monitoring_v3/classes.rb +1404 -0
  56. data/generated/google/apis/monitoring_v3/representations.rb +533 -0
  57. data/generated/google/apis/monitoring_v3/service.rb +743 -0
  58. data/generated/google/apis/oauth2_v2.rb +1 -1
  59. data/generated/google/apis/plus_domains_v1.rb +1 -1
  60. data/generated/google/apis/plus_v1.rb +1 -1
  61. data/generated/google/apis/sheets_v4.rb +1 -1
  62. data/generated/google/apis/vision_v1.rb +1 -1
  63. data/generated/google/apis/vision_v1/classes.rb +10 -9
  64. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  65. data/generated/google/apis/youtube_v3.rb +1 -1
  66. data/generated/google/apis/youtube_v3/classes.rb +155 -0
  67. data/generated/google/apis/youtube_v3/representations.rb +81 -0
  68. data/generated/google/apis/youtube_v3/service.rb +6 -2
  69. data/lib/google/apis/errors.rb +2 -2
  70. data/lib/google/apis/version.rb +1 -1
  71. data/samples/cli/lib/samples/bigquery.rb +101 -0
  72. data/samples/cli/lib/samples/sheets.rb +61 -0
  73. metadata +8 -2
@@ -0,0 +1,61 @@
1
+ # Copyright 2016 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/sheets_v4'
16
+ require 'base_cli'
17
+
18
+
19
+ module Samples
20
+ # Examples for the Google Sheets API
21
+ #
22
+ # Sample usage:
23
+ #
24
+ # $ ./google-api-samples sheets get_values --spreadsheet_key='1BxiMVs0XRA5nFMdKvBdBZjgmUUqptlbs74OgvE2upms' --range='Class Data!A1:F'
25
+ #
26
+ # Student Name Gender Class Level Home State Major Extracurricular Activity
27
+ # Alexandra Female 4. Senior CA English Drama Club
28
+ # Andrew Male 1. Freshman SD Math Lacrosse
29
+ # Anna Female 1. Freshman NC English Basketball
30
+ # Becky Female 2. Sophomore SD Art Baseball
31
+ # Benjamin Male 4. Senior WI English Basketball
32
+ # Carl Male 3. Junior MD Art Debate
33
+ # Carrie Female 3. Junior NE English Track & Field
34
+ # Dorothy Female 4. Senior MD Math Lacrosse
35
+ # Dylan Male 1. Freshman MA Math Baseball
36
+ # Edward Male 3. Junior FL English Drama Club
37
+ # Ellen Female 1. Freshman WI Physics Drama Club
38
+ # Fiona Female 1. Freshman MA Art Debate
39
+ # John Male 3. Junior CA Physics Basketball
40
+ # Jonathan Male 2. Sophomore SC Math Debate
41
+ class Sheets < BaseCli
42
+ Sheets = Google::Apis::SheetsV4
43
+
44
+ desc 'get_values', 'Get values from Google Spreadseets '
45
+ method_option :spreadsheet_key, type: :string, required: true
46
+ method_option :range, type: :string, required: true
47
+ def get_values
48
+ sheets = Sheets::SheetsService.new
49
+ sheets.authorization = user_credentials_for(Sheets::AUTH_SPREADSHEETS_READONLY)
50
+ result = sheets.get_spreadsheet_values(options[:spreadsheet_key], options[:range])
51
+ data = []
52
+ rows = result.values.length
53
+ rows.times.each do |row|
54
+ data.push(result.values[row])
55
+ end
56
+ print_table(data)
57
+ end
58
+
59
+ default_task :get_values
60
+ end
61
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8
4
+ version: 0.9.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-25 00:00:00.000000000 Z
14
+ date: 2016-06-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable
@@ -446,6 +446,10 @@ files:
446
446
  - generated/google/apis/mirror_v1/classes.rb
447
447
  - generated/google/apis/mirror_v1/representations.rb
448
448
  - generated/google/apis/mirror_v1/service.rb
449
+ - generated/google/apis/monitoring_v3.rb
450
+ - generated/google/apis/monitoring_v3/classes.rb
451
+ - generated/google/apis/monitoring_v3/representations.rb
452
+ - generated/google/apis/monitoring_v3/service.rb
449
453
  - generated/google/apis/mybusiness_v3.rb
450
454
  - generated/google/apis/mybusiness_v3/classes.rb
451
455
  - generated/google/apis/mybusiness_v3/representations.rb
@@ -626,10 +630,12 @@ files:
626
630
  - samples/cli/lib/base_cli.rb
627
631
  - samples/cli/lib/samples/analytics.rb
628
632
  - samples/cli/lib/samples/androidpublisher.rb
633
+ - samples/cli/lib/samples/bigquery.rb
629
634
  - samples/cli/lib/samples/calendar.rb
630
635
  - samples/cli/lib/samples/drive.rb
631
636
  - samples/cli/lib/samples/gmail.rb
632
637
  - samples/cli/lib/samples/pubsub.rb
638
+ - samples/cli/lib/samples/sheets.rb
633
639
  - samples/cli/lib/samples/translate.rb
634
640
  - samples/cli/lib/samples/you_tube.rb
635
641
  - samples/web/.env