diff --git a/astra-streaming/astra-streaming.gen.go b/astra-streaming/astra-streaming.gen.go index fd57e91..1add56b 100644 --- a/astra-streaming/astra-streaming.gen.go +++ b/astra-streaming/astra-streaming.gen.go @@ -7730,6 +7730,7 @@ func (r IdOfCreateTenantEndpointResponse) StatusCode() int { type GetStreamingTenantResponse struct { Body []byte HTTPResponse *http.Response + JSON200 *TenantClusterPlanResponse } // Status returns HTTPResponse.Status @@ -11096,6 +11097,16 @@ func ParseGetStreamingTenantResponse(rsp *http.Response) (*GetStreamingTenantRes HTTPResponse: rsp, } + switch { + case strings.Contains(rsp.Header.Get("Content-Type"), "json") && rsp.StatusCode == 200: + var dest TenantClusterPlanResponse + if err := json.Unmarshal(bodyBytes, &dest); err != nil { + return nil, err + } + response.JSON200 = &dest + + } + return response, nil } diff --git a/streaming-swagger.yaml b/streaming-swagger.yaml index dc09971..8c96580 100644 --- a/streaming-swagger.yaml +++ b/streaming-swagger.yaml @@ -1384,9 +1384,9 @@ paths: "200": description: Successful response containing tenant data. content: - '*/*': + application/json: schema: - $ref: '#/components/schemas/TenantClusterPlanResponse' + $ref: "#/components/schemas/TenantClusterPlanResponse" "401": description: Authentication failure content: {}