diff --git a/bandwidth/webrtc/models/__init__.py b/bandwidth/webrtc/models/__init__.py index 66181a67..947920dc 100644 --- a/bandwidth/webrtc/models/__init__.py +++ b/bandwidth/webrtc/models/__init__.py @@ -4,5 +4,6 @@ 'subscriptions', 'participant_subscription', 'accounts_participants_response', + 'device_api_version_enum', 'publish_permission_enum', ] diff --git a/bandwidth/webrtc/models/device_api_version_enum.py b/bandwidth/webrtc/models/device_api_version_enum.py new file mode 100644 index 00000000..19153d44 --- /dev/null +++ b/bandwidth/webrtc/models/device_api_version_enum.py @@ -0,0 +1,24 @@ +# -*- coding: utf-8 -*- + +""" +bandwidth + +This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ). +""" + + +class DeviceApiVersionEnum(object): + + """Implementation of the 'DeviceApiVersion' enum. + + Optional field to define the device api version of this participant + + Attributes: + V3: TODO: type description here. + V2: TODO: type description here. + + """ + + V3 = 'v3' + + V2 = 'v2' diff --git a/bandwidth/webrtc/models/participant.py b/bandwidth/webrtc/models/participant.py index 1341c2ea..5cff9652 100644 --- a/bandwidth/webrtc/models/participant.py +++ b/bandwidth/webrtc/models/participant.py @@ -24,6 +24,8 @@ class Participant(object): associated with Capped to one subscriptions (Subscriptions): TODO: type description here. tag (string): User defined tag to associate with the participant + device_api_version (DeviceApiVersionEnum): Optional field to define + the device api version of this participant """ @@ -34,7 +36,8 @@ class Participant(object): "publish_permissions": 'publishPermissions', "sessions": 'sessions', "subscriptions": 'subscriptions', - "tag": 'tag' + "tag": 'tag', + "device_api_version": 'deviceApiVersion' } def __init__(self, @@ -43,7 +46,8 @@ def __init__(self, publish_permissions=None, sessions=None, subscriptions=None, - tag=None): + tag=None, + device_api_version='v2'): """Constructor for the Participant class""" # Initialize members of the class @@ -53,6 +57,7 @@ def __init__(self, self.sessions = sessions self.subscriptions = subscriptions self.tag = tag + self.device_api_version = device_api_version @classmethod def from_dictionary(cls, @@ -78,6 +83,7 @@ def from_dictionary(cls, sessions = dictionary.get('sessions') subscriptions = Subscriptions.from_dictionary(dictionary.get('subscriptions')) if dictionary.get('subscriptions') else None tag = dictionary.get('tag') + device_api_version = dictionary.get("deviceApiVersion") if dictionary.get("deviceApiVersion") else 'v2' # Return an object of this model return cls(id, @@ -85,4 +91,5 @@ def from_dictionary(cls, publish_permissions, sessions, subscriptions, - tag) + tag, + device_api_version) diff --git a/setup.py b/setup.py index f4168dc6..988c79a5 100644 --- a/setup.py +++ b/setup.py @@ -12,7 +12,7 @@ setup( name='bandwidth-sdk', - version='9.0.0', + version='9.1.0', description='Bandwidth\'s set of APIs', long_description=long_description, long_description_content_type="text/markdown",