Class: Google::Apis::PagespeedonlineV5::PagespeedApiPagespeedResponseV5

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pagespeedonline_v5/classes.rb,
generated/google/apis/pagespeedonline_v5/representations.rb,
generated/google/apis/pagespeedonline_v5/representations.rb

Defined Under Namespace

Classes: Version

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PagespeedApiPagespeedResponseV5

Returns a new instance of PagespeedApiPagespeedResponseV5



725
726
727
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 725

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#analysis_utc_timestampString

The UTC timestamp of this analysis. Corresponds to the JSON property analysisUTCTimestamp

Returns:

  • (String)


687
688
689
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 687

def analysis_utc_timestamp
  @analysis_utc_timestamp
end

#captcha_resultString

The captcha verify result Corresponds to the JSON property captchaResult

Returns:

  • (String)


692
693
694
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 692

def captcha_result
  @captcha_result
end

#idString

Canonicalized and final URL for the document, after following page redirects ( if any). Corresponds to the JSON property id

Returns:

  • (String)


698
699
700
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 698

def id
  @id
end

#kindString

Kind of result. Corresponds to the JSON property kind

Returns:

  • (String)


703
704
705
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 703

def kind
  @kind
end

#lighthouse_resultGoogle::Apis::PagespeedonlineV5::LighthouseResultV5

Lighthouse response for the audit url as an object. Corresponds to the JSON property lighthouseResult



708
709
710
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 708

def lighthouse_result
  @lighthouse_result
end

#loading_experienceGoogle::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5

Metrics of end users' page loading experience. Corresponds to the JSON property loadingExperience



713
714
715
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 713

def loading_experience
  @loading_experience
end

#origin_loading_experienceGoogle::Apis::PagespeedonlineV5::PagespeedApiLoadingExperienceV5

Metrics of the aggregated page loading experience of the origin Corresponds to the JSON property originLoadingExperience



718
719
720
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 718

def origin_loading_experience
  @origin_loading_experience
end

#versionGoogle::Apis::PagespeedonlineV5::PagespeedApiPagespeedResponseV5::Version

The version of PageSpeed used to generate these results. Corresponds to the JSON property version



723
724
725
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 723

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



730
731
732
733
734
735
736
737
738
739
# File 'generated/google/apis/pagespeedonline_v5/classes.rb', line 730

def update!(**args)
  @analysis_utc_timestamp = args[:analysis_utc_timestamp] if args.key?(:analysis_utc_timestamp)
  @captcha_result = args[:captcha_result] if args.key?(:captcha_result)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @lighthouse_result = args[:lighthouse_result] if args.key?(:lighthouse_result)
  @loading_experience = args[:loading_experience] if args.key?(:loading_experience)
  @origin_loading_experience = args[:origin_loading_experience] if args.key?(:origin_loading_experience)
  @version = args[:version] if args.key?(:version)
end