Skip to content

Commit 3fb8cd1

Browse files
fix(stats): changing offense/defense to teamStats/opponentStats
1 parent 2f85253 commit 3fb8cd1

File tree

127 files changed

+167
-167
lines changed

Some content is hidden

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

127 files changed

+167
-167
lines changed

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ This API is in limited Beta for Patreon subscribers. It may have bugs and is sub
33

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

6-
- API version: 1.15.1
7-
- Package version: 1.15.1
6+
- API version: 1.15.2
7+
- Package version: 1.15.2
88
- Generator version: 7.11.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 [email protected].1
19+
pip install [email protected].2
2020
```
21-
(you may need to run `pip` with root permission: `sudo pip install [email protected].1`)
21+
(you may need to run `pip` with root permission: `sudo pip install [email protected].2`)
2222

2323
Then import the package:
2424
```python

cbbd/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@
77
88
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
99
10-
The version of the OpenAPI document: 1.15.1
10+
The version of the OpenAPI document: 1.15.2
1111
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.15.1"
18+
__version__ = "1.15.2"
1919

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

cbbd/api/conferences_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/draft_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/games_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/lines_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/plays_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/rankings_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/ratings_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/recruiting_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/stats_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/teams_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api/venues_api.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/api_client.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -78,7 +78,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7878
self.default_headers[header_name] = header_value
7979
self.cookie = cookie
8080
# Set default User-Agent.
81-
self.user_agent = 'OpenAPI-Generator/1.15.1/python'
81+
self.user_agent = 'OpenAPI-Generator/1.15.2/python'
8282
self.client_side_validation = configuration.client_side_validation
8383

8484
def __enter__(self):

cbbd/configuration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -376,8 +376,8 @@ def to_debug_report(self):
376376
return "Python SDK Debug Report:\n"\
377377
"OS: {env}\n"\
378378
"Python Version: {pyversion}\n"\
379-
"Version of the API: 1.15.1\n"\
380-
"SDK Package Version: 1.15.1".\
379+
"Version of the API: 1.15.2\n"\
380+
"SDK Package Version: 1.15.2".\
381381
format(env=sys.platform, pyversion=sys.version)
382382

383383
def get_host_settings(self):

cbbd/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
88
9-
The version of the OpenAPI document: 1.15.1
9+
The version of the OpenAPI document: 1.15.2
1010
1111
Generated by OpenAPI Generator (https://openapi-generator.tech)
1212

cbbd/models/adjusted_efficiency_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/adjusted_efficiency_info_rankings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/conference_history.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/conference_history_teams_inner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/conference_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/draft_pick.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/draft_position.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/draft_team.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_box_score_players.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_box_score_players_players_inner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_box_score_team.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111
@@ -46,9 +46,9 @@ class GameBoxScoreTeam(BaseModel):
4646
notes: Optional[StrictStr] = Field(...)
4747
game_minutes: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="gameMinutes")
4848
pace: Optional[Union[StrictFloat, StrictInt]] = Field(...)
49-
offense: GameBoxScoreTeamStats = Field(...)
50-
defense: GameBoxScoreTeamStats = Field(...)
51-
__properties = ["gameId", "season", "seasonLabel", "seasonType", "startDate", "startTimeTbd", "teamId", "team", "conference", "opponentId", "opponent", "opponentConference", "neutralSite", "conferenceGame", "gameType", "notes", "gameMinutes", "pace", "offense", "defense"]
49+
team_stats: GameBoxScoreTeamStats = Field(default=..., alias="teamStats")
50+
opponent_stats: GameBoxScoreTeamStats = Field(default=..., alias="opponentStats")
51+
__properties = ["gameId", "season", "seasonLabel", "seasonType", "startDate", "startTimeTbd", "teamId", "team", "conference", "opponentId", "opponent", "opponentConference", "neutralSite", "conferenceGame", "gameType", "notes", "gameMinutes", "pace", "teamStats", "opponentStats"]
5252

5353
class Config:
5454
"""Pydantic configuration"""
@@ -74,12 +74,12 @@ def to_dict(self):
7474
exclude={
7575
},
7676
exclude_none=True)
77-
# override the default output from pydantic by calling `to_dict()` of offense
78-
if self.offense:
79-
_dict['offense'] = self.offense.to_dict()
80-
# override the default output from pydantic by calling `to_dict()` of defense
81-
if self.defense:
82-
_dict['defense'] = self.defense.to_dict()
77+
# override the default output from pydantic by calling `to_dict()` of team_stats
78+
if self.team_stats:
79+
_dict['teamStats'] = self.team_stats.to_dict()
80+
# override the default output from pydantic by calling `to_dict()` of opponent_stats
81+
if self.opponent_stats:
82+
_dict['opponentStats'] = self.opponent_stats.to_dict()
8383
# set to None if conference (nullable) is None
8484
# and __fields_set__ contains the field
8585
if self.conference is None and "conference" in self.__fields_set__:
@@ -140,8 +140,8 @@ def from_dict(cls, obj: dict) -> GameBoxScoreTeam:
140140
"notes": obj.get("notes"),
141141
"game_minutes": obj.get("gameMinutes"),
142142
"pace": obj.get("pace"),
143-
"offense": GameBoxScoreTeamStats.from_dict(obj.get("offense")) if obj.get("offense") is not None else None,
144-
"defense": GameBoxScoreTeamStats.from_dict(obj.get("defense")) if obj.get("defense") is not None else None
143+
"team_stats": GameBoxScoreTeamStats.from_dict(obj.get("teamStats")) if obj.get("teamStats") is not None else None,
144+
"opponent_stats": GameBoxScoreTeamStats.from_dict(obj.get("opponentStats")) if obj.get("opponentStats") is not None else None
145145
})
146146
return _obj
147147

cbbd/models/game_box_score_team_stats.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_box_score_team_stats_points.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_line_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_lines.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

cbbd/models/game_media_info.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
This API is in limited Beta for Patreon subscribers. It may have bugs and is subject to changes. API keys can be acquired from the CollegeFootballData.com website.
77
8-
The version of the OpenAPI document: 1.15.1
8+
The version of the OpenAPI document: 1.15.2
99
1010
Generated by OpenAPI Generator (https://openapi-generator.tech)
1111

0 commit comments

Comments
 (0)