google-api-client 0.9.28 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
data/google-api-client.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |spec|
|
|
20
20
|
|
21
21
|
spec.required_ruby_version = '~> 2.0'
|
22
22
|
|
23
|
-
spec.add_runtime_dependency 'representable', '~>
|
24
|
-
spec.add_runtime_dependency 'retriable', '
|
23
|
+
spec.add_runtime_dependency 'representable', '~> 3.0'
|
24
|
+
spec.add_runtime_dependency 'retriable', '>= 2.0', '< 4.0'
|
25
25
|
spec.add_runtime_dependency 'addressable', '~> 2.3'
|
26
26
|
spec.add_runtime_dependency 'mime-types', '>= 1.6'
|
27
27
|
spec.add_runtime_dependency 'hurley', '~> 0.1'
|
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
query[FIELDS_PARAM] = normalize_fields_param(query[FIELDS_PARAM]) if query.key?(FIELDS_PARAM)
|
56
56
|
if request_representation && request_object
|
57
57
|
header[:content_type] ||= JSON_CONTENT_TYPE
|
58
|
-
self.body = request_representation.new(request_object).to_json(skip_undefined: true)
|
58
|
+
self.body = request_representation.new(request_object).to_json(user_options: { skip_undefined: true })
|
59
59
|
end
|
60
60
|
super
|
61
61
|
end
|
@@ -55,7 +55,7 @@ module Google
|
|
55
55
|
def if_fn(name)
|
56
56
|
ivar_name = "@#{name}".to_sym
|
57
57
|
lambda do |opts|
|
58
|
-
if opts[:skip_undefined]
|
58
|
+
if opts[:options][:user_options] and opts[:options][:user_options][:skip_undefined]
|
59
59
|
if respond_to?(:key?)
|
60
60
|
self.key?(name) || instance_variable_defined?(ivar_name)
|
61
61
|
else
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
|
138
138
|
def to_json
|
139
139
|
representation = self.class.const_get(:Representation)
|
140
|
-
representation.new(self).to_json(skip_undefined: true)
|
140
|
+
representation.new(self).to_json(user_options: { skip_undefined: true })
|
141
141
|
end
|
142
142
|
end
|
143
143
|
end
|
data/lib/google/apis/version.rb
CHANGED
@@ -35,9 +35,12 @@ module Samples
|
|
35
35
|
metadata = {
|
36
36
|
snippet: {
|
37
37
|
title: options[:title] || file
|
38
|
+
},
|
39
|
+
status: {
|
40
|
+
privacy_status: 'unlisted'
|
38
41
|
}
|
39
42
|
}
|
40
|
-
result = youtube.insert_video('snippet', metadata, upload_source: file)
|
43
|
+
result = youtube.insert_video('snippet,status', metadata, upload_source: file)
|
41
44
|
say "Upload complete"
|
42
45
|
end
|
43
46
|
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.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steven Bazyl
|
@@ -11,132 +11,138 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2017-02-
|
14
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: representable
|
18
18
|
requirement: !ruby/object:Gem::Requirement
|
19
19
|
requirements:
|
20
|
-
- -
|
20
|
+
- - ~>
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version:
|
22
|
+
version: '3.0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: '3.0'
|
30
30
|
- !ruby/object:Gem::Dependency
|
31
31
|
name: retriable
|
32
32
|
requirement: !ruby/object:Gem::Requirement
|
33
33
|
requirements:
|
34
|
-
- -
|
34
|
+
- - '>='
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '2.0'
|
37
|
+
- - <
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '4.0'
|
37
40
|
type: :runtime
|
38
41
|
prerelease: false
|
39
42
|
version_requirements: !ruby/object:Gem::Requirement
|
40
43
|
requirements:
|
41
|
-
- -
|
44
|
+
- - '>='
|
42
45
|
- !ruby/object:Gem::Version
|
43
46
|
version: '2.0'
|
47
|
+
- - <
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '4.0'
|
44
50
|
- !ruby/object:Gem::Dependency
|
45
51
|
name: addressable
|
46
52
|
requirement: !ruby/object:Gem::Requirement
|
47
53
|
requirements:
|
48
|
-
- -
|
54
|
+
- - ~>
|
49
55
|
- !ruby/object:Gem::Version
|
50
56
|
version: '2.3'
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
54
60
|
requirements:
|
55
|
-
- -
|
61
|
+
- - ~>
|
56
62
|
- !ruby/object:Gem::Version
|
57
63
|
version: '2.3'
|
58
64
|
- !ruby/object:Gem::Dependency
|
59
65
|
name: mime-types
|
60
66
|
requirement: !ruby/object:Gem::Requirement
|
61
67
|
requirements:
|
62
|
-
- -
|
68
|
+
- - '>='
|
63
69
|
- !ruby/object:Gem::Version
|
64
70
|
version: '1.6'
|
65
71
|
type: :runtime
|
66
72
|
prerelease: false
|
67
73
|
version_requirements: !ruby/object:Gem::Requirement
|
68
74
|
requirements:
|
69
|
-
- -
|
75
|
+
- - '>='
|
70
76
|
- !ruby/object:Gem::Version
|
71
77
|
version: '1.6'
|
72
78
|
- !ruby/object:Gem::Dependency
|
73
79
|
name: hurley
|
74
80
|
requirement: !ruby/object:Gem::Requirement
|
75
81
|
requirements:
|
76
|
-
- -
|
82
|
+
- - ~>
|
77
83
|
- !ruby/object:Gem::Version
|
78
84
|
version: '0.1'
|
79
85
|
type: :runtime
|
80
86
|
prerelease: false
|
81
87
|
version_requirements: !ruby/object:Gem::Requirement
|
82
88
|
requirements:
|
83
|
-
- -
|
89
|
+
- - ~>
|
84
90
|
- !ruby/object:Gem::Version
|
85
91
|
version: '0.1'
|
86
92
|
- !ruby/object:Gem::Dependency
|
87
93
|
name: googleauth
|
88
94
|
requirement: !ruby/object:Gem::Requirement
|
89
95
|
requirements:
|
90
|
-
- -
|
96
|
+
- - ~>
|
91
97
|
- !ruby/object:Gem::Version
|
92
98
|
version: '0.5'
|
93
99
|
type: :runtime
|
94
100
|
prerelease: false
|
95
101
|
version_requirements: !ruby/object:Gem::Requirement
|
96
102
|
requirements:
|
97
|
-
- -
|
103
|
+
- - ~>
|
98
104
|
- !ruby/object:Gem::Version
|
99
105
|
version: '0.5'
|
100
106
|
- !ruby/object:Gem::Dependency
|
101
107
|
name: httpclient
|
102
108
|
requirement: !ruby/object:Gem::Requirement
|
103
109
|
requirements:
|
104
|
-
- -
|
110
|
+
- - ~>
|
105
111
|
- !ruby/object:Gem::Version
|
106
112
|
version: '2.7'
|
107
113
|
type: :runtime
|
108
114
|
prerelease: false
|
109
115
|
version_requirements: !ruby/object:Gem::Requirement
|
110
116
|
requirements:
|
111
|
-
- -
|
117
|
+
- - ~>
|
112
118
|
- !ruby/object:Gem::Version
|
113
119
|
version: '2.7'
|
114
120
|
- !ruby/object:Gem::Dependency
|
115
121
|
name: memoist
|
116
122
|
requirement: !ruby/object:Gem::Requirement
|
117
123
|
requirements:
|
118
|
-
- -
|
124
|
+
- - ~>
|
119
125
|
- !ruby/object:Gem::Version
|
120
126
|
version: '0.11'
|
121
127
|
type: :runtime
|
122
128
|
prerelease: false
|
123
129
|
version_requirements: !ruby/object:Gem::Requirement
|
124
130
|
requirements:
|
125
|
-
- -
|
131
|
+
- - ~>
|
126
132
|
- !ruby/object:Gem::Version
|
127
133
|
version: '0.11'
|
128
134
|
- !ruby/object:Gem::Dependency
|
129
135
|
name: thor
|
130
136
|
requirement: !ruby/object:Gem::Requirement
|
131
137
|
requirements:
|
132
|
-
- -
|
138
|
+
- - ~>
|
133
139
|
- !ruby/object:Gem::Version
|
134
140
|
version: '0.19'
|
135
141
|
type: :development
|
136
142
|
prerelease: false
|
137
143
|
version_requirements: !ruby/object:Gem::Requirement
|
138
144
|
requirements:
|
139
|
-
- -
|
145
|
+
- - ~>
|
140
146
|
- !ruby/object:Gem::Version
|
141
147
|
version: '0.19'
|
142
148
|
description:
|
@@ -147,12 +153,12 @@ executables:
|
|
147
153
|
extensions: []
|
148
154
|
extra_rdoc_files: []
|
149
155
|
files:
|
150
|
-
-
|
151
|
-
-
|
152
|
-
-
|
153
|
-
-
|
154
|
-
-
|
155
|
-
-
|
156
|
+
- .gitignore
|
157
|
+
- .rspec
|
158
|
+
- .rubocop.yml
|
159
|
+
- .rubocop_todo.yml
|
160
|
+
- .travis.yml
|
161
|
+
- .yardopts
|
156
162
|
- CHANGELOG.md
|
157
163
|
- CONTRIBUTING.md
|
158
164
|
- Gemfile
|
@@ -712,12 +718,12 @@ require_paths:
|
|
712
718
|
- third_party
|
713
719
|
required_ruby_version: !ruby/object:Gem::Requirement
|
714
720
|
requirements:
|
715
|
-
- -
|
721
|
+
- - ~>
|
716
722
|
- !ruby/object:Gem::Version
|
717
723
|
version: '2.0'
|
718
724
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
719
725
|
requirements:
|
720
|
-
- -
|
726
|
+
- - '>='
|
721
727
|
- !ruby/object:Gem::Version
|
722
728
|
version: '0'
|
723
729
|
requirements: []
|