Class: Kaltura::KalturaPartnerService
- Inherits:
-
KalturaServiceBase
- Object
- KalturaServiceBase
- Kaltura::KalturaPartnerService
- Defined in:
- lib/kaltura_client.rb
Overview
partner service allows you to change/manage your partner personal details and settings as well
Instance Attribute Summary
Attributes inherited from KalturaServiceBase
Instance Method Summary collapse
-
#count(filter = KalturaNotImplemented) ⇒ int
Count partner’s existing sub-publishers (count includes the partner itself).
-
#get(id = KalturaNotImplemented) ⇒ KalturaPartner
Retrieve partner object by Id.
-
#get_info ⇒ KalturaPartner
Retrieve all info attributed to the partner This action expects no parameters.
-
#get_public_info(id = KalturaNotImplemented) ⇒ KalturaPartnerPublicInfo
Returns partner public info by Id.
-
#get_secrets(partner_id, admin_email, cms_password, otp = KalturaNotImplemented) ⇒ KalturaPartner
Retrieve partner secret and admin secret.
-
#get_statistics ⇒ KalturaPartnerStatistics
Get usage statistics for a partner Calculation is done according to partner’s package.
-
#get_usage(year = '', month = 1, resolution = KalturaNotImplemented) ⇒ KalturaPartnerUsage
Get usage statistics for a partner Calculation is done according to partner’s package Additional data returned is a graph points of streaming usage in a time frame The resolution can be “days” or “months”.
-
#initialize(client) ⇒ KalturaPartnerService
constructor
A new instance of KalturaPartnerService.
-
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaPartnerListResponse
List partners by filter with paging support Current implementation will only list the sub partners of the partner initiating the API call (using the current KS).
-
#list_feature_status ⇒ KalturaFeatureStatusListResponse
List partner’s current processes’ statuses.
-
#list_partners_for_user(partner_filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaPartnerListResponse
Retrieve a list of partner objects which the current user is allowed to access.
-
#register(partner, cms_password = '', template_partner_id = KalturaNotImplemented, silent = false) ⇒ KalturaPartner
Create a new Partner object.
-
#registration_validation(partner, cms_password = '', template_partner_id = KalturaNotImplemented, silent = false) ⇒ bool
Create a new Partner object.
-
#update(partner, allow_empty = false) ⇒ KalturaPartner
Update details and settings of an existing partner.
Constructor Details
#initialize(client) ⇒ KalturaPartnerService
Returns a new instance of KalturaPartnerService.
3473 3474 3475 |
# File 'lib/kaltura_client.rb', line 3473 def initialize(client) super(client) end |
Instance Method Details
#count(filter = KalturaNotImplemented) ⇒ int
Count partner’s existing sub-publishers (count includes the partner itself).
3479 3480 3481 3482 3483 3484 3485 3486 3487 |
# File 'lib/kaltura_client.rb', line 3479 def count(filter=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.queue_service_action_call('partner', 'count', 'int', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get(id = KalturaNotImplemented) ⇒ KalturaPartner
Retrieve partner object by Id
3491 3492 3493 3494 3495 3496 3497 3498 3499 |
# File 'lib/kaltura_client.rb', line 3491 def get(id=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('partner', 'get', 'KalturaPartner', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_info ⇒ KalturaPartner
Retrieve all info attributed to the partner This action expects no parameters. It returns information for the current KS partnerId.
3504 3505 3506 3507 3508 3509 3510 3511 |
# File 'lib/kaltura_client.rb', line 3504 def get_info() kparams = {} client.queue_service_action_call('partner', 'getInfo', 'KalturaPartner', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_public_info(id = KalturaNotImplemented) ⇒ KalturaPartnerPublicInfo
Returns partner public info by Id
3515 3516 3517 3518 3519 3520 3521 3522 3523 |
# File 'lib/kaltura_client.rb', line 3515 def get_public_info(id=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'id', id) client.queue_service_action_call('partner', 'getPublicInfo', 'KalturaPartnerPublicInfo', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_secrets(partner_id, admin_email, cms_password, otp = KalturaNotImplemented) ⇒ KalturaPartner
Retrieve partner secret and admin secret
3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 |
# File 'lib/kaltura_client.rb', line 3527 def get_secrets(partner_id, admin_email, cms_password, otp=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'partnerId', partner_id) client.add_param(kparams, 'adminEmail', admin_email) client.add_param(kparams, 'cmsPassword', cms_password) client.add_param(kparams, 'otp', otp) client.queue_service_action_call('partner', 'getSecrets', 'KalturaPartner', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_statistics ⇒ KalturaPartnerStatistics
Get usage statistics for a partner Calculation is done according to partner’s package
3543 3544 3545 3546 3547 3548 3549 3550 |
# File 'lib/kaltura_client.rb', line 3543 def get_statistics() kparams = {} client.queue_service_action_call('partner', 'getStatistics', 'KalturaPartnerStatistics', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#get_usage(year = '', month = 1, resolution = KalturaNotImplemented) ⇒ KalturaPartnerUsage
Get usage statistics for a partner Calculation is done according to partner’s package Additional data returned is a graph points of streaming usage in a time frame The resolution can be “days” or “months”
3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 |
# File 'lib/kaltura_client.rb', line 3557 def get_usage(year='', month=1, resolution=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'year', year) client.add_param(kparams, 'month', month) client.add_param(kparams, 'resolution', resolution) client.queue_service_action_call('partner', 'getUsage', 'KalturaPartnerUsage', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list(filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaPartnerListResponse
List partners by filter with paging support Current implementation will only list the sub partners of the partner initiating the API call (using the current KS). This action is only partially implemented to support listing sub partners of a VAR partner.
3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 |
# File 'lib/kaltura_client.rb', line 3573 def list(filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'filter', filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('partner', 'list', 'KalturaPartnerListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list_feature_status ⇒ KalturaFeatureStatusListResponse
List partner’s current processes’ statuses
3586 3587 3588 3589 3590 3591 3592 3593 |
# File 'lib/kaltura_client.rb', line 3586 def list_feature_status() kparams = {} client.queue_service_action_call('partner', 'listFeatureStatus', 'KalturaFeatureStatusListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#list_partners_for_user(partner_filter = KalturaNotImplemented, pager = KalturaNotImplemented) ⇒ KalturaPartnerListResponse
Retrieve a list of partner objects which the current user is allowed to access.
3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 |
# File 'lib/kaltura_client.rb', line 3597 def list_partners_for_user(partner_filter=KalturaNotImplemented, pager=KalturaNotImplemented) kparams = {} client.add_param(kparams, 'partnerFilter', partner_filter) client.add_param(kparams, 'pager', pager) client.queue_service_action_call('partner', 'listPartnersForUser', 'KalturaPartnerListResponse', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#register(partner, cms_password = '', template_partner_id = KalturaNotImplemented, silent = false) ⇒ KalturaPartner
Create a new Partner object
3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 |
# File 'lib/kaltura_client.rb', line 3610 def register(partner, cms_password='', template_partner_id=KalturaNotImplemented, silent=false) kparams = {} client.add_param(kparams, 'partner', partner) client.add_param(kparams, 'cmsPassword', cms_password) client.add_param(kparams, 'templatePartnerId', template_partner_id) client.add_param(kparams, 'silent', silent) client.queue_service_action_call('partner', 'register', 'KalturaPartner', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#registration_validation(partner, cms_password = '', template_partner_id = KalturaNotImplemented, silent = false) ⇒ bool
Create a new Partner object
3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 |
# File 'lib/kaltura_client.rb', line 3625 def registration_validation(partner, cms_password='', template_partner_id=KalturaNotImplemented, silent=false) kparams = {} client.add_param(kparams, 'partner', partner) client.add_param(kparams, 'cmsPassword', cms_password) client.add_param(kparams, 'templatePartnerId', template_partner_id) client.add_param(kparams, 'silent', silent) client.queue_service_action_call('partner', 'registrationValidation', 'bool', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |
#update(partner, allow_empty = false) ⇒ KalturaPartner
Update details and settings of an existing partner
3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 |
# File 'lib/kaltura_client.rb', line 3640 def update(partner, allow_empty=false) kparams = {} client.add_param(kparams, 'partner', partner) client.add_param(kparams, 'allowEmpty', allow_empty) client.queue_service_action_call('partner', 'update', 'KalturaPartner', kparams) if (client.is_multirequest) return nil end return client.do_queue() end |