google-api-client 0.39.5 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +34 -0
- data/generated/google/apis/apigee_v1.rb +1 -1
- data/generated/google/apis/apigee_v1/classes.rb +39 -4
- data/generated/google/apis/apigee_v1/representations.rb +5 -0
- data/generated/google/apis/apigee_v1/service.rb +15 -13
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +34 -0
- data/generated/google/apis/bigquery_v2/representations.rb +3 -0
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
- data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
- data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
- data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
- data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
- data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
- data/generated/google/apis/compute_alpha.rb +1 -1
- data/generated/google/apis/compute_alpha/classes.rb +23 -7
- data/generated/google/apis/compute_alpha/representations.rb +3 -1
- data/generated/google/apis/compute_alpha/service.rb +671 -671
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +1 -1
- data/generated/google/apis/compute_beta/service.rb +591 -591
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +37 -1
- data/generated/google/apis/compute_v1/representations.rb +5 -0
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +2 -4
- data/generated/google/apis/container_v1beta1.rb +1 -1
- data/generated/google/apis/container_v1beta1/classes.rb +27 -4
- data/generated/google/apis/container_v1beta1/representations.rb +16 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
- data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
- data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
- data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
- data/generated/google/apis/displayvideo_v1/service.rb +280 -0
- data/generated/google/apis/fitness_v1.rb +4 -4
- data/generated/google/apis/fitness_v1/classes.rb +185 -158
- data/generated/google/apis/fitness_v1/service.rb +187 -215
- data/generated/google/apis/healthcare_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1/classes.rb +36 -27
- data/generated/google/apis/healthcare_v1/service.rb +61 -29
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
- data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
- data/generated/google/apis/homegraph_v1.rb +1 -1
- data/generated/google/apis/homegraph_v1/classes.rb +3 -0
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +24 -12
- data/generated/google/apis/iam_v1/service.rb +7 -0
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +7 -0
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +29 -10
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +3 -3
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +26 -26
- data/generated/google/apis/youtube_v3/service.rb +1 -36
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -11
- data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
- data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
- data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
- data/generated/google/apis/pagespeedonline_v4.rb +0 -32
- data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
- data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
- data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
# Copyright 2015 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 'date'
|
|
16
|
-
require 'google/apis/core/base_service'
|
|
17
|
-
require 'google/apis/core/json_representation'
|
|
18
|
-
require 'google/apis/core/hashable'
|
|
19
|
-
require 'google/apis/errors'
|
|
20
|
-
|
|
21
|
-
module Google
|
|
22
|
-
module Apis
|
|
23
|
-
module PagespeedonlineV4
|
|
24
|
-
|
|
25
|
-
class PagespeedApiFormatStringV4
|
|
26
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
-
|
|
28
|
-
class Arg
|
|
29
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
30
|
-
|
|
31
|
-
class Rect
|
|
32
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
33
|
-
|
|
34
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
class SecondaryRect
|
|
38
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
-
|
|
40
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
41
|
-
end
|
|
42
|
-
|
|
43
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
44
|
-
end
|
|
45
|
-
|
|
46
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
class PagespeedApiImageV4
|
|
50
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
51
|
-
|
|
52
|
-
class PageRect
|
|
53
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
54
|
-
|
|
55
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
59
|
-
end
|
|
60
|
-
|
|
61
|
-
class PagespeedApiPagespeedResponseV4
|
|
62
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
|
-
|
|
64
|
-
class FormattedResults
|
|
65
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
66
|
-
|
|
67
|
-
class RuleResult
|
|
68
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
69
|
-
|
|
70
|
-
class UrlBlock
|
|
71
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
72
|
-
|
|
73
|
-
class Url
|
|
74
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
-
|
|
76
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
77
|
-
end
|
|
78
|
-
|
|
79
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
80
|
-
end
|
|
81
|
-
|
|
82
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
83
|
-
end
|
|
84
|
-
|
|
85
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
86
|
-
end
|
|
87
|
-
|
|
88
|
-
class LoadingExperience
|
|
89
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
90
|
-
|
|
91
|
-
class Metric
|
|
92
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
93
|
-
|
|
94
|
-
class Distribution
|
|
95
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
96
|
-
|
|
97
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
98
|
-
end
|
|
99
|
-
|
|
100
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
101
|
-
end
|
|
102
|
-
|
|
103
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
104
|
-
end
|
|
105
|
-
|
|
106
|
-
class PageStats
|
|
107
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
108
|
-
|
|
109
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
class RuleGroup
|
|
113
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
114
|
-
|
|
115
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
116
|
-
end
|
|
117
|
-
|
|
118
|
-
class Version
|
|
119
|
-
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
120
|
-
|
|
121
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
include Google::Apis::Core::JsonObjectSupport
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
class PagespeedApiFormatStringV4
|
|
128
|
-
# @private
|
|
129
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
130
|
-
collection :args, as: 'args', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::Representation
|
|
131
|
-
|
|
132
|
-
property :format, as: 'format'
|
|
133
|
-
end
|
|
134
|
-
|
|
135
|
-
class Arg
|
|
136
|
-
# @private
|
|
137
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
138
|
-
property :key, as: 'key'
|
|
139
|
-
collection :rects, as: 'rects', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::Rect, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::Rect::Representation
|
|
140
|
-
|
|
141
|
-
collection :secondary_rects, as: 'secondary_rects', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::SecondaryRect, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::SecondaryRect::Representation
|
|
142
|
-
|
|
143
|
-
property :type, as: 'type'
|
|
144
|
-
property :value, as: 'value'
|
|
145
|
-
end
|
|
146
|
-
|
|
147
|
-
class Rect
|
|
148
|
-
# @private
|
|
149
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
150
|
-
property :height, as: 'height'
|
|
151
|
-
property :left, as: 'left'
|
|
152
|
-
property :top, as: 'top'
|
|
153
|
-
property :width, as: 'width'
|
|
154
|
-
end
|
|
155
|
-
end
|
|
156
|
-
|
|
157
|
-
class SecondaryRect
|
|
158
|
-
# @private
|
|
159
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
160
|
-
property :height, as: 'height'
|
|
161
|
-
property :left, as: 'left'
|
|
162
|
-
property :top, as: 'top'
|
|
163
|
-
property :width, as: 'width'
|
|
164
|
-
end
|
|
165
|
-
end
|
|
166
|
-
end
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
class PagespeedApiImageV4
|
|
170
|
-
# @private
|
|
171
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
172
|
-
property :data, :base64 => true, as: 'data'
|
|
173
|
-
property :height, as: 'height'
|
|
174
|
-
property :key, as: 'key'
|
|
175
|
-
property :mime_type, as: 'mime_type'
|
|
176
|
-
property :page_rect, as: 'page_rect', class: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::PageRect, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::PageRect::Representation
|
|
177
|
-
|
|
178
|
-
property :width, as: 'width'
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
class PageRect
|
|
182
|
-
# @private
|
|
183
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
184
|
-
property :height, as: 'height'
|
|
185
|
-
property :left, as: 'left'
|
|
186
|
-
property :top, as: 'top'
|
|
187
|
-
property :width, as: 'width'
|
|
188
|
-
end
|
|
189
|
-
end
|
|
190
|
-
end
|
|
191
|
-
|
|
192
|
-
class PagespeedApiPagespeedResponseV4
|
|
193
|
-
# @private
|
|
194
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
195
|
-
property :captcha_result, as: 'captchaResult'
|
|
196
|
-
property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::Representation
|
|
197
|
-
|
|
198
|
-
property :id, as: 'id'
|
|
199
|
-
collection :invalid_rules, as: 'invalidRules'
|
|
200
|
-
property :kind, as: 'kind'
|
|
201
|
-
property :loading_experience, as: 'loadingExperience', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Representation
|
|
202
|
-
|
|
203
|
-
property :page_stats, as: 'pageStats', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats::Representation
|
|
204
|
-
|
|
205
|
-
property :response_code, as: 'responseCode'
|
|
206
|
-
hash :rule_groups, as: 'ruleGroups', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup::Representation
|
|
207
|
-
|
|
208
|
-
property :screenshot, as: 'screenshot', class: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::Representation
|
|
209
|
-
|
|
210
|
-
collection :snapshots, as: 'snapshots', class: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::Representation
|
|
211
|
-
|
|
212
|
-
property :title, as: 'title'
|
|
213
|
-
property :version, as: 'version', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Version, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Version::Representation
|
|
214
|
-
|
|
215
|
-
end
|
|
216
|
-
|
|
217
|
-
class FormattedResults
|
|
218
|
-
# @private
|
|
219
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
220
|
-
property :locale, as: 'locale'
|
|
221
|
-
hash :rule_results, as: 'ruleResults', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::Representation
|
|
222
|
-
|
|
223
|
-
end
|
|
224
|
-
|
|
225
|
-
class RuleResult
|
|
226
|
-
# @private
|
|
227
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
228
|
-
property :beta, as: 'beta'
|
|
229
|
-
collection :groups, as: 'groups'
|
|
230
|
-
property :localized_rule_name, as: 'localizedRuleName'
|
|
231
|
-
property :rule_impact, as: 'ruleImpact'
|
|
232
|
-
property :summary, as: 'summary', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Representation
|
|
233
|
-
|
|
234
|
-
collection :url_blocks, as: 'urlBlocks', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock::Representation
|
|
235
|
-
|
|
236
|
-
end
|
|
237
|
-
|
|
238
|
-
class UrlBlock
|
|
239
|
-
# @private
|
|
240
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
241
|
-
property :header, as: 'header', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Representation
|
|
242
|
-
|
|
243
|
-
collection :urls, as: 'urls', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock::Url, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock::Url::Representation
|
|
244
|
-
|
|
245
|
-
end
|
|
246
|
-
|
|
247
|
-
class Url
|
|
248
|
-
# @private
|
|
249
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
250
|
-
collection :details, as: 'details', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Representation
|
|
251
|
-
|
|
252
|
-
property :result, as: 'result', class: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Representation
|
|
253
|
-
|
|
254
|
-
end
|
|
255
|
-
end
|
|
256
|
-
end
|
|
257
|
-
end
|
|
258
|
-
end
|
|
259
|
-
|
|
260
|
-
class LoadingExperience
|
|
261
|
-
# @private
|
|
262
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
263
|
-
property :id, as: 'id'
|
|
264
|
-
property :initial_url, as: 'initial_url'
|
|
265
|
-
hash :metrics, as: 'metrics', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric::Representation
|
|
266
|
-
|
|
267
|
-
property :overall_category, as: 'overall_category'
|
|
268
|
-
end
|
|
269
|
-
|
|
270
|
-
class Metric
|
|
271
|
-
# @private
|
|
272
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
273
|
-
property :category, as: 'category'
|
|
274
|
-
collection :distributions, as: 'distributions', class: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric::Distribution, decorator: Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric::Distribution::Representation
|
|
275
|
-
|
|
276
|
-
property :median, as: 'median'
|
|
277
|
-
end
|
|
278
|
-
|
|
279
|
-
class Distribution
|
|
280
|
-
# @private
|
|
281
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
282
|
-
property :max, as: 'max'
|
|
283
|
-
property :min, as: 'min'
|
|
284
|
-
property :proportion, as: 'proportion'
|
|
285
|
-
end
|
|
286
|
-
end
|
|
287
|
-
end
|
|
288
|
-
end
|
|
289
|
-
|
|
290
|
-
class PageStats
|
|
291
|
-
# @private
|
|
292
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
293
|
-
property :cms, as: 'cms'
|
|
294
|
-
property :css_response_bytes, :numeric_string => true, as: 'cssResponseBytes'
|
|
295
|
-
property :flash_response_bytes, :numeric_string => true, as: 'flashResponseBytes'
|
|
296
|
-
property :html_response_bytes, :numeric_string => true, as: 'htmlResponseBytes'
|
|
297
|
-
property :image_response_bytes, :numeric_string => true, as: 'imageResponseBytes'
|
|
298
|
-
property :javascript_response_bytes, :numeric_string => true, as: 'javascriptResponseBytes'
|
|
299
|
-
property :num_render_blocking_round_trips, as: 'numRenderBlockingRoundTrips'
|
|
300
|
-
property :num_total_round_trips, as: 'numTotalRoundTrips'
|
|
301
|
-
property :number_css_resources, as: 'numberCssResources'
|
|
302
|
-
property :number_hosts, as: 'numberHosts'
|
|
303
|
-
property :number_js_resources, as: 'numberJsResources'
|
|
304
|
-
property :number_resources, as: 'numberResources'
|
|
305
|
-
property :number_roboted_resources, as: 'numberRobotedResources'
|
|
306
|
-
property :number_static_resources, as: 'numberStaticResources'
|
|
307
|
-
property :number_transient_fetch_failure_resources, as: 'numberTransientFetchFailureResources'
|
|
308
|
-
property :other_response_bytes, :numeric_string => true, as: 'otherResponseBytes'
|
|
309
|
-
property :over_the_wire_response_bytes, :numeric_string => true, as: 'overTheWireResponseBytes'
|
|
310
|
-
collection :roboted_urls, as: 'robotedUrls'
|
|
311
|
-
property :text_response_bytes, :numeric_string => true, as: 'textResponseBytes'
|
|
312
|
-
property :total_request_bytes, :numeric_string => true, as: 'totalRequestBytes'
|
|
313
|
-
collection :transient_fetch_failure_urls, as: 'transientFetchFailureUrls'
|
|
314
|
-
end
|
|
315
|
-
end
|
|
316
|
-
|
|
317
|
-
class RuleGroup
|
|
318
|
-
# @private
|
|
319
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
320
|
-
property :pass, as: 'pass'
|
|
321
|
-
property :score, as: 'score'
|
|
322
|
-
end
|
|
323
|
-
end
|
|
324
|
-
|
|
325
|
-
class Version
|
|
326
|
-
# @private
|
|
327
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
|
328
|
-
property :major, as: 'major'
|
|
329
|
-
property :minor, as: 'minor'
|
|
330
|
-
end
|
|
331
|
-
end
|
|
332
|
-
end
|
|
333
|
-
end
|
|
334
|
-
end
|
|
335
|
-
end
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# Copyright 2015 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/core/base_service'
|
|
16
|
-
require 'google/apis/core/json_representation'
|
|
17
|
-
require 'google/apis/core/hashable'
|
|
18
|
-
require 'google/apis/errors'
|
|
19
|
-
|
|
20
|
-
module Google
|
|
21
|
-
module Apis
|
|
22
|
-
module PagespeedonlineV4
|
|
23
|
-
# PageSpeed Insights API
|
|
24
|
-
#
|
|
25
|
-
# Analyzes the performance of a web page and provides tailored suggestions to
|
|
26
|
-
# make that page faster.
|
|
27
|
-
#
|
|
28
|
-
# @example
|
|
29
|
-
# require 'google/apis/pagespeedonline_v4'
|
|
30
|
-
#
|
|
31
|
-
# Pagespeedonline = Google::Apis::PagespeedonlineV4 # Alias the module
|
|
32
|
-
# service = Pagespeedonline::PagespeedonlineService.new
|
|
33
|
-
#
|
|
34
|
-
# @see https://developers.google.com/speed/docs/insights/v4/getting-started
|
|
35
|
-
class PagespeedonlineService < Google::Apis::Core::BaseService
|
|
36
|
-
# @return [String]
|
|
37
|
-
# API key. Your API key identifies your project and provides you with API access,
|
|
38
|
-
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
39
|
-
attr_accessor :key
|
|
40
|
-
|
|
41
|
-
# @return [String]
|
|
42
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
43
|
-
# characters.
|
|
44
|
-
attr_accessor :quota_user
|
|
45
|
-
|
|
46
|
-
# @return [String]
|
|
47
|
-
# Deprecated. Please use quotaUser instead.
|
|
48
|
-
attr_accessor :user_ip
|
|
49
|
-
|
|
50
|
-
def initialize
|
|
51
|
-
super('https://www.googleapis.com/', 'pagespeedonline/v4/')
|
|
52
|
-
@batch_path = 'batch/pagespeedonline/v4'
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
# Runs PageSpeed analysis on the page at the specified URL, and returns
|
|
56
|
-
# PageSpeed scores, a list of suggestions to make that page faster, and other
|
|
57
|
-
# information.
|
|
58
|
-
# @param [String] url
|
|
59
|
-
# The URL to fetch and analyze
|
|
60
|
-
# @param [Boolean] filter_third_party_resources
|
|
61
|
-
# Indicates if third party resources should be filtered out before PageSpeed
|
|
62
|
-
# analysis.
|
|
63
|
-
# @param [String] locale
|
|
64
|
-
# The locale used to localize formatted results
|
|
65
|
-
# @param [Array<String>, String] rule
|
|
66
|
-
# A PageSpeed rule to run; if none are given, all rules are run
|
|
67
|
-
# @param [Boolean] screenshot
|
|
68
|
-
# Indicates if binary data containing a screenshot should be included
|
|
69
|
-
# @param [Boolean] snapshots
|
|
70
|
-
# Indicates if binary data containing snapshot images should be included
|
|
71
|
-
# @param [String] strategy
|
|
72
|
-
# The analysis strategy (desktop or mobile) to use, and desktop is the default
|
|
73
|
-
# @param [String] utm_campaign
|
|
74
|
-
# Campaign name for analytics.
|
|
75
|
-
# @param [String] utm_source
|
|
76
|
-
# Campaign source for analytics.
|
|
77
|
-
# @param [String] fields
|
|
78
|
-
# Selector specifying which fields to include in a partial response.
|
|
79
|
-
# @param [String] quota_user
|
|
80
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
|
81
|
-
# characters.
|
|
82
|
-
# @param [String] user_ip
|
|
83
|
-
# Deprecated. Please use quotaUser instead.
|
|
84
|
-
# @param [Google::Apis::RequestOptions] options
|
|
85
|
-
# Request-specific options
|
|
86
|
-
#
|
|
87
|
-
# @yield [result, err] Result & error if block supplied
|
|
88
|
-
# @yieldparam result [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4] parsed result object
|
|
89
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
90
|
-
#
|
|
91
|
-
# @return [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4]
|
|
92
|
-
#
|
|
93
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
94
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
95
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
96
|
-
def runpagespeed_pagespeedapi(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, snapshots: nil, strategy: nil, utm_campaign: nil, utm_source: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
97
|
-
command = make_simple_command(:get, 'runPagespeed', options)
|
|
98
|
-
command.response_representation = Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Representation
|
|
99
|
-
command.response_class = Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4
|
|
100
|
-
command.query['filter_third_party_resources'] = filter_third_party_resources unless filter_third_party_resources.nil?
|
|
101
|
-
command.query['locale'] = locale unless locale.nil?
|
|
102
|
-
command.query['rule'] = rule unless rule.nil?
|
|
103
|
-
command.query['screenshot'] = screenshot unless screenshot.nil?
|
|
104
|
-
command.query['snapshots'] = snapshots unless snapshots.nil?
|
|
105
|
-
command.query['strategy'] = strategy unless strategy.nil?
|
|
106
|
-
command.query['url'] = url unless url.nil?
|
|
107
|
-
command.query['utm_campaign'] = utm_campaign unless utm_campaign.nil?
|
|
108
|
-
command.query['utm_source'] = utm_source unless utm_source.nil?
|
|
109
|
-
command.query['fields'] = fields unless fields.nil?
|
|
110
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
111
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
112
|
-
execute_or_queue_command(command, &block)
|
|
113
|
-
end
|
|
114
|
-
|
|
115
|
-
protected
|
|
116
|
-
|
|
117
|
-
def apply_command_defaults(command)
|
|
118
|
-
command.query['key'] = key unless key.nil?
|
|
119
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
120
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
121
|
-
end
|
|
122
|
-
end
|
|
123
|
-
end
|
|
124
|
-
end
|
|
125
|
-
end
|