Skip to content

Commit d762cf9

Browse files
New deploy (#15)
* New deploy * reverted all changes except for webrtc * removed more files Co-authored-by: jmulford-bw <[email protected]>
1 parent 08021ef commit d762cf9

File tree

4 files changed

+36
-4
lines changed

4 files changed

+36
-4
lines changed

bandwidth/webrtc/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
'subscriptions',
55
'participant_subscription',
66
'accounts_participants_response',
7+
'device_api_version_enum',
78
'publish_permission_enum',
89
]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# -*- coding: utf-8 -*-
2+
3+
"""
4+
bandwidth
5+
6+
This file was automatically generated by APIMATIC v2.0 ( https://apimatic.io ).
7+
"""
8+
9+
10+
class DeviceApiVersionEnum(object):
11+
12+
"""Implementation of the 'DeviceApiVersion' enum.
13+
14+
Optional field to define the device api version of this participant
15+
16+
Attributes:
17+
V3: TODO: type description here.
18+
V2: TODO: type description here.
19+
20+
"""
21+
22+
V3 = 'v3'
23+
24+
V2 = 'v2'

bandwidth/webrtc/models/participant.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ class Participant(object):
2424
associated with Capped to one
2525
subscriptions (Subscriptions): TODO: type description here.
2626
tag (string): User defined tag to associate with the participant
27+
device_api_version (DeviceApiVersionEnum): Optional field to define
28+
the device api version of this participant
2729
2830
"""
2931

@@ -34,7 +36,8 @@ class Participant(object):
3436
"publish_permissions": 'publishPermissions',
3537
"sessions": 'sessions',
3638
"subscriptions": 'subscriptions',
37-
"tag": 'tag'
39+
"tag": 'tag',
40+
"device_api_version": 'deviceApiVersion'
3841
}
3942

4043
def __init__(self,
@@ -43,7 +46,8 @@ def __init__(self,
4346
publish_permissions=None,
4447
sessions=None,
4548
subscriptions=None,
46-
tag=None):
49+
tag=None,
50+
device_api_version='v2'):
4751
"""Constructor for the Participant class"""
4852

4953
# Initialize members of the class
@@ -53,6 +57,7 @@ def __init__(self,
5357
self.sessions = sessions
5458
self.subscriptions = subscriptions
5559
self.tag = tag
60+
self.device_api_version = device_api_version
5661

5762
@classmethod
5863
def from_dictionary(cls,
@@ -78,11 +83,13 @@ def from_dictionary(cls,
7883
sessions = dictionary.get('sessions')
7984
subscriptions = Subscriptions.from_dictionary(dictionary.get('subscriptions')) if dictionary.get('subscriptions') else None
8085
tag = dictionary.get('tag')
86+
device_api_version = dictionary.get("deviceApiVersion") if dictionary.get("deviceApiVersion") else 'v2'
8187

8288
# Return an object of this model
8389
return cls(id,
8490
callback_url,
8591
publish_permissions,
8692
sessions,
8793
subscriptions,
88-
tag)
94+
tag,
95+
device_api_version)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name='bandwidth-sdk',
15-
version='9.0.0',
15+
version='9.1.0',
1616
description='Bandwidth\'s set of APIs',
1717
long_description=long_description,
1818
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)