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.
- victorycode_sdk/__init__.py +260 -0
- victorycode_sdk/api/__init__.py +13 -0
- victorycode_sdk/api/authentication_api.py +285 -0
- victorycode_sdk/api/classification_api.py +1203 -0
- victorycode_sdk/api/game_recap_api.py +1395 -0
- victorycode_sdk/api/games_api.py +1497 -0
- victorycode_sdk/api/mascot_api.py +1203 -0
- victorycode_sdk/api/plays_events_api.py +1057 -0
- victorycode_sdk/api/teams_api.py +1220 -0
- victorycode_sdk/api/uploads_api.py +872 -0
- victorycode_sdk/api/venue_api.py +1203 -0
- victorycode_sdk/api_client.py +833 -0
- victorycode_sdk/api_response.py +21 -0
- victorycode_sdk/configuration.py +698 -0
- victorycode_sdk/exceptions.py +218 -0
- victorycode_sdk/models/__init__.py +114 -0
- victorycode_sdk/models/add_video_to_game_with_s3_link_dto.py +90 -0
- victorycode_sdk/models/address.py +96 -0
- victorycode_sdk/models/address_dto.py +96 -0
- victorycode_sdk/models/bad_request_error_response_dto.py +90 -0
- victorycode_sdk/models/classification.py +90 -0
- victorycode_sdk/models/client_create_game_with_video_url_dto.py +130 -0
- victorycode_sdk/models/complete_multipart_upload_dto.py +97 -0
- victorycode_sdk/models/complete_multipart_upload_response.py +90 -0
- victorycode_sdk/models/complete_multipart_upload_response_dto.py +94 -0
- victorycode_sdk/models/completed_part_dto.py +90 -0
- victorycode_sdk/models/conflict_error_response_dto.py +90 -0
- victorycode_sdk/models/coordinates.py +90 -0
- victorycode_sdk/models/coordinates_dto.py +90 -0
- victorycode_sdk/models/create_classification_dto.py +90 -0
- victorycode_sdk/models/create_mascot_dto.py +90 -0
- victorycode_sdk/models/create_team_dto.py +108 -0
- victorycode_sdk/models/create_team_response_dto.py +106 -0
- victorycode_sdk/models/create_venue_dto.py +102 -0
- victorycode_sdk/models/defense_section_dto.py +101 -0
- victorycode_sdk/models/defense_stats_dto.py +106 -0
- victorycode_sdk/models/defense_totals_dto.py +100 -0
- victorycode_sdk/models/delete_response_dto.py +90 -0
- victorycode_sdk/models/down_efficiency_dto.py +90 -0
- victorycode_sdk/models/fetch_team_response_dto.py +117 -0
- victorycode_sdk/models/fumble_section_dto.py +101 -0
- victorycode_sdk/models/fumble_stats_dto.py +98 -0
- victorycode_sdk/models/fumble_totals_dto.py +92 -0
- victorycode_sdk/models/game_all_play_list_item_dto.py +106 -0
- victorycode_sdk/models/game_box_score_meta_dto.py +104 -0
- victorycode_sdk/models/game_box_score_response_dto.py +98 -0
- victorycode_sdk/models/game_box_score_teams_dto.py +97 -0
- victorycode_sdk/models/game_details_response.py +108 -0
- victorycode_sdk/models/game_recap_scoring_summary_pro_response.py +101 -0
- victorycode_sdk/models/game_recap_scoring_summary_response.py +101 -0
- victorycode_sdk/models/game_recap_team_stats_response.py +101 -0
- victorycode_sdk/models/game_score_response.py +101 -0
- victorycode_sdk/models/game_scoring_summary_data_dto.py +104 -0
- victorycode_sdk/models/get_parts_presign_url_response.py +88 -0
- victorycode_sdk/models/get_parts_presign_url_response_dto.py +94 -0
- victorycode_sdk/models/initiate_multipart_upload_dto.py +92 -0
- victorycode_sdk/models/initiate_multipart_upload_response.py +88 -0
- victorycode_sdk/models/initiate_multipart_upload_response_dto.py +94 -0
- victorycode_sdk/models/interception_section_dto.py +101 -0
- victorycode_sdk/models/interception_stats_dto.py +98 -0
- victorycode_sdk/models/interception_totals_dto.py +92 -0
- victorycode_sdk/models/kicking_section_dto.py +101 -0
- victorycode_sdk/models/kicking_stats_dto.py +106 -0
- victorycode_sdk/models/kicking_totals_dto.py +100 -0
- victorycode_sdk/models/line_of_scrimmage_dto.py +90 -0
- victorycode_sdk/models/list_classification_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_game_all_plays_response_dto.py +103 -0
- victorycode_sdk/models/list_games_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_mascot_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_play_clips_response_dto.py +105 -0
- victorycode_sdk/models/list_team_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_venue_paginated_response_dto.py +101 -0
- victorycode_sdk/models/list_video_paginated_response_dto.py +103 -0
- victorycode_sdk/models/mascot.py +90 -0
- victorycode_sdk/models/mascot_response_dto.py +96 -0
- victorycode_sdk/models/not_found_error_response_dto.py +90 -0
- victorycode_sdk/models/offense_dto.py +92 -0
- victorycode_sdk/models/passing_dto.py +98 -0
- victorycode_sdk/models/passing_section_dto.py +101 -0
- victorycode_sdk/models/passing_stats_dto.py +117 -0
- victorycode_sdk/models/passing_totals_dto.py +111 -0
- victorycode_sdk/models/period_score_dto.py +94 -0
- victorycode_sdk/models/play_attributes_list_dto.py +106 -0
- victorycode_sdk/models/play_clip_list_details_dto.py +104 -0
- victorycode_sdk/models/play_clip_list_item_dto.py +104 -0
- victorycode_sdk/models/pro_scoring_play_dto.py +202 -0
- victorycode_sdk/models/receiving_section_dto.py +101 -0
- victorycode_sdk/models/receiving_stats_dto.py +104 -0
- victorycode_sdk/models/receiving_totals_dto.py +98 -0
- victorycode_sdk/models/red_zone_dto.py +90 -0
- victorycode_sdk/models/rushing_dto.py +92 -0
- victorycode_sdk/models/rushing_section_dto.py +101 -0
- victorycode_sdk/models/rushing_stats_dto.py +102 -0
- victorycode_sdk/models/rushing_totals_dto.py +96 -0
- victorycode_sdk/models/scoring_play_player_involved_dto.py +106 -0
- victorycode_sdk/models/scoring_summary_pro_team_dto.py +90 -0
- victorycode_sdk/models/single_classification_response_dto.py +94 -0
- victorycode_sdk/models/single_mascot_response_dto.py +94 -0
- victorycode_sdk/models/single_team_response_dto.py +94 -0
- victorycode_sdk/models/single_venue_response_dto.py +99 -0
- victorycode_sdk/models/single_video_response_dto.py +94 -0
- victorycode_sdk/models/team_basic_info_dto.py +96 -0
- victorycode_sdk/models/team_box_score_dto.py +139 -0
- victorycode_sdk/models/team_score_dto.py +109 -0
- victorycode_sdk/models/team_stats_dto.py +137 -0
- victorycode_sdk/models/token_response.py +92 -0
- victorycode_sdk/models/turnovers_dto.py +92 -0
- victorycode_sdk/models/unauthorized_error_response_dto.py +90 -0
- victorycode_sdk/models/update_classification_dto.py +90 -0
- victorycode_sdk/models/update_mascot_dto.py +90 -0
- victorycode_sdk/models/update_team_dto.py +108 -0
- victorycode_sdk/models/update_venue_dto.py +102 -0
- victorycode_sdk/models/venue.py +102 -0
- victorycode_sdk/models/video_list_item_dto.py +96 -0
- victorycode_sdk/py.typed +0 -0
- victorycode_sdk/rest.py +334 -0
- victorycode_sdk-1.0.0.dist-info/METADATA +288 -0
- victorycode_sdk-1.0.0.dist-info/RECORD +121 -0
- victorycode_sdk-1.0.0.dist-info/WHEEL +5 -0
- victorycode_sdk-1.0.0.dist-info/licenses/LICENSE +21 -0
- victorycode_sdk-1.0.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,260 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
# flake8: noqa
|
|
4
|
+
|
|
5
|
+
"""
|
|
6
|
+
Victory Code Client API
|
|
7
|
+
|
|
8
|
+
Client APIs for Tactix partners: authenticate, upload game video, and retrieve games, plays, game recaps and team metadata.
|
|
9
|
+
|
|
10
|
+
The version of the OpenAPI document: 1.0
|
|
11
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
12
|
+
|
|
13
|
+
Do not edit the class manually.
|
|
14
|
+
""" # noqa: E501
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
__version__ = "1.0.0"
|
|
18
|
+
|
|
19
|
+
# Define package exports
|
|
20
|
+
__all__ = [
|
|
21
|
+
"AuthenticationApi",
|
|
22
|
+
"ClassificationApi",
|
|
23
|
+
"GameRecapApi",
|
|
24
|
+
"GamesApi",
|
|
25
|
+
"MascotApi",
|
|
26
|
+
"PlaysEventsApi",
|
|
27
|
+
"TeamsApi",
|
|
28
|
+
"UploadsApi",
|
|
29
|
+
"VenueApi",
|
|
30
|
+
"ApiResponse",
|
|
31
|
+
"ApiClient",
|
|
32
|
+
"Configuration",
|
|
33
|
+
"OpenApiException",
|
|
34
|
+
"ApiTypeError",
|
|
35
|
+
"ApiValueError",
|
|
36
|
+
"ApiKeyError",
|
|
37
|
+
"ApiAttributeError",
|
|
38
|
+
"ApiException",
|
|
39
|
+
"AddVideoToGameWithS3LinkDto",
|
|
40
|
+
"Address",
|
|
41
|
+
"AddressDto",
|
|
42
|
+
"BadRequestErrorResponseDto",
|
|
43
|
+
"Classification",
|
|
44
|
+
"ClientCreateGameWithVideoUrlDto",
|
|
45
|
+
"CompleteMultipartUploadDto",
|
|
46
|
+
"CompleteMultipartUploadResponse",
|
|
47
|
+
"CompleteMultipartUploadResponseDto",
|
|
48
|
+
"CompletedPartDto",
|
|
49
|
+
"ConflictErrorResponseDto",
|
|
50
|
+
"Coordinates",
|
|
51
|
+
"CoordinatesDto",
|
|
52
|
+
"CreateClassificationDto",
|
|
53
|
+
"CreateMascotDto",
|
|
54
|
+
"CreateTeamDto",
|
|
55
|
+
"CreateTeamResponseDto",
|
|
56
|
+
"CreateVenueDto",
|
|
57
|
+
"DefenseSectionDto",
|
|
58
|
+
"DefenseStatsDto",
|
|
59
|
+
"DefenseTotalsDto",
|
|
60
|
+
"DeleteResponseDto",
|
|
61
|
+
"DownEfficiencyDto",
|
|
62
|
+
"FetchTeamResponseDto",
|
|
63
|
+
"FumbleSectionDto",
|
|
64
|
+
"FumbleStatsDto",
|
|
65
|
+
"FumbleTotalsDto",
|
|
66
|
+
"GameAllPlayListItemDto",
|
|
67
|
+
"GameBoxScoreMetaDto",
|
|
68
|
+
"GameBoxScoreResponseDto",
|
|
69
|
+
"GameBoxScoreTeamsDto",
|
|
70
|
+
"GameDetailsResponse",
|
|
71
|
+
"GameRecapScoringSummaryProResponse",
|
|
72
|
+
"GameRecapScoringSummaryResponse",
|
|
73
|
+
"GameRecapTeamStatsResponse",
|
|
74
|
+
"GameScoreResponse",
|
|
75
|
+
"GameScoringSummaryDataDto",
|
|
76
|
+
"GetPartsPresignUrlResponse",
|
|
77
|
+
"GetPartsPresignUrlResponseDto",
|
|
78
|
+
"InitiateMultipartUploadDto",
|
|
79
|
+
"InitiateMultipartUploadResponse",
|
|
80
|
+
"InitiateMultipartUploadResponseDto",
|
|
81
|
+
"InterceptionSectionDto",
|
|
82
|
+
"InterceptionStatsDto",
|
|
83
|
+
"InterceptionTotalsDto",
|
|
84
|
+
"KickingSectionDto",
|
|
85
|
+
"KickingStatsDto",
|
|
86
|
+
"KickingTotalsDto",
|
|
87
|
+
"LineOfScrimmageDto",
|
|
88
|
+
"ListClassificationPaginatedResponseDto",
|
|
89
|
+
"ListGameAllPlaysResponseDto",
|
|
90
|
+
"ListGamesPaginatedResponseDto",
|
|
91
|
+
"ListMascotPaginatedResponseDto",
|
|
92
|
+
"ListPlayClipsResponseDto",
|
|
93
|
+
"ListTeamPaginatedResponseDto",
|
|
94
|
+
"ListVenuePaginatedResponseDto",
|
|
95
|
+
"ListVideoPaginatedResponseDto",
|
|
96
|
+
"Mascot",
|
|
97
|
+
"MascotResponseDto",
|
|
98
|
+
"NotFoundErrorResponseDto",
|
|
99
|
+
"OffenseDto",
|
|
100
|
+
"PassingDto",
|
|
101
|
+
"PassingSectionDto",
|
|
102
|
+
"PassingStatsDto",
|
|
103
|
+
"PassingTotalsDto",
|
|
104
|
+
"PeriodScoreDto",
|
|
105
|
+
"PlayAttributesListDto",
|
|
106
|
+
"PlayClipListDetailsDto",
|
|
107
|
+
"PlayClipListItemDto",
|
|
108
|
+
"ProScoringPlayDto",
|
|
109
|
+
"ReceivingSectionDto",
|
|
110
|
+
"ReceivingStatsDto",
|
|
111
|
+
"ReceivingTotalsDto",
|
|
112
|
+
"RedZoneDto",
|
|
113
|
+
"RushingDto",
|
|
114
|
+
"RushingSectionDto",
|
|
115
|
+
"RushingStatsDto",
|
|
116
|
+
"RushingTotalsDto",
|
|
117
|
+
"ScoringPlayPlayerInvolvedDto",
|
|
118
|
+
"ScoringSummaryProTeamDto",
|
|
119
|
+
"SingleClassificationResponseDto",
|
|
120
|
+
"SingleMascotResponseDto",
|
|
121
|
+
"SingleTeamResponseDto",
|
|
122
|
+
"SingleVenueResponseDto",
|
|
123
|
+
"SingleVideoResponseDto",
|
|
124
|
+
"TeamBasicInfoDto",
|
|
125
|
+
"TeamBoxScoreDto",
|
|
126
|
+
"TeamScoreDto",
|
|
127
|
+
"TeamStatsDto",
|
|
128
|
+
"TokenResponse",
|
|
129
|
+
"TurnoversDto",
|
|
130
|
+
"UnauthorizedErrorResponseDto",
|
|
131
|
+
"UpdateClassificationDto",
|
|
132
|
+
"UpdateMascotDto",
|
|
133
|
+
"UpdateTeamDto",
|
|
134
|
+
"UpdateVenueDto",
|
|
135
|
+
"Venue",
|
|
136
|
+
"VideoListItemDto",
|
|
137
|
+
]
|
|
138
|
+
|
|
139
|
+
# import apis into sdk package
|
|
140
|
+
from victorycode_sdk.api.authentication_api import AuthenticationApi as AuthenticationApi
|
|
141
|
+
from victorycode_sdk.api.classification_api import ClassificationApi as ClassificationApi
|
|
142
|
+
from victorycode_sdk.api.game_recap_api import GameRecapApi as GameRecapApi
|
|
143
|
+
from victorycode_sdk.api.games_api import GamesApi as GamesApi
|
|
144
|
+
from victorycode_sdk.api.mascot_api import MascotApi as MascotApi
|
|
145
|
+
from victorycode_sdk.api.plays_events_api import PlaysEventsApi as PlaysEventsApi
|
|
146
|
+
from victorycode_sdk.api.teams_api import TeamsApi as TeamsApi
|
|
147
|
+
from victorycode_sdk.api.uploads_api import UploadsApi as UploadsApi
|
|
148
|
+
from victorycode_sdk.api.venue_api import VenueApi as VenueApi
|
|
149
|
+
|
|
150
|
+
# import ApiClient
|
|
151
|
+
from victorycode_sdk.api_response import ApiResponse as ApiResponse
|
|
152
|
+
from victorycode_sdk.api_client import ApiClient as ApiClient
|
|
153
|
+
from victorycode_sdk.configuration import Configuration as Configuration
|
|
154
|
+
from victorycode_sdk.exceptions import OpenApiException as OpenApiException
|
|
155
|
+
from victorycode_sdk.exceptions import ApiTypeError as ApiTypeError
|
|
156
|
+
from victorycode_sdk.exceptions import ApiValueError as ApiValueError
|
|
157
|
+
from victorycode_sdk.exceptions import ApiKeyError as ApiKeyError
|
|
158
|
+
from victorycode_sdk.exceptions import ApiAttributeError as ApiAttributeError
|
|
159
|
+
from victorycode_sdk.exceptions import ApiException as ApiException
|
|
160
|
+
|
|
161
|
+
# import models into sdk package
|
|
162
|
+
from victorycode_sdk.models.add_video_to_game_with_s3_link_dto import AddVideoToGameWithS3LinkDto as AddVideoToGameWithS3LinkDto
|
|
163
|
+
from victorycode_sdk.models.address import Address as Address
|
|
164
|
+
from victorycode_sdk.models.address_dto import AddressDto as AddressDto
|
|
165
|
+
from victorycode_sdk.models.bad_request_error_response_dto import BadRequestErrorResponseDto as BadRequestErrorResponseDto
|
|
166
|
+
from victorycode_sdk.models.classification import Classification as Classification
|
|
167
|
+
from victorycode_sdk.models.client_create_game_with_video_url_dto import ClientCreateGameWithVideoUrlDto as ClientCreateGameWithVideoUrlDto
|
|
168
|
+
from victorycode_sdk.models.complete_multipart_upload_dto import CompleteMultipartUploadDto as CompleteMultipartUploadDto
|
|
169
|
+
from victorycode_sdk.models.complete_multipart_upload_response import CompleteMultipartUploadResponse as CompleteMultipartUploadResponse
|
|
170
|
+
from victorycode_sdk.models.complete_multipart_upload_response_dto import CompleteMultipartUploadResponseDto as CompleteMultipartUploadResponseDto
|
|
171
|
+
from victorycode_sdk.models.completed_part_dto import CompletedPartDto as CompletedPartDto
|
|
172
|
+
from victorycode_sdk.models.conflict_error_response_dto import ConflictErrorResponseDto as ConflictErrorResponseDto
|
|
173
|
+
from victorycode_sdk.models.coordinates import Coordinates as Coordinates
|
|
174
|
+
from victorycode_sdk.models.coordinates_dto import CoordinatesDto as CoordinatesDto
|
|
175
|
+
from victorycode_sdk.models.create_classification_dto import CreateClassificationDto as CreateClassificationDto
|
|
176
|
+
from victorycode_sdk.models.create_mascot_dto import CreateMascotDto as CreateMascotDto
|
|
177
|
+
from victorycode_sdk.models.create_team_dto import CreateTeamDto as CreateTeamDto
|
|
178
|
+
from victorycode_sdk.models.create_team_response_dto import CreateTeamResponseDto as CreateTeamResponseDto
|
|
179
|
+
from victorycode_sdk.models.create_venue_dto import CreateVenueDto as CreateVenueDto
|
|
180
|
+
from victorycode_sdk.models.defense_section_dto import DefenseSectionDto as DefenseSectionDto
|
|
181
|
+
from victorycode_sdk.models.defense_stats_dto import DefenseStatsDto as DefenseStatsDto
|
|
182
|
+
from victorycode_sdk.models.defense_totals_dto import DefenseTotalsDto as DefenseTotalsDto
|
|
183
|
+
from victorycode_sdk.models.delete_response_dto import DeleteResponseDto as DeleteResponseDto
|
|
184
|
+
from victorycode_sdk.models.down_efficiency_dto import DownEfficiencyDto as DownEfficiencyDto
|
|
185
|
+
from victorycode_sdk.models.fetch_team_response_dto import FetchTeamResponseDto as FetchTeamResponseDto
|
|
186
|
+
from victorycode_sdk.models.fumble_section_dto import FumbleSectionDto as FumbleSectionDto
|
|
187
|
+
from victorycode_sdk.models.fumble_stats_dto import FumbleStatsDto as FumbleStatsDto
|
|
188
|
+
from victorycode_sdk.models.fumble_totals_dto import FumbleTotalsDto as FumbleTotalsDto
|
|
189
|
+
from victorycode_sdk.models.game_all_play_list_item_dto import GameAllPlayListItemDto as GameAllPlayListItemDto
|
|
190
|
+
from victorycode_sdk.models.game_box_score_meta_dto import GameBoxScoreMetaDto as GameBoxScoreMetaDto
|
|
191
|
+
from victorycode_sdk.models.game_box_score_response_dto import GameBoxScoreResponseDto as GameBoxScoreResponseDto
|
|
192
|
+
from victorycode_sdk.models.game_box_score_teams_dto import GameBoxScoreTeamsDto as GameBoxScoreTeamsDto
|
|
193
|
+
from victorycode_sdk.models.game_details_response import GameDetailsResponse as GameDetailsResponse
|
|
194
|
+
from victorycode_sdk.models.game_recap_scoring_summary_pro_response import GameRecapScoringSummaryProResponse as GameRecapScoringSummaryProResponse
|
|
195
|
+
from victorycode_sdk.models.game_recap_scoring_summary_response import GameRecapScoringSummaryResponse as GameRecapScoringSummaryResponse
|
|
196
|
+
from victorycode_sdk.models.game_recap_team_stats_response import GameRecapTeamStatsResponse as GameRecapTeamStatsResponse
|
|
197
|
+
from victorycode_sdk.models.game_score_response import GameScoreResponse as GameScoreResponse
|
|
198
|
+
from victorycode_sdk.models.game_scoring_summary_data_dto import GameScoringSummaryDataDto as GameScoringSummaryDataDto
|
|
199
|
+
from victorycode_sdk.models.get_parts_presign_url_response import GetPartsPresignUrlResponse as GetPartsPresignUrlResponse
|
|
200
|
+
from victorycode_sdk.models.get_parts_presign_url_response_dto import GetPartsPresignUrlResponseDto as GetPartsPresignUrlResponseDto
|
|
201
|
+
from victorycode_sdk.models.initiate_multipart_upload_dto import InitiateMultipartUploadDto as InitiateMultipartUploadDto
|
|
202
|
+
from victorycode_sdk.models.initiate_multipart_upload_response import InitiateMultipartUploadResponse as InitiateMultipartUploadResponse
|
|
203
|
+
from victorycode_sdk.models.initiate_multipart_upload_response_dto import InitiateMultipartUploadResponseDto as InitiateMultipartUploadResponseDto
|
|
204
|
+
from victorycode_sdk.models.interception_section_dto import InterceptionSectionDto as InterceptionSectionDto
|
|
205
|
+
from victorycode_sdk.models.interception_stats_dto import InterceptionStatsDto as InterceptionStatsDto
|
|
206
|
+
from victorycode_sdk.models.interception_totals_dto import InterceptionTotalsDto as InterceptionTotalsDto
|
|
207
|
+
from victorycode_sdk.models.kicking_section_dto import KickingSectionDto as KickingSectionDto
|
|
208
|
+
from victorycode_sdk.models.kicking_stats_dto import KickingStatsDto as KickingStatsDto
|
|
209
|
+
from victorycode_sdk.models.kicking_totals_dto import KickingTotalsDto as KickingTotalsDto
|
|
210
|
+
from victorycode_sdk.models.line_of_scrimmage_dto import LineOfScrimmageDto as LineOfScrimmageDto
|
|
211
|
+
from victorycode_sdk.models.list_classification_paginated_response_dto import ListClassificationPaginatedResponseDto as ListClassificationPaginatedResponseDto
|
|
212
|
+
from victorycode_sdk.models.list_game_all_plays_response_dto import ListGameAllPlaysResponseDto as ListGameAllPlaysResponseDto
|
|
213
|
+
from victorycode_sdk.models.list_games_paginated_response_dto import ListGamesPaginatedResponseDto as ListGamesPaginatedResponseDto
|
|
214
|
+
from victorycode_sdk.models.list_mascot_paginated_response_dto import ListMascotPaginatedResponseDto as ListMascotPaginatedResponseDto
|
|
215
|
+
from victorycode_sdk.models.list_play_clips_response_dto import ListPlayClipsResponseDto as ListPlayClipsResponseDto
|
|
216
|
+
from victorycode_sdk.models.list_team_paginated_response_dto import ListTeamPaginatedResponseDto as ListTeamPaginatedResponseDto
|
|
217
|
+
from victorycode_sdk.models.list_venue_paginated_response_dto import ListVenuePaginatedResponseDto as ListVenuePaginatedResponseDto
|
|
218
|
+
from victorycode_sdk.models.list_video_paginated_response_dto import ListVideoPaginatedResponseDto as ListVideoPaginatedResponseDto
|
|
219
|
+
from victorycode_sdk.models.mascot import Mascot as Mascot
|
|
220
|
+
from victorycode_sdk.models.mascot_response_dto import MascotResponseDto as MascotResponseDto
|
|
221
|
+
from victorycode_sdk.models.not_found_error_response_dto import NotFoundErrorResponseDto as NotFoundErrorResponseDto
|
|
222
|
+
from victorycode_sdk.models.offense_dto import OffenseDto as OffenseDto
|
|
223
|
+
from victorycode_sdk.models.passing_dto import PassingDto as PassingDto
|
|
224
|
+
from victorycode_sdk.models.passing_section_dto import PassingSectionDto as PassingSectionDto
|
|
225
|
+
from victorycode_sdk.models.passing_stats_dto import PassingStatsDto as PassingStatsDto
|
|
226
|
+
from victorycode_sdk.models.passing_totals_dto import PassingTotalsDto as PassingTotalsDto
|
|
227
|
+
from victorycode_sdk.models.period_score_dto import PeriodScoreDto as PeriodScoreDto
|
|
228
|
+
from victorycode_sdk.models.play_attributes_list_dto import PlayAttributesListDto as PlayAttributesListDto
|
|
229
|
+
from victorycode_sdk.models.play_clip_list_details_dto import PlayClipListDetailsDto as PlayClipListDetailsDto
|
|
230
|
+
from victorycode_sdk.models.play_clip_list_item_dto import PlayClipListItemDto as PlayClipListItemDto
|
|
231
|
+
from victorycode_sdk.models.pro_scoring_play_dto import ProScoringPlayDto as ProScoringPlayDto
|
|
232
|
+
from victorycode_sdk.models.receiving_section_dto import ReceivingSectionDto as ReceivingSectionDto
|
|
233
|
+
from victorycode_sdk.models.receiving_stats_dto import ReceivingStatsDto as ReceivingStatsDto
|
|
234
|
+
from victorycode_sdk.models.receiving_totals_dto import ReceivingTotalsDto as ReceivingTotalsDto
|
|
235
|
+
from victorycode_sdk.models.red_zone_dto import RedZoneDto as RedZoneDto
|
|
236
|
+
from victorycode_sdk.models.rushing_dto import RushingDto as RushingDto
|
|
237
|
+
from victorycode_sdk.models.rushing_section_dto import RushingSectionDto as RushingSectionDto
|
|
238
|
+
from victorycode_sdk.models.rushing_stats_dto import RushingStatsDto as RushingStatsDto
|
|
239
|
+
from victorycode_sdk.models.rushing_totals_dto import RushingTotalsDto as RushingTotalsDto
|
|
240
|
+
from victorycode_sdk.models.scoring_play_player_involved_dto import ScoringPlayPlayerInvolvedDto as ScoringPlayPlayerInvolvedDto
|
|
241
|
+
from victorycode_sdk.models.scoring_summary_pro_team_dto import ScoringSummaryProTeamDto as ScoringSummaryProTeamDto
|
|
242
|
+
from victorycode_sdk.models.single_classification_response_dto import SingleClassificationResponseDto as SingleClassificationResponseDto
|
|
243
|
+
from victorycode_sdk.models.single_mascot_response_dto import SingleMascotResponseDto as SingleMascotResponseDto
|
|
244
|
+
from victorycode_sdk.models.single_team_response_dto import SingleTeamResponseDto as SingleTeamResponseDto
|
|
245
|
+
from victorycode_sdk.models.single_venue_response_dto import SingleVenueResponseDto as SingleVenueResponseDto
|
|
246
|
+
from victorycode_sdk.models.single_video_response_dto import SingleVideoResponseDto as SingleVideoResponseDto
|
|
247
|
+
from victorycode_sdk.models.team_basic_info_dto import TeamBasicInfoDto as TeamBasicInfoDto
|
|
248
|
+
from victorycode_sdk.models.team_box_score_dto import TeamBoxScoreDto as TeamBoxScoreDto
|
|
249
|
+
from victorycode_sdk.models.team_score_dto import TeamScoreDto as TeamScoreDto
|
|
250
|
+
from victorycode_sdk.models.team_stats_dto import TeamStatsDto as TeamStatsDto
|
|
251
|
+
from victorycode_sdk.models.token_response import TokenResponse as TokenResponse
|
|
252
|
+
from victorycode_sdk.models.turnovers_dto import TurnoversDto as TurnoversDto
|
|
253
|
+
from victorycode_sdk.models.unauthorized_error_response_dto import UnauthorizedErrorResponseDto as UnauthorizedErrorResponseDto
|
|
254
|
+
from victorycode_sdk.models.update_classification_dto import UpdateClassificationDto as UpdateClassificationDto
|
|
255
|
+
from victorycode_sdk.models.update_mascot_dto import UpdateMascotDto as UpdateMascotDto
|
|
256
|
+
from victorycode_sdk.models.update_team_dto import UpdateTeamDto as UpdateTeamDto
|
|
257
|
+
from victorycode_sdk.models.update_venue_dto import UpdateVenueDto as UpdateVenueDto
|
|
258
|
+
from victorycode_sdk.models.venue import Venue as Venue
|
|
259
|
+
from victorycode_sdk.models.video_list_item_dto import VideoListItemDto as VideoListItemDto
|
|
260
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
# import apis into api package
|
|
4
|
+
from victorycode_sdk.api.authentication_api import AuthenticationApi
|
|
5
|
+
from victorycode_sdk.api.classification_api import ClassificationApi
|
|
6
|
+
from victorycode_sdk.api.game_recap_api import GameRecapApi
|
|
7
|
+
from victorycode_sdk.api.games_api import GamesApi
|
|
8
|
+
from victorycode_sdk.api.mascot_api import MascotApi
|
|
9
|
+
from victorycode_sdk.api.plays_events_api import PlaysEventsApi
|
|
10
|
+
from victorycode_sdk.api.teams_api import TeamsApi
|
|
11
|
+
from victorycode_sdk.api.uploads_api import UploadsApi
|
|
12
|
+
from victorycode_sdk.api.venue_api import VenueApi
|
|
13
|
+
|
|
@@ -0,0 +1,285 @@
|
|
|
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
|
+
import warnings
|
|
14
|
+
from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
|
|
15
|
+
from typing import Any, Dict, List, Optional, Tuple, Union
|
|
16
|
+
from typing_extensions import Annotated
|
|
17
|
+
|
|
18
|
+
from victorycode_sdk.models.token_response import TokenResponse
|
|
19
|
+
|
|
20
|
+
from victorycode_sdk.api_client import ApiClient, RequestSerialized
|
|
21
|
+
from victorycode_sdk.api_response import ApiResponse
|
|
22
|
+
from victorycode_sdk.rest import RESTResponseType
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
class AuthenticationApi:
|
|
26
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
27
|
+
Ref: https://openapi-generator.tech
|
|
28
|
+
|
|
29
|
+
Do not edit the class manually.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, api_client=None) -> None:
|
|
33
|
+
if api_client is None:
|
|
34
|
+
api_client = ApiClient.get_default()
|
|
35
|
+
self.api_client = api_client
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@validate_call
|
|
39
|
+
def get_access_token(
|
|
40
|
+
self,
|
|
41
|
+
_request_timeout: Union[
|
|
42
|
+
None,
|
|
43
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
44
|
+
Tuple[
|
|
45
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
46
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
47
|
+
]
|
|
48
|
+
] = None,
|
|
49
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
50
|
+
_content_type: Optional[StrictStr] = None,
|
|
51
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
52
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
53
|
+
) -> TokenResponse:
|
|
54
|
+
"""Get Access Token
|
|
55
|
+
|
|
56
|
+
Exchanges client credentials for a temporary bearer token.
|
|
57
|
+
|
|
58
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
59
|
+
number provided, it will be total request
|
|
60
|
+
timeout. It can also be a pair (tuple) of
|
|
61
|
+
(connection, read) timeouts.
|
|
62
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
63
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
64
|
+
request; this effectively ignores the
|
|
65
|
+
authentication in the spec for a single request.
|
|
66
|
+
:type _request_auth: dict, optional
|
|
67
|
+
:param _content_type: force content-type for the request.
|
|
68
|
+
:type _content_type: str, Optional
|
|
69
|
+
:param _headers: set to override the headers for a single
|
|
70
|
+
request; this effectively ignores the headers
|
|
71
|
+
in the spec for a single request.
|
|
72
|
+
:type _headers: dict, optional
|
|
73
|
+
:param _host_index: set to override the host_index for a single
|
|
74
|
+
request; this effectively ignores the host_index
|
|
75
|
+
in the spec for a single request.
|
|
76
|
+
:type _host_index: int, optional
|
|
77
|
+
:return: Returns the result object.
|
|
78
|
+
""" # noqa: E501
|
|
79
|
+
|
|
80
|
+
_param = self._get_access_token_serialize(
|
|
81
|
+
_request_auth=_request_auth,
|
|
82
|
+
_content_type=_content_type,
|
|
83
|
+
_headers=_headers,
|
|
84
|
+
_host_index=_host_index
|
|
85
|
+
)
|
|
86
|
+
|
|
87
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
88
|
+
'200': "TokenResponse",
|
|
89
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
90
|
+
}
|
|
91
|
+
response_data = self.api_client.call_api(
|
|
92
|
+
*_param,
|
|
93
|
+
_request_timeout=_request_timeout
|
|
94
|
+
)
|
|
95
|
+
response_data.read()
|
|
96
|
+
return self.api_client.response_deserialize(
|
|
97
|
+
response_data=response_data,
|
|
98
|
+
response_types_map=_response_types_map,
|
|
99
|
+
).data
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
@validate_call
|
|
103
|
+
def get_access_token_with_http_info(
|
|
104
|
+
self,
|
|
105
|
+
_request_timeout: Union[
|
|
106
|
+
None,
|
|
107
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
108
|
+
Tuple[
|
|
109
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
110
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
111
|
+
]
|
|
112
|
+
] = None,
|
|
113
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
114
|
+
_content_type: Optional[StrictStr] = None,
|
|
115
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
116
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
117
|
+
) -> ApiResponse[TokenResponse]:
|
|
118
|
+
"""Get Access Token
|
|
119
|
+
|
|
120
|
+
Exchanges client credentials for a temporary bearer token.
|
|
121
|
+
|
|
122
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
123
|
+
number provided, it will be total request
|
|
124
|
+
timeout. It can also be a pair (tuple) of
|
|
125
|
+
(connection, read) timeouts.
|
|
126
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
127
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
128
|
+
request; this effectively ignores the
|
|
129
|
+
authentication in the spec for a single request.
|
|
130
|
+
:type _request_auth: dict, optional
|
|
131
|
+
:param _content_type: force content-type for the request.
|
|
132
|
+
:type _content_type: str, Optional
|
|
133
|
+
:param _headers: set to override the headers for a single
|
|
134
|
+
request; this effectively ignores the headers
|
|
135
|
+
in the spec for a single request.
|
|
136
|
+
:type _headers: dict, optional
|
|
137
|
+
:param _host_index: set to override the host_index for a single
|
|
138
|
+
request; this effectively ignores the host_index
|
|
139
|
+
in the spec for a single request.
|
|
140
|
+
:type _host_index: int, optional
|
|
141
|
+
:return: Returns the result object.
|
|
142
|
+
""" # noqa: E501
|
|
143
|
+
|
|
144
|
+
_param = self._get_access_token_serialize(
|
|
145
|
+
_request_auth=_request_auth,
|
|
146
|
+
_content_type=_content_type,
|
|
147
|
+
_headers=_headers,
|
|
148
|
+
_host_index=_host_index
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
152
|
+
'200': "TokenResponse",
|
|
153
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
154
|
+
}
|
|
155
|
+
response_data = self.api_client.call_api(
|
|
156
|
+
*_param,
|
|
157
|
+
_request_timeout=_request_timeout
|
|
158
|
+
)
|
|
159
|
+
response_data.read()
|
|
160
|
+
return self.api_client.response_deserialize(
|
|
161
|
+
response_data=response_data,
|
|
162
|
+
response_types_map=_response_types_map,
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
@validate_call
|
|
167
|
+
def get_access_token_without_preload_content(
|
|
168
|
+
self,
|
|
169
|
+
_request_timeout: Union[
|
|
170
|
+
None,
|
|
171
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
172
|
+
Tuple[
|
|
173
|
+
Annotated[StrictFloat, Field(gt=0)],
|
|
174
|
+
Annotated[StrictFloat, Field(gt=0)]
|
|
175
|
+
]
|
|
176
|
+
] = None,
|
|
177
|
+
_request_auth: Optional[Dict[StrictStr, Any]] = None,
|
|
178
|
+
_content_type: Optional[StrictStr] = None,
|
|
179
|
+
_headers: Optional[Dict[StrictStr, Any]] = None,
|
|
180
|
+
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
|
|
181
|
+
) -> RESTResponseType:
|
|
182
|
+
"""Get Access Token
|
|
183
|
+
|
|
184
|
+
Exchanges client credentials for a temporary bearer token.
|
|
185
|
+
|
|
186
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
187
|
+
number provided, it will be total request
|
|
188
|
+
timeout. It can also be a pair (tuple) of
|
|
189
|
+
(connection, read) timeouts.
|
|
190
|
+
:type _request_timeout: int, tuple(int, int), optional
|
|
191
|
+
:param _request_auth: set to override the auth_settings for an a single
|
|
192
|
+
request; this effectively ignores the
|
|
193
|
+
authentication in the spec for a single request.
|
|
194
|
+
:type _request_auth: dict, optional
|
|
195
|
+
:param _content_type: force content-type for the request.
|
|
196
|
+
:type _content_type: str, Optional
|
|
197
|
+
:param _headers: set to override the headers for a single
|
|
198
|
+
request; this effectively ignores the headers
|
|
199
|
+
in the spec for a single request.
|
|
200
|
+
:type _headers: dict, optional
|
|
201
|
+
:param _host_index: set to override the host_index for a single
|
|
202
|
+
request; this effectively ignores the host_index
|
|
203
|
+
in the spec for a single request.
|
|
204
|
+
:type _host_index: int, optional
|
|
205
|
+
:return: Returns the result object.
|
|
206
|
+
""" # noqa: E501
|
|
207
|
+
|
|
208
|
+
_param = self._get_access_token_serialize(
|
|
209
|
+
_request_auth=_request_auth,
|
|
210
|
+
_content_type=_content_type,
|
|
211
|
+
_headers=_headers,
|
|
212
|
+
_host_index=_host_index
|
|
213
|
+
)
|
|
214
|
+
|
|
215
|
+
_response_types_map: Dict[str, Optional[str]] = {
|
|
216
|
+
'200': "TokenResponse",
|
|
217
|
+
'401': "UnauthorizedErrorResponseDto",
|
|
218
|
+
}
|
|
219
|
+
response_data = self.api_client.call_api(
|
|
220
|
+
*_param,
|
|
221
|
+
_request_timeout=_request_timeout
|
|
222
|
+
)
|
|
223
|
+
return response_data.response
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
def _get_access_token_serialize(
|
|
227
|
+
self,
|
|
228
|
+
_request_auth,
|
|
229
|
+
_content_type,
|
|
230
|
+
_headers,
|
|
231
|
+
_host_index,
|
|
232
|
+
) -> RequestSerialized:
|
|
233
|
+
|
|
234
|
+
_host = None
|
|
235
|
+
|
|
236
|
+
_collection_formats: Dict[str, str] = {
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
_path_params: Dict[str, str] = {}
|
|
240
|
+
_query_params: List[Tuple[str, str]] = []
|
|
241
|
+
_header_params: Dict[str, Optional[str]] = _headers or {}
|
|
242
|
+
_form_params: List[Tuple[str, str]] = []
|
|
243
|
+
_files: Dict[
|
|
244
|
+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
|
|
245
|
+
] = {}
|
|
246
|
+
_body_params: Optional[bytes] = None
|
|
247
|
+
|
|
248
|
+
# process the path parameters
|
|
249
|
+
# process the query parameters
|
|
250
|
+
# process the header parameters
|
|
251
|
+
# process the form parameters
|
|
252
|
+
# process the body parameter
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
# set the HTTP header `Accept`
|
|
256
|
+
if 'Accept' not in _header_params:
|
|
257
|
+
_header_params['Accept'] = self.api_client.select_header_accept(
|
|
258
|
+
[
|
|
259
|
+
'application/json'
|
|
260
|
+
]
|
|
261
|
+
)
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
# authentication setting
|
|
265
|
+
_auth_settings: List[str] = [
|
|
266
|
+
'AppSecret',
|
|
267
|
+
'Client-App-Id'
|
|
268
|
+
]
|
|
269
|
+
|
|
270
|
+
return self.api_client.param_serialize(
|
|
271
|
+
method='GET',
|
|
272
|
+
resource_path='/api/v1/client/auth/token',
|
|
273
|
+
path_params=_path_params,
|
|
274
|
+
query_params=_query_params,
|
|
275
|
+
header_params=_header_params,
|
|
276
|
+
body=_body_params,
|
|
277
|
+
post_params=_form_params,
|
|
278
|
+
files=_files,
|
|
279
|
+
auth_settings=_auth_settings,
|
|
280
|
+
collection_formats=_collection_formats,
|
|
281
|
+
_host=_host,
|
|
282
|
+
_request_auth=_request_auth
|
|
283
|
+
)
|
|
284
|
+
|
|
285
|
+
|