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.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -0
  3. data/generated/google/apis/apigee_v1.rb +1 -1
  4. data/generated/google/apis/apigee_v1/classes.rb +39 -4
  5. data/generated/google/apis/apigee_v1/representations.rb +5 -0
  6. data/generated/google/apis/apigee_v1/service.rb +15 -13
  7. data/generated/google/apis/bigquery_v2.rb +1 -1
  8. data/generated/google/apis/bigquery_v2/classes.rb +34 -0
  9. data/generated/google/apis/bigquery_v2/representations.rb +3 -0
  10. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  11. data/generated/google/apis/bigqueryreservation_v1/classes.rb +2 -0
  12. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  13. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +2 -0
  14. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  15. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +3 -3
  16. data/generated/google/apis/{pagespeedonline_v2.rb → chromeuxreport_v1.rb} +10 -10
  17. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  18. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  19. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  20. data/generated/google/apis/cloudiot_v1.rb +1 -1
  21. data/generated/google/apis/cloudiot_v1/classes.rb +26 -10
  22. data/generated/google/apis/cloudkms_v1.rb +1 -1
  23. data/generated/google/apis/cloudkms_v1/classes.rb +281 -0
  24. data/generated/google/apis/cloudkms_v1/representations.rb +17 -0
  25. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  26. data/generated/google/apis/cloudtasks_v2/classes.rb +2 -2
  27. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  28. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +2 -2
  29. data/generated/google/apis/compute_alpha.rb +1 -1
  30. data/generated/google/apis/compute_alpha/classes.rb +23 -7
  31. data/generated/google/apis/compute_alpha/representations.rb +3 -1
  32. data/generated/google/apis/compute_alpha/service.rb +671 -671
  33. data/generated/google/apis/compute_beta.rb +1 -1
  34. data/generated/google/apis/compute_beta/classes.rb +1 -1
  35. data/generated/google/apis/compute_beta/service.rb +591 -591
  36. data/generated/google/apis/compute_v1.rb +1 -1
  37. data/generated/google/apis/compute_v1/classes.rb +37 -1
  38. data/generated/google/apis/compute_v1/representations.rb +5 -0
  39. data/generated/google/apis/container_v1.rb +1 -1
  40. data/generated/google/apis/container_v1/classes.rb +2 -4
  41. data/generated/google/apis/container_v1beta1.rb +1 -1
  42. data/generated/google/apis/container_v1beta1/classes.rb +27 -4
  43. data/generated/google/apis/container_v1beta1/representations.rb +16 -0
  44. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  45. data/generated/google/apis/dataflow_v1b3/classes.rb +331 -0
  46. data/generated/google/apis/dataflow_v1b3/representations.rb +164 -0
  47. data/generated/google/apis/dataflow_v1b3/service.rb +261 -0
  48. data/generated/google/apis/dialogflow_v2.rb +1 -1
  49. data/generated/google/apis/dialogflow_v2/classes.rb +565 -8
  50. data/generated/google/apis/dialogflow_v2/representations.rb +238 -0
  51. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  52. data/generated/google/apis/dialogflow_v2beta1/classes.rb +565 -8
  53. data/generated/google/apis/dialogflow_v2beta1/representations.rb +238 -0
  54. data/generated/google/apis/dialogflow_v2beta1/service.rb +44 -0
  55. data/generated/google/apis/dialogflow_v3alpha1.rb +1 -1
  56. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +565 -8
  57. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +238 -0
  58. data/generated/google/apis/displayvideo_v1.rb +1 -1
  59. data/generated/google/apis/displayvideo_v1/classes.rb +149 -0
  60. data/generated/google/apis/displayvideo_v1/representations.rb +76 -0
  61. data/generated/google/apis/displayvideo_v1/service.rb +280 -0
  62. data/generated/google/apis/fitness_v1.rb +4 -4
  63. data/generated/google/apis/fitness_v1/classes.rb +185 -158
  64. data/generated/google/apis/fitness_v1/service.rb +187 -215
  65. data/generated/google/apis/healthcare_v1.rb +1 -1
  66. data/generated/google/apis/healthcare_v1/classes.rb +36 -27
  67. data/generated/google/apis/healthcare_v1/service.rb +61 -29
  68. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  69. data/generated/google/apis/healthcare_v1beta1/classes.rb +38 -34
  70. data/generated/google/apis/healthcare_v1beta1/service.rb +162 -144
  71. data/generated/google/apis/homegraph_v1.rb +1 -1
  72. data/generated/google/apis/homegraph_v1/classes.rb +3 -0
  73. data/generated/google/apis/iam_v1.rb +1 -1
  74. data/generated/google/apis/iam_v1/classes.rb +24 -12
  75. data/generated/google/apis/iam_v1/service.rb +7 -0
  76. data/generated/google/apis/monitoring_v3.rb +1 -1
  77. data/generated/google/apis/monitoring_v3/classes.rb +7 -0
  78. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  79. data/generated/google/apis/spanner_v1.rb +1 -1
  80. data/generated/google/apis/spanner_v1/classes.rb +29 -10
  81. data/generated/google/apis/tpu_v1.rb +1 -1
  82. data/generated/google/apis/tpu_v1/classes.rb +3 -3
  83. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  84. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -3
  85. data/generated/google/apis/youtube_v3.rb +1 -1
  86. data/generated/google/apis/youtube_v3/classes.rb +26 -26
  87. data/generated/google/apis/youtube_v3/service.rb +1 -36
  88. data/lib/google/apis/version.rb +1 -1
  89. metadata +7 -11
  90. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  91. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  92. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  93. data/generated/google/apis/pagespeedonline_v4.rb +0 -32
  94. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  95. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  96. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
@@ -1,273 +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 PagespeedonlineV2
24
-
25
- class FormatString
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 Image
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 Result
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 PageStats
89
- class Representation < Google::Apis::Core::JsonRepresentation; end
90
-
91
- include Google::Apis::Core::JsonObjectSupport
92
- end
93
-
94
- class RuleGroup
95
- class Representation < Google::Apis::Core::JsonRepresentation; end
96
-
97
- include Google::Apis::Core::JsonObjectSupport
98
- end
99
-
100
- class Version
101
- class Representation < Google::Apis::Core::JsonRepresentation; end
102
-
103
- include Google::Apis::Core::JsonObjectSupport
104
- end
105
-
106
- include Google::Apis::Core::JsonObjectSupport
107
- end
108
-
109
- class FormatString
110
- # @private
111
- class Representation < Google::Apis::Core::JsonRepresentation
112
- collection :args, as: 'args', class: Google::Apis::PagespeedonlineV2::FormatString::Arg, decorator: Google::Apis::PagespeedonlineV2::FormatString::Arg::Representation
113
-
114
- property :format, as: 'format'
115
- end
116
-
117
- class Arg
118
- # @private
119
- class Representation < Google::Apis::Core::JsonRepresentation
120
- property :key, as: 'key'
121
- collection :rects, as: 'rects', class: Google::Apis::PagespeedonlineV2::FormatString::Arg::Rect, decorator: Google::Apis::PagespeedonlineV2::FormatString::Arg::Rect::Representation
122
-
123
- collection :secondary_rects, as: 'secondary_rects', class: Google::Apis::PagespeedonlineV2::FormatString::Arg::SecondaryRect, decorator: Google::Apis::PagespeedonlineV2::FormatString::Arg::SecondaryRect::Representation
124
-
125
- property :type, as: 'type'
126
- property :value, as: 'value'
127
- end
128
-
129
- class Rect
130
- # @private
131
- class Representation < Google::Apis::Core::JsonRepresentation
132
- property :height, as: 'height'
133
- property :left, as: 'left'
134
- property :top, as: 'top'
135
- property :width, as: 'width'
136
- end
137
- end
138
-
139
- class SecondaryRect
140
- # @private
141
- class Representation < Google::Apis::Core::JsonRepresentation
142
- property :height, as: 'height'
143
- property :left, as: 'left'
144
- property :top, as: 'top'
145
- property :width, as: 'width'
146
- end
147
- end
148
- end
149
- end
150
-
151
- class Image
152
- # @private
153
- class Representation < Google::Apis::Core::JsonRepresentation
154
- property :data, :base64 => true, as: 'data'
155
- property :height, as: 'height'
156
- property :key, as: 'key'
157
- property :mime_type, as: 'mime_type'
158
- property :page_rect, as: 'page_rect', class: Google::Apis::PagespeedonlineV2::Image::PageRect, decorator: Google::Apis::PagespeedonlineV2::Image::PageRect::Representation
159
-
160
- property :width, as: 'width'
161
- end
162
-
163
- class PageRect
164
- # @private
165
- class Representation < Google::Apis::Core::JsonRepresentation
166
- property :height, as: 'height'
167
- property :left, as: 'left'
168
- property :top, as: 'top'
169
- property :width, as: 'width'
170
- end
171
- end
172
- end
173
-
174
- class Result
175
- # @private
176
- class Representation < Google::Apis::Core::JsonRepresentation
177
- property :captcha_result, as: 'captchaResult'
178
- property :formatted_results, as: 'formattedResults', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::Representation
179
-
180
- property :id, as: 'id'
181
- collection :invalid_rules, as: 'invalidRules'
182
- property :kind, as: 'kind'
183
- property :page_stats, as: 'pageStats', class: Google::Apis::PagespeedonlineV2::Result::PageStats, decorator: Google::Apis::PagespeedonlineV2::Result::PageStats::Representation
184
-
185
- property :response_code, as: 'responseCode'
186
- hash :rule_groups, as: 'ruleGroups', class: Google::Apis::PagespeedonlineV2::Result::RuleGroup, decorator: Google::Apis::PagespeedonlineV2::Result::RuleGroup::Representation
187
-
188
- property :screenshot, as: 'screenshot', class: Google::Apis::PagespeedonlineV2::Image, decorator: Google::Apis::PagespeedonlineV2::Image::Representation
189
-
190
- property :title, as: 'title'
191
- property :version, as: 'version', class: Google::Apis::PagespeedonlineV2::Result::Version, decorator: Google::Apis::PagespeedonlineV2::Result::Version::Representation
192
-
193
- end
194
-
195
- class FormattedResults
196
- # @private
197
- class Representation < Google::Apis::Core::JsonRepresentation
198
- property :locale, as: 'locale'
199
- hash :rule_results, as: 'ruleResults', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult::Representation
200
-
201
- end
202
-
203
- class RuleResult
204
- # @private
205
- class Representation < Google::Apis::Core::JsonRepresentation
206
- collection :groups, as: 'groups'
207
- property :localized_rule_name, as: 'localizedRuleName'
208
- property :rule_impact, as: 'ruleImpact'
209
- property :summary, as: 'summary', class: Google::Apis::PagespeedonlineV2::FormatString, decorator: Google::Apis::PagespeedonlineV2::FormatString::Representation
210
-
211
- collection :url_blocks, as: 'urlBlocks', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult::UrlBlock, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult::UrlBlock::Representation
212
-
213
- end
214
-
215
- class UrlBlock
216
- # @private
217
- class Representation < Google::Apis::Core::JsonRepresentation
218
- property :header, as: 'header', class: Google::Apis::PagespeedonlineV2::FormatString, decorator: Google::Apis::PagespeedonlineV2::FormatString::Representation
219
-
220
- collection :urls, as: 'urls', class: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult::UrlBlock::Url, decorator: Google::Apis::PagespeedonlineV2::Result::FormattedResults::RuleResult::UrlBlock::Url::Representation
221
-
222
- end
223
-
224
- class Url
225
- # @private
226
- class Representation < Google::Apis::Core::JsonRepresentation
227
- collection :details, as: 'details', class: Google::Apis::PagespeedonlineV2::FormatString, decorator: Google::Apis::PagespeedonlineV2::FormatString::Representation
228
-
229
- property :result, as: 'result', class: Google::Apis::PagespeedonlineV2::FormatString, decorator: Google::Apis::PagespeedonlineV2::FormatString::Representation
230
-
231
- end
232
- end
233
- end
234
- end
235
- end
236
-
237
- class PageStats
238
- # @private
239
- class Representation < Google::Apis::Core::JsonRepresentation
240
- property :css_response_bytes, :numeric_string => true, as: 'cssResponseBytes'
241
- property :flash_response_bytes, :numeric_string => true, as: 'flashResponseBytes'
242
- property :html_response_bytes, :numeric_string => true, as: 'htmlResponseBytes'
243
- property :image_response_bytes, :numeric_string => true, as: 'imageResponseBytes'
244
- property :javascript_response_bytes, :numeric_string => true, as: 'javascriptResponseBytes'
245
- property :number_css_resources, as: 'numberCssResources'
246
- property :number_hosts, as: 'numberHosts'
247
- property :number_js_resources, as: 'numberJsResources'
248
- property :number_resources, as: 'numberResources'
249
- property :number_static_resources, as: 'numberStaticResources'
250
- property :other_response_bytes, :numeric_string => true, as: 'otherResponseBytes'
251
- property :text_response_bytes, :numeric_string => true, as: 'textResponseBytes'
252
- property :total_request_bytes, :numeric_string => true, as: 'totalRequestBytes'
253
- end
254
- end
255
-
256
- class RuleGroup
257
- # @private
258
- class Representation < Google::Apis::Core::JsonRepresentation
259
- property :score, as: 'score'
260
- end
261
- end
262
-
263
- class Version
264
- # @private
265
- class Representation < Google::Apis::Core::JsonRepresentation
266
- property :major, as: 'major'
267
- property :minor, as: 'minor'
268
- end
269
- end
270
- end
271
- end
272
- end
273
- end
@@ -1,116 +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 PagespeedonlineV2
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_v2'
30
- #
31
- # Pagespeedonline = Google::Apis::PagespeedonlineV2 # Alias the module
32
- # service = Pagespeedonline::PagespeedonlineService.new
33
- #
34
- # @see https://developers.google.com/speed/docs/insights/v2/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/v2/')
52
- @batch_path = 'batch/pagespeedonline/v2'
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 [String] strategy
70
- # The analysis strategy to use
71
- # @param [String] fields
72
- # Selector specifying which fields to include in a partial response.
73
- # @param [String] quota_user
74
- # An opaque string that represents a user for quota purposes. Must not exceed 40
75
- # characters.
76
- # @param [String] user_ip
77
- # Deprecated. Please use quotaUser instead.
78
- # @param [Google::Apis::RequestOptions] options
79
- # Request-specific options
80
- #
81
- # @yield [result, err] Result & error if block supplied
82
- # @yieldparam result [Google::Apis::PagespeedonlineV2::Result] parsed result object
83
- # @yieldparam err [StandardError] error object if request failed
84
- #
85
- # @return [Google::Apis::PagespeedonlineV2::Result]
86
- #
87
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
88
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
89
- # @raise [Google::Apis::AuthorizationError] Authorization is required
90
- def run_pagespeed(url, filter_third_party_resources: nil, locale: nil, rule: nil, screenshot: nil, strategy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
91
- command = make_simple_command(:get, 'runPagespeed', options)
92
- command.response_representation = Google::Apis::PagespeedonlineV2::Result::Representation
93
- command.response_class = Google::Apis::PagespeedonlineV2::Result
94
- command.query['filter_third_party_resources'] = filter_third_party_resources unless filter_third_party_resources.nil?
95
- command.query['locale'] = locale unless locale.nil?
96
- command.query['rule'] = rule unless rule.nil?
97
- command.query['screenshot'] = screenshot unless screenshot.nil?
98
- command.query['strategy'] = strategy unless strategy.nil?
99
- command.query['url'] = url unless url.nil?
100
- command.query['fields'] = fields unless fields.nil?
101
- command.query['quotaUser'] = quota_user unless quota_user.nil?
102
- command.query['userIp'] = user_ip unless user_ip.nil?
103
- execute_or_queue_command(command, &block)
104
- end
105
-
106
- protected
107
-
108
- def apply_command_defaults(command)
109
- command.query['key'] = key unless key.nil?
110
- command.query['quotaUser'] = quota_user unless quota_user.nil?
111
- command.query['userIp'] = user_ip unless user_ip.nil?
112
- end
113
- end
114
- end
115
- end
116
- end
@@ -1,32 +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/pagespeedonline_v4/service.rb'
16
- require 'google/apis/pagespeedonline_v4/classes.rb'
17
- require 'google/apis/pagespeedonline_v4/representations.rb'
18
-
19
- module Google
20
- module Apis
21
- # PageSpeed Insights API
22
- #
23
- # Analyzes the performance of a web page and provides tailored suggestions to
24
- # make that page faster.
25
- #
26
- # @see https://developers.google.com/speed/docs/insights/v4/getting-started
27
- module PagespeedonlineV4
28
- VERSION = 'V4'
29
- REVISION = '20180606'
30
- end
31
- end
32
- end
@@ -1,795 +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
- #
26
- class PagespeedApiFormatStringV4
27
- include Google::Apis::Core::Hashable
28
-
29
- # List of arguments for the format string.
30
- # Corresponds to the JSON property `args`
31
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg>]
32
- attr_accessor :args
33
-
34
- # A localized format string with ``FOO`` placeholders, where 'FOO' is the key of
35
- # the argument whose value should be substituted. For HYPERLINK arguments, the
36
- # format string will instead contain ``BEGIN_FOO`` and ``END_FOO`` for the
37
- # argument with key 'FOO'.
38
- # Corresponds to the JSON property `format`
39
- # @return [String]
40
- attr_accessor :format
41
-
42
- def initialize(**args)
43
- update!(**args)
44
- end
45
-
46
- # Update properties of this object
47
- def update!(**args)
48
- @args = args[:args] if args.key?(:args)
49
- @format = args[:format] if args.key?(:format)
50
- end
51
-
52
- #
53
- class Arg
54
- include Google::Apis::Core::Hashable
55
-
56
- # The placeholder key for this arg, as a string.
57
- # Corresponds to the JSON property `key`
58
- # @return [String]
59
- attr_accessor :key
60
-
61
- # The screen rectangles being referred to, with dimensions measured in CSS
62
- # pixels. This is only ever used for SNAPSHOT_RECT arguments. If this is absent
63
- # for a SNAPSHOT_RECT argument, it means that that argument refers to the entire
64
- # snapshot.
65
- # Corresponds to the JSON property `rects`
66
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::Rect>]
67
- attr_accessor :rects
68
-
69
- # Secondary screen rectangles being referred to, with dimensions measured in CSS
70
- # pixels. This is only ever used for SNAPSHOT_RECT arguments.
71
- # Corresponds to the JSON property `secondary_rects`
72
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4::Arg::SecondaryRect>]
73
- attr_accessor :secondary_rects
74
-
75
- # Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, DURATION,
76
- # VERBATIM_STRING, PERCENTAGE, HYPERLINK, or SNAPSHOT_RECT.
77
- # Corresponds to the JSON property `type`
78
- # @return [String]
79
- attr_accessor :type
80
-
81
- # Argument value, as a localized string.
82
- # Corresponds to the JSON property `value`
83
- # @return [String]
84
- attr_accessor :value
85
-
86
- def initialize(**args)
87
- update!(**args)
88
- end
89
-
90
- # Update properties of this object
91
- def update!(**args)
92
- @key = args[:key] if args.key?(:key)
93
- @rects = args[:rects] if args.key?(:rects)
94
- @secondary_rects = args[:secondary_rects] if args.key?(:secondary_rects)
95
- @type = args[:type] if args.key?(:type)
96
- @value = args[:value] if args.key?(:value)
97
- end
98
-
99
- #
100
- class Rect
101
- include Google::Apis::Core::Hashable
102
-
103
- #
104
- # Corresponds to the JSON property `height`
105
- # @return [Fixnum]
106
- attr_accessor :height
107
-
108
- #
109
- # Corresponds to the JSON property `left`
110
- # @return [Fixnum]
111
- attr_accessor :left
112
-
113
- #
114
- # Corresponds to the JSON property `top`
115
- # @return [Fixnum]
116
- attr_accessor :top
117
-
118
- #
119
- # Corresponds to the JSON property `width`
120
- # @return [Fixnum]
121
- attr_accessor :width
122
-
123
- def initialize(**args)
124
- update!(**args)
125
- end
126
-
127
- # Update properties of this object
128
- def update!(**args)
129
- @height = args[:height] if args.key?(:height)
130
- @left = args[:left] if args.key?(:left)
131
- @top = args[:top] if args.key?(:top)
132
- @width = args[:width] if args.key?(:width)
133
- end
134
- end
135
-
136
- #
137
- class SecondaryRect
138
- include Google::Apis::Core::Hashable
139
-
140
- #
141
- # Corresponds to the JSON property `height`
142
- # @return [Fixnum]
143
- attr_accessor :height
144
-
145
- #
146
- # Corresponds to the JSON property `left`
147
- # @return [Fixnum]
148
- attr_accessor :left
149
-
150
- #
151
- # Corresponds to the JSON property `top`
152
- # @return [Fixnum]
153
- attr_accessor :top
154
-
155
- #
156
- # Corresponds to the JSON property `width`
157
- # @return [Fixnum]
158
- attr_accessor :width
159
-
160
- def initialize(**args)
161
- update!(**args)
162
- end
163
-
164
- # Update properties of this object
165
- def update!(**args)
166
- @height = args[:height] if args.key?(:height)
167
- @left = args[:left] if args.key?(:left)
168
- @top = args[:top] if args.key?(:top)
169
- @width = args[:width] if args.key?(:width)
170
- end
171
- end
172
- end
173
- end
174
-
175
- #
176
- class PagespeedApiImageV4
177
- include Google::Apis::Core::Hashable
178
-
179
- # Image data base64 encoded.
180
- # Corresponds to the JSON property `data`
181
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
182
- # @return [String]
183
- attr_accessor :data
184
-
185
- # Height of screenshot in pixels.
186
- # Corresponds to the JSON property `height`
187
- # @return [Fixnum]
188
- attr_accessor :height
189
-
190
- # Unique string key, if any, identifying this image.
191
- # Corresponds to the JSON property `key`
192
- # @return [String]
193
- attr_accessor :key
194
-
195
- # Mime type of image data (e.g. "image/jpeg").
196
- # Corresponds to the JSON property `mime_type`
197
- # @return [String]
198
- attr_accessor :mime_type
199
-
200
- #
201
- # Corresponds to the JSON property `page_rect`
202
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiImageV4::PageRect]
203
- attr_accessor :page_rect
204
-
205
- # Width of screenshot in pixels.
206
- # Corresponds to the JSON property `width`
207
- # @return [Fixnum]
208
- attr_accessor :width
209
-
210
- def initialize(**args)
211
- update!(**args)
212
- end
213
-
214
- # Update properties of this object
215
- def update!(**args)
216
- @data = args[:data] if args.key?(:data)
217
- @height = args[:height] if args.key?(:height)
218
- @key = args[:key] if args.key?(:key)
219
- @mime_type = args[:mime_type] if args.key?(:mime_type)
220
- @page_rect = args[:page_rect] if args.key?(:page_rect)
221
- @width = args[:width] if args.key?(:width)
222
- end
223
-
224
- #
225
- class PageRect
226
- include Google::Apis::Core::Hashable
227
-
228
- #
229
- # Corresponds to the JSON property `height`
230
- # @return [Fixnum]
231
- attr_accessor :height
232
-
233
- #
234
- # Corresponds to the JSON property `left`
235
- # @return [Fixnum]
236
- attr_accessor :left
237
-
238
- #
239
- # Corresponds to the JSON property `top`
240
- # @return [Fixnum]
241
- attr_accessor :top
242
-
243
- #
244
- # Corresponds to the JSON property `width`
245
- # @return [Fixnum]
246
- attr_accessor :width
247
-
248
- def initialize(**args)
249
- update!(**args)
250
- end
251
-
252
- # Update properties of this object
253
- def update!(**args)
254
- @height = args[:height] if args.key?(:height)
255
- @left = args[:left] if args.key?(:left)
256
- @top = args[:top] if args.key?(:top)
257
- @width = args[:width] if args.key?(:width)
258
- end
259
- end
260
- end
261
-
262
- #
263
- class PagespeedApiPagespeedResponseV4
264
- include Google::Apis::Core::Hashable
265
-
266
- # The captcha verify result
267
- # Corresponds to the JSON property `captchaResult`
268
- # @return [String]
269
- attr_accessor :captcha_result
270
-
271
- # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
272
- # rule instantiated and run by the server.
273
- # Corresponds to the JSON property `formattedResults`
274
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults]
275
- attr_accessor :formatted_results
276
-
277
- # Canonicalized and final URL for the document, after following page redirects (
278
- # if any).
279
- # Corresponds to the JSON property `id`
280
- # @return [String]
281
- attr_accessor :id
282
-
283
- # List of rules that were specified in the request, but which the server did not
284
- # know how to instantiate.
285
- # Corresponds to the JSON property `invalidRules`
286
- # @return [Array<String>]
287
- attr_accessor :invalid_rules
288
-
289
- # Kind of result.
290
- # Corresponds to the JSON property `kind`
291
- # @return [String]
292
- attr_accessor :kind
293
-
294
- # Metrics of end users' page loading experience.
295
- # Corresponds to the JSON property `loadingExperience`
296
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience]
297
- attr_accessor :loading_experience
298
-
299
- # Summary statistics for the page, such as number of JavaScript bytes, number of
300
- # HTML bytes, etc.
301
- # Corresponds to the JSON property `pageStats`
302
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::PageStats]
303
- attr_accessor :page_stats
304
-
305
- # Response code for the document. 200 indicates a normal page load. 4xx/5xx
306
- # indicates an error.
307
- # Corresponds to the JSON property `responseCode`
308
- # @return [Fixnum]
309
- attr_accessor :response_code
310
-
311
- # A map with one entry for each rule group in these results.
312
- # Corresponds to the JSON property `ruleGroups`
313
- # @return [Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::RuleGroup>]
314
- attr_accessor :rule_groups
315
-
316
- # Base64-encoded screenshot of the page that was analyzed.
317
- # Corresponds to the JSON property `screenshot`
318
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiImageV4]
319
- attr_accessor :screenshot
320
-
321
- # Additional base64-encoded screenshots of the page, in various partial render
322
- # states.
323
- # Corresponds to the JSON property `snapshots`
324
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiImageV4>]
325
- attr_accessor :snapshots
326
-
327
- # Title of the page, as displayed in the browser's title bar.
328
- # Corresponds to the JSON property `title`
329
- # @return [String]
330
- attr_accessor :title
331
-
332
- # The version of PageSpeed used to generate these results.
333
- # Corresponds to the JSON property `version`
334
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::Version]
335
- attr_accessor :version
336
-
337
- def initialize(**args)
338
- update!(**args)
339
- end
340
-
341
- # Update properties of this object
342
- def update!(**args)
343
- @captcha_result = args[:captcha_result] if args.key?(:captcha_result)
344
- @formatted_results = args[:formatted_results] if args.key?(:formatted_results)
345
- @id = args[:id] if args.key?(:id)
346
- @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules)
347
- @kind = args[:kind] if args.key?(:kind)
348
- @loading_experience = args[:loading_experience] if args.key?(:loading_experience)
349
- @page_stats = args[:page_stats] if args.key?(:page_stats)
350
- @response_code = args[:response_code] if args.key?(:response_code)
351
- @rule_groups = args[:rule_groups] if args.key?(:rule_groups)
352
- @screenshot = args[:screenshot] if args.key?(:screenshot)
353
- @snapshots = args[:snapshots] if args.key?(:snapshots)
354
- @title = args[:title] if args.key?(:title)
355
- @version = args[:version] if args.key?(:version)
356
- end
357
-
358
- # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed
359
- # rule instantiated and run by the server.
360
- class FormattedResults
361
- include Google::Apis::Core::Hashable
362
-
363
- # The locale of the formattedResults, e.g. "en_US".
364
- # Corresponds to the JSON property `locale`
365
- # @return [String]
366
- attr_accessor :locale
367
-
368
- # Dictionary of formatted rule results, with one entry for each PageSpeed rule
369
- # instantiated and run by the server.
370
- # Corresponds to the JSON property `ruleResults`
371
- # @return [Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult>]
372
- attr_accessor :rule_results
373
-
374
- def initialize(**args)
375
- update!(**args)
376
- end
377
-
378
- # Update properties of this object
379
- def update!(**args)
380
- @locale = args[:locale] if args.key?(:locale)
381
- @rule_results = args[:rule_results] if args.key?(:rule_results)
382
- end
383
-
384
- # The enum-like identifier for this rule. For instance "EnableKeepAlive" or "
385
- # AvoidCssImport". Not localized.
386
- class RuleResult
387
- include Google::Apis::Core::Hashable
388
-
389
- # Whether this rule is in 'beta'. Rules in beta are new rules that are being
390
- # tested, which do not impact the overall score.
391
- # Corresponds to the JSON property `beta`
392
- # @return [Boolean]
393
- attr_accessor :beta
394
- alias_method :beta?, :beta
395
-
396
- # List of rule groups that this rule belongs to. Each entry in the list is one
397
- # of "SPEED", "USABILITY", or "SECURITY".
398
- # Corresponds to the JSON property `groups`
399
- # @return [Array<String>]
400
- attr_accessor :groups
401
-
402
- # Localized name of the rule, intended for presentation to a user.
403
- # Corresponds to the JSON property `localizedRuleName`
404
- # @return [String]
405
- attr_accessor :localized_rule_name
406
-
407
- # The impact (unbounded floating point value) that implementing the suggestions
408
- # for this rule would have on making the page faster. Impact is comparable
409
- # between rules to determine which rule's suggestions would have a higher or
410
- # lower impact on making a page faster. For instance, if enabling compression
411
- # would save 1MB, while optimizing images would save 500kB, the enable
412
- # compression rule would have 2x the impact of the image optimization rule, all
413
- # other things being equal.
414
- # Corresponds to the JSON property `ruleImpact`
415
- # @return [Float]
416
- attr_accessor :rule_impact
417
-
418
- # A brief summary description for the rule, indicating at a high level what
419
- # should be done to follow the rule and what benefit can be gained by doing so.
420
- # Corresponds to the JSON property `summary`
421
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4]
422
- attr_accessor :summary
423
-
424
- # List of blocks of URLs. Each block may contain a heading and a list of URLs.
425
- # Each URL may optionally include additional details.
426
- # Corresponds to the JSON property `urlBlocks`
427
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock>]
428
- attr_accessor :url_blocks
429
-
430
- def initialize(**args)
431
- update!(**args)
432
- end
433
-
434
- # Update properties of this object
435
- def update!(**args)
436
- @beta = args[:beta] if args.key?(:beta)
437
- @groups = args[:groups] if args.key?(:groups)
438
- @localized_rule_name = args[:localized_rule_name] if args.key?(:localized_rule_name)
439
- @rule_impact = args[:rule_impact] if args.key?(:rule_impact)
440
- @summary = args[:summary] if args.key?(:summary)
441
- @url_blocks = args[:url_blocks] if args.key?(:url_blocks)
442
- end
443
-
444
- #
445
- class UrlBlock
446
- include Google::Apis::Core::Hashable
447
-
448
- # Heading to be displayed with the list of URLs.
449
- # Corresponds to the JSON property `header`
450
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4]
451
- attr_accessor :header
452
-
453
- # List of entries that provide information about URLs in the url block. Optional.
454
- # Corresponds to the JSON property `urls`
455
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::FormattedResults::RuleResult::UrlBlock::Url>]
456
- attr_accessor :urls
457
-
458
- def initialize(**args)
459
- update!(**args)
460
- end
461
-
462
- # Update properties of this object
463
- def update!(**args)
464
- @header = args[:header] if args.key?(:header)
465
- @urls = args[:urls] if args.key?(:urls)
466
- end
467
-
468
- #
469
- class Url
470
- include Google::Apis::Core::Hashable
471
-
472
- # List of entries that provide additional details about a single URL. Optional.
473
- # Corresponds to the JSON property `details`
474
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4>]
475
- attr_accessor :details
476
-
477
- # A format string that gives information about the URL, and a list of arguments
478
- # for that format string.
479
- # Corresponds to the JSON property `result`
480
- # @return [Google::Apis::PagespeedonlineV4::PagespeedApiFormatStringV4]
481
- attr_accessor :result
482
-
483
- def initialize(**args)
484
- update!(**args)
485
- end
486
-
487
- # Update properties of this object
488
- def update!(**args)
489
- @details = args[:details] if args.key?(:details)
490
- @result = args[:result] if args.key?(:result)
491
- end
492
- end
493
- end
494
- end
495
- end
496
-
497
- # Metrics of end users' page loading experience.
498
- class LoadingExperience
499
- include Google::Apis::Core::Hashable
500
-
501
- # The url, pattern or origin which the metrics are on.
502
- # Corresponds to the JSON property `id`
503
- # @return [String]
504
- attr_accessor :id
505
-
506
- #
507
- # Corresponds to the JSON property `initial_url`
508
- # @return [String]
509
- attr_accessor :initial_url
510
-
511
- #
512
- # Corresponds to the JSON property `metrics`
513
- # @return [Hash<String,Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric>]
514
- attr_accessor :metrics
515
-
516
- #
517
- # Corresponds to the JSON property `overall_category`
518
- # @return [String]
519
- attr_accessor :overall_category
520
-
521
- def initialize(**args)
522
- update!(**args)
523
- end
524
-
525
- # Update properties of this object
526
- def update!(**args)
527
- @id = args[:id] if args.key?(:id)
528
- @initial_url = args[:initial_url] if args.key?(:initial_url)
529
- @metrics = args[:metrics] if args.key?(:metrics)
530
- @overall_category = args[:overall_category] if args.key?(:overall_category)
531
- end
532
-
533
- # The type of the metric.
534
- class Metric
535
- include Google::Apis::Core::Hashable
536
-
537
- #
538
- # Corresponds to the JSON property `category`
539
- # @return [String]
540
- attr_accessor :category
541
-
542
- #
543
- # Corresponds to the JSON property `distributions`
544
- # @return [Array<Google::Apis::PagespeedonlineV4::PagespeedApiPagespeedResponseV4::LoadingExperience::Metric::Distribution>]
545
- attr_accessor :distributions
546
-
547
- #
548
- # Corresponds to the JSON property `median`
549
- # @return [Fixnum]
550
- attr_accessor :median
551
-
552
- def initialize(**args)
553
- update!(**args)
554
- end
555
-
556
- # Update properties of this object
557
- def update!(**args)
558
- @category = args[:category] if args.key?(:category)
559
- @distributions = args[:distributions] if args.key?(:distributions)
560
- @median = args[:median] if args.key?(:median)
561
- end
562
-
563
- #
564
- class Distribution
565
- include Google::Apis::Core::Hashable
566
-
567
- #
568
- # Corresponds to the JSON property `max`
569
- # @return [Fixnum]
570
- attr_accessor :max
571
-
572
- #
573
- # Corresponds to the JSON property `min`
574
- # @return [Fixnum]
575
- attr_accessor :min
576
-
577
- #
578
- # Corresponds to the JSON property `proportion`
579
- # @return [Float]
580
- attr_accessor :proportion
581
-
582
- def initialize(**args)
583
- update!(**args)
584
- end
585
-
586
- # Update properties of this object
587
- def update!(**args)
588
- @max = args[:max] if args.key?(:max)
589
- @min = args[:min] if args.key?(:min)
590
- @proportion = args[:proportion] if args.key?(:proportion)
591
- end
592
- end
593
- end
594
- end
595
-
596
- # Summary statistics for the page, such as number of JavaScript bytes, number of
597
- # HTML bytes, etc.
598
- class PageStats
599
- include Google::Apis::Core::Hashable
600
-
601
- # Content management system (CMS) used for the page.
602
- # Corresponds to the JSON property `cms`
603
- # @return [String]
604
- attr_accessor :cms
605
-
606
- # Number of uncompressed response bytes for CSS resources on the page.
607
- # Corresponds to the JSON property `cssResponseBytes`
608
- # @return [Fixnum]
609
- attr_accessor :css_response_bytes
610
-
611
- # Number of response bytes for flash resources on the page.
612
- # Corresponds to the JSON property `flashResponseBytes`
613
- # @return [Fixnum]
614
- attr_accessor :flash_response_bytes
615
-
616
- # Number of uncompressed response bytes for the main HTML document and all
617
- # iframes on the page.
618
- # Corresponds to the JSON property `htmlResponseBytes`
619
- # @return [Fixnum]
620
- attr_accessor :html_response_bytes
621
-
622
- # Number of response bytes for image resources on the page.
623
- # Corresponds to the JSON property `imageResponseBytes`
624
- # @return [Fixnum]
625
- attr_accessor :image_response_bytes
626
-
627
- # Number of uncompressed response bytes for JS resources on the page.
628
- # Corresponds to the JSON property `javascriptResponseBytes`
629
- # @return [Fixnum]
630
- attr_accessor :javascript_response_bytes
631
-
632
- # The needed round trips to load render blocking resources
633
- # Corresponds to the JSON property `numRenderBlockingRoundTrips`
634
- # @return [Fixnum]
635
- attr_accessor :num_render_blocking_round_trips
636
-
637
- # The needed round trips to load the full page
638
- # Corresponds to the JSON property `numTotalRoundTrips`
639
- # @return [Fixnum]
640
- attr_accessor :num_total_round_trips
641
-
642
- # Number of CSS resources referenced by the page.
643
- # Corresponds to the JSON property `numberCssResources`
644
- # @return [Fixnum]
645
- attr_accessor :number_css_resources
646
-
647
- # Number of unique hosts referenced by the page.
648
- # Corresponds to the JSON property `numberHosts`
649
- # @return [Fixnum]
650
- attr_accessor :number_hosts
651
-
652
- # Number of JavaScript resources referenced by the page.
653
- # Corresponds to the JSON property `numberJsResources`
654
- # @return [Fixnum]
655
- attr_accessor :number_js_resources
656
-
657
- # Number of HTTP resources loaded by the page.
658
- # Corresponds to the JSON property `numberResources`
659
- # @return [Fixnum]
660
- attr_accessor :number_resources
661
-
662
- # Number of roboted resources.
663
- # Corresponds to the JSON property `numberRobotedResources`
664
- # @return [Fixnum]
665
- attr_accessor :number_roboted_resources
666
-
667
- # Number of static (i.e. cacheable) resources on the page.
668
- # Corresponds to the JSON property `numberStaticResources`
669
- # @return [Fixnum]
670
- attr_accessor :number_static_resources
671
-
672
- # Number of transient-failed resources.
673
- # Corresponds to the JSON property `numberTransientFetchFailureResources`
674
- # @return [Fixnum]
675
- attr_accessor :number_transient_fetch_failure_resources
676
-
677
- # Number of response bytes for other resources on the page.
678
- # Corresponds to the JSON property `otherResponseBytes`
679
- # @return [Fixnum]
680
- attr_accessor :other_response_bytes
681
-
682
- # Number of over-the-wire bytes, uses the default gzip compression strategy as
683
- # an estimation.
684
- # Corresponds to the JSON property `overTheWireResponseBytes`
685
- # @return [Fixnum]
686
- attr_accessor :over_the_wire_response_bytes
687
-
688
- # List of roboted urls.
689
- # Corresponds to the JSON property `robotedUrls`
690
- # @return [Array<String>]
691
- attr_accessor :roboted_urls
692
-
693
- # Number of uncompressed response bytes for text resources not covered by other
694
- # statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
695
- # Corresponds to the JSON property `textResponseBytes`
696
- # @return [Fixnum]
697
- attr_accessor :text_response_bytes
698
-
699
- # Total size of all request bytes sent by the page.
700
- # Corresponds to the JSON property `totalRequestBytes`
701
- # @return [Fixnum]
702
- attr_accessor :total_request_bytes
703
-
704
- # List of transient fetch failure urls.
705
- # Corresponds to the JSON property `transientFetchFailureUrls`
706
- # @return [Array<String>]
707
- attr_accessor :transient_fetch_failure_urls
708
-
709
- def initialize(**args)
710
- update!(**args)
711
- end
712
-
713
- # Update properties of this object
714
- def update!(**args)
715
- @cms = args[:cms] if args.key?(:cms)
716
- @css_response_bytes = args[:css_response_bytes] if args.key?(:css_response_bytes)
717
- @flash_response_bytes = args[:flash_response_bytes] if args.key?(:flash_response_bytes)
718
- @html_response_bytes = args[:html_response_bytes] if args.key?(:html_response_bytes)
719
- @image_response_bytes = args[:image_response_bytes] if args.key?(:image_response_bytes)
720
- @javascript_response_bytes = args[:javascript_response_bytes] if args.key?(:javascript_response_bytes)
721
- @num_render_blocking_round_trips = args[:num_render_blocking_round_trips] if args.key?(:num_render_blocking_round_trips)
722
- @num_total_round_trips = args[:num_total_round_trips] if args.key?(:num_total_round_trips)
723
- @number_css_resources = args[:number_css_resources] if args.key?(:number_css_resources)
724
- @number_hosts = args[:number_hosts] if args.key?(:number_hosts)
725
- @number_js_resources = args[:number_js_resources] if args.key?(:number_js_resources)
726
- @number_resources = args[:number_resources] if args.key?(:number_resources)
727
- @number_roboted_resources = args[:number_roboted_resources] if args.key?(:number_roboted_resources)
728
- @number_static_resources = args[:number_static_resources] if args.key?(:number_static_resources)
729
- @number_transient_fetch_failure_resources = args[:number_transient_fetch_failure_resources] if args.key?(:number_transient_fetch_failure_resources)
730
- @other_response_bytes = args[:other_response_bytes] if args.key?(:other_response_bytes)
731
- @over_the_wire_response_bytes = args[:over_the_wire_response_bytes] if args.key?(:over_the_wire_response_bytes)
732
- @roboted_urls = args[:roboted_urls] if args.key?(:roboted_urls)
733
- @text_response_bytes = args[:text_response_bytes] if args.key?(:text_response_bytes)
734
- @total_request_bytes = args[:total_request_bytes] if args.key?(:total_request_bytes)
735
- @transient_fetch_failure_urls = args[:transient_fetch_failure_urls] if args.key?(:transient_fetch_failure_urls)
736
- end
737
- end
738
-
739
- # The name of this rule group: one of "SPEED", "USABILITY", or "SECURITY".
740
- class RuleGroup
741
- include Google::Apis::Core::Hashable
742
-
743
- #
744
- # Corresponds to the JSON property `pass`
745
- # @return [Boolean]
746
- attr_accessor :pass
747
- alias_method :pass?, :pass
748
-
749
- # The score (0-100) for this rule group, which indicates how much better a page
750
- # could be in that category (e.g. how much faster, or how much more usable, or
751
- # how much more secure). A high score indicates little room for improvement,
752
- # while a lower score indicates more room for improvement.
753
- # Corresponds to the JSON property `score`
754
- # @return [Fixnum]
755
- attr_accessor :score
756
-
757
- def initialize(**args)
758
- update!(**args)
759
- end
760
-
761
- # Update properties of this object
762
- def update!(**args)
763
- @pass = args[:pass] if args.key?(:pass)
764
- @score = args[:score] if args.key?(:score)
765
- end
766
- end
767
-
768
- # The version of PageSpeed used to generate these results.
769
- class Version
770
- include Google::Apis::Core::Hashable
771
-
772
- # The major version number of PageSpeed used to generate these results.
773
- # Corresponds to the JSON property `major`
774
- # @return [Fixnum]
775
- attr_accessor :major
776
-
777
- # The minor version number of PageSpeed used to generate these results.
778
- # Corresponds to the JSON property `minor`
779
- # @return [Fixnum]
780
- attr_accessor :minor
781
-
782
- def initialize(**args)
783
- update!(**args)
784
- end
785
-
786
- # Update properties of this object
787
- def update!(**args)
788
- @major = args[:major] if args.key?(:major)
789
- @minor = args[:minor] if args.key?(:minor)
790
- end
791
- end
792
- end
793
- end
794
- end
795
- end