velir_kaltura-ruby 0.2.2 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 0
3
- :minor: 2
3
+ :minor: 3
4
4
  :patch: 2
5
5
  :build:
data/lib/kaltura.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'kaltura/kaltura_client_base'
2
2
  require 'kaltura/kaltura_client'
3
3
  require 'kaltura/constants'
4
+ require 'kaltura/service'
4
5
  require 'yaml'
5
6
  require 'rubygems'
6
7
  require 'json'
@@ -2375,2373 +2375,235 @@ module Kaltura
2375
2375
 
2376
2376
  end
2377
2377
 
2378
-
2379
- class KalturaAccessControlService < KalturaServiceBase
2380
- def initialize(client)
2381
- super(client)
2382
- end
2383
-
2384
- def add(access_control)
2385
- kparams = {}
2386
- client.add_param(kparams, 'accessControl', access_control);
2387
- client.queue_service_action_call('accessControl', 'add', kparams);
2388
- if (client.is_multirequest)
2389
- return nil;
2390
- end
2391
- return client.do_queue();
2392
- end
2393
-
2394
- def get(id)
2395
- kparams = {}
2396
- client.add_param(kparams, 'id', id);
2397
- client.queue_service_action_call('accessControl', 'get', kparams);
2398
- if (client.is_multirequest)
2399
- return nil;
2400
- end
2401
- return client.do_queue();
2402
- end
2403
-
2404
- def update(id, access_control)
2405
- kparams = {}
2406
- client.add_param(kparams, 'id', id);
2407
- client.add_param(kparams, 'accessControl', access_control);
2408
- client.queue_service_action_call('accessControl', 'update', kparams);
2409
- if (client.is_multirequest)
2410
- return nil;
2411
- end
2412
- return client.do_queue();
2413
- end
2414
-
2415
- def delete(id)
2416
- kparams = {}
2417
- client.add_param(kparams, 'id', id);
2418
- client.queue_service_action_call('accessControl', 'delete', kparams);
2419
- if (client.is_multirequest)
2420
- return nil;
2421
- end
2422
- return client.do_queue();
2423
- end
2424
-
2425
- def list(filter=nil, pager=nil)
2426
- kparams = {}
2427
- client.add_param(kparams, 'filter', filter);
2428
- client.add_param(kparams, 'pager', pager);
2429
- client.queue_service_action_call('accessControl', 'list', kparams);
2430
- if (client.is_multirequest)
2431
- return nil;
2432
- end
2433
- return client.do_queue();
2434
- end
2435
- end
2436
-
2437
- class KalturaAdminUserService < KalturaServiceBase
2438
- def initialize(client)
2439
- super(client)
2440
- end
2441
-
2442
- def update_password(email, password, new_email='', new_password='')
2443
- kparams = {}
2444
- client.add_param(kparams, 'email', email);
2445
- client.add_param(kparams, 'password', password);
2446
- client.add_param(kparams, 'newEmail', new_email);
2447
- client.add_param(kparams, 'newPassword', new_password);
2448
- client.queue_service_action_call('adminUser', 'updatePassword', kparams);
2449
- if (client.is_multirequest)
2450
- return nil;
2451
- end
2452
- return client.do_queue();
2453
- end
2454
-
2455
- def reset_password(email)
2456
- kparams = {}
2457
- client.add_param(kparams, 'email', email);
2458
- client.queue_service_action_call('adminUser', 'resetPassword', kparams);
2459
- if (client.is_multirequest)
2460
- return nil;
2461
- end
2462
- return client.do_queue();
2463
- end
2464
-
2465
- def login(email, password)
2466
- kparams = {}
2467
- client.add_param(kparams, 'email', email);
2468
- client.add_param(kparams, 'password', password);
2469
- client.queue_service_action_call('adminUser', 'login', kparams);
2470
- if (client.is_multirequest)
2471
- return nil;
2472
- end
2473
- return client.do_queue();
2474
- end
2475
- end
2476
-
2477
- class KalturaBaseEntryService < KalturaServiceBase
2478
- def initialize(client)
2479
- super(client)
2480
- end
2481
-
2482
- def add_from_uploaded_file(entry, upload_token_id, type=-1)
2483
- kparams = {}
2484
- client.add_param(kparams, 'entry', entry);
2485
- client.add_param(kparams, 'uploadTokenId', upload_token_id);
2486
- client.add_param(kparams, 'type', type);
2487
- client.queue_service_action_call('baseEntry', 'addFromUploadedFile', kparams);
2488
- if (client.is_multirequest)
2489
- return nil;
2490
- end
2491
- return client.do_queue();
2492
- end
2493
-
2494
- def get(entry_id, version=-1)
2495
- kparams = {}
2496
- client.add_param(kparams, 'entryId', entry_id);
2497
- client.add_param(kparams, 'version', version);
2498
- client.queue_service_action_call('baseEntry', 'get', kparams);
2499
- if (client.is_multirequest)
2500
- return nil;
2501
- end
2502
- return client.do_queue();
2503
- end
2504
-
2505
- def update(entry_id, base_entry)
2506
- kparams = {}
2507
- client.add_param(kparams, 'entryId', entry_id);
2508
- client.add_param(kparams, 'baseEntry', base_entry);
2509
- client.queue_service_action_call('baseEntry', 'update', kparams);
2510
- if (client.is_multirequest)
2511
- return nil;
2512
- end
2513
- return client.do_queue();
2514
- end
2515
-
2516
- def get_by_ids(entry_ids)
2517
- kparams = {}
2518
- client.add_param(kparams, 'entryIds', entry_ids);
2519
- client.queue_service_action_call('baseEntry', 'getByIds', kparams);
2520
- if (client.is_multirequest)
2521
- return nil;
2522
- end
2523
- return client.do_queue();
2524
- end
2525
-
2526
- def delete(entry_id)
2527
- kparams = {}
2528
- client.add_param(kparams, 'entryId', entry_id);
2529
- client.queue_service_action_call('baseEntry', 'delete', kparams);
2530
- if (client.is_multirequest)
2531
- return nil;
2532
- end
2533
- return client.do_queue();
2534
- end
2535
-
2536
- def list(filter=nil, pager=nil)
2537
- kparams = {}
2538
- client.add_param(kparams, 'filter', filter);
2539
- client.add_param(kparams, 'pager', pager);
2540
- client.queue_service_action_call('baseEntry', 'list', kparams);
2541
- if (client.is_multirequest)
2542
- return nil;
2543
- end
2544
- return client.do_queue();
2545
- end
2546
-
2547
- def count(filter=nil)
2548
- kparams = {}
2549
- client.add_param(kparams, 'filter', filter);
2550
- client.queue_service_action_call('baseEntry', 'count', kparams);
2551
- if (client.is_multirequest)
2552
- return nil;
2553
- end
2554
- return client.do_queue();
2555
- end
2556
-
2557
- def upload(file_data)
2558
- kparams = {}
2559
- client.add_param(kparams, 'fileData', file_data);
2560
- client.queue_service_action_call('baseEntry', 'upload', kparams);
2561
- if (client.is_multirequest)
2562
- return nil;
2563
- end
2564
- return client.do_queue();
2565
- end
2566
-
2567
- def update_thumbnail_jpeg(entry_id, file_data)
2568
- kparams = {}
2569
- client.add_param(kparams, 'entryId', entry_id);
2570
- client.add_param(kparams, 'fileData', file_data);
2571
- client.queue_service_action_call('baseEntry', 'updateThumbnailJpeg', kparams);
2572
- if (client.is_multirequest)
2573
- return nil;
2574
- end
2575
- return client.do_queue();
2576
- end
2577
-
2578
- def update_thumbnail_from_url(entry_id, url)
2579
- kparams = {}
2580
- client.add_param(kparams, 'entryId', entry_id);
2581
- client.add_param(kparams, 'url', url);
2582
- client.queue_service_action_call('baseEntry', 'updateThumbnailFromUrl', kparams);
2583
- if (client.is_multirequest)
2584
- return nil;
2585
- end
2586
- return client.do_queue();
2587
- end
2588
-
2589
- def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
2590
- kparams = {}
2591
- client.add_param(kparams, 'entryId', entry_id);
2592
- client.add_param(kparams, 'sourceEntryId', source_entry_id);
2593
- client.add_param(kparams, 'timeOffset', time_offset);
2594
- client.queue_service_action_call('baseEntry', 'updateThumbnailFromSourceEntry', kparams);
2595
- if (client.is_multirequest)
2596
- return nil;
2597
- end
2598
- return client.do_queue();
2599
- end
2600
-
2601
- def flag(moderation_flag)
2602
- kparams = {}
2603
- client.add_param(kparams, 'moderationFlag', moderation_flag);
2604
- client.queue_service_action_call('baseEntry', 'flag', kparams);
2605
- if (client.is_multirequest)
2606
- return nil;
2607
- end
2608
- return client.do_queue();
2609
- end
2610
-
2611
- def reject(entry_id)
2612
- kparams = {}
2613
- client.add_param(kparams, 'entryId', entry_id);
2614
- client.queue_service_action_call('baseEntry', 'reject', kparams);
2615
- if (client.is_multirequest)
2616
- return nil;
2617
- end
2618
- return client.do_queue();
2619
- end
2620
-
2621
- def approve(entry_id)
2622
- kparams = {}
2623
- client.add_param(kparams, 'entryId', entry_id);
2624
- client.queue_service_action_call('baseEntry', 'approve', kparams);
2625
- if (client.is_multirequest)
2626
- return nil;
2627
- end
2628
- return client.do_queue();
2629
- end
2630
-
2631
- def list_flags(entry_id, pager=nil)
2632
- kparams = {}
2633
- client.add_param(kparams, 'entryId', entry_id);
2634
- client.add_param(kparams, 'pager', pager);
2635
- client.queue_service_action_call('baseEntry', 'listFlags', kparams);
2636
- if (client.is_multirequest)
2637
- return nil;
2638
- end
2639
- return client.do_queue();
2640
- end
2641
-
2642
- def anonymous_rank(entry_id, rank)
2643
- kparams = {}
2644
- client.add_param(kparams, 'entryId', entry_id);
2645
- client.add_param(kparams, 'rank', rank);
2646
- client.queue_service_action_call('baseEntry', 'anonymousRank', kparams);
2647
- if (client.is_multirequest)
2648
- return nil;
2649
- end
2650
- return client.do_queue();
2651
- end
2652
-
2653
- def get_context_data(entry_id, context_data_params)
2654
- kparams = {}
2655
- client.add_param(kparams, 'entryId', entry_id);
2656
- client.add_param(kparams, 'contextDataParams', context_data_params);
2657
- client.queue_service_action_call('baseEntry', 'getContextData', kparams);
2658
- if (client.is_multirequest)
2659
- return nil;
2660
- end
2661
- return client.do_queue();
2662
- end
2663
- end
2664
-
2665
- class KalturaBulkUploadService < KalturaServiceBase
2666
- def initialize(client)
2667
- super(client)
2668
- end
2669
-
2670
- def add(conversion_profile_id, csv_file_data)
2671
- kparams = {}
2672
- client.add_param(kparams, 'conversionProfileId', conversion_profile_id);
2673
- client.add_param(kparams, 'csvFileData', csv_file_data);
2674
- client.queue_service_action_call('bulkUpload', 'add', kparams);
2675
- if (client.is_multirequest)
2676
- return nil;
2677
- end
2678
- return client.do_queue();
2679
- end
2680
-
2681
- def get(id)
2682
- kparams = {}
2683
- client.add_param(kparams, 'id', id);
2684
- client.queue_service_action_call('bulkUpload', 'get', kparams);
2685
- if (client.is_multirequest)
2686
- return nil;
2687
- end
2688
- return client.do_queue();
2689
- end
2690
-
2691
- def list(pager=nil)
2692
- kparams = {}
2693
- client.add_param(kparams, 'pager', pager);
2694
- client.queue_service_action_call('bulkUpload', 'list', kparams);
2695
- if (client.is_multirequest)
2696
- return nil;
2697
- end
2698
- return client.do_queue();
2699
- end
2700
- end
2701
-
2702
- class KalturaCategoryService < KalturaServiceBase
2703
- def initialize(client)
2704
- super(client)
2705
- end
2706
-
2707
- def add(category)
2708
- kparams = {}
2709
- client.add_param(kparams, 'category', category);
2710
- client.queue_service_action_call('category', 'add', kparams);
2711
- if (client.is_multirequest)
2712
- return nil;
2713
- end
2714
- return client.do_queue();
2715
- end
2716
-
2717
- def get(id)
2718
- kparams = {}
2719
- client.add_param(kparams, 'id', id);
2720
- client.queue_service_action_call('category', 'get', kparams);
2721
- if (client.is_multirequest)
2722
- return nil;
2723
- end
2724
- return client.do_queue();
2725
- end
2726
-
2727
- def update(id, category)
2728
- kparams = {}
2729
- client.add_param(kparams, 'id', id);
2730
- client.add_param(kparams, 'category', category);
2731
- client.queue_service_action_call('category', 'update', kparams);
2732
- if (client.is_multirequest)
2733
- return nil;
2734
- end
2735
- return client.do_queue();
2736
- end
2737
-
2738
- def delete(id)
2739
- kparams = {}
2740
- client.add_param(kparams, 'id', id);
2741
- client.queue_service_action_call('category', 'delete', kparams);
2742
- if (client.is_multirequest)
2743
- return nil;
2744
- end
2745
- return client.do_queue();
2746
- end
2747
-
2748
- def list(filter=nil)
2749
- kparams = {}
2750
- client.add_param(kparams, 'filter', filter);
2751
- client.queue_service_action_call('category', 'list', kparams);
2752
- if (client.is_multirequest)
2753
- return nil;
2754
- end
2755
- return client.do_queue();
2756
- end
2757
- end
2758
-
2759
- class KalturaConversionProfileService < KalturaServiceBase
2760
- def initialize(client)
2761
- super(client)
2762
- end
2763
-
2764
- def add(conversion_profile)
2765
- kparams = {}
2766
- client.add_param(kparams, 'conversionProfile', conversion_profile);
2767
- client.queue_service_action_call('conversionProfile', 'add', kparams);
2768
- if (client.is_multirequest)
2769
- return nil;
2770
- end
2771
- return client.do_queue();
2772
- end
2773
-
2774
- def get(id)
2775
- kparams = {}
2776
- client.add_param(kparams, 'id', id);
2777
- client.queue_service_action_call('conversionProfile', 'get', kparams);
2778
- if (client.is_multirequest)
2779
- return nil;
2780
- end
2781
- return client.do_queue();
2782
- end
2783
-
2784
- def update(id, conversion_profile)
2785
- kparams = {}
2786
- client.add_param(kparams, 'id', id);
2787
- client.add_param(kparams, 'conversionProfile', conversion_profile);
2788
- client.queue_service_action_call('conversionProfile', 'update', kparams);
2789
- if (client.is_multirequest)
2790
- return nil;
2791
- end
2792
- return client.do_queue();
2793
- end
2794
-
2795
- def delete(id)
2796
- kparams = {}
2797
- client.add_param(kparams, 'id', id);
2798
- client.queue_service_action_call('conversionProfile', 'delete', kparams);
2799
- if (client.is_multirequest)
2800
- return nil;
2801
- end
2802
- return client.do_queue();
2803
- end
2804
-
2805
- def list(filter=nil, pager=nil)
2806
- kparams = {}
2807
- client.add_param(kparams, 'filter', filter);
2808
- client.add_param(kparams, 'pager', pager);
2809
- client.queue_service_action_call('conversionProfile', 'list', kparams);
2810
- if (client.is_multirequest)
2811
- return nil;
2812
- end
2813
- return client.do_queue();
2814
- end
2815
- end
2816
-
2817
- class KalturaDataService < KalturaServiceBase
2818
- def initialize(client)
2819
- super(client)
2820
- end
2821
-
2822
- def add(data_entry)
2823
- kparams = {}
2824
- client.add_param(kparams, 'dataEntry', data_entry);
2825
- client.queue_service_action_call('data', 'add', kparams);
2826
- if (client.is_multirequest)
2827
- return nil;
2828
- end
2829
- return client.do_queue();
2830
- end
2831
-
2832
- def get(entry_id, version=-1)
2833
- kparams = {}
2834
- client.add_param(kparams, 'entryId', entry_id);
2835
- client.add_param(kparams, 'version', version);
2836
- client.queue_service_action_call('data', 'get', kparams);
2837
- if (client.is_multirequest)
2838
- return nil;
2839
- end
2840
- return client.do_queue();
2841
- end
2842
-
2843
- def update(entry_id, document_entry)
2844
- kparams = {}
2845
- client.add_param(kparams, 'entryId', entry_id);
2846
- client.add_param(kparams, 'documentEntry', document_entry);
2847
- client.queue_service_action_call('data', 'update', kparams);
2848
- if (client.is_multirequest)
2849
- return nil;
2850
- end
2851
- return client.do_queue();
2852
- end
2853
-
2854
- def delete(entry_id)
2855
- kparams = {}
2856
- client.add_param(kparams, 'entryId', entry_id);
2857
- client.queue_service_action_call('data', 'delete', kparams);
2858
- if (client.is_multirequest)
2859
- return nil;
2860
- end
2861
- return client.do_queue();
2862
- end
2863
-
2864
- def list(filter=nil, pager=nil)
2865
- kparams = {}
2866
- client.add_param(kparams, 'filter', filter);
2867
- client.add_param(kparams, 'pager', pager);
2868
- client.queue_service_action_call('data', 'list', kparams);
2869
- if (client.is_multirequest)
2870
- return nil;
2871
- end
2872
- return client.do_queue();
2873
- end
2874
- end
2875
-
2876
- class KalturaEmailIngestionProfileService < KalturaServiceBase
2877
- def initialize(client)
2878
- super(client)
2879
- end
2880
-
2881
- def add(email_ip)
2882
- kparams = {}
2883
- client.add_param(kparams, 'EmailIP', email_ip);
2884
- client.queue_service_action_call('EmailIngestionProfile', 'add', kparams);
2885
- if (client.is_multirequest)
2886
- return nil;
2887
- end
2888
- return client.do_queue();
2889
- end
2890
-
2891
- def get_by_email_address(email_address)
2892
- kparams = {}
2893
- client.add_param(kparams, 'emailAddress', email_address);
2894
- client.queue_service_action_call('EmailIngestionProfile', 'getByEmailAddress', kparams);
2895
- if (client.is_multirequest)
2896
- return nil;
2897
- end
2898
- return client.do_queue();
2899
- end
2900
-
2901
- def get(id)
2902
- kparams = {}
2903
- client.add_param(kparams, 'id', id);
2904
- client.queue_service_action_call('EmailIngestionProfile', 'get', kparams);
2905
- if (client.is_multirequest)
2906
- return nil;
2907
- end
2908
- return client.do_queue();
2909
- end
2910
-
2911
- def update(id, email_ip)
2912
- kparams = {}
2913
- client.add_param(kparams, 'id', id);
2914
- client.add_param(kparams, 'EmailIP', email_ip);
2915
- client.queue_service_action_call('EmailIngestionProfile', 'update', kparams);
2916
- if (client.is_multirequest)
2917
- return nil;
2918
- end
2919
- return client.do_queue();
2920
- end
2921
-
2922
- def delete(id)
2923
- kparams = {}
2924
- client.add_param(kparams, 'id', id);
2925
- client.queue_service_action_call('EmailIngestionProfile', 'delete', kparams);
2926
- if (client.is_multirequest)
2927
- return nil;
2928
- end
2929
- return client.do_queue();
2930
- end
2931
-
2932
- def add_media_entry(media_entry, upload_token_id, email_prof_id, from_address, email_msg_id)
2933
- kparams = {}
2934
- client.add_param(kparams, 'mediaEntry', media_entry);
2935
- client.add_param(kparams, 'uploadTokenId', upload_token_id);
2936
- client.add_param(kparams, 'emailProfId', email_prof_id);
2937
- client.add_param(kparams, 'fromAddress', from_address);
2938
- client.add_param(kparams, 'emailMsgId', email_msg_id);
2939
- client.queue_service_action_call('EmailIngestionProfile', 'addMediaEntry', kparams);
2940
- if (client.is_multirequest)
2941
- return nil;
2942
- end
2943
- return client.do_queue();
2944
- end
2945
- end
2946
-
2947
- class KalturaFlavorAssetService < KalturaServiceBase
2948
- def initialize(client)
2949
- super(client)
2950
- end
2951
-
2952
- def get(id)
2953
- kparams = {}
2954
- client.add_param(kparams, 'id', id);
2955
- client.queue_service_action_call('flavorAsset', 'get', kparams);
2956
- if (client.is_multirequest)
2957
- return nil;
2958
- end
2959
- return client.do_queue();
2960
- end
2961
-
2962
- def get_by_entry_id(entry_id)
2963
- kparams = {}
2964
- client.add_param(kparams, 'entryId', entry_id);
2965
- client.queue_service_action_call('flavorAsset', 'getByEntryId', kparams);
2966
- if (client.is_multirequest)
2967
- return nil;
2968
- end
2969
- return client.do_queue();
2970
- end
2971
-
2972
- def get_web_playable_by_entry_id(entry_id)
2973
- kparams = {}
2974
- client.add_param(kparams, 'entryId', entry_id);
2975
- client.queue_service_action_call('flavorAsset', 'getWebPlayableByEntryId', kparams);
2976
- if (client.is_multirequest)
2977
- return nil;
2978
- end
2979
- return client.do_queue();
2980
- end
2981
-
2982
- def convert(entry_id, flavor_params_id)
2983
- kparams = {}
2984
- client.add_param(kparams, 'entryId', entry_id);
2985
- client.add_param(kparams, 'flavorParamsId', flavor_params_id);
2986
- client.queue_service_action_call('flavorAsset', 'convert', kparams);
2987
- if (client.is_multirequest)
2988
- return nil;
2989
- end
2990
- return client.do_queue();
2991
- end
2992
-
2993
- def reconvert(id)
2994
- kparams = {}
2995
- client.add_param(kparams, 'id', id);
2996
- client.queue_service_action_call('flavorAsset', 'reconvert', kparams);
2997
- if (client.is_multirequest)
2998
- return nil;
2999
- end
3000
- return client.do_queue();
3001
- end
3002
-
3003
- def delete(id)
3004
- kparams = {}
3005
- client.add_param(kparams, 'id', id);
3006
- client.queue_service_action_call('flavorAsset', 'delete', kparams);
3007
- if (client.is_multirequest)
3008
- return nil;
3009
- end
3010
- return client.do_queue();
3011
- end
3012
-
3013
- def get_download_url(id)
3014
- kparams = {}
3015
- client.add_param(kparams, 'id', id);
3016
- client.queue_service_action_call('flavorAsset', 'getDownloadUrl', kparams);
3017
- if (client.is_multirequest)
3018
- return nil;
3019
- end
3020
- return client.do_queue();
3021
- end
3022
-
3023
- def get_flavor_assets_with_params(entry_id)
3024
- kparams = {}
3025
- client.add_param(kparams, 'entryId', entry_id);
3026
- client.queue_service_action_call('flavorAsset', 'getFlavorAssetsWithParams', kparams);
3027
- if (client.is_multirequest)
3028
- return nil;
3029
- end
3030
- return client.do_queue();
3031
- end
3032
- end
3033
-
3034
- class KalturaFlavorParamsService < KalturaServiceBase
3035
- def initialize(client)
3036
- super(client)
3037
- end
3038
-
3039
- def add(flavor_params)
3040
- kparams = {}
3041
- client.add_param(kparams, 'flavorParams', flavor_params);
3042
- client.queue_service_action_call('flavorParams', 'add', kparams);
3043
- if (client.is_multirequest)
3044
- return nil;
3045
- end
3046
- return client.do_queue();
3047
- end
3048
-
3049
- def get(id)
3050
- kparams = {}
3051
- client.add_param(kparams, 'id', id);
3052
- client.queue_service_action_call('flavorParams', 'get', kparams);
3053
- if (client.is_multirequest)
3054
- return nil;
3055
- end
3056
- return client.do_queue();
3057
- end
3058
-
3059
- def update(id, flavor_params)
3060
- kparams = {}
3061
- client.add_param(kparams, 'id', id);
3062
- client.add_param(kparams, 'flavorParams', flavor_params);
3063
- client.queue_service_action_call('flavorParams', 'update', kparams);
3064
- if (client.is_multirequest)
3065
- return nil;
3066
- end
3067
- return client.do_queue();
3068
- end
3069
-
3070
- def delete(id)
3071
- kparams = {}
3072
- client.add_param(kparams, 'id', id);
3073
- client.queue_service_action_call('flavorParams', 'delete', kparams);
3074
- if (client.is_multirequest)
3075
- return nil;
3076
- end
3077
- return client.do_queue();
3078
- end
3079
-
3080
- def list(filter=nil, pager=nil)
3081
- kparams = {}
3082
- client.add_param(kparams, 'filter', filter);
3083
- client.add_param(kparams, 'pager', pager);
3084
- client.queue_service_action_call('flavorParams', 'list', kparams);
3085
- if (client.is_multirequest)
3086
- return nil;
3087
- end
3088
- return client.do_queue();
3089
- end
3090
-
3091
- def get_by_conversion_profile_id(conversion_profile_id)
3092
- kparams = {}
3093
- client.add_param(kparams, 'conversionProfileId', conversion_profile_id);
3094
- client.queue_service_action_call('flavorParams', 'getByConversionProfileId', kparams);
3095
- if (client.is_multirequest)
3096
- return nil;
3097
- end
3098
- return client.do_queue();
3099
- end
3100
- end
3101
-
3102
- class KalturaLiveStreamService < KalturaServiceBase
3103
- def initialize(client)
3104
- super(client)
3105
- end
3106
-
3107
- def add(live_stream_entry)
3108
- kparams = {}
3109
- client.add_param(kparams, 'liveStreamEntry', live_stream_entry);
3110
- client.queue_service_action_call('liveStream', 'add', kparams);
3111
- if (client.is_multirequest)
3112
- return nil;
3113
- end
3114
- return client.do_queue();
3115
- end
3116
-
3117
- def get(entry_id, version=-1)
3118
- kparams = {}
3119
- client.add_param(kparams, 'entryId', entry_id);
3120
- client.add_param(kparams, 'version', version);
3121
- client.queue_service_action_call('liveStream', 'get', kparams);
3122
- if (client.is_multirequest)
3123
- return nil;
3124
- end
3125
- return client.do_queue();
3126
- end
3127
-
3128
- def update(entry_id, live_stream_entry)
3129
- kparams = {}
3130
- client.add_param(kparams, 'entryId', entry_id);
3131
- client.add_param(kparams, 'liveStreamEntry', live_stream_entry);
3132
- client.queue_service_action_call('liveStream', 'update', kparams);
3133
- if (client.is_multirequest)
3134
- return nil;
3135
- end
3136
- return client.do_queue();
3137
- end
3138
-
3139
- def delete(entry_id)
3140
- kparams = {}
3141
- client.add_param(kparams, 'entryId', entry_id);
3142
- client.queue_service_action_call('liveStream', 'delete', kparams);
3143
- if (client.is_multirequest)
3144
- return nil;
3145
- end
3146
- return client.do_queue();
3147
- end
3148
-
3149
- def list(filter=nil, pager=nil)
3150
- kparams = {}
3151
- client.add_param(kparams, 'filter', filter);
3152
- client.add_param(kparams, 'pager', pager);
3153
- client.queue_service_action_call('liveStream', 'list', kparams);
3154
- if (client.is_multirequest)
3155
- return nil;
3156
- end
3157
- return client.do_queue();
3158
- end
3159
-
3160
- def update_offline_thumbnail_jpeg(entry_id, file_data)
3161
- kparams = {}
3162
- client.add_param(kparams, 'entryId', entry_id);
3163
- client.add_param(kparams, 'fileData', file_data);
3164
- client.queue_service_action_call('liveStream', 'updateOfflineThumbnailJpeg', kparams);
3165
- if (client.is_multirequest)
3166
- return nil;
3167
- end
3168
- return client.do_queue();
3169
- end
3170
-
3171
- def update_offline_thumbnail_from_url(entry_id, url)
3172
- kparams = {}
3173
- client.add_param(kparams, 'entryId', entry_id);
3174
- client.add_param(kparams, 'url', url);
3175
- client.queue_service_action_call('liveStream', 'updateOfflineThumbnailFromUrl', kparams);
3176
- if (client.is_multirequest)
3177
- return nil;
3178
- end
3179
- return client.do_queue();
3180
- end
3181
- end
3182
-
3183
- class KalturaMediaService < KalturaServiceBase
3184
- def initialize(client)
3185
- super(client)
3186
- end
3187
-
3188
- def add_from_bulk(media_entry, url, bulk_upload_id)
3189
- kparams = {}
3190
- client.add_param(kparams, 'mediaEntry', media_entry);
3191
- client.add_param(kparams, 'url', url);
3192
- client.add_param(kparams, 'bulkUploadId', bulk_upload_id);
3193
- client.queue_service_action_call('media', 'addFromBulk', kparams);
3194
- if (client.is_multirequest)
3195
- return nil;
3196
- end
3197
- return client.do_queue();
3198
- end
3199
-
3200
- def add_from_url(media_entry, url)
3201
- kparams = {}
3202
- client.add_param(kparams, 'mediaEntry', media_entry);
3203
- client.add_param(kparams, 'url', url);
3204
- client.queue_service_action_call('media', 'addFromUrl', kparams);
3205
- if (client.is_multirequest)
3206
- return nil;
3207
- end
3208
- return client.do_queue();
3209
- end
3210
-
3211
- def add_from_search_result(media_entry=nil, search_result=nil)
3212
- kparams = {}
3213
- client.add_param(kparams, 'mediaEntry', media_entry);
3214
- client.add_param(kparams, 'searchResult', search_result);
3215
- client.queue_service_action_call('media', 'addFromSearchResult', kparams);
3216
- if (client.is_multirequest)
3217
- return nil;
3218
- end
3219
- return client.do_queue();
3220
- end
3221
-
3222
- def add_from_uploaded_file(media_entry, upload_token_id)
3223
- kparams = {}
3224
- client.add_param(kparams, 'mediaEntry', media_entry);
3225
- client.add_param(kparams, 'uploadTokenId', upload_token_id);
3226
- client.queue_service_action_call('media', 'addFromUploadedFile', kparams);
3227
- if (client.is_multirequest)
3228
- return nil;
3229
- end
3230
- return client.do_queue();
3231
- end
3232
-
3233
- def add_from_recorded_webcam(media_entry, webcam_token_id)
3234
- kparams = {}
3235
- client.add_param(kparams, 'mediaEntry', media_entry);
3236
- client.add_param(kparams, 'webcamTokenId', webcam_token_id);
3237
- client.queue_service_action_call('media', 'addFromRecordedWebcam', kparams);
3238
- if (client.is_multirequest)
3239
- return nil;
3240
- end
3241
- return client.do_queue();
3242
- end
3243
-
3244
- def get(entry_id, version=-1)
3245
- kparams = {}
3246
- client.add_param(kparams, 'entryId', entry_id);
3247
- client.add_param(kparams, 'version', version);
3248
- client.queue_service_action_call('media', 'get', kparams);
3249
- if (client.is_multirequest)
3250
- return nil;
3251
- end
3252
- return client.do_queue();
3253
- end
3254
-
3255
- def update(entry_id, media_entry)
3256
- kparams = {}
3257
- client.add_param(kparams, 'entryId', entry_id);
3258
- client.add_param(kparams, 'mediaEntry', media_entry);
3259
- client.queue_service_action_call('media', 'update', kparams);
3260
- if (client.is_multirequest)
3261
- return nil;
3262
- end
3263
- return client.do_queue();
3264
- end
3265
-
3266
- def delete(entry_id)
3267
- kparams = {}
3268
- client.add_param(kparams, 'entryId', entry_id);
3269
- client.queue_service_action_call('media', 'delete', kparams);
3270
- if (client.is_multirequest)
3271
- return nil;
3272
- end
3273
- return client.do_queue();
3274
- end
3275
-
3276
- def list(filter=nil, pager=nil)
3277
- kparams = {}
3278
- client.add_param(kparams, 'filter', filter);
3279
- client.add_param(kparams, 'pager', pager);
3280
- client.queue_service_action_call('media', 'list', kparams);
3281
- if (client.is_multirequest)
3282
- return nil;
3283
- end
3284
- return client.do_queue();
3285
- end
3286
-
3287
- def count(filter=nil)
3288
- kparams = {}
3289
- client.add_param(kparams, 'filter', filter);
3290
- client.queue_service_action_call('media', 'count', kparams);
3291
- if (client.is_multirequest)
3292
- return nil;
3293
- end
3294
- return client.do_queue();
3295
- end
3296
-
3297
- def upload(file_data)
3298
- kparams = {}
3299
- client.add_param(kparams, 'fileData', file_data);
3300
- client.queue_service_action_call('media', 'upload', kparams);
3301
- if (client.is_multirequest)
3302
- return nil;
3303
- end
3304
- return client.do_queue();
3305
- end
3306
-
3307
- def update_thumbnail(entry_id, time_offset)
3308
- kparams = {}
3309
- client.add_param(kparams, 'entryId', entry_id);
3310
- client.add_param(kparams, 'timeOffset', time_offset);
3311
- client.queue_service_action_call('media', 'updateThumbnail', kparams);
3312
- if (client.is_multirequest)
3313
- return nil;
3314
- end
3315
- return client.do_queue();
3316
- end
3317
-
3318
- def update_thumbnail_from_source_entry(entry_id, source_entry_id, time_offset)
3319
- kparams = {}
3320
- client.add_param(kparams, 'entryId', entry_id);
3321
- client.add_param(kparams, 'sourceEntryId', source_entry_id);
3322
- client.add_param(kparams, 'timeOffset', time_offset);
3323
- client.queue_service_action_call('media', 'updateThumbnailFromSourceEntry', kparams);
3324
- if (client.is_multirequest)
3325
- return nil;
3326
- end
3327
- return client.do_queue();
3328
- end
3329
-
3330
- def update_thumbnail_jpeg(entry_id, file_data)
3331
- kparams = {}
3332
- client.add_param(kparams, 'entryId', entry_id);
3333
- client.add_param(kparams, 'fileData', file_data);
3334
- client.queue_service_action_call('media', 'updateThumbnailJpeg', kparams);
3335
- if (client.is_multirequest)
3336
- return nil;
3337
- end
3338
- return client.do_queue();
3339
- end
3340
-
3341
- def update_thumbnail_from_url(entry_id, url)
3342
- kparams = {}
3343
- client.add_param(kparams, 'entryId', entry_id);
3344
- client.add_param(kparams, 'url', url);
3345
- client.queue_service_action_call('media', 'updateThumbnailFromUrl', kparams);
3346
- if (client.is_multirequest)
3347
- return nil;
3348
- end
3349
- return client.do_queue();
3350
- end
3351
-
3352
- def request_conversion(entry_id, file_format)
3353
- kparams = {}
3354
- client.add_param(kparams, 'entryId', entry_id);
3355
- client.add_param(kparams, 'fileFormat', file_format);
3356
- client.queue_service_action_call('media', 'requestConversion', kparams);
3357
- if (client.is_multirequest)
3358
- return nil;
3359
- end
3360
- return client.do_queue();
3361
- end
3362
-
3363
- def flag(moderation_flag)
3364
- kparams = {}
3365
- client.add_param(kparams, 'moderationFlag', moderation_flag);
3366
- client.queue_service_action_call('media', 'flag', kparams);
3367
- if (client.is_multirequest)
3368
- return nil;
3369
- end
3370
- return client.do_queue();
3371
- end
3372
-
3373
- def reject(entry_id)
3374
- kparams = {}
3375
- client.add_param(kparams, 'entryId', entry_id);
3376
- client.queue_service_action_call('media', 'reject', kparams);
3377
- if (client.is_multirequest)
3378
- return nil;
3379
- end
3380
- return client.do_queue();
3381
- end
3382
-
3383
- def approve(entry_id)
3384
- kparams = {}
3385
- client.add_param(kparams, 'entryId', entry_id);
3386
- client.queue_service_action_call('media', 'approve', kparams);
3387
- if (client.is_multirequest)
3388
- return nil;
3389
- end
3390
- return client.do_queue();
3391
- end
3392
-
3393
- def list_flags(entry_id, pager=nil)
3394
- kparams = {}
3395
- client.add_param(kparams, 'entryId', entry_id);
3396
- client.add_param(kparams, 'pager', pager);
3397
- client.queue_service_action_call('media', 'listFlags', kparams);
3398
- if (client.is_multirequest)
3399
- return nil;
3400
- end
3401
- return client.do_queue();
3402
- end
3403
-
3404
- def anonymous_rank(entry_id, rank)
3405
- kparams = {}
3406
- client.add_param(kparams, 'entryId', entry_id);
3407
- client.add_param(kparams, 'rank', rank);
3408
- client.queue_service_action_call('media', 'anonymousRank', kparams);
3409
- if (client.is_multirequest)
3410
- return nil;
3411
- end
3412
- return client.do_queue();
3413
- end
3414
- end
3415
-
3416
- class KalturaMixingService < KalturaServiceBase
3417
- def initialize(client)
3418
- super(client)
3419
- end
3420
-
3421
- def add(mix_entry)
3422
- kparams = {}
3423
- client.add_param(kparams, 'mixEntry', mix_entry);
3424
- client.queue_service_action_call('mixing', 'add', kparams);
3425
- if (client.is_multirequest)
3426
- return nil;
3427
- end
3428
- return client.do_queue();
3429
- end
3430
-
3431
- def get(entry_id, version=-1)
3432
- kparams = {}
3433
- client.add_param(kparams, 'entryId', entry_id);
3434
- client.add_param(kparams, 'version', version);
3435
- client.queue_service_action_call('mixing', 'get', kparams);
3436
- if (client.is_multirequest)
3437
- return nil;
3438
- end
3439
- return client.do_queue();
3440
- end
3441
-
3442
- def update(entry_id, mix_entry)
3443
- kparams = {}
3444
- client.add_param(kparams, 'entryId', entry_id);
3445
- client.add_param(kparams, 'mixEntry', mix_entry);
3446
- client.queue_service_action_call('mixing', 'update', kparams);
3447
- if (client.is_multirequest)
3448
- return nil;
3449
- end
3450
- return client.do_queue();
3451
- end
3452
-
3453
- def delete(entry_id)
3454
- kparams = {}
3455
- client.add_param(kparams, 'entryId', entry_id);
3456
- client.queue_service_action_call('mixing', 'delete', kparams);
3457
- if (client.is_multirequest)
3458
- return nil;
3459
- end
3460
- return client.do_queue();
3461
- end
3462
-
3463
- def list(filter=nil, pager=nil)
3464
- kparams = {}
3465
- client.add_param(kparams, 'filter', filter);
3466
- client.add_param(kparams, 'pager', pager);
3467
- client.queue_service_action_call('mixing', 'list', kparams);
3468
- if (client.is_multirequest)
3469
- return nil;
3470
- end
3471
- return client.do_queue();
3472
- end
3473
-
3474
- def count(filter=nil)
3475
- kparams = {}
3476
- client.add_param(kparams, 'filter', filter);
3477
- client.queue_service_action_call('mixing', 'count', kparams);
3478
- if (client.is_multirequest)
3479
- return nil;
3480
- end
3481
- return client.do_queue();
3482
- end
3483
-
3484
- def clone(entry_id)
3485
- kparams = {}
3486
- client.add_param(kparams, 'entryId', entry_id);
3487
- client.queue_service_action_call('mixing', 'clone', kparams);
3488
- if (client.is_multirequest)
3489
- return nil;
3490
- end
3491
- return client.do_queue();
3492
- end
3493
-
3494
- def append_media_entry(mix_entry_id, media_entry_id)
3495
- kparams = {}
3496
- client.add_param(kparams, 'mixEntryId', mix_entry_id);
3497
- client.add_param(kparams, 'mediaEntryId', media_entry_id);
3498
- client.queue_service_action_call('mixing', 'appendMediaEntry', kparams);
3499
- if (client.is_multirequest)
3500
- return nil;
3501
- end
3502
- return client.do_queue();
3503
- end
3504
-
3505
- def request_flattening(entry_id, file_format, version=-1)
3506
- kparams = {}
3507
- client.add_param(kparams, 'entryId', entry_id);
3508
- client.add_param(kparams, 'fileFormat', file_format);
3509
- client.add_param(kparams, 'version', version);
3510
- client.queue_service_action_call('mixing', 'requestFlattening', kparams);
3511
- if (client.is_multirequest)
3512
- return nil;
3513
- end
3514
- return client.do_queue();
3515
- end
3516
-
3517
- def get_mixes_by_media_id(media_entry_id)
3518
- kparams = {}
3519
- client.add_param(kparams, 'mediaEntryId', media_entry_id);
3520
- client.queue_service_action_call('mixing', 'getMixesByMediaId', kparams);
3521
- if (client.is_multirequest)
3522
- return nil;
3523
- end
3524
- return client.do_queue();
3525
- end
3526
-
3527
- def get_ready_media_entries(mix_id, version=-1)
3528
- kparams = {}
3529
- client.add_param(kparams, 'mixId', mix_id);
3530
- client.add_param(kparams, 'version', version);
3531
- client.queue_service_action_call('mixing', 'getReadyMediaEntries', kparams);
3532
- if (client.is_multirequest)
3533
- return nil;
3534
- end
3535
- return client.do_queue();
3536
- end
3537
-
3538
- def anonymous_rank(entry_id, rank)
3539
- kparams = {}
3540
- client.add_param(kparams, 'entryId', entry_id);
3541
- client.add_param(kparams, 'rank', rank);
3542
- client.queue_service_action_call('mixing', 'anonymousRank', kparams);
3543
- if (client.is_multirequest)
3544
- return nil;
3545
- end
3546
- return client.do_queue();
3547
- end
3548
- end
3549
-
3550
- class KalturaNotificationService < KalturaServiceBase
3551
- def initialize(client)
3552
- super(client)
3553
- end
3554
-
3555
- def get_client_notification(entry_id, type)
3556
- kparams = {}
3557
- client.add_param(kparams, 'entryId', entry_id);
3558
- client.add_param(kparams, 'type', type);
3559
- client.queue_service_action_call('notification', 'getClientNotification', kparams);
3560
- if (client.is_multirequest)
3561
- return nil;
3562
- end
3563
- return client.do_queue();
3564
- end
3565
- end
3566
-
3567
- class KalturaPartnerService < KalturaServiceBase
3568
- def initialize(client)
3569
- super(client)
3570
- end
3571
-
3572
- def register(partner, cms_password='')
3573
- kparams = {}
3574
- client.add_param(kparams, 'partner', partner);
3575
- client.add_param(kparams, 'cmsPassword', cms_password);
3576
- client.queue_service_action_call('partner', 'register', kparams);
3577
- if (client.is_multirequest)
3578
- return nil;
3579
- end
3580
- return client.do_queue();
3581
- end
3582
-
3583
- def update(partner, allow_empty=false)
3584
- kparams = {}
3585
- client.add_param(kparams, 'partner', partner);
3586
- client.add_param(kparams, 'allowEmpty', allow_empty);
3587
- client.queue_service_action_call('partner', 'update', kparams);
3588
- if (client.is_multirequest)
3589
- return nil;
3590
- end
3591
- return client.do_queue();
3592
- end
3593
-
3594
- def get_secrets(partner_id, admin_email, cms_password)
3595
- kparams = {}
3596
- client.add_param(kparams, 'partnerId', partner_id);
3597
- client.add_param(kparams, 'adminEmail', admin_email);
3598
- client.add_param(kparams, 'cmsPassword', cms_password);
3599
- client.queue_service_action_call('partner', 'getSecrets', kparams);
3600
- if (client.is_multirequest)
3601
- return nil;
3602
- end
3603
- return client.do_queue();
3604
- end
3605
-
3606
- def get_info()
3607
- kparams = {}
3608
- client.queue_service_action_call('partner', 'getInfo', kparams);
3609
- if (client.is_multirequest)
3610
- return nil;
3611
- end
3612
- return client.do_queue();
3613
- end
3614
-
3615
- def get_usage(year='', month=1, resolution='days')
3616
- kparams = {}
3617
- client.add_param(kparams, 'year', year);
3618
- client.add_param(kparams, 'month', month);
3619
- client.add_param(kparams, 'resolution', resolution);
3620
- client.queue_service_action_call('partner', 'getUsage', kparams);
3621
- if (client.is_multirequest)
3622
- return nil;
3623
- end
3624
- return client.do_queue();
3625
- end
3626
- end
3627
-
3628
- class KalturaPlaylistService < KalturaServiceBase
3629
- def initialize(client)
3630
- super(client)
3631
- end
3632
-
3633
- def add(playlist, update_stats=false)
3634
- kparams = {}
3635
- client.add_param(kparams, 'playlist', playlist);
3636
- client.add_param(kparams, 'updateStats', update_stats);
3637
- client.queue_service_action_call('playlist', 'add', kparams);
3638
- if (client.is_multirequest)
3639
- return nil;
3640
- end
3641
- return client.do_queue();
3642
- end
3643
-
3644
- def get(id, version=-1)
3645
- kparams = {}
3646
- client.add_param(kparams, 'id', id);
3647
- client.add_param(kparams, 'version', version);
3648
- client.queue_service_action_call('playlist', 'get', kparams);
3649
- if (client.is_multirequest)
3650
- return nil;
3651
- end
3652
- return client.do_queue();
3653
- end
3654
-
3655
- def update(id, playlist, update_stats=false)
3656
- kparams = {}
3657
- client.add_param(kparams, 'id', id);
3658
- client.add_param(kparams, 'playlist', playlist);
3659
- client.add_param(kparams, 'updateStats', update_stats);
3660
- client.queue_service_action_call('playlist', 'update', kparams);
3661
- if (client.is_multirequest)
3662
- return nil;
3663
- end
3664
- return client.do_queue();
3665
- end
3666
-
3667
- def delete(id)
3668
- kparams = {}
3669
- client.add_param(kparams, 'id', id);
3670
- client.queue_service_action_call('playlist', 'delete', kparams);
3671
- if (client.is_multirequest)
3672
- return nil;
3673
- end
3674
- return client.do_queue();
3675
- end
3676
-
3677
- def list(filter=nil, pager=nil)
3678
- kparams = {}
3679
- client.add_param(kparams, 'filter', filter);
3680
- client.add_param(kparams, 'pager', pager);
3681
- client.queue_service_action_call('playlist', 'list', kparams);
3682
- if (client.is_multirequest)
3683
- return nil;
3684
- end
3685
- return client.do_queue();
3686
- end
3687
-
3688
- def execute(id, detailed='')
3689
- kparams = {}
3690
- client.add_param(kparams, 'id', id);
3691
- client.add_param(kparams, 'detailed', detailed);
3692
- client.queue_service_action_call('playlist', 'execute', kparams);
3693
- if (client.is_multirequest)
3694
- return nil;
3695
- end
3696
- return client.do_queue();
3697
- end
3698
-
3699
- def execute_from_content(playlist_type, playlist_content, detailed='')
3700
- kparams = {}
3701
- client.add_param(kparams, 'playlistType', playlist_type);
3702
- client.add_param(kparams, 'playlistContent', playlist_content);
3703
- client.add_param(kparams, 'detailed', detailed);
3704
- client.queue_service_action_call('playlist', 'executeFromContent', kparams);
3705
- if (client.is_multirequest)
3706
- return nil;
3707
- end
3708
- return client.do_queue();
3709
- end
3710
-
3711
- def execute_from_filters(filters, total_results, detailed='')
3712
- kparams = {}
3713
- filters.each do |obj|
3714
- client.add_param(kparams, 'filters', obj);
3715
- end
3716
- client.add_param(kparams, 'totalResults', total_results);
3717
- client.add_param(kparams, 'detailed', detailed);
3718
- client.queue_service_action_call('playlist', 'executeFromFilters', kparams);
3719
- if (client.is_multirequest)
3720
- return nil;
3721
- end
3722
- return client.do_queue();
3723
- end
3724
-
3725
- def get_stats_from_content(playlist_type, playlist_content)
3726
- kparams = {}
3727
- client.add_param(kparams, 'playlistType', playlist_type);
3728
- client.add_param(kparams, 'playlistContent', playlist_content);
3729
- client.queue_service_action_call('playlist', 'getStatsFromContent', kparams);
3730
- if (client.is_multirequest)
3731
- return nil;
3732
- end
3733
- return client.do_queue();
3734
- end
3735
- end
3736
-
3737
- class KalturaReportService < KalturaServiceBase
3738
- def initialize(client)
3739
- super(client)
3740
- end
3741
-
3742
- def get_graphs(report_type, report_input_filter, dimension='', object_ids='')
3743
- kparams = {}
3744
- client.add_param(kparams, 'reportType', report_type);
3745
- client.add_param(kparams, 'reportInputFilter', report_input_filter);
3746
- client.add_param(kparams, 'dimension', dimension);
3747
- client.add_param(kparams, 'objectIds', object_ids);
3748
- client.queue_service_action_call('report', 'getGraphs', kparams);
3749
- if (client.is_multirequest)
3750
- return nil;
3751
- end
3752
- return client.do_queue();
3753
- end
3754
-
3755
- def get_total(report_type, report_input_filter, object_ids='')
3756
- kparams = {}
3757
- client.add_param(kparams, 'reportType', report_type);
3758
- client.add_param(kparams, 'reportInputFilter', report_input_filter);
3759
- client.add_param(kparams, 'objectIds', object_ids);
3760
- client.queue_service_action_call('report', 'getTotal', kparams);
3761
- if (client.is_multirequest)
3762
- return nil;
3763
- end
3764
- return client.do_queue();
3765
- end
3766
-
3767
- def get_table(report_type, report_input_filter, pager, order='', object_ids='')
3768
- kparams = {}
3769
- client.add_param(kparams, 'reportType', report_type);
3770
- client.add_param(kparams, 'reportInputFilter', report_input_filter);
3771
- client.add_param(kparams, 'pager', pager);
3772
- client.add_param(kparams, 'order', order);
3773
- client.add_param(kparams, 'objectIds', object_ids);
3774
- client.queue_service_action_call('report', 'getTable', kparams);
3775
- if (client.is_multirequest)
3776
- return nil;
3777
- end
3778
- return client.do_queue();
3779
- end
3780
-
3781
- def get_url_for_report_as_csv(report_title, report_text, headers, report_type, report_input_filter, dimension='', pager=nil, order='', object_ids='')
3782
- kparams = {}
3783
- client.add_param(kparams, 'reportTitle', report_title);
3784
- client.add_param(kparams, 'reportText', report_text);
3785
- client.add_param(kparams, 'headers', headers);
3786
- client.add_param(kparams, 'reportType', report_type);
3787
- client.add_param(kparams, 'reportInputFilter', report_input_filter);
3788
- client.add_param(kparams, 'dimension', dimension);
3789
- client.add_param(kparams, 'pager', pager);
3790
- client.add_param(kparams, 'order', order);
3791
- client.add_param(kparams, 'objectIds', object_ids);
3792
- client.queue_service_action_call('report', 'getUrlForReportAsCsv', kparams);
3793
- if (client.is_multirequest)
3794
- return nil;
3795
- end
3796
- return client.do_queue();
3797
- end
3798
- end
3799
-
3800
- class KalturaSearchService < KalturaServiceBase
3801
- def initialize(client)
3802
- super(client)
3803
- end
3804
-
3805
- def search(search, pager=nil)
3806
- kparams = {}
3807
- client.add_param(kparams, 'search', search);
3808
- client.add_param(kparams, 'pager', pager);
3809
- client.queue_service_action_call('search', 'search', kparams);
3810
- if (client.is_multirequest)
3811
- return nil;
3812
- end
3813
- return client.do_queue();
3814
- end
3815
-
3816
- def get_media_info(search_result)
3817
- kparams = {}
3818
- client.add_param(kparams, 'searchResult', search_result);
3819
- client.queue_service_action_call('search', 'getMediaInfo', kparams);
3820
- if (client.is_multirequest)
3821
- return nil;
3822
- end
3823
- return client.do_queue();
3824
- end
3825
-
3826
- def search_url(media_type, url)
3827
- kparams = {}
3828
- client.add_param(kparams, 'mediaType', media_type);
3829
- client.add_param(kparams, 'url', url);
3830
- client.queue_service_action_call('search', 'searchUrl', kparams);
3831
- if (client.is_multirequest)
3832
- return nil;
3833
- end
3834
- return client.do_queue();
3835
- end
3836
-
3837
- def external_login(search_source, user_name, password)
3838
- kparams = {}
3839
- client.add_param(kparams, 'searchSource', search_source);
3840
- client.add_param(kparams, 'userName', user_name);
3841
- client.add_param(kparams, 'password', password);
3842
- client.queue_service_action_call('search', 'externalLogin', kparams);
3843
- if (client.is_multirequest)
3844
- return nil;
3845
- end
3846
- return client.do_queue();
3847
- end
3848
- end
3849
-
3850
- class KalturaSessionService < KalturaServiceBase
3851
- def initialize(client)
3852
- super(client)
3853
- end
3854
-
3855
- def start(secret, user_id='', type=0, partner_id=-1, expiry=86400, privileges='')
3856
- kparams = {}
3857
- client.add_param(kparams, 'secret', secret);
3858
- client.add_param(kparams, 'userId', user_id);
3859
- client.add_param(kparams, 'type', type);
3860
- client.add_param(kparams, 'partnerId', partner_id);
3861
- client.add_param(kparams, 'expiry', expiry);
3862
- client.add_param(kparams, 'privileges', privileges);
3863
- client.queue_service_action_call('session', 'start', kparams);
3864
- if (client.is_multirequest)
3865
- return nil;
3866
- end
3867
- return client.do_queue();
3868
- end
3869
-
3870
- def start_widget_session(widget_id, expiry=86400)
3871
- kparams = {}
3872
- client.add_param(kparams, 'widgetId', widget_id);
3873
- client.add_param(kparams, 'expiry', expiry);
3874
- client.queue_service_action_call('session', 'startWidgetSession', kparams);
3875
- if (client.is_multirequest)
3876
- return nil;
3877
- end
3878
- return client.do_queue();
3879
- end
3880
- end
3881
-
3882
- class KalturaStatsService < KalturaServiceBase
3883
- def initialize(client)
3884
- super(client)
3885
- end
3886
-
3887
- def collect(event)
3888
- kparams = {}
3889
- client.add_param(kparams, 'event', event);
3890
- client.queue_service_action_call('stats', 'collect', kparams);
3891
- if (client.is_multirequest)
3892
- return nil;
3893
- end
3894
- return client.do_queue();
3895
- end
3896
-
3897
- def kmc_collect(kmc_event)
3898
- kparams = {}
3899
- client.add_param(kparams, 'kmcEvent', kmc_event);
3900
- client.queue_service_action_call('stats', 'kmcCollect', kparams);
3901
- if (client.is_multirequest)
3902
- return nil;
3903
- end
3904
- return client.do_queue();
3905
- end
3906
-
3907
- def report_kce_error(kaltura_ce_error)
3908
- kparams = {}
3909
- client.add_param(kparams, 'kalturaCEError', kaltura_ce_error);
3910
- client.queue_service_action_call('stats', 'reportKceError', kparams);
3911
- if (client.is_multirequest)
3912
- return nil;
3913
- end
3914
- return client.do_queue();
3915
- end
3916
- end
3917
-
3918
- class KalturaSyndicationFeedService < KalturaServiceBase
3919
- def initialize(client)
3920
- super(client)
3921
- end
3922
-
3923
- def add(syndication_feed)
3924
- kparams = {}
3925
- client.add_param(kparams, 'syndicationFeed', syndication_feed);
3926
- client.queue_service_action_call('syndicationFeed', 'add', kparams);
3927
- if (client.is_multirequest)
3928
- return nil;
3929
- end
3930
- return client.do_queue();
3931
- end
3932
-
3933
- def get(id)
3934
- kparams = {}
3935
- client.add_param(kparams, 'id', id);
3936
- client.queue_service_action_call('syndicationFeed', 'get', kparams);
3937
- if (client.is_multirequest)
3938
- return nil;
3939
- end
3940
- return client.do_queue();
3941
- end
3942
-
3943
- def update(id, syndication_feed)
3944
- kparams = {}
3945
- client.add_param(kparams, 'id', id);
3946
- client.add_param(kparams, 'syndicationFeed', syndication_feed);
3947
- client.queue_service_action_call('syndicationFeed', 'update', kparams);
3948
- if (client.is_multirequest)
3949
- return nil;
3950
- end
3951
- return client.do_queue();
3952
- end
3953
-
3954
- def delete(id)
3955
- kparams = {}
3956
- client.add_param(kparams, 'id', id);
3957
- client.queue_service_action_call('syndicationFeed', 'delete', kparams);
3958
- if (client.is_multirequest)
3959
- return nil;
3960
- end
3961
- return client.do_queue();
3962
- end
3963
-
3964
- def list(filter=nil, pager=nil)
3965
- kparams = {}
3966
- client.add_param(kparams, 'filter', filter);
3967
- client.add_param(kparams, 'pager', pager);
3968
- client.queue_service_action_call('syndicationFeed', 'list', kparams);
3969
- if (client.is_multirequest)
3970
- return nil;
3971
- end
3972
- return client.do_queue();
3973
- end
3974
-
3975
- def get_entry_count(feed_id)
3976
- kparams = {}
3977
- client.add_param(kparams, 'feedId', feed_id);
3978
- client.queue_service_action_call('syndicationFeed', 'getEntryCount', kparams);
3979
- if (client.is_multirequest)
3980
- return nil;
3981
- end
3982
- return client.do_queue();
3983
- end
3984
-
3985
- def request_conversion(feed_id)
3986
- kparams = {}
3987
- client.add_param(kparams, 'feedId', feed_id);
3988
- client.queue_service_action_call('syndicationFeed', 'requestConversion', kparams);
3989
- if (client.is_multirequest)
3990
- return nil;
3991
- end
3992
- return client.do_queue();
3993
- end
3994
- end
3995
-
3996
- class KalturaSystemService < KalturaServiceBase
3997
- def initialize(client)
3998
- super(client)
3999
- end
4000
-
4001
- def ping()
4002
- kparams = {}
4003
- client.queue_service_action_call('system', 'ping', kparams);
4004
- if (client.is_multirequest)
4005
- return nil;
4006
- end
4007
- return client.do_queue();
4008
- end
4009
- end
4010
-
4011
- class KalturaUiConfService < KalturaServiceBase
4012
- def initialize(client)
4013
- super(client)
4014
- end
4015
-
4016
- def add(ui_conf)
4017
- kparams = {}
4018
- client.add_param(kparams, 'uiConf', ui_conf);
4019
- client.queue_service_action_call('uiConf', 'add', kparams);
4020
- if (client.is_multirequest)
4021
- return nil;
4022
- end
4023
- return client.do_queue();
4024
- end
4025
-
4026
- def update(id, ui_conf)
4027
- kparams = {}
4028
- client.add_param(kparams, 'id', id);
4029
- client.add_param(kparams, 'uiConf', ui_conf);
4030
- client.queue_service_action_call('uiConf', 'update', kparams);
4031
- if (client.is_multirequest)
4032
- return nil;
4033
- end
4034
- return client.do_queue();
4035
- end
4036
-
4037
- def get(id)
4038
- kparams = {}
4039
- client.add_param(kparams, 'id', id);
4040
- client.queue_service_action_call('uiConf', 'get', kparams);
4041
- if (client.is_multirequest)
4042
- return nil;
4043
- end
4044
- return client.do_queue();
4045
- end
4046
-
4047
- def delete(id)
4048
- kparams = {}
4049
- client.add_param(kparams, 'id', id);
4050
- client.queue_service_action_call('uiConf', 'delete', kparams);
4051
- if (client.is_multirequest)
4052
- return nil;
4053
- end
4054
- return client.do_queue();
4055
- end
4056
-
4057
- def clone(id)
4058
- kparams = {}
4059
- client.add_param(kparams, 'id', id);
4060
- client.queue_service_action_call('uiConf', 'clone', kparams);
4061
- if (client.is_multirequest)
4062
- return nil;
4063
- end
4064
- return client.do_queue();
4065
- end
4066
-
4067
- def list_templates(filter=nil, pager=nil)
4068
- kparams = {}
4069
- client.add_param(kparams, 'filter', filter);
4070
- client.add_param(kparams, 'pager', pager);
4071
- client.queue_service_action_call('uiConf', 'listTemplates', kparams);
4072
- if (client.is_multirequest)
4073
- return nil;
4074
- end
4075
- return client.do_queue();
4076
- end
4077
-
4078
- def list(filter=nil, pager=nil)
4079
- kparams = {}
4080
- client.add_param(kparams, 'filter', filter);
4081
- client.add_param(kparams, 'pager', pager);
4082
- client.queue_service_action_call('uiConf', 'list', kparams);
4083
- if (client.is_multirequest)
4084
- return nil;
4085
- end
4086
- return client.do_queue();
4087
- end
4088
- end
4089
-
4090
- class KalturaUploadService < KalturaServiceBase
4091
- def initialize(client)
4092
- super(client)
4093
- end
4094
-
4095
- def upload(file_data)
4096
- kparams = {}
4097
- client.add_param(kparams, 'fileData', file_data);
4098
- client.queue_service_action_call('upload', 'upload', kparams);
4099
- if (client.is_multirequest)
4100
- return nil;
4101
- end
4102
- return client.do_queue();
4103
- end
4104
-
4105
- def get_uploaded_file_token_by_file_name(file_name)
4106
- kparams = {}
4107
- client.add_param(kparams, 'fileName', file_name);
4108
- client.queue_service_action_call('upload', 'getUploadedFileTokenByFileName', kparams);
4109
- if (client.is_multirequest)
4110
- return nil;
4111
- end
4112
- return client.do_queue();
4113
- end
4114
- end
4115
-
4116
- class KalturaUserService < KalturaServiceBase
4117
- def initialize(client)
4118
- super(client)
4119
- end
4120
-
4121
- def add(user)
4122
- kparams = {}
4123
- client.add_param(kparams, 'user', user);
4124
- client.queue_service_action_call('user', 'add', kparams);
4125
- if (client.is_multirequest)
4126
- return nil;
4127
- end
4128
- return client.do_queue();
4129
- end
4130
-
4131
- def update(user_id, user)
4132
- kparams = {}
4133
- client.add_param(kparams, 'userId', user_id);
4134
- client.add_param(kparams, 'user', user);
4135
- client.queue_service_action_call('user', 'update', kparams);
4136
- if (client.is_multirequest)
4137
- return nil;
4138
- end
4139
- return client.do_queue();
4140
- end
4141
-
4142
- def get(user_id)
4143
- kparams = {}
4144
- client.add_param(kparams, 'userId', user_id);
4145
- client.queue_service_action_call('user', 'get', kparams);
4146
- if (client.is_multirequest)
4147
- return nil;
4148
- end
4149
- return client.do_queue();
4150
- end
4151
-
4152
- def delete(user_id)
4153
- kparams = {}
4154
- client.add_param(kparams, 'userId', user_id);
4155
- client.queue_service_action_call('user', 'delete', kparams);
4156
- if (client.is_multirequest)
4157
- return nil;
4158
- end
4159
- return client.do_queue();
4160
- end
4161
-
4162
- def list(filter=nil, pager=nil)
4163
- kparams = {}
4164
- client.add_param(kparams, 'filter', filter);
4165
- client.add_param(kparams, 'pager', pager);
4166
- client.queue_service_action_call('user', 'list', kparams);
4167
- if (client.is_multirequest)
4168
- return nil;
4169
- end
4170
- return client.do_queue();
4171
- end
4172
-
4173
- def notify_ban(user_id)
4174
- kparams = {}
4175
- client.add_param(kparams, 'userId', user_id);
4176
- client.queue_service_action_call('user', 'notifyBan', kparams);
4177
- if (client.is_multirequest)
4178
- return nil;
4179
- end
4180
- return client.do_queue();
4181
- end
4182
- end
4183
-
4184
- class KalturaWidgetService < KalturaServiceBase
4185
- def initialize(client)
4186
- super(client)
4187
- end
4188
-
4189
- def add(widget)
4190
- kparams = {}
4191
- client.add_param(kparams, 'widget', widget);
4192
- client.queue_service_action_call('widget', 'add', kparams);
4193
- if (client.is_multirequest)
4194
- return nil;
4195
- end
4196
- return client.do_queue();
4197
- end
4198
-
4199
- def update(id, widget)
4200
- kparams = {}
4201
- client.add_param(kparams, 'id', id);
4202
- client.add_param(kparams, 'widget', widget);
4203
- client.queue_service_action_call('widget', 'update', kparams);
4204
- if (client.is_multirequest)
4205
- return nil;
4206
- end
4207
- return client.do_queue();
4208
- end
4209
-
4210
- def get(id)
4211
- kparams = {}
4212
- client.add_param(kparams, 'id', id);
4213
- client.queue_service_action_call('widget', 'get', kparams);
4214
- if (client.is_multirequest)
4215
- return nil;
4216
- end
4217
- return client.do_queue();
4218
- end
4219
-
4220
- def clone(widget)
4221
- kparams = {}
4222
- client.add_param(kparams, 'widget', widget);
4223
- client.queue_service_action_call('widget', 'clone', kparams);
4224
- if (client.is_multirequest)
4225
- return nil;
4226
- end
4227
- return client.do_queue();
4228
- end
4229
-
4230
- def list(filter=nil, pager=nil)
4231
- kparams = {}
4232
- client.add_param(kparams, 'filter', filter);
4233
- client.add_param(kparams, 'pager', pager);
4234
- client.queue_service_action_call('widget', 'list', kparams);
4235
- if (client.is_multirequest)
4236
- return nil;
4237
- end
4238
- return client.do_queue();
4239
- end
4240
- end
4241
-
4242
- class KalturaXInternalService < KalturaServiceBase
4243
- def initialize(client)
4244
- super(client)
4245
- end
4246
-
4247
- def x_add_bulk_download(entry_ids, flavor_params_id='')
4248
- kparams = {}
4249
- client.add_param(kparams, 'entryIds', entry_ids);
4250
- client.add_param(kparams, 'flavorParamsId', flavor_params_id);
4251
- client.queue_service_action_call('xInternal', 'xAddBulkDownload', kparams);
4252
- if (client.is_multirequest)
4253
- return nil;
4254
- end
4255
- return client.do_queue();
4256
- end
4257
- end
4258
-
4259
- class KalturaSystemUserService < KalturaServiceBase
4260
- def initialize(client)
4261
- super(client)
4262
- end
4263
-
4264
- def verify_password(email, password)
4265
- kparams = {}
4266
- client.add_param(kparams, 'email', email);
4267
- client.add_param(kparams, 'password', password);
4268
- client.queue_service_action_call('systemUser', 'verifyPassword', kparams);
4269
- if (client.is_multirequest)
4270
- return nil;
4271
- end
4272
- return client.do_queue();
4273
- end
4274
-
4275
- def generate_new_password()
4276
- kparams = {}
4277
- client.queue_service_action_call('systemUser', 'generateNewPassword', kparams);
4278
- if (client.is_multirequest)
4279
- return nil;
4280
- end
4281
- return client.do_queue();
4282
- end
4283
-
4284
- def set_new_password(user_id, password)
4285
- kparams = {}
4286
- client.add_param(kparams, 'userId', user_id);
4287
- client.add_param(kparams, 'password', password);
4288
- client.queue_service_action_call('systemUser', 'setNewPassword', kparams);
4289
- if (client.is_multirequest)
4290
- return nil;
4291
- end
4292
- return client.do_queue();
4293
- end
4294
-
4295
- def add(system_user)
4296
- kparams = {}
4297
- client.add_param(kparams, 'systemUser', system_user);
4298
- client.queue_service_action_call('systemUser', 'add', kparams);
4299
- if (client.is_multirequest)
4300
- return nil;
4301
- end
4302
- return client.do_queue();
4303
- end
4304
-
4305
- def get(user_id)
4306
- kparams = {}
4307
- client.add_param(kparams, 'userId', user_id);
4308
- client.queue_service_action_call('systemUser', 'get', kparams);
4309
- if (client.is_multirequest)
4310
- return nil;
4311
- end
4312
- return client.do_queue();
4313
- end
4314
-
4315
- def get_by_email(email)
4316
- kparams = {}
4317
- client.add_param(kparams, 'email', email);
4318
- client.queue_service_action_call('systemUser', 'getByEmail', kparams);
4319
- if (client.is_multirequest)
4320
- return nil;
4321
- end
4322
- return client.do_queue();
4323
- end
4324
-
4325
- def update(user_id, system_user)
4326
- kparams = {}
4327
- client.add_param(kparams, 'userId', user_id);
4328
- client.add_param(kparams, 'systemUser', system_user);
4329
- client.queue_service_action_call('systemUser', 'update', kparams);
4330
- if (client.is_multirequest)
4331
- return nil;
4332
- end
4333
- return client.do_queue();
4334
- end
4335
-
4336
- def delete(user_id)
4337
- kparams = {}
4338
- client.add_param(kparams, 'userId', user_id);
4339
- client.queue_service_action_call('systemUser', 'delete', kparams);
4340
- if (client.is_multirequest)
4341
- return nil;
4342
- end
4343
- return client.do_queue();
4344
- end
4345
-
4346
- def list(filter=nil, pager=nil)
4347
- kparams = {}
4348
- client.add_param(kparams, 'filter', filter);
4349
- client.add_param(kparams, 'pager', pager);
4350
- client.queue_service_action_call('systemUser', 'list', kparams);
4351
- if (client.is_multirequest)
4352
- return nil;
4353
- end
4354
- return client.do_queue();
4355
- end
4356
- end
4357
-
4358
- class KalturaSystemPartnerService < KalturaServiceBase
4359
- def initialize(client)
4360
- super(client)
4361
- end
4362
-
4363
- def get(partner_id)
4364
- kparams = {}
4365
- client.add_param(kparams, 'partnerId', partner_id);
4366
- client.queue_service_action_call('systemPartner', 'get', kparams);
4367
- if (client.is_multirequest)
4368
- return nil;
4369
- end
4370
- return client.do_queue();
4371
- end
4372
-
4373
- def get_usage(partner_filter=nil, usage_filter=nil, pager=nil)
4374
- kparams = {}
4375
- client.add_param(kparams, 'partnerFilter', partner_filter);
4376
- client.add_param(kparams, 'usageFilter', usage_filter);
4377
- client.add_param(kparams, 'pager', pager);
4378
- client.queue_service_action_call('systemPartner', 'getUsage', kparams);
4379
- if (client.is_multirequest)
4380
- return nil;
4381
- end
4382
- return client.do_queue();
4383
- end
4384
-
4385
- def list(filter=nil, pager=nil)
4386
- kparams = {}
4387
- client.add_param(kparams, 'filter', filter);
4388
- client.add_param(kparams, 'pager', pager);
4389
- client.queue_service_action_call('systemPartner', 'list', kparams);
4390
- if (client.is_multirequest)
4391
- return nil;
4392
- end
4393
- return client.do_queue();
4394
- end
4395
-
4396
- def update_status(partner_id, status)
4397
- kparams = {}
4398
- client.add_param(kparams, 'partnerId', partner_id);
4399
- client.add_param(kparams, 'status', status);
4400
- client.queue_service_action_call('systemPartner', 'updateStatus', kparams);
4401
- if (client.is_multirequest)
4402
- return nil;
4403
- end
4404
- return client.do_queue();
4405
- end
4406
-
4407
- def get_admin_session(partner_id)
4408
- kparams = {}
4409
- client.add_param(kparams, 'partnerId', partner_id);
4410
- client.queue_service_action_call('systemPartner', 'getAdminSession', kparams);
4411
- if (client.is_multirequest)
4412
- return nil;
4413
- end
4414
- return client.do_queue();
4415
- end
4416
-
4417
- def update_configuration(partner_id, configuration)
4418
- kparams = {}
4419
- client.add_param(kparams, 'partnerId', partner_id);
4420
- client.add_param(kparams, 'configuration', configuration);
4421
- client.queue_service_action_call('systemPartner', 'updateConfiguration', kparams);
4422
- if (client.is_multirequest)
4423
- return nil;
4424
- end
4425
- return client.do_queue();
4426
- end
4427
-
4428
- def get_configuration(partner_id)
4429
- kparams = {}
4430
- client.add_param(kparams, 'partnerId', partner_id);
4431
- client.queue_service_action_call('systemPartner', 'getConfiguration', kparams);
4432
- if (client.is_multirequest)
4433
- return nil;
4434
- end
4435
- return client.do_queue();
4436
- end
4437
-
4438
- def get_packages()
4439
- kparams = {}
4440
- client.queue_service_action_call('systemPartner', 'getPackages', kparams);
4441
- if (client.is_multirequest)
4442
- return nil;
4443
- end
4444
- return client.do_queue();
4445
- end
4446
- end
4447
-
4448
- class KalturaFileSyncService < KalturaServiceBase
4449
- def initialize(client)
4450
- super(client)
4451
- end
4452
-
4453
- def list(filter=nil, pager=nil)
4454
- kparams = {}
4455
- client.add_param(kparams, 'filter', filter);
4456
- client.add_param(kparams, 'pager', pager);
4457
- client.queue_service_action_call('fileSync', 'list', kparams);
4458
- if (client.is_multirequest)
4459
- return nil;
4460
- end
4461
- return client.do_queue();
4462
- end
4463
- end
4464
-
4465
- class KalturaFlavorParamsOutputService < KalturaServiceBase
4466
- def initialize(client)
4467
- super(client)
4468
- end
4469
-
4470
- def list(filter=nil, pager=nil)
4471
- kparams = {}
4472
- client.add_param(kparams, 'filter', filter);
4473
- client.add_param(kparams, 'pager', pager);
4474
- client.queue_service_action_call('flavorParamsOutput', 'list', kparams);
4475
- if (client.is_multirequest)
4476
- return nil;
4477
- end
4478
- return client.do_queue();
4479
- end
4480
- end
4481
-
4482
- class KalturaMediaInfoService < KalturaServiceBase
4483
- def initialize(client)
4484
- super(client)
4485
- end
4486
-
4487
- def list(filter=nil, pager=nil)
4488
- kparams = {}
4489
- client.add_param(kparams, 'filter', filter);
4490
- client.add_param(kparams, 'pager', pager);
4491
- client.queue_service_action_call('mediaInfo', 'list', kparams);
4492
- if (client.is_multirequest)
4493
- return nil;
4494
- end
4495
- return client.do_queue();
4496
- end
4497
- end
4498
-
4499
- class KalturaEntryAdminService < KalturaServiceBase
4500
- def initialize(client)
4501
- super(client)
4502
- end
4503
-
4504
- def get(entry_id, version=-1)
4505
- kparams = {}
4506
- client.add_param(kparams, 'entryId', entry_id);
4507
- client.add_param(kparams, 'version', version);
4508
- client.queue_service_action_call('entryAdmin', 'get', kparams);
4509
- if (client.is_multirequest)
4510
- return nil;
4511
- end
4512
- return client.do_queue();
4513
- end
4514
- end
4515
-
4516
2378
  class KalturaClient < KalturaClientBase
4517
2379
  attr_reader :access_control_service
4518
2380
  def access_control_service
4519
2381
  if (@access_control_service == nil)
4520
- @access_control_service = KalturaAccessControlService.new(self)
2382
+ @access_control_service = Kaltura::Service::AccessControlService.new(self)
4521
2383
  end
4522
2384
  return @access_control_service
4523
2385
  end
4524
2386
  attr_reader :admin_user_service
4525
2387
  def admin_user_service
4526
2388
  if (@admin_user_service == nil)
4527
- @admin_user_service = KalturaAdminUserService.new(self)
2389
+ @admin_user_service = Kaltura::Service::AdminUserService.new(self)
4528
2390
  end
4529
2391
  return @admin_user_service
4530
2392
  end
4531
2393
  attr_reader :base_entry_service
4532
2394
  def base_entry_service
4533
2395
  if (@base_entry_service == nil)
4534
- @base_entry_service = KalturaBaseEntryService.new(self)
2396
+ @base_entry_service = Kaltura::Service::BaseEntryService.new(self)
4535
2397
  end
4536
2398
  return @base_entry_service
4537
2399
  end
4538
2400
  attr_reader :bulk_upload_service
4539
2401
  def bulk_upload_service
4540
2402
  if (@bulk_upload_service == nil)
4541
- @bulk_upload_service = KalturaBulkUploadService.new(self)
2403
+ @bulk_upload_service = Kaltura::Service::BulkUploadService.new(self)
4542
2404
  end
4543
2405
  return @bulk_upload_service
4544
2406
  end
4545
2407
  attr_reader :category_service
4546
2408
  def category_service
4547
2409
  if (@category_service == nil)
4548
- @category_service = KalturaCategoryService.new(self)
2410
+ @category_service = Kaltura::Service::CategoryService.new(self)
4549
2411
  end
4550
2412
  return @category_service
4551
2413
  end
4552
2414
  attr_reader :conversion_profile_service
4553
2415
  def conversion_profile_service
4554
2416
  if (@conversion_profile_service == nil)
4555
- @conversion_profile_service = KalturaConversionProfileService.new(self)
2417
+ @conversion_profile_service = Kaltura::Service::ConversionProfileService.new(self)
4556
2418
  end
4557
2419
  return @conversion_profile_service
4558
2420
  end
4559
2421
  attr_reader :data_service
4560
2422
  def data_service
4561
2423
  if (@data_service == nil)
4562
- @data_service = KalturaDataService.new(self)
2424
+ @data_service = Kaltura::Service::DataService.new(self)
4563
2425
  end
4564
2426
  return @data_service
4565
2427
  end
4566
2428
  attr_reader :email_ingestion_profile_service
4567
2429
  def email_ingestion_profile_service
4568
2430
  if (@email_ingestion_profile_service == nil)
4569
- @email_ingestion_profile_service = KalturaEmailIngestionProfileService.new(self)
2431
+ @email_ingestion_profile_service = Kaltura::Service::EmailIngestionProfileService.new(self)
4570
2432
  end
4571
2433
  return @email_ingestion_profile_service
4572
2434
  end
4573
2435
  attr_reader :flavor_asset_service
4574
2436
  def flavor_asset_service
4575
2437
  if (@flavor_asset_service == nil)
4576
- @flavor_asset_service = KalturaFlavorAssetService.new(self)
2438
+ @flavor_asset_service = Kaltura::Service::FlavorAssetService.new(self)
4577
2439
  end
4578
2440
  return @flavor_asset_service
4579
2441
  end
4580
2442
  attr_reader :flavor_params_service
4581
2443
  def flavor_params_service
4582
2444
  if (@flavor_params_service == nil)
4583
- @flavor_params_service = KalturaFlavorParamsService.new(self)
2445
+ @flavor_params_service = Kaltura::Service::FlavorParamsService.new(self)
4584
2446
  end
4585
2447
  return @flavor_params_service
4586
2448
  end
4587
2449
  attr_reader :live_stream_service
4588
2450
  def live_stream_service
4589
2451
  if (@live_stream_service == nil)
4590
- @live_stream_service = KalturaLiveStreamService.new(self)
2452
+ @live_stream_service = Kaltura::Service::LiveStreamService.new(self)
4591
2453
  end
4592
2454
  return @live_stream_service
4593
2455
  end
4594
2456
  attr_reader :media_service
4595
2457
  def media_service
4596
2458
  if (@media_service == nil)
4597
- @media_service = KalturaMediaService.new(self)
2459
+ @media_service = Kaltura::Service::MediaService.new(self)
4598
2460
  end
4599
2461
  return @media_service
4600
2462
  end
4601
2463
  attr_reader :mixing_service
4602
2464
  def mixing_service
4603
2465
  if (@mixing_service == nil)
4604
- @mixing_service = KalturaMixingService.new(self)
2466
+ @mixing_service = Kaltura::Service::MixingService.new(self)
4605
2467
  end
4606
2468
  return @mixing_service
4607
2469
  end
4608
2470
  attr_reader :notification_service
4609
2471
  def notification_service
4610
2472
  if (@notification_service == nil)
4611
- @notification_service = KalturaNotificationService.new(self)
2473
+ @notification_service = Kaltura::Service::NotificationService.new(self)
4612
2474
  end
4613
2475
  return @notification_service
4614
2476
  end
4615
2477
  attr_reader :partner_service
4616
2478
  def partner_service
4617
2479
  if (@partner_service == nil)
4618
- @partner_service = KalturaPartnerService.new(self)
2480
+ @partner_service = Kaltura::Service::PartnerService.new(self)
4619
2481
  end
4620
2482
  return @partner_service
4621
2483
  end
4622
2484
  attr_reader :playlist_service
4623
2485
  def playlist_service
4624
2486
  if (@playlist_service == nil)
4625
- @playlist_service = KalturaPlaylistService.new(self)
2487
+ @playlist_service = Kaltura::Service::PlaylistService.new(self)
4626
2488
  end
4627
2489
  return @playlist_service
4628
2490
  end
4629
2491
  attr_reader :report_service
4630
2492
  def report_service
4631
2493
  if (@report_service == nil)
4632
- @report_service = KalturaReportService.new(self)
2494
+ @report_service = Kaltura::Service::ReportService.new(self)
4633
2495
  end
4634
2496
  return @report_service
4635
2497
  end
4636
2498
  attr_reader :search_service
4637
2499
  def search_service
4638
2500
  if (@search_service == nil)
4639
- @search_service = KalturaSearchService.new(self)
2501
+ @search_service = Kaltura::Service::SearchService.new(self)
4640
2502
  end
4641
2503
  return @search_service
4642
2504
  end
4643
2505
  attr_reader :session_service
4644
2506
  def session_service
4645
2507
  if (@session_service == nil)
4646
- @session_service = KalturaSessionService.new(self)
2508
+ @session_service = Kaltura::Service::SessionService.new(self)
4647
2509
  end
4648
2510
  return @session_service
4649
2511
  end
4650
2512
  attr_reader :stats_service
4651
2513
  def stats_service
4652
2514
  if (@stats_service == nil)
4653
- @stats_service = KalturaStatsService.new(self)
2515
+ @stats_service = Kaltura::Service::StatsService.new(self)
4654
2516
  end
4655
2517
  return @stats_service
4656
2518
  end
4657
2519
  attr_reader :syndication_feed_service
4658
2520
  def syndication_feed_service
4659
2521
  if (@syndication_feed_service == nil)
4660
- @syndication_feed_service = KalturaSyndicationFeedService.new(self)
2522
+ @syndication_feed_service = Kaltura::Service::SyndicationFeedService.new(self)
4661
2523
  end
4662
2524
  return @syndication_feed_service
4663
2525
  end
4664
2526
  attr_reader :system_service
4665
2527
  def system_service
4666
2528
  if (@system_service == nil)
4667
- @system_service = KalturaSystemService.new(self)
2529
+ @system_service = Kaltura::Service::SystemService.new(self)
4668
2530
  end
4669
2531
  return @system_service
4670
2532
  end
4671
2533
  attr_reader :ui_conf_service
4672
2534
  def ui_conf_service
4673
2535
  if (@ui_conf_service == nil)
4674
- @ui_conf_service = KalturaUiConfService.new(self)
2536
+ @ui_conf_service = Kaltura::Service::UiConfService.new(self)
4675
2537
  end
4676
2538
  return @ui_conf_service
4677
2539
  end
4678
2540
  attr_reader :upload_service
4679
2541
  def upload_service
4680
2542
  if (@upload_service == nil)
4681
- @upload_service = KalturaUploadService.new(self)
2543
+ @upload_service = Kaltura::Service::UploadService.new(self)
4682
2544
  end
4683
2545
  return @upload_service
4684
2546
  end
4685
2547
  attr_reader :user_service
4686
2548
  def user_service
4687
2549
  if (@user_service == nil)
4688
- @user_service = KalturaUserService.new(self)
2550
+ @user_service = Kaltura::Service::UserService.new(self)
4689
2551
  end
4690
2552
  return @user_service
4691
2553
  end
4692
2554
  attr_reader :widget_service
4693
2555
  def widget_service
4694
2556
  if (@widget_service == nil)
4695
- @widget_service = KalturaWidgetService.new(self)
2557
+ @widget_service = Kaltura::Service::WidgetService.new(self)
4696
2558
  end
4697
2559
  return @widget_service
4698
2560
  end
4699
2561
  attr_reader :x_internal_service
4700
2562
  def x_internal_service
4701
2563
  if (@x_internal_service == nil)
4702
- @x_internal_service = KalturaXInternalService.new(self)
2564
+ @x_internal_service = Kaltura::Service::XInternalService.new(self)
4703
2565
  end
4704
2566
  return @x_internal_service
4705
2567
  end
4706
2568
  attr_reader :system_user_service
4707
2569
  def system_user_service
4708
2570
  if (@system_user_service == nil)
4709
- @system_user_service = KalturaSystemUserService.new(self)
2571
+ @system_user_service = Kaltura::Service::SystemUserService.new(self)
4710
2572
  end
4711
2573
  return @system_user_service
4712
2574
  end
4713
2575
  attr_reader :system_partner_service
4714
2576
  def system_partner_service
4715
2577
  if (@system_partner_service == nil)
4716
- @system_partner_service = KalturaSystemPartnerService.new(self)
2578
+ @system_partner_service = Kaltura::Service::SystemPartnerService.new(self)
4717
2579
  end
4718
2580
  return @system_partner_service
4719
2581
  end
4720
2582
  attr_reader :file_sync_service
4721
2583
  def file_sync_service
4722
2584
  if (@file_sync_service == nil)
4723
- @file_sync_service = KalturaFileSyncService.new(self)
2585
+ @file_sync_service = Kaltura::Service::FileSyncService.new(self)
4724
2586
  end
4725
2587
  return @file_sync_service
4726
2588
  end
4727
2589
  attr_reader :flavor_params_output_service
4728
2590
  def flavor_params_output_service
4729
2591
  if (@flavor_params_output_service == nil)
4730
- @flavor_params_output_service = KalturaFlavorParamsOutputService.new(self)
2592
+ @flavor_params_output_service = Kaltura::Service::FlavorParamsOutputService.new(self)
4731
2593
  end
4732
2594
  return @flavor_params_output_service
4733
2595
  end
4734
2596
  attr_reader :media_info_service
4735
2597
  def media_info_service
4736
2598
  if (@media_info_service == nil)
4737
- @media_info_service = KalturaMediaInfoService.new(self)
2599
+ @media_info_service = Kaltura::Service::MediaInfoService.new(self)
4738
2600
  end
4739
2601
  return @media_info_service
4740
2602
  end
4741
2603
  attr_reader :entry_admin_service
4742
2604
  def entry_admin_service
4743
2605
  if (@entry_admin_service == nil)
4744
- @entry_admin_service = KalturaEntryAdminService.new(self)
2606
+ @entry_admin_service = Kaltura::Service::EntryAdminService.new(self)
4745
2607
  end
4746
2608
  return @entry_admin_service
4747
2609
  end