victorycode-sdk 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. victorycode_sdk/__init__.py +260 -0
  2. victorycode_sdk/api/__init__.py +13 -0
  3. victorycode_sdk/api/authentication_api.py +285 -0
  4. victorycode_sdk/api/classification_api.py +1203 -0
  5. victorycode_sdk/api/game_recap_api.py +1395 -0
  6. victorycode_sdk/api/games_api.py +1497 -0
  7. victorycode_sdk/api/mascot_api.py +1203 -0
  8. victorycode_sdk/api/plays_events_api.py +1057 -0
  9. victorycode_sdk/api/teams_api.py +1220 -0
  10. victorycode_sdk/api/uploads_api.py +872 -0
  11. victorycode_sdk/api/venue_api.py +1203 -0
  12. victorycode_sdk/api_client.py +833 -0
  13. victorycode_sdk/api_response.py +21 -0
  14. victorycode_sdk/configuration.py +698 -0
  15. victorycode_sdk/exceptions.py +218 -0
  16. victorycode_sdk/models/__init__.py +114 -0
  17. victorycode_sdk/models/add_video_to_game_with_s3_link_dto.py +90 -0
  18. victorycode_sdk/models/address.py +96 -0
  19. victorycode_sdk/models/address_dto.py +96 -0
  20. victorycode_sdk/models/bad_request_error_response_dto.py +90 -0
  21. victorycode_sdk/models/classification.py +90 -0
  22. victorycode_sdk/models/client_create_game_with_video_url_dto.py +130 -0
  23. victorycode_sdk/models/complete_multipart_upload_dto.py +97 -0
  24. victorycode_sdk/models/complete_multipart_upload_response.py +90 -0
  25. victorycode_sdk/models/complete_multipart_upload_response_dto.py +94 -0
  26. victorycode_sdk/models/completed_part_dto.py +90 -0
  27. victorycode_sdk/models/conflict_error_response_dto.py +90 -0
  28. victorycode_sdk/models/coordinates.py +90 -0
  29. victorycode_sdk/models/coordinates_dto.py +90 -0
  30. victorycode_sdk/models/create_classification_dto.py +90 -0
  31. victorycode_sdk/models/create_mascot_dto.py +90 -0
  32. victorycode_sdk/models/create_team_dto.py +108 -0
  33. victorycode_sdk/models/create_team_response_dto.py +106 -0
  34. victorycode_sdk/models/create_venue_dto.py +102 -0
  35. victorycode_sdk/models/defense_section_dto.py +101 -0
  36. victorycode_sdk/models/defense_stats_dto.py +106 -0
  37. victorycode_sdk/models/defense_totals_dto.py +100 -0
  38. victorycode_sdk/models/delete_response_dto.py +90 -0
  39. victorycode_sdk/models/down_efficiency_dto.py +90 -0
  40. victorycode_sdk/models/fetch_team_response_dto.py +117 -0
  41. victorycode_sdk/models/fumble_section_dto.py +101 -0
  42. victorycode_sdk/models/fumble_stats_dto.py +98 -0
  43. victorycode_sdk/models/fumble_totals_dto.py +92 -0
  44. victorycode_sdk/models/game_all_play_list_item_dto.py +106 -0
  45. victorycode_sdk/models/game_box_score_meta_dto.py +104 -0
  46. victorycode_sdk/models/game_box_score_response_dto.py +98 -0
  47. victorycode_sdk/models/game_box_score_teams_dto.py +97 -0
  48. victorycode_sdk/models/game_details_response.py +108 -0
  49. victorycode_sdk/models/game_recap_scoring_summary_pro_response.py +101 -0
  50. victorycode_sdk/models/game_recap_scoring_summary_response.py +101 -0
  51. victorycode_sdk/models/game_recap_team_stats_response.py +101 -0
  52. victorycode_sdk/models/game_score_response.py +101 -0
  53. victorycode_sdk/models/game_scoring_summary_data_dto.py +104 -0
  54. victorycode_sdk/models/get_parts_presign_url_response.py +88 -0
  55. victorycode_sdk/models/get_parts_presign_url_response_dto.py +94 -0
  56. victorycode_sdk/models/initiate_multipart_upload_dto.py +92 -0
  57. victorycode_sdk/models/initiate_multipart_upload_response.py +88 -0
  58. victorycode_sdk/models/initiate_multipart_upload_response_dto.py +94 -0
  59. victorycode_sdk/models/interception_section_dto.py +101 -0
  60. victorycode_sdk/models/interception_stats_dto.py +98 -0
  61. victorycode_sdk/models/interception_totals_dto.py +92 -0
  62. victorycode_sdk/models/kicking_section_dto.py +101 -0
  63. victorycode_sdk/models/kicking_stats_dto.py +106 -0
  64. victorycode_sdk/models/kicking_totals_dto.py +100 -0
  65. victorycode_sdk/models/line_of_scrimmage_dto.py +90 -0
  66. victorycode_sdk/models/list_classification_paginated_response_dto.py +101 -0
  67. victorycode_sdk/models/list_game_all_plays_response_dto.py +103 -0
  68. victorycode_sdk/models/list_games_paginated_response_dto.py +101 -0
  69. victorycode_sdk/models/list_mascot_paginated_response_dto.py +101 -0
  70. victorycode_sdk/models/list_play_clips_response_dto.py +105 -0
  71. victorycode_sdk/models/list_team_paginated_response_dto.py +101 -0
  72. victorycode_sdk/models/list_venue_paginated_response_dto.py +101 -0
  73. victorycode_sdk/models/list_video_paginated_response_dto.py +103 -0
  74. victorycode_sdk/models/mascot.py +90 -0
  75. victorycode_sdk/models/mascot_response_dto.py +96 -0
  76. victorycode_sdk/models/not_found_error_response_dto.py +90 -0
  77. victorycode_sdk/models/offense_dto.py +92 -0
  78. victorycode_sdk/models/passing_dto.py +98 -0
  79. victorycode_sdk/models/passing_section_dto.py +101 -0
  80. victorycode_sdk/models/passing_stats_dto.py +117 -0
  81. victorycode_sdk/models/passing_totals_dto.py +111 -0
  82. victorycode_sdk/models/period_score_dto.py +94 -0
  83. victorycode_sdk/models/play_attributes_list_dto.py +106 -0
  84. victorycode_sdk/models/play_clip_list_details_dto.py +104 -0
  85. victorycode_sdk/models/play_clip_list_item_dto.py +104 -0
  86. victorycode_sdk/models/pro_scoring_play_dto.py +202 -0
  87. victorycode_sdk/models/receiving_section_dto.py +101 -0
  88. victorycode_sdk/models/receiving_stats_dto.py +104 -0
  89. victorycode_sdk/models/receiving_totals_dto.py +98 -0
  90. victorycode_sdk/models/red_zone_dto.py +90 -0
  91. victorycode_sdk/models/rushing_dto.py +92 -0
  92. victorycode_sdk/models/rushing_section_dto.py +101 -0
  93. victorycode_sdk/models/rushing_stats_dto.py +102 -0
  94. victorycode_sdk/models/rushing_totals_dto.py +96 -0
  95. victorycode_sdk/models/scoring_play_player_involved_dto.py +106 -0
  96. victorycode_sdk/models/scoring_summary_pro_team_dto.py +90 -0
  97. victorycode_sdk/models/single_classification_response_dto.py +94 -0
  98. victorycode_sdk/models/single_mascot_response_dto.py +94 -0
  99. victorycode_sdk/models/single_team_response_dto.py +94 -0
  100. victorycode_sdk/models/single_venue_response_dto.py +99 -0
  101. victorycode_sdk/models/single_video_response_dto.py +94 -0
  102. victorycode_sdk/models/team_basic_info_dto.py +96 -0
  103. victorycode_sdk/models/team_box_score_dto.py +139 -0
  104. victorycode_sdk/models/team_score_dto.py +109 -0
  105. victorycode_sdk/models/team_stats_dto.py +137 -0
  106. victorycode_sdk/models/token_response.py +92 -0
  107. victorycode_sdk/models/turnovers_dto.py +92 -0
  108. victorycode_sdk/models/unauthorized_error_response_dto.py +90 -0
  109. victorycode_sdk/models/update_classification_dto.py +90 -0
  110. victorycode_sdk/models/update_mascot_dto.py +90 -0
  111. victorycode_sdk/models/update_team_dto.py +108 -0
  112. victorycode_sdk/models/update_venue_dto.py +102 -0
  113. victorycode_sdk/models/venue.py +102 -0
  114. victorycode_sdk/models/video_list_item_dto.py +96 -0
  115. victorycode_sdk/py.typed +0 -0
  116. victorycode_sdk/rest.py +334 -0
  117. victorycode_sdk-1.0.0.dist-info/METADATA +288 -0
  118. victorycode_sdk-1.0.0.dist-info/RECORD +121 -0
  119. victorycode_sdk-1.0.0.dist-info/WHEEL +5 -0
  120. victorycode_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
  121. victorycode_sdk-1.0.0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,218 @@
1
+ """
2
+ Victory Code Client API
3
+
4
+ Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
8
+
9
+ Do not edit the class manually.
10
+ """ # noqa: E501
11
+
12
+
13
+ from typing import Any, Optional
14
+ from typing_extensions import Self
15
+
16
+ class OpenApiException(Exception):
17
+ """The base exception class for all OpenAPIExceptions"""
18
+
19
+
20
+ class ApiTypeError(OpenApiException, TypeError):
21
+ def __init__(self, msg, path_to_item=None, valid_classes=None,
22
+ key_type=None) -> None:
23
+ """ Raises an exception for TypeErrors
24
+
25
+ Args:
26
+ msg (str): the exception message
27
+
28
+ Keyword Args:
29
+ path_to_item (list): a list of keys an indices to get to the
30
+ current_item
31
+ None if unset
32
+ valid_classes (tuple): the primitive classes that current item
33
+ should be an instance of
34
+ None if unset
35
+ key_type (bool): False if our value is a value in a dict
36
+ True if it is a key in a dict
37
+ False if our item is an item in a list
38
+ None if unset
39
+ """
40
+ self.path_to_item = path_to_item
41
+ self.valid_classes = valid_classes
42
+ self.key_type = key_type
43
+ full_msg = msg
44
+ if path_to_item:
45
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
46
+ super(ApiTypeError, self).__init__(full_msg)
47
+
48
+
49
+ class ApiValueError(OpenApiException, ValueError):
50
+ def __init__(self, msg, path_to_item=None) -> None:
51
+ """
52
+ Args:
53
+ msg (str): the exception message
54
+
55
+ Keyword Args:
56
+ path_to_item (list) the path to the exception in the
57
+ received_data dict. None if unset
58
+ """
59
+
60
+ self.path_to_item = path_to_item
61
+ full_msg = msg
62
+ if path_to_item:
63
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
64
+ super(ApiValueError, self).__init__(full_msg)
65
+
66
+
67
+ class ApiAttributeError(OpenApiException, AttributeError):
68
+ def __init__(self, msg, path_to_item=None) -> None:
69
+ """
70
+ Raised when an attribute reference or assignment fails.
71
+
72
+ Args:
73
+ msg (str): the exception message
74
+
75
+ Keyword Args:
76
+ path_to_item (None/list) the path to the exception in the
77
+ received_data dict
78
+ """
79
+ self.path_to_item = path_to_item
80
+ full_msg = msg
81
+ if path_to_item:
82
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
83
+ super(ApiAttributeError, self).__init__(full_msg)
84
+
85
+
86
+ class ApiKeyError(OpenApiException, KeyError):
87
+ def __init__(self, msg, path_to_item=None) -> None:
88
+ """
89
+ Args:
90
+ msg (str): the exception message
91
+
92
+ Keyword Args:
93
+ path_to_item (None/list) the path to the exception in the
94
+ received_data dict
95
+ """
96
+ self.path_to_item = path_to_item
97
+ full_msg = msg
98
+ if path_to_item:
99
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
100
+ super(ApiKeyError, self).__init__(full_msg)
101
+
102
+
103
+ class ApiException(OpenApiException):
104
+
105
+ def __init__(
106
+ self,
107
+ status=None,
108
+ reason=None,
109
+ http_resp=None,
110
+ *,
111
+ body: Optional[str] = None,
112
+ data: Optional[Any] = None,
113
+ ) -> None:
114
+ self.status = status
115
+ self.reason = reason
116
+ self.body = body
117
+ self.data = data
118
+ self.headers = None
119
+
120
+ if http_resp:
121
+ if self.status is None:
122
+ self.status = http_resp.status
123
+ if self.reason is None:
124
+ self.reason = http_resp.reason
125
+ if self.body is None:
126
+ try:
127
+ self.body = http_resp.data.decode('utf-8')
128
+ except Exception:
129
+ pass
130
+ self.headers = http_resp.headers
131
+
132
+ @classmethod
133
+ def from_response(
134
+ cls,
135
+ *,
136
+ http_resp,
137
+ body: Optional[str],
138
+ data: Optional[Any],
139
+ ) -> Self:
140
+ if http_resp.status == 400:
141
+ raise BadRequestException(http_resp=http_resp, body=body, data=data)
142
+
143
+ if http_resp.status == 401:
144
+ raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
145
+
146
+ if http_resp.status == 403:
147
+ raise ForbiddenException(http_resp=http_resp, body=body, data=data)
148
+
149
+ if http_resp.status == 404:
150
+ raise NotFoundException(http_resp=http_resp, body=body, data=data)
151
+
152
+ # Added new conditions for 409 and 422
153
+ if http_resp.status == 409:
154
+ raise ConflictException(http_resp=http_resp, body=body, data=data)
155
+
156
+ if http_resp.status == 422:
157
+ raise UnprocessableEntityException(http_resp=http_resp, body=body, data=data)
158
+
159
+ if 500 <= http_resp.status <= 599:
160
+ raise ServiceException(http_resp=http_resp, body=body, data=data)
161
+ raise ApiException(http_resp=http_resp, body=body, data=data)
162
+
163
+ def __str__(self):
164
+ """Custom error messages for exception"""
165
+ error_message = "({0})\n"\
166
+ "Reason: {1}\n".format(self.status, self.reason)
167
+ if self.headers:
168
+ error_message += "HTTP response headers: {0}\n".format(
169
+ self.headers)
170
+
171
+ if self.body:
172
+ error_message += "HTTP response body: {0}\n".format(self.body)
173
+
174
+ if self.data:
175
+ error_message += "HTTP response data: {0}\n".format(self.data)
176
+
177
+ return error_message
178
+
179
+
180
+ class BadRequestException(ApiException):
181
+ pass
182
+
183
+
184
+ class NotFoundException(ApiException):
185
+ pass
186
+
187
+
188
+ class UnauthorizedException(ApiException):
189
+ pass
190
+
191
+
192
+ class ForbiddenException(ApiException):
193
+ pass
194
+
195
+
196
+ class ServiceException(ApiException):
197
+ pass
198
+
199
+
200
+ class ConflictException(ApiException):
201
+ """Exception for HTTP 409 Conflict."""
202
+ pass
203
+
204
+
205
+ class UnprocessableEntityException(ApiException):
206
+ """Exception for HTTP 422 Unprocessable Entity."""
207
+ pass
208
+
209
+
210
+ def render_path(path_to_item):
211
+ """Returns a string representation of a path"""
212
+ result = ""
213
+ for pth in path_to_item:
214
+ if isinstance(pth, int):
215
+ result += "[{0}]".format(pth)
216
+ else:
217
+ result += "['{0}']".format(pth)
218
+ return result
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ Victory Code Client API
6
+
7
+ Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
8
+
9
+ The version of the OpenAPI document: 1.0
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+ # import models into model package
16
+ from victorycode_sdk.models.add_video_to_game_with_s3_link_dto import AddVideoToGameWithS3LinkDto
17
+ from victorycode_sdk.models.address import Address
18
+ from victorycode_sdk.models.address_dto import AddressDto
19
+ from victorycode_sdk.models.bad_request_error_response_dto import BadRequestErrorResponseDto
20
+ from victorycode_sdk.models.classification import Classification
21
+ from victorycode_sdk.models.client_create_game_with_video_url_dto import ClientCreateGameWithVideoUrlDto
22
+ from victorycode_sdk.models.complete_multipart_upload_dto import CompleteMultipartUploadDto
23
+ from victorycode_sdk.models.complete_multipart_upload_response import CompleteMultipartUploadResponse
24
+ from victorycode_sdk.models.complete_multipart_upload_response_dto import CompleteMultipartUploadResponseDto
25
+ from victorycode_sdk.models.completed_part_dto import CompletedPartDto
26
+ from victorycode_sdk.models.conflict_error_response_dto import ConflictErrorResponseDto
27
+ from victorycode_sdk.models.coordinates import Coordinates
28
+ from victorycode_sdk.models.coordinates_dto import CoordinatesDto
29
+ from victorycode_sdk.models.create_classification_dto import CreateClassificationDto
30
+ from victorycode_sdk.models.create_mascot_dto import CreateMascotDto
31
+ from victorycode_sdk.models.create_team_dto import CreateTeamDto
32
+ from victorycode_sdk.models.create_team_response_dto import CreateTeamResponseDto
33
+ from victorycode_sdk.models.create_venue_dto import CreateVenueDto
34
+ from victorycode_sdk.models.defense_section_dto import DefenseSectionDto
35
+ from victorycode_sdk.models.defense_stats_dto import DefenseStatsDto
36
+ from victorycode_sdk.models.defense_totals_dto import DefenseTotalsDto
37
+ from victorycode_sdk.models.delete_response_dto import DeleteResponseDto
38
+ from victorycode_sdk.models.down_efficiency_dto import DownEfficiencyDto
39
+ from victorycode_sdk.models.fetch_team_response_dto import FetchTeamResponseDto
40
+ from victorycode_sdk.models.fumble_section_dto import FumbleSectionDto
41
+ from victorycode_sdk.models.fumble_stats_dto import FumbleStatsDto
42
+ from victorycode_sdk.models.fumble_totals_dto import FumbleTotalsDto
43
+ from victorycode_sdk.models.game_all_play_list_item_dto import GameAllPlayListItemDto
44
+ from victorycode_sdk.models.game_box_score_meta_dto import GameBoxScoreMetaDto
45
+ from victorycode_sdk.models.game_box_score_response_dto import GameBoxScoreResponseDto
46
+ from victorycode_sdk.models.game_box_score_teams_dto import GameBoxScoreTeamsDto
47
+ from victorycode_sdk.models.game_details_response import GameDetailsResponse
48
+ from victorycode_sdk.models.game_recap_scoring_summary_pro_response import GameRecapScoringSummaryProResponse
49
+ from victorycode_sdk.models.game_recap_scoring_summary_response import GameRecapScoringSummaryResponse
50
+ from victorycode_sdk.models.game_recap_team_stats_response import GameRecapTeamStatsResponse
51
+ from victorycode_sdk.models.game_score_response import GameScoreResponse
52
+ from victorycode_sdk.models.game_scoring_summary_data_dto import GameScoringSummaryDataDto
53
+ from victorycode_sdk.models.get_parts_presign_url_response import GetPartsPresignUrlResponse
54
+ from victorycode_sdk.models.get_parts_presign_url_response_dto import GetPartsPresignUrlResponseDto
55
+ from victorycode_sdk.models.initiate_multipart_upload_dto import InitiateMultipartUploadDto
56
+ from victorycode_sdk.models.initiate_multipart_upload_response import InitiateMultipartUploadResponse
57
+ from victorycode_sdk.models.initiate_multipart_upload_response_dto import InitiateMultipartUploadResponseDto
58
+ from victorycode_sdk.models.interception_section_dto import InterceptionSectionDto
59
+ from victorycode_sdk.models.interception_stats_dto import InterceptionStatsDto
60
+ from victorycode_sdk.models.interception_totals_dto import InterceptionTotalsDto
61
+ from victorycode_sdk.models.kicking_section_dto import KickingSectionDto
62
+ from victorycode_sdk.models.kicking_stats_dto import KickingStatsDto
63
+ from victorycode_sdk.models.kicking_totals_dto import KickingTotalsDto
64
+ from victorycode_sdk.models.line_of_scrimmage_dto import LineOfScrimmageDto
65
+ from victorycode_sdk.models.list_classification_paginated_response_dto import ListClassificationPaginatedResponseDto
66
+ from victorycode_sdk.models.list_game_all_plays_response_dto import ListGameAllPlaysResponseDto
67
+ from victorycode_sdk.models.list_games_paginated_response_dto import ListGamesPaginatedResponseDto
68
+ from victorycode_sdk.models.list_mascot_paginated_response_dto import ListMascotPaginatedResponseDto
69
+ from victorycode_sdk.models.list_play_clips_response_dto import ListPlayClipsResponseDto
70
+ from victorycode_sdk.models.list_team_paginated_response_dto import ListTeamPaginatedResponseDto
71
+ from victorycode_sdk.models.list_venue_paginated_response_dto import ListVenuePaginatedResponseDto
72
+ from victorycode_sdk.models.list_video_paginated_response_dto import ListVideoPaginatedResponseDto
73
+ from victorycode_sdk.models.mascot import Mascot
74
+ from victorycode_sdk.models.mascot_response_dto import MascotResponseDto
75
+ from victorycode_sdk.models.not_found_error_response_dto import NotFoundErrorResponseDto
76
+ from victorycode_sdk.models.offense_dto import OffenseDto
77
+ from victorycode_sdk.models.passing_dto import PassingDto
78
+ from victorycode_sdk.models.passing_section_dto import PassingSectionDto
79
+ from victorycode_sdk.models.passing_stats_dto import PassingStatsDto
80
+ from victorycode_sdk.models.passing_totals_dto import PassingTotalsDto
81
+ from victorycode_sdk.models.period_score_dto import PeriodScoreDto
82
+ from victorycode_sdk.models.play_attributes_list_dto import PlayAttributesListDto
83
+ from victorycode_sdk.models.play_clip_list_details_dto import PlayClipListDetailsDto
84
+ from victorycode_sdk.models.play_clip_list_item_dto import PlayClipListItemDto
85
+ from victorycode_sdk.models.pro_scoring_play_dto import ProScoringPlayDto
86
+ from victorycode_sdk.models.receiving_section_dto import ReceivingSectionDto
87
+ from victorycode_sdk.models.receiving_stats_dto import ReceivingStatsDto
88
+ from victorycode_sdk.models.receiving_totals_dto import ReceivingTotalsDto
89
+ from victorycode_sdk.models.red_zone_dto import RedZoneDto
90
+ from victorycode_sdk.models.rushing_dto import RushingDto
91
+ from victorycode_sdk.models.rushing_section_dto import RushingSectionDto
92
+ from victorycode_sdk.models.rushing_stats_dto import RushingStatsDto
93
+ from victorycode_sdk.models.rushing_totals_dto import RushingTotalsDto
94
+ from victorycode_sdk.models.scoring_play_player_involved_dto import ScoringPlayPlayerInvolvedDto
95
+ from victorycode_sdk.models.scoring_summary_pro_team_dto import ScoringSummaryProTeamDto
96
+ from victorycode_sdk.models.single_classification_response_dto import SingleClassificationResponseDto
97
+ from victorycode_sdk.models.single_mascot_response_dto import SingleMascotResponseDto
98
+ from victorycode_sdk.models.single_team_response_dto import SingleTeamResponseDto
99
+ from victorycode_sdk.models.single_venue_response_dto import SingleVenueResponseDto
100
+ from victorycode_sdk.models.single_video_response_dto import SingleVideoResponseDto
101
+ from victorycode_sdk.models.team_basic_info_dto import TeamBasicInfoDto
102
+ from victorycode_sdk.models.team_box_score_dto import TeamBoxScoreDto
103
+ from victorycode_sdk.models.team_score_dto import TeamScoreDto
104
+ from victorycode_sdk.models.team_stats_dto import TeamStatsDto
105
+ from victorycode_sdk.models.token_response import TokenResponse
106
+ from victorycode_sdk.models.turnovers_dto import TurnoversDto
107
+ from victorycode_sdk.models.unauthorized_error_response_dto import UnauthorizedErrorResponseDto
108
+ from victorycode_sdk.models.update_classification_dto import UpdateClassificationDto
109
+ from victorycode_sdk.models.update_mascot_dto import UpdateMascotDto
110
+ from victorycode_sdk.models.update_team_dto import UpdateTeamDto
111
+ from victorycode_sdk.models.update_venue_dto import UpdateVenueDto
112
+ from victorycode_sdk.models.venue import Venue
113
+ from victorycode_sdk.models.video_list_item_dto import VideoListItemDto
114
+
@@ -0,0 +1,90 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Victory Code Client API
5
+
6
+ Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+ from pydantic_core import to_jsonable_python
25
+
26
+ class AddVideoToGameWithS3LinkDto(BaseModel):
27
+ """
28
+ AddVideoToGameWithS3LinkDto
29
+ """ # noqa: E501
30
+ view_type: StrictStr = Field(alias="viewType", json_schema_extra={"examples": ["Broadcast Wide"]})
31
+ s3_link: StrictStr = Field(alias="s3Link", json_schema_extra={"examples": ["https://tactix-bucket.s3.amazonaws.com/games/2023/week5/game-video.mp4"]})
32
+ __properties: ClassVar[List[str]] = ["viewType", "s3Link"]
33
+
34
+ model_config = ConfigDict(
35
+ validate_by_name=True,
36
+ validate_by_alias=True,
37
+ validate_assignment=True,
38
+ protected_namespaces=(),
39
+ )
40
+
41
+
42
+ def to_str(self) -> str:
43
+ """Returns the string representation of the model using alias"""
44
+ return pprint.pformat(self.model_dump(by_alias=True))
45
+
46
+ def to_json(self) -> str:
47
+ """Returns the JSON representation of the model using alias"""
48
+ return json.dumps(to_jsonable_python(self.to_dict()))
49
+
50
+ @classmethod
51
+ def from_json(cls, json_str: str) -> Optional[Self]:
52
+ """Create an instance of AddVideoToGameWithS3LinkDto from a JSON string"""
53
+ return cls.from_dict(json.loads(json_str))
54
+
55
+ def to_dict(self) -> Dict[str, Any]:
56
+ """Return the dictionary representation of the model using alias.
57
+
58
+ This has the following differences from calling pydantic's
59
+ `self.model_dump(by_alias=True)`:
60
+
61
+ * `None` is only added to the output dict for nullable fields that
62
+ were set at model initialization. Other fields with value `None`
63
+ are ignored.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ ])
67
+
68
+ _dict = self.model_dump(
69
+ by_alias=True,
70
+ exclude=excluded_fields,
71
+ exclude_none=True,
72
+ )
73
+ return _dict
74
+
75
+ @classmethod
76
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
77
+ """Create an instance of AddVideoToGameWithS3LinkDto from a dict"""
78
+ if obj is None:
79
+ return None
80
+
81
+ if not isinstance(obj, dict):
82
+ return cls.model_validate(obj)
83
+
84
+ _obj = cls.model_validate({
85
+ "viewType": obj.get("viewType"),
86
+ "s3Link": obj.get("s3Link")
87
+ })
88
+ return _obj
89
+
90
+
@@ -0,0 +1,96 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Victory Code Client API
5
+
6
+ Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+ from pydantic_core import to_jsonable_python
25
+
26
+ class Address(BaseModel):
27
+ """
28
+ Address
29
+ """ # noqa: E501
30
+ street: StrictStr = Field(json_schema_extra={"examples": ["1 Lincoln Financial Field Way"]})
31
+ city: StrictStr = Field(json_schema_extra={"examples": ["Philadelphia"]})
32
+ state: StrictStr = Field(json_schema_extra={"examples": ["PA"]})
33
+ postal_code: StrictStr = Field(alias="postalCode", json_schema_extra={"examples": ["19148"]})
34
+ country: StrictStr = Field(json_schema_extra={"examples": ["US"]})
35
+ __properties: ClassVar[List[str]] = ["street", "city", "state", "postalCode", "country"]
36
+
37
+ model_config = ConfigDict(
38
+ validate_by_name=True,
39
+ validate_by_alias=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ return json.dumps(to_jsonable_python(self.to_dict()))
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of Address from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of Address from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "street": obj.get("street"),
89
+ "city": obj.get("city"),
90
+ "state": obj.get("state"),
91
+ "postalCode": obj.get("postalCode"),
92
+ "country": obj.get("country")
93
+ })
94
+ return _obj
95
+
96
+
@@ -0,0 +1,96 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Victory Code Client API
5
+
6
+ Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, Field, StrictStr
21
+ from typing import Any, ClassVar, Dict, List
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+ from pydantic_core import to_jsonable_python
25
+
26
+ class AddressDto(BaseModel):
27
+ """
28
+ AddressDto
29
+ """ # noqa: E501
30
+ street: StrictStr = Field(json_schema_extra={"examples": ["1 Lincoln Financial Field Way"]})
31
+ city: StrictStr = Field(json_schema_extra={"examples": ["Philadelphia"]})
32
+ state: StrictStr = Field(json_schema_extra={"examples": ["PA"]})
33
+ postal_code: StrictStr = Field(alias="postalCode", json_schema_extra={"examples": ["19148"]})
34
+ country: StrictStr = Field(json_schema_extra={"examples": ["US"]})
35
+ __properties: ClassVar[List[str]] = ["street", "city", "state", "postalCode", "country"]
36
+
37
+ model_config = ConfigDict(
38
+ validate_by_name=True,
39
+ validate_by_alias=True,
40
+ validate_assignment=True,
41
+ protected_namespaces=(),
42
+ )
43
+
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.model_dump(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ return json.dumps(to_jsonable_python(self.to_dict()))
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> Optional[Self]:
55
+ """Create an instance of AddressDto from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self) -> Dict[str, Any]:
59
+ """Return the dictionary representation of the model using alias.
60
+
61
+ This has the following differences from calling pydantic's
62
+ `self.model_dump(by_alias=True)`:
63
+
64
+ * `None` is only added to the output dict for nullable fields that
65
+ were set at model initialization. Other fields with value `None`
66
+ are ignored.
67
+ """
68
+ excluded_fields: Set[str] = set([
69
+ ])
70
+
71
+ _dict = self.model_dump(
72
+ by_alias=True,
73
+ exclude=excluded_fields,
74
+ exclude_none=True,
75
+ )
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
80
+ """Create an instance of AddressDto from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return cls.model_validate(obj)
86
+
87
+ _obj = cls.model_validate({
88
+ "street": obj.get("street"),
89
+ "city": obj.get("city"),
90
+ "state": obj.get("state"),
91
+ "postalCode": obj.get("postalCode"),
92
+ "country": obj.get("country")
93
+ })
94
+ return _obj
95
+
96
+