Class: Google::Apis::SearchconsoleV1::WmxSite

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

Overview

Contains permission level information about a Search Console site. For more information, see Permissions in Search Console.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ WmxSite

Returns a new instance of WmxSite.



483
484
485
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 483

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

Instance Attribute Details

#permission_levelString

The user's permission level for the site. Corresponds to the JSON property permissionLevel

Returns:

  • (String)


476
477
478
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 476

def permission_level
  @permission_level
end

#site_urlString

The URL of the site. Corresponds to the JSON property siteUrl

Returns:

  • (String)


481
482
483
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 481

def site_url
  @site_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



488
489
490
491
# File 'generated/google/apis/searchconsole_v1/classes.rb', line 488

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