Class: Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsResponse

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

Batch AMP URL response.

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

Returns a new instance of BatchGetAmpUrlsResponse



100
101
102
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 100

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

Instance Attribute Details

#amp_urlsArray<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



93
94
95
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 93

def amp_urls
  @amp_urls
end

#url_errorsArray<Google::Apis::AcceleratedmobilepageurlV1::AmpUrlError>

The errors for requested URLs that have no AMP URL. Corresponds to the JSON property urlErrors



98
99
100
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 98

def url_errors
  @url_errors
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



105
106
107
108
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 105

def update!(**args)
  @amp_urls = args[:amp_urls] if args.key?(:amp_urls)
  @url_errors = args[:url_errors] if args.key?(:url_errors)
end