Skip to content

Commit

Permalink
Upgrade Python SDK to spec 1.18.1
Browse files Browse the repository at this point in the history
  • Loading branch information
VRCCat committed Sep 11, 2024
1 parent 5f9f321 commit ee7f6f1
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 36 deletions.
4 changes: 2 additions & 2 deletions docs/Group.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Name | Type | Description | Notes
**member_count_synced_at** | **datetime** | | [optional]
**is_verified** | **bool** | | [optional] [default to False]
**join_state** | [**GroupJoinState**](GroupJoinState.md) | | [optional]
**tags** | **list[str]** | | [optional]
**tags** | **list[str]** | | [optional]
**transfer_target_id** | **str** | A users unique ID, usually in the form of `usr_c1644b5b-3ca4-45b4-97c6-a2a0de70d469`. Legacy players can have old IDs in the form of `8JoV9XEdpo`. The ID can never be changed. | [optional]
**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional]
**galleries** | [**list[GroupGallery]**](GroupGallery.md) | | [optional]
**created_at** | **datetime** | | [optional]
**updated_at** | **datetime** | | [optional]
**last_post_created_at** | **datetime** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/UserExists.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Status object representing if a queried user by username or userId exists or not
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**user_exists** | **bool** | Status if a user exist with that username or userId. | [default to False]
**name_ok** | **bool** | Is the username valid? | [default to False]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
2 changes: 1 addition & 1 deletion docs/UserSubscription.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**tier** | **float** | |
**active** | **bool** | | [default to True]
**status** | [**TransactionStatus**](TransactionStatus.md) | |
**starts** | **datetime** | | [optional]
**starts** | **str** | | [optional]
**expires** | **datetime** | |
**created_at** | **datetime** | |
**updated_at** | **datetime** | |
Expand Down
30 changes: 15 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"@openapitools/openapi-generator-cli": "^2.13.4"
"@openapitools/openapi-generator-cli": "^2.13.5"
}
}
7 changes: 1 addition & 6 deletions vrchatapi/models/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,8 +174,7 @@ def __init__(self, id=None, name=None, short_code=None, discriminator=None, desc
self.created_at = created_at
if updated_at is not None:
self.updated_at = updated_at
if last_post_created_at is not None:
self.last_post_created_at = last_post_created_at
self.last_post_created_at = last_post_created_at
if online_member_count is not None:
self.online_member_count = online_member_count
if membership_status is not None:
Expand Down Expand Up @@ -568,7 +567,6 @@ def join_state(self, join_state):
def tags(self):
"""Gets the tags of this Group. # noqa: E501
# noqa: E501
:return: The tags of this Group. # noqa: E501
:rtype: list[str]
Expand All @@ -579,7 +577,6 @@ def tags(self):
def tags(self, tags):
"""Sets the tags of this Group.
# noqa: E501
:param tags: The tags of this Group. # noqa: E501
:type tags: list[str]
Expand Down Expand Up @@ -614,7 +611,6 @@ def transfer_target_id(self, transfer_target_id):
def galleries(self):
"""Gets the galleries of this Group. # noqa: E501
# noqa: E501
:return: The galleries of this Group. # noqa: E501
:rtype: list[GroupGallery]
Expand All @@ -625,7 +621,6 @@ def galleries(self):
def galleries(self, galleries):
"""Sets the galleries of this Group.
# noqa: E501
:param galleries: The galleries of this Group. # noqa: E501
:type galleries: list[GroupGallery]
Expand Down
6 changes: 2 additions & 4 deletions vrchatapi/models/group_my_member.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted
self.user_id = user_id
if role_ids is not None:
self.role_ids = role_ids
if accepted_by_display_name is not None:
self.accepted_by_display_name = accepted_by_display_name
self.accepted_by_display_name = accepted_by_display_name
if accepted_by_id is not None:
self.accepted_by_id = accepted_by_id
if created_at is not None:
Expand All @@ -137,8 +136,7 @@ def __init__(self, id=None, group_id=None, user_id=None, role_ids=None, accepted
self.has2_fa = has2_fa
if has_joined_from_purchase is not None:
self.has_joined_from_purchase = has_joined_from_purchase
if last_post_read_at is not None:
self.last_post_read_at = last_post_read_at
self.last_post_read_at = last_post_read_at
if m_role_ids is not None:
self.m_role_ids = m_role_ids
if permissions is not None:
Expand Down
3 changes: 2 additions & 1 deletion vrchatapi/models/instance_region.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ class InstanceRegion(object):
USE = "use"
EU = "eu"
JP = "jp"
UNKNOWN = "unknown"

allowable_values = [US, USE, EU, JP] # noqa: E501
allowable_values = [US, USE, EU, JP, UNKNOWN] # noqa: E501

"""
Attributes:
Expand Down
35 changes: 32 additions & 3 deletions vrchatapi/models/user_exists.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,27 @@ class UserExists(object):
and the value is json key in definition.
"""
openapi_types = {
'user_exists': 'bool'
'user_exists': 'bool',
'name_ok': 'bool'
}

attribute_map = {
'user_exists': 'userExists'
'user_exists': 'userExists',
'name_ok': 'nameOk'
}

def __init__(self, user_exists=False, local_vars_configuration=None): # noqa: E501
def __init__(self, user_exists=False, name_ok=False, local_vars_configuration=None): # noqa: E501
"""UserExists - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration.get_default_copy()
self.local_vars_configuration = local_vars_configuration

self._user_exists = None
self._name_ok = None
self.discriminator = None

self.user_exists = user_exists
self.name_ok = name_ok

@property
def user_exists(self):
Expand All @@ -79,6 +83,31 @@ def user_exists(self, user_exists):

self._user_exists = user_exists

@property
def name_ok(self):
"""Gets the name_ok of this UserExists. # noqa: E501
Is the username valid? # noqa: E501
:return: The name_ok of this UserExists. # noqa: E501
:rtype: bool
"""
return self._name_ok

@name_ok.setter
def name_ok(self, name_ok):
"""Sets the name_ok of this UserExists.
Is the username valid? # noqa: E501
:param name_ok: The name_ok of this UserExists. # noqa: E501
:type name_ok: bool
"""
if self.local_vars_configuration.client_side_validation and name_ok is None: # noqa: E501
raise ValueError("Invalid value for `name_ok`, must not be `None`") # noqa: E501

self._name_ok = name_ok

def to_dict(self, serialize=False):
"""Returns the model properties as a dict"""
result = {}
Expand Down
6 changes: 3 additions & 3 deletions vrchatapi/models/user_subscription.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class UserSubscription(object):
'tier': 'float',
'active': 'bool',
'status': 'TransactionStatus',
'starts': 'datetime',
'starts': 'str',
'expires': 'datetime',
'created_at': 'datetime',
'updated_at': 'datetime',
Expand Down Expand Up @@ -361,7 +361,7 @@ def starts(self):
:return: The starts of this UserSubscription. # noqa: E501
:rtype: datetime
:rtype: str
"""
return self._starts

Expand All @@ -371,7 +371,7 @@ def starts(self, starts):
:param starts: The starts of this UserSubscription. # noqa: E501
:type starts: datetime
:type starts: str
"""

self._starts = starts
Expand Down

0 comments on commit ee7f6f1

Please sign in to comment.