google-apis-pagespeedonline_v5 0.15.0 → 0.17.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57cb59f201a744e162b553f54d8d937f0b089f05b7d1e01d9d966fe77a7ab8f6
4
- data.tar.gz: 801a9a1fb3833aaf784bd0024646e009da5404794f489465e5d0b1f0823955f0
3
+ metadata.gz: c14984bad48f73e84defce816c3f5ce8797197067b5d85a2dbb4a384e4fd47cb
4
+ data.tar.gz: 71c42a693f126ef8ae3ac447fdb76a2efdaf6cc5f40776b4efcc68fb52753464
5
5
  SHA512:
6
- metadata.gz: 4b5f994c38ad9eb31d69a777639566d9b470b0becdf3494b4c065ad9acce6bcbf79e78786031a79cfd09104eecf1435d84a3c5d83c4ca77a9b50faa070f06dcc
7
- data.tar.gz: b261dcc0f08974c71f8d7e708fc298fb0fabff5dfb5bc5bdd61b38d4fe42ccab94ae952d9668b75414494ba08907f220e15f4245f8cef4638b02783838eb5c7b
6
+ metadata.gz: 3d623265a35ab143180993a3a50c21ba7a3b8c2e33495f120544bc4f824e480059f2a78ecb12fa3a2e30744f07e37b7cfc882cd7ad57533c21737e07446021c2
7
+ data.tar.gz: 317ebb76d63b230a9ec326098af439cb973a62bb418e1f444f933c140e4bc5579d578ccd785e2d472522584b90ea1b3a11bc35fbbbac53680b6cd1a241ea712b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Release history for google-apis-pagespeedonline_v5
2
2
 
3
+ ### v0.17.0 (2024-01-23)
4
+
5
+ * Regenerated from discovery document revision 20231026
6
+ * Regenerated using generator version 0.13.0
7
+
8
+ ### v0.16.0 (2023-03-26)
9
+
10
+ * Regenerated from discovery document revision 20230316
11
+
3
12
  ### v0.15.0 (2023-02-15)
4
13
 
5
14
  * Regenerated using generator version 0.12.0
@@ -220,6 +220,11 @@ module Google
220
220
  # @return [Float]
221
221
  attr_accessor :benchmark_index
222
222
 
223
+ # The version of libraries with which these results were generated. Ex: axe-core.
224
+ # Corresponds to the JSON property `credits`
225
+ # @return [Hash<String,String>]
226
+ attr_accessor :credits
227
+
223
228
  # The user agent string of the version of Chrome used.
224
229
  # Corresponds to the JSON property `hostUserAgent`
225
230
  # @return [String]
@@ -237,6 +242,7 @@ module Google
237
242
  # Update properties of this object
238
243
  def update!(**args)
239
244
  @benchmark_index = args[:benchmark_index] if args.key?(:benchmark_index)
245
+ @credits = args[:credits] if args.key?(:credits)
240
246
  @host_user_agent = args[:host_user_agent] if args.key?(:host_user_agent)
241
247
  @network_user_agent = args[:network_user_agent] if args.key?(:network_user_agent)
242
248
  end
@@ -261,6 +267,57 @@ module Google
261
267
  end
262
268
  end
263
269
 
270
+ # Message containing an Entity.
271
+ class LhrEntity
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # Optional. An optional category name for the entity.
275
+ # Corresponds to the JSON property `category`
276
+ # @return [String]
277
+ attr_accessor :category
278
+
279
+ # Optional. An optional homepage URL of the entity.
280
+ # Corresponds to the JSON property `homepage`
281
+ # @return [String]
282
+ attr_accessor :homepage
283
+
284
+ # Optional. An optional flag indicating if the entity is the first party.
285
+ # Corresponds to the JSON property `isFirstParty`
286
+ # @return [Boolean]
287
+ attr_accessor :is_first_party
288
+ alias_method :is_first_party?, :is_first_party
289
+
290
+ # Optional. An optional flag indicating if the entity is not recognized.
291
+ # Corresponds to the JSON property `isUnrecognized`
292
+ # @return [Boolean]
293
+ attr_accessor :is_unrecognized
294
+ alias_method :is_unrecognized?, :is_unrecognized
295
+
296
+ # Required. Name of the entity.
297
+ # Corresponds to the JSON property `name`
298
+ # @return [String]
299
+ attr_accessor :name
300
+
301
+ # Required. A list of URL origin strings that belong to this entity.
302
+ # Corresponds to the JSON property `origins`
303
+ # @return [Array<String>]
304
+ attr_accessor :origins
305
+
306
+ def initialize(**args)
307
+ update!(**args)
308
+ end
309
+
310
+ # Update properties of this object
311
+ def update!(**args)
312
+ @category = args[:category] if args.key?(:category)
313
+ @homepage = args[:homepage] if args.key?(:homepage)
314
+ @is_first_party = args[:is_first_party] if args.key?(:is_first_party)
315
+ @is_unrecognized = args[:is_unrecognized] if args.key?(:is_unrecognized)
316
+ @name = args[:name] if args.key?(:name)
317
+ @origins = args[:origins] if args.key?(:origins)
318
+ end
319
+ end
320
+
264
321
  # An audit's result object in a Lighthouse result.
265
322
  class LighthouseAuditResultV5
266
323
  include Google::Apis::Core::Hashable
@@ -423,6 +480,11 @@ module Google
423
480
  # @return [Google::Apis::PagespeedonlineV5::ConfigSettings]
424
481
  attr_accessor :config_settings
425
482
 
483
+ # Entity classification data.
484
+ # Corresponds to the JSON property `entities`
485
+ # @return [Array<Google::Apis::PagespeedonlineV5::LhrEntity>]
486
+ attr_accessor :entities
487
+
426
488
  # Message containing environment configuration for a Lighthouse run.
427
489
  # Corresponds to the JSON property `environment`
428
490
  # @return [Google::Apis::PagespeedonlineV5::Environment]
@@ -433,11 +495,22 @@ module Google
433
495
  # @return [String]
434
496
  attr_accessor :fetch_time
435
497
 
498
+ # URL displayed on the page after Lighthouse finishes.
499
+ # Corresponds to the JSON property `finalDisplayedUrl`
500
+ # @return [String]
501
+ attr_accessor :final_displayed_url
502
+
436
503
  # The final resolved url that was audited.
437
504
  # Corresponds to the JSON property `finalUrl`
438
505
  # @return [String]
439
506
  attr_accessor :final_url
440
507
 
508
+ # Screenshot data of the full page, along with node rects relevant to the audit
509
+ # results.
510
+ # Corresponds to the JSON property `fullPageScreenshot`
511
+ # @return [Object]
512
+ attr_accessor :full_page_screenshot
513
+
441
514
  # Message containing the i18n data for the LHR - Version 1.
442
515
  # Corresponds to the JSON property `i18n`
443
516
  # @return [Google::Apis::PagespeedonlineV5::I18n]
@@ -448,6 +521,11 @@ module Google
448
521
  # @return [String]
449
522
  attr_accessor :lighthouse_version
450
523
 
524
+ # URL of the main document request of the final navigation.
525
+ # Corresponds to the JSON property `mainDocumentUrl`
526
+ # @return [String]
527
+ attr_accessor :main_document_url
528
+
451
529
  # The original requested url.
452
530
  # Corresponds to the JSON property `requestedUrl`
453
531
  # @return [String]
@@ -488,11 +566,15 @@ module Google
488
566
  @categories = args[:categories] if args.key?(:categories)
489
567
  @category_groups = args[:category_groups] if args.key?(:category_groups)
490
568
  @config_settings = args[:config_settings] if args.key?(:config_settings)
569
+ @entities = args[:entities] if args.key?(:entities)
491
570
  @environment = args[:environment] if args.key?(:environment)
492
571
  @fetch_time = args[:fetch_time] if args.key?(:fetch_time)
572
+ @final_displayed_url = args[:final_displayed_url] if args.key?(:final_displayed_url)
493
573
  @final_url = args[:final_url] if args.key?(:final_url)
574
+ @full_page_screenshot = args[:full_page_screenshot] if args.key?(:full_page_screenshot)
494
575
  @i18n = args[:i18n] if args.key?(:i18n)
495
576
  @lighthouse_version = args[:lighthouse_version] if args.key?(:lighthouse_version)
577
+ @main_document_url = args[:main_document_url] if args.key?(:main_document_url)
496
578
  @requested_url = args[:requested_url] if args.key?(:requested_url)
497
579
  @run_warnings = args[:run_warnings] if args.key?(:run_warnings)
498
580
  @runtime_error = args[:runtime_error] if args.key?(:runtime_error)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module PagespeedonlineV5
18
18
  # Version of the google-apis-pagespeedonline_v5 gem
19
- GEM_VERSION = "0.15.0"
19
+ GEM_VERSION = "0.17.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.12.0"
22
+ GENERATOR_VERSION = "0.13.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210603"
25
+ REVISION = "20231026"
26
26
  end
27
27
  end
28
28
  end
@@ -64,6 +64,12 @@ module Google
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class LhrEntity
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
67
73
  class LighthouseAuditResultV5
68
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
75
 
@@ -189,6 +195,7 @@ module Google
189
195
  # @private
190
196
  class Representation < Google::Apis::Core::JsonRepresentation
191
197
  property :benchmark_index, as: 'benchmarkIndex'
198
+ hash :credits, as: 'credits'
192
199
  property :host_user_agent, as: 'hostUserAgent'
193
200
  property :network_user_agent, as: 'networkUserAgent'
194
201
  end
@@ -202,6 +209,18 @@ module Google
202
209
  end
203
210
  end
204
211
 
212
+ class LhrEntity
213
+ # @private
214
+ class Representation < Google::Apis::Core::JsonRepresentation
215
+ property :category, as: 'category'
216
+ property :homepage, as: 'homepage'
217
+ property :is_first_party, as: 'isFirstParty'
218
+ property :is_unrecognized, as: 'isUnrecognized'
219
+ property :name, as: 'name'
220
+ collection :origins, as: 'origins'
221
+ end
222
+ end
223
+
205
224
  class LighthouseAuditResultV5
206
225
  # @private
207
226
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -244,13 +263,18 @@ module Google
244
263
 
245
264
  property :config_settings, as: 'configSettings', class: Google::Apis::PagespeedonlineV5::ConfigSettings, decorator: Google::Apis::PagespeedonlineV5::ConfigSettings::Representation
246
265
 
266
+ collection :entities, as: 'entities', class: Google::Apis::PagespeedonlineV5::LhrEntity, decorator: Google::Apis::PagespeedonlineV5::LhrEntity::Representation
267
+
247
268
  property :environment, as: 'environment', class: Google::Apis::PagespeedonlineV5::Environment, decorator: Google::Apis::PagespeedonlineV5::Environment::Representation
248
269
 
249
270
  property :fetch_time, as: 'fetchTime'
271
+ property :final_displayed_url, as: 'finalDisplayedUrl'
250
272
  property :final_url, as: 'finalUrl'
273
+ property :full_page_screenshot, as: 'fullPageScreenshot'
251
274
  property :i18n, as: 'i18n', class: Google::Apis::PagespeedonlineV5::I18n, decorator: Google::Apis::PagespeedonlineV5::I18n::Representation
252
275
 
253
276
  property :lighthouse_version, as: 'lighthouseVersion'
277
+ property :main_document_url, as: 'mainDocumentUrl'
254
278
  property :requested_url, as: 'requestedUrl'
255
279
  collection :run_warnings, as: 'runWarnings'
256
280
  property :runtime_error, as: 'runtimeError', class: Google::Apis::PagespeedonlineV5::RuntimeError, decorator: Google::Apis::PagespeedonlineV5::RuntimeError::Representation
@@ -35,6 +35,8 @@ module Google
35
35
  #
36
36
  # @see https://developers.google.com/speed/docs/insights/v5/about
37
37
  class PagespeedInsightsService < Google::Apis::Core::BaseService
38
+ DEFAULT_ENDPOINT_TEMPLATE = "https://pagespeedonline.$UNIVERSE_DOMAIN$/"
39
+
38
40
  # @return [String]
39
41
  # API key. Your API key identifies your project and provides you with API access,
40
42
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
@@ -46,7 +48,7 @@ module Google
46
48
  attr_accessor :quota_user
47
49
 
48
50
  def initialize
49
- super('https://pagespeedonline.googleapis.com/', '',
51
+ super(DEFAULT_ENDPOINT_TEMPLATE, '',
50
52
  client_name: 'google-apis-pagespeedonline_v5',
51
53
  client_version: Google::Apis::PagespeedonlineV5::GEM_VERSION)
52
54
  @batch_path = 'batch'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-pagespeedonline_v5
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-19 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.11.0
19
+ version: 0.12.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.11.0
29
+ version: 0.12.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pagespeedonline_v5/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-pagespeedonline_v5/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-pagespeedonline_v5/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-pagespeedonline_v5
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.4.2
78
+ rubygems_version: 3.5.3
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for PageSpeed Insights API V5