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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AssetShare

Returns a new instance of AssetShare



505
506
507
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 505

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)


493
494
495
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 493

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)


498
499
500
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 498

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)


503
504
505
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 503

def view_id
  @view_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



510
511
512
513
514
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 510

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