Class: Google::Apis::SearchconsoleV1::InspectUrlIndexRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/searchconsole_v1/classes.rb,
lib/google/apis/searchconsole_v1/representations.rb,
lib/google/apis/searchconsole_v1/representations.rb

Overview

Index inspection request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ InspectUrlIndexRequest

Returns a new instance of InspectUrlIndexRequest.



409
410
411
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 409

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

Instance Attribute Details

#inspection_urlString

Required. URL to inspect. Must be under the property specified in "site_url". Corresponds to the JSON property inspectionUrl

Returns:

  • (String)


393
394
395
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 393

def inspection_url
  @inspection_url
end

#language_codeString

Optional. An IETF BCP-47 language code representing the requested language for translated issue messages, e.g. "en-US", "or "de-CH". Default value is "en-US". Corresponds to the JSON property languageCode

Returns:

  • (String)


400
401
402
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 400

def language_code
  @language_code
end

#site_urlString

Required. The URL of the property as defined in Search Console. Examples: http://www.example.com/ for a URL-prefix property, or sc-domain:example.com for a Domain property. Corresponds to the JSON property siteUrl

Returns:

  • (String)


407
408
409
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 407

def site_url
  @site_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



414
415
416
417
418
# File 'lib/google/apis/searchconsole_v1/classes.rb', line 414

def update!(**args)
  @inspection_url = args[:inspection_url] if args.key?(:inspection_url)
  @language_code = args[:language_code] if args.key?(:language_code)
  @site_url = args[:site_url] if args.key?(:site_url)
end