Class: Google::Apis::DisplayvideoV1::Site

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

Overview

A single site. Sites are apps or websites belonging to a channel.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Site

Returns a new instance of Site.



7625
7626
7627
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 7625

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

Instance Attribute Details

#nameString

Output only. The resource name of the site. Corresponds to the JSON property name

Returns:

  • (String)


7617
7618
7619
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 7617

def name
  @name
end

#url_or_app_idString

Required. The URL or app ID of the site. Must be UTF-8 encoded with a maximum length of 240 bytes. Corresponds to the JSON property urlOrAppId

Returns:

  • (String)


7623
7624
7625
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 7623

def url_or_app_id
  @url_or_app_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7630
7631
7632
7633
# File 'generated/google/apis/displayvideo_v1/classes.rb', line 7630

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