From 3655f7eae85ce4b4b2541678c55dbc84c39421d4 Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Tue, 19 Nov 2024 17:00:05 -0500 Subject: [PATCH] Basic working client --- TODO.md | 15 + api/eiaapi.gen.go | 1130 +----------------------- cmd/eia-client/cmd/list/list_series.go | 51 +- go.mod | 1 + go.sum | 2 + pkg/eia/eia.go | 25 +- 6 files changed, 91 insertions(+), 1133 deletions(-) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..8d598e7 --- /dev/null +++ b/TODO.md @@ -0,0 +1,15 @@ +# EIA API GO TODO + +## Makefile + +- Add sed substitutions for manual fixes and add curl back to retrieve up-to-date yaml + - Ref swaps + - Int to string swaps + - *[]string to *string swaps + +## EIA Client Tool + +- Add reflection and autocomplete funcs + - Add reflection for listing API Routes under GetV2 + - Add reflection for listing route parameters once selected +- Add reflection to retrieve Facets for selected route+params from autocomplete funcs diff --git a/api/eiaapi.gen.go b/api/eiaapi.gen.go index a9233b5..ba389b8 100644 --- a/api/eiaapi.gen.go +++ b/api/eiaapi.gen.go @@ -38,7 +38,7 @@ type DataResponse struct { DateFormat *string `json:"dateFormat,omitempty"` Description *string `json:"description,omitempty"` Frequency *string `json:"frequency,omitempty"` - Total *int `json:"total,omitempty"` + Total *string `json:"total,omitempty"` } // DataResponseContainer defines model for DataResponseContainer. @@ -124,7 +124,7 @@ type FrequencyObject struct { // RouteRequest defines model for RouteRequest. type RouteRequest struct { - Command *[]string `json:"command,omitempty"` + Command *string `json:"command,omitempty"` Params *interface{} `json:"params,omitempty"` } @@ -6879,7 +6879,6 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6891,11 +6890,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6907,11 +6904,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6923,11 +6918,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6939,11 +6932,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6955,11 +6946,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6971,11 +6960,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -6987,11 +6974,9 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7003,7 +6988,6 @@ func NewGetV2AeoRoute1DataRequest(server string, route1 Route1, params *GetV2Aeo } } } - } queryURL.RawQuery = queryValues.Encode() @@ -7216,7 +7200,6 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7228,11 +7211,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7244,11 +7225,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7260,11 +7239,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7276,11 +7253,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7292,11 +7267,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7308,11 +7281,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7324,11 +7295,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7340,7 +7309,6 @@ func NewGetV2Co2EmissionsCo2EmissionsAggregatesDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -7505,7 +7473,6 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7517,11 +7484,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7533,11 +7498,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7549,11 +7512,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7565,11 +7526,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7581,11 +7540,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7597,11 +7554,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7613,11 +7568,9 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7629,7 +7582,6 @@ func NewGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataRequest(server str } } } - } queryURL.RawQuery = queryValues.Encode() @@ -7821,7 +7773,6 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7833,11 +7784,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7849,11 +7798,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7865,11 +7812,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7881,11 +7826,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7897,11 +7840,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7913,11 +7854,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7929,11 +7868,9 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -7945,7 +7882,6 @@ func NewGetV2CoalAggregateProductionDataRequest(server string, params *GetV2Coal } } } - } queryURL.RawQuery = queryValues.Encode() @@ -8110,7 +8046,6 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8122,11 +8057,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8138,11 +8071,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8154,11 +8085,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8170,11 +8099,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8186,11 +8113,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8202,11 +8127,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8218,11 +8141,9 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8234,7 +8155,6 @@ func NewGetV2CoalConsumptionAndQualityDataRequest(server string, params *GetV2Co } } } - } queryURL.RawQuery = queryValues.Encode() @@ -8399,7 +8319,6 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8411,11 +8330,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8427,11 +8344,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8443,11 +8358,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8459,11 +8372,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8475,11 +8386,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8491,11 +8400,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8507,11 +8414,9 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8523,7 +8428,6 @@ func NewGetV2CoalExportsImportsQuantityPriceDataRequest(server string, params *G } } } - } queryURL.RawQuery = queryValues.Encode() @@ -8688,7 +8592,6 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8700,11 +8603,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8716,11 +8617,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8732,11 +8631,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8748,11 +8645,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8764,11 +8659,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8780,11 +8673,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8796,11 +8687,9 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8812,7 +8701,6 @@ func NewGetV2CoalMarketSalesPriceDataRequest(server string, params *GetV2CoalMar } } } - } queryURL.RawQuery = queryValues.Encode() @@ -8977,7 +8865,6 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -8989,11 +8876,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9005,11 +8890,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9021,11 +8904,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9037,11 +8918,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9053,11 +8932,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9069,11 +8946,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9085,11 +8960,9 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9101,7 +8974,6 @@ func NewGetV2CoalMineProductionDataRequest(server string, params *GetV2CoalMineP } } } - } queryURL.RawQuery = queryValues.Encode() @@ -9266,7 +9138,6 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9278,11 +9149,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9294,11 +9163,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9310,11 +9177,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9326,11 +9191,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9342,11 +9205,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9358,11 +9219,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9374,11 +9233,9 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9390,7 +9247,6 @@ func NewGetV2CoalPriceByRankDataRequest(server string, params *GetV2CoalPriceByR } } } - } queryURL.RawQuery = queryValues.Encode() @@ -9555,7 +9411,6 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9567,11 +9422,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9583,11 +9436,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9599,11 +9450,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9615,11 +9464,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9631,11 +9478,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9647,11 +9492,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9663,11 +9506,9 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9679,7 +9520,6 @@ func NewGetV2CoalReservesCapacityDataRequest(server string, params *GetV2CoalRes } } } - } queryURL.RawQuery = queryValues.Encode() @@ -9871,7 +9711,6 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9883,11 +9722,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9899,11 +9736,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9915,11 +9750,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9931,11 +9764,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9947,11 +9778,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9963,11 +9792,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9979,11 +9806,9 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -9995,7 +9820,6 @@ func NewGetV2CoalShipmentsByMineByPlantDataRequest(server string, params *GetV2C } } } - } queryURL.RawQuery = queryValues.Encode() @@ -10160,7 +9984,6 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10172,11 +9995,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10188,11 +10009,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10204,11 +10023,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10220,11 +10037,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10236,11 +10051,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10252,11 +10065,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10268,11 +10079,9 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10284,7 +10093,6 @@ func NewGetV2CoalShipmentsMineAggregatesDataRequest(server string, params *GetV2 } } } - } queryURL.RawQuery = queryValues.Encode() @@ -10449,7 +10257,6 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10461,11 +10268,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10477,11 +10282,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10493,11 +10296,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10509,11 +10310,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10525,11 +10324,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10541,11 +10338,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10557,11 +10352,9 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10573,7 +10366,6 @@ func NewGetV2CoalShipmentsMineStateAggregatesDataRequest(server string, params * } } } - } queryURL.RawQuery = queryValues.Encode() @@ -10738,7 +10530,6 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10750,11 +10541,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10766,11 +10555,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10782,11 +10569,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10798,11 +10583,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10814,11 +10597,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10830,11 +10611,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10846,11 +10625,9 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -10862,7 +10639,6 @@ func NewGetV2CoalShipmentsPlantAggregatesDataRequest(server string, params *GetV } } } - } queryURL.RawQuery = queryValues.Encode() @@ -11027,7 +10803,6 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11039,11 +10814,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11055,11 +10828,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11071,11 +10842,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11087,11 +10856,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11103,11 +10870,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11119,11 +10884,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11135,11 +10898,9 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11151,7 +10912,6 @@ func NewGetV2CoalShipmentsPlantStateAggregatesDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -11316,7 +11076,6 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11328,11 +11087,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11344,11 +11101,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11360,11 +11115,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11376,11 +11129,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11392,11 +11143,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11408,11 +11157,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11424,11 +11171,9 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11440,7 +11185,6 @@ func NewGetV2CoalShipmentsReceiptsDataRequest(server string, params *GetV2CoalSh } } } - } queryURL.RawQuery = queryValues.Encode() @@ -11605,7 +11349,6 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11617,11 +11360,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11633,11 +11374,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11649,11 +11388,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11665,11 +11402,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11681,11 +11416,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11697,11 +11430,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11713,11 +11444,9 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11729,7 +11458,6 @@ func NewGetV2CrudeOilImportsDataRequest(server string, params *GetV2CrudeOilImpo } } } - } queryURL.RawQuery = queryValues.Encode() @@ -11921,7 +11649,6 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11933,11 +11660,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11949,11 +11674,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11965,11 +11688,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11981,11 +11702,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -11997,11 +11716,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12013,11 +11730,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12029,11 +11744,9 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12045,7 +11758,6 @@ func NewGetV2DensifiedBiomassCapacityByRegionDataRequest(server string, params * } } } - } queryURL.RawQuery = queryValues.Encode() @@ -12210,7 +11922,6 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12222,11 +11933,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12238,11 +11947,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12254,11 +11961,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12270,11 +11975,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12286,11 +11989,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12302,11 +12003,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12318,11 +12017,9 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12334,7 +12031,6 @@ func NewGetV2DensifiedBiomassCharacteristicsByRegionDataRequest(server string, p } } } - } queryURL.RawQuery = queryValues.Encode() @@ -12499,7 +12195,6 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12511,11 +12206,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12527,11 +12220,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12543,11 +12234,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12559,11 +12248,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12575,11 +12262,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12591,11 +12276,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12607,11 +12290,9 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12623,7 +12304,6 @@ func NewGetV2DensifiedBiomassExportSalesAndPriceDataRequest(server string, param } } } - } queryURL.RawQuery = queryValues.Encode() @@ -12788,7 +12468,6 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12800,11 +12479,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12816,11 +12493,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12832,11 +12507,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12848,11 +12521,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12864,11 +12535,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12880,11 +12549,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12896,11 +12563,9 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -12912,7 +12577,6 @@ func NewGetV2DensifiedBiomassFeedstocksAndCostDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -13077,7 +12741,6 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13089,11 +12752,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13105,11 +12766,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13121,11 +12780,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13137,11 +12794,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13153,11 +12808,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13169,11 +12822,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13185,11 +12836,9 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13201,7 +12850,6 @@ func NewGetV2DensifiedBiomassInventoriesByRegionDataRequest(server string, param } } } - } queryURL.RawQuery = queryValues.Encode() @@ -13366,7 +13014,6 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13378,11 +13025,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13394,11 +13039,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13410,11 +13053,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13426,11 +13067,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13442,11 +13081,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13458,11 +13095,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13474,11 +13109,9 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13490,7 +13123,6 @@ func NewGetV2DensifiedBiomassProductionByRegionDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -13655,7 +13287,6 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13667,11 +13298,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13683,11 +13312,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13699,11 +13326,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13715,11 +13340,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13731,11 +13354,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13747,11 +13368,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13763,11 +13382,9 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13779,7 +13396,6 @@ func NewGetV2DensifiedBiomassSalesAndPriceByRegionDataRequest(server string, par } } } - } queryURL.RawQuery = queryValues.Encode() @@ -13944,7 +13560,6 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13956,11 +13571,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13972,11 +13585,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -13988,11 +13599,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14004,11 +13613,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14020,11 +13627,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14036,11 +13641,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14052,11 +13655,9 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14068,7 +13669,6 @@ func NewGetV2DensifiedBiomassWoodPelletPlantsDataRequest(server string, params * } } } - } queryURL.RawQuery = queryValues.Encode() @@ -14260,7 +13860,6 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14272,11 +13871,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14288,11 +13885,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14304,11 +13899,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14320,11 +13913,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14336,11 +13927,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14352,11 +13941,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14368,11 +13955,9 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14384,7 +13969,6 @@ func NewGetV2ElectricityElectricPowerOperationalDataDataRequest(server string, p } } } - } queryURL.RawQuery = queryValues.Encode() @@ -14549,7 +14133,6 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14561,11 +14144,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14577,11 +14158,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14593,11 +14172,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14609,11 +14186,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14625,11 +14200,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14641,11 +14214,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14657,11 +14228,9 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14673,7 +14242,6 @@ func NewGetV2ElectricityFacilityFuelDataRequest(server string, params *GetV2Elec } } } - } queryURL.RawQuery = queryValues.Encode() @@ -14838,7 +14406,6 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14850,11 +14417,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14866,11 +14431,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14882,11 +14445,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14898,11 +14459,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14914,11 +14473,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14930,11 +14487,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14946,11 +14501,9 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -14962,7 +14515,6 @@ func NewGetV2ElectricityOperatingGeneratorCapacityDataRequest(server string, par } } } - } queryURL.RawQuery = queryValues.Encode() @@ -15127,7 +14679,6 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15139,11 +14690,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15155,11 +14704,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15171,11 +14718,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15187,11 +14732,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15203,11 +14746,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15219,11 +14760,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15235,11 +14774,9 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15251,7 +14788,6 @@ func NewGetV2ElectricityRetailSalesDataRequest(server string, params *GetV2Elect } } } - } queryURL.RawQuery = queryValues.Encode() @@ -15443,7 +14979,6 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15455,11 +14990,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15471,11 +15004,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15487,11 +15018,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15503,11 +15032,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15519,11 +15046,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15535,11 +15060,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15551,11 +15074,9 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15567,7 +15088,6 @@ func NewGetV2ElectricityRtoDailyFuelTypeDataDataRequest(server string, params *G } } } - } queryURL.RawQuery = queryValues.Encode() @@ -15732,7 +15252,6 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15744,11 +15263,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15760,11 +15277,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15776,11 +15291,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15792,11 +15305,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15808,11 +15319,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15824,11 +15333,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15840,11 +15347,9 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -15856,7 +15361,6 @@ func NewGetV2ElectricityRtoDailyInterchangeDataDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -16021,7 +15525,6 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16033,11 +15536,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16049,11 +15550,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16065,11 +15564,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16081,11 +15578,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16097,11 +15592,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16113,11 +15606,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16129,11 +15620,9 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16145,7 +15634,6 @@ func NewGetV2ElectricityRtoDailyRegionDataDataRequest(server string, params *Get } } } - } queryURL.RawQuery = queryValues.Encode() @@ -16310,7 +15798,6 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16322,11 +15809,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16338,11 +15823,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16354,11 +15837,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16370,11 +15851,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16386,11 +15865,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16402,11 +15879,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16418,11 +15893,9 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16434,7 +15907,6 @@ func NewGetV2ElectricityRtoDailyRegionSubBaDataDataRequest(server string, params } } } - } queryURL.RawQuery = queryValues.Encode() @@ -16599,7 +16071,6 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16611,11 +16082,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16627,11 +16096,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16643,11 +16110,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16659,11 +16124,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16675,11 +16138,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16691,11 +16152,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16707,11 +16166,9 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16723,7 +16180,6 @@ func NewGetV2ElectricityRtoFuelTypeDataDataRequest(server string, params *GetV2E } } } - } queryURL.RawQuery = queryValues.Encode() @@ -16888,7 +16344,6 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16900,11 +16355,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16916,11 +16369,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16932,11 +16383,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16948,11 +16397,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16964,11 +16411,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16980,11 +16425,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -16996,11 +16439,9 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17012,7 +16453,6 @@ func NewGetV2ElectricityRtoInterchangeDataDataRequest(server string, params *Get } } } - } queryURL.RawQuery = queryValues.Encode() @@ -17177,7 +16617,6 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17189,11 +16628,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17205,11 +16642,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17221,11 +16656,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17237,11 +16670,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17253,11 +16684,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17269,11 +16698,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17285,11 +16712,9 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17301,7 +16726,6 @@ func NewGetV2ElectricityRtoRegionDataDataRequest(server string, params *GetV2Ele } } } - } queryURL.RawQuery = queryValues.Encode() @@ -17466,7 +16890,6 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17478,11 +16901,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17494,11 +16915,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17510,11 +16929,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17526,11 +16943,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17542,11 +16957,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17558,11 +16971,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17574,11 +16985,9 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17590,7 +16999,6 @@ func NewGetV2ElectricityRtoRegionSubBaDataDataRequest(server string, params *Get } } } - } queryURL.RawQuery = queryValues.Encode() @@ -17782,7 +17190,6 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17794,11 +17201,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17810,11 +17215,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17826,11 +17229,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17842,11 +17243,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17858,11 +17257,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17874,11 +17271,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17890,11 +17285,9 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -17906,7 +17299,6 @@ func NewGetV2ElectricityStateElectricityProfilesCapabilityDataRequest(server str } } } - } queryURL.RawQuery = queryValues.Encode() @@ -18071,7 +17463,6 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18083,11 +17474,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18099,11 +17488,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18115,11 +17502,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18131,11 +17516,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18147,11 +17530,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18163,11 +17544,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18179,11 +17558,9 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18195,7 +17572,6 @@ func NewGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataReques } } } - } queryURL.RawQuery = queryValues.Encode() @@ -18360,7 +17736,6 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18372,11 +17747,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18388,11 +17761,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18404,11 +17775,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18420,11 +17789,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18436,11 +17803,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18452,11 +17817,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18468,11 +17831,9 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18484,7 +17845,6 @@ func NewGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataRequest(serv } } } - } queryURL.RawQuery = queryValues.Encode() @@ -18649,7 +18009,6 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18661,11 +18020,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18677,11 +18034,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18693,11 +18048,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18709,11 +18062,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18725,11 +18076,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18741,11 +18090,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18757,11 +18104,9 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18773,7 +18118,6 @@ func NewGetV2ElectricityStateElectricityProfilesMetersDataRequest(server string, } } } - } queryURL.RawQuery = queryValues.Encode() @@ -18938,7 +18282,6 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18950,11 +18293,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18966,11 +18307,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18982,11 +18321,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -18998,11 +18335,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19014,11 +18349,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19030,11 +18363,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19046,11 +18377,9 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19062,7 +18391,6 @@ func NewGetV2ElectricityStateElectricityProfilesNetMeteringDataRequest(server st } } } - } queryURL.RawQuery = queryValues.Encode() @@ -19227,7 +18555,6 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19239,11 +18566,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19255,11 +18580,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19271,11 +18594,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19287,11 +18608,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19303,11 +18622,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19319,11 +18636,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19335,11 +18650,9 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19351,7 +18664,6 @@ func NewGetV2ElectricityStateElectricityProfilesSourceDispositionDataRequest(ser } } } - } queryURL.RawQuery = queryValues.Encode() @@ -19516,7 +18828,6 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19528,11 +18839,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19544,11 +18853,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19560,11 +18867,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19576,11 +18881,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19592,11 +18895,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19608,11 +18909,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19624,11 +18923,9 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19640,7 +18937,6 @@ func NewGetV2ElectricityStateElectricityProfilesSummaryDataRequest(server string } } } - } queryURL.RawQuery = queryValues.Encode() @@ -19846,7 +19142,6 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19858,11 +19153,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19874,11 +19167,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19890,11 +19181,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19906,11 +19195,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19922,11 +19209,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19938,11 +19223,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19954,11 +19237,9 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -19970,7 +19251,6 @@ func NewEIAAPIControllersDatasetAeoIeoIeoControllerGetDataRequest(server string, } } } - } queryURL.RawQuery = queryValues.Encode() @@ -20156,7 +19436,6 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20168,11 +19447,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20184,11 +19461,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20200,11 +19475,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20216,11 +19489,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20232,11 +19503,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20248,11 +19517,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20264,11 +19531,9 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20280,7 +19545,6 @@ func NewGetV2InternationalDataRequest(server string, params *GetV2InternationalD } } } - } queryURL.RawQuery = queryValues.Encode() @@ -20534,7 +19798,6 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20546,11 +19809,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20562,11 +19823,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20578,11 +19837,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20594,11 +19851,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20610,11 +19865,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20626,11 +19879,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20642,11 +19893,9 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20658,7 +19907,6 @@ func NewGetV2NaturalGasRoute1Route2DataRequest(server string, route1 Route1, rou } } } - } queryURL.RawQuery = queryValues.Encode() @@ -20892,7 +20140,6 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20904,11 +20151,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20920,11 +20165,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20936,11 +20179,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20952,11 +20193,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20968,11 +20207,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -20984,11 +20221,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21000,11 +20235,9 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21016,7 +20249,6 @@ func NewGetV2NuclearOutagesFacilityNuclearOutagesDataRequest(server string, para } } } - } queryURL.RawQuery = queryValues.Encode() @@ -21181,7 +20413,6 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21193,11 +20424,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21209,11 +20438,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21225,11 +20452,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21241,11 +20466,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21257,11 +20480,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21273,11 +20494,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21289,11 +20508,9 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21305,7 +20522,6 @@ func NewGetV2NuclearOutagesGeneratorNuclearOutagesDataRequest(server string, par } } } - } queryURL.RawQuery = queryValues.Encode() @@ -21470,7 +20686,6 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21482,11 +20697,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21498,11 +20711,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21514,11 +20725,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21530,11 +20739,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21546,11 +20753,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21562,11 +20767,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21578,11 +20781,9 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21594,7 +20795,6 @@ func NewGetV2NuclearOutagesUsNuclearOutagesDataRequest(server string, params *Ge } } } - } queryURL.RawQuery = queryValues.Encode() @@ -21759,7 +20959,6 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21771,11 +20970,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21787,11 +20984,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21803,11 +20998,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21819,11 +21012,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21835,11 +21026,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21851,11 +21040,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21867,11 +21054,9 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -21883,7 +21068,6 @@ func NewGetV2SedsDataRequest(server string, params *GetV2SedsDataParams) (*http. } } } - } queryURL.RawQuery = queryValues.Encode() @@ -22048,7 +21232,6 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22060,11 +21243,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22076,11 +21257,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22092,11 +21271,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22108,11 +21285,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22124,11 +21299,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22140,11 +21313,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22156,11 +21327,9 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22172,7 +21341,6 @@ func NewGetV2SteoDataRequest(server string, params *GetV2SteoDataParams) (*http. } } } - } queryURL.RawQuery = queryValues.Encode() @@ -22337,7 +21505,6 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP queryValues := queryURL.Query() if params.Data != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "data", runtime.ParamLocationQuery, *params.Data); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22349,11 +21516,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Facets != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "facets", runtime.ParamLocationQuery, *params.Facets); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22365,11 +21530,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Frequency != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "frequency", runtime.ParamLocationQuery, *params.Frequency); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22381,11 +21544,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Start != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "start", runtime.ParamLocationQuery, *params.Start); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22397,11 +21558,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.End != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "end", runtime.ParamLocationQuery, *params.End); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22413,11 +21572,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Sort != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "sort", runtime.ParamLocationQuery, *params.Sort); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22429,11 +21586,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Length != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "length", runtime.ParamLocationQuery, *params.Length); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22445,11 +21600,9 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } if params.Offset != nil { - if queryFrag, err := runtime.StyleParamWithLocation("form", true, "offset", runtime.ParamLocationQuery, *params.Offset); err != nil { return nil, err } else if parsed, err := url.ParseQuery(queryFrag); err != nil { @@ -22461,7 +21614,6 @@ func NewGetV2TotalEnergyDataRequest(server string, params *GetV2TotalEnergyDataP } } } - } queryURL.RawQuery = queryValues.Encode() @@ -32622,7 +31774,6 @@ func ParseGetV2Response(rsp *http.Response) (*GetV2Response, error) { return nil, err } response.JSON200 = &dest - } return response, nil @@ -32648,7 +31799,6 @@ func ParseGetV2AeoResponse(rsp *http.Response) (*GetV2AeoResponse, error) { return nil, err } response.JSON200 = &dest - } return response, nil @@ -32674,7 +31824,6 @@ func ParseGetV2AeoRoute1Response(rsp *http.Response) (*GetV2AeoRoute1Response, e return nil, err } response.JSON200 = &dest - } return response, nil @@ -32700,7 +31849,6 @@ func ParseGetV2AeoRoute1DataResponse(rsp *http.Response) (*GetV2AeoRoute1DataRes return nil, err } response.JSON200 = &dest - } return response, nil @@ -32726,7 +31874,6 @@ func ParsePostV2AeoRoute1DataResponse(rsp *http.Response) (*PostV2AeoRoute1DataR return nil, err } response.JSON200 = &dest - } return response, nil @@ -32752,7 +31899,6 @@ func ParseGetV2AeoRoute1FacetResponse(rsp *http.Response) (*GetV2AeoRoute1FacetR return nil, err } response.JSON200 = &dest - } return response, nil @@ -32778,7 +31924,6 @@ func ParseGetV2AeoRoute1FacetFacetIdResponse(rsp *http.Response) (*GetV2AeoRoute return nil, err } response.JSON200 = &dest - } return response, nil @@ -32804,7 +31949,6 @@ func ParseGetV2Co2EmissionsResponse(rsp *http.Response) (*GetV2Co2EmissionsRespo return nil, err } response.JSON200 = &dest - } return response, nil @@ -32830,7 +31974,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAggregatesResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -32856,7 +31999,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAggregatesDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -32882,7 +32024,6 @@ func ParsePostV2Co2EmissionsCo2EmissionsAggregatesDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -32908,7 +32049,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAggregatesFacetResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -32934,7 +32074,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAggregatesFacetFacetIdResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -32960,7 +32099,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -32986,7 +32124,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataResponse(rsp *ht return nil, err } response.JSON200 = &dest - } return response, nil @@ -33012,7 +32149,6 @@ func ParsePostV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsDataResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -33038,7 +32174,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsFacetResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -33064,7 +32199,6 @@ func ParseGetV2Co2EmissionsCo2EmissionsAndCarbonCoefficientsFacetFacetIdResponse return nil, err } response.JSON200 = &dest - } return response, nil @@ -33090,7 +32224,6 @@ func ParseGetV2CoalResponse(rsp *http.Response) (*GetV2CoalResponse, error) { return nil, err } response.JSON200 = &dest - } return response, nil @@ -33116,7 +32249,6 @@ func ParseGetV2CoalAggregateProductionResponse(rsp *http.Response) (*GetV2CoalAg return nil, err } response.JSON200 = &dest - } return response, nil @@ -33142,7 +32274,6 @@ func ParseGetV2CoalAggregateProductionDataResponse(rsp *http.Response) (*GetV2Co return nil, err } response.JSON200 = &dest - } return response, nil @@ -33168,7 +32299,6 @@ func ParsePostV2CoalAggregateProductionDataResponse(rsp *http.Response) (*PostV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -33194,7 +32324,6 @@ func ParseGetV2CoalAggregateProductionFacetResponse(rsp *http.Response) (*GetV2C return nil, err } response.JSON200 = &dest - } return response, nil @@ -33220,7 +32349,6 @@ func ParseGetV2CoalAggregateProductionFacetFacetIdResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -33246,7 +32374,6 @@ func ParseGetV2CoalConsumptionAndQualityResponse(rsp *http.Response) (*GetV2Coal return nil, err } response.JSON200 = &dest - } return response, nil @@ -33272,7 +32399,6 @@ func ParseGetV2CoalConsumptionAndQualityDataResponse(rsp *http.Response) (*GetV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -33298,7 +32424,6 @@ func ParsePostV2CoalConsumptionAndQualityDataResponse(rsp *http.Response) (*Post return nil, err } response.JSON200 = &dest - } return response, nil @@ -33324,7 +32449,6 @@ func ParseGetV2CoalConsumptionAndQualityFacetResponse(rsp *http.Response) (*GetV return nil, err } response.JSON200 = &dest - } return response, nil @@ -33350,7 +32474,6 @@ func ParseGetV2CoalConsumptionAndQualityFacetFacetIdResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -33376,7 +32499,6 @@ func ParseGetV2CoalExportsImportsQuantityPriceResponse(rsp *http.Response) (*Get return nil, err } response.JSON200 = &dest - } return response, nil @@ -33402,7 +32524,6 @@ func ParseGetV2CoalExportsImportsQuantityPriceDataResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -33428,7 +32549,6 @@ func ParsePostV2CoalExportsImportsQuantityPriceDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -33454,7 +32574,6 @@ func ParseGetV2CoalExportsImportsQuantityPriceFacetResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -33480,7 +32599,6 @@ func ParseGetV2CoalExportsImportsQuantityPriceFacetFacetIdResponse(rsp *http.Res return nil, err } response.JSON200 = &dest - } return response, nil @@ -33506,7 +32624,6 @@ func ParseGetV2CoalMarketSalesPriceResponse(rsp *http.Response) (*GetV2CoalMarke return nil, err } response.JSON200 = &dest - } return response, nil @@ -33532,7 +32649,6 @@ func ParseGetV2CoalMarketSalesPriceDataResponse(rsp *http.Response) (*GetV2CoalM return nil, err } response.JSON200 = &dest - } return response, nil @@ -33558,7 +32674,6 @@ func ParsePostV2CoalMarketSalesPriceDataResponse(rsp *http.Response) (*PostV2Coa return nil, err } response.JSON200 = &dest - } return response, nil @@ -33584,7 +32699,6 @@ func ParseGetV2CoalMarketSalesPriceFacetResponse(rsp *http.Response) (*GetV2Coal return nil, err } response.JSON200 = &dest - } return response, nil @@ -33610,7 +32724,6 @@ func ParseGetV2CoalMarketSalesPriceFacetFacetIdResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -33636,7 +32749,6 @@ func ParseGetV2CoalMineProductionResponse(rsp *http.Response) (*GetV2CoalMinePro return nil, err } response.JSON200 = &dest - } return response, nil @@ -33662,7 +32774,6 @@ func ParseGetV2CoalMineProductionDataResponse(rsp *http.Response) (*GetV2CoalMin return nil, err } response.JSON200 = &dest - } return response, nil @@ -33688,7 +32799,6 @@ func ParsePostV2CoalMineProductionDataResponse(rsp *http.Response) (*PostV2CoalM return nil, err } response.JSON200 = &dest - } return response, nil @@ -33714,7 +32824,6 @@ func ParseGetV2CoalMineProductionFacetResponse(rsp *http.Response) (*GetV2CoalMi return nil, err } response.JSON200 = &dest - } return response, nil @@ -33740,7 +32849,6 @@ func ParseGetV2CoalMineProductionFacetFacetIdResponse(rsp *http.Response) (*GetV return nil, err } response.JSON200 = &dest - } return response, nil @@ -33766,7 +32874,6 @@ func ParseGetV2CoalPriceByRankResponse(rsp *http.Response) (*GetV2CoalPriceByRan return nil, err } response.JSON200 = &dest - } return response, nil @@ -33792,7 +32899,6 @@ func ParseGetV2CoalPriceByRankDataResponse(rsp *http.Response) (*GetV2CoalPriceB return nil, err } response.JSON200 = &dest - } return response, nil @@ -33818,7 +32924,6 @@ func ParsePostV2CoalPriceByRankDataResponse(rsp *http.Response) (*PostV2CoalPric return nil, err } response.JSON200 = &dest - } return response, nil @@ -33844,7 +32949,6 @@ func ParseGetV2CoalPriceByRankFacetResponse(rsp *http.Response) (*GetV2CoalPrice return nil, err } response.JSON200 = &dest - } return response, nil @@ -33870,7 +32974,6 @@ func ParseGetV2CoalPriceByRankFacetFacetIdResponse(rsp *http.Response) (*GetV2Co return nil, err } response.JSON200 = &dest - } return response, nil @@ -33896,7 +32999,6 @@ func ParseGetV2CoalReservesCapacityResponse(rsp *http.Response) (*GetV2CoalReser return nil, err } response.JSON200 = &dest - } return response, nil @@ -33922,7 +33024,6 @@ func ParseGetV2CoalReservesCapacityDataResponse(rsp *http.Response) (*GetV2CoalR return nil, err } response.JSON200 = &dest - } return response, nil @@ -33948,7 +33049,6 @@ func ParsePostV2CoalReservesCapacityDataResponse(rsp *http.Response) (*PostV2Coa return nil, err } response.JSON200 = &dest - } return response, nil @@ -33974,7 +33074,6 @@ func ParseGetV2CoalReservesCapacityFacetResponse(rsp *http.Response) (*GetV2Coal return nil, err } response.JSON200 = &dest - } return response, nil @@ -34000,7 +33099,6 @@ func ParseGetV2CoalReservesCapacityFacetFacetIdResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -34026,7 +33124,6 @@ func ParseGetV2CoalShipmentsResponse(rsp *http.Response) (*GetV2CoalShipmentsRes return nil, err } response.JSON200 = &dest - } return response, nil @@ -34052,7 +33149,6 @@ func ParseGetV2CoalShipmentsByMineByPlantResponse(rsp *http.Response) (*GetV2Coa return nil, err } response.JSON200 = &dest - } return response, nil @@ -34078,7 +33174,6 @@ func ParseGetV2CoalShipmentsByMineByPlantDataResponse(rsp *http.Response) (*GetV return nil, err } response.JSON200 = &dest - } return response, nil @@ -34104,7 +33199,6 @@ func ParsePostV2CoalShipmentsByMineByPlantDataResponse(rsp *http.Response) (*Pos return nil, err } response.JSON200 = &dest - } return response, nil @@ -34130,7 +33224,6 @@ func ParseGetV2CoalShipmentsByMineByPlantFacetResponse(rsp *http.Response) (*Get return nil, err } response.JSON200 = &dest - } return response, nil @@ -34156,7 +33249,6 @@ func ParseGetV2CoalShipmentsByMineByPlantFacetFacetIdResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -34182,7 +33274,6 @@ func ParseGetV2CoalShipmentsMineAggregatesResponse(rsp *http.Response) (*GetV2Co return nil, err } response.JSON200 = &dest - } return response, nil @@ -34208,7 +33299,6 @@ func ParseGetV2CoalShipmentsMineAggregatesDataResponse(rsp *http.Response) (*Get return nil, err } response.JSON200 = &dest - } return response, nil @@ -34234,7 +33324,6 @@ func ParsePostV2CoalShipmentsMineAggregatesDataResponse(rsp *http.Response) (*Po return nil, err } response.JSON200 = &dest - } return response, nil @@ -34260,7 +33349,6 @@ func ParseGetV2CoalShipmentsMineAggregatesFacetResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -34286,7 +33374,6 @@ func ParseGetV2CoalShipmentsMineAggregatesFacetFacetIdResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -34312,7 +33399,6 @@ func ParseGetV2CoalShipmentsMineStateAggregatesResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -34338,7 +33424,6 @@ func ParseGetV2CoalShipmentsMineStateAggregatesDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -34364,7 +33449,6 @@ func ParsePostV2CoalShipmentsMineStateAggregatesDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -34390,7 +33474,6 @@ func ParseGetV2CoalShipmentsMineStateAggregatesFacetResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -34416,7 +33499,6 @@ func ParseGetV2CoalShipmentsMineStateAggregatesFacetFacetIdResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -34442,7 +33524,6 @@ func ParseGetV2CoalShipmentsPlantAggregatesResponse(rsp *http.Response) (*GetV2C return nil, err } response.JSON200 = &dest - } return response, nil @@ -34468,7 +33549,6 @@ func ParseGetV2CoalShipmentsPlantAggregatesDataResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -34494,7 +33574,6 @@ func ParsePostV2CoalShipmentsPlantAggregatesDataResponse(rsp *http.Response) (*P return nil, err } response.JSON200 = &dest - } return response, nil @@ -34520,7 +33599,6 @@ func ParseGetV2CoalShipmentsPlantAggregatesFacetResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -34546,7 +33624,6 @@ func ParseGetV2CoalShipmentsPlantAggregatesFacetFacetIdResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -34572,7 +33649,6 @@ func ParseGetV2CoalShipmentsPlantStateAggregatesResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -34598,7 +33674,6 @@ func ParseGetV2CoalShipmentsPlantStateAggregatesDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -34624,7 +33699,6 @@ func ParsePostV2CoalShipmentsPlantStateAggregatesDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -34650,7 +33724,6 @@ func ParseGetV2CoalShipmentsPlantStateAggregatesFacetResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -34676,7 +33749,6 @@ func ParseGetV2CoalShipmentsPlantStateAggregatesFacetFacetIdResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -34702,7 +33774,6 @@ func ParseGetV2CoalShipmentsReceiptsResponse(rsp *http.Response) (*GetV2CoalShip return nil, err } response.JSON200 = &dest - } return response, nil @@ -34728,7 +33799,6 @@ func ParseGetV2CoalShipmentsReceiptsDataResponse(rsp *http.Response) (*GetV2Coal return nil, err } response.JSON200 = &dest - } return response, nil @@ -34754,7 +33824,6 @@ func ParsePostV2CoalShipmentsReceiptsDataResponse(rsp *http.Response) (*PostV2Co return nil, err } response.JSON200 = &dest - } return response, nil @@ -34780,7 +33849,6 @@ func ParseGetV2CoalShipmentsReceiptsFacetResponse(rsp *http.Response) (*GetV2Coa return nil, err } response.JSON200 = &dest - } return response, nil @@ -34806,7 +33874,6 @@ func ParseGetV2CoalShipmentsReceiptsFacetFacetIdResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -34832,7 +33899,6 @@ func ParseGetV2CrudeOilImportsResponse(rsp *http.Response) (*GetV2CrudeOilImport return nil, err } response.JSON200 = &dest - } return response, nil @@ -34858,7 +33924,6 @@ func ParseGetV2CrudeOilImportsDataResponse(rsp *http.Response) (*GetV2CrudeOilIm return nil, err } response.JSON200 = &dest - } return response, nil @@ -34884,7 +33949,6 @@ func ParsePostV2CrudeOilImportsDataResponse(rsp *http.Response) (*PostV2CrudeOil return nil, err } response.JSON200 = &dest - } return response, nil @@ -34910,7 +33974,6 @@ func ParseGetV2CrudeOilImportsFacetResponse(rsp *http.Response) (*GetV2CrudeOilI return nil, err } response.JSON200 = &dest - } return response, nil @@ -34936,7 +33999,6 @@ func ParseGetV2CrudeOilImportsFacetFacetIdResponse(rsp *http.Response) (*GetV2Cr return nil, err } response.JSON200 = &dest - } return response, nil @@ -34962,7 +34024,6 @@ func ParseGetV2DensifiedBiomassResponse(rsp *http.Response) (*GetV2DensifiedBiom return nil, err } response.JSON200 = &dest - } return response, nil @@ -34988,7 +34049,6 @@ func ParseGetV2DensifiedBiomassCapacityByRegionResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -35014,7 +34074,6 @@ func ParseGetV2DensifiedBiomassCapacityByRegionDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35040,7 +34099,6 @@ func ParsePostV2DensifiedBiomassCapacityByRegionDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35066,7 +34124,6 @@ func ParseGetV2DensifiedBiomassCapacityByRegionFacetResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35092,7 +34149,6 @@ func ParseGetV2DensifiedBiomassCapacityByRegionFacetFacetIdResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -35118,7 +34174,6 @@ func ParseGetV2DensifiedBiomassCharacteristicsByRegionResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -35144,7 +34199,6 @@ func ParseGetV2DensifiedBiomassCharacteristicsByRegionDataResponse(rsp *http.Res return nil, err } response.JSON200 = &dest - } return response, nil @@ -35170,7 +34224,6 @@ func ParsePostV2DensifiedBiomassCharacteristicsByRegionDataResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -35196,7 +34249,6 @@ func ParseGetV2DensifiedBiomassCharacteristicsByRegionFacetResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -35222,7 +34274,6 @@ func ParseGetV2DensifiedBiomassCharacteristicsByRegionFacetFacetIdResponse(rsp * return nil, err } response.JSON200 = &dest - } return response, nil @@ -35248,7 +34299,6 @@ func ParseGetV2DensifiedBiomassExportSalesAndPriceResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -35274,7 +34324,6 @@ func ParseGetV2DensifiedBiomassExportSalesAndPriceDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -35300,7 +34349,6 @@ func ParsePostV2DensifiedBiomassExportSalesAndPriceDataResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -35326,7 +34374,6 @@ func ParseGetV2DensifiedBiomassExportSalesAndPriceFacetResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -35352,7 +34399,6 @@ func ParseGetV2DensifiedBiomassExportSalesAndPriceFacetFacetIdResponse(rsp *http return nil, err } response.JSON200 = &dest - } return response, nil @@ -35378,7 +34424,6 @@ func ParseGetV2DensifiedBiomassFeedstocksAndCostResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -35404,7 +34449,6 @@ func ParseGetV2DensifiedBiomassFeedstocksAndCostDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35430,7 +34474,6 @@ func ParsePostV2DensifiedBiomassFeedstocksAndCostDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -35456,7 +34499,6 @@ func ParseGetV2DensifiedBiomassFeedstocksAndCostFacetResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -35482,7 +34524,6 @@ func ParseGetV2DensifiedBiomassFeedstocksAndCostFacetFacetIdResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -35508,7 +34549,6 @@ func ParseGetV2DensifiedBiomassInventoriesByRegionResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -35534,7 +34574,6 @@ func ParseGetV2DensifiedBiomassInventoriesByRegionDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -35560,7 +34599,6 @@ func ParsePostV2DensifiedBiomassInventoriesByRegionDataResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -35586,7 +34624,6 @@ func ParseGetV2DensifiedBiomassInventoriesByRegionFacetResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -35612,7 +34649,6 @@ func ParseGetV2DensifiedBiomassInventoriesByRegionFacetFacetIdResponse(rsp *http return nil, err } response.JSON200 = &dest - } return response, nil @@ -35638,7 +34674,6 @@ func ParseGetV2DensifiedBiomassProductionByRegionResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -35664,7 +34699,6 @@ func ParseGetV2DensifiedBiomassProductionByRegionDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -35690,7 +34724,6 @@ func ParsePostV2DensifiedBiomassProductionByRegionDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -35716,7 +34749,6 @@ func ParseGetV2DensifiedBiomassProductionByRegionFacetResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -35742,7 +34774,6 @@ func ParseGetV2DensifiedBiomassProductionByRegionFacetFacetIdResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -35768,7 +34799,6 @@ func ParseGetV2DensifiedBiomassSalesAndPriceByRegionResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35794,7 +34824,6 @@ func ParseGetV2DensifiedBiomassSalesAndPriceByRegionDataResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -35820,7 +34849,6 @@ func ParsePostV2DensifiedBiomassSalesAndPriceByRegionDataResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -35846,7 +34874,6 @@ func ParseGetV2DensifiedBiomassSalesAndPriceByRegionFacetResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -35872,7 +34899,6 @@ func ParseGetV2DensifiedBiomassSalesAndPriceByRegionFacetFacetIdResponse(rsp *ht return nil, err } response.JSON200 = &dest - } return response, nil @@ -35898,7 +34924,6 @@ func ParseGetV2DensifiedBiomassWoodPelletPlantsResponse(rsp *http.Response) (*Ge return nil, err } response.JSON200 = &dest - } return response, nil @@ -35924,7 +34949,6 @@ func ParseGetV2DensifiedBiomassWoodPelletPlantsDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35950,7 +34974,6 @@ func ParsePostV2DensifiedBiomassWoodPelletPlantsDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -35976,7 +34999,6 @@ func ParseGetV2DensifiedBiomassWoodPelletPlantsFacetResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -36002,7 +35024,6 @@ func ParseGetV2DensifiedBiomassWoodPelletPlantsFacetFacetIdResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -36028,7 +35049,6 @@ func ParseGetV2ElectricityResponse(rsp *http.Response) (*GetV2ElectricityRespons return nil, err } response.JSON200 = &dest - } return response, nil @@ -36054,7 +35074,6 @@ func ParseGetV2ElectricityElectricPowerOperationalDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -36080,7 +35099,6 @@ func ParseGetV2ElectricityElectricPowerOperationalDataDataResponse(rsp *http.Res return nil, err } response.JSON200 = &dest - } return response, nil @@ -36106,7 +35124,6 @@ func ParsePostV2ElectricityElectricPowerOperationalDataDataResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -36132,7 +35149,6 @@ func ParseGetV2ElectricityElectricPowerOperationalDataFacetResponse(rsp *http.Re return nil, err } response.JSON200 = &dest - } return response, nil @@ -36158,7 +35174,6 @@ func ParseGetV2ElectricityElectricPowerOperationalDataFacetFacetIdResponse(rsp * return nil, err } response.JSON200 = &dest - } return response, nil @@ -36184,7 +35199,6 @@ func ParseGetV2ElectricityFacilityFuelResponse(rsp *http.Response) (*GetV2Electr return nil, err } response.JSON200 = &dest - } return response, nil @@ -36210,7 +35224,6 @@ func ParseGetV2ElectricityFacilityFuelDataResponse(rsp *http.Response) (*GetV2El return nil, err } response.JSON200 = &dest - } return response, nil @@ -36236,7 +35249,6 @@ func ParsePostV2ElectricityFacilityFuelDataResponse(rsp *http.Response) (*PostV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -36262,7 +35274,6 @@ func ParseGetV2ElectricityFacilityFuelFacetResponse(rsp *http.Response) (*GetV2E return nil, err } response.JSON200 = &dest - } return response, nil @@ -36288,7 +35299,6 @@ func ParseGetV2ElectricityFacilityFuelFacetFacetIdResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -36314,7 +35324,6 @@ func ParseGetV2ElectricityOperatingGeneratorCapacityResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -36340,7 +35349,6 @@ func ParseGetV2ElectricityOperatingGeneratorCapacityDataResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -36366,7 +35374,6 @@ func ParsePostV2ElectricityOperatingGeneratorCapacityDataResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -36392,7 +35399,6 @@ func ParseGetV2ElectricityOperatingGeneratorCapacityFacetResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -36418,7 +35424,6 @@ func ParseGetV2ElectricityOperatingGeneratorCapacityFacetFacetIdResponse(rsp *ht return nil, err } response.JSON200 = &dest - } return response, nil @@ -36444,7 +35449,6 @@ func ParseGetV2ElectricityRetailSalesResponse(rsp *http.Response) (*GetV2Electri return nil, err } response.JSON200 = &dest - } return response, nil @@ -36470,7 +35474,6 @@ func ParseGetV2ElectricityRetailSalesDataResponse(rsp *http.Response) (*GetV2Ele return nil, err } response.JSON200 = &dest - } return response, nil @@ -36496,7 +35499,6 @@ func ParsePostV2ElectricityRetailSalesDataResponse(rsp *http.Response) (*PostV2E return nil, err } response.JSON200 = &dest - } return response, nil @@ -36522,7 +35524,6 @@ func ParseGetV2ElectricityRetailSalesFacetResponse(rsp *http.Response) (*GetV2El return nil, err } response.JSON200 = &dest - } return response, nil @@ -36548,7 +35549,6 @@ func ParseGetV2ElectricityRetailSalesFacetFacetIdResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -36574,7 +35574,6 @@ func ParseGetV2ElectricityRtoResponse(rsp *http.Response) (*GetV2ElectricityRtoR return nil, err } response.JSON200 = &dest - } return response, nil @@ -36600,7 +35599,6 @@ func ParseGetV2ElectricityRtoDailyFuelTypeDataResponse(rsp *http.Response) (*Get return nil, err } response.JSON200 = &dest - } return response, nil @@ -36626,7 +35624,6 @@ func ParseGetV2ElectricityRtoDailyFuelTypeDataDataResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -36652,7 +35649,6 @@ func ParsePostV2ElectricityRtoDailyFuelTypeDataDataResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -36678,7 +35674,6 @@ func ParseGetV2ElectricityRtoDailyFuelTypeDataFacetResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -36704,7 +35699,6 @@ func ParseGetV2ElectricityRtoDailyFuelTypeDataFacetFacetIdResponse(rsp *http.Res return nil, err } response.JSON200 = &dest - } return response, nil @@ -36730,7 +35724,6 @@ func ParseGetV2ElectricityRtoDailyInterchangeDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -36756,7 +35749,6 @@ func ParseGetV2ElectricityRtoDailyInterchangeDataDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -36782,7 +35774,6 @@ func ParsePostV2ElectricityRtoDailyInterchangeDataDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -36808,7 +35799,6 @@ func ParseGetV2ElectricityRtoDailyInterchangeDataFacetResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -36834,7 +35824,6 @@ func ParseGetV2ElectricityRtoDailyInterchangeDataFacetFacetIdResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -36860,7 +35849,6 @@ func ParseGetV2ElectricityRtoDailyRegionDataResponse(rsp *http.Response) (*GetV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -36886,7 +35874,6 @@ func ParseGetV2ElectricityRtoDailyRegionDataDataResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -36912,7 +35899,6 @@ func ParsePostV2ElectricityRtoDailyRegionDataDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -36938,7 +35924,6 @@ func ParseGetV2ElectricityRtoDailyRegionDataFacetResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -36964,7 +35949,6 @@ func ParseGetV2ElectricityRtoDailyRegionDataFacetFacetIdResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -36990,7 +35974,6 @@ func ParseGetV2ElectricityRtoDailyRegionSubBaDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -37016,7 +35999,6 @@ func ParseGetV2ElectricityRtoDailyRegionSubBaDataDataResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -37042,7 +36024,6 @@ func ParsePostV2ElectricityRtoDailyRegionSubBaDataDataResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -37068,7 +36049,6 @@ func ParseGetV2ElectricityRtoDailyRegionSubBaDataFacetResponse(rsp *http.Respons return nil, err } response.JSON200 = &dest - } return response, nil @@ -37094,7 +36074,6 @@ func ParseGetV2ElectricityRtoDailyRegionSubBaDataFacetFacetIdResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -37120,7 +36099,6 @@ func ParseGetV2ElectricityRtoFuelTypeDataResponse(rsp *http.Response) (*GetV2Ele return nil, err } response.JSON200 = &dest - } return response, nil @@ -37146,7 +36124,6 @@ func ParseGetV2ElectricityRtoFuelTypeDataDataResponse(rsp *http.Response) (*GetV return nil, err } response.JSON200 = &dest - } return response, nil @@ -37172,7 +36149,6 @@ func ParsePostV2ElectricityRtoFuelTypeDataDataResponse(rsp *http.Response) (*Pos return nil, err } response.JSON200 = &dest - } return response, nil @@ -37198,7 +36174,6 @@ func ParseGetV2ElectricityRtoFuelTypeDataFacetResponse(rsp *http.Response) (*Get return nil, err } response.JSON200 = &dest - } return response, nil @@ -37224,7 +36199,6 @@ func ParseGetV2ElectricityRtoFuelTypeDataFacetFacetIdResponse(rsp *http.Response return nil, err } response.JSON200 = &dest - } return response, nil @@ -37250,7 +36224,6 @@ func ParseGetV2ElectricityRtoInterchangeDataResponse(rsp *http.Response) (*GetV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -37276,7 +36249,6 @@ func ParseGetV2ElectricityRtoInterchangeDataDataResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -37302,7 +36274,6 @@ func ParsePostV2ElectricityRtoInterchangeDataDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -37328,7 +36299,6 @@ func ParseGetV2ElectricityRtoInterchangeDataFacetResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -37354,7 +36324,6 @@ func ParseGetV2ElectricityRtoInterchangeDataFacetFacetIdResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -37380,7 +36349,6 @@ func ParseGetV2ElectricityRtoRegionDataResponse(rsp *http.Response) (*GetV2Elect return nil, err } response.JSON200 = &dest - } return response, nil @@ -37406,7 +36374,6 @@ func ParseGetV2ElectricityRtoRegionDataDataResponse(rsp *http.Response) (*GetV2E return nil, err } response.JSON200 = &dest - } return response, nil @@ -37432,7 +36399,6 @@ func ParsePostV2ElectricityRtoRegionDataDataResponse(rsp *http.Response) (*PostV return nil, err } response.JSON200 = &dest - } return response, nil @@ -37458,7 +36424,6 @@ func ParseGetV2ElectricityRtoRegionDataFacetResponse(rsp *http.Response) (*GetV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -37484,7 +36449,6 @@ func ParseGetV2ElectricityRtoRegionDataFacetFacetIdResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -37510,7 +36474,6 @@ func ParseGetV2ElectricityRtoRegionSubBaDataResponse(rsp *http.Response) (*GetV2 return nil, err } response.JSON200 = &dest - } return response, nil @@ -37536,7 +36499,6 @@ func ParseGetV2ElectricityRtoRegionSubBaDataDataResponse(rsp *http.Response) (*G return nil, err } response.JSON200 = &dest - } return response, nil @@ -37562,7 +36524,6 @@ func ParsePostV2ElectricityRtoRegionSubBaDataDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -37588,7 +36549,6 @@ func ParseGetV2ElectricityRtoRegionSubBaDataFacetResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -37614,7 +36574,6 @@ func ParseGetV2ElectricityRtoRegionSubBaDataFacetFacetIdResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -37640,7 +36599,6 @@ func ParseGetV2ElectricitySepResponse(rsp *http.Response) (*GetV2ElectricitySepR return nil, err } response.JSON200 = &dest - } return response, nil @@ -37666,7 +36624,6 @@ func ParseGetV2ElectricityStateElectricityProfilesCapabilityResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -37692,7 +36649,6 @@ func ParseGetV2ElectricityStateElectricityProfilesCapabilityDataResponse(rsp *ht return nil, err } response.JSON200 = &dest - } return response, nil @@ -37718,7 +36674,6 @@ func ParsePostV2ElectricityStateElectricityProfilesCapabilityDataResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -37744,7 +36699,6 @@ func ParseGetV2ElectricityStateElectricityProfilesCapabilityFacetResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -37770,7 +36724,6 @@ func ParseGetV2ElectricityStateElectricityProfilesCapabilityFacetFacetIdResponse return nil, err } response.JSON200 = &dest - } return response, nil @@ -37796,7 +36749,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelResponse return nil, err } response.JSON200 = &dest - } return response, nil @@ -37822,7 +36774,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataResp return nil, err } response.JSON200 = &dest - } return response, nil @@ -37848,7 +36799,6 @@ func ParsePostV2ElectricityStateElectricityProfilesEmissionsByStateByFuelDataRes return nil, err } response.JSON200 = &dest - } return response, nil @@ -37874,7 +36824,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelFacetRes return nil, err } response.JSON200 = &dest - } return response, nil @@ -37900,7 +36849,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEmissionsByStateByFuelFacetFac return nil, err } response.JSON200 = &dest - } return response, nil @@ -37926,7 +36874,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEnergyEfficiencyResponse(rsp * return nil, err } response.JSON200 = &dest - } return response, nil @@ -37952,7 +36899,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEnergyEfficiencyDataResponse(r return nil, err } response.JSON200 = &dest - } return response, nil @@ -37978,7 +36924,6 @@ func ParsePostV2ElectricityStateElectricityProfilesEnergyEfficiencyDataResponse( return nil, err } response.JSON200 = &dest - } return response, nil @@ -38004,7 +36949,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEnergyEfficiencyFacetResponse( return nil, err } response.JSON200 = &dest - } return response, nil @@ -38030,7 +36974,6 @@ func ParseGetV2ElectricityStateElectricityProfilesEnergyEfficiencyFacetFacetIdRe return nil, err } response.JSON200 = &dest - } return response, nil @@ -38056,7 +36999,6 @@ func ParseGetV2ElectricityStateElectricityProfilesMetersResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -38082,7 +37024,6 @@ func ParseGetV2ElectricityStateElectricityProfilesMetersDataResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -38108,7 +37049,6 @@ func ParsePostV2ElectricityStateElectricityProfilesMetersDataResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -38134,7 +37074,6 @@ func ParseGetV2ElectricityStateElectricityProfilesMetersFacetResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -38160,7 +37099,6 @@ func ParseGetV2ElectricityStateElectricityProfilesMetersFacetFacetIdResponse(rsp return nil, err } response.JSON200 = &dest - } return response, nil @@ -38186,7 +37124,6 @@ func ParseGetV2ElectricityStateElectricityProfilesNetMeteringResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -38212,7 +37149,6 @@ func ParseGetV2ElectricityStateElectricityProfilesNetMeteringDataResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -38238,7 +37174,6 @@ func ParsePostV2ElectricityStateElectricityProfilesNetMeteringDataResponse(rsp * return nil, err } response.JSON200 = &dest - } return response, nil @@ -38264,7 +37199,6 @@ func ParseGetV2ElectricityStateElectricityProfilesNetMeteringFacetResponse(rsp * return nil, err } response.JSON200 = &dest - } return response, nil @@ -38290,7 +37224,6 @@ func ParseGetV2ElectricityStateElectricityProfilesNetMeteringFacetFacetIdRespons return nil, err } response.JSON200 = &dest - } return response, nil @@ -38316,7 +37249,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSourceDispositionResponse(rsp return nil, err } response.JSON200 = &dest - } return response, nil @@ -38342,7 +37274,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSourceDispositionDataResponse( return nil, err } response.JSON200 = &dest - } return response, nil @@ -38368,7 +37299,6 @@ func ParsePostV2ElectricityStateElectricityProfilesSourceDispositionDataResponse return nil, err } response.JSON200 = &dest - } return response, nil @@ -38394,7 +37324,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSourceDispositionFacetResponse return nil, err } response.JSON200 = &dest - } return response, nil @@ -38420,7 +37349,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSourceDispositionFacetFacetIdR return nil, err } response.JSON200 = &dest - } return response, nil @@ -38446,7 +37374,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSummaryResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -38472,7 +37399,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSummaryDataResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -38498,7 +37424,6 @@ func ParsePostV2ElectricityStateElectricityProfilesSummaryDataResponse(rsp *http return nil, err } response.JSON200 = &dest - } return response, nil @@ -38524,7 +37449,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSummaryFacetResponse(rsp *http return nil, err } response.JSON200 = &dest - } return response, nil @@ -38550,7 +37474,6 @@ func ParseGetV2ElectricityStateElectricityProfilesSummaryFacetFacetIdResponse(rs return nil, err } response.JSON200 = &dest - } return response, nil @@ -38576,7 +37499,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerIeoResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -38602,7 +37524,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerConstructResponse(rsp *http return nil, err } response.JSON200 = &dest - } return response, nil @@ -38628,7 +37549,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerGetDataResponse(rsp *http.R return nil, err } response.JSON200 = &dest - } return response, nil @@ -38654,7 +37574,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerPostDataResponse(rsp *http. return nil, err } response.JSON200 = &dest - } return response, nil @@ -38680,7 +37599,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetResponse(rsp *htt return nil, err } response.JSON200 = &dest - } return response, nil @@ -38706,7 +37624,6 @@ func ParseEIAAPIControllersDatasetAeoIeoIeoControllerRouteFacetIdResponse(rsp *h return nil, err } response.JSON200 = &dest - } return response, nil @@ -38732,7 +37649,6 @@ func ParseGetV2InternationalResponse(rsp *http.Response) (*GetV2InternationalRes return nil, err } response.JSON200 = &dest - } return response, nil @@ -38758,7 +37674,6 @@ func ParseGetV2InternationalDataResponse(rsp *http.Response) (*GetV2Internationa return nil, err } response.JSON200 = &dest - } return response, nil @@ -38784,7 +37699,6 @@ func ParsePostV2InternationalDataResponse(rsp *http.Response) (*PostV2Internatio return nil, err } response.JSON200 = &dest - } return response, nil @@ -38810,7 +37724,6 @@ func ParseGetV2InternationalFacetResponse(rsp *http.Response) (*GetV2Internation return nil, err } response.JSON200 = &dest - } return response, nil @@ -38836,7 +37749,6 @@ func ParseGetV2InternationalFacetFacetIdResponse(rsp *http.Response) (*GetV2Inte return nil, err } response.JSON200 = &dest - } return response, nil @@ -38862,7 +37774,6 @@ func ParseGetV2NaturalGasResponse(rsp *http.Response) (*GetV2NaturalGasResponse, return nil, err } response.JSON200 = &dest - } return response, nil @@ -38888,7 +37799,6 @@ func ParseGetV2NaturalGasRoute1Response(rsp *http.Response) (*GetV2NaturalGasRou return nil, err } response.JSON200 = &dest - } return response, nil @@ -38914,7 +37824,6 @@ func ParseGetV2NaturalGasRoute1Route2Response(rsp *http.Response) (*GetV2Natural return nil, err } response.JSON200 = &dest - } return response, nil @@ -38940,7 +37849,6 @@ func ParseGetV2NaturalGasRoute1Route2DataResponse(rsp *http.Response) (*GetV2Nat return nil, err } response.JSON200 = &dest - } return response, nil @@ -38966,7 +37874,6 @@ func ParsePostV2NaturalGasRoute1Route2DataResponse(rsp *http.Response) (*PostV2N return nil, err } response.JSON200 = &dest - } return response, nil @@ -38992,7 +37899,6 @@ func ParseGetV2NaturalGasRoute1Route2FacetResponse(rsp *http.Response) (*GetV2Na return nil, err } response.JSON200 = &dest - } return response, nil @@ -39018,7 +37924,6 @@ func ParseGetV2NaturalGasRoute1Route2FacetFacetIdResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -39044,7 +37949,6 @@ func ParseGetV2NuclearOutagesResponse(rsp *http.Response) (*GetV2NuclearOutagesR return nil, err } response.JSON200 = &dest - } return response, nil @@ -39070,7 +37974,6 @@ func ParseGetV2NuclearOutagesFacilityNuclearOutagesResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -39096,7 +37999,6 @@ func ParseGetV2NuclearOutagesFacilityNuclearOutagesDataResponse(rsp *http.Respon return nil, err } response.JSON200 = &dest - } return response, nil @@ -39122,7 +38024,6 @@ func ParsePostV2NuclearOutagesFacilityNuclearOutagesDataResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -39148,7 +38049,6 @@ func ParseGetV2NuclearOutagesFacilityNuclearOutagesFacetResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -39174,7 +38074,6 @@ func ParseGetV2NuclearOutagesFacilityNuclearOutagesFacetFacetIdResponse(rsp *htt return nil, err } response.JSON200 = &dest - } return response, nil @@ -39200,7 +38099,6 @@ func ParseGetV2NuclearOutagesGeneratorNuclearOutagesResponse(rsp *http.Response) return nil, err } response.JSON200 = &dest - } return response, nil @@ -39226,7 +38124,6 @@ func ParseGetV2NuclearOutagesGeneratorNuclearOutagesDataResponse(rsp *http.Respo return nil, err } response.JSON200 = &dest - } return response, nil @@ -39252,7 +38149,6 @@ func ParsePostV2NuclearOutagesGeneratorNuclearOutagesDataResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -39278,7 +38174,6 @@ func ParseGetV2NuclearOutagesGeneratorNuclearOutagesFacetResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -39304,7 +38199,6 @@ func ParseGetV2NuclearOutagesGeneratorNuclearOutagesFacetFacetIdResponse(rsp *ht return nil, err } response.JSON200 = &dest - } return response, nil @@ -39330,7 +38224,6 @@ func ParseGetV2NuclearOutagesUsNuclearOutagesResponse(rsp *http.Response) (*GetV return nil, err } response.JSON200 = &dest - } return response, nil @@ -39356,7 +38249,6 @@ func ParseGetV2NuclearOutagesUsNuclearOutagesDataResponse(rsp *http.Response) (* return nil, err } response.JSON200 = &dest - } return response, nil @@ -39382,7 +38274,6 @@ func ParsePostV2NuclearOutagesUsNuclearOutagesDataResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -39408,7 +38299,6 @@ func ParseGetV2NuclearOutagesUsNuclearOutagesFacetResponse(rsp *http.Response) ( return nil, err } response.JSON200 = &dest - } return response, nil @@ -39434,7 +38324,6 @@ func ParseGetV2NuclearOutagesUsNuclearOutagesFacetFacetIdResponse(rsp *http.Resp return nil, err } response.JSON200 = &dest - } return response, nil @@ -39460,7 +38349,6 @@ func ParseGetV2SedsResponse(rsp *http.Response) (*GetV2SedsResponse, error) { return nil, err } response.JSON200 = &dest - } return response, nil @@ -39486,7 +38374,6 @@ func ParseGetV2SedsDataResponse(rsp *http.Response) (*GetV2SedsDataResponse, err return nil, err } response.JSON200 = &dest - } return response, nil @@ -39512,7 +38399,6 @@ func ParsePostV2SedsDataResponse(rsp *http.Response) (*PostV2SedsDataResponse, e return nil, err } response.JSON200 = &dest - } return response, nil @@ -39538,7 +38424,6 @@ func ParseGetV2SedsFacetResponse(rsp *http.Response) (*GetV2SedsFacetResponse, e return nil, err } response.JSON200 = &dest - } return response, nil @@ -39564,7 +38449,6 @@ func ParseGetV2SedsFacetFacetIdResponse(rsp *http.Response) (*GetV2SedsFacetFace return nil, err } response.JSON200 = &dest - } return response, nil @@ -39590,7 +38474,6 @@ func ParseGetV2SteoResponse(rsp *http.Response) (*GetV2SteoResponse, error) { return nil, err } response.JSON200 = &dest - } return response, nil @@ -39616,7 +38499,6 @@ func ParseGetV2SteoDataResponse(rsp *http.Response) (*GetV2SteoDataResponse, err return nil, err } response.JSON200 = &dest - } return response, nil @@ -39642,7 +38524,6 @@ func ParsePostV2SteoDataResponse(rsp *http.Response) (*PostV2SteoDataResponse, e return nil, err } response.JSON200 = &dest - } return response, nil @@ -39668,7 +38549,6 @@ func ParseGetV2SteoFacetResponse(rsp *http.Response) (*GetV2SteoFacetResponse, e return nil, err } response.JSON200 = &dest - } return response, nil @@ -39694,7 +38574,6 @@ func ParseGetV2SteoFacetFacetIdResponse(rsp *http.Response) (*GetV2SteoFacetFace return nil, err } response.JSON200 = &dest - } return response, nil @@ -39720,7 +38599,6 @@ func ParseGetV2TotalEnergyResponse(rsp *http.Response) (*GetV2TotalEnergyRespons return nil, err } response.JSON200 = &dest - } return response, nil @@ -39746,7 +38624,6 @@ func ParseGetV2TotalEnergyDataResponse(rsp *http.Response) (*GetV2TotalEnergyDat return nil, err } response.JSON200 = &dest - } return response, nil @@ -39772,7 +38649,6 @@ func ParsePostV2TotalEnergyDataResponse(rsp *http.Response) (*PostV2TotalEnergyD return nil, err } response.JSON200 = &dest - } return response, nil @@ -39798,7 +38674,6 @@ func ParseGetV2TotalEnergyFacetResponse(rsp *http.Response) (*GetV2TotalEnergyFa return nil, err } response.JSON200 = &dest - } return response, nil @@ -39824,7 +38699,6 @@ func ParseGetV2TotalEnergyFacetFacetIdResponse(rsp *http.Response) (*GetV2TotalE return nil, err } response.JSON200 = &dest - } return response, nil diff --git a/cmd/eia-client/cmd/list/list_series.go b/cmd/eia-client/cmd/list/list_series.go index b6fd1a8..33c9331 100644 --- a/cmd/eia-client/cmd/list/list_series.go +++ b/cmd/eia-client/cmd/list/list_series.go @@ -2,9 +2,11 @@ package list import ( "github.com/spf13/cobra" + "k8s.io/utils/ptr" eiaapi "gitea.libretechconsulting.com/50W/eia-api-go/api" "gitea.libretechconsulting.com/50W/eia-api-go/cmd/eia-client/internal/util" + "gitea.libretechconsulting.com/50W/eia-api-go/pkg/eia" ) var ListCmd = &cobra.Command{ @@ -23,13 +25,56 @@ func runListCmd(cmd *cobra.Command, _ []string) { logger.Fatal().Err(err).Send() } + // Facets ctx, cncl := util.RequestCtx(cmd) defer cncl() - resp, err := client.GetV2AeoRoute1DataWithResponse(ctx, "2023", &eiaapi.GetV2AeoRoute1DataParams{}) + facets, err := client.GetV2AeoRoute1FacetWithResponse(ctx, "2023") + if err != nil { + logger.Fatal().Err(err).Send() + } + logger.Debug().Any("facets", facets.JSON200).Send() + + // Facet + for _, option := range *facets.JSON200.Response.FacetOptions { + ctx, cncl = util.RequestCtx(cmd) + defer cncl() + facet, err := client.GetV2AeoRoute1FacetFacetIdWithResponse(ctx, "2023", option) + if err != nil { + logger.Err(err).Send() + return + } + logger.Debug().Str("facet", option).Any("options", facet.JSON200.Response.Facets).Send() + } + + ctx, cncl = util.RequestCtx(cmd) + defer cncl() + resp, err := client.GetV2AeoRoute1DataWithResponse(ctx, "2023", &eiaapi.GetV2AeoRoute1DataParams{ + Start: ptr.To("2023"), + End: ptr.To("2023"), + Facets: eia.NewFacets( + &eia.Facet{ + Name: "regionId", + Data: "5-4", + }, + &eia.Facet{ + Name: "seriesId", + Data: "gen_NA_elep_NA_nuc_NA_mcc_blnkwh", + }, + &eia.Facet{ + Name: "seriesId", + Data: "cap_NA_elep_NA_nup_NA_mcc_gw", + }, + &eia.Facet{ + Name: "scenario", + Data: "highmacro", + }, + ), + }) if err != nil { - logger.Error().Bytes("body", resp.Body) logger.Fatal().Err(err).Send() } - logger.Info().Str("resp", string(resp.Body)).Send() + // body, err := io.ReadAll(resp.Body) + // defer resp.Body.Close() + logger.Debug().Any("body", resp.JSON200).Send() } diff --git a/go.mod b/go.mod index b4eef08..8319336 100644 --- a/go.mod +++ b/go.mod @@ -8,6 +8,7 @@ require ( github.com/oapi-codegen/runtime v1.1.1 github.com/rs/zerolog v1.33.0 github.com/spf13/cobra v1.8.1 + k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 ) require ( diff --git a/go.sum b/go.sum index cf8d7af..a5729a6 100644 --- a/go.sum +++ b/go.sum @@ -205,3 +205,5 @@ gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C gopkg.in/yaml.v3 v3.0.0/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078 h1:jGnCPejIetjiy2gqaJ5V0NLwTpF4wbQ6cZIItJCSHno= +k8s.io/utils v0.0.0-20241104163129-6fe5fd82f078/go.mod h1:OLgZIPagt7ERELqWJFomSt595RzquPNLL48iOWgYOg0= diff --git a/pkg/eia/eia.go b/pkg/eia/eia.go index 59df383..bc7edf7 100644 --- a/pkg/eia/eia.go +++ b/pkg/eia/eia.go @@ -2,6 +2,7 @@ package eia import ( "context" + "fmt" "net/url" "slices" "time" @@ -29,6 +30,7 @@ type Client struct { ctx context.Context apiKey string healthCheckTimeout time.Duration + *eiaapi.Client *eiaapi.ClientWithResponses } @@ -41,6 +43,19 @@ type ClientOpts struct { HealthCheckTimeout *time.Duration // Timeout for Ping() function, default is 10s } +type Facet struct { + Name string + Data interface{} +} + +func NewFacets(facets ...*Facet) *eiaapi.Facets { + newFacets := make(map[string]interface{}, len(facets)) + for _, f := range facets { + newFacets[fmt.Sprintf("facets[%s][]", f.Name)] = f.Data + } + return &newFacets +} + func NewClient(opts *ClientOpts) (*Client, error) { baseURL := defaultBaseURL if opts.BaseURL != nil { @@ -80,7 +95,12 @@ func NewClient(opts *ClientOpts) (*Client, error) { eiaapi.WithRequestEditorFn(newLoggingMiddleware(opts.Logger, logLevel))) } - client, err := eiaapi.NewClientWithResponses(baseURL, slices.Clip(middlewares)...) + client, err := eiaapi.NewClient(baseURL, slices.Clip(middlewares)...) + if err != nil { + return nil, err + } + + clientWithResponses, err := eiaapi.NewClientWithResponses(baseURL, slices.Clip(middlewares)...) if err != nil { return nil, err } @@ -89,6 +109,7 @@ func NewClient(opts *ClientOpts) (*Client, error) { apiKey: opts.APIKey, ctx: opts.Context, healthCheckTimeout: hcTimeout, - ClientWithResponses: client, + Client: client, + ClientWithResponses: clientWithResponses, }, nil }