Class: Google::Apis::YoutubeV3::InvideoBranding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ InvideoBranding

Returns a new instance of InvideoBranding.



3377
3378
3379
# File 'generated/google/apis/youtube_v3/classes.rb', line 3377

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

Instance Attribute Details

#image_bytesString

Corresponds to the JSON property imageBytes NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


3354
3355
3356
# File 'generated/google/apis/youtube_v3/classes.rb', line 3354

def image_bytes
  @image_bytes
end

#image_urlString

Corresponds to the JSON property imageUrl

Returns:

  • (String)


3359
3360
3361
# File 'generated/google/apis/youtube_v3/classes.rb', line 3359

def image_url
  @image_url
end

#positionGoogle::Apis::YoutubeV3::InvideoPosition

Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one. Corresponds to the JSON property position



3365
3366
3367
# File 'generated/google/apis/youtube_v3/classes.rb', line 3365

def position
  @position
end

#target_channel_idString

Corresponds to the JSON property targetChannelId

Returns:

  • (String)


3370
3371
3372
# File 'generated/google/apis/youtube_v3/classes.rb', line 3370

def target_channel_id
  @target_channel_id
end

#timingGoogle::Apis::YoutubeV3::InvideoTiming

Describes a temporal position of a visual widget inside a video. Corresponds to the JSON property timing



3375
3376
3377
# File 'generated/google/apis/youtube_v3/classes.rb', line 3375

def timing
  @timing
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3382
3383
3384
3385
3386
3387
3388
# File 'generated/google/apis/youtube_v3/classes.rb', line 3382

def update!(**args)
  @image_bytes = args[:image_bytes] if args.key?(:image_bytes)
  @image_url = args[:image_url] if args.key?(:image_url)
  @position = args[:position] if args.key?(:position)
  @target_channel_id = args[:target_channel_id] if args.key?(:target_channel_id)
  @timing = args[:timing] if args.key?(:timing)
end