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



2436
2437
2438
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2436

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)


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

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)


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

def channel_id
  @channel_id
end

#content_typeString

Type of content possible values are

  • MOVIE
  • SHOW Corresponds to the JSON property contentType

Returns:

  • (String)


2345
2346
2347
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2345

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)


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

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)


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

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



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

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



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

def est_dates
  @est_dates
end

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

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



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

def events
  @events
end

#idString

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

Returns:

  • (String)


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

def id
  @id
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#movieString

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

Returns:

  • (String)


2387
2388
2389
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2387

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



2392
2393
2394
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2392

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)


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

def priority
  @priority
end

#production_houseString

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

Returns:

  • (String)


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

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)


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

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



2414
2415
2416
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2414

def requirements
  @requirements
end

#showGoogle::Apis::YoutubePartnerV1::ShowDetails

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



2419
2420
2421
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2419

def show
  @show
end

#statusString

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

Returns:

  • (String)


2424
2425
2426
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2424

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)


2429
2430
2431
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2429

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



2434
2435
2436
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2434

def vod_dates
  @vod_dates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2441

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