Class: Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError
- Inherits:
-
Object
- Object
- Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError
- 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
-
#error_code ⇒ String
The error code of an API call.
-
#error_message ⇒ String
An optional descriptive error message.
-
#original_url ⇒ String
The original non-AMP URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AmpUrlError
constructor
A new instance of AmpUrlError.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AmpUrlError
Returns a new instance of AmpUrlError
76 77 78 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 76 def initialize(**args) update!(**args) end |
Instance Attribute Details
#error_code ⇒ String
The error code of an API call.
Corresponds to the JSON property errorCode
64 65 66 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 64 def error_code @error_code end |
#error_message ⇒ String
An optional descriptive error message.
Corresponds to the JSON property errorMessage
69 70 71 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 69 def @error_message end |
#original_url ⇒ String
The original non-AMP URL.
Corresponds to the JSON property originalUrl
74 75 76 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 74 def original_url @original_url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
81 82 83 84 85 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 81 def update!(**args) @error_code = args[:error_code] if args.key?(:error_code) @error_message = args[:error_message] if args.key?(:error_message) @original_url = args[:original_url] if args.key?(:original_url) end |