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.
607 608 609 |
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#domain ⇒ String
594 595 596 |
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 594 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
600 601 602 |
# File 'lib/google/apis/adsenseplatform_v1alpha/classes.rb', line 600 def name @name end |
#state ⇒ String
Output only. State of a site.
Corresponds to the JSON property state
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 |