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.



431
432
433
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 431

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)


418
419
420
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 418

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)


424
425
426
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 424

def name
  @name
end

#stateString

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

Returns:

  • (String)


429
430
431
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 429

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



436
437
438
439
440
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 436

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