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.


2365
2366
2367
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2365

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)

2262
2263
2264
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2262

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)

2267
2268
2269
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2267

def channel_id
  @channel_id
end

#content_typeString

Type of content possible values are

  • MOVIE
  • SHOW Corresponds to the JSON property contentType

Returns:

  • (String)

2274
2275
2276
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2274

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)

2280
2281
2282
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2280

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)

2286
2287
2288
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2286

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


2291
2292
2293
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2291

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


2296
2297
2298
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2296

def est_dates
  @est_dates
end

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

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


2301
2302
2303
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2301

def events
  @events
end

#idString

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

Returns:

  • (String)

2306
2307
2308
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2306

def id
  @id
end

#kindString

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

Returns:

  • (String)

2311
2312
2313
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2311

def kind
  @kind
end

#movieString

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

Returns:

  • (String)

2316
2317
2318
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2316

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


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

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)

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

def priority
  @priority
end

#production_houseString

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

Returns:

  • (String)

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

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)

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

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


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

def requirements
  @requirements
end

#showGoogle::Apis::YoutubePartnerV1::ShowDetails

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


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

def show
  @show
end

#statusString

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

Returns:

  • (String)

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

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)

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

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


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

def vod_dates
  @vod_dates
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
# File 'generated/google/apis/youtube_partner_v1/classes.rb', line 2370

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