Class: Google::Apis::YoutubePartnerV1::ClaimSnippet

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

Defined Under Namespace

Classes: Origin

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) ⇒ ClaimSnippet

Returns a new instance of ClaimSnippet.



1311
1312
1313
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1311

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

Instance Attribute Details

#asset_idString

The unique YouTube asset ID that identifies the asset associated with the claim. Corresponds to the JSON property assetId

Returns:

  • (String)


1244
1245
1246
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1244

def asset_id
  @asset_id
end

#content_typeString

This value indicates whether the claim covers the audio, video, or audiovisual portion of the claimed content. Corresponds to the JSON property contentType

Returns:

  • (String)


1250
1251
1252
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1250

def content_type
  @content_type
end

#idString

The ID that YouTube assigns and uses to uniquely identify the claim. Corresponds to the JSON property id

Returns:

  • (String)


1255
1256
1257
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1255

def id
  @id
end

#is_partner_uploadedBoolean Also known as: is_partner_uploaded?

Indicates whether or not the claim is a partner uploaded claim. Corresponds to the JSON property isPartnerUploaded

Returns:

  • (Boolean)


1260
1261
1262
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1260

def is_partner_uploaded
  @is_partner_uploaded
end

#kindString

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

Returns:

  • (String)


1267
1268
1269
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1267

def kind
  @kind
end

#originGoogle::Apis::YoutubePartnerV1::ClaimSnippet::Origin

Corresponds to the JSON property origin



1272
1273
1274
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1272

def origin
  @origin
end

#statusString

The claim's status. Corresponds to the JSON property status

Returns:

  • (String)


1277
1278
1279
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1277

def status
  @status
end

#third_party_claimBoolean Also known as: third_party_claim?

Indicates that this is a third party claim. Corresponds to the JSON property thirdPartyClaim

Returns:

  • (Boolean)


1282
1283
1284
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1282

def third_party_claim
  @third_party_claim
end

#time_createdDateTime

The time the claim was created. Corresponds to the JSON property timeCreated

Returns:

  • (DateTime)


1288
1289
1290
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1288

def time_created
  @time_created
end

#time_status_last_modifiedDateTime

The time the claim status and/or status detail was last modified. Corresponds to the JSON property timeStatusLastModified

Returns:

  • (DateTime)


1293
1294
1295
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1293

def time_status_last_modified
  @time_status_last_modified
end

#video_idString

The unique YouTube video ID that identifies the video associated with the claim. Corresponds to the JSON property videoId

Returns:

  • (String)


1299
1300
1301
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1299

def video_id
  @video_id
end

#video_titleString

The title of the claimed video. Corresponds to the JSON property videoTitle

Returns:

  • (String)


1304
1305
1306
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1304

def video_title
  @video_title
end

#video_viewsFixnum

Number of views for the claimed video. Corresponds to the JSON property videoViews

Returns:

  • (Fixnum)


1309
1310
1311
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1309

def video_views
  @video_views
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 1316

def update!(**args)
  @asset_id = args[:asset_id] if args.key?(:asset_id)
  @content_type = args[:content_type] if args.key?(:content_type)
  @id = args[:id] if args.key?(:id)
  @is_partner_uploaded = args[:is_partner_uploaded] if args.key?(:is_partner_uploaded)
  @kind = args[:kind] if args.key?(:kind)
  @origin = args[:origin] if args.key?(:origin)
  @status = args[:status] if args.key?(:status)
  @third_party_claim = args[:third_party_claim] if args.key?(:third_party_claim)
  @time_created = args[:time_created] if args.key?(:time_created)
  @time_status_last_modified = args[:time_status_last_modified] if args.key?(:time_status_last_modified)
  @video_id = args[:video_id] if args.key?(:video_id)
  @video_title = args[:video_title] if args.key?(:video_title)
  @video_views = args[:video_views] if args.key?(:video_views)
end