Class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError

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

Overview

AMP URL Error resource for a requested URL that couldn't be found.

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) ⇒ AmpUrlError

Returns a new instance of AmpUrlError



44
45
46
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 44

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

Instance Attribute Details

#error_codeString

The error code of an API call. Corresponds to the JSON property errorCode

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 32

def error_code
  @error_code
end

#error_messageString

An optional descriptive error message. Corresponds to the JSON property errorMessage

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 42

def error_message
  @error_message
end

#original_urlString

The original non-AMP URL. Corresponds to the JSON property originalUrl

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 37

def original_url
  @original_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



49
50
51
52
53
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 49

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @original_url = args[:original_url] if args.key?(:original_url)
  @error_message = args[:error_message] if args.key?(:error_message)
end