Skip to content

Commit

Permalink
update to version 1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
James Robertson authored and James Robertson committed Aug 3, 2022
1 parent bda0868 commit b6b359e
Show file tree
Hide file tree
Showing 10 changed files with 84 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/GcCreateChannelData.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user_ids** | **[str]** | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. |
**users** | **[str]** | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. | [optional]
**users** | [**[SendBirdUser]**](SendBirdUser.md) | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. | [optional]
**name** | **str** | Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel) | [optional]
**channel_url** | **str** | Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. | [optional]
**cover_url** | **str** | Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters. | [optional]
Expand Down
39 changes: 38 additions & 1 deletion docs/GroupChannelApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,44 @@ with sendbird_platform_sdk.ApiClient() as api_client:
"user_ids_example",
],
users=[
"users_example",
SendBirdUser(
require_auth_for_profile_image=True,
is_online=True,
user_id="user_id_example",
access_token="access_token_example",
has_ever_logged_in=True,
is_active=True,
last_seen_at=1,
nickname="nickname_example",
discovery_keys=[
"discovery_keys_example",
],
session_tokens=[
"session_tokens_example",
],
preferred_languages=[
"preferred_languages_example",
],
profile_url="profile_url_example",
created_at=1,
phone_number="phone_number_example",
local="local_example",
locale="locale_example",
is_hide_me_from_friends=True,
is_shadow_blocked=True,
is_created=True,
metadata=SBObject(
constructor=Function(
arguments=None,
caller=Function(),
length=3.14,
prototype=None,
),
),
description="description_example",
end_at=3.14,
start_at=3.14,
),
],
name="name_example",
channel_url="channel_url_example",
Expand Down
9 changes: 6 additions & 3 deletions docs/SendBirdMember.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ Name | Type | Description | Notes
**friend_discovery_key** | **str** | | [optional]
**friend_name** | **str** | | [optional]
**is_active** | **bool** | | [optional]
**is_blocked_by_me** | **bool** | | [optional]
**is_blocking_me** | **bool** | | [optional]
**is_muted** | **bool** | | [optional]
**last_seen_at** | **int** | | [optional]
**meta_data** | [**SBObject**](SBObject.md) | | [optional]
Expand All @@ -18,8 +16,13 @@ Name | Type | Description | Notes
**preferred_languages** | **[str]** | | [optional]
**profile_url** | **str** | | [optional]
**require_auth** | **bool** | | [optional]
**require_auth_for_profile_image** | **bool** | | [optional]
**metadata** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional]
**is_online** | **bool** | | [optional]
**muted_end_at** | **float** | | [optional]
**muted_description** | **str** | | [optional]
**restriction_info** | [**SendBirdRestrictionInfo**](SendBirdRestrictionInfo.md) | | [optional]
**role** | **str** | | [optional]
**role** | **str, none_type** | | [optional]
**state** | **str** | | [optional]
**user_id** | **str** | | [optional]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"""


__version__ = "1.0.6"
__version__ = "1.0.7"

# import ApiClient
from sendbird_platform_sdk.api_client import ApiClient
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/1.0.6/python'
self.user_agent = 'OpenAPI-Generator/1.0.7/python'

def __enter__(self):
return self
Expand Down
2 changes: 1 addition & 1 deletion sendbird_platform_sdk/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def to_debug_report(self):
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0.0\n"\
"SDK Package Version: 1.0.6".\
"SDK Package Version: 1.0.7".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self):
Expand Down
12 changes: 9 additions & 3 deletions sendbird_platform_sdk/model/gc_create_channel_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@
from sendbird_platform_sdk.exceptions import ApiAttributeError


def lazy_import():
from sendbird_platform_sdk.model.send_bird_user import SendBirdUser
globals()['SendBirdUser'] = SendBirdUser


class GcCreateChannelData(ModelNormal):
"""NOTE: This class is auto generated by OpenAPI Generator.
Expand Down Expand Up @@ -66,6 +70,7 @@ def additional_properties_type():
This must be a method because a model may have properties that are
of type self, this must run after the class is loaded
"""
lazy_import()
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501

_nullable = False
Expand All @@ -80,9 +85,10 @@ def openapi_types():
openapi_types (dict): The key is attribute name
and the value is attribute type.
"""
lazy_import()
return {
'user_ids': ([str],), # noqa: E501
'users': ([str],), # noqa: E501
'users': ([SendBirdUser],), # noqa: E501
'name': (str,), # noqa: E501
'channel_url': (str,), # noqa: E501
'cover_url': (str,), # noqa: E501
Expand Down Expand Up @@ -173,7 +179,7 @@ def _from_openapi_data(cls, user_ids, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
users ([str]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
users ([SendBirdUser]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
name (str): Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel). [optional] # noqa: E501
channel_url (str): Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated.. [optional] # noqa: E501
cover_url (str): Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters.. [optional] # noqa: E501
Expand Down Expand Up @@ -280,7 +286,7 @@ def __init__(self, user_ids, *args, **kwargs): # noqa: E501
Animal class but this time we won't travel
through its discriminator because we passed in
_visited_composed_classes = (Animal,)
users ([str]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
users ([SendBirdUser]): Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably.. [optional] # noqa: E501
name (str): Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel). [optional] # noqa: E501
channel_url (str): Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated.. [optional] # noqa: E501
cover_url (str): Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters.. [optional] # noqa: E501
Expand Down
35 changes: 24 additions & 11 deletions sendbird_platform_sdk/model/send_bird_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class SendBirdMember(ModelNormal):

allowed_values = {
('role',): {
'None': None,
'NONE': "none",
'OPERATOR': "operator",
},
Expand Down Expand Up @@ -101,8 +102,6 @@ def openapi_types():
'friend_discovery_key': (str,), # noqa: E501
'friend_name': (str,), # noqa: E501
'is_active': (bool,), # noqa: E501
'is_blocked_by_me': (bool,), # noqa: E501
'is_blocking_me': (bool,), # noqa: E501
'is_muted': (bool,), # noqa: E501
'last_seen_at': (int,), # noqa: E501
'meta_data': (SBObject,), # noqa: E501
Expand All @@ -111,8 +110,13 @@ def openapi_types():
'preferred_languages': ([str],), # noqa: E501
'profile_url': (str,), # noqa: E501
'require_auth': (bool,), # noqa: E501
'require_auth_for_profile_image': (bool,), # noqa: E501
'metadata': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501
'is_online': (bool,), # noqa: E501
'muted_end_at': (float,), # noqa: E501
'muted_description': (str,), # noqa: E501
'restriction_info': (SendBirdRestrictionInfo,), # noqa: E501
'role': (str,), # noqa: E501
'role': (str, none_type,), # noqa: E501
'state': (str,), # noqa: E501
'user_id': (str,), # noqa: E501
}
Expand All @@ -127,8 +131,6 @@ def discriminator():
'friend_discovery_key': 'friend_discovery_key', # noqa: E501
'friend_name': 'friend_name', # noqa: E501
'is_active': 'is_active', # noqa: E501
'is_blocked_by_me': 'is_blocked_by_me', # noqa: E501
'is_blocking_me': 'is_blocking_me', # noqa: E501
'is_muted': 'is_muted', # noqa: E501
'last_seen_at': 'last_seen_at', # noqa: E501
'meta_data': 'meta_data', # noqa: E501
Expand All @@ -137,6 +139,11 @@ def discriminator():
'preferred_languages': 'preferred_languages', # noqa: E501
'profile_url': 'profile_url', # noqa: E501
'require_auth': 'require_auth', # noqa: E501
'require_auth_for_profile_image': 'require_auth_for_profile_image', # noqa: E501
'metadata': 'metadata', # noqa: E501
'is_online': 'is_online', # noqa: E501
'muted_end_at': 'muted_end_at', # noqa: E501
'muted_description': 'muted_description', # noqa: E501
'restriction_info': 'restriction_info', # noqa: E501
'role': 'role', # noqa: E501
'state': 'state', # noqa: E501
Expand Down Expand Up @@ -188,8 +195,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
friend_discovery_key (str): [optional] # noqa: E501
friend_name (str): [optional] # noqa: E501
is_active (bool): [optional] # noqa: E501
is_blocked_by_me (bool): [optional] # noqa: E501
is_blocking_me (bool): [optional] # noqa: E501
is_muted (bool): [optional] # noqa: E501
last_seen_at (int): [optional] # noqa: E501
meta_data (SBObject): [optional] # noqa: E501
Expand All @@ -198,8 +203,13 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
preferred_languages ([str]): [optional] # noqa: E501
profile_url (str): [optional] # noqa: E501
require_auth (bool): [optional] # noqa: E501
require_auth_for_profile_image (bool): [optional] # noqa: E501
metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501
is_online (bool): [optional] # noqa: E501
muted_end_at (float): [optional] # noqa: E501
muted_description (str): [optional] # noqa: E501
restriction_info (SendBirdRestrictionInfo): [optional] # noqa: E501
role (str): [optional] # noqa: E501
role (str, none_type): [optional] # noqa: E501
state (str): [optional] # noqa: E501
user_id (str): [optional] # noqa: E501
"""
Expand Down Expand Up @@ -291,8 +301,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
friend_discovery_key (str): [optional] # noqa: E501
friend_name (str): [optional] # noqa: E501
is_active (bool): [optional] # noqa: E501
is_blocked_by_me (bool): [optional] # noqa: E501
is_blocking_me (bool): [optional] # noqa: E501
is_muted (bool): [optional] # noqa: E501
last_seen_at (int): [optional] # noqa: E501
meta_data (SBObject): [optional] # noqa: E501
Expand All @@ -301,8 +309,13 @@ def __init__(self, *args, **kwargs): # noqa: E501
preferred_languages ([str]): [optional] # noqa: E501
profile_url (str): [optional] # noqa: E501
require_auth (bool): [optional] # noqa: E501
require_auth_for_profile_image (bool): [optional] # noqa: E501
metadata ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501
is_online (bool): [optional] # noqa: E501
muted_end_at (float): [optional] # noqa: E501
muted_description (str): [optional] # noqa: E501
restriction_info (SendBirdRestrictionInfo): [optional] # noqa: E501
role (str): [optional] # noqa: E501
role (str, none_type): [optional] # noqa: E501
state (str): [optional] # noqa: E501
user_id (str): [optional] # noqa: E501
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "sendbird_platform_sdk"
VERSION = "1.0.6"
VERSION = "1.0.7"
# To install the library, run the following
#
# python setup.py install
Expand Down
2 changes: 2 additions & 0 deletions test/test_gc_create_channel_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import unittest

import sendbird_platform_sdk
from sendbird_platform_sdk.model.send_bird_user import SendBirdUser
globals()['SendBirdUser'] = SendBirdUser
from sendbird_platform_sdk.model.gc_create_channel_data import GcCreateChannelData


Expand Down

0 comments on commit b6b359e

Please sign in to comment.