Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bandwidth/webrtc/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
'subscriptions',
'participant_subscription',
'accounts_participants_response',
'device_api_version_enum',
'publish_permission_enum',
]
24 changes: 24 additions & 0 deletions bandwidth/webrtc/models/device_api_version_enum.py
Original file line number Diff line number Diff line change
@@ -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'
13 changes: 10 additions & 3 deletions bandwidth/webrtc/models/participant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""

Expand All @@ -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,
Expand All @@ -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
Expand All @@ -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,
Expand All @@ -78,11 +83,13 @@ 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,
callback_url,
publish_permissions,
sessions,
subscriptions,
tag)
tag,
device_api_version)
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down