From 0147bef26f643d80af1cde7cf8aa9c58ddcb754a Mon Sep 17 00:00:00 2001 From: filifa Date: Sun, 6 Apr 2025 22:14:30 -0400 Subject: [PATCH] go fmt --- api/api_analytics.go | 325 ++++++----- api/api_attendance.go | 33 +- api/api_awards.go | 77 ++- api/api_bat_tracking.go | 29 +- api/api_biomechanics.go | 31 +- api/api_broadcast.go | 37 +- api/api_conference.go | 53 +- api/api_division.go | 57 +- api/api_draft.go | 231 ++++---- api/api_game.go | 341 ++++++------ api/api_game_pace.go | 47 +- api/api_high_low.go | 55 +- api/api_homerun_derby.go | 177 +++--- api/api_job.go | 109 ++-- api/api_league.go | 329 ++++++------ api/api_milestones.go | 117 ++-- api/api_misc.go | 835 ++++++++++++++--------------- api/api_person.go | 339 ++++++------ api/api_predictions.go | 45 +- api/api_reviews.go | 23 +- api/api_schedule.go | 295 +++++----- api/api_season.go | 81 ++- api/api_skeletal.go | 59 +- api/api_sports.go | 111 ++-- api/api_standings.go | 69 ++- api/api_stats.go | 589 ++++++++++---------- api/api_streaks.go | 63 ++- api/api_teams.go | 547 ++++++++++--------- api/api_transactions.go | 41 +- api/api_uniforms.go | 39 +- api/api_venues.go | 89 ++- api/api_weather.go | 101 ++-- api/client.go | 155 +++--- api/configuration.go | 17 +- api/test/api_analytics_test.go | 20 +- api/test/api_attendance_test.go | 4 +- api/test/api_awards_test.go | 8 +- api/test/api_bat_tracking_test.go | 4 +- api/test/api_biomechanics_test.go | 4 +- api/test/api_broadcast_test.go | 6 +- api/test/api_conference_test.go | 6 +- api/test/api_division_test.go | 6 +- api/test/api_draft_test.go | 12 +- api/test/api_game_pace_test.go | 4 +- api/test/api_game_test.go | 28 +- api/test/api_high_low_test.go | 6 +- api/test/api_homerun_derby_test.go | 18 +- api/test/api_job_test.go | 12 +- api/test/api_league_test.go | 26 +- api/test/api_milestones_test.go | 14 +- api/test/api_misc_test.go | 114 ++-- api/test/api_person_test.go | 20 +- api/test/api_predictions_test.go | 6 +- api/test/api_reviews_test.go | 4 +- api/test/api_schedule_test.go | 16 +- api/test/api_season_test.go | 8 +- api/test/api_skeletal_test.go | 6 +- api/test/api_sports_test.go | 10 +- api/test/api_standings_test.go | 6 +- api/test/api_stats_test.go | 18 +- api/test/api_streaks_test.go | 6 +- api/test/api_teams_test.go | 34 +- api/test/api_transactions_test.go | 4 +- api/test/api_uniforms_test.go | 6 +- api/test/api_venues_test.go | 6 +- api/test/api_weather_test.go | 10 +- api/utils.go | 2 +- cmd/common.go | 17 +- 68 files changed, 2991 insertions(+), 3026 deletions(-) diff --git a/api/api_analytics.go b/api/api_analytics.go index 9c010c3..3958c93 100644 --- a/api/api_analytics.go +++ b/api/api_analytics.go @@ -19,16 +19,15 @@ import ( "strings" ) - // AnalyticsAPIService AnalyticsAPI service type AnalyticsAPIService service type ApiContextMetricsRequest struct { - ctx context.Context + ctx context.Context ApiService *AnalyticsAPIService - gamePk interface{} - guid interface{} - fields *interface{} + gamePk interface{} + guid interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -46,26 +45,26 @@ ContextMetrics Get context metrics for a specific gamePk. Returns a json file containing raw coordinate data and refined calculated metrics.

This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param guid Unique identifier for a play within a game - @return ApiContextMetricsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param guid Unique identifier for a play within a game + @return ApiContextMetricsRequest */ func (a *AnalyticsAPIService) ContextMetrics(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsRequest { return ApiContextMetricsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - guid: guid, + ctx: ctx, + gamePk: gamePk, + guid: guid, } } // Execute executes the request func (a *AnalyticsAPIService) ContextMetricsExecute(r ApiContextMetricsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetrics") @@ -130,11 +129,11 @@ func (a *AnalyticsAPIService) ContextMetricsExecute(r ApiContextMetricsRequest) } type ApiContextMetricsWithAveragesRequest struct { - ctx context.Context + ctx context.Context ApiService *AnalyticsAPIService - gamePk interface{} - guid interface{} - fields *interface{} + gamePk interface{} + guid interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -152,26 +151,26 @@ ContextMetricsWithAverages Get a json file containing raw coordinate data and re Returns a json file containing raw coordinate data and refined calculated metrics.

This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param guid Unique identifier for a play within a game - @return ApiContextMetricsWithAveragesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param guid Unique identifier for a play within a game + @return ApiContextMetricsWithAveragesRequest */ func (a *AnalyticsAPIService) ContextMetricsWithAverages(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsWithAveragesRequest { return ApiContextMetricsWithAveragesRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - guid: guid, + ctx: ctx, + gamePk: gamePk, + guid: guid, } } // Execute executes the request func (a *AnalyticsAPIService) ContextMetricsWithAveragesExecute(r ApiContextMetricsWithAveragesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetricsWithAverages") @@ -236,11 +235,11 @@ func (a *AnalyticsAPIService) ContextMetricsWithAveragesExecute(r ApiContextMetr } type ApiContextMetricsWithAveragesPostRequest struct { - ctx context.Context + ctx context.Context ApiService *AnalyticsAPIService - gamePk interface{} - guid interface{} - fields *interface{} + gamePk interface{} + guid interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -258,26 +257,26 @@ ContextMetricsWithAveragesPost Get a json file containing raw coordinate data an Returns a json file containing raw coordinate data and refined calculated metrics.

This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param guid Unique identifier for a play within a game - @return ApiContextMetricsWithAveragesPostRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param guid Unique identifier for a play within a game + @return ApiContextMetricsWithAveragesPostRequest */ func (a *AnalyticsAPIService) ContextMetricsWithAveragesPost(ctx context.Context, gamePk interface{}, guid interface{}) ApiContextMetricsWithAveragesPostRequest { return ApiContextMetricsWithAveragesPostRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - guid: guid, + ctx: ctx, + gamePk: gamePk, + guid: guid, } } // Execute executes the request func (a *AnalyticsAPIService) ContextMetricsWithAveragesPostExecute(r ApiContextMetricsWithAveragesPostRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ContextMetricsWithAveragesPost") @@ -342,22 +341,22 @@ func (a *AnalyticsAPIService) ContextMetricsWithAveragesPostExecute(r ApiContext } type ApiGameGuidsRequest struct { - ctx context.Context - ApiService *AnalyticsAPIService - gamePk interface{} - fields *interface{} - gameModeId *interface{} - isPitch *interface{} - isHit *interface{} - isPickoff *interface{} - hasUpdates *interface{} - since *interface{} - updatedSince *interface{} - lastPlayTime *interface{} - lastUpdatedTime *interface{} + ctx context.Context + ApiService *AnalyticsAPIService + gamePk interface{} + fields *interface{} + gameModeId *interface{} + isPitch *interface{} + isHit *interface{} + isPickoff *interface{} + hasUpdates *interface{} + since *interface{} + updatedSince *interface{} + lastPlayTime *interface{} + lastUpdatedTime *interface{} lastMetricsUpdatedTime *interface{} - lastAuditUpdatedTime *interface{} - lastVideoUpdatedTime *interface{} + lastAuditUpdatedTime *interface{} + lastVideoUpdatedTime *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -443,26 +442,26 @@ func (r ApiGameGuidsRequest) Execute() (*http.Response, error) { } /* -GameGuids Get the GUIDs (plays) for a specific game. +GameGuids Get the GUIDs (plays) for a specific game. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiGameGuidsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiGameGuidsRequest */ func (a *AnalyticsAPIService) GameGuids(ctx context.Context, gamePk interface{}) ApiGameGuidsRequest { return ApiGameGuidsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *AnalyticsAPIService) GameGuidsExecute(r ApiGameGuidsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuids") @@ -562,29 +561,29 @@ func (a *AnalyticsAPIService) GameGuidsExecute(r ApiGameGuidsRequest) (*http.Res } type ApiGameGuidsFromPostgresRangeRequest struct { - ctx context.Context - ApiService *AnalyticsAPIService - fields *interface{} - gameModeId *interface{} - isPitch *interface{} - isHit *interface{} - isPickoff *interface{} - isNonStatcast *interface{} - gamedayType *interface{} - hasUpdates *interface{} - lastPlayTime *interface{} - lastUpdatedTime *interface{} + ctx context.Context + ApiService *AnalyticsAPIService + fields *interface{} + gameModeId *interface{} + isPitch *interface{} + isHit *interface{} + isPickoff *interface{} + isNonStatcast *interface{} + gamedayType *interface{} + hasUpdates *interface{} + lastPlayTime *interface{} + lastUpdatedTime *interface{} lastMetricsUpdatedTime *interface{} - lastAuditUpdatedTime *interface{} - lastVideoUpdatedTime *interface{} - gameDate *interface{} - sportId *interface{} - gameType *interface{} - trackingSystemOwner *interface{} - season *interface{} - sortBy *interface{} - limit *interface{} - offset *interface{} + lastAuditUpdatedTime *interface{} + lastVideoUpdatedTime *interface{} + gameDate *interface{} + sportId *interface{} + gameType *interface{} + trackingSystemOwner *interface{} + season *interface{} + sortBy *interface{} + limit *interface{} + offset *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -718,24 +717,24 @@ func (r ApiGameGuidsFromPostgresRangeRequest) Execute() (*http.Response, error) } /* -GameGuidsFromPostgresRange Get the GUIDs (plays) for a specific game. +GameGuidsFromPostgresRange Get the GUIDs (plays) for a specific game. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGameGuidsFromPostgresRangeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGameGuidsFromPostgresRangeRequest */ func (a *AnalyticsAPIService) GameGuidsFromPostgresRange(ctx context.Context) ApiGameGuidsFromPostgresRangeRequest { return ApiGameGuidsFromPostgresRangeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeExecute(r ApiGameGuidsFromPostgresRangeRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuidsFromPostgresRange") @@ -858,30 +857,30 @@ func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeExecute(r ApiGameGuidsFr } type ApiGameGuidsFromPostgresRangeByGameRequest struct { - ctx context.Context - ApiService *AnalyticsAPIService - fields *interface{} - gameModeId *interface{} - isPitch *interface{} - isHit *interface{} - isPickoff *interface{} - isNonStatcast *interface{} - gamedayType *interface{} - hasUpdates *interface{} - lastPlayTime *interface{} - lastVideoUpdatedTime *interface{} - lastUpdatedTime *interface{} + ctx context.Context + ApiService *AnalyticsAPIService + fields *interface{} + gameModeId *interface{} + isPitch *interface{} + isHit *interface{} + isPickoff *interface{} + isNonStatcast *interface{} + gamedayType *interface{} + hasUpdates *interface{} + lastPlayTime *interface{} + lastVideoUpdatedTime *interface{} + lastUpdatedTime *interface{} lastMetricsUpdatedTime *interface{} - lastAuditUpdatedTime *interface{} - gameDate *interface{} - sportId *interface{} - gameType *interface{} - season *interface{} - trackingSystemOwner *interface{} - sortBy *interface{} - limit *interface{} - offset *interface{} - scheduleEventTypes *interface{} + lastAuditUpdatedTime *interface{} + gameDate *interface{} + sportId *interface{} + gameType *interface{} + season *interface{} + trackingSystemOwner *interface{} + sortBy *interface{} + limit *interface{} + offset *interface{} + scheduleEventTypes *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1023,22 +1022,22 @@ func (r ApiGameGuidsFromPostgresRangeByGameRequest) Execute() (*http.Response, e /* GameGuidsFromPostgresRangeByGame Get all games by updated date. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGameGuidsFromPostgresRangeByGameRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGameGuidsFromPostgresRangeByGameRequest */ func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGame(ctx context.Context) ApiGameGuidsFromPostgresRangeByGameRequest { return ApiGameGuidsFromPostgresRangeByGameRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGameExecute(r ApiGameGuidsFromPostgresRangeByGameRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameGuidsFromPostgresRangeByGame") @@ -1164,10 +1163,10 @@ func (a *AnalyticsAPIService) GameGuidsFromPostgresRangeByGameExecute(r ApiGameG } type ApiGameLastPitchRequest struct { - ctx context.Context + ctx context.Context ApiService *AnalyticsAPIService - gamePks *interface{} - fields *interface{} + gamePks *interface{} + fields *interface{} } // Unique Primary Key Representing a Game @@ -1189,22 +1188,22 @@ func (r ApiGameLastPitchRequest) Execute() (*http.Response, error) { /* GameLastPitch Get the last pitch for a list of games - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGameLastPitchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGameLastPitchRequest */ func (a *AnalyticsAPIService) GameLastPitch(ctx context.Context) ApiGameLastPitchRequest { return ApiGameLastPitchRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *AnalyticsAPIService) GameLastPitchExecute(r ApiGameLastPitchRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.GameLastPitch") @@ -1271,12 +1270,12 @@ func (a *AnalyticsAPIService) GameLastPitchExecute(r ApiGameLastPitchRequest) (* } type ApiHomeRunBallparksRequest struct { - ctx context.Context - ApiService *AnalyticsAPIService - gamePk interface{} - guid interface{} + ctx context.Context + ApiService *AnalyticsAPIService + gamePk interface{} + guid interface{} isHomeRunParks *interface{} - fields *interface{} + fields *interface{} } func (r ApiHomeRunBallparksRequest) IsHomeRunParks(isHomeRunParks interface{}) ApiHomeRunBallparksRequest { @@ -1299,26 +1298,26 @@ HomeRunBallparks Get if the play is a home run is each park for a specific play. Returns a json file containing raw coordinate data and refined calculated metrics.

This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param guid Unique identifier for a play within a game - @return ApiHomeRunBallparksRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param guid Unique identifier for a play within a game + @return ApiHomeRunBallparksRequest */ func (a *AnalyticsAPIService) HomeRunBallparks(ctx context.Context, gamePk interface{}, guid interface{}) ApiHomeRunBallparksRequest { return ApiHomeRunBallparksRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - guid: guid, + ctx: ctx, + gamePk: gamePk, + guid: guid, } } // Execute executes the request func (a *AnalyticsAPIService) HomeRunBallparksExecute(r ApiHomeRunBallparksRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.HomeRunBallparks") @@ -1387,11 +1386,11 @@ func (a *AnalyticsAPIService) HomeRunBallparksExecute(r ApiHomeRunBallparksReque } type ApiParsedJsonFormattedAnalyticsRequest struct { - ctx context.Context + ctx context.Context ApiService *AnalyticsAPIService - gamePk interface{} - guid interface{} - fields *interface{} + gamePk interface{} + guid interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1409,26 +1408,26 @@ ParsedJsonFormattedAnalytics Get Statcast data for a specific play. Returns a json file containing raw coordinate data and refined calculated metrics.

This responses can be very large, so it is strongly recommended that you pass "Accept-Encoding: gzip" as a header to have the responses compressed. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param guid Unique identifier for a play within a game - @return ApiParsedJsonFormattedAnalyticsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param guid Unique identifier for a play within a game + @return ApiParsedJsonFormattedAnalyticsRequest */ func (a *AnalyticsAPIService) ParsedJsonFormattedAnalytics(ctx context.Context, gamePk interface{}, guid interface{}) ApiParsedJsonFormattedAnalyticsRequest { return ApiParsedJsonFormattedAnalyticsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - guid: guid, + ctx: ctx, + gamePk: gamePk, + guid: guid, } } // Execute executes the request func (a *AnalyticsAPIService) ParsedJsonFormattedAnalyticsExecute(r ApiParsedJsonFormattedAnalyticsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AnalyticsAPIService.ParsedJsonFormattedAnalytics") diff --git a/api/api_attendance.go b/api/api_attendance.go index ca99da3..5bb1922 100644 --- a/api/api_attendance.go +++ b/api/api_attendance.go @@ -18,22 +18,21 @@ import ( "net/url" ) - // AttendanceAPIService AttendanceAPI service type AttendanceAPIService service type ApiGetTeamAttendanceRequest struct { - ctx context.Context - ApiService *AttendanceAPIService - teamId *interface{} - leagueId *interface{} - season *interface{} + ctx context.Context + ApiService *AttendanceAPIService + teamId *interface{} + leagueId *interface{} + season *interface{} leagueListId *interface{} - gameType *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - fields *interface{} + gameType *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + fields *interface{} } // Unique Team Identifier. Format: 141, 147, etc @@ -97,22 +96,22 @@ func (r ApiGetTeamAttendanceRequest) Execute() (*http.Response, error) { /* GetTeamAttendance Get team attendance - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetTeamAttendanceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetTeamAttendanceRequest */ func (a *AttendanceAPIService) GetTeamAttendance(ctx context.Context) ApiGetTeamAttendanceRequest { return ApiGetTeamAttendanceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *AttendanceAPIService) GetTeamAttendanceExecute(r ApiGetTeamAttendanceRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AttendanceAPIService.GetTeamAttendance") diff --git a/api/api_awards.go b/api/api_awards.go index c84689d..b9fed0b 100644 --- a/api/api_awards.go +++ b/api/api_awards.go @@ -19,18 +19,17 @@ import ( "strings" ) - // AwardsAPIService AwardsAPI service type AwardsAPIService service type ApiAwardRecipientsRequest struct { - ctx context.Context + ctx context.Context ApiService *AwardsAPIService - awardId interface{} - season *interface{} - sportId *interface{} - leagueId *interface{} - fields *interface{} + awardId interface{} + season *interface{} + sportId *interface{} + leagueId *interface{} + fields *interface{} } // Season of play @@ -63,24 +62,24 @@ func (r ApiAwardRecipientsRequest) Execute() (*http.Response, error) { /* AwardRecipients View recipients of an award - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param awardId Unique Award Identifier. Available awards in /api/v1/awards - @return ApiAwardRecipientsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param awardId Unique Award Identifier. Available awards in /api/v1/awards + @return ApiAwardRecipientsRequest */ func (a *AwardsAPIService) AwardRecipients(ctx context.Context, awardId interface{}) ApiAwardRecipientsRequest { return ApiAwardRecipientsRequest{ ApiService: a, - ctx: ctx, - awardId: awardId, + ctx: ctx, + awardId: awardId, } } // Execute executes the request func (a *AwardsAPIService) AwardRecipientsExecute(r ApiAwardRecipientsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.AwardRecipients") @@ -153,11 +152,11 @@ func (a *AwardsAPIService) AwardRecipientsExecute(r ApiAwardRecipientsRequest) ( } type ApiAwardsRequest struct { - ctx context.Context + ctx context.Context ApiService *AwardsAPIService - awardId interface{} - orgId *interface{} - fields *interface{} + awardId interface{} + orgId *interface{} + fields *interface{} } // Comma delimited list of top level organizations of a sport @@ -179,24 +178,24 @@ func (r ApiAwardsRequest) Execute() (*http.Response, error) { /* Awards View awards info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param awardId Unique Award Identifier. Available awards in /api/v1/awards - @return ApiAwardsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param awardId Unique Award Identifier. Available awards in /api/v1/awards + @return ApiAwardsRequest */ func (a *AwardsAPIService) Awards(ctx context.Context, awardId interface{}) ApiAwardsRequest { return ApiAwardsRequest{ ApiService: a, - ctx: ctx, - awardId: awardId, + ctx: ctx, + awardId: awardId, } } // Execute executes the request func (a *AwardsAPIService) AwardsExecute(r ApiAwardsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.Awards") @@ -263,11 +262,11 @@ func (a *AwardsAPIService) AwardsExecute(r ApiAwardsRequest) (*http.Response, er } type ApiAwards1Request struct { - ctx context.Context + ctx context.Context ApiService *AwardsAPIService - awardId interface{} - orgId *interface{} - fields *interface{} + awardId interface{} + orgId *interface{} + fields *interface{} } // Comma delimited list of top level organizations of a sport @@ -289,24 +288,24 @@ func (r ApiAwards1Request) Execute() (*http.Response, error) { /* Awards1 View awards info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param awardId Unique Award Identifier. Available awards in /api/v1/awards - @return ApiAwards1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param awardId Unique Award Identifier. Available awards in /api/v1/awards + @return ApiAwards1Request */ func (a *AwardsAPIService) Awards1(ctx context.Context, awardId interface{}) ApiAwards1Request { return ApiAwards1Request{ ApiService: a, - ctx: ctx, - awardId: awardId, + ctx: ctx, + awardId: awardId, } } // Execute executes the request func (a *AwardsAPIService) Awards1Execute(r ApiAwards1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "AwardsAPIService.Awards1") diff --git a/api/api_bat_tracking.go b/api/api_bat_tracking.go index 3627abe..8226a8c 100644 --- a/api/api_bat_tracking.go +++ b/api/api_bat_tracking.go @@ -19,16 +19,15 @@ import ( "strings" ) - // BatTrackingAPIService BatTrackingAPI service type BatTrackingAPIService service type ApiBatTrackingRequest struct { - ctx context.Context + ctx context.Context ApiService *BatTrackingAPIService - gamePk interface{} - playId interface{} - fields *interface{} + gamePk interface{} + playId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -46,26 +45,26 @@ BatTracking View Bat Tracking Data by playId and gameId This endpoint allows you to pull bat tracking data by gameId and playId - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param playId Unique play identifier - @return ApiBatTrackingRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param playId Unique play identifier + @return ApiBatTrackingRequest */ func (a *BatTrackingAPIService) BatTracking(ctx context.Context, gamePk interface{}, playId interface{}) ApiBatTrackingRequest { return ApiBatTrackingRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - playId: playId, + ctx: ctx, + gamePk: gamePk, + playId: playId, } } // Execute executes the request func (a *BatTrackingAPIService) BatTrackingExecute(r ApiBatTrackingRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BatTrackingAPIService.BatTracking") diff --git a/api/api_biomechanics.go b/api/api_biomechanics.go index ab2df8f..72b1789 100644 --- a/api/api_biomechanics.go +++ b/api/api_biomechanics.go @@ -19,17 +19,16 @@ import ( "strings" ) - // BiomechanicsAPIService BiomechanicsAPI service type BiomechanicsAPIService service type ApiBiomechanicalRequest struct { - ctx context.Context + ctx context.Context ApiService *BiomechanicsAPIService - gamePk interface{} - playId interface{} + gamePk interface{} + playId interface{} positionId interface{} - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -47,18 +46,18 @@ Biomechanical View Biomechanical data by playId and gameId filtered by player po This endpoint allows you to pull biomechanical tracking data by gameId and playId filtered by player positionId - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param playId Unique play identifier - @param positionId Position number. Format: 1, 2, 3, etc - @return ApiBiomechanicalRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param playId Unique play identifier + @param positionId Position number. Format: 1, 2, 3, etc + @return ApiBiomechanicalRequest */ func (a *BiomechanicsAPIService) Biomechanical(ctx context.Context, gamePk interface{}, playId interface{}, positionId interface{}) ApiBiomechanicalRequest { return ApiBiomechanicalRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - playId: playId, + ctx: ctx, + gamePk: gamePk, + playId: playId, positionId: positionId, } } @@ -66,9 +65,9 @@ func (a *BiomechanicsAPIService) Biomechanical(ctx context.Context, gamePk inter // Execute executes the request func (a *BiomechanicsAPIService) BiomechanicalExecute(r ApiBiomechanicalRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BiomechanicsAPIService.Biomechanical") diff --git a/api/api_broadcast.go b/api/api_broadcast.go index f253097..b595aee 100644 --- a/api/api_broadcast.go +++ b/api/api_broadcast.go @@ -18,15 +18,14 @@ import ( "net/url" ) - // BroadcastAPIService BroadcastAPI service type BroadcastAPIService service type ApiGetAllBroadcastersRequest struct { - ctx context.Context - ApiService *BroadcastAPIService + ctx context.Context + ApiService *BroadcastAPIService activeStatus *interface{} - fields *interface{} + fields *interface{} } // Current status of the broadcaster. Format: Active = y, inactive = n, both = b @@ -48,22 +47,22 @@ func (r ApiGetAllBroadcastersRequest) Execute() (*http.Response, error) { /* GetAllBroadcasters Get All Active Broadcasters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetAllBroadcastersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetAllBroadcastersRequest */ func (a *BroadcastAPIService) GetAllBroadcasters(ctx context.Context) ApiGetAllBroadcastersRequest { return ApiGetAllBroadcastersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *BroadcastAPIService) GetAllBroadcastersExecute(r ApiGetAllBroadcastersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BroadcastAPIService.GetAllBroadcasters") @@ -129,10 +128,10 @@ func (a *BroadcastAPIService) GetAllBroadcastersExecute(r ApiGetAllBroadcastersR } type ApiGetBroadcastsRequest struct { - ctx context.Context - ApiService *BroadcastAPIService + ctx context.Context + ApiService *BroadcastAPIService broadcasterIds *interface{} - fields *interface{} + fields *interface{} } // All of the broadcast details @@ -154,22 +153,22 @@ func (r ApiGetBroadcastsRequest) Execute() (*http.Response, error) { /* GetBroadcasts Get Broadcasters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetBroadcastsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetBroadcastsRequest */ func (a *BroadcastAPIService) GetBroadcasts(ctx context.Context) ApiGetBroadcastsRequest { return ApiGetBroadcastsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *BroadcastAPIService) GetBroadcastsExecute(r ApiGetBroadcastsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "BroadcastAPIService.GetBroadcasts") diff --git a/api/api_conference.go b/api/api_conference.go index da0fce5..eef76b4 100644 --- a/api/api_conference.go +++ b/api/api_conference.go @@ -19,17 +19,16 @@ import ( "strings" ) - // ConferenceAPIService ConferenceAPI service type ConferenceAPIService service type ApiConferencesRequest struct { - ctx context.Context - ApiService *ConferenceAPIService - conferenceId interface{} - season *interface{} + ctx context.Context + ApiService *ConferenceAPIService + conferenceId interface{} + season *interface{} includeInactive *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -56,14 +55,14 @@ func (r ApiConferencesRequest) Execute() (*http.Response, error) { /* Conferences View conference info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param conferenceId - @return ApiConferencesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param conferenceId + @return ApiConferencesRequest */ func (a *ConferenceAPIService) Conferences(ctx context.Context, conferenceId interface{}) ApiConferencesRequest { return ApiConferencesRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, conferenceId: conferenceId, } } @@ -71,9 +70,9 @@ func (a *ConferenceAPIService) Conferences(ctx context.Context, conferenceId int // Execute executes the request func (a *ConferenceAPIService) ConferencesExecute(r ApiConferencesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConferenceAPIService.Conferences") @@ -143,12 +142,12 @@ func (a *ConferenceAPIService) ConferencesExecute(r ApiConferencesRequest) (*htt } type ApiConferences1Request struct { - ctx context.Context - ApiService *ConferenceAPIService - conferenceId interface{} - season *interface{} + ctx context.Context + ApiService *ConferenceAPIService + conferenceId interface{} + season *interface{} includeInactive *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -175,14 +174,14 @@ func (r ApiConferences1Request) Execute() (*http.Response, error) { /* Conferences1 View conference info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param conferenceId - @return ApiConferences1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param conferenceId + @return ApiConferences1Request */ func (a *ConferenceAPIService) Conferences1(ctx context.Context, conferenceId interface{}) ApiConferences1Request { return ApiConferences1Request{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, conferenceId: conferenceId, } } @@ -190,9 +189,9 @@ func (a *ConferenceAPIService) Conferences1(ctx context.Context, conferenceId in // Execute executes the request func (a *ConferenceAPIService) Conferences1Execute(r ApiConferences1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ConferenceAPIService.Conferences1") diff --git a/api/api_division.go b/api/api_division.go index 7c37580..d0d2869 100644 --- a/api/api_division.go +++ b/api/api_division.go @@ -19,19 +19,18 @@ import ( "strings" ) - // DivisionAPIService DivisionAPI service type DivisionAPIService service type ApiDivisionsRequest struct { - ctx context.Context - ApiService *DivisionAPIService - divisionId interface{} + ctx context.Context + ApiService *DivisionAPIService + divisionId interface{} includeInactive *interface{} - leagueId *interface{} - sportId *interface{} - season *interface{} - fields *interface{} + leagueId *interface{} + sportId *interface{} + season *interface{} + fields *interface{} } // Whether or not to include inactive @@ -73,14 +72,14 @@ Divisions Get division information This endpoint allows you to pull divisions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param divisionId Unique Division Identifier - @return ApiDivisionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param divisionId Unique Division Identifier + @return ApiDivisionsRequest */ func (a *DivisionAPIService) Divisions(ctx context.Context, divisionId interface{}) ApiDivisionsRequest { return ApiDivisionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, divisionId: divisionId, } } @@ -88,9 +87,9 @@ func (a *DivisionAPIService) Divisions(ctx context.Context, divisionId interface // Execute executes the request func (a *DivisionAPIService) DivisionsExecute(r ApiDivisionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DivisionAPIService.Divisions") @@ -166,14 +165,14 @@ func (a *DivisionAPIService) DivisionsExecute(r ApiDivisionsRequest) (*http.Resp } type ApiDivisions1Request struct { - ctx context.Context - ApiService *DivisionAPIService - divisionId interface{} + ctx context.Context + ApiService *DivisionAPIService + divisionId interface{} includeInactive *interface{} - leagueId *interface{} - sportId *interface{} - season *interface{} - fields *interface{} + leagueId *interface{} + sportId *interface{} + season *interface{} + fields *interface{} } // Whether or not to include inactive @@ -215,14 +214,14 @@ Divisions1 Get division information This endpoint allows you to pull divisions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param divisionId Unique Division Identifier - @return ApiDivisions1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param divisionId Unique Division Identifier + @return ApiDivisions1Request */ func (a *DivisionAPIService) Divisions1(ctx context.Context, divisionId interface{}) ApiDivisions1Request { return ApiDivisions1Request{ ApiService: a, - ctx: ctx, + ctx: ctx, divisionId: divisionId, } } @@ -230,9 +229,9 @@ func (a *DivisionAPIService) Divisions1(ctx context.Context, divisionId interfac // Execute executes the request func (a *DivisionAPIService) Divisions1Execute(r ApiDivisions1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DivisionAPIService.Divisions1") diff --git a/api/api_draft.go b/api/api_draft.go index 0f9cd4a..1353e1a 100644 --- a/api/api_draft.go +++ b/api/api_draft.go @@ -19,29 +19,28 @@ import ( "strings" ) - // DraftAPIService DraftAPI service type DraftAPIService service type ApiDraftPicksRequest struct { - ctx context.Context - ApiService *DraftAPIService - year interface{} - limit *interface{} - offset *interface{} - fields *interface{} - order *interface{} - sortBy *interface{} - drafted *interface{} - round *interface{} - name *interface{} - school *interface{} - position *interface{} - team *interface{} - teamId *interface{} - state *interface{} - country *interface{} - playerId *interface{} + ctx context.Context + ApiService *DraftAPIService + year interface{} + limit *interface{} + offset *interface{} + fields *interface{} + order *interface{} + sortBy *interface{} + drafted *interface{} + round *interface{} + name *interface{} + school *interface{} + position *interface{} + team *interface{} + teamId *interface{} + state *interface{} + country *interface{} + playerId *interface{} bisPlayerId *interface{} } @@ -148,24 +147,24 @@ func (r ApiDraftPicksRequest) Execute() (*http.Response, error) { /* DraftPicks View MLB Drafted Players - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param year Year the player was drafted. Format: 2000 - @return ApiDraftPicksRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param year Year the player was drafted. Format: 2000 + @return ApiDraftPicksRequest */ func (a *DraftAPIService) DraftPicks(ctx context.Context, year interface{}) ApiDraftPicksRequest { return ApiDraftPicksRequest{ ApiService: a, - ctx: ctx, - year: year, + ctx: ctx, + year: year, } } // Execute executes the request func (a *DraftAPIService) DraftPicksExecute(r ApiDraftPicksRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftPicks") @@ -274,24 +273,24 @@ func (a *DraftAPIService) DraftPicksExecute(r ApiDraftPicksRequest) (*http.Respo } type ApiDraftPicks1Request struct { - ctx context.Context - ApiService *DraftAPIService - year interface{} - limit *interface{} - offset *interface{} - fields *interface{} - order *interface{} - sortBy *interface{} - drafted *interface{} - round *interface{} - name *interface{} - school *interface{} - position *interface{} - team *interface{} - teamId *interface{} - state *interface{} - country *interface{} - playerId *interface{} + ctx context.Context + ApiService *DraftAPIService + year interface{} + limit *interface{} + offset *interface{} + fields *interface{} + order *interface{} + sortBy *interface{} + drafted *interface{} + round *interface{} + name *interface{} + school *interface{} + position *interface{} + team *interface{} + teamId *interface{} + state *interface{} + country *interface{} + playerId *interface{} bisPlayerId *interface{} } @@ -398,24 +397,24 @@ func (r ApiDraftPicks1Request) Execute() (*http.Response, error) { /* DraftPicks1 View MLB Drafted Players - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param year Year the player was drafted. Format: 2000 - @return ApiDraftPicks1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param year Year the player was drafted. Format: 2000 + @return ApiDraftPicks1Request */ func (a *DraftAPIService) DraftPicks1(ctx context.Context, year interface{}) ApiDraftPicks1Request { return ApiDraftPicks1Request{ ApiService: a, - ctx: ctx, - year: year, + ctx: ctx, + year: year, } } // Execute executes the request func (a *DraftAPIService) DraftPicks1Execute(r ApiDraftPicks1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftPicks1") @@ -524,24 +523,24 @@ func (a *DraftAPIService) DraftPicks1Execute(r ApiDraftPicks1Request) (*http.Res } type ApiDraftProspectsRequest struct { - ctx context.Context - ApiService *DraftAPIService - year interface{} - limit *interface{} - offset *interface{} - fields *interface{} - order *interface{} - sortBy *interface{} - drafted *interface{} - round *interface{} - name *interface{} - school *interface{} - position *interface{} - team *interface{} - teamId *interface{} - state *interface{} - country *interface{} - playerId *interface{} + ctx context.Context + ApiService *DraftAPIService + year interface{} + limit *interface{} + offset *interface{} + fields *interface{} + order *interface{} + sortBy *interface{} + drafted *interface{} + round *interface{} + name *interface{} + school *interface{} + position *interface{} + team *interface{} + teamId *interface{} + state *interface{} + country *interface{} + playerId *interface{} bisPlayerId *interface{} } @@ -648,24 +647,24 @@ func (r ApiDraftProspectsRequest) Execute() (*http.Response, error) { /* DraftProspects View MLB Draft Prospects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param year Year the player was drafted. Format: 2000 - @return ApiDraftProspectsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param year Year the player was drafted. Format: 2000 + @return ApiDraftProspectsRequest */ func (a *DraftAPIService) DraftProspects(ctx context.Context, year interface{}) ApiDraftProspectsRequest { return ApiDraftProspectsRequest{ ApiService: a, - ctx: ctx, - year: year, + ctx: ctx, + year: year, } } // Execute executes the request func (a *DraftAPIService) DraftProspectsExecute(r ApiDraftProspectsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftProspects") @@ -774,24 +773,24 @@ func (a *DraftAPIService) DraftProspectsExecute(r ApiDraftProspectsRequest) (*ht } type ApiDraftProspects1Request struct { - ctx context.Context - ApiService *DraftAPIService - year interface{} - limit *interface{} - offset *interface{} - fields *interface{} - order *interface{} - sortBy *interface{} - drafted *interface{} - round *interface{} - name *interface{} - school *interface{} - position *interface{} - team *interface{} - teamId *interface{} - state *interface{} - country *interface{} - playerId *interface{} + ctx context.Context + ApiService *DraftAPIService + year interface{} + limit *interface{} + offset *interface{} + fields *interface{} + order *interface{} + sortBy *interface{} + drafted *interface{} + round *interface{} + name *interface{} + school *interface{} + position *interface{} + team *interface{} + teamId *interface{} + state *interface{} + country *interface{} + playerId *interface{} bisPlayerId *interface{} } @@ -898,24 +897,24 @@ func (r ApiDraftProspects1Request) Execute() (*http.Response, error) { /* DraftProspects1 View MLB Draft Prospects - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param year Year the player was drafted. Format: 2000 - @return ApiDraftProspects1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param year Year the player was drafted. Format: 2000 + @return ApiDraftProspects1Request */ func (a *DraftAPIService) DraftProspects1(ctx context.Context, year interface{}) ApiDraftProspects1Request { return ApiDraftProspects1Request{ ApiService: a, - ctx: ctx, - year: year, + ctx: ctx, + year: year, } } // Execute executes the request func (a *DraftAPIService) DraftProspects1Execute(r ApiDraftProspects1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.DraftProspects1") @@ -1024,10 +1023,10 @@ func (a *DraftAPIService) DraftProspects1Execute(r ApiDraftProspects1Request) (* } type ApiLatestDraftPicksRequest struct { - ctx context.Context + ctx context.Context ApiService *DraftAPIService - year interface{} - fields *interface{} + year interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1043,24 +1042,24 @@ func (r ApiLatestDraftPicksRequest) Execute() (*http.Response, error) { /* LatestDraftPicks Get the last drafted player and the next 5 teams up to pick - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param year Year the player was drafted. Format: 2000 - @return ApiLatestDraftPicksRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param year Year the player was drafted. Format: 2000 + @return ApiLatestDraftPicksRequest */ func (a *DraftAPIService) LatestDraftPicks(ctx context.Context, year interface{}) ApiLatestDraftPicksRequest { return ApiLatestDraftPicksRequest{ ApiService: a, - ctx: ctx, - year: year, + ctx: ctx, + year: year, } } // Execute executes the request func (a *DraftAPIService) LatestDraftPicksExecute(r ApiLatestDraftPicksRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DraftAPIService.LatestDraftPicks") diff --git a/api/api_game.go b/api/api_game.go index 378fcb5..845b511 100644 --- a/api/api_game.go +++ b/api/api_game.go @@ -19,20 +19,19 @@ import ( "strings" ) - // GameAPIService GameAPI service type GameAPIService service type ApiBoxscoreRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} + fields *interface{} inclusiveTimecode *interface{} - numPlayers *interface{} - noTies *interface{} - accent *interface{} + numPlayers *interface{} + noTies *interface{} + accent *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -80,24 +79,24 @@ Boxscore Get game boxscore. This endpoint allows you to pull a boxscore - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiBoxscoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiBoxscoreRequest */ func (a *GameAPIService) Boxscore(ctx context.Context, gamePk interface{}) ApiBoxscoreRequest { return ApiBoxscoreRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) BoxscoreExecute(r ApiBoxscoreRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Boxscore") @@ -176,11 +175,11 @@ func (a *GameAPIService) BoxscoreExecute(r ApiBoxscoreRequest) (*http.Response, } type ApiColorFeedRequest struct { - ctx context.Context + ctx context.Context ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + gamePk interface{} + timecode *interface{} + fields *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -204,24 +203,24 @@ ColorFeed Get game color feed. This API can return very large payloads. It is STRONGLY recommended that clients ask for diffs and use "Accept-Encoding: gzip" header. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiColorFeedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiColorFeedRequest */ func (a *GameAPIService) ColorFeed(ctx context.Context, gamePk interface{}) ApiColorFeedRequest { return ApiColorFeedRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) ColorFeedExecute(r ApiColorFeedRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.ColorFeed") @@ -288,9 +287,9 @@ func (a *GameAPIService) ColorFeedExecute(r ApiColorFeedRequest) (*http.Response } type ApiColorTimestampsRequest struct { - ctx context.Context + ctx context.Context ApiService *GameAPIService - gamePk interface{} + gamePk interface{} } func (r ApiColorTimestampsRequest) Execute() (*http.Response, error) { @@ -302,24 +301,24 @@ ColorTimestamps Retrieve all of the color timestamps for a game. This can be used for replaying games. Endpoint returns all of the timecodes that can be used with diffs for /v1/game/{game_pk}/feed/color - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiColorTimestampsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiColorTimestampsRequest */ func (a *GameAPIService) ColorTimestamps(ctx context.Context, gamePk interface{}) ApiColorTimestampsRequest { return ApiColorTimestampsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) ColorTimestampsExecute(r ApiColorTimestampsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.ColorTimestamps") @@ -380,9 +379,9 @@ func (a *GameAPIService) ColorTimestampsExecute(r ApiColorTimestampsRequest) (*h } type ApiContentRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} highlightLimit *interface{} } @@ -399,24 +398,24 @@ func (r ApiContentRequest) Execute() (*http.Response, error) { /* Content Retrieve all content for a game. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk - @return ApiContentRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk + @return ApiContentRequest */ func (a *GameAPIService) Content(ctx context.Context, gamePk interface{}) ApiContentRequest { return ApiContentRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) ContentExecute(r ApiContentRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Content") @@ -480,18 +479,18 @@ func (a *GameAPIService) ContentExecute(r ApiContentRequest) (*http.Response, er } type ApiCurrentGameStats1Request struct { - ctx context.Context - ApiService *GameAPIService + ctx context.Context + ApiService *GameAPIService updatedSince *interface{} - sportId *interface{} - sportIds *interface{} - gameType *interface{} - gameTypes *interface{} - season *interface{} - gamePks *interface{} - limit *interface{} - offset *interface{} - fields *interface{} + sportId *interface{} + sportIds *interface{} + gameType *interface{} + gameTypes *interface{} + season *interface{} + gamePks *interface{} + limit *interface{} + offset *interface{} + fields *interface{} } // Format: YYYY-MM-DDTHH:MM:SSZ @@ -561,22 +560,22 @@ func (r ApiCurrentGameStats1Request) Execute() (*http.Response, error) { /* CurrentGameStats1 View a game change log - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCurrentGameStats1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCurrentGameStats1Request */ func (a *GameAPIService) CurrentGameStats1(ctx context.Context) ApiCurrentGameStats1Request { return ApiCurrentGameStats1Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *GameAPIService) CurrentGameStats1Execute(r ApiCurrentGameStats1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.CurrentGameStats1") @@ -666,11 +665,11 @@ func (a *GameAPIService) CurrentGameStats1Execute(r ApiCurrentGameStats1Request) } type ApiGetGameContextMetricsRequest struct { - ctx context.Context + ctx context.Context ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + gamePk interface{} + timecode *interface{} + fields *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -692,24 +691,24 @@ func (r ApiGetGameContextMetricsRequest) Execute() (*http.Response, error) { /* GetGameContextMetrics Get the context metrics for this game based on its current state - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiGetGameContextMetricsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiGetGameContextMetricsRequest */ func (a *GameAPIService) GetGameContextMetrics(ctx context.Context, gamePk interface{}) ApiGetGameContextMetricsRequest { return ApiGetGameContextMetricsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) GetGameContextMetricsExecute(r ApiGetGameContextMetricsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetGameContextMetrics") @@ -776,13 +775,13 @@ func (a *GameAPIService) GetGameContextMetricsExecute(r ApiGetGameContextMetrics } type ApiGetGameWithMetricsRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} inclusiveTimecode *interface{} - fields *interface{} - accent *interface{} + fields *interface{} + accent *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -816,24 +815,24 @@ func (r ApiGetGameWithMetricsRequest) Execute() (*http.Response, error) { /* GetGameWithMetrics Get game info with metrics - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiGetGameWithMetricsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiGetGameWithMetricsRequest */ func (a *GameAPIService) GetGameWithMetrics(ctx context.Context, gamePk interface{}) ApiGetGameWithMetricsRequest { return ApiGetGameWithMetricsRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) GetGameWithMetricsExecute(r ApiGetGameWithMetricsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetGameWithMetrics") @@ -906,13 +905,13 @@ func (a *GameAPIService) GetGameWithMetricsExecute(r ApiGetGameWithMetricsReques } type ApiGetWinProbabilityRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} + fields *interface{} inclusiveTimecode *interface{} - accent *interface{} + accent *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -946,24 +945,24 @@ func (r ApiGetWinProbabilityRequest) Execute() (*http.Response, error) { /* GetWinProbability Get the win probability for this game - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiGetWinProbabilityRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiGetWinProbabilityRequest */ func (a *GameAPIService) GetWinProbability(ctx context.Context, gamePk interface{}) ApiGetWinProbabilityRequest { return ApiGetWinProbabilityRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) GetWinProbabilityExecute(r ApiGetWinProbabilityRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.GetWinProbability") @@ -1036,11 +1035,11 @@ func (a *GameAPIService) GetWinProbabilityExecute(r ApiGetWinProbabilityRequest) } type ApiLinescoreRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} + fields *interface{} inclusiveTimecode *interface{} } @@ -1071,24 +1070,24 @@ Linescore Get game linescore This endpoint allows you to pull the linescore for a game - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiLinescoreRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiLinescoreRequest */ func (a *GameAPIService) Linescore(ctx context.Context, gamePk interface{}) ApiLinescoreRequest { return ApiLinescoreRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) LinescoreExecute(r ApiLinescoreRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.Linescore") @@ -1158,12 +1157,12 @@ func (a *GameAPIService) LinescoreExecute(r ApiLinescoreRequest) (*http.Response } type ApiLiveGameDiffPatchV1Request struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} startTimecode *interface{} - endTimecode *interface{} - accent *interface{} + endTimecode *interface{} + accent *interface{} } // Start time code will give you everything since that time. Format: MMDDYYYY_HHMMSS @@ -1193,24 +1192,24 @@ LiveGameDiffPatchV1 Get live game status diffPatch. This endpoint allows comparison of game files and shows any differences/discrepancies between the two

Diff/Patch System: startTimecode and endTimecode can be used for getting diffs.
Expected usage:
1) Request full payload by not passing startTimecode or endTimecode. This will return the most recent game state.
2) Find the latest timecode in this response.
3) Wait X seconds
4) Use the timecode from 2 as the startTimecode. This will give you a diff of everything that has happened since startTimecode.
5) If no data is returned, wait X seconds and do the same request.
6) If data is returned, get a new timeStamp from the response, and use that for the next call as startTimecode. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiLiveGameDiffPatchV1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiLiveGameDiffPatchV1Request */ func (a *GameAPIService) LiveGameDiffPatchV1(ctx context.Context, gamePk interface{}) ApiLiveGameDiffPatchV1Request { return ApiLiveGameDiffPatchV1Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) LiveGameDiffPatchV1Execute(r ApiLiveGameDiffPatchV1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveGameDiffPatchV1") @@ -1280,13 +1279,13 @@ func (a *GameAPIService) LiveGameDiffPatchV1Execute(r ApiLiveGameDiffPatchV1Requ } type ApiLiveGameV1Request struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} + fields *interface{} inclusiveTimecode *interface{} - accent *interface{} + accent *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -1322,24 +1321,24 @@ LiveGameV1 Get live game status. This API can return very large payloads. It is STRONGLY recommended that clients ask for diffs and use "Accept-Encoding: gzip" header. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiLiveGameV1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiLiveGameV1Request */ func (a *GameAPIService) LiveGameV1(ctx context.Context, gamePk interface{}) ApiLiveGameV1Request { return ApiLiveGameV1Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) LiveGameV1Execute(r ApiLiveGameV1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveGameV1") @@ -1412,9 +1411,9 @@ func (a *GameAPIService) LiveGameV1Execute(r ApiLiveGameV1Request) (*http.Respon } type ApiLiveTimestampv11Request struct { - ctx context.Context + ctx context.Context ApiService *GameAPIService - gamePk interface{} + gamePk interface{} } func (r ApiLiveTimestampv11Request) Execute() (*http.Response, error) { @@ -1426,24 +1425,24 @@ LiveTimestampv11 Retrieve all of the play timestamps for a game. This can be used for replaying games. Endpoint returns all of the timecodes that can be used with diffs for /v1/game/{game_pk}/feed/live - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiLiveTimestampv11Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiLiveTimestampv11Request */ func (a *GameAPIService) LiveTimestampv11(ctx context.Context, gamePk interface{}) ApiLiveTimestampv11Request { return ApiLiveTimestampv11Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) LiveTimestampv11Execute(r ApiLiveTimestampv11Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.LiveTimestampv11") @@ -1504,13 +1503,13 @@ func (a *GameAPIService) LiveTimestampv11Execute(r ApiLiveTimestampv11Request) ( } type ApiPlayByPlayRequest struct { - ctx context.Context - ApiService *GameAPIService - gamePk interface{} - timecode *interface{} - fields *interface{} + ctx context.Context + ApiService *GameAPIService + gamePk interface{} + timecode *interface{} + fields *interface{} inclusiveTimecode *interface{} - accent *interface{} + accent *interface{} } // Use this parameter to return a snapshot of the data at the specified time. Format: YYYYMMDD_HHMMSS @@ -1546,24 +1545,24 @@ PlayByPlay Get game play By Play This endpoint allows you to pull the play by play of a game - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiPlayByPlayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiPlayByPlayRequest */ func (a *GameAPIService) PlayByPlay(ctx context.Context, gamePk interface{}) ApiPlayByPlayRequest { return ApiPlayByPlayRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *GameAPIService) PlayByPlayExecute(r ApiPlayByPlayRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GameAPIService.PlayByPlay") diff --git a/api/api_game_pace.go b/api/api_game_pace.go index b45fd2f..cd149ea 100644 --- a/api/api_game_pace.go +++ b/api/api_game_pace.go @@ -18,30 +18,29 @@ import ( "net/url" ) - // GamePaceAPIService GamePaceAPI service type GamePaceAPIService service type ApiGamePaceRequest struct { - ctx context.Context - ApiService *GamePaceAPIService - season *interface{} - teamId *interface{} - teamIds *interface{} - leagueId *interface{} - leagueIds *interface{} - leagueListId *interface{} - sportId *interface{} - sportIds *interface{} - gameType *interface{} - startDate *interface{} - endDate *interface{} - venueIds *interface{} + ctx context.Context + ApiService *GamePaceAPIService + season *interface{} + teamId *interface{} + teamIds *interface{} + leagueId *interface{} + leagueIds *interface{} + leagueListId *interface{} + sportId *interface{} + sportIds *interface{} + gameType *interface{} + startDate *interface{} + endDate *interface{} + venueIds *interface{} excludeVenueIds *interface{} - excludeGamePks *interface{} - orgType *interface{} + excludeGamePks *interface{} + orgType *interface{} includeChildren *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -153,22 +152,22 @@ func (r ApiGamePaceRequest) Execute() (*http.Response, error) { /* GamePace View time of game info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGamePaceRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGamePaceRequest */ func (a *GamePaceAPIService) GamePace(ctx context.Context) ApiGamePaceRequest { return ApiGamePaceRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *GamePaceAPIService) GamePaceExecute(r ApiGamePaceRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "GamePaceAPIService.GamePace") diff --git a/api/api_high_low.go b/api/api_high_low.go index c036483..647f84c 100644 --- a/api/api_high_low.go +++ b/api/api_high_low.go @@ -19,24 +19,23 @@ import ( "strings" ) - // HighLowAPIService HighLowAPI service type HighLowAPIService service type ApiHighLowRequest struct { - ctx context.Context - ApiService *HighLowAPIService + ctx context.Context + ApiService *HighLowAPIService highLowType interface{} - statGroup *interface{} - sortStat *interface{} - season *interface{} - gameType *interface{} - teamId *interface{} - leagueId *interface{} - sportId *interface{} - offset *interface{} - limit *interface{} - fields *interface{} + statGroup *interface{} + sortStat *interface{} + season *interface{} + gameType *interface{} + teamId *interface{} + leagueId *interface{} + sportId *interface{} + offset *interface{} + limit *interface{} + fields *interface{} } // Comma delimited list of categories of statistic to return. Available types in /api/v1/statGroups @@ -106,14 +105,14 @@ func (r ApiHighLowRequest) Execute() (*http.Response, error) { /* HighLow View high/low stats by player or team - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param highLowType Type of high/low stats ('player', 'team', 'game') - @return ApiHighLowRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param highLowType Type of high/low stats ('player', 'team', 'game') + @return ApiHighLowRequest */ func (a *HighLowAPIService) HighLow(ctx context.Context, highLowType interface{}) ApiHighLowRequest { return ApiHighLowRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, highLowType: highLowType, } } @@ -121,9 +120,9 @@ func (a *HighLowAPIService) HighLow(ctx context.Context, highLowType interface{} // Execute executes the request func (a *HighLowAPIService) HighLowExecute(r ApiHighLowRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HighLowAPIService.HighLow") @@ -214,7 +213,7 @@ func (a *HighLowAPIService) HighLowExecute(r ApiHighLowRequest) (*http.Response, } type ApiHighLowStatsRequest struct { - ctx context.Context + ctx context.Context ApiService *HighLowAPIService } @@ -225,22 +224,22 @@ func (r ApiHighLowStatsRequest) Execute() (*http.Response, error) { /* HighLowStats View high/low stat types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHighLowStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHighLowStatsRequest */ func (a *HighLowAPIService) HighLowStats(ctx context.Context) ApiHighLowStatsRequest { return ApiHighLowStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *HighLowAPIService) HighLowStatsExecute(r ApiHighLowStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HighLowAPIService.HighLowStats") diff --git a/api/api_homerun_derby.go b/api/api_homerun_derby.go index 55d2eb0..edd24da 100644 --- a/api/api_homerun_derby.go +++ b/api/api_homerun_derby.go @@ -19,15 +19,14 @@ import ( "strings" ) - // HomerunDerbyAPIService HomerunDerbyAPI service type HomerunDerbyAPIService service type ApiHomeRunDerbyBracketRequest struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -45,24 +44,24 @@ HomeRunDerbyBracket View a home run derby object This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyBracketRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyBracketRequest */ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracketRequest { return ApiHomeRunDerbyBracketRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyBracketExecute(r ApiHomeRunDerbyBracketRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket") @@ -126,10 +125,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracketExecute(r ApiHomeRunDerbyBra } type ApiHomeRunDerbyBracket1Request struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -147,24 +146,24 @@ HomeRunDerbyBracket1 View a home run derby object This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyBracket1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyBracket1Request */ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket1Request { return ApiHomeRunDerbyBracket1Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1Execute(r ApiHomeRunDerbyBracket1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket1") @@ -228,10 +227,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket1Execute(r ApiHomeRunDerbyBr } type ApiHomeRunDerbyBracket2Request struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -249,24 +248,24 @@ HomeRunDerbyBracket2 View a home run derby object This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyBracket2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyBracket2Request */ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket2Request { return ApiHomeRunDerbyBracket2Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2Execute(r ApiHomeRunDerbyBracket2Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket2") @@ -330,10 +329,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket2Execute(r ApiHomeRunDerbyBr } type ApiHomeRunDerbyBracket3Request struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -351,24 +350,24 @@ HomeRunDerbyBracket3 View a home run derby object This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyBracket3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyBracket3Request */ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyBracket3Request { return ApiHomeRunDerbyBracket3Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3Execute(r ApiHomeRunDerbyBracket3Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyBracket3") @@ -432,10 +431,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyBracket3Execute(r ApiHomeRunDerbyBr } type ApiHomeRunDerbyMixedModeRequest struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -453,24 +452,24 @@ HomeRunDerbyMixedMode View home run derby mixed mode (Bracket/Pool combo) This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyMixedModeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyMixedModeRequest */ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyMixedModeRequest { return ApiHomeRunDerbyMixedModeRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyMixedModeExecute(r ApiHomeRunDerbyMixedModeRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyMixedMode") @@ -534,10 +533,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedModeExecute(r ApiHomeRunDerbyM } type ApiHomeRunDerbyMixedMode1Request struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -555,24 +554,24 @@ HomeRunDerbyMixedMode1 View home run derby mixed mode (Bracket/Pool combo) This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyMixedMode1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyMixedMode1Request */ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyMixedMode1Request { return ApiHomeRunDerbyMixedMode1Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1Execute(r ApiHomeRunDerbyMixedMode1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyMixedMode1") @@ -636,10 +635,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyMixedMode1Execute(r ApiHomeRunDerby } type ApiHomeRunDerbyPoolRequest struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -657,24 +656,24 @@ HomeRunDerbyPool View home run derby pool This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyPoolRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyPoolRequest */ func (a *HomerunDerbyAPIService) HomeRunDerbyPool(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyPoolRequest { return ApiHomeRunDerbyPoolRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyPoolExecute(r ApiHomeRunDerbyPoolRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyPool") @@ -738,10 +737,10 @@ func (a *HomerunDerbyAPIService) HomeRunDerbyPoolExecute(r ApiHomeRunDerbyPoolRe } type ApiHomeRunDerbyPool1Request struct { - ctx context.Context + ctx context.Context ApiService *HomerunDerbyAPIService - gamePk interface{} - fields *interface{} + gamePk interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -759,24 +758,24 @@ HomeRunDerbyPool1 View home run derby pool This endpoint allows you to pull home run derby information - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @return ApiHomeRunDerbyPool1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @return ApiHomeRunDerbyPool1Request */ func (a *HomerunDerbyAPIService) HomeRunDerbyPool1(ctx context.Context, gamePk interface{}) ApiHomeRunDerbyPool1Request { return ApiHomeRunDerbyPool1Request{ ApiService: a, - ctx: ctx, - gamePk: gamePk, + ctx: ctx, + gamePk: gamePk, } } // Execute executes the request func (a *HomerunDerbyAPIService) HomeRunDerbyPool1Execute(r ApiHomeRunDerbyPool1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "HomerunDerbyAPIService.HomeRunDerbyPool1") diff --git a/api/api_job.go b/api/api_job.go index 65b071b..a8259e5 100644 --- a/api/api_job.go +++ b/api/api_job.go @@ -19,16 +19,15 @@ import ( "strings" ) - // JobAPIService JobAPI service type JobAPIService service type ApiDatacastersRequest struct { - ctx context.Context + ctx context.Context ApiService *JobAPIService - sportId *interface{} - date *interface{} - fields *interface{} + sportId *interface{} + date *interface{} + fields *interface{} } // Top level organization of a sport @@ -58,22 +57,22 @@ Datacasters Get datacaster jobs Get datacaster jobs - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDatacastersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDatacastersRequest */ func (a *JobAPIService) Datacasters(ctx context.Context) ApiDatacastersRequest { return ApiDatacastersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *JobAPIService) DatacastersExecute(r ApiDatacastersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.Datacasters") @@ -142,12 +141,12 @@ func (a *JobAPIService) DatacastersExecute(r ApiDatacastersRequest) (*http.Respo } type ApiGetJobsByTypeRequest struct { - ctx context.Context + ctx context.Context ApiService *JobAPIService - jobType *interface{} - sportId *interface{} - date *interface{} - fields *interface{} + jobType *interface{} + sportId *interface{} + date *interface{} + fields *interface{} } // Job Type Identifier (ie. UMPR, etc..) @@ -183,22 +182,22 @@ GetJobsByType Get jobs by type This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetJobsByTypeRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetJobsByTypeRequest */ func (a *JobAPIService) GetJobsByType(ctx context.Context) ApiGetJobsByTypeRequest { return ApiGetJobsByTypeRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *JobAPIService) GetJobsByTypeExecute(r ApiGetJobsByTypeRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.GetJobsByType") @@ -271,11 +270,11 @@ func (a *JobAPIService) GetJobsByTypeExecute(r ApiGetJobsByTypeRequest) (*http.R } type ApiOfficialScorersRequest struct { - ctx context.Context + ctx context.Context ApiService *JobAPIService - sportId *interface{} - date *interface{} - fields *interface{} + sportId *interface{} + date *interface{} + fields *interface{} } // Top level organization of a sport @@ -305,22 +304,22 @@ OfficialScorers Get official scorers This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiOfficialScorersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiOfficialScorersRequest */ func (a *JobAPIService) OfficialScorers(ctx context.Context) ApiOfficialScorersRequest { return ApiOfficialScorersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *JobAPIService) OfficialScorersExecute(r ApiOfficialScorersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.OfficialScorers") @@ -389,11 +388,11 @@ func (a *JobAPIService) OfficialScorersExecute(r ApiOfficialScorersRequest) (*ht } type ApiUmpireScheduleRequest struct { - ctx context.Context + ctx context.Context ApiService *JobAPIService - umpireId interface{} - season *interface{} - fields *interface{} + umpireId interface{} + season *interface{} + fields *interface{} } // Season of play @@ -417,24 +416,24 @@ UmpireSchedule Get umpires and associated game for umpireId This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param umpireId A unique identifier for an umpire - @return ApiUmpireScheduleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param umpireId A unique identifier for an umpire + @return ApiUmpireScheduleRequest */ func (a *JobAPIService) UmpireSchedule(ctx context.Context, umpireId interface{}) ApiUmpireScheduleRequest { return ApiUmpireScheduleRequest{ ApiService: a, - ctx: ctx, - umpireId: umpireId, + ctx: ctx, + umpireId: umpireId, } } // Execute executes the request func (a *JobAPIService) UmpireScheduleExecute(r ApiUmpireScheduleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.UmpireSchedule") @@ -502,12 +501,12 @@ func (a *JobAPIService) UmpireScheduleExecute(r ApiUmpireScheduleRequest) (*http } type ApiUmpiresRequest struct { - ctx context.Context + ctx context.Context ApiService *JobAPIService - sportId *interface{} - date *interface{} - fields *interface{} - season *interface{} + sportId *interface{} + date *interface{} + fields *interface{} + season *interface{} } // Top level organization of a sport @@ -543,22 +542,22 @@ Umpires Get umpires This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUmpiresRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUmpiresRequest */ func (a *JobAPIService) Umpires(ctx context.Context) ApiUmpiresRequest { return ApiUmpiresRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *JobAPIService) UmpiresExecute(r ApiUmpiresRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JobAPIService.Umpires") diff --git a/api/api_league.go b/api/api_league.go index fb5cca9..4101829 100644 --- a/api/api_league.go +++ b/api/api_league.go @@ -19,17 +19,16 @@ import ( "strings" ) - // LeagueAPIService LeagueAPI service type LeagueAPIService service type ApiAllStarBallotRequest struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - fields *interface{} + leagueId interface{} + leagueIds *interface{} + season *interface{} + fields *interface{} } // Comma delimited list of Unique league identifiers @@ -57,24 +56,24 @@ func (r ApiAllStarBallotRequest) Execute() (*http.Response, error) { /* AllStarBallot View al star ballot info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarBallotRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarBallotRequest */ func (a *LeagueAPIService) AllStarBallot(ctx context.Context, leagueId interface{}) ApiAllStarBallotRequest { return ApiAllStarBallotRequest{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarBallotExecute(r ApiAllStarBallotRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot") @@ -144,12 +143,12 @@ func (a *LeagueAPIService) AllStarBallotExecute(r ApiAllStarBallotRequest) (*htt } type ApiAllStarBallot1Request struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - fields *interface{} + leagueId interface{} + leagueIds *interface{} + season *interface{} + fields *interface{} } // Comma delimited list of Unique league identifiers @@ -177,24 +176,24 @@ func (r ApiAllStarBallot1Request) Execute() (*http.Response, error) { /* AllStarBallot1 View al star ballot info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarBallot1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarBallot1Request */ func (a *LeagueAPIService) AllStarBallot1(ctx context.Context, leagueId interface{}) ApiAllStarBallot1Request { return ApiAllStarBallot1Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarBallot1Execute(r ApiAllStarBallot1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot1") @@ -264,12 +263,12 @@ func (a *LeagueAPIService) AllStarBallot1Execute(r ApiAllStarBallot1Request) (*h } type ApiAllStarBallot2Request struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - fields *interface{} + leagueId interface{} + leagueIds *interface{} + season *interface{} + fields *interface{} } // Comma delimited list of Unique league identifiers @@ -297,24 +296,24 @@ func (r ApiAllStarBallot2Request) Execute() (*http.Response, error) { /* AllStarBallot2 View al star ballot info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarBallot2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarBallot2Request */ func (a *LeagueAPIService) AllStarBallot2(ctx context.Context, leagueId interface{}) ApiAllStarBallot2Request { return ApiAllStarBallot2Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarBallot2Execute(r ApiAllStarBallot2Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot2") @@ -384,12 +383,12 @@ func (a *LeagueAPIService) AllStarBallot2Execute(r ApiAllStarBallot2Request) (*h } type ApiAllStarBallot3Request struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - fields *interface{} + leagueId interface{} + leagueIds *interface{} + season *interface{} + fields *interface{} } // Comma delimited list of Unique league identifiers @@ -417,24 +416,24 @@ func (r ApiAllStarBallot3Request) Execute() (*http.Response, error) { /* AllStarBallot3 View al star ballot info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarBallot3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarBallot3Request */ func (a *LeagueAPIService) AllStarBallot3(ctx context.Context, leagueId interface{}) ApiAllStarBallot3Request { return ApiAllStarBallot3Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarBallot3Execute(r ApiAllStarBallot3Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarBallot3") @@ -504,11 +503,11 @@ func (a *LeagueAPIService) AllStarBallot3Execute(r ApiAllStarBallot3Request) (*h } type ApiAllStarFinalVoteRequest struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - season *interface{} - fields *interface{} + leagueId interface{} + season *interface{} + fields *interface{} } // Season of play @@ -530,24 +529,24 @@ func (r ApiAllStarFinalVoteRequest) Execute() (*http.Response, error) { /* AllStarFinalVote View all star final vote info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarFinalVoteRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarFinalVoteRequest */ func (a *LeagueAPIService) AllStarFinalVote(ctx context.Context, leagueId interface{}) ApiAllStarFinalVoteRequest { return ApiAllStarFinalVoteRequest{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarFinalVoteExecute(r ApiAllStarFinalVoteRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarFinalVote") @@ -614,11 +613,11 @@ func (a *LeagueAPIService) AllStarFinalVoteExecute(r ApiAllStarFinalVoteRequest) } type ApiAllStarFinalVote1Request struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - season *interface{} - fields *interface{} + leagueId interface{} + season *interface{} + fields *interface{} } // Season of play @@ -640,24 +639,24 @@ func (r ApiAllStarFinalVote1Request) Execute() (*http.Response, error) { /* AllStarFinalVote1 View all star final vote info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarFinalVote1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarFinalVote1Request */ func (a *LeagueAPIService) AllStarFinalVote1(ctx context.Context, leagueId interface{}) ApiAllStarFinalVote1Request { return ApiAllStarFinalVote1Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarFinalVote1Execute(r ApiAllStarFinalVote1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarFinalVote1") @@ -724,11 +723,11 @@ func (a *LeagueAPIService) AllStarFinalVote1Execute(r ApiAllStarFinalVote1Reques } type ApiAllStarWriteInsRequest struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - season *interface{} - fields *interface{} + leagueId interface{} + season *interface{} + fields *interface{} } // Season of play @@ -750,24 +749,24 @@ func (r ApiAllStarWriteInsRequest) Execute() (*http.Response, error) { /* AllStarWriteIns View all star write ins info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarWriteInsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarWriteInsRequest */ func (a *LeagueAPIService) AllStarWriteIns(ctx context.Context, leagueId interface{}) ApiAllStarWriteInsRequest { return ApiAllStarWriteInsRequest{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarWriteInsExecute(r ApiAllStarWriteInsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarWriteIns") @@ -834,11 +833,11 @@ func (a *LeagueAPIService) AllStarWriteInsExecute(r ApiAllStarWriteInsRequest) ( } type ApiAllStarWriteIns1Request struct { - ctx context.Context + ctx context.Context ApiService *LeagueAPIService - leagueId interface{} - season *interface{} - fields *interface{} + leagueId interface{} + season *interface{} + fields *interface{} } // Season of play @@ -860,24 +859,24 @@ func (r ApiAllStarWriteIns1Request) Execute() (*http.Response, error) { /* AllStarWriteIns1 View all star write ins info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiAllStarWriteIns1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiAllStarWriteIns1Request */ func (a *LeagueAPIService) AllStarWriteIns1(ctx context.Context, leagueId interface{}) ApiAllStarWriteIns1Request { return ApiAllStarWriteIns1Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) AllStarWriteIns1Execute(r ApiAllStarWriteIns1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.AllStarWriteIns1") @@ -944,14 +943,14 @@ func (a *LeagueAPIService) AllStarWriteIns1Execute(r ApiAllStarWriteIns1Request) } type ApiLeagueRequest struct { - ctx context.Context - ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - sportId *interface{} + ctx context.Context + ApiService *LeagueAPIService + leagueId interface{} + leagueIds *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + sportId *interface{} activeStatus *interface{} } @@ -998,24 +997,24 @@ func (r ApiLeagueRequest) Execute() (*http.Response, error) { /* League View league info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiLeagueRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiLeagueRequest */ func (a *LeagueAPIService) League(ctx context.Context, leagueId interface{}) ApiLeagueRequest { return ApiLeagueRequest{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) LeagueExecute(r ApiLeagueRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League") @@ -1094,14 +1093,14 @@ func (a *LeagueAPIService) LeagueExecute(r ApiLeagueRequest) (*http.Response, er } type ApiLeague1Request struct { - ctx context.Context - ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - sportId *interface{} + ctx context.Context + ApiService *LeagueAPIService + leagueId interface{} + leagueIds *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + sportId *interface{} activeStatus *interface{} } @@ -1148,24 +1147,24 @@ func (r ApiLeague1Request) Execute() (*http.Response, error) { /* League1 View league info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiLeague1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiLeague1Request */ func (a *LeagueAPIService) League1(ctx context.Context, leagueId interface{}) ApiLeague1Request { return ApiLeague1Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) League1Execute(r ApiLeague1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League1") @@ -1244,14 +1243,14 @@ func (a *LeagueAPIService) League1Execute(r ApiLeague1Request) (*http.Response, } type ApiLeague2Request struct { - ctx context.Context - ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - sportId *interface{} + ctx context.Context + ApiService *LeagueAPIService + leagueId interface{} + leagueIds *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + sportId *interface{} activeStatus *interface{} } @@ -1298,24 +1297,24 @@ func (r ApiLeague2Request) Execute() (*http.Response, error) { /* League2 View league info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiLeague2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiLeague2Request */ func (a *LeagueAPIService) League2(ctx context.Context, leagueId interface{}) ApiLeague2Request { return ApiLeague2Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) League2Execute(r ApiLeague2Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League2") @@ -1394,14 +1393,14 @@ func (a *LeagueAPIService) League2Execute(r ApiLeague2Request) (*http.Response, } type ApiLeague3Request struct { - ctx context.Context - ApiService *LeagueAPIService - leagueId interface{} - leagueIds *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - sportId *interface{} + ctx context.Context + ApiService *LeagueAPIService + leagueId interface{} + leagueIds *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + sportId *interface{} activeStatus *interface{} } @@ -1448,24 +1447,24 @@ func (r ApiLeague3Request) Execute() (*http.Response, error) { /* League3 View league info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param leagueId Unique League Identifier - @return ApiLeague3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param leagueId Unique League Identifier + @return ApiLeague3Request */ func (a *LeagueAPIService) League3(ctx context.Context, leagueId interface{}) ApiLeague3Request { return ApiLeague3Request{ ApiService: a, - ctx: ctx, - leagueId: leagueId, + ctx: ctx, + leagueId: leagueId, } } // Execute executes the request func (a *LeagueAPIService) League3Execute(r ApiLeague3Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "LeagueAPIService.League3") diff --git a/api/api_milestones.go b/api/api_milestones.go index b16dc11..680b1e2 100644 --- a/api/api_milestones.go +++ b/api/api_milestones.go @@ -18,12 +18,11 @@ import ( "net/url" ) - // MilestonesAPIService MilestonesAPI service type MilestonesAPIService service type ApiAchievementStatusesRequest struct { - ctx context.Context + ctx context.Context ApiService *MilestonesAPIService } @@ -34,22 +33,22 @@ func (r ApiAchievementStatusesRequest) Execute() (*http.Response, error) { /* AchievementStatuses View available achievementStatus options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAchievementStatusesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAchievementStatusesRequest */ func (a *MilestonesAPIService) AchievementStatuses(ctx context.Context) ApiAchievementStatusesRequest { return ApiAchievementStatusesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) AchievementStatusesExecute(r ApiAchievementStatusesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.AchievementStatuses") @@ -109,7 +108,7 @@ func (a *MilestonesAPIService) AchievementStatusesExecute(r ApiAchievementStatus } type ApiMilestoneDurationsRequest struct { - ctx context.Context + ctx context.Context ApiService *MilestonesAPIService } @@ -120,22 +119,22 @@ func (r ApiMilestoneDurationsRequest) Execute() (*http.Response, error) { /* MilestoneDurations View available milestoneDurations options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMilestoneDurationsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMilestoneDurationsRequest */ func (a *MilestonesAPIService) MilestoneDurations(ctx context.Context) ApiMilestoneDurationsRequest { return ApiMilestoneDurationsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) MilestoneDurationsExecute(r ApiMilestoneDurationsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneDurations") @@ -195,7 +194,7 @@ func (a *MilestonesAPIService) MilestoneDurationsExecute(r ApiMilestoneDurations } type ApiMilestoneLookupsRequest struct { - ctx context.Context + ctx context.Context ApiService *MilestonesAPIService } @@ -206,22 +205,22 @@ func (r ApiMilestoneLookupsRequest) Execute() (*http.Response, error) { /* MilestoneLookups View available milestoneLookup options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMilestoneLookupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMilestoneLookupsRequest */ func (a *MilestonesAPIService) MilestoneLookups(ctx context.Context) ApiMilestoneLookupsRequest { return ApiMilestoneLookupsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) MilestoneLookupsExecute(r ApiMilestoneLookupsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneLookups") @@ -281,7 +280,7 @@ func (a *MilestonesAPIService) MilestoneLookupsExecute(r ApiMilestoneLookupsRequ } type ApiMilestoneStatisticsRequest struct { - ctx context.Context + ctx context.Context ApiService *MilestonesAPIService } @@ -292,22 +291,22 @@ func (r ApiMilestoneStatisticsRequest) Execute() (*http.Response, error) { /* MilestoneStatistics View available milestone statistics options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMilestoneStatisticsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMilestoneStatisticsRequest */ func (a *MilestonesAPIService) MilestoneStatistics(ctx context.Context) ApiMilestoneStatisticsRequest { return ApiMilestoneStatisticsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) MilestoneStatisticsExecute(r ApiMilestoneStatisticsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneStatistics") @@ -367,7 +366,7 @@ func (a *MilestonesAPIService) MilestoneStatisticsExecute(r ApiMilestoneStatisti } type ApiMilestoneTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MilestonesAPIService } @@ -378,22 +377,22 @@ func (r ApiMilestoneTypesRequest) Execute() (*http.Response, error) { /* MilestoneTypes View available milestoneType options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMilestoneTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMilestoneTypesRequest */ func (a *MilestonesAPIService) MilestoneTypes(ctx context.Context) ApiMilestoneTypesRequest { return ApiMilestoneTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) MilestoneTypesExecute(r ApiMilestoneTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.MilestoneTypes") @@ -453,25 +452,25 @@ func (a *MilestonesAPIService) MilestoneTypesExecute(r ApiMilestoneTypesRequest) } type ApiMilestonesRequest struct { - ctx context.Context - ApiService *MilestonesAPIService - orgType *interface{} + ctx context.Context + ApiService *MilestonesAPIService + orgType *interface{} achievementStatuses *interface{} - milestoneTypes *interface{} - isLastAchievement *interface{} + milestoneTypes *interface{} + isLastAchievement *interface{} milestoneStatistics *interface{} - milestoneValues *interface{} - playerIds *interface{} - teamIds *interface{} - leagueIds *interface{} - statGroup *interface{} - season *interface{} - seasons *interface{} - venueIds *interface{} - gamePks *interface{} - limit *interface{} - fields *interface{} - showFirsts *interface{} + milestoneValues *interface{} + playerIds *interface{} + teamIds *interface{} + leagueIds *interface{} + statGroup *interface{} + season *interface{} + seasons *interface{} + venueIds *interface{} + gamePks *interface{} + limit *interface{} + fields *interface{} + showFirsts *interface{} } // Organization level. Format: T(Team), L(League), S(Sport) @@ -583,22 +582,22 @@ func (r ApiMilestonesRequest) Execute() (*http.Response, error) { /* Milestones View pending and achieved milestones. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMilestonesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMilestonesRequest */ func (a *MilestonesAPIService) Milestones(ctx context.Context) ApiMilestonesRequest { return ApiMilestonesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MilestonesAPIService) MilestonesExecute(r ApiMilestonesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MilestonesAPIService.Milestones") diff --git a/api/api_misc.go b/api/api_misc.go index d15480e..e44eea8 100644 --- a/api/api_misc.go +++ b/api/api_misc.go @@ -18,12 +18,11 @@ import ( "net/url" ) - // MiscAPIService MiscAPI service type MiscAPIService service type ApiAggregateSortEnumRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -34,22 +33,22 @@ func (r ApiAggregateSortEnumRequest) Execute() (*http.Response, error) { /* AggregateSortEnum List all stat fields - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAggregateSortEnumRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAggregateSortEnumRequest */ func (a *MiscAPIService) AggregateSortEnum(ctx context.Context) ApiAggregateSortEnumRequest { return ApiAggregateSortEnumRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) AggregateSortEnumExecute(r ApiAggregateSortEnumRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.AggregateSortEnum") @@ -109,7 +108,7 @@ func (a *MiscAPIService) AggregateSortEnumExecute(r ApiAggregateSortEnumRequest) } type ApiBaseballStatsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -120,22 +119,22 @@ func (r ApiBaseballStatsRequest) Execute() (*http.Response, error) { /* BaseballStats List all baseball stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiBaseballStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiBaseballStatsRequest */ func (a *MiscAPIService) BaseballStats(ctx context.Context) ApiBaseballStatsRequest { return ApiBaseballStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) BaseballStatsExecute(r ApiBaseballStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.BaseballStats") @@ -195,7 +194,7 @@ func (a *MiscAPIService) BaseballStatsExecute(r ApiBaseballStatsRequest) (*http. } type ApiBroadcastAvailabilityTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -206,22 +205,22 @@ func (r ApiBroadcastAvailabilityTypesRequest) Execute() (*http.Response, error) /* BroadcastAvailabilityTypes View broadcast availability options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiBroadcastAvailabilityTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiBroadcastAvailabilityTypesRequest */ func (a *MiscAPIService) BroadcastAvailabilityTypes(ctx context.Context) ApiBroadcastAvailabilityTypesRequest { return ApiBroadcastAvailabilityTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) BroadcastAvailabilityTypesExecute(r ApiBroadcastAvailabilityTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.BroadcastAvailabilityTypes") @@ -281,7 +280,7 @@ func (a *MiscAPIService) BroadcastAvailabilityTypesExecute(r ApiBroadcastAvailab } type ApiCoachingVideoTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -292,22 +291,22 @@ func (r ApiCoachingVideoTypesRequest) Execute() (*http.Response, error) { /* CoachingVideoTypes List all coaching video types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoachingVideoTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoachingVideoTypesRequest */ func (a *MiscAPIService) CoachingVideoTypes(ctx context.Context) ApiCoachingVideoTypesRequest { return ApiCoachingVideoTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) CoachingVideoTypesExecute(r ApiCoachingVideoTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.CoachingVideoTypes") @@ -367,7 +366,7 @@ func (a *MiscAPIService) CoachingVideoTypesExecute(r ApiCoachingVideoTypesReques } type ApiEventStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -378,22 +377,22 @@ func (r ApiEventStatusRequest) Execute() (*http.Response, error) { /* EventStatus List all possible event status types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEventStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEventStatusRequest */ func (a *MiscAPIService) EventStatus(ctx context.Context) ApiEventStatusRequest { return ApiEventStatusRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) EventStatusExecute(r ApiEventStatusRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.EventStatus") @@ -453,9 +452,9 @@ func (a *MiscAPIService) EventStatusExecute(r ApiEventStatusRequest) (*http.Resp } type ApiEventTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -471,22 +470,22 @@ func (r ApiEventTypesRequest) Execute() (*http.Response, error) { /* EventTypes List all event types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiEventTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiEventTypesRequest */ func (a *MiscAPIService) EventTypes(ctx context.Context) ApiEventTypesRequest { return ApiEventTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) EventTypesExecute(r ApiEventTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.EventTypes") @@ -549,7 +548,7 @@ func (a *MiscAPIService) EventTypesExecute(r ApiEventTypesRequest) (*http.Respon } type ApiFielderDetailTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -560,22 +559,22 @@ func (r ApiFielderDetailTypesRequest) Execute() (*http.Response, error) { /* FielderDetailTypes List fielder detail types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFielderDetailTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFielderDetailTypesRequest */ func (a *MiscAPIService) FielderDetailTypes(ctx context.Context) ApiFielderDetailTypesRequest { return ApiFielderDetailTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) FielderDetailTypesExecute(r ApiFielderDetailTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.FielderDetailTypes") @@ -635,7 +634,7 @@ func (a *MiscAPIService) FielderDetailTypesExecute(r ApiFielderDetailTypesReques } type ApiFreeGameTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -646,22 +645,22 @@ func (r ApiFreeGameTypesRequest) Execute() (*http.Response, error) { /* FreeGameTypes View free game types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFreeGameTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFreeGameTypesRequest */ func (a *MiscAPIService) FreeGameTypes(ctx context.Context) ApiFreeGameTypesRequest { return ApiFreeGameTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) FreeGameTypesExecute(r ApiFreeGameTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.FreeGameTypes") @@ -721,7 +720,7 @@ func (a *MiscAPIService) FreeGameTypesExecute(r ApiFreeGameTypesRequest) (*http. } type ApiGameStatusRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -732,22 +731,22 @@ func (r ApiGameStatusRequest) Execute() (*http.Response, error) { /* GameStatus List all status types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGameStatusRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGameStatusRequest */ func (a *MiscAPIService) GameStatus(ctx context.Context) ApiGameStatusRequest { return ApiGameStatusRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) GameStatusExecute(r ApiGameStatusRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.GameStatus") @@ -807,11 +806,11 @@ func (a *MiscAPIService) GameStatusExecute(r ApiGameStatusRequest) (*http.Respon } type ApiGameTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - sportId *interface{} - leagueId *interface{} - season *interface{} + sportId *interface{} + leagueId *interface{} + season *interface{} } // Top level organization of a sport @@ -839,22 +838,22 @@ func (r ApiGameTypesRequest) Execute() (*http.Response, error) { /* GameTypes List all game types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGameTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGameTypesRequest */ func (a *MiscAPIService) GameTypes(ctx context.Context) ApiGameTypesRequest { return ApiGameTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) GameTypesExecute(r ApiGameTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.GameTypes") @@ -923,9 +922,9 @@ func (a *MiscAPIService) GameTypesExecute(r ApiGameTypesRequest) (*http.Response } type ApiGamedayTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -941,22 +940,22 @@ func (r ApiGamedayTypesRequest) Execute() (*http.Response, error) { /* GamedayTypes List all gameday types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGamedayTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGamedayTypesRequest */ func (a *MiscAPIService) GamedayTypes(ctx context.Context) ApiGamedayTypesRequest { return ApiGamedayTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) GamedayTypesExecute(r ApiGamedayTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.GamedayTypes") @@ -1019,7 +1018,7 @@ func (a *MiscAPIService) GamedayTypesExecute(r ApiGamedayTypesRequest) (*http.Re } type ApiGetLookupValuesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1030,22 +1029,22 @@ func (r ApiGetLookupValuesRequest) Execute() (*http.Response, error) { /* GetLookupValues View all lookup values - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetLookupValuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetLookupValuesRequest */ func (a *MiscAPIService) GetLookupValues(ctx context.Context) ApiGetLookupValuesRequest { return ApiGetLookupValuesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) GetLookupValuesExecute(r ApiGetLookupValuesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.GetLookupValues") @@ -1105,7 +1104,7 @@ func (a *MiscAPIService) GetLookupValuesExecute(r ApiGetLookupValuesRequest) (*h } type ApiGroupByTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1116,22 +1115,22 @@ func (r ApiGroupByTypesRequest) Execute() (*http.Response, error) { /* GroupByTypes List groupBy types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupByTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGroupByTypesRequest */ func (a *MiscAPIService) GroupByTypes(ctx context.Context) ApiGroupByTypesRequest { return ApiGroupByTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) GroupByTypesExecute(r ApiGroupByTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.GroupByTypes") @@ -1191,9 +1190,9 @@ func (a *MiscAPIService) GroupByTypesExecute(r ApiGroupByTypesRequest) (*http.Re } type ApiHitTrajectoriesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1209,22 +1208,22 @@ func (r ApiHitTrajectoriesRequest) Execute() (*http.Response, error) { /* HitTrajectories List all hit trajectories - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiHitTrajectoriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiHitTrajectoriesRequest */ func (a *MiscAPIService) HitTrajectories(ctx context.Context) ApiHitTrajectoriesRequest { return ApiHitTrajectoriesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) HitTrajectoriesExecute(r ApiHitTrajectoriesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.HitTrajectories") @@ -1287,9 +1286,9 @@ func (a *MiscAPIService) HitTrajectoriesExecute(r ApiHitTrajectoriesRequest) (*h } type ApiJobTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1305,22 +1304,22 @@ func (r ApiJobTypesRequest) Execute() (*http.Response, error) { /* JobTypes List all job types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiJobTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiJobTypesRequest */ func (a *MiscAPIService) JobTypes(ctx context.Context) ApiJobTypesRequest { return ApiJobTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) JobTypesExecute(r ApiJobTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.JobTypes") @@ -1383,7 +1382,7 @@ func (a *MiscAPIService) JobTypesExecute(r ApiJobTypesRequest) (*http.Response, } type ApiLanguagesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1394,22 +1393,22 @@ func (r ApiLanguagesRequest) Execute() (*http.Response, error) { /* Languages List all support languages - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLanguagesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLanguagesRequest */ func (a *MiscAPIService) Languages(ctx context.Context) ApiLanguagesRequest { return ApiLanguagesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) LanguagesExecute(r ApiLanguagesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.Languages") @@ -1469,7 +1468,7 @@ func (a *MiscAPIService) LanguagesExecute(r ApiLanguagesRequest) (*http.Response } type ApiLeagueLeaderTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1480,22 +1479,22 @@ func (r ApiLeagueLeaderTypesRequest) Execute() (*http.Response, error) { /* LeagueLeaderTypes List all possible player league leader types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeagueLeaderTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeagueLeaderTypesRequest */ func (a *MiscAPIService) LeagueLeaderTypes(ctx context.Context) ApiLeagueLeaderTypesRequest { return ApiLeagueLeaderTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) LeagueLeaderTypesExecute(r ApiLeagueLeaderTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.LeagueLeaderTypes") @@ -1555,9 +1554,9 @@ func (a *MiscAPIService) LeagueLeaderTypesExecute(r ApiLeagueLeaderTypesRequest) } type ApiLogicalEventsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1573,22 +1572,22 @@ func (r ApiLogicalEventsRequest) Execute() (*http.Response, error) { /* LogicalEvents List all logical event types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLogicalEventsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLogicalEventsRequest */ func (a *MiscAPIService) LogicalEvents(ctx context.Context) ApiLogicalEventsRequest { return ApiLogicalEventsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) LogicalEventsExecute(r ApiLogicalEventsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.LogicalEvents") @@ -1651,7 +1650,7 @@ func (a *MiscAPIService) LogicalEventsExecute(r ApiLogicalEventsRequest) (*http. } type ApiMediaStateTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1662,22 +1661,22 @@ func (r ApiMediaStateTypesRequest) Execute() (*http.Response, error) { /* MediaStateTypes View media state options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMediaStateTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMediaStateTypesRequest */ func (a *MiscAPIService) MediaStateTypes(ctx context.Context) ApiMediaStateTypesRequest { return ApiMediaStateTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) MediaStateTypesExecute(r ApiMediaStateTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.MediaStateTypes") @@ -1737,7 +1736,7 @@ func (a *MiscAPIService) MediaStateTypesExecute(r ApiMediaStateTypesRequest) (*h } type ApiMetricsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1748,22 +1747,22 @@ func (r ApiMetricsRequest) Execute() (*http.Response, error) { /* Metrics List all possible metrics - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMetricsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMetricsRequest */ func (a *MiscAPIService) Metrics(ctx context.Context) ApiMetricsRequest { return ApiMetricsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) MetricsExecute(r ApiMetricsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.Metrics") @@ -1823,9 +1822,9 @@ func (a *MiscAPIService) MetricsExecute(r ApiMetricsRequest) (*http.Response, er } type ApiMoundVisitTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -1841,22 +1840,22 @@ func (r ApiMoundVisitTypesRequest) Execute() (*http.Response, error) { /* MoundVisitTypes List all mound visit types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMoundVisitTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMoundVisitTypesRequest */ func (a *MiscAPIService) MoundVisitTypes(ctx context.Context) ApiMoundVisitTypesRequest { return ApiMoundVisitTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) MoundVisitTypesExecute(r ApiMoundVisitTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.MoundVisitTypes") @@ -1919,7 +1918,7 @@ func (a *MiscAPIService) MoundVisitTypesExecute(r ApiMoundVisitTypesRequest) (*h } type ApiPerformerTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -1930,22 +1929,22 @@ func (r ApiPerformerTypesRequest) Execute() (*http.Response, error) { /* PerformerTypes List all possible performer types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPerformerTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPerformerTypesRequest */ func (a *MiscAPIService) PerformerTypes(ctx context.Context) ApiPerformerTypesRequest { return ApiPerformerTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PerformerTypesExecute(r ApiPerformerTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.PerformerTypes") @@ -2005,9 +2004,9 @@ func (a *MiscAPIService) PerformerTypesExecute(r ApiPerformerTypesRequest) (*htt } type ApiPitchCodesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -2023,22 +2022,22 @@ func (r ApiPitchCodesRequest) Execute() (*http.Response, error) { /* PitchCodes List all pitch codes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPitchCodesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPitchCodesRequest */ func (a *MiscAPIService) PitchCodes(ctx context.Context) ApiPitchCodesRequest { return ApiPitchCodesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PitchCodesExecute(r ApiPitchCodesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.PitchCodes") @@ -2101,9 +2100,9 @@ func (a *MiscAPIService) PitchCodesExecute(r ApiPitchCodesRequest) (*http.Respon } type ApiPitchTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -2119,22 +2118,22 @@ func (r ApiPitchTypesRequest) Execute() (*http.Response, error) { /* PitchTypes List all pitch classification types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPitchTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPitchTypesRequest */ func (a *MiscAPIService) PitchTypes(ctx context.Context) ApiPitchTypesRequest { return ApiPitchTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PitchTypesExecute(r ApiPitchTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.PitchTypes") @@ -2197,7 +2196,7 @@ func (a *MiscAPIService) PitchTypesExecute(r ApiPitchTypesRequest) (*http.Respon } type ApiPlatformsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2208,22 +2207,22 @@ func (r ApiPlatformsRequest) Execute() (*http.Response, error) { /* Platforms List all possible platforms - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPlatformsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlatformsRequest */ func (a *MiscAPIService) Platforms(ctx context.Context) ApiPlatformsRequest { return ApiPlatformsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PlatformsExecute(r ApiPlatformsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.Platforms") @@ -2283,9 +2282,9 @@ func (a *MiscAPIService) PlatformsExecute(r ApiPlatformsRequest) (*http.Response } type ApiPlayerStatusCodesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -2301,22 +2300,22 @@ func (r ApiPlayerStatusCodesRequest) Execute() (*http.Response, error) { /* PlayerStatusCodes List all player status codes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPlayerStatusCodesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlayerStatusCodesRequest */ func (a *MiscAPIService) PlayerStatusCodes(ctx context.Context) ApiPlayerStatusCodesRequest { return ApiPlayerStatusCodesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PlayerStatusCodesExecute(r ApiPlayerStatusCodesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.PlayerStatusCodes") @@ -2379,7 +2378,7 @@ func (a *MiscAPIService) PlayerStatusCodesExecute(r ApiPlayerStatusCodesRequest) } type ApiPositionsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2390,22 +2389,22 @@ func (r ApiPositionsRequest) Execute() (*http.Response, error) { /* Positions List all possible positions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPositionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPositionsRequest */ func (a *MiscAPIService) Positions(ctx context.Context) ApiPositionsRequest { return ApiPositionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) PositionsExecute(r ApiPositionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.Positions") @@ -2465,9 +2464,9 @@ func (a *MiscAPIService) PositionsExecute(r ApiPositionsRequest) (*http.Response } type ApiReviewReasonsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -2483,22 +2482,22 @@ func (r ApiReviewReasonsRequest) Execute() (*http.Response, error) { /* ReviewReasons List all replay review reasons - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiReviewReasonsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiReviewReasonsRequest */ func (a *MiscAPIService) ReviewReasons(ctx context.Context) ApiReviewReasonsRequest { return ApiReviewReasonsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) ReviewReasonsExecute(r ApiReviewReasonsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.ReviewReasons") @@ -2561,7 +2560,7 @@ func (a *MiscAPIService) ReviewReasonsExecute(r ApiReviewReasonsRequest) (*http. } type ApiRoofTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2572,22 +2571,22 @@ func (r ApiRoofTypesRequest) Execute() (*http.Response, error) { /* RoofTypes List all roof types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRoofTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRoofTypesRequest */ func (a *MiscAPIService) RoofTypes(ctx context.Context) ApiRoofTypesRequest { return ApiRoofTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) RoofTypesExecute(r ApiRoofTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.RoofTypes") @@ -2647,7 +2646,7 @@ func (a *MiscAPIService) RoofTypesExecute(r ApiRoofTypesRequest) (*http.Response } type ApiRosterTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2658,22 +2657,22 @@ func (r ApiRosterTypesRequest) Execute() (*http.Response, error) { /* RosterTypes List all possible roster types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRosterTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRosterTypesRequest */ func (a *MiscAPIService) RosterTypes(ctx context.Context) ApiRosterTypesRequest { return ApiRosterTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) RosterTypesExecute(r ApiRosterTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.RosterTypes") @@ -2733,7 +2732,7 @@ func (a *MiscAPIService) RosterTypesExecute(r ApiRosterTypesRequest) (*http.Resp } type ApiRuleSettingsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2744,22 +2743,22 @@ func (r ApiRuleSettingsRequest) Execute() (*http.Response, error) { /* RuleSettings List all ruleSettings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRuleSettingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRuleSettingsRequest */ func (a *MiscAPIService) RuleSettings(ctx context.Context) ApiRuleSettingsRequest { return ApiRuleSettingsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) RuleSettingsExecute(r ApiRuleSettingsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.RuleSettings") @@ -2819,7 +2818,7 @@ func (a *MiscAPIService) RuleSettingsExecute(r ApiRuleSettingsRequest) (*http.Re } type ApiRunnerDetailTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -2830,22 +2829,22 @@ func (r ApiRunnerDetailTypesRequest) Execute() (*http.Response, error) { /* RunnerDetailTypes List runner detail types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiRunnerDetailTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiRunnerDetailTypesRequest */ func (a *MiscAPIService) RunnerDetailTypes(ctx context.Context) ApiRunnerDetailTypesRequest { return ApiRunnerDetailTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) RunnerDetailTypesExecute(r ApiRunnerDetailTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.RunnerDetailTypes") @@ -2905,9 +2904,9 @@ func (a *MiscAPIService) RunnerDetailTypesExecute(r ApiRunnerDetailTypesRequest) } type ApiScheduleEventTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -2923,22 +2922,22 @@ func (r ApiScheduleEventTypesRequest) Execute() (*http.Response, error) { /* ScheduleEventTypes List all schedule event types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiScheduleEventTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiScheduleEventTypesRequest */ func (a *MiscAPIService) ScheduleEventTypes(ctx context.Context) ApiScheduleEventTypesRequest { return ApiScheduleEventTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) ScheduleEventTypesExecute(r ApiScheduleEventTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.ScheduleEventTypes") @@ -3001,7 +3000,7 @@ func (a *MiscAPIService) ScheduleEventTypesExecute(r ApiScheduleEventTypesReques } type ApiScheduleTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -3012,22 +3011,22 @@ func (r ApiScheduleTypesRequest) Execute() (*http.Response, error) { /* ScheduleTypes List all possible schedule types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiScheduleTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiScheduleTypesRequest */ func (a *MiscAPIService) ScheduleTypes(ctx context.Context) ApiScheduleTypesRequest { return ApiScheduleTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) ScheduleTypesExecute(r ApiScheduleTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.ScheduleTypes") @@ -3087,11 +3086,11 @@ func (a *MiscAPIService) ScheduleTypesExecute(r ApiScheduleTypesRequest) (*http. } type ApiSitCodesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} - season *interface{} - statGroup *interface{} + fields *interface{} + season *interface{} + statGroup *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -3119,22 +3118,22 @@ func (r ApiSitCodesRequest) Execute() (*http.Response, error) { /* SitCodes List all situation codes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSitCodesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSitCodesRequest */ func (a *MiscAPIService) SitCodes(ctx context.Context) ApiSitCodesRequest { return ApiSitCodesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) SitCodesExecute(r ApiSitCodesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.SitCodes") @@ -3203,9 +3202,9 @@ func (a *MiscAPIService) SitCodesExecute(r ApiSitCodesRequest) (*http.Response, } type ApiSkyRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -3221,22 +3220,22 @@ func (r ApiSkyRequest) Execute() (*http.Response, error) { /* Sky List all sky options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSkyRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSkyRequest */ func (a *MiscAPIService) Sky(ctx context.Context) ApiSkyRequest { return ApiSkyRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) SkyExecute(r ApiSkyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.Sky") @@ -3299,7 +3298,7 @@ func (a *MiscAPIService) SkyExecute(r ApiSkyRequest) (*http.Response, error) { } type ApiStandingsTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -3310,22 +3309,22 @@ func (r ApiStandingsTypesRequest) Execute() (*http.Response, error) { /* StandingsTypes List all standings types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStandingsTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStandingsTypesRequest */ func (a *MiscAPIService) StandingsTypes(ctx context.Context) ApiStandingsTypesRequest { return ApiStandingsTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StandingsTypesExecute(r ApiStandingsTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StandingsTypes") @@ -3385,7 +3384,7 @@ func (a *MiscAPIService) StandingsTypesExecute(r ApiStandingsTypesRequest) (*htt } type ApiStatFieldsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -3396,22 +3395,22 @@ func (r ApiStatFieldsRequest) Execute() (*http.Response, error) { /* StatFields List all stat fields - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatFieldsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatFieldsRequest */ func (a *MiscAPIService) StatFields(ctx context.Context) ApiStatFieldsRequest { return ApiStatFieldsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatFieldsExecute(r ApiStatFieldsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatFields") @@ -3471,7 +3470,7 @@ func (a *MiscAPIService) StatFieldsExecute(r ApiStatFieldsRequest) (*http.Respon } type ApiStatGroupsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -3482,22 +3481,22 @@ func (r ApiStatGroupsRequest) Execute() (*http.Response, error) { /* StatGroups List all stat groups - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatGroupsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatGroupsRequest */ func (a *MiscAPIService) StatGroups(ctx context.Context) ApiStatGroupsRequest { return ApiStatGroupsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatGroupsExecute(r ApiStatGroupsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatGroups") @@ -3557,10 +3556,10 @@ func (a *MiscAPIService) StatGroupsExecute(r ApiStatGroupsRequest) (*http.Respon } type ApiStatSearchConfigRequest struct { - ctx context.Context - ApiService *MiscAPIService + ctx context.Context + ApiService *MiscAPIService filterLevel *interface{} - group *interface{} + group *interface{} } // Categories of filters for stat search @@ -3582,22 +3581,22 @@ func (r ApiStatSearchConfigRequest) Execute() (*http.Response, error) { /* StatSearchConfig Stats Search Config Endpoint - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatSearchConfigRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatSearchConfigRequest */ func (a *MiscAPIService) StatSearchConfig(ctx context.Context) ApiStatSearchConfigRequest { return ApiStatSearchConfigRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatSearchConfigExecute(r ApiStatSearchConfigRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatSearchConfig") @@ -3663,8 +3662,8 @@ func (a *MiscAPIService) StatSearchConfigExecute(r ApiStatSearchConfigRequest) ( } type ApiStatSearchGroupByTypesRequest struct { - ctx context.Context - ApiService *MiscAPIService + ctx context.Context + ApiService *MiscAPIService filterLevel *interface{} } @@ -3681,22 +3680,22 @@ func (r ApiStatSearchGroupByTypesRequest) Execute() (*http.Response, error) { /* StatSearchGroupByTypes List groupBy types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatSearchGroupByTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatSearchGroupByTypesRequest */ func (a *MiscAPIService) StatSearchGroupByTypes(ctx context.Context) ApiStatSearchGroupByTypesRequest { return ApiStatSearchGroupByTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatSearchGroupByTypesExecute(r ApiStatSearchGroupByTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatSearchGroupByTypes") @@ -3759,8 +3758,8 @@ func (a *MiscAPIService) StatSearchGroupByTypesExecute(r ApiStatSearchGroupByTyp } type ApiStatSearchParamsRequest struct { - ctx context.Context - ApiService *MiscAPIService + ctx context.Context + ApiService *MiscAPIService filterLevel *interface{} } @@ -3777,22 +3776,22 @@ func (r ApiStatSearchParamsRequest) Execute() (*http.Response, error) { /* StatSearchParams List stat search parameters - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatSearchParamsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatSearchParamsRequest */ func (a *MiscAPIService) StatSearchParams(ctx context.Context) ApiStatSearchParamsRequest { return ApiStatSearchParamsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatSearchParamsExecute(r ApiStatSearchParamsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatSearchParams") @@ -3855,8 +3854,8 @@ func (a *MiscAPIService) StatSearchParamsExecute(r ApiStatSearchParamsRequest) ( } type ApiStatSearchStatsRequest struct { - ctx context.Context - ApiService *MiscAPIService + ctx context.Context + ApiService *MiscAPIService filterLevel *interface{} } @@ -3873,22 +3872,22 @@ func (r ApiStatSearchStatsRequest) Execute() (*http.Response, error) { /* StatSearchStats List stat search stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatSearchStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatSearchStatsRequest */ func (a *MiscAPIService) StatSearchStats(ctx context.Context) ApiStatSearchStatsRequest { return ApiStatSearchStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatSearchStatsExecute(r ApiStatSearchStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatSearchStats") @@ -3951,7 +3950,7 @@ func (a *MiscAPIService) StatSearchStatsExecute(r ApiStatSearchStatsRequest) (*h } type ApiStatTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -3962,22 +3961,22 @@ func (r ApiStatTypesRequest) Execute() (*http.Response, error) { /* StatTypes List all stat types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatTypesRequest */ func (a *MiscAPIService) StatTypes(ctx context.Context) ApiStatTypesRequest { return ApiStatTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatTypesExecute(r ApiStatTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatTypes") @@ -4037,7 +4036,7 @@ func (a *MiscAPIService) StatTypesExecute(r ApiStatTypesRequest) (*http.Response } type ApiStatcastPositionTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4048,22 +4047,22 @@ func (r ApiStatcastPositionTypesRequest) Execute() (*http.Response, error) { /* StatcastPositionTypes List all statcast position types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStatcastPositionTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStatcastPositionTypesRequest */ func (a *MiscAPIService) StatcastPositionTypes(ctx context.Context) ApiStatcastPositionTypesRequest { return ApiStatcastPositionTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) StatcastPositionTypesExecute(r ApiStatcastPositionTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.StatcastPositionTypes") @@ -4123,7 +4122,7 @@ func (a *MiscAPIService) StatcastPositionTypesExecute(r ApiStatcastPositionTypes } type ApiTrackingSoftwareVersionsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4134,22 +4133,22 @@ func (r ApiTrackingSoftwareVersionsRequest) Execute() (*http.Response, error) { /* TrackingSoftwareVersions List the tracking software versions and notes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTrackingSoftwareVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTrackingSoftwareVersionsRequest */ func (a *MiscAPIService) TrackingSoftwareVersions(ctx context.Context) ApiTrackingSoftwareVersionsRequest { return ApiTrackingSoftwareVersionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) TrackingSoftwareVersionsExecute(r ApiTrackingSoftwareVersionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.TrackingSoftwareVersions") @@ -4209,7 +4208,7 @@ func (a *MiscAPIService) TrackingSoftwareVersionsExecute(r ApiTrackingSoftwareVe } type ApiTrackingSystemOwnersRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4220,22 +4219,22 @@ func (r ApiTrackingSystemOwnersRequest) Execute() (*http.Response, error) { /* TrackingSystemOwners List all tracking system owners - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTrackingSystemOwnersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTrackingSystemOwnersRequest */ func (a *MiscAPIService) TrackingSystemOwners(ctx context.Context) ApiTrackingSystemOwnersRequest { return ApiTrackingSystemOwnersRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) TrackingSystemOwnersExecute(r ApiTrackingSystemOwnersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.TrackingSystemOwners") @@ -4295,7 +4294,7 @@ func (a *MiscAPIService) TrackingSystemOwnersExecute(r ApiTrackingSystemOwnersRe } type ApiTrackingVendorsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4306,22 +4305,22 @@ func (r ApiTrackingVendorsRequest) Execute() (*http.Response, error) { /* TrackingVendors List all tracking vendors - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTrackingVendorsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTrackingVendorsRequest */ func (a *MiscAPIService) TrackingVendors(ctx context.Context) ApiTrackingVendorsRequest { return ApiTrackingVendorsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) TrackingVendorsExecute(r ApiTrackingVendorsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.TrackingVendors") @@ -4381,7 +4380,7 @@ func (a *MiscAPIService) TrackingVendorsExecute(r ApiTrackingVendorsRequest) (*h } type ApiTrackingVersionsRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4392,22 +4391,22 @@ func (r ApiTrackingVersionsRequest) Execute() (*http.Response, error) { /* TrackingVersions List all tracking versions - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTrackingVersionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTrackingVersionsRequest */ func (a *MiscAPIService) TrackingVersions(ctx context.Context) ApiTrackingVersionsRequest { return ApiTrackingVersionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) TrackingVersionsExecute(r ApiTrackingVersionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.TrackingVersions") @@ -4467,9 +4466,9 @@ func (a *MiscAPIService) TrackingVersionsExecute(r ApiTrackingVersionsRequest) ( } type ApiTransactionTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -4485,22 +4484,22 @@ func (r ApiTransactionTypesRequest) Execute() (*http.Response, error) { /* TransactionTypes List all transaction types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTransactionTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransactionTypesRequest */ func (a *MiscAPIService) TransactionTypes(ctx context.Context) ApiTransactionTypesRequest { return ApiTransactionTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) TransactionTypesExecute(r ApiTransactionTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.TransactionTypes") @@ -4563,7 +4562,7 @@ func (a *MiscAPIService) TransactionTypesExecute(r ApiTransactionTypesRequest) ( } type ApiUpdateGameStatusesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4574,22 +4573,22 @@ func (r ApiUpdateGameStatusesRequest) Execute() (*http.Response, error) { /* UpdateGameStatuses Clear all status types - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUpdateGameStatusesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateGameStatusesRequest */ func (a *MiscAPIService) UpdateGameStatuses(ctx context.Context) ApiUpdateGameStatusesRequest { return ApiUpdateGameStatusesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) UpdateGameStatusesExecute(r ApiUpdateGameStatusesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.UpdateGameStatuses") @@ -4649,7 +4648,7 @@ func (a *MiscAPIService) UpdateGameStatusesExecute(r ApiUpdateGameStatusesReques } type ApiUpdateJobTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4660,22 +4659,22 @@ func (r ApiUpdateJobTypesRequest) Execute() (*http.Response, error) { /* UpdateJobTypes Method for UpdateJobTypes - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUpdateJobTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdateJobTypesRequest */ func (a *MiscAPIService) UpdateJobTypes(ctx context.Context) ApiUpdateJobTypesRequest { return ApiUpdateJobTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) UpdateJobTypesExecute(r ApiUpdateJobTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.UpdateJobTypes") @@ -4735,7 +4734,7 @@ func (a *MiscAPIService) UpdateJobTypesExecute(r ApiUpdateJobTypesRequest) (*htt } type ApiVideoResolutionTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4746,22 +4745,22 @@ func (r ApiVideoResolutionTypesRequest) Execute() (*http.Response, error) { /* VideoResolutionTypes View video resolution options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiVideoResolutionTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiVideoResolutionTypesRequest */ func (a *MiscAPIService) VideoResolutionTypes(ctx context.Context) ApiVideoResolutionTypesRequest { return ApiVideoResolutionTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) VideoResolutionTypesExecute(r ApiVideoResolutionTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.VideoResolutionTypes") @@ -4821,7 +4820,7 @@ func (a *MiscAPIService) VideoResolutionTypesExecute(r ApiVideoResolutionTypesRe } type ApiViolationTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4832,22 +4831,22 @@ func (r ApiViolationTypesRequest) Execute() (*http.Response, error) { /* ViolationTypes View available violationType options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiViolationTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiViolationTypesRequest */ func (a *MiscAPIService) ViolationTypes(ctx context.Context) ApiViolationTypesRequest { return ApiViolationTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) ViolationTypesExecute(r ApiViolationTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.ViolationTypes") @@ -4907,7 +4906,7 @@ func (a *MiscAPIService) ViolationTypesExecute(r ApiViolationTypesRequest) (*htt } type ApiWeatherTrajectoryConfidencesRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService } @@ -4918,22 +4917,22 @@ func (r ApiWeatherTrajectoryConfidencesRequest) Execute() (*http.Response, error /* WeatherTrajectoryConfidences List all weather trajectories - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWeatherTrajectoryConfidencesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWeatherTrajectoryConfidencesRequest */ func (a *MiscAPIService) WeatherTrajectoryConfidences(ctx context.Context) ApiWeatherTrajectoryConfidencesRequest { return ApiWeatherTrajectoryConfidencesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) WeatherTrajectoryConfidencesExecute(r ApiWeatherTrajectoryConfidencesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.WeatherTrajectoryConfidences") @@ -4993,9 +4992,9 @@ func (a *MiscAPIService) WeatherTrajectoryConfidencesExecute(r ApiWeatherTraject } type ApiWindDirectionRequest struct { - ctx context.Context + ctx context.Context ApiService *MiscAPIService - fields *interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -5011,22 +5010,22 @@ func (r ApiWindDirectionRequest) Execute() (*http.Response, error) { /* WindDirection List all wind direction options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiWindDirectionRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiWindDirectionRequest */ func (a *MiscAPIService) WindDirection(ctx context.Context) ApiWindDirectionRequest { return ApiWindDirectionRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *MiscAPIService) WindDirectionExecute(r ApiWindDirectionRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MiscAPIService.WindDirection") diff --git a/api/api_person.go b/api/api_person.go index b6ba6c9..42b8217 100644 --- a/api/api_person.go +++ b/api/api_person.go @@ -19,15 +19,14 @@ import ( "strings" ) - // PersonAPIService PersonAPI service type PersonAPIService service type ApiAwardRequest struct { - ctx context.Context + ctx context.Context ApiService *PersonAPIService - personId interface{} - fields *interface{} + personId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -43,24 +42,24 @@ func (r ApiAwardRequest) Execute() (*http.Response, error) { /* Award View a player's awards - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @return ApiAwardRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @return ApiAwardRequest */ func (a *PersonAPIService) Award(ctx context.Context, personId interface{}) ApiAwardRequest { return ApiAwardRequest{ ApiService: a, - ctx: ctx, - personId: personId, + ctx: ctx, + personId: personId, } } // Execute executes the request func (a *PersonAPIService) AwardExecute(r ApiAwardRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Award") @@ -124,13 +123,13 @@ func (a *PersonAPIService) AwardExecute(r ApiAwardRequest) (*http.Response, erro } type ApiCurrentGameStatsRequest struct { - ctx context.Context - ApiService *PersonAPIService + ctx context.Context + ApiService *PersonAPIService updatedSince *interface{} - limit *interface{} - offset *interface{} - accent *interface{} - fields *interface{} + limit *interface{} + offset *interface{} + accent *interface{} + fields *interface{} } // Format: YYYY-MM-DDTHH:MM:SSZ @@ -170,22 +169,22 @@ func (r ApiCurrentGameStatsRequest) Execute() (*http.Response, error) { /* CurrentGameStats View a player's change log - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCurrentGameStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCurrentGameStatsRequest */ func (a *PersonAPIService) CurrentGameStats(ctx context.Context) ApiCurrentGameStatsRequest { return ApiCurrentGameStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *PersonAPIService) CurrentGameStatsExecute(r ApiCurrentGameStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.CurrentGameStats") @@ -261,12 +260,12 @@ func (a *PersonAPIService) CurrentGameStatsExecute(r ApiCurrentGameStatsRequest) } type ApiFreeAgentsRequest struct { - ctx context.Context + ctx context.Context ApiService *PersonAPIService - season *interface{} - order *interface{} - accent *interface{} - fields *interface{} + season *interface{} + order *interface{} + accent *interface{} + fields *interface{} } // Season of play @@ -299,22 +298,22 @@ func (r ApiFreeAgentsRequest) Execute() (*http.Response, error) { /* FreeAgents Get free agents - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiFreeAgentsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFreeAgentsRequest */ func (a *PersonAPIService) FreeAgents(ctx context.Context) ApiFreeAgentsRequest { return ApiFreeAgentsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *PersonAPIService) FreeAgentsExecute(r ApiFreeAgentsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.FreeAgents") @@ -387,14 +386,14 @@ func (a *PersonAPIService) FreeAgentsExecute(r ApiFreeAgentsRequest) (*http.Resp } type ApiPersonRequest struct { - ctx context.Context + ctx context.Context ApiService *PersonAPIService - personId interface{} - personIds *interface{} - accent *interface{} - season *interface{} - group *interface{} - fields *interface{} + personId interface{} + personIds *interface{} + accent *interface{} + season *interface{} + group *interface{} + fields *interface{} } // Comma delimited list of person ID. Format: 1234, 2345 @@ -436,24 +435,24 @@ Person View a player This endpoint allows you to pull the information of players - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @return ApiPersonRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @return ApiPersonRequest */ func (a *PersonAPIService) Person(ctx context.Context, personId interface{}) ApiPersonRequest { return ApiPersonRequest{ ApiService: a, - ctx: ctx, - personId: personId, + ctx: ctx, + personId: personId, } } // Execute executes the request func (a *PersonAPIService) PersonExecute(r ApiPersonRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Person") @@ -529,14 +528,14 @@ func (a *PersonAPIService) PersonExecute(r ApiPersonRequest) (*http.Response, er } type ApiPerson1Request struct { - ctx context.Context + ctx context.Context ApiService *PersonAPIService - personId interface{} - personIds *interface{} - accent *interface{} - season *interface{} - group *interface{} - fields *interface{} + personId interface{} + personIds *interface{} + accent *interface{} + season *interface{} + group *interface{} + fields *interface{} } // Comma delimited list of person ID. Format: 1234, 2345 @@ -578,24 +577,24 @@ Person1 View a player This endpoint allows you to pull the information of players - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @return ApiPerson1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @return ApiPerson1Request */ func (a *PersonAPIService) Person1(ctx context.Context, personId interface{}) ApiPerson1Request { return ApiPerson1Request{ ApiService: a, - ctx: ctx, - personId: personId, + ctx: ctx, + personId: personId, } } // Execute executes the request func (a *PersonAPIService) Person1Execute(r ApiPerson1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Person1") @@ -671,12 +670,12 @@ func (a *PersonAPIService) Person1Execute(r ApiPerson1Request) (*http.Response, } type ApiPlayerGameStatsRequest struct { - ctx context.Context + ctx context.Context ApiService *PersonAPIService - personId interface{} - gamePk interface{} - group *interface{} - fields *interface{} + personId interface{} + gamePk interface{} + group *interface{} + fields *interface{} } // Category of statistic to return. Available types in /api/v1/statGroups @@ -698,26 +697,26 @@ func (r ApiPlayerGameStatsRequest) Execute() (*http.Response, error) { /* PlayerGameStats View a player's game stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @param gamePk Unique Primary Key Representing a Game - @return ApiPlayerGameStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @param gamePk Unique Primary Key Representing a Game + @return ApiPlayerGameStatsRequest */ func (a *PersonAPIService) PlayerGameStats(ctx context.Context, personId interface{}, gamePk interface{}) ApiPlayerGameStatsRequest { return ApiPlayerGameStatsRequest{ ApiService: a, - ctx: ctx, - personId: personId, - gamePk: gamePk, + ctx: ctx, + personId: personId, + gamePk: gamePk, } } // Execute executes the request func (a *PersonAPIService) PlayerGameStatsExecute(r ApiPlayerGameStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.PlayerGameStats") @@ -785,21 +784,21 @@ func (a *PersonAPIService) PlayerGameStatsExecute(r ApiPlayerGameStatsRequest) ( } type ApiSearchRequest struct { - ctx context.Context - ApiService *PersonAPIService - names *interface{} - personIds *interface{} - sportIds *interface{} - leagueIds *interface{} - teamIds *interface{} + ctx context.Context + ApiService *PersonAPIService + names *interface{} + personIds *interface{} + sportIds *interface{} + leagueIds *interface{} + teamIds *interface{} leagueListId *interface{} - active *interface{} - verified *interface{} - rookie *interface{} - seasons *interface{} - fields *interface{} - accent *interface{} - limit *interface{} + active *interface{} + verified *interface{} + rookie *interface{} + seasons *interface{} + fields *interface{} + accent *interface{} + limit *interface{} } // Name a player uses @@ -887,22 +886,22 @@ func (r ApiSearchRequest) Execute() (*http.Response, error) { /* Search Search for a player by name - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSearchRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSearchRequest */ func (a *PersonAPIService) Search(ctx context.Context) ApiSearchRequest { return ApiSearchRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *PersonAPIService) SearchExecute(r ApiSearchRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Search") @@ -1001,34 +1000,34 @@ func (a *PersonAPIService) SearchExecute(r ApiSearchRequest) (*http.Response, er } type ApiStats3Request struct { - ctx context.Context - ApiService *PersonAPIService - personId interface{} - stats *interface{} - group *interface{} - season *interface{} - seasons *interface{} - sportId *interface{} - opposingTeamId *interface{} + ctx context.Context + ApiService *PersonAPIService + personId interface{} + stats *interface{} + group *interface{} + season *interface{} + seasons *interface{} + sportId *interface{} + opposingTeamId *interface{} opposingPlayerId *interface{} - metrics *interface{} - leagueId *interface{} - leagueListId *interface{} - sitCodes *interface{} - combineSits *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - gamesBack *interface{} - limit *interface{} - eventType *interface{} - pitchType *interface{} - hitTrajectory *interface{} - batSide *interface{} - gameType *interface{} - groupBy *interface{} - accent *interface{} - fields *interface{} + metrics *interface{} + leagueId *interface{} + leagueListId *interface{} + sitCodes *interface{} + combineSits *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + gamesBack *interface{} + limit *interface{} + eventType *interface{} + pitchType *interface{} + hitTrajectory *interface{} + batSide *interface{} + gameType *interface{} + groupBy *interface{} + accent *interface{} + fields *interface{} } // Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes @@ -1188,24 +1187,24 @@ func (r ApiStats3Request) Execute() (*http.Response, error) { /* Stats3 View a players stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @return ApiStats3Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @return ApiStats3Request */ func (a *PersonAPIService) Stats3(ctx context.Context, personId interface{}) ApiStats3Request { return ApiStats3Request{ ApiService: a, - ctx: ctx, - personId: personId, + ctx: ctx, + personId: personId, } } // Execute executes the request func (a *PersonAPIService) Stats3Execute(r ApiStats3Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.Stats3") @@ -1342,34 +1341,34 @@ func (a *PersonAPIService) Stats3Execute(r ApiStats3Request) (*http.Response, er } type ApiStatsMetricsRequest struct { - ctx context.Context - ApiService *PersonAPIService - personId interface{} - stats *interface{} - group *interface{} - season *interface{} - seasons *interface{} - sportId *interface{} - opposingTeamId *interface{} + ctx context.Context + ApiService *PersonAPIService + personId interface{} + stats *interface{} + group *interface{} + season *interface{} + seasons *interface{} + sportId *interface{} + opposingTeamId *interface{} opposingPlayerId *interface{} - metrics *interface{} - leagueId *interface{} - leagueListId *interface{} - sitCodes *interface{} - combineSits *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - gamesBack *interface{} - limit *interface{} - eventType *interface{} - pitchType *interface{} - hitTrajectory *interface{} - batSide *interface{} - gameType *interface{} - groupBy *interface{} - accent *interface{} - fields *interface{} + metrics *interface{} + leagueId *interface{} + leagueListId *interface{} + sitCodes *interface{} + combineSits *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + gamesBack *interface{} + limit *interface{} + eventType *interface{} + pitchType *interface{} + hitTrajectory *interface{} + batSide *interface{} + gameType *interface{} + groupBy *interface{} + accent *interface{} + fields *interface{} } // Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes @@ -1529,24 +1528,24 @@ func (r ApiStatsMetricsRequest) Execute() (*http.Response, error) { /* StatsMetrics View a player's stat metrics - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param personId Unique Player Identifier. Format: 434538, 429665, etc - @return ApiStatsMetricsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param personId Unique Player Identifier. Format: 434538, 429665, etc + @return ApiStatsMetricsRequest */ func (a *PersonAPIService) StatsMetrics(ctx context.Context, personId interface{}) ApiStatsMetricsRequest { return ApiStatsMetricsRequest{ ApiService: a, - ctx: ctx, - personId: personId, + ctx: ctx, + personId: personId, } } // Execute executes the request func (a *PersonAPIService) StatsMetricsExecute(r ApiStatsMetricsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PersonAPIService.StatsMetrics") diff --git a/api/api_predictions.go b/api/api_predictions.go index 5fcb3ca..1c55aa6 100644 --- a/api/api_predictions.go +++ b/api/api_predictions.go @@ -18,19 +18,18 @@ import ( "net/url" ) - // PredictionsAPIService PredictionsAPI service type PredictionsAPIService service type ApiGetPropsRequest struct { - ctx context.Context - ApiService *PredictionsAPIService - batterId *interface{} - pitcherId *interface{} - venueId *interface{} - batSide *interface{} - pitchHand *interface{} - batterPosition *interface{} + ctx context.Context + ApiService *PredictionsAPIService + batterId *interface{} + pitcherId *interface{} + venueId *interface{} + batSide *interface{} + pitchHand *interface{} + batterPosition *interface{} pitcherPosition *interface{} } @@ -85,22 +84,22 @@ GetProps Get play-level predictions based on input scenarios This endpoint allows you to get play-level predictions based on input scenarios - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetPropsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPropsRequest */ func (a *PredictionsAPIService) GetProps(ctx context.Context) ApiGetPropsRequest { return ApiGetPropsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *PredictionsAPIService) GetPropsExecute(r ApiGetPropsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PredictionsAPIService.GetProps") @@ -181,9 +180,9 @@ func (a *PredictionsAPIService) GetPropsExecute(r ApiGetPropsRequest) (*http.Res } type ApiGetPropsAdjustRequest struct { - ctx context.Context + ctx context.Context ApiService *PredictionsAPIService - gamePk *interface{} + gamePk *interface{} } // Unique Primary Key Representing a Game @@ -201,22 +200,22 @@ GetPropsAdjust Get play-level predictions based on input scenarios This endpoint allows you to get play-level predictions based on input scenarios - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetPropsAdjustRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetPropsAdjustRequest */ func (a *PredictionsAPIService) GetPropsAdjust(ctx context.Context) ApiGetPropsAdjustRequest { return ApiGetPropsAdjustRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *PredictionsAPIService) GetPropsAdjustExecute(r ApiGetPropsAdjustRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PredictionsAPIService.GetPropsAdjust") diff --git a/api/api_reviews.go b/api/api_reviews.go index aa307d0..9f36248 100644 --- a/api/api_reviews.go +++ b/api/api_reviews.go @@ -18,17 +18,16 @@ import ( "net/url" ) - // ReviewsAPIService ReviewsAPI service type ReviewsAPIService service type ApiGetReviewInfoRequest struct { - ctx context.Context + ctx context.Context ApiService *ReviewsAPIService - sportId *interface{} - season *interface{} - gameType *interface{} - fields *interface{} + sportId *interface{} + season *interface{} + gameType *interface{} + fields *interface{} } // Unique Team Identifier. Format: 141, 147, etc @@ -62,22 +61,22 @@ func (r ApiGetReviewInfoRequest) Execute() (*http.Response, error) { /* GetReviewInfo Get review info - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetReviewInfoRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetReviewInfoRequest */ func (a *ReviewsAPIService) GetReviewInfo(ctx context.Context) ApiGetReviewInfoRequest { return ApiGetReviewInfoRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ReviewsAPIService) GetReviewInfoExecute(r ApiGetReviewInfoRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ReviewsAPIService.GetReviewInfo") diff --git a/api/api_schedule.go b/api/api_schedule.go index a06e264..105394a 100644 --- a/api/api_schedule.go +++ b/api/api_schedule.go @@ -18,22 +18,21 @@ import ( "net/url" ) - // ScheduleAPIService ScheduleAPI service type ScheduleAPIService service type ApiPostseasonScheduleRequest struct { - ctx context.Context - ApiService *ScheduleAPIService - gameTypes *interface{} - seriesNumber *interface{} - teamId *interface{} - sportId *interface{} - useLatestGames *interface{} + ctx context.Context + ApiService *ScheduleAPIService + gameTypes *interface{} + seriesNumber *interface{} + teamId *interface{} + sportId *interface{} + useLatestGames *interface{} useFeaturedGame *interface{} - season *interface{} - publicFacing *interface{} - fields *interface{} + season *interface{} + publicFacing *interface{} + fields *interface{} } // Comma delimited list of type of Game. Available types in /api/v1/gameTypes @@ -95,22 +94,22 @@ PostseasonSchedule Get postseason schedule This endpoint allows you to pull postseason schedules - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostseasonScheduleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostseasonScheduleRequest */ func (a *ScheduleAPIService) PostseasonSchedule(ctx context.Context) ApiPostseasonScheduleRequest { return ApiPostseasonScheduleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) PostseasonScheduleExecute(r ApiPostseasonScheduleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.PostseasonSchedule") @@ -197,19 +196,19 @@ func (a *ScheduleAPIService) PostseasonScheduleExecute(r ApiPostseasonScheduleRe } type ApiPostseasonScheduleSeriesRequest struct { - ctx context.Context - ApiService *ScheduleAPIService - gameTypes *interface{} - seriesNumber *interface{} - teamId *interface{} - sportId *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - useLatestGames *interface{} + ctx context.Context + ApiService *ScheduleAPIService + gameTypes *interface{} + seriesNumber *interface{} + teamId *interface{} + sportId *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + useLatestGames *interface{} useFeaturedGame *interface{} - season *interface{} - fields *interface{} + season *interface{} + fields *interface{} } // Comma delimited list of type of Game. Available types in /api/v1/gameTypes @@ -283,22 +282,22 @@ PostseasonScheduleSeries Get postseason series schedules This endpoint allows you to pull postseason schedules - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiPostseasonScheduleSeriesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPostseasonScheduleSeriesRequest */ func (a *ScheduleAPIService) PostseasonScheduleSeries(ctx context.Context) ApiPostseasonScheduleSeriesRequest { return ApiPostseasonScheduleSeriesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) PostseasonScheduleSeriesExecute(r ApiPostseasonScheduleSeriesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.PostseasonScheduleSeries") @@ -391,32 +390,32 @@ func (a *ScheduleAPIService) PostseasonScheduleSeriesExecute(r ApiPostseasonSche } type ApiScheduleRequest struct { - ctx context.Context - ApiService *ScheduleAPIService + ctx context.Context + ApiService *ScheduleAPIService usingPrivateEndpoint *interface{} - calendarTypes *interface{} - eventTypes *interface{} - scheduleEventTypes *interface{} - teamId *interface{} - leagueId *interface{} - sportId *interface{} - gamePk *interface{} - gamePks *interface{} - eventIds *interface{} - venueIds *interface{} - performerIds *interface{} - gameTypes *interface{} - gameType *interface{} - season *interface{} - seasons *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - timecode *interface{} - useLatestGames *interface{} - opponentId *interface{} - publicFacing *interface{} - fields *interface{} + calendarTypes *interface{} + eventTypes *interface{} + scheduleEventTypes *interface{} + teamId *interface{} + leagueId *interface{} + sportId *interface{} + gamePk *interface{} + gamePks *interface{} + eventIds *interface{} + venueIds *interface{} + performerIds *interface{} + gameTypes *interface{} + gameType *interface{} + season *interface{} + seasons *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + timecode *interface{} + useLatestGames *interface{} + opponentId *interface{} + publicFacing *interface{} + fields *interface{} } func (r ApiScheduleRequest) UsingPrivateEndpoint(usingPrivateEndpoint interface{}) ApiScheduleRequest { @@ -570,22 +569,22 @@ Schedule View schedule info based on scheduleType. View schedule info. This endpoint allows you to pull schedules - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiScheduleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiScheduleRequest */ func (a *ScheduleAPIService) Schedule(ctx context.Context) ApiScheduleRequest { return ApiScheduleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) ScheduleExecute(r ApiScheduleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.Schedule") @@ -718,32 +717,32 @@ func (a *ScheduleAPIService) ScheduleExecute(r ApiScheduleRequest) (*http.Respon } type ApiSchedule1Request struct { - ctx context.Context - ApiService *ScheduleAPIService + ctx context.Context + ApiService *ScheduleAPIService usingPrivateEndpoint *interface{} - calendarTypes *interface{} - eventTypes *interface{} - scheduleEventTypes *interface{} - teamId *interface{} - leagueId *interface{} - sportId *interface{} - gamePk *interface{} - gamePks *interface{} - eventIds *interface{} - venueIds *interface{} - performerIds *interface{} - gameTypes *interface{} - gameType *interface{} - season *interface{} - seasons *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - timecode *interface{} - useLatestGames *interface{} - opponentId *interface{} - publicFacing *interface{} - fields *interface{} + calendarTypes *interface{} + eventTypes *interface{} + scheduleEventTypes *interface{} + teamId *interface{} + leagueId *interface{} + sportId *interface{} + gamePk *interface{} + gamePks *interface{} + eventIds *interface{} + venueIds *interface{} + performerIds *interface{} + gameTypes *interface{} + gameType *interface{} + season *interface{} + seasons *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + timecode *interface{} + useLatestGames *interface{} + opponentId *interface{} + publicFacing *interface{} + fields *interface{} } func (r ApiSchedule1Request) UsingPrivateEndpoint(usingPrivateEndpoint interface{}) ApiSchedule1Request { @@ -897,22 +896,22 @@ Schedule1 View schedule info based on scheduleType. View schedule info. This endpoint allows you to pull schedules - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiSchedule1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiSchedule1Request */ func (a *ScheduleAPIService) Schedule1(ctx context.Context) ApiSchedule1Request { return ApiSchedule1Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) Schedule1Execute(r ApiSchedule1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.Schedule1") @@ -1045,12 +1044,12 @@ func (a *ScheduleAPIService) Schedule1Execute(r ApiSchedule1Request) (*http.Resp } type ApiTieGamesRequest struct { - ctx context.Context + ctx context.Context ApiService *ScheduleAPIService - season *interface{} - sportId *interface{} - gameTypes *interface{} - fields *interface{} + season *interface{} + sportId *interface{} + gameTypes *interface{} + fields *interface{} } // Season of play @@ -1086,22 +1085,22 @@ TieGames Get tied game schedules This endpoint allows you to pull tie game schedules for the given season - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTieGamesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTieGamesRequest */ func (a *ScheduleAPIService) TieGames(ctx context.Context) ApiTieGamesRequest { return ApiTieGamesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) TieGamesExecute(r ApiTieGamesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TieGames") @@ -1174,30 +1173,30 @@ func (a *ScheduleAPIService) TieGamesExecute(r ApiTieGamesRequest) (*http.Respon } type ApiTrackingEventsScheduleRequest struct { - ctx context.Context - ApiService *ScheduleAPIService - calendarTypes *interface{} - eventTypes *interface{} - teamId *interface{} - leagueId *interface{} - sportId *interface{} - gamePk *interface{} - gamePks *interface{} - eventIds *interface{} - venueIds *interface{} - performerIds *interface{} - gameTypes *interface{} - gameType *interface{} - season *interface{} - seasons *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - timecode *interface{} + ctx context.Context + ApiService *ScheduleAPIService + calendarTypes *interface{} + eventTypes *interface{} + teamId *interface{} + leagueId *interface{} + sportId *interface{} + gamePk *interface{} + gamePks *interface{} + eventIds *interface{} + venueIds *interface{} + performerIds *interface{} + gameTypes *interface{} + gameType *interface{} + season *interface{} + seasons *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + timecode *interface{} useLatestGames *interface{} - opponentId *interface{} - publicFacing *interface{} - fields *interface{} + opponentId *interface{} + publicFacing *interface{} + fields *interface{} } // Comma delimited list of type of calendar types @@ -1340,22 +1339,22 @@ TrackingEventsSchedule Get tracking event schedules This endpoint allows you to pull schedules for tracking events - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTrackingEventsScheduleRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTrackingEventsScheduleRequest */ func (a *ScheduleAPIService) TrackingEventsSchedule(ctx context.Context) ApiTrackingEventsScheduleRequest { return ApiTrackingEventsScheduleRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) TrackingEventsScheduleExecute(r ApiTrackingEventsScheduleRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TrackingEventsSchedule") @@ -1481,12 +1480,12 @@ func (a *ScheduleAPIService) TrackingEventsScheduleExecute(r ApiTrackingEventsSc } type ApiTuneInRequest struct { - ctx context.Context + ctx context.Context ApiService *ScheduleAPIService - teamId *interface{} - sportId *interface{} - season *interface{} - fields *interface{} + teamId *interface{} + sportId *interface{} + season *interface{} + fields *interface{} } // Unique Team Identifier. Format: 141, 147, etc @@ -1522,22 +1521,22 @@ TuneIn Get postseason TuneIn schedules This endpoint allows you to pull postseason schedules - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTuneInRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTuneInRequest */ func (a *ScheduleAPIService) TuneIn(ctx context.Context) ApiTuneInRequest { return ApiTuneInRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *ScheduleAPIService) TuneInExecute(r ApiTuneInRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ScheduleAPIService.TuneIn") diff --git a/api/api_season.go b/api/api_season.go index 0878b88..bbb0953 100644 --- a/api/api_season.go +++ b/api/api_season.go @@ -19,18 +19,17 @@ import ( "strings" ) - // SeasonAPIService SeasonAPI service type SeasonAPIService service type ApiAllSeasonsRequest struct { - ctx context.Context - ApiService *SeasonAPIService - divisionId *interface{} - leagueId *interface{} - sportId *interface{} + ctx context.Context + ApiService *SeasonAPIService + divisionId *interface{} + leagueId *interface{} + sportId *interface{} withGameTypeDates *interface{} - fields *interface{} + fields *interface{} } // Unique Division Identifier @@ -72,22 +71,22 @@ AllSeasons View all seasons This endpoint allows you to view all seasons for a given Division, League or Sport - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiAllSeasonsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAllSeasonsRequest */ func (a *SeasonAPIService) AllSeasons(ctx context.Context) ApiAllSeasonsRequest { return ApiAllSeasonsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *SeasonAPIService) AllSeasonsExecute(r ApiAllSeasonsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.AllSeasons") @@ -162,13 +161,13 @@ func (a *SeasonAPIService) AllSeasonsExecute(r ApiAllSeasonsRequest) (*http.Resp } type ApiSeasonsRequest struct { - ctx context.Context - ApiService *SeasonAPIService - seasonId interface{} - season *interface{} - sportId *interface{} + ctx context.Context + ApiService *SeasonAPIService + seasonId interface{} + season *interface{} + sportId *interface{} withGameTypeDates *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -204,24 +203,24 @@ Seasons View season info This endpoint allows you to pull seasons - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param seasonId Season of play - @return ApiSeasonsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param seasonId Season of play + @return ApiSeasonsRequest */ func (a *SeasonAPIService) Seasons(ctx context.Context, seasonId interface{}) ApiSeasonsRequest { return ApiSeasonsRequest{ ApiService: a, - ctx: ctx, - seasonId: seasonId, + ctx: ctx, + seasonId: seasonId, } } // Execute executes the request func (a *SeasonAPIService) SeasonsExecute(r ApiSeasonsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.Seasons") @@ -294,13 +293,13 @@ func (a *SeasonAPIService) SeasonsExecute(r ApiSeasonsRequest) (*http.Response, } type ApiSeasons1Request struct { - ctx context.Context - ApiService *SeasonAPIService - seasonId interface{} - season *interface{} - sportId *interface{} + ctx context.Context + ApiService *SeasonAPIService + seasonId interface{} + season *interface{} + sportId *interface{} withGameTypeDates *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -336,24 +335,24 @@ Seasons1 View season info This endpoint allows you to pull seasons - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param seasonId Season of play - @return ApiSeasons1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param seasonId Season of play + @return ApiSeasons1Request */ func (a *SeasonAPIService) Seasons1(ctx context.Context, seasonId interface{}) ApiSeasons1Request { return ApiSeasons1Request{ ApiService: a, - ctx: ctx, - seasonId: seasonId, + ctx: ctx, + seasonId: seasonId, } } // Execute executes the request func (a *SeasonAPIService) Seasons1Execute(r ApiSeasons1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SeasonAPIService.Seasons1") diff --git a/api/api_skeletal.go b/api/api_skeletal.go index fa97553..e4f4007 100644 --- a/api/api_skeletal.go +++ b/api/api_skeletal.go @@ -19,17 +19,16 @@ import ( "strings" ) - // SkeletalAPIService SkeletalAPI service type SkeletalAPIService service type ApiSkeletalChunkedRequest struct { - ctx context.Context + ctx context.Context ApiService *SkeletalAPIService - gamePk interface{} - playId interface{} - fileName *interface{} - fields *interface{} + gamePk interface{} + playId interface{} + fileName *interface{} + fields *interface{} } // Skeletal chunked file name @@ -53,26 +52,26 @@ SkeletalChunked View Skeletal Data by playId and gameId chunked This endpoint allows you to pull chunked skeletal tracking data by gameId and playId - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param playId Unique play identifier - @return ApiSkeletalChunkedRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param playId Unique play identifier + @return ApiSkeletalChunkedRequest */ func (a *SkeletalAPIService) SkeletalChunked(ctx context.Context, gamePk interface{}, playId interface{}) ApiSkeletalChunkedRequest { return ApiSkeletalChunkedRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - playId: playId, + ctx: ctx, + gamePk: gamePk, + playId: playId, } } // Execute executes the request func (a *SkeletalAPIService) SkeletalChunkedExecute(r ApiSkeletalChunkedRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkeletalAPIService.SkeletalChunked") @@ -141,11 +140,11 @@ func (a *SkeletalAPIService) SkeletalChunkedExecute(r ApiSkeletalChunkedRequest) } type ApiSkeletalDataFileNamesRequest struct { - ctx context.Context + ctx context.Context ApiService *SkeletalAPIService - gamePk interface{} - playId interface{} - fields *interface{} + gamePk interface{} + playId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -163,26 +162,26 @@ SkeletalDataFileNames View Skeletal Data by playId and gameId files This endpoint allows you to pull chunked skeletal tracking data by gameId and playId - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param playId Unique play identifier - @return ApiSkeletalDataFileNamesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param playId Unique play identifier + @return ApiSkeletalDataFileNamesRequest */ func (a *SkeletalAPIService) SkeletalDataFileNames(ctx context.Context, gamePk interface{}, playId interface{}) ApiSkeletalDataFileNamesRequest { return ApiSkeletalDataFileNamesRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - playId: playId, + ctx: ctx, + gamePk: gamePk, + playId: playId, } } // Execute executes the request func (a *SkeletalAPIService) SkeletalDataFileNamesExecute(r ApiSkeletalDataFileNamesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SkeletalAPIService.SkeletalDataFileNames") diff --git a/api/api_sports.go b/api/api_sports.go index 73730ff..c439632 100644 --- a/api/api_sports.go +++ b/api/api_sports.go @@ -19,16 +19,15 @@ import ( "strings" ) - // SportsAPIService SportsAPI service type SportsAPIService service type ApiAllSportBallotRequest struct { - ctx context.Context + ctx context.Context ApiService *SportsAPIService - sportId interface{} - season *interface{} - fields *interface{} + sportId interface{} + season *interface{} + fields *interface{} } // season @@ -51,24 +50,24 @@ AllSportBallot Get ALL MLB ballot for sport This endpoint allows you to get all players for MLB ballot - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param sportId Top level organization of a sport - @return ApiAllSportBallotRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sportId Top level organization of a sport + @return ApiAllSportBallotRequest */ func (a *SportsAPIService) AllSportBallot(ctx context.Context, sportId interface{}) ApiAllSportBallotRequest { return ApiAllSportBallotRequest{ ApiService: a, - ctx: ctx, - sportId: sportId, + ctx: ctx, + sportId: sportId, } } // Execute executes the request func (a *SportsAPIService) AllSportBallotExecute(r ApiAllSportBallotRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.AllSportBallot") @@ -136,14 +135,14 @@ func (a *SportsAPIService) AllSportBallotExecute(r ApiAllSportBallotRequest) (*h } type ApiSportPlayersRequest struct { - ctx context.Context + ctx context.Context ApiService *SportsAPIService - sportId interface{} - season *interface{} - gameType *interface{} - hasStats *interface{} - accent *interface{} - fields *interface{} + sportId interface{} + season *interface{} + gameType *interface{} + hasStats *interface{} + accent *interface{} + fields *interface{} } // Season of play @@ -185,24 +184,24 @@ SportPlayers Get all players for a sport level This endpoint allows you to pull all players for a given sport - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param sportId Top level organization of a sport - @return ApiSportPlayersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sportId Top level organization of a sport + @return ApiSportPlayersRequest */ func (a *SportsAPIService) SportPlayers(ctx context.Context, sportId interface{}) ApiSportPlayersRequest { return ApiSportPlayersRequest{ ApiService: a, - ctx: ctx, - sportId: sportId, + ctx: ctx, + sportId: sportId, } } // Execute executes the request func (a *SportsAPIService) SportPlayersExecute(r ApiSportPlayersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.SportPlayers") @@ -278,12 +277,12 @@ func (a *SportsAPIService) SportPlayersExecute(r ApiSportPlayersRequest) (*http. } type ApiSportsRequest struct { - ctx context.Context - ApiService *SportsAPIService - sportId interface{} - season *interface{} - fields *interface{} - hasStats *interface{} + ctx context.Context + ApiService *SportsAPIService + sportId interface{} + season *interface{} + fields *interface{} + hasStats *interface{} activeStatus *interface{} } @@ -320,24 +319,24 @@ Sports Get sports information This endpoint allows you to pull sports - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param sportId Top level organization of a sport - @return ApiSportsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sportId Top level organization of a sport + @return ApiSportsRequest */ func (a *SportsAPIService) Sports(ctx context.Context, sportId interface{}) ApiSportsRequest { return ApiSportsRequest{ ApiService: a, - ctx: ctx, - sportId: sportId, + ctx: ctx, + sportId: sportId, } } // Execute executes the request func (a *SportsAPIService) SportsExecute(r ApiSportsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.Sports") @@ -410,12 +409,12 @@ func (a *SportsAPIService) SportsExecute(r ApiSportsRequest) (*http.Response, er } type ApiSports1Request struct { - ctx context.Context - ApiService *SportsAPIService - sportId interface{} - season *interface{} - fields *interface{} - hasStats *interface{} + ctx context.Context + ApiService *SportsAPIService + sportId interface{} + season *interface{} + fields *interface{} + hasStats *interface{} activeStatus *interface{} } @@ -452,24 +451,24 @@ Sports1 Get sports information This endpoint allows you to pull sports - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param sportId Top level organization of a sport - @return ApiSports1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param sportId Top level organization of a sport + @return ApiSports1Request */ func (a *SportsAPIService) Sports1(ctx context.Context, sportId interface{}) ApiSports1Request { return ApiSports1Request{ ApiService: a, - ctx: ctx, - sportId: sportId, + ctx: ctx, + sportId: sportId, } } // Execute executes the request func (a *SportsAPIService) Sports1Execute(r ApiSports1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SportsAPIService.Sports1") diff --git a/api/api_standings.go b/api/api_standings.go index edea05d..4df1597 100644 --- a/api/api_standings.go +++ b/api/api_standings.go @@ -19,21 +19,20 @@ import ( "strings" ) - // StandingsAPIService StandingsAPI service type StandingsAPIService service type ApiStandingsRequest struct { - ctx context.Context - ApiService *StandingsAPIService - standingsType interface{} - leagueId *interface{} - season *interface{} + ctx context.Context + ApiService *StandingsAPIService + standingsType interface{} + leagueId *interface{} + season *interface{} standingsTypes *interface{} - date *interface{} - teamId *interface{} - includeMLB *interface{} - fields *interface{} + date *interface{} + teamId *interface{} + includeMLB *interface{} + fields *interface{} } // Unique League Identifier @@ -87,14 +86,14 @@ Standings View standings for a league This endpoint allows you to pull standings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param standingsType Type of season. Available types in /api/v1/standingsTypes - @return ApiStandingsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param standingsType Type of season. Available types in /api/v1/standingsTypes + @return ApiStandingsRequest */ func (a *StandingsAPIService) Standings(ctx context.Context, standingsType interface{}) ApiStandingsRequest { return ApiStandingsRequest{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, standingsType: standingsType, } } @@ -102,9 +101,9 @@ func (a *StandingsAPIService) Standings(ctx context.Context, standingsType inter // Execute executes the request func (a *StandingsAPIService) StandingsExecute(r ApiStandingsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StandingsAPIService.Standings") @@ -186,16 +185,16 @@ func (a *StandingsAPIService) StandingsExecute(r ApiStandingsRequest) (*http.Res } type ApiStandings1Request struct { - ctx context.Context - ApiService *StandingsAPIService - standingsType interface{} - leagueId *interface{} - season *interface{} + ctx context.Context + ApiService *StandingsAPIService + standingsType interface{} + leagueId *interface{} + season *interface{} standingsTypes *interface{} - date *interface{} - teamId *interface{} - includeMLB *interface{} - fields *interface{} + date *interface{} + teamId *interface{} + includeMLB *interface{} + fields *interface{} } // Unique League Identifier @@ -249,14 +248,14 @@ Standings1 View standings for a league This endpoint allows you to pull standings - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param standingsType Type of season. Available types in /api/v1/standingsTypes - @return ApiStandings1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param standingsType Type of season. Available types in /api/v1/standingsTypes + @return ApiStandings1Request */ func (a *StandingsAPIService) Standings1(ctx context.Context, standingsType interface{}) ApiStandings1Request { return ApiStandings1Request{ - ApiService: a, - ctx: ctx, + ApiService: a, + ctx: ctx, standingsType: standingsType, } } @@ -264,9 +263,9 @@ func (a *StandingsAPIService) Standings1(ctx context.Context, standingsType inte // Execute executes the request func (a *StandingsAPIService) Standings1Execute(r ApiStandings1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StandingsAPIService.Standings1") diff --git a/api/api_stats.go b/api/api_stats.go index 4993624..2944888 100644 --- a/api/api_stats.go +++ b/api/api_stats.go @@ -18,111 +18,110 @@ import ( "net/url" ) - // StatsAPIService StatsAPI service type StatsAPIService service type ApiBeastStatsRequest struct { - ctx context.Context - ApiService *StatsAPIService - group *interface{} - gamePks *interface{} - playIds *interface{} - seasons *interface{} - gameTypes *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - teamIds *interface{} - pitcherTeamIds *interface{} - batterTeamIds *interface{} - sportIds *interface{} - pitcherSportIds *interface{} - batterSportIds *interface{} - leagueIds *interface{} - pitcherLeagueIds *interface{} - batterLeagueIds *interface{} - divisionIds *interface{} - pitcherDivisionIds *interface{} - batterDivisionIds *interface{} - pitchersOnTeamIds *interface{} - battersOnTeamIds *interface{} - playerIds *interface{} - playerPool *interface{} - pitcherIds *interface{} - batterIds *interface{} - catcherIds *interface{} - firstBasemanIds *interface{} - secondBasemanIds *interface{} - thirdBasemanIds *interface{} - shortstopIds *interface{} - leftFielderIds *interface{} - centerFielderIds *interface{} - rightFielderIds *interface{} - runnerFirstIds *interface{} - runnerSecondIds *interface{} - runnerThirdIds *interface{} - venueIds *interface{} - pitchHand *interface{} - batSide *interface{} - pitchTypes *interface{} - pitchCodes *interface{} - eventTypes *interface{} - positions *interface{} - primaryPositions *interface{} - minPitchSpeed *interface{} - maxPitchSpeed *interface{} - minSpinRate *interface{} - maxSpinRate *interface{} - minExtension *interface{} - maxExtension *interface{} + ctx context.Context + ApiService *StatsAPIService + group *interface{} + gamePks *interface{} + playIds *interface{} + seasons *interface{} + gameTypes *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + teamIds *interface{} + pitcherTeamIds *interface{} + batterTeamIds *interface{} + sportIds *interface{} + pitcherSportIds *interface{} + batterSportIds *interface{} + leagueIds *interface{} + pitcherLeagueIds *interface{} + batterLeagueIds *interface{} + divisionIds *interface{} + pitcherDivisionIds *interface{} + batterDivisionIds *interface{} + pitchersOnTeamIds *interface{} + battersOnTeamIds *interface{} + playerIds *interface{} + playerPool *interface{} + pitcherIds *interface{} + batterIds *interface{} + catcherIds *interface{} + firstBasemanIds *interface{} + secondBasemanIds *interface{} + thirdBasemanIds *interface{} + shortstopIds *interface{} + leftFielderIds *interface{} + centerFielderIds *interface{} + rightFielderIds *interface{} + runnerFirstIds *interface{} + runnerSecondIds *interface{} + runnerThirdIds *interface{} + venueIds *interface{} + pitchHand *interface{} + batSide *interface{} + pitchTypes *interface{} + pitchCodes *interface{} + eventTypes *interface{} + positions *interface{} + primaryPositions *interface{} + minPitchSpeed *interface{} + maxPitchSpeed *interface{} + minSpinRate *interface{} + maxSpinRate *interface{} + minExtension *interface{} + maxExtension *interface{} minExitVelocityAgainst *interface{} maxExitVelocityAgainst *interface{} - minLaunchAngleAgainst *interface{} - maxLaunchAngleAgainst *interface{} - minExitVelocity *interface{} - maxExitVelocity *interface{} - minLaunchAngle *interface{} - maxLaunchAngle *interface{} - minHomeRunDistance *interface{} - maxHomeRunDistance *interface{} - minHitDistance *interface{} - maxHitDistance *interface{} - minHangTime *interface{} - maxHangTime *interface{} - minHitProbability *interface{} - maxHitProbability *interface{} - minCatchProbability *interface{} - maxCatchProbability *interface{} - minAttackAngle *interface{} - maxAttackAngle *interface{} - minBatSpeed *interface{} - maxBatSpeed *interface{} - minHomeRunXBallparks *interface{} - maxHomeRunXBallparks *interface{} - isBarrel *interface{} - hitTrajectories *interface{} - limit *interface{} - offset *interface{} - groupBy *interface{} - compareOver *interface{} - sortStat *interface{} - sortModifier *interface{} - sortOrder *interface{} - percentile *interface{} - minOccurrences *interface{} - minPlateAppearances *interface{} - minInnings *interface{} - qualifierRate *interface{} - sitCodes *interface{} - showTotals *interface{} - includeNullMetrics *interface{} - statFields *interface{} - atBatNumbers *interface{} - pitchNumbers *interface{} - fields *interface{} - debug *interface{} - activeStatus *interface{} + minLaunchAngleAgainst *interface{} + maxLaunchAngleAgainst *interface{} + minExitVelocity *interface{} + maxExitVelocity *interface{} + minLaunchAngle *interface{} + maxLaunchAngle *interface{} + minHomeRunDistance *interface{} + maxHomeRunDistance *interface{} + minHitDistance *interface{} + maxHitDistance *interface{} + minHangTime *interface{} + maxHangTime *interface{} + minHitProbability *interface{} + maxHitProbability *interface{} + minCatchProbability *interface{} + maxCatchProbability *interface{} + minAttackAngle *interface{} + maxAttackAngle *interface{} + minBatSpeed *interface{} + maxBatSpeed *interface{} + minHomeRunXBallparks *interface{} + maxHomeRunXBallparks *interface{} + isBarrel *interface{} + hitTrajectories *interface{} + limit *interface{} + offset *interface{} + groupBy *interface{} + compareOver *interface{} + sortStat *interface{} + sortModifier *interface{} + sortOrder *interface{} + percentile *interface{} + minOccurrences *interface{} + minPlateAppearances *interface{} + minInnings *interface{} + qualifierRate *interface{} + sitCodes *interface{} + showTotals *interface{} + includeNullMetrics *interface{} + statFields *interface{} + atBatNumbers *interface{} + pitchNumbers *interface{} + fields *interface{} + debug *interface{} + activeStatus *interface{} } // Category of statistic to return. Available types in /api/v1/statGroups @@ -719,22 +718,22 @@ func (r ApiBeastStatsRequest) Execute() (*http.Response, error) { /* BeastStats View stats from search - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiBeastStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiBeastStatsRequest */ func (a *StatsAPIService) BeastStats(ctx context.Context) ApiBeastStatsRequest { return ApiBeastStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) BeastStatsExecute(r ApiBeastStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.BeastStats") @@ -1089,11 +1088,11 @@ func (a *StatsAPIService) BeastStatsExecute(r ApiBeastStatsRequest) (*http.Respo } type ApiGetOutsAboveAverageRequest struct { - ctx context.Context + ctx context.Context ApiService *StatsAPIService - gamePk *interface{} - timecode *interface{} - fields *interface{} + gamePk *interface{} + timecode *interface{} + fields *interface{} } func (r ApiGetOutsAboveAverageRequest) GamePk(gamePk interface{}) ApiGetOutsAboveAverageRequest { @@ -1119,22 +1118,22 @@ func (r ApiGetOutsAboveAverageRequest) Execute() (*http.Response, error) { /* GetOutsAboveAverage Get outs above average for the current batter - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetOutsAboveAverageRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetOutsAboveAverageRequest */ func (a *StatsAPIService) GetOutsAboveAverage(ctx context.Context) ApiGetOutsAboveAverageRequest { return ApiGetOutsAboveAverageRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) GetOutsAboveAverageExecute(r ApiGetOutsAboveAverageRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetOutsAboveAverage") @@ -1204,11 +1203,11 @@ func (a *StatsAPIService) GetOutsAboveAverageExecute(r ApiGetOutsAboveAverageReq } type ApiGetSprayChartRequest struct { - ctx context.Context + ctx context.Context ApiService *StatsAPIService - gamePk *interface{} - timecode *interface{} - fields *interface{} + gamePk *interface{} + timecode *interface{} + fields *interface{} } func (r ApiGetSprayChartRequest) GamePk(gamePk interface{}) ApiGetSprayChartRequest { @@ -1234,22 +1233,22 @@ func (r ApiGetSprayChartRequest) Execute() (*http.Response, error) { /* GetSprayChart Get the spray chart info for the current batter - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetSprayChartRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetSprayChartRequest */ func (a *StatsAPIService) GetSprayChart(ctx context.Context) ApiGetSprayChartRequest { return ApiGetSprayChartRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) GetSprayChartExecute(r ApiGetSprayChartRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetSprayChart") @@ -1319,10 +1318,10 @@ func (a *StatsAPIService) GetSprayChartExecute(r ApiGetSprayChartRequest) (*http } type ApiGetStolenBaseProbabilityRequest struct { - ctx context.Context + ctx context.Context ApiService *StatsAPIService - gamePk *interface{} - timecode *interface{} + gamePk *interface{} + timecode *interface{} } func (r ApiGetStolenBaseProbabilityRequest) GamePk(gamePk interface{}) ApiGetStolenBaseProbabilityRequest { @@ -1342,22 +1341,22 @@ func (r ApiGetStolenBaseProbabilityRequest) Execute() (*http.Response, error) { /* GetStolenBaseProbability Get the probability of a hit for the given hit data - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetStolenBaseProbabilityRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStolenBaseProbabilityRequest */ func (a *StatsAPIService) GetStolenBaseProbability(ctx context.Context) ApiGetStolenBaseProbabilityRequest { return ApiGetStolenBaseProbabilityRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) GetStolenBaseProbabilityExecute(r ApiGetStolenBaseProbabilityRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GetStolenBaseProbability") @@ -1424,44 +1423,44 @@ func (a *StatsAPIService) GetStolenBaseProbabilityExecute(r ApiGetStolenBaseProb } type ApiGroupedStatsRequest struct { - ctx context.Context - ApiService *StatsAPIService - stats *interface{} - group *interface{} - personId *interface{} - teamId *interface{} - teamIds *interface{} - gameType *interface{} - season *interface{} - seasons *interface{} - sportId *interface{} - sportIds *interface{} - leagueId *interface{} - leagueIds *interface{} - leagueListId *interface{} - metrics *interface{} - gamePk *interface{} - batterTeamId *interface{} - pitcherTeamId *interface{} - batterId *interface{} - pitcherId *interface{} - sitCodes *interface{} - combineSits *interface{} - opposingTeamId *interface{} - fields *interface{} - sortStat *interface{} - order *interface{} - playerPool *interface{} - position *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - gamesBack *interface{} + ctx context.Context + ApiService *StatsAPIService + stats *interface{} + group *interface{} + personId *interface{} + teamId *interface{} + teamIds *interface{} + gameType *interface{} + season *interface{} + seasons *interface{} + sportId *interface{} + sportIds *interface{} + leagueId *interface{} + leagueIds *interface{} + leagueListId *interface{} + metrics *interface{} + gamePk *interface{} + batterTeamId *interface{} + pitcherTeamId *interface{} + batterId *interface{} + pitcherId *interface{} + sitCodes *interface{} + combineSits *interface{} + opposingTeamId *interface{} + fields *interface{} + sortStat *interface{} + order *interface{} + playerPool *interface{} + position *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + gamesBack *interface{} excludeTradedPlayers *interface{} - offset *interface{} - limit *interface{} - statFields *interface{} - sortField *interface{} + offset *interface{} + limit *interface{} + statFields *interface{} + sortField *interface{} } // Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes @@ -1687,22 +1686,22 @@ func (r ApiGroupedStatsRequest) Execute() (*http.Response, error) { /* GroupedStats View grouped stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGroupedStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGroupedStatsRequest */ func (a *StatsAPIService) GroupedStats(ctx context.Context) ApiGroupedStatsRequest { return ApiGroupedStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) GroupedStatsExecute(r ApiGroupedStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.GroupedStats") @@ -1872,35 +1871,35 @@ func (a *StatsAPIService) GroupedStatsExecute(r ApiGroupedStatsRequest) (*http.R } type ApiLeaders2Request struct { - ctx context.Context - ApiService *StatsAPIService + ctx context.Context + ApiService *StatsAPIService leaderCategories *interface{} - leaderGameTypes *interface{} - statGroup *interface{} - season *interface{} - expand *interface{} - sportId *interface{} - sportIds *interface{} - stats *interface{} - limit *interface{} - offset *interface{} - teamId *interface{} - teamIds *interface{} - leagueId *interface{} - leagueIds *interface{} - leagueListId *interface{} - playerPool *interface{} - statType *interface{} - playerActive *interface{} - position *interface{} - sitCodes *interface{} - opposingTeamId *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - gamesBack *interface{} - groupBy *interface{} - fields *interface{} + leaderGameTypes *interface{} + statGroup *interface{} + season *interface{} + expand *interface{} + sportId *interface{} + sportIds *interface{} + stats *interface{} + limit *interface{} + offset *interface{} + teamId *interface{} + teamIds *interface{} + leagueId *interface{} + leagueIds *interface{} + leagueListId *interface{} + playerPool *interface{} + statType *interface{} + playerActive *interface{} + position *interface{} + sitCodes *interface{} + opposingTeamId *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + gamesBack *interface{} + groupBy *interface{} + fields *interface{} } func (r ApiLeaders2Request) LeaderCategories(leaderCategories interface{}) ApiLeaders2Request { @@ -2045,22 +2044,22 @@ func (r ApiLeaders2Request) Execute() (*http.Response, error) { /* Leaders2 Get leaders for a statistic - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeaders2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeaders2Request */ func (a *StatsAPIService) Leaders2(ctx context.Context) ApiLeaders2Request { return ApiLeaders2Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) Leaders2Execute(r ApiLeaders2Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.Leaders2") @@ -2201,44 +2200,44 @@ func (a *StatsAPIService) Leaders2Execute(r ApiLeaders2Request) (*http.Response, } type ApiMetricStatsRequest struct { - ctx context.Context - ApiService *StatsAPIService - stats *interface{} - metrics *interface{} - personId *interface{} - personIds *interface{} - batterId *interface{} - pitcherId *interface{} - teamId *interface{} - group *interface{} - season *interface{} - seasons *interface{} - sportId *interface{} - opposingTeamId *interface{} + ctx context.Context + ApiService *StatsAPIService + stats *interface{} + metrics *interface{} + personId *interface{} + personIds *interface{} + batterId *interface{} + pitcherId *interface{} + teamId *interface{} + group *interface{} + season *interface{} + seasons *interface{} + sportId *interface{} + opposingTeamId *interface{} opposingPlayerId *interface{} - position *interface{} - eventType *interface{} - pitchType *interface{} - hitTrajectory *interface{} - batSide *interface{} - pitchHand *interface{} - venueId *interface{} - gamePk *interface{} - minValue *interface{} - maxValue *interface{} - percentile *interface{} - minOccurrences *interface{} - offset *interface{} - limit *interface{} - order *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - gameType *interface{} - batterTeamId *interface{} - pitcherTeamId *interface{} - fields *interface{} - debug *interface{} + position *interface{} + eventType *interface{} + pitchType *interface{} + hitTrajectory *interface{} + batSide *interface{} + pitchHand *interface{} + venueId *interface{} + gamePk *interface{} + minValue *interface{} + maxValue *interface{} + percentile *interface{} + minOccurrences *interface{} + offset *interface{} + limit *interface{} + order *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + gameType *interface{} + batterTeamId *interface{} + pitcherTeamId *interface{} + fields *interface{} + debug *interface{} } // Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes @@ -2463,22 +2462,22 @@ func (r ApiMetricStatsRequest) Execute() (*http.Response, error) { /* MetricStats View metric stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiMetricStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiMetricStatsRequest */ func (a *StatsAPIService) MetricStats(ctx context.Context) ApiMetricStatsRequest { return ApiMetricStatsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) MetricStatsExecute(r ApiMetricStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.MetricStats") @@ -2648,42 +2647,42 @@ func (a *StatsAPIService) MetricStatsExecute(r ApiMetricStatsRequest) (*http.Res } type ApiStats2Request struct { - ctx context.Context - ApiService *StatsAPIService - stats *interface{} - group *interface{} - personId *interface{} - teamId *interface{} - teamIds *interface{} - gameType *interface{} - season *interface{} - seasons *interface{} - sportId *interface{} - sportIds *interface{} - leagueId *interface{} - leagueIds *interface{} - leagueListId *interface{} - metrics *interface{} - gamePk *interface{} - batterTeamId *interface{} - pitcherTeamId *interface{} - batterId *interface{} - pitcherId *interface{} - sitCodes *interface{} - combineSits *interface{} - opposingTeamId *interface{} - fields *interface{} - sortStat *interface{} - order *interface{} - playerPool *interface{} - position *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - gamesBack *interface{} + ctx context.Context + ApiService *StatsAPIService + stats *interface{} + group *interface{} + personId *interface{} + teamId *interface{} + teamIds *interface{} + gameType *interface{} + season *interface{} + seasons *interface{} + sportId *interface{} + sportIds *interface{} + leagueId *interface{} + leagueIds *interface{} + leagueListId *interface{} + metrics *interface{} + gamePk *interface{} + batterTeamId *interface{} + pitcherTeamId *interface{} + batterId *interface{} + pitcherId *interface{} + sitCodes *interface{} + combineSits *interface{} + opposingTeamId *interface{} + fields *interface{} + sortStat *interface{} + order *interface{} + playerPool *interface{} + position *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + gamesBack *interface{} excludeTradedPlayers *interface{} - offset *interface{} - limit *interface{} + offset *interface{} + limit *interface{} } // Type of statistics. Format: Individual, Team, Career, etc. Available types in /api/v1/statTypes @@ -2896,22 +2895,22 @@ func (r ApiStats2Request) Execute() (*http.Response, error) { /* Stats2 View stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStats2Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStats2Request */ func (a *StatsAPIService) Stats2(ctx context.Context) ApiStats2Request { return ApiStats2Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StatsAPIService) Stats2Execute(r ApiStats2Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StatsAPIService.Stats2") diff --git a/api/api_streaks.go b/api/api_streaks.go index 200563f..9d9562a 100644 --- a/api/api_streaks.go +++ b/api/api_streaks.go @@ -18,30 +18,29 @@ import ( "net/url" ) - // StreaksAPIService StreaksAPI service type StreaksAPIService service type ApiGetStreaksRequest struct { - ctx context.Context - ApiService *StreaksAPIService - streakOrg *interface{} - streakStat *interface{} - streakSpan *interface{} - streakLevel *interface{} + ctx context.Context + ApiService *StreaksAPIService + streakOrg *interface{} + streakStat *interface{} + streakSpan *interface{} + streakLevel *interface{} streakThreshold *interface{} - inverse *interface{} - startersOnly *interface{} - statGroup *interface{} - gameType *interface{} - season *interface{} - teamId *interface{} - leagueId *interface{} - sportId *interface{} - activeStreak *interface{} - limit *interface{} - fields *interface{} - playerId *interface{} + inverse *interface{} + startersOnly *interface{} + statGroup *interface{} + gameType *interface{} + season *interface{} + teamId *interface{} + leagueId *interface{} + sportId *interface{} + activeStreak *interface{} + limit *interface{} + fields *interface{} + playerId *interface{} } func (r ApiGetStreaksRequest) StreakOrg(streakOrg interface{}) ApiGetStreaksRequest { @@ -146,22 +145,22 @@ func (r ApiGetStreaksRequest) Execute() (*http.Response, error) { /* GetStreaks View streaks - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiGetStreaksRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetStreaksRequest */ func (a *StreaksAPIService) GetStreaks(ctx context.Context) ApiGetStreaksRequest { return ApiGetStreaksRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StreaksAPIService) GetStreaksExecute(r ApiGetStreaksRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreaksAPIService.GetStreaks") @@ -272,7 +271,7 @@ func (a *StreaksAPIService) GetStreaksExecute(r ApiGetStreaksRequest) (*http.Res } type ApiStreakTypesRequest struct { - ctx context.Context + ctx context.Context ApiService *StreaksAPIService } @@ -283,22 +282,22 @@ func (r ApiStreakTypesRequest) Execute() (*http.Response, error) { /* StreakTypes View streaks parameter options - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStreakTypesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStreakTypesRequest */ func (a *StreaksAPIService) StreakTypes(ctx context.Context) ApiStreakTypesRequest { return ApiStreakTypesRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *StreaksAPIService) StreakTypesExecute(r ApiStreakTypesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "StreaksAPIService.StreakTypes") diff --git a/api/api_teams.go b/api/api_teams.go index 97f018e..63267c6 100644 --- a/api/api_teams.go +++ b/api/api_teams.go @@ -19,19 +19,18 @@ import ( "strings" ) - // TeamsAPIService TeamsAPI service type TeamsAPIService service type ApiAffiliatesRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - teamIds *interface{} - sportId *interface{} - season *interface{} - gameType *interface{} - fields *interface{} + teamId interface{} + teamIds *interface{} + sportId *interface{} + season *interface{} + gameType *interface{} + fields *interface{} } // Unique Team Identifier. Format: 141, 147, etc @@ -71,24 +70,24 @@ func (r ApiAffiliatesRequest) Execute() (*http.Response, error) { /* Affiliates View team and affiliate teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiAffiliatesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiAffiliatesRequest */ func (a *TeamsAPIService) Affiliates(ctx context.Context, teamId interface{}) ApiAffiliatesRequest { return ApiAffiliatesRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) AffiliatesExecute(r ApiAffiliatesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Affiliates") @@ -164,14 +163,14 @@ func (a *TeamsAPIService) AffiliatesExecute(r ApiAffiliatesRequest) (*http.Respo } type ApiAffiliates1Request struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - teamIds *interface{} - sportId *interface{} - season *interface{} - gameType *interface{} - fields *interface{} + teamId interface{} + teamIds *interface{} + sportId *interface{} + season *interface{} + gameType *interface{} + fields *interface{} } // Unique Team Identifier. Format: 141, 147, etc @@ -211,24 +210,24 @@ func (r ApiAffiliates1Request) Execute() (*http.Response, error) { /* Affiliates1 View team and affiliate teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiAffiliates1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiAffiliates1Request */ func (a *TeamsAPIService) Affiliates1(ctx context.Context, teamId interface{}) ApiAffiliates1Request { return ApiAffiliates1Request{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) Affiliates1Execute(r ApiAffiliates1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Affiliates1") @@ -304,13 +303,13 @@ func (a *TeamsAPIService) Affiliates1Execute(r ApiAffiliates1Request) (*http.Res } type ApiAllTeamsRequest struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} - teamIds *interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} + teamIds *interface{} startSeason *interface{} - endSeason *interface{} - fields *interface{} + endSeason *interface{} + fields *interface{} } // Comma delimited list of Unique Team identifiers @@ -343,24 +342,24 @@ func (r ApiAllTeamsRequest) Execute() (*http.Response, error) { /* AllTeams View historical records for a list of teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiAllTeamsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiAllTeamsRequest */ func (a *TeamsAPIService) AllTeams(ctx context.Context, teamId interface{}) ApiAllTeamsRequest { return ApiAllTeamsRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) AllTeamsExecute(r ApiAllTeamsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.AllTeams") @@ -433,13 +432,13 @@ func (a *TeamsAPIService) AllTeamsExecute(r ApiAllTeamsRequest) (*http.Response, } type ApiAllTeams1Request struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} - teamIds *interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} + teamIds *interface{} startSeason *interface{} - endSeason *interface{} - fields *interface{} + endSeason *interface{} + fields *interface{} } // Comma delimited list of Unique Team identifiers @@ -472,24 +471,24 @@ func (r ApiAllTeams1Request) Execute() (*http.Response, error) { /* AllTeams1 View historical records for a list of teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiAllTeams1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiAllTeams1Request */ func (a *TeamsAPIService) AllTeams1(ctx context.Context, teamId interface{}) ApiAllTeams1Request { return ApiAllTeams1Request{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) AllTeams1Execute(r ApiAllTeams1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.AllTeams1") @@ -562,12 +561,12 @@ func (a *TeamsAPIService) AllTeams1Execute(r ApiAllTeams1Request) (*http.Respons } type ApiAlumniRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - season *interface{} - group *interface{} - fields *interface{} + teamId interface{} + season *interface{} + group *interface{} + fields *interface{} } // Season of play @@ -594,24 +593,24 @@ func (r ApiAlumniRequest) Execute() (*http.Response, error) { /* Alumni View all team alumni - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiAlumniRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiAlumniRequest */ func (a *TeamsAPIService) Alumni(ctx context.Context, teamId interface{}) ApiAlumniRequest { return ApiAlumniRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) AlumniExecute(r ApiAlumniRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Alumni") @@ -682,12 +681,12 @@ func (a *TeamsAPIService) AlumniExecute(r ApiAlumniRequest) (*http.Response, err } type ApiCoachesRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - season *interface{} - date *interface{} - fields *interface{} + teamId interface{} + season *interface{} + date *interface{} + fields *interface{} } // Season of play @@ -714,24 +713,24 @@ func (r ApiCoachesRequest) Execute() (*http.Response, error) { /* Coaches View all coaches for a team - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiCoachesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiCoachesRequest */ func (a *TeamsAPIService) Coaches(ctx context.Context, teamId interface{}) ApiCoachesRequest { return ApiCoachesRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) CoachesExecute(r ApiCoachesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Coaches") @@ -801,17 +800,17 @@ func (a *TeamsAPIService) CoachesExecute(r ApiCoachesRequest) (*http.Response, e } type ApiLeadersRequest struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} leaderCategories *interface{} - season *interface{} - leaderGameTypes *interface{} - expand *interface{} - limit *interface{} - offset *interface{} - playerPool *interface{} - fields *interface{} + season *interface{} + leaderGameTypes *interface{} + expand *interface{} + limit *interface{} + offset *interface{} + playerPool *interface{} + fields *interface{} } func (r ApiLeadersRequest) LeaderCategories(leaderCategories interface{}) ApiLeadersRequest { @@ -861,24 +860,24 @@ func (r ApiLeadersRequest) Execute() (*http.Response, error) { /* Leaders View team stat leaders - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId - @return ApiLeadersRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId + @return ApiLeadersRequest */ func (a *TeamsAPIService) Leaders(ctx context.Context, teamId interface{}) ApiLeadersRequest { return ApiLeadersRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) LeadersExecute(r ApiLeadersRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Leaders") @@ -963,27 +962,27 @@ func (a *TeamsAPIService) LeadersExecute(r ApiLeadersRequest) (*http.Response, e } type ApiLeaders1Request struct { - ctx context.Context - ApiService *TeamsAPIService + ctx context.Context + ApiService *TeamsAPIService leaderCategories *interface{} - gameTypes *interface{} - stats *interface{} - statType *interface{} - sportId *interface{} - sportIds *interface{} - leagueId *interface{} - leagueIds *interface{} - season *interface{} - statGroup *interface{} - group *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - sitCodes *interface{} - opposingTeamId *interface{} - limit *interface{} - offset *interface{} - fields *interface{} + gameTypes *interface{} + stats *interface{} + statType *interface{} + sportId *interface{} + sportIds *interface{} + leagueId *interface{} + leagueIds *interface{} + season *interface{} + statGroup *interface{} + group *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + sitCodes *interface{} + opposingTeamId *interface{} + limit *interface{} + offset *interface{} + fields *interface{} } // TBD @@ -1105,22 +1104,22 @@ func (r ApiLeaders1Request) Execute() (*http.Response, error) { /* Leaders1 View leaders for team stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiLeaders1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLeaders1Request */ func (a *TeamsAPIService) Leaders1(ctx context.Context) ApiLeaders1Request { return ApiLeaders1Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *TeamsAPIService) Leaders1Execute(r ApiLeaders1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Leaders1") @@ -1237,12 +1236,12 @@ func (a *TeamsAPIService) Leaders1Execute(r ApiLeaders1Request) (*http.Response, } type ApiPersonnelRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - season *interface{} - date *interface{} - fields *interface{} + teamId interface{} + season *interface{} + date *interface{} + fields *interface{} } // Season of play @@ -1269,24 +1268,24 @@ func (r ApiPersonnelRequest) Execute() (*http.Response, error) { /* Personnel View all coaches for a team - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiPersonnelRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiPersonnelRequest */ func (a *TeamsAPIService) Personnel(ctx context.Context, teamId interface{}) ApiPersonnelRequest { return ApiPersonnelRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) PersonnelExecute(r ApiPersonnelRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Personnel") @@ -1356,14 +1355,14 @@ func (a *TeamsAPIService) PersonnelExecute(r ApiPersonnelRequest) (*http.Respons } type ApiRosterRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} + teamId interface{} rosterType interface{} - season *interface{} - date *interface{} - gameType *interface{} - fields *interface{} + season *interface{} + date *interface{} + gameType *interface{} + fields *interface{} } // Season of play @@ -1399,16 +1398,16 @@ Roster View a teams roster This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @param rosterType Type of roster. Available types in /api/v1/rosterTypes - @return ApiRosterRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @param rosterType Type of roster. Available types in /api/v1/rosterTypes + @return ApiRosterRequest */ func (a *TeamsAPIService) Roster(ctx context.Context, teamId interface{}, rosterType interface{}) ApiRosterRequest { return ApiRosterRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, rosterType: rosterType, } } @@ -1416,9 +1415,9 @@ func (a *TeamsAPIService) Roster(ctx context.Context, teamId interface{}, roster // Execute executes the request func (a *TeamsAPIService) RosterExecute(r ApiRosterRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Roster") @@ -1492,14 +1491,14 @@ func (a *TeamsAPIService) RosterExecute(r ApiRosterRequest) (*http.Response, err } type ApiRoster1Request struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} + teamId interface{} rosterType interface{} - season *interface{} - date *interface{} - gameType *interface{} - fields *interface{} + season *interface{} + date *interface{} + gameType *interface{} + fields *interface{} } // Season of play @@ -1535,16 +1534,16 @@ Roster1 View a teams roster This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @param rosterType Type of roster. Available types in /api/v1/rosterTypes - @return ApiRoster1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @param rosterType Type of roster. Available types in /api/v1/rosterTypes + @return ApiRoster1Request */ func (a *TeamsAPIService) Roster1(ctx context.Context, teamId interface{}, rosterType interface{}) ApiRoster1Request { return ApiRoster1Request{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, rosterType: rosterType, } } @@ -1552,9 +1551,9 @@ func (a *TeamsAPIService) Roster1(ctx context.Context, teamId interface{}, roste // Execute executes the request func (a *TeamsAPIService) Roster1Execute(r ApiRoster1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Roster1") @@ -1628,23 +1627,23 @@ func (a *TeamsAPIService) Roster1Execute(r ApiRoster1Request) (*http.Response, e } type ApiStatsRequest struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} - group *interface{} - sportId *interface{} - season *interface{} - gameType *interface{} - stats *interface{} - sortStat *interface{} - order *interface{} - groupBy *interface{} - opposingTeamId *interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} + group *interface{} + sportId *interface{} + season *interface{} + gameType *interface{} + stats *interface{} + sortStat *interface{} + order *interface{} + groupBy *interface{} + opposingTeamId *interface{} opposingPlayerId *interface{} - sitCodes *interface{} - startDate *interface{} - endDate *interface{} - fields *interface{} + sitCodes *interface{} + startDate *interface{} + endDate *interface{} + fields *interface{} } // Category of statistic to return. Available types in /api/v1/statGroups @@ -1738,24 +1737,24 @@ func (r ApiStatsRequest) Execute() (*http.Response, error) { /* Stats View a teams stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiStatsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiStatsRequest */ func (a *TeamsAPIService) Stats(ctx context.Context, teamId interface{}) ApiStatsRequest { return ApiStatsRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) StatsExecute(r ApiStatsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Stats") @@ -1859,26 +1858,26 @@ func (a *TeamsAPIService) StatsExecute(r ApiStatsRequest) (*http.Response, error } type ApiStats1Request struct { - ctx context.Context - ApiService *TeamsAPIService - group *interface{} - gameType *interface{} - stats *interface{} - sportId *interface{} - sportIds *interface{} - leagueIds *interface{} - season *interface{} - sortStat *interface{} - order *interface{} - startDate *interface{} - endDate *interface{} - daysBack *interface{} - sitCodes *interface{} - combineSits *interface{} + ctx context.Context + ApiService *TeamsAPIService + group *interface{} + gameType *interface{} + stats *interface{} + sportId *interface{} + sportIds *interface{} + leagueIds *interface{} + season *interface{} + sortStat *interface{} + order *interface{} + startDate *interface{} + endDate *interface{} + daysBack *interface{} + sitCodes *interface{} + combineSits *interface{} opposingTeamId *interface{} - offset *interface{} - limit *interface{} - fields *interface{} + offset *interface{} + limit *interface{} + fields *interface{} } // Category of statistic to return. Available types in /api/v1/statGroups @@ -1995,22 +1994,22 @@ func (r ApiStats1Request) Execute() (*http.Response, error) { /* Stats1 View a teams stats - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiStats1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiStats1Request */ func (a *TeamsAPIService) Stats1(ctx context.Context) ApiStats1Request { return ApiStats1Request{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *TeamsAPIService) Stats1Execute(r ApiStats1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Stats1") @@ -2125,19 +2124,19 @@ func (a *TeamsAPIService) Stats1Execute(r ApiStats1Request) (*http.Response, err } type ApiTeamsRequest struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} - season *interface{} - sportId *interface{} - divisionId *interface{} - gameType *interface{} - leagueIds *interface{} - sportIds *interface{} - activeStatus *interface{} - leagueListId *interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} + season *interface{} + sportId *interface{} + divisionId *interface{} + gameType *interface{} + leagueIds *interface{} + sportIds *interface{} + activeStatus *interface{} + leagueListId *interface{} allStarStatuses *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -2208,24 +2207,24 @@ Teams View info for all teams This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiTeamsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiTeamsRequest */ func (a *TeamsAPIService) Teams(ctx context.Context, teamId interface{}) ApiTeamsRequest { return ApiTeamsRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) TeamsExecute(r ApiTeamsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Teams") @@ -2316,19 +2315,19 @@ func (a *TeamsAPIService) TeamsExecute(r ApiTeamsRequest) (*http.Response, error } type ApiTeams1Request struct { - ctx context.Context - ApiService *TeamsAPIService - teamId interface{} - season *interface{} - sportId *interface{} - divisionId *interface{} - gameType *interface{} - leagueIds *interface{} - sportIds *interface{} - activeStatus *interface{} - leagueListId *interface{} + ctx context.Context + ApiService *TeamsAPIService + teamId interface{} + season *interface{} + sportId *interface{} + divisionId *interface{} + gameType *interface{} + leagueIds *interface{} + sportIds *interface{} + activeStatus *interface{} + leagueListId *interface{} allStarStatuses *interface{} - fields *interface{} + fields *interface{} } // Season of play @@ -2399,24 +2398,24 @@ Teams1 View info for all teams This endpoint allows you to pull teams - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiTeams1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiTeams1Request */ func (a *TeamsAPIService) Teams1(ctx context.Context, teamId interface{}) ApiTeams1Request { return ApiTeams1Request{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) Teams1Execute(r ApiTeams1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.Teams1") @@ -2507,12 +2506,12 @@ func (a *TeamsAPIService) Teams1Execute(r ApiTeams1Request) (*http.Response, err } type ApiUpdateAlumniRequest struct { - ctx context.Context + ctx context.Context ApiService *TeamsAPIService - teamId interface{} - season *interface{} - group *interface{} - fields *interface{} + teamId interface{} + season *interface{} + group *interface{} + fields *interface{} } // Season of play @@ -2539,24 +2538,24 @@ func (r ApiUpdateAlumniRequest) Execute() (*http.Response, error) { /* UpdateAlumni Method for UpdateAlumni - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param teamId Unique Team Identifier. Format: 141, 147, etc - @return ApiUpdateAlumniRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param teamId Unique Team Identifier. Format: 141, 147, etc + @return ApiUpdateAlumniRequest */ func (a *TeamsAPIService) UpdateAlumni(ctx context.Context, teamId interface{}) ApiUpdateAlumniRequest { return ApiUpdateAlumniRequest{ ApiService: a, - ctx: ctx, - teamId: teamId, + ctx: ctx, + teamId: teamId, } } // Execute executes the request func (a *TeamsAPIService) UpdateAlumniExecute(r ApiUpdateAlumniRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TeamsAPIService.UpdateAlumni") diff --git a/api/api_transactions.go b/api/api_transactions.go index 67715ef..6a664ba 100644 --- a/api/api_transactions.go +++ b/api/api_transactions.go @@ -18,26 +18,25 @@ import ( "net/url" ) - // TransactionsAPIService TransactionsAPI service type TransactionsAPIService service type ApiTransactionsRequest struct { - ctx context.Context - ApiService *TransactionsAPIService - leagueId *interface{} - sportId *interface{} - teamId *interface{} - playerId *interface{} - date *interface{} - startDate *interface{} - endDate *interface{} - transactionIds *interface{} + ctx context.Context + ApiService *TransactionsAPIService + leagueId *interface{} + sportId *interface{} + teamId *interface{} + playerId *interface{} + date *interface{} + startDate *interface{} + endDate *interface{} + transactionIds *interface{} transactionTypes *interface{} - divisionIds *interface{} - order *interface{} - limit *interface{} - fields *interface{} + divisionIds *interface{} + order *interface{} + limit *interface{} + fields *interface{} } // Comma delimited list of Unique league identifiers @@ -122,22 +121,22 @@ Transactions View transaction info This endpoint allows you to pull transactions. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiTransactionsRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTransactionsRequest */ func (a *TransactionsAPIService) Transactions(ctx context.Context) ApiTransactionsRequest { return ApiTransactionsRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *TransactionsAPIService) TransactionsExecute(r ApiTransactionsRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "TransactionsAPIService.Transactions") diff --git a/api/api_uniforms.go b/api/api_uniforms.go index be5ea8e..fb7350d 100644 --- a/api/api_uniforms.go +++ b/api/api_uniforms.go @@ -18,15 +18,14 @@ import ( "net/url" ) - // UniformsAPIService UniformsAPI service type UniformsAPIService service type ApiUniformsByGameRequest struct { - ctx context.Context + ctx context.Context ApiService *UniformsAPIService - gamePks *interface{} - fields *interface{} + gamePks *interface{} + fields *interface{} } // Comma delimited list of unique primary keys @@ -50,22 +49,22 @@ UniformsByGame View Game Uniform info This endpoint allows you to pull team uniform data for a game - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUniformsByGameRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUniformsByGameRequest */ func (a *UniformsAPIService) UniformsByGame(ctx context.Context) ApiUniformsByGameRequest { return ApiUniformsByGameRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *UniformsAPIService) UniformsByGameExecute(r ApiUniformsByGameRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UniformsAPIService.UniformsByGame") @@ -132,11 +131,11 @@ func (a *UniformsAPIService) UniformsByGameExecute(r ApiUniformsByGameRequest) ( } type ApiUniformsByTeamRequest struct { - ctx context.Context + ctx context.Context ApiService *UniformsAPIService - teamIds *interface{} - season *interface{} - fields *interface{} + teamIds *interface{} + season *interface{} + fields *interface{} } func (r ApiUniformsByTeamRequest) TeamIds(teamIds interface{}) ApiUniformsByTeamRequest { @@ -165,22 +164,22 @@ UniformsByTeam View Team Uniform info This endpoint allows you to pull team uniform data for a season - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiUniformsByTeamRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUniformsByTeamRequest */ func (a *UniformsAPIService) UniformsByTeam(ctx context.Context) ApiUniformsByTeamRequest { return ApiUniformsByTeamRequest{ ApiService: a, - ctx: ctx, + ctx: ctx, } } // Execute executes the request func (a *UniformsAPIService) UniformsByTeamExecute(r ApiUniformsByTeamRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "UniformsAPIService.UniformsByTeam") diff --git a/api/api_venues.go b/api/api_venues.go index bfa166a..ff4c422 100644 --- a/api/api_venues.go +++ b/api/api_venues.go @@ -19,26 +19,25 @@ import ( "strings" ) - // VenuesAPIService VenuesAPI service type VenuesAPIService service type ApiVenuesRequest struct { - ctx context.Context - ApiService *VenuesAPIService - venueId interface{} - venueIds *interface{} - leagueId *interface{} - leagueIds *interface{} - gameType *interface{} - gameTypes *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - active *interface{} + ctx context.Context + ApiService *VenuesAPIService + venueId interface{} + venueIds *interface{} + leagueId *interface{} + leagueIds *interface{} + gameType *interface{} + gameTypes *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + active *interface{} includeEvents *interface{} - sportId *interface{} - sportIds *interface{} + sportId *interface{} + sportIds *interface{} } // Comma delimited list of Unique venue identifiers @@ -121,24 +120,24 @@ Venues View venue info This endpoint allows you to pull venues - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param venueId Unique Venue Identifier - @return ApiVenuesRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param venueId Unique Venue Identifier + @return ApiVenuesRequest */ func (a *VenuesAPIService) Venues(ctx context.Context, venueId interface{}) ApiVenuesRequest { return ApiVenuesRequest{ ApiService: a, - ctx: ctx, - venueId: venueId, + ctx: ctx, + venueId: venueId, } } // Execute executes the request func (a *VenuesAPIService) VenuesExecute(r ApiVenuesRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VenuesAPIService.Venues") @@ -235,21 +234,21 @@ func (a *VenuesAPIService) VenuesExecute(r ApiVenuesRequest) (*http.Response, er } type ApiVenues1Request struct { - ctx context.Context - ApiService *VenuesAPIService - venueId interface{} - venueIds *interface{} - leagueId *interface{} - leagueIds *interface{} - gameType *interface{} - gameTypes *interface{} - season *interface{} - seasons *interface{} - fields *interface{} - active *interface{} + ctx context.Context + ApiService *VenuesAPIService + venueId interface{} + venueIds *interface{} + leagueId *interface{} + leagueIds *interface{} + gameType *interface{} + gameTypes *interface{} + season *interface{} + seasons *interface{} + fields *interface{} + active *interface{} includeEvents *interface{} - sportId *interface{} - sportIds *interface{} + sportId *interface{} + sportIds *interface{} } // Comma delimited list of Unique venue identifiers @@ -332,24 +331,24 @@ Venues1 View venue info This endpoint allows you to pull venues - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param venueId Unique Venue Identifier - @return ApiVenues1Request + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param venueId Unique Venue Identifier + @return ApiVenues1Request */ func (a *VenuesAPIService) Venues1(ctx context.Context, venueId interface{}) ApiVenues1Request { return ApiVenues1Request{ ApiService: a, - ctx: ctx, - venueId: venueId, + ctx: ctx, + venueId: venueId, } } // Execute executes the request func (a *VenuesAPIService) Venues1Execute(r ApiVenues1Request) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "VenuesAPIService.Venues1") diff --git a/api/api_weather.go b/api/api_weather.go index 51a9684..3436578 100644 --- a/api/api_weather.go +++ b/api/api_weather.go @@ -19,15 +19,14 @@ import ( "strings" ) - // WeatherAPIService WeatherAPI service type WeatherAPIService service type ApiWeatherBasicRequest struct { - ctx context.Context + ctx context.Context ApiService *WeatherAPIService - venueId interface{} - fields *interface{} + venueId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -45,24 +44,24 @@ WeatherBasic Get basic weather for a venue. Returns a json file containing basic weather for a specific venue. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param venueId Unique Venue Identifier - @return ApiWeatherBasicRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param venueId Unique Venue Identifier + @return ApiWeatherBasicRequest */ func (a *WeatherAPIService) WeatherBasic(ctx context.Context, venueId interface{}) ApiWeatherBasicRequest { return ApiWeatherBasicRequest{ ApiService: a, - ctx: ctx, - venueId: venueId, + ctx: ctx, + venueId: venueId, } } // Execute executes the request func (a *WeatherAPIService) WeatherBasicExecute(r ApiWeatherBasicRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherBasic") @@ -126,11 +125,11 @@ func (a *WeatherAPIService) WeatherBasicExecute(r ApiWeatherBasicRequest) (*http } type ApiWeatherDataBasedOnPlayRequest struct { - ctx context.Context + ctx context.Context ApiService *WeatherAPIService - gamePk interface{} - playId interface{} - fields *interface{} + gamePk interface{} + playId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -148,26 +147,26 @@ WeatherDataBasedOnPlay Get the raw field weather data. Returns a json file containing weather for the current play. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param playId Unique identifier for a play within a game - @return ApiWeatherDataBasedOnPlayRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param playId Unique identifier for a play within a game + @return ApiWeatherDataBasedOnPlayRequest */ func (a *WeatherAPIService) WeatherDataBasedOnPlay(ctx context.Context, gamePk interface{}, playId interface{}) ApiWeatherDataBasedOnPlayRequest { return ApiWeatherDataBasedOnPlayRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - playId: playId, + ctx: ctx, + gamePk: gamePk, + playId: playId, } } // Execute executes the request func (a *WeatherAPIService) WeatherDataBasedOnPlayExecute(r ApiWeatherDataBasedOnPlayRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherDataBasedOnPlay") @@ -232,11 +231,11 @@ func (a *WeatherAPIService) WeatherDataBasedOnPlayExecute(r ApiWeatherDataBasedO } type ApiWeatherForecastRequest struct { - ctx context.Context + ctx context.Context ApiService *WeatherAPIService - gamePk interface{} - roofType interface{} - fields *interface{} + gamePk interface{} + roofType interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -254,26 +253,26 @@ WeatherForecast Get the weather forecast for a game. Returns a json file containing the weather forecast for a specific game. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param gamePk Unique Primary Key Representing a Game - @param roofType Venue roof type - @return ApiWeatherForecastRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param gamePk Unique Primary Key Representing a Game + @param roofType Venue roof type + @return ApiWeatherForecastRequest */ func (a *WeatherAPIService) WeatherForecast(ctx context.Context, gamePk interface{}, roofType interface{}) ApiWeatherForecastRequest { return ApiWeatherForecastRequest{ ApiService: a, - ctx: ctx, - gamePk: gamePk, - roofType: roofType, + ctx: ctx, + gamePk: gamePk, + roofType: roofType, } } // Execute executes the request func (a *WeatherAPIService) WeatherForecastExecute(r ApiWeatherForecastRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherForecast") @@ -338,10 +337,10 @@ func (a *WeatherAPIService) WeatherForecastExecute(r ApiWeatherForecastRequest) } type ApiWeatherFullRequest struct { - ctx context.Context + ctx context.Context ApiService *WeatherAPIService - venueId interface{} - fields *interface{} + venueId interface{} + fields *interface{} } // Comma delimited list of specific fields to be returned. Format: topLevelNode, childNode, attribute @@ -359,24 +358,24 @@ WeatherFull Get full weather for a venue. Returns a json file containing full weather for a specific venue. - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param venueId Unique Venue Identifier - @return ApiWeatherFullRequest + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param venueId Unique Venue Identifier + @return ApiWeatherFullRequest */ func (a *WeatherAPIService) WeatherFull(ctx context.Context, venueId interface{}) ApiWeatherFullRequest { return ApiWeatherFullRequest{ ApiService: a, - ctx: ctx, - venueId: venueId, + ctx: ctx, + venueId: venueId, } } // Execute executes the request func (a *WeatherAPIService) WeatherFullExecute(r ApiWeatherFullRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WeatherAPIService.WeatherFull") diff --git a/api/client.go b/api/client.go index adb8d7d..5f4d682 100644 --- a/api/client.go +++ b/api/client.go @@ -31,14 +31,13 @@ import ( "strings" "time" "unicode/utf8" - ) var ( JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) - queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) // APIClient manages communication with the Stats API Documentation API v2.0.0 @@ -218,7 +217,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } -func parameterValueToString( obj interface{}, key string ) string { +func parameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) @@ -226,11 +225,11 @@ func parameterValueToString( obj interface{}, key string ) string { return fmt.Sprintf("%v", obj) } - var param,ok = obj.(MappedNullable) + var param, ok = obj.(MappedNullable) if !ok { return "" } - dataMap,err := param.ToMap() + dataMap, err := param.ToMap() if err != nil { return "" } @@ -246,85 +245,85 @@ func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix stri value = "null" } else { switch v.Kind() { - case reflect.Invalid: - value = "invalid" + case reflect.Invalid: + value = "invalid" - case reflect.Struct: - if t,ok := obj.(MappedNullable); ok { - dataMap,err := t.ToMap() - if err != nil { - return - } - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { return } - if t, ok := obj.(time.Time); ok { - parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) - return - } - value = v.Type().String() + " value" - case reflect.Slice: - var indValue = reflect.ValueOf(obj) - if indValue == reflect.ValueOf(nil) { - return - } - var lenIndValue = indValue.Len() - for i:=0;i