Class: Google::Apis::AdsenseplatformV1alpha::Site

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

Overview

Representation of a Site.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Site

Returns a new instance of Site.



607
608
609
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 607

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

Instance Attribute Details

#domainString

Domain/sub-domain of the site. Must be a valid domain complying with RFC 1035 and formatted as punycode RFC 3492 in case the domain contains unicode characters. Corresponds to the JSON property domain

Returns:

  • (String)


594
595
596
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 594

def domain
  @domain
end

#nameString

Output only. Resource name of a site. Format: platforms/platform/accounts/ account/sites/site Corresponds to the JSON property name

Returns:

  • (String)


600
601
602
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 600

def name
  @name
end

#stateString

Output only. State of a site. Corresponds to the JSON property state

Returns:

  • (String)


605
606
607
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 605

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



612
613
614
615
616
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 612

def update!(**args)
  @domain = args[:domain] if args.key?(:domain)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end