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



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

def auto_create_flavors
  @auto_create_flavors
end

#auto_create_thumbObject

Comma separated thumbnail params ids that should be auto generated



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

def auto_create_thumb
  @auto_create_thumb
end

#created_atObject

Profile creation date as Unix timestamp (In seconds)



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

def created_at
  @created_at
end

#delete_enabledObject

Returns the value of attribute delete_enabled.



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

def delete_enabled
  @delete_enabled
end

#distribute_triggerObject

The event that trigger the automatic distribute



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

def distribute_trigger
  @distribute_trigger
end

#idObject

Auto generated unique id



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

def id
  @id
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#optional_asset_distribution_rulesObject

Asset Distribution Rules for assets that should be submitted if ready



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

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



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

def optional_flavor_params_ids
  @optional_flavor_params_ids
end

#optional_thumb_dimensionsObject

Thumbnail dimensions that should be submitted if ready



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

def optional_thumb_dimensions
  @optional_thumb_dimensions
end

#partner_idObject

Returns the value of attribute partner_id.



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

def partner_id
  @partner_id
end

#provider_typeObject

Returns the value of attribute provider_type.



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

def provider_type
  @provider_type
end

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



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

def recommended_dc_for_download
  @recommended_dc_for_download
end

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



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

def recommended_dc_for_execute
  @recommended_dc_for_execute
end

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



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

def recommended_storage_profile_for_download
  @recommended_storage_profile_for_download
end

#report_enabledObject

Returns the value of attribute report_enabled.



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

def report_enabled
  @report_enabled
end

#required_asset_distribution_rulesObject

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



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

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



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

def required_flavor_params_ids
  @required_flavor_params_ids
end

#required_thumb_dimensionsObject

Thumbnail dimensions that required to be readt before submission



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

def required_thumb_dimensions
  @required_thumb_dimensions
end

#statusObject

Returns the value of attribute status.



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

def status
  @status
end

#submit_enabledObject

Returns the value of attribute submit_enabled.



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

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



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

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



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

def sunset_default_offset
  @sunset_default_offset
end

#support_image_entryObject

Returns the value of attribute support_image_entry.



386
387
388
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 386

def support_image_entry
  @support_image_entry
end

#update_enabledObject

Returns the value of attribute update_enabled.



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

def update_enabled
  @update_enabled
end

#updated_atObject

Profile last update date as Unix timestamp (In seconds)



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

def updated_at
  @updated_at
end

Instance Method Details

#from_xml(xml_element) ⇒ Object



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
510
511
512
513
514
515
516
517
# File 'lib/kaltura_plugins/kaltura_content_distribution_client_plugin.rb', line 437

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
	if xml_element.elements['supportImageEntry'] != nil
		self.support_image_entry = xml_element.elements['supportImageEntry'].text
	end
end