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.
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
#kind ⇒ String
The type of the API resource. For this resource, the value is youtubePartner#
assetShare.
Corresponds to the JSON property kind
418 419 420 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 418 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
423 424 425 |
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 423 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
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 |