Class: Google::Apis::AdsenseplatformV1alpha::Site
- Inherits:
-
Object
- Object
- Google::Apis::AdsenseplatformV1alpha::Site
- 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
-
#domain ⇒ String
Domain/sub-domain of the site.
-
#name ⇒ String
Output only.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Site
constructor
A new instance of Site.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#domain ⇒ String
418 419 420 |
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 418 def domain @domain end |
#name ⇒ String
Output only. Resource name of a site. Format: platforms/platform
/accounts/
account
/sites/site
Corresponds to the JSON property name
424 425 426 |
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 424 def name @name end |
#state ⇒ String
Output only. State of a site.
Corresponds to the JSON property state
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 |