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

Constructor Details

#initialize(**args) ⇒ BatchGetAmpUrlsRequest

Returns a new instance of BatchGetAmpUrlsRequest.



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

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


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

def urls
  @urls
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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