Class: Google::Apis::YoutubePartnerV1::AssetShare
- Inherits:
-
Object
- Object
- Google::Apis::YoutubePartnerV1::AssetShare
- 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
-
#kind ⇒ String
The type of the API resource.
-
#share_id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset share.
-
#view_id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset view.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AssetShare
constructor
A new instance of AssetShare.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ AssetShare
Returns a new instance of AssetShare.
472 473 474 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 472 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
assetShare.
Corresponds to the JSON property kind
460 461 462 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 460 def kind @kind end |
#share_id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset share.
Corresponds to the JSON property shareId
465 466 467 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 465 def share_id @share_id end |
#view_id ⇒ String
A value that YouTube assigns and uses to uniquely identify the asset view.
Corresponds to the JSON property viewId
470 471 472 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 470 def view_id @view_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
477 478 479 480 481 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 477 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 |