Class: Google::Apis::YoutubePartnerV1::AssetShare

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AssetShare

Returns a new instance of AssetShare.



430
431
432
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 430

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

Instance Attribute Details

#kindString

The type of the API resource. For this resource, the value is youtubePartner# assetShare. Corresponds to the JSON property kind

Returns:

  • (String)


418
419
420
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 418

def kind
  @kind
end

#share_idString

A value that YouTube assigns and uses to uniquely identify the asset share. Corresponds to the JSON property shareId

Returns:

  • (String)


423
424
425
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 423

def share_id
  @share_id
end

#view_idString

A value that YouTube assigns and uses to uniquely identify the asset view. Corresponds to the JSON property viewId

Returns:

  • (String)


428
429
430
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 428

def view_id
  @view_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



435
436
437
438
439
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 435

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @share_id = args[:share_id] if args.key?(:share_id)
  @view_id = args[:view_id] if args.key?(:view_id)
end