Class: Google::Apis::YoutubePartnerV1::Order

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

Returns a new instance of Order.



2411
2412
2413
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2411

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

Instance Attribute Details

#avail_group_idString

Links an order to the avails associated with it. Corresponds to the JSON property availGroupId

Returns:

  • (String)


2308
2309
2310
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2308

def avail_group_id
  @avail_group_id
end

#channel_idString

Channel ID - identifies the channel this order and video are associated with Corresponds to the JSON property channelId

Returns:

  • (String)


2313
2314
2315
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2313

def channel_id
  @channel_id
end

#content_typeString

Type of content possible values are

  • MOVIE
  • SHOW Corresponds to the JSON property contentType

Returns:

  • (String)


2320
2321
2322
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2320

def content_type
  @content_type
end

#countryString

Two letter country code for the order only countries where YouTube does transactional business are allowed. Corresponds to the JSON property country

Returns:

  • (String)


2326
2327
2328
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2326

def country
  @country
end

#custom_idString

Secondary id to be used to identify content in other systems like partner database Corresponds to the JSON property customId

Returns:

  • (String)


2332
2333
2334
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2332

def custom_id
  @custom_id
end

#dvd_release_dateGoogle::Apis::YoutubePartnerV1::Date

Date when this content was first made available on DVD Corresponds to the JSON property dvdReleaseDate



2337
2338
2339
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2337

def dvd_release_date
  @dvd_release_date
end

#est_datesGoogle::Apis::YoutubePartnerV1::DateRange

Range of time content is to be available for rental. Corresponds to the JSON property estDates



2342
2343
2344
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2342

def est_dates
  @est_dates
end

#eventsArray<Google::Apis::YoutubePartnerV1::StateCompleted>

History log of events for this order Corresponds to the JSON property events



2347
2348
2349
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2347

def events
  @events
end

#idString

Order Id unique identifier for an order. Corresponds to the JSON property id

Returns:

  • (String)


2352
2353
2354
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2352

def id
  @id
end

#kindString

Identifies this resource as order. Value: "youtubePartner#order". Corresponds to the JSON property kind

Returns:

  • (String)


2357
2358
2359
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2357

def kind
  @kind
end

#movieString

Title if the order is type movie. Corresponds to the JSON property movie

Returns:

  • (String)


2362
2363
2364
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2362

def movie
  @movie
end

#original_release_dateGoogle::Apis::YoutubePartnerV1::Date

Date when this content was first made available to the public Corresponds to the JSON property originalReleaseDate



2367
2368
2369
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2367

def original_release_date
  @original_release_date
end

#priorityString

The priority for the order in the QC review queue once the content is ready for QC. Corresponds to the JSON property priority

Returns:

  • (String)


2373
2374
2375
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2373

def priority
  @priority
end

#production_houseString

Post production house that is to process this order Corresponds to the JSON property productionHouse

Returns:

  • (String)


2378
2379
2380
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2378

def production_house
  @production_house
end

#purchase_orderString

Youtube purchase order reference for the post production house. Corresponds to the JSON property purchaseOrder

Returns:

  • (String)


2383
2384
2385
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2383

def purchase_order
  @purchase_order
end

#requirementsGoogle::Apis::YoutubePartnerV1::Requirements

Minumim set of requirements for this order to be complete such as is a trailer required. Corresponds to the JSON property requirements



2389
2390
2391
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2389

def requirements
  @requirements
end

#showGoogle::Apis::YoutubePartnerV1::ShowDetails

Details of a show, show name, season number, episode etc. Corresponds to the JSON property show



2394
2395
2396
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2394

def show
  @show
end

#statusString

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

Returns:

  • (String)


2399
2400
2401
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2399

def status
  @status
end

#video_idString

Video ID the video that this order is associated with if any. Corresponds to the JSON property videoId

Returns:

  • (String)


2404
2405
2406
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2404

def video_id
  @video_id
end

#vod_datesGoogle::Apis::YoutubePartnerV1::DateRange

Range of time content is to be available for purchase. Corresponds to the JSON property vodDates



2409
2410
2411
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2409

def vod_dates
  @vod_dates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2416

def update!(**args)
  @avail_group_id = args[:avail_group_id] if args.key?(:avail_group_id)
  @channel_id = args[:channel_id] if args.key?(:channel_id)
  @content_type = args[:content_type] if args.key?(:content_type)
  @country = args[:country] if args.key?(:country)
  @custom_id = args[:custom_id] if args.key?(:custom_id)
  @dvd_release_date = args[:dvd_release_date] if args.key?(:dvd_release_date)
  @est_dates = args[:est_dates] if args.key?(:est_dates)
  @events = args[:events] if args.key?(:events)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @movie = args[:movie] if args.key?(:movie)
  @original_release_date = args[:original_release_date] if args.key?(:original_release_date)
  @priority = args[:priority] if args.key?(:priority)
  @production_house = args[:production_house] if args.key?(:production_house)
  @purchase_order = args[:purchase_order] if args.key?(:purchase_order)
  @requirements = args[:requirements] if args.key?(:requirements)
  @show = args[:show] if args.key?(:show)
  @status = args[:status] if args.key?(:status)
  @video_id = args[:video_id] if args.key?(:video_id)
  @vod_dates = args[:vod_dates] if args.key?(:vod_dates)
end