Class: Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
- Inherits:
-
Object
- Object
- Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse
- 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
Batch AMP URL response.
Instance Attribute Summary collapse
-
#amp_urls ⇒ Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>
For each URL in BatchAmpUrlsRequest, the URL response.
-
#url_errors ⇒ Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>
The errors for requested URLs that have no AMP URL.
Instance Method Summary collapse
-
#initialize(**args) ⇒ BatchGetAmpUrlsResponse
constructor
A new instance of BatchGetAmpUrlsResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ BatchGetAmpUrlsResponse
Returns a new instance of BatchGetAmpUrlsResponse
132 133 134 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 132 def initialize(**args) update!(**args) end |
Instance Attribute Details
#amp_urls ⇒ Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrl>
For each URL in BatchAmpUrlsRequest, the URL response. The response might
not be in the same order as URLs in the batch request.
If BatchAmpUrlsRequest contains duplicate URLs, AmpUrl is generated
only once.
Corresponds to the JSON property ampUrls
125 126 127 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 125 def amp_urls @amp_urls end |
#url_errors ⇒ Array<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>
The errors for requested URLs that have no AMP URL.
Corresponds to the JSON property urlErrors
130 131 132 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 130 def url_errors @url_errors end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
137 138 139 140 |
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 137 def update!(**args) @amp_urls = args[:amp_urls] if args.key?(:amp_urls) @url_errors = args[:url_errors] if args.key?(:url_errors) end |