Class: Kaltura::KalturaDistributionProfile

Inherits:
KalturaObjectBase show all
Defined in:
lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb

Instance Attribute Summary collapse

Attributes inherited from KalturaObjectBase

#object_type, #related_objects

Instance Method Summary collapse

Methods inherited from KalturaObjectBase

#camelcase, #to_b, #to_params

Instance Attribute Details

#auto_create_flavorsObject

Comma separated flavor params ids that should be auto converted



358
359
360
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 358

def auto_create_flavors
  @auto_create_flavors
end

#auto_create_thumbObject

Comma separated thumbnail params ids that should be auto generated



360
361
362
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 360

def auto_create_thumb
  @auto_create_thumb
end

#created_atObject

Profile creation date as Unix timestamp (In seconds)



346
347
348
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 346

def created_at
  @created_at
end

#delete_enabledObject

Returns the value of attribute delete_enabled.



355
356
357
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 355

def delete_enabled
  @delete_enabled
end

#distribute_triggerObject

The event that trigger the automatic distribute



384
385
386
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 384

def distribute_trigger
  @distribute_trigger
end

#idObject

Auto generated unique id



344
345
346
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 344

def id
  @id
end

#nameObject

Returns the value of attribute name.



351
352
353
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 351

def name
  @name
end

#optional_asset_distribution_rulesObject

Asset Distribution Rules for assets that should be submitted if ready



370
371
372
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 370

def optional_asset_distribution_rules
  @optional_asset_distribution_rules
end

#optional_flavor_params_idsObject

Comma separated flavor params ids that should be submitted if ready



362
363
364
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 362

def optional_flavor_params_ids
  @optional_flavor_params_ids
end

#optional_thumb_dimensionsObject

Thumbnail dimensions that should be submitted if ready



366
367
368
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 366

def optional_thumb_dimensions
  @optional_thumb_dimensions
end

#partner_idObject

Returns the value of attribute partner_id.



349
350
351
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 349

def partner_id
  @partner_id
end

#provider_typeObject

Returns the value of attribute provider_type.



350
351
352
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 350

def provider_type
  @provider_type
end

The best Kaltura data center to be used to download the asset files to



380
381
382
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 380

def recommended_dc_for_download
  @recommended_dc_for_download
end

The best Kaltura data center to be used to execute the distribution job



382
383
384
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 382

def recommended_dc_for_execute
  @recommended_dc_for_execute
end

The best external storage to be used to download the asset files from



378
379
380
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 378

def recommended_storage_profile_for_download
  @recommended_storage_profile_for_download
end

#report_enabledObject

Returns the value of attribute report_enabled.



356
357
358
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 356

def report_enabled
  @report_enabled
end

#required_asset_distribution_rulesObject

Assets Asset Distribution Rules for assets that are required to be ready before submission



372
373
374
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 372

def required_asset_distribution_rules
  @required_asset_distribution_rules
end

#required_flavor_params_idsObject

Comma separated flavor params ids that required to be ready before submission



364
365
366
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 364

def required_flavor_params_ids
  @required_flavor_params_ids
end

#required_thumb_dimensionsObject

Thumbnail dimensions that required to be readt before submission



368
369
370
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 368

def required_thumb_dimensions
  @required_thumb_dimensions
end

#statusObject

Returns the value of attribute status.



352
353
354
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 352

def status
  @status
end

#submit_enabledObject

Returns the value of attribute submit_enabled.



353
354
355
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 353

def submit_enabled
  @submit_enabled
end

#sunrise_default_offsetObject

If entry distribution sunrise not specified that will be the default since entry creation time, in seconds



374
375
376
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 374

def sunrise_default_offset
  @sunrise_default_offset
end

#sunset_default_offsetObject

If entry distribution sunset not specified that will be the default since entry creation time, in seconds



376
377
378
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 376

def sunset_default_offset
  @sunset_default_offset
end

#update_enabledObject

Returns the value of attribute update_enabled.



354
355
356
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 354

def update_enabled
  @update_enabled
end

#updated_atObject

Profile last update date as Unix timestamp (In seconds)



348
349
350
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 348

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 432

def from_xml(xml_element)
	super
	if xml_element.elements['id'] != nil
		self.id = xml_element.elements['id'].text
	end
	if xml_element.elements['createdAt'] != nil
		self.created_at = xml_element.elements['createdAt'].text
	end
	if xml_element.elements['updatedAt'] != nil
		self.updated_at = xml_element.elements['updatedAt'].text
	end
	if xml_element.elements['partnerId'] != nil
		self.partner_id = xml_element.elements['partnerId'].text
	end
	if xml_element.elements['providerType'] != nil
		self.provider_type = xml_element.elements['providerType'].text
	end
	if xml_element.elements['name'] != nil
		self.name = xml_element.elements['name'].text
	end
	if xml_element.elements['status'] != nil
		self.status = xml_element.elements['status'].text
	end
	if xml_element.elements['submitEnabled'] != nil
		self.submit_enabled = xml_element.elements['submitEnabled'].text
	end
	if xml_element.elements['updateEnabled'] != nil
		self.update_enabled = xml_element.elements['updateEnabled'].text
	end
	if xml_element.elements['deleteEnabled'] != nil
		self.delete_enabled = xml_element.elements['deleteEnabled'].text
	end
	if xml_element.elements['reportEnabled'] != nil
		self.report_enabled = xml_element.elements['reportEnabled'].text
	end
	if xml_element.elements['autoCreateFlavors'] != nil
		self.auto_create_flavors = xml_element.elements['autoCreateFlavors'].text
	end
	if xml_element.elements['autoCreateThumb'] != nil
		self.auto_create_thumb = xml_element.elements['autoCreateThumb'].text
	end
	if xml_element.elements['optionalFlavorParamsIds'] != nil
		self.optional_flavor_params_ids = xml_element.elements['optionalFlavorParamsIds'].text
	end
	if xml_element.elements['requiredFlavorParamsIds'] != nil
		self.required_flavor_params_ids = xml_element.elements['requiredFlavorParamsIds'].text
	end
	if xml_element.elements['optionalThumbDimensions'] != nil
		self.optional_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['optionalThumbDimensions'], 'KalturaDistributionThumbDimensions')
	end
	if xml_element.elements['requiredThumbDimensions'] != nil
		self.required_thumb_dimensions = KalturaClientBase.object_from_xml(xml_element.elements['requiredThumbDimensions'], 'KalturaDistributionThumbDimensions')
	end
	if xml_element.elements['optionalAssetDistributionRules'] != nil
		self.optional_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['optionalAssetDistributionRules'], 'KalturaAssetDistributionRule')
	end
	if xml_element.elements['requiredAssetDistributionRules'] != nil
		self.required_asset_distribution_rules = KalturaClientBase.object_from_xml(xml_element.elements['requiredAssetDistributionRules'], 'KalturaAssetDistributionRule')
	end
	if xml_element.elements['sunriseDefaultOffset'] != nil
		self.sunrise_default_offset = xml_element.elements['sunriseDefaultOffset'].text
	end
	if xml_element.elements['sunsetDefaultOffset'] != nil
		self.sunset_default_offset = xml_element.elements['sunsetDefaultOffset'].text
	end
	if xml_element.elements['recommendedStorageProfileForDownload'] != nil
		self.recommended_storage_profile_for_download = xml_element.elements['recommendedStorageProfileForDownload'].text
	end
	if xml_element.elements['recommendedDcForDownload'] != nil
		self.recommended_dc_for_download = xml_element.elements['recommendedDcForDownload'].text
	end
	if xml_element.elements['recommendedDcForExecute'] != nil
		self.recommended_dc_for_execute = xml_element.elements['recommendedDcForExecute'].text
	end
	if xml_element.elements['distributeTrigger'] != nil
		self.distribute_trigger = xml_element.elements['distributeTrigger'].text
	end
end