Class: Google::Apis::AcceleratedmobilepageurlV1::BatchGetAmpUrlsRequest

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 request for a batch of URLs.

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

Returns a new instance of BatchGetAmpUrlsRequest



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

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

Instance Attribute Details

#lookup_strategyString

The lookup_strategy being requested. Corresponds to the JSON property lookupStrategy

Returns:

  • (String)


95
96
97
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 95

def lookup_strategy
  @lookup_strategy
end

#urlsArray<String>

List of URLs to look up for the paired AMP URLs. The URLs are case-sensitive. Up to 50 URLs per lookup (see Usage Limits). Corresponds to the JSON property urls

Returns:

  • (Array<String>)


102
103
104
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 102

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



109
110
111
112
# File 'generated/google/apis/acceleratedmobilepageurl_v1/classes.rb', line 109

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