Skip to content

Commit b6fb7e2

Browse files
feat(plays): add utcOffset param to plays by date
1 parent 507c2d5 commit b6fb7e2

154 files changed

Lines changed: 179 additions & 169 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ This is an API for query various college basketball datasets and analytics. API
33

44
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
55

6-
- API version: 1.21.3
7-
- Package version: 1.21.3
6+
- API version: 1.22.0
7+
- Package version: 1.22.0
88
- Generator version: 7.12.0
99
- Build package: org.openapitools.codegen.languages.PythonPydanticV1ClientCodegen
1010

@@ -16,9 +16,9 @@ Python 3.7+
1616
### pip install
1717

1818
```sh
19-
pip install cbbd@1.21.3
19+
pip install cbbd@1.22.0
2020
```
21-
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.21.3`)
21+
(you may need to run `pip` with root permission: `sudo pip install cbbd@1.22.0`)
2222

2323
Then import the package:
2424
```python

cbbd/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
99
10-
The version of the OpenAPI document: 1.21.3
10+
The version of the OpenAPI document: 1.22.0
1111
Contact: admin@collegefootballdata.com
1212
Generated by OpenAPI Generator (https://openapi-generator.tech)
1313
1414
Do not edit the class manually.
1515
""" # noqa: E501
1616

1717

18-
__version__ = "1.21.3"
18+
__version__ = "1.22.0"
1919

2020
# import apis into sdk package
2121
from cbbd.api.conferences_api import ConferencesApi

cbbd/api/conferences_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/draft_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/games_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/lines_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/lineups_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/plays_api.py

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -331,20 +331,22 @@ def get_plays_with_http_info(self, game_id : Annotated[StrictInt, Field(..., des
331331
_request_auth=_params.get('_request_auth'))
332332

333333
@validate_arguments
334-
def get_plays_by_date(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
334+
def get_plays_by_date(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, utc_offset : Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Optional UTC offset in hours to adjust the date range")] = None, **kwargs) -> List[PlayInfo]: # noqa: E501
335335
"""get_plays_by_date # noqa: E501
336336
337337
Retrieve all plays for a given UTC date # noqa: E501
338338
This method makes a synchronous HTTP request by default. To make an
339339
asynchronous HTTP request, please pass async_req=True
340340
341-
>>> thread = api.get_plays_by_date(var_date, shooting_plays_only, async_req=True)
341+
>>> thread = api.get_plays_by_date(var_date, shooting_plays_only, utc_offset, async_req=True)
342342
>>> result = thread.get()
343343
344344
:param var_date: Required date filter in ISO 8601 format (YYYY-MM-DD) (required)
345345
:type var_date: datetime
346346
:param shooting_plays_only: Optional filter to only return shooting plays
347347
:type shooting_plays_only: bool
348+
:param utc_offset: Optional UTC offset in hours to adjust the date range
349+
:type utc_offset: float
348350
:param async_req: Whether to execute the request asynchronously.
349351
:type async_req: bool, optional
350352
:param _request_timeout: timeout setting for this request.
@@ -360,23 +362,25 @@ def get_plays_by_date(self, var_date : Annotated[datetime, Field(..., descriptio
360362
if '_preload_content' in kwargs:
361363
message = "Error! Please call the get_plays_by_date_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501
362364
raise ValueError(message)
363-
return self.get_plays_by_date_with_http_info(var_date, shooting_plays_only, **kwargs) # noqa: E501
365+
return self.get_plays_by_date_with_http_info(var_date, shooting_plays_only, utc_offset, **kwargs) # noqa: E501
364366

365367
@validate_arguments
366-
def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, **kwargs) -> ApiResponse: # noqa: E501
368+
def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(..., description="Required date filter in ISO 8601 format (YYYY-MM-DD)")], shooting_plays_only : Annotated[Optional[StrictBool], Field(description="Optional filter to only return shooting plays")] = None, utc_offset : Annotated[Optional[Union[StrictFloat, StrictInt]], Field(description="Optional UTC offset in hours to adjust the date range")] = None, **kwargs) -> ApiResponse: # noqa: E501
367369
"""get_plays_by_date # noqa: E501
368370
369371
Retrieve all plays for a given UTC date # noqa: E501
370372
This method makes a synchronous HTTP request by default. To make an
371373
asynchronous HTTP request, please pass async_req=True
372374
373-
>>> thread = api.get_plays_by_date_with_http_info(var_date, shooting_plays_only, async_req=True)
375+
>>> thread = api.get_plays_by_date_with_http_info(var_date, shooting_plays_only, utc_offset, async_req=True)
374376
>>> result = thread.get()
375377
376378
:param var_date: Required date filter in ISO 8601 format (YYYY-MM-DD) (required)
377379
:type var_date: datetime
378380
:param shooting_plays_only: Optional filter to only return shooting plays
379381
:type shooting_plays_only: bool
382+
:param utc_offset: Optional UTC offset in hours to adjust the date range
383+
:type utc_offset: float
380384
:param async_req: Whether to execute the request asynchronously.
381385
:type async_req: bool, optional
382386
:param _preload_content: if False, the ApiResponse.data will
@@ -406,7 +410,8 @@ def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(
406410

407411
_all_params = [
408412
'var_date',
409-
'shooting_plays_only'
413+
'shooting_plays_only',
414+
'utc_offset'
410415
]
411416
_all_params.extend(
412417
[
@@ -446,6 +451,9 @@ def get_plays_by_date_with_http_info(self, var_date : Annotated[datetime, Field(
446451
if _params.get('shooting_plays_only') is not None: # noqa: E501
447452
_query_params.append(('shootingPlaysOnly', _params['shooting_plays_only']))
448453

454+
if _params.get('utc_offset') is not None: # noqa: E501
455+
_query_params.append(('utcOffset', _params['utc_offset']))
456+
449457
# process the header parameters
450458
_header_params = dict(_params.get('_headers', {}))
451459
# process the form parameters

cbbd/api/rankings_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/ratings_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This is an API for query various college basketball datasets and analytics. API keys can be acquired by registering on the CollegeBasketballData.com website.
77
8-
The version of the OpenAPI document: 1.21.3
8+
The version of the OpenAPI document: 1.22.0
99
Contact: admin@collegefootballdata.com
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)