Skip to content

Commit 2045fef

Browse files
committed
Upgrade Python SDK to spec 1.20.10.dev27
1 parent aa161f1 commit 2045fef

9 files changed

Lines changed: 160 additions & 30 deletions

File tree

docs/ProductListing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ Name | Type | Description | Notes
3838
**purchase_count_quantity** | **int** | | [optional]
3939
**quantifiable** | **bool** | | [optional]
4040
**recurrable** | **bool** | |
41-
**refundable** | **bool** | |
41+
**refundable** | **bool** | | [optional]
4242
**seller_display_name** | **str** | |
4343
**seller_id** | **str** | |
4444
**sold_by_vrc** | **bool** | | [optional]
4545
**stackable** | **bool** | |
46-
**store_ids** | **list[str]** | |
46+
**store_ids** | **list[str]** | | [optional]
4747
**subtitle** | **str** | | [optional]
4848
**tags** | **list[str]** | | [optional]
4949
**updated** | **datetime** | | [optional]

docs/ProductListingAttribution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Attribution shown alongside a listing.
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**collaboration_id** | **str** | | [optional]
89
**creator** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional]
910
**publisher** | [**ProductListingAttributionCreator**](ProductListingAttributionCreator.md) | | [optional]
1011

docs/PropsApi.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ Name | Type | Description | Notes
316316
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
317317

318318
# **list_props**
319-
> list[Prop] list_props(author_id, n=n, offset=offset)
319+
> list[Prop] list_props(n=n, offset=offset, author_id=author_id)
320320
321321
List Props
322322

@@ -352,13 +352,13 @@ configuration.api_key['authCookie'] = 'YOUR_API_KEY'
352352
with vrchatapi.ApiClient(configuration) as api_client:
353353
# Create an instance of the API class
354354
api_instance = vrchatapi.PropsApi(api_client)
355-
author_id = 'author_id_example' # str | Must be a valid user ID.
356-
n = 60 # int | The number of objects to return. (optional) (default to 60)
355+
n = 60 # int | The number of objects to return. (optional) (default to 60)
357356
offset = 56 # int | A zero-based offset from the default object sorting from where search results start. (optional)
357+
author_id = 'author_id_example' # str | Must be a valid user ID. (optional)
358358

359359
try:
360360
# List Props
361-
api_response = api_instance.list_props(author_id, n=n, offset=offset)
361+
api_response = api_instance.list_props(n=n, offset=offset, author_id=author_id)
362362
pprint(api_response)
363363
except ApiException as e:
364364
print("Exception when calling PropsApi->list_props: %s\n" % e)
@@ -368,9 +368,9 @@ offset = 56 # int | A zero-based offset from the default object sorting from whe
368368

369369
Name | Type | Description | Notes
370370
------------- | ------------- | ------------- | -------------
371-
**author_id** | **str**| Must be a valid user ID. |
372371
**n** | **int**| The number of objects to return. | [optional] [default to 60]
373372
**offset** | **int**| A zero-based offset from the default object sorting from where search results start. | [optional]
373+
**author_id** | **str**| Must be a valid user ID. | [optional]
374374

375375
### Return type
376376

docs/StoreShelf.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,13 @@ Name | Type | Description | Notes
1010
**listing_ids** | **list[str]** | |
1111
**listings** | [**list[ProductListing]**](ProductListing.md) | | [optional]
1212
**shelf_background_image_id** | **str** | | [optional]
13+
**shelf_client_banner_image_id** | **str** | | [optional]
1314
**shelf_description** | **str** | |
1415
**shelf_icon_image_id** | **str** | | [optional]
1516
**shelf_layout** | **str** | |
17+
**shelf_mobile_hero_banner_image_id** | **str** | | [optional]
18+
**shelf_mobile_logo_image_id** | **str** | | [optional]
19+
**shelf_mobile_secondary_banner_image_id** | **str** | | [optional]
1620
**shelf_tab_background_image_id** | **str** | | [optional]
1721
**shelf_title** | **str** | |
1822
**updated_at** | **datetime** | |

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
from setuptools import setup, find_packages # noqa: H301
9393

9494
NAME = "vrchatapi"
95-
VERSION = "1.20.10.dev22"
95+
VERSION = "1.20.10.dev27"
9696
# To install the library, run the following
9797
#
9898
# python setup.py install

vrchatapi/api/props_api.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -597,22 +597,22 @@ def get_prop_publish_status_with_http_info(self, prop_id, **kwargs): # noqa: E5
597597
collection_formats=collection_formats,
598598
_request_auth=local_var_params.get('_request_auth'))
599599

600-
def list_props(self, author_id, **kwargs): # noqa: E501
600+
def list_props(self, **kwargs): # noqa: E501
601601
"""List Props # noqa: E501
602602
603603
Returns a list Prop objects. # noqa: E501
604604
This method makes a synchronous HTTP request by default. To make an
605605
asynchronous HTTP request, please pass async_req=True
606606
607-
>>> thread = api.list_props(author_id, async_req=True)
607+
>>> thread = api.list_props(async_req=True)
608608
>>> result = thread.get()
609609
610-
:param author_id: Must be a valid user ID. (required)
611-
:type author_id: str
612610
:param n: The number of objects to return.
613611
:type n: int
614612
:param offset: A zero-based offset from the default object sorting from where search results start.
615613
:type offset: int
614+
:param author_id: Must be a valid user ID.
615+
:type author_id: str
616616
:param async_req: Whether to execute the request asynchronously.
617617
:type async_req: bool, optional
618618
:param _preload_content: if False, the urllib3.HTTPResponse object will
@@ -629,24 +629,24 @@ def list_props(self, author_id, **kwargs): # noqa: E501
629629
:rtype: list[Prop]
630630
"""
631631
kwargs['_return_http_data_only'] = True
632-
return self.list_props_with_http_info(author_id, **kwargs) # noqa: E501
632+
return self.list_props_with_http_info(**kwargs) # noqa: E501
633633

634-
def list_props_with_http_info(self, author_id, **kwargs): # noqa: E501
634+
def list_props_with_http_info(self, **kwargs): # noqa: E501
635635
"""List Props # noqa: E501
636636
637637
Returns a list Prop objects. # noqa: E501
638638
This method makes a synchronous HTTP request by default. To make an
639639
asynchronous HTTP request, please pass async_req=True
640640
641-
>>> thread = api.list_props_with_http_info(author_id, async_req=True)
641+
>>> thread = api.list_props_with_http_info(async_req=True)
642642
>>> result = thread.get()
643643
644-
:param author_id: Must be a valid user ID. (required)
645-
:type author_id: str
646644
:param n: The number of objects to return.
647645
:type n: int
648646
:param offset: A zero-based offset from the default object sorting from where search results start.
649647
:type offset: int
648+
:param author_id: Must be a valid user ID.
649+
:type author_id: str
650650
:param async_req: Whether to execute the request asynchronously.
651651
:type async_req: bool, optional
652652
:param _return_http_data_only: response data without head status code
@@ -674,9 +674,9 @@ def list_props_with_http_info(self, author_id, **kwargs): # noqa: E501
674674
local_var_params = locals()
675675

676676
all_params = [
677-
'author_id',
678677
'n',
679-
'offset'
678+
'offset',
679+
'author_id'
680680
]
681681
all_params.extend(
682682
[
@@ -698,9 +698,6 @@ def list_props_with_http_info(self, author_id, **kwargs): # noqa: E501
698698
)
699699
local_var_params[key] = val
700700
del local_var_params['kwargs']
701-
# verify the required parameter 'author_id' is set
702-
if self.api_client.client_side_validation and local_var_params.get('author_id') is None: # noqa: E501
703-
raise ApiValueError("Missing the required parameter `author_id` when calling `list_props`") # noqa: E501
704701

705702
if self.api_client.client_side_validation and 'n' in local_var_params and local_var_params['n'] > 100: # noqa: E501
706703
raise ApiValueError("Invalid value for parameter `n` when calling `list_props`, must be a value less than or equal to `100`") # noqa: E501

vrchatapi/models/product_listing.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,13 +234,15 @@ def __init__(self, active=None, archived=None, attribution=None, buyer_refundabl
234234
if quantifiable is not None:
235235
self.quantifiable = quantifiable
236236
self.recurrable = recurrable
237-
self.refundable = refundable
237+
if refundable is not None:
238+
self.refundable = refundable
238239
self.seller_display_name = seller_display_name
239240
self.seller_id = seller_id
240241
if sold_by_vrc is not None:
241242
self.sold_by_vrc = sold_by_vrc
242243
self.stackable = stackable
243-
self.store_ids = store_ids
244+
if store_ids is not None:
245+
self.store_ids = store_ids
244246
if subtitle is not None:
245247
self.subtitle = subtitle
246248
if tags is not None:
@@ -1013,8 +1015,6 @@ def refundable(self, refundable):
10131015
:param refundable: The refundable of this ProductListing. # noqa: E501
10141016
:type refundable: bool
10151017
"""
1016-
if self.local_vars_configuration.client_side_validation and refundable is None: # noqa: E501
1017-
raise ValueError("Invalid value for `refundable`, must not be `None`") # noqa: E501
10181018

10191019
self._refundable = refundable
10201020

@@ -1126,8 +1126,6 @@ def store_ids(self, store_ids):
11261126
:param store_ids: The store_ids of this ProductListing. # noqa: E501
11271127
:type store_ids: list[str]
11281128
"""
1129-
if self.local_vars_configuration.client_side_validation and store_ids is None: # noqa: E501
1130-
raise ValueError("Invalid value for `store_ids`, must not be `None`") # noqa: E501
11311129

11321130
self._store_ids = store_ids
11331131

vrchatapi/models/product_listing_attribution.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,30 +36,56 @@ class ProductListingAttribution(object):
3636
and the value is json key in definition.
3737
"""
3838
openapi_types = {
39+
'collaboration_id': 'str',
3940
'creator': 'ProductListingAttributionCreator',
4041
'publisher': 'ProductListingAttributionCreator'
4142
}
4243

4344
attribute_map = {
45+
'collaboration_id': 'collaborationId',
4446
'creator': 'creator',
4547
'publisher': 'publisher'
4648
}
4749

48-
def __init__(self, creator=None, publisher=None, local_vars_configuration=None): # noqa: E501
50+
def __init__(self, collaboration_id=None, creator=None, publisher=None, local_vars_configuration=None): # noqa: E501
4951
"""ProductListingAttribution - a model defined in OpenAPI""" # noqa: E501
5052
if local_vars_configuration is None:
5153
local_vars_configuration = Configuration.get_default_copy()
5254
self.local_vars_configuration = local_vars_configuration
5355

56+
self._collaboration_id = None
5457
self._creator = None
5558
self._publisher = None
5659
self.discriminator = None
5760

61+
if collaboration_id is not None:
62+
self.collaboration_id = collaboration_id
5863
if creator is not None:
5964
self.creator = creator
6065
if publisher is not None:
6166
self.publisher = publisher
6267

68+
@property
69+
def collaboration_id(self):
70+
"""Gets the collaboration_id of this ProductListingAttribution. # noqa: E501
71+
72+
73+
:return: The collaboration_id of this ProductListingAttribution. # noqa: E501
74+
:rtype: str
75+
"""
76+
return self._collaboration_id
77+
78+
@collaboration_id.setter
79+
def collaboration_id(self, collaboration_id):
80+
"""Sets the collaboration_id of this ProductListingAttribution.
81+
82+
83+
:param collaboration_id: The collaboration_id of this ProductListingAttribution. # noqa: E501
84+
:type collaboration_id: str
85+
"""
86+
87+
self._collaboration_id = collaboration_id
88+
6389
@property
6490
def creator(self):
6591
"""Gets the creator of this ProductListingAttribution. # noqa: E501

0 commit comments

Comments
 (0)