From af70c3175ac6a4cd50eb973f95bbdbe24ea49216 Mon Sep 17 00:00:00 2001 From: SDK Generator Bot Date: Thu, 5 Mar 2026 10:53:07 +0000 Subject: [PATCH] Generate modelserving --- services/modelserving/api_default.go | 87 +- services/modelserving/client.go | 7 + services/modelserving/configuration.go | 2 + services/modelserving/go.mod | 2 +- services/modelserving/go.sum | 4 +- .../modelserving/model_chat_model_details.go | 204 ++- .../model_create_token_payload.go | 43 + .../model_create_token_response.go | 34 + .../model_embedding_model_details.go | 130 +- .../model_error_message_response.go | 33 + .../model_get_chat_model_response.go | 34 + .../model_get_embeddings_model_resp.go | 34 + .../modelserving/model_get_token_response.go | 34 + .../model_list_models_response.go | 34 + .../modelserving/model_list_token_resp.go | 34 + .../modelserving/model_message_response.go | 23 + services/modelserving/model_model.go | 154 +- .../model_partial_update_token_payload.go | 33 + services/modelserving/model_sku.go | 43 + services/modelserving/model_token.go | 91 +- services/modelserving/model_token_created.go | 99 +- .../model_update_token_response.go | 34 + services/modelserving/oas_commit | 2 +- services/modelserving/utils.go | 81 + services/modelserving/v1api/api_default.go | 1463 +++++++++++++++++ .../modelserving/v1api/api_default_mock.go | 194 +++ services/modelserving/v1api/client.go | 659 ++++++++ services/modelserving/v1api/configuration.go | 38 + .../v1api/model_chat_model_details.go | 513 ++++++ .../v1api/model_create_token_payload.go | 230 +++ .../v1api/model_create_token_response.go | 193 +++ .../v1api/model_embedding_model_details.go | 420 +++++ .../v1api/model_error_message_response.go | 161 ++ .../v1api/model_get_chat_model_response.go | 193 +++ .../v1api/model_get_embeddings_model_resp.go | 193 +++ .../v1api/model_get_token_response.go | 193 +++ .../v1api/model_list_models_response.go | 193 +++ .../v1api/model_list_token_resp.go | 193 +++ .../v1api/model_message_response.go | 125 ++ services/modelserving/v1api/model_model.go | 420 +++++ .../model_partial_update_token_payload.go | 161 ++ services/modelserving/v1api/model_sku.go | 229 +++ services/modelserving/v1api/model_token.go | 306 ++++ .../modelserving/v1api/model_token_created.go | 334 ++++ .../v1api/model_update_token_response.go | 193 +++ services/modelserving/v1api/response.go | 48 + services/modelserving/v1api/utils.go | 362 ++++ services/modelserving/wait/deprecation.go | 2 + 48 files changed, 8265 insertions(+), 27 deletions(-) create mode 100644 services/modelserving/v1api/api_default.go create mode 100644 services/modelserving/v1api/api_default_mock.go create mode 100644 services/modelserving/v1api/client.go create mode 100644 services/modelserving/v1api/configuration.go create mode 100644 services/modelserving/v1api/model_chat_model_details.go create mode 100644 services/modelserving/v1api/model_create_token_payload.go create mode 100644 services/modelserving/v1api/model_create_token_response.go create mode 100644 services/modelserving/v1api/model_embedding_model_details.go create mode 100644 services/modelserving/v1api/model_error_message_response.go create mode 100644 services/modelserving/v1api/model_get_chat_model_response.go create mode 100644 services/modelserving/v1api/model_get_embeddings_model_resp.go create mode 100644 services/modelserving/v1api/model_get_token_response.go create mode 100644 services/modelserving/v1api/model_list_models_response.go create mode 100644 services/modelserving/v1api/model_list_token_resp.go create mode 100644 services/modelserving/v1api/model_message_response.go create mode 100644 services/modelserving/v1api/model_model.go create mode 100644 services/modelserving/v1api/model_partial_update_token_payload.go create mode 100644 services/modelserving/v1api/model_sku.go create mode 100644 services/modelserving/v1api/model_token.go create mode 100644 services/modelserving/v1api/model_token_created.go create mode 100644 services/modelserving/v1api/model_update_token_response.go create mode 100644 services/modelserving/v1api/response.go create mode 100644 services/modelserving/v1api/utils.go create mode 100644 services/modelserving/wait/deprecation.go diff --git a/services/modelserving/api_default.go b/services/modelserving/api_default.go index 4b9ada78c..7912b20d3 100644 --- a/services/modelserving/api_default.go +++ b/services/modelserving/api_default.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -23,6 +24,7 @@ import ( "github.com/stackitcloud/stackit-sdk-go/core/oapierror" ) +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApi interface { /* CreateToken create auth token for shared model use @@ -32,6 +34,8 @@ type DefaultApi interface { @param regionId region name @param projectId portal project id @return ApiCreateTokenRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest /* @@ -42,6 +46,7 @@ type DefaultApi interface { @param projectId portal project id @return CreateTokenResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ CreateTokenExecute(ctx context.Context, regionId string, projectId string) (*CreateTokenResponse, error) /* @@ -53,6 +58,8 @@ type DefaultApi interface { @param projectId portal project id @param tId token id @return ApiDeleteTokenRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest /* @@ -64,6 +71,7 @@ type DefaultApi interface { @param tId token id @return MessageResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ DeleteTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*MessageResponse, error) /* @@ -74,6 +82,8 @@ type DefaultApi interface { @param regionId region name @param modelId model id @return ApiGetChatModelRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest /* @@ -84,6 +94,7 @@ type DefaultApi interface { @param modelId model id @return GetChatModelResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetChatModelExecute(ctx context.Context, regionId string, modelId string) (*GetChatModelResponse, error) /* @@ -94,6 +105,8 @@ type DefaultApi interface { @param regionId region name @param modelId model id @return ApiGetEmbeddingModelRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest /* @@ -104,6 +117,7 @@ type DefaultApi interface { @param modelId model id @return GetEmbeddingsModelResp + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetEmbeddingModelExecute(ctx context.Context, regionId string, modelId string) (*GetEmbeddingsModelResp, error) /* @@ -115,6 +129,8 @@ type DefaultApi interface { @param projectId portal project id @param tId token id @return ApiGetTokenRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest /* @@ -126,6 +142,7 @@ type DefaultApi interface { @param tId token id @return GetTokenResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ GetTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*GetTokenResponse, error) /* @@ -135,6 +152,8 @@ type DefaultApi interface { @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @return ApiListModelsRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListModels(ctx context.Context, regionId string) ApiListModelsRequest /* @@ -144,6 +163,7 @@ type DefaultApi interface { @param regionId region name @return ListModelsResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListModelsExecute(ctx context.Context, regionId string) (*ListModelsResponse, error) /* @@ -154,6 +174,8 @@ type DefaultApi interface { @param regionId region name @param projectId portal project id @return ApiListTokensRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest /* @@ -164,6 +186,7 @@ type DefaultApi interface { @param projectId portal project id @return ListTokenResp + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ ListTokensExecute(ctx context.Context, regionId string, projectId string) (*ListTokenResp, error) /* @@ -175,6 +198,8 @@ type DefaultApi interface { @param projectId portal project id @param tId token id @return ApiPartialUpdateTokenRequest + + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest /* @@ -186,47 +211,68 @@ type DefaultApi interface { @param tId token id @return UpdateTokenResponse + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead */ PartialUpdateTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*UpdateTokenResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiCreateTokenRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CreateTokenPayload(createTokenPayload CreateTokenPayload) ApiCreateTokenRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*CreateTokenResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiDeleteTokenRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*MessageResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetChatModelRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetChatModelResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetEmbeddingModelRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetEmbeddingsModelResp, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiGetTokenRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*GetTokenResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListModelsRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListModelsResponse, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiListTokensRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*ListTokenResp, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ApiPartialUpdateTokenRequest interface { + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead PartialUpdateTokenPayload(partialUpdateTokenPayload PartialUpdateTokenPayload) ApiPartialUpdateTokenRequest + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead Execute() (*UpdateTokenResponse, error) } // DefaultApiService DefaultApi service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DefaultApiService service +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenRequest struct { ctx context.Context apiService *DefaultApiService @@ -235,11 +281,13 @@ type CreateTokenRequest struct { createTokenPayload *CreateTokenPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateTokenRequest) CreateTokenPayload(createTokenPayload CreateTokenPayload) ApiCreateTokenRequest { r.createTokenPayload = &createTokenPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r CreateTokenRequest) Execute() (*CreateTokenResponse, error) { var ( localVarHTTPMethod = http.MethodPost @@ -378,7 +426,7 @@ func (r CreateTokenRequest) Execute() (*CreateTokenResponse, error) { /* CreateToken: create auth token for shared model use -create auth token for shared model use +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -394,6 +442,7 @@ func (a *APIClient) CreateToken(ctx context.Context, regionId string, projectId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) CreateTokenExecute(ctx context.Context, regionId string, projectId string) (*CreateTokenResponse, error) { r := CreateTokenRequest{ apiService: a.defaultApi, @@ -404,6 +453,7 @@ func (a *APIClient) CreateTokenExecute(ctx context.Context, regionId string, pro return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type DeleteTokenRequest struct { ctx context.Context apiService *DefaultApiService @@ -412,6 +462,7 @@ type DeleteTokenRequest struct { tId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r DeleteTokenRequest) Execute() (*MessageResponse, error) { var ( localVarHTTPMethod = http.MethodDelete @@ -549,7 +600,7 @@ func (r DeleteTokenRequest) Execute() (*MessageResponse, error) { /* DeleteToken: delete auth token in shared model use -delete auth token in shared model use +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -567,6 +618,7 @@ func (a *APIClient) DeleteToken(ctx context.Context, regionId string, projectId } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) DeleteTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*MessageResponse, error) { r := DeleteTokenRequest{ apiService: a.defaultApi, @@ -578,6 +630,7 @@ func (a *APIClient) DeleteTokenExecute(ctx context.Context, regionId string, pro return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelRequest struct { ctx context.Context apiService *DefaultApiService @@ -585,6 +638,7 @@ type GetChatModelRequest struct { modelId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetChatModelRequest) Execute() (*GetChatModelResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -710,7 +764,7 @@ func (r GetChatModelRequest) Execute() (*GetChatModelResponse, error) { /* GetChatModel: details of a llm model -details of a llm model +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -726,6 +780,7 @@ func (a *APIClient) GetChatModel(ctx context.Context, regionId string, modelId s } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetChatModelExecute(ctx context.Context, regionId string, modelId string) (*GetChatModelResponse, error) { r := GetChatModelRequest{ apiService: a.defaultApi, @@ -736,6 +791,7 @@ func (a *APIClient) GetChatModelExecute(ctx context.Context, regionId string, mo return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingModelRequest struct { ctx context.Context apiService *DefaultApiService @@ -743,6 +799,7 @@ type GetEmbeddingModelRequest struct { modelId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetEmbeddingModelRequest) Execute() (*GetEmbeddingsModelResp, error) { var ( localVarHTTPMethod = http.MethodGet @@ -868,7 +925,7 @@ func (r GetEmbeddingModelRequest) Execute() (*GetEmbeddingsModelResp, error) { /* GetEmbeddingModel: details of an embedding model -details of an embedding model +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -884,6 +941,7 @@ func (a *APIClient) GetEmbeddingModel(ctx context.Context, regionId string, mode } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetEmbeddingModelExecute(ctx context.Context, regionId string, modelId string) (*GetEmbeddingsModelResp, error) { r := GetEmbeddingModelRequest{ apiService: a.defaultApi, @@ -894,6 +952,7 @@ func (a *APIClient) GetEmbeddingModelExecute(ctx context.Context, regionId strin return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenRequest struct { ctx context.Context apiService *DefaultApiService @@ -902,6 +961,7 @@ type GetTokenRequest struct { tId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r GetTokenRequest) Execute() (*GetTokenResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1039,7 +1099,7 @@ func (r GetTokenRequest) Execute() (*GetTokenResponse, error) { /* GetToken: get auth token for shared model use -get auth token for shared model use +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -1057,6 +1117,7 @@ func (a *APIClient) GetToken(ctx context.Context, regionId string, projectId str } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) GetTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*GetTokenResponse, error) { r := GetTokenRequest{ apiService: a.defaultApi, @@ -1068,12 +1129,14 @@ func (a *APIClient) GetTokenExecute(ctx context.Context, regionId string, projec return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsRequest struct { ctx context.Context apiService *DefaultApiService regionId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListModelsRequest) Execute() (*ListModelsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1198,7 +1261,7 @@ func (r ListModelsRequest) Execute() (*ListModelsResponse, error) { /* ListModels: List of shared model -List of shared model +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -1212,6 +1275,7 @@ func (a *APIClient) ListModels(ctx context.Context, regionId string) ApiListMode } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListModelsExecute(ctx context.Context, regionId string) (*ListModelsResponse, error) { r := ListModelsRequest{ apiService: a.defaultApi, @@ -1221,6 +1285,7 @@ func (a *APIClient) ListModelsExecute(ctx context.Context, regionId string) (*Li return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokensRequest struct { ctx context.Context apiService *DefaultApiService @@ -1228,6 +1293,7 @@ type ListTokensRequest struct { projectId string } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r ListTokensRequest) Execute() (*ListTokenResp, error) { var ( localVarHTTPMethod = http.MethodGet @@ -1353,7 +1419,7 @@ func (r ListTokensRequest) Execute() (*ListTokenResp, error) { /* ListTokens: auth tokens for shared model in non dedicated instances -auth tokens for shared model in non dedicated instances +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -1369,6 +1435,7 @@ func (a *APIClient) ListTokens(ctx context.Context, regionId string, projectId s } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) ListTokensExecute(ctx context.Context, regionId string, projectId string) (*ListTokenResp, error) { r := ListTokensRequest{ apiService: a.defaultApi, @@ -1379,6 +1446,7 @@ func (a *APIClient) ListTokensExecute(ctx context.Context, regionId string, proj return r.Execute() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenRequest struct { ctx context.Context apiService *DefaultApiService @@ -1388,11 +1456,13 @@ type PartialUpdateTokenRequest struct { partialUpdateTokenPayload *PartialUpdateTokenPayload } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateTokenRequest) PartialUpdateTokenPayload(partialUpdateTokenPayload PartialUpdateTokenPayload) ApiPartialUpdateTokenRequest { r.partialUpdateTokenPayload = &partialUpdateTokenPayload return r } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (r PartialUpdateTokenRequest) Execute() (*UpdateTokenResponse, error) { var ( localVarHTTPMethod = http.MethodPatch @@ -1532,7 +1602,7 @@ func (r PartialUpdateTokenRequest) Execute() (*UpdateTokenResponse, error) { /* PartialUpdateToken: partial update auth token for shared model use -partial update auth token for shared model use +Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param regionId region name @@ -1550,6 +1620,7 @@ func (a *APIClient) PartialUpdateToken(ctx context.Context, regionId string, pro } } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (a *APIClient) PartialUpdateTokenExecute(ctx context.Context, regionId string, projectId string, tId string) (*UpdateTokenResponse, error) { r := PartialUpdateTokenRequest{ apiService: a.defaultApi, diff --git a/services/modelserving/client.go b/services/modelserving/client.go index 9430415f4..a15934fa8 100644 --- a/services/modelserving/client.go +++ b/services/modelserving/client.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -44,18 +45,21 @@ var ( // APIClient manages communication with the STACKIT Model Serving API API v1.0.0 // In most cases there should be only one, shared, APIClient. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type APIClient struct { cfg *config.Configuration common service // Reuse a single struct instead of allocating one for each service on the heap. defaultApi *DefaultApiService } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type service struct { client DefaultApi } // NewAPIClient creates a new API client. // Optionally receives configuration options +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { cfg := NewConfiguration() @@ -147,6 +151,7 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { return nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func ParameterValueToString(obj interface{}, key string) string { if reflect.TypeOf(obj).Kind() != reflect.Ptr { return fmt.Sprintf("%v", obj) @@ -285,6 +290,7 @@ func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { // Allow modification of underlying config for alternate implementations and testing // Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (c *APIClient) GetConfig() *config.Configuration { return c.cfg } @@ -595,6 +601,7 @@ func parseCacheControl(headers http.Header) cacheControl { } // CacheExpires helper function to determine remaining time before repeating a request. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func CacheExpires(r *http.Response) time.Time { // Figure out when the cache expires. var expires time.Time diff --git a/services/modelserving/configuration.go b/services/modelserving/configuration.go index 5f144a073..4c78b2838 100644 --- a/services/modelserving/configuration.go +++ b/services/modelserving/configuration.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -15,6 +16,7 @@ import ( ) // NewConfiguration returns a new Configuration object +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewConfiguration() *config.Configuration { cfg := &config.Configuration{ DefaultHeader: make(map[string]string), diff --git a/services/modelserving/go.mod b/services/modelserving/go.mod index 35c81169b..6559cec65 100644 --- a/services/modelserving/go.mod +++ b/services/modelserving/go.mod @@ -4,7 +4,7 @@ go 1.21 require ( github.com/google/go-cmp v0.7.0 - github.com/stackitcloud/stackit-sdk-go/core v0.21.1 + github.com/stackitcloud/stackit-sdk-go/core v0.22.0 ) require ( diff --git a/services/modelserving/go.sum b/services/modelserving/go.sum index ca103c909..195011dd5 100644 --- a/services/modelserving/go.sum +++ b/services/modelserving/go.sum @@ -4,5 +4,5 @@ github.com/google/go-cmp v0.7.0 h1:wk8382ETsv4JYUZwIsn6YpYiWiBsYLSJiTsyBybVuN8= github.com/google/go-cmp v0.7.0/go.mod h1:pXiqmnSA92OHEEa9HXL2W4E7lf9JzCmGVUdgjX3N/iU= github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1 h1:Y/PcAgM7DPYMNqum0MLv4n1mF9ieuevzcCIZYQfm3Ts= -github.com/stackitcloud/stackit-sdk-go/core v0.21.1/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0 h1:6rViz7GnNwXSh51Lur5xuDzO8EWSZfN9J0HvEkBKq6c= +github.com/stackitcloud/stackit-sdk-go/core v0.22.0/go.mod h1:osMglDby4csGZ5sIfhNyYq1bS1TxIdPY88+skE/kkmI= diff --git a/services/modelserving/model_chat_model_details.go b/services/modelserving/model_chat_model_details.go index 6c965dbe8..610e3ac4d 100644 --- a/services/modelserving/model_chat_model_details.go +++ b/services/modelserving/model_chat_model_details.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -26,18 +27,25 @@ var _ MappedNullable = &ChatModelDetails{} // ChatModelDetailsBits the model 'ChatModelDetails' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsBits int // List of Bits const ( - CHATMODELDETAILSBITS_ONE_BIT ChatModelDetailsBits = 1 - CHATMODELDETAILSBITS_TWO_BITS ChatModelDetailsBits = 2 - CHATMODELDETAILSBITS_FOUR_BITS ChatModelDetailsBits = 4 - CHATMODELDETAILSBITS_EIGHT_BITS ChatModelDetailsBits = 8 + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSBITS_ONE_BIT ChatModelDetailsBits = 1 + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSBITS_TWO_BITS ChatModelDetailsBits = 2 + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSBITS_FOUR_BITS ChatModelDetailsBits = 4 + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSBITS_EIGHT_BITS ChatModelDetailsBits = 8 + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CHATMODELDETAILSBITS_SIXTEEN_BITS ChatModelDetailsBits = 16 ) // All allowed values of ChatModelDetails enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedChatModelDetailsBitsEnumValues = []ChatModelDetailsBits{ 1, 2, @@ -46,6 +54,7 @@ var AllowedChatModelDetailsBitsEnumValues = []ChatModelDetailsBits{ 16, } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ChatModelDetailsBits) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -73,6 +82,7 @@ func (v *ChatModelDetailsBits) UnmarshalJSON(src []byte) error { // NewChatModelDetailsBitsFromValue returns a pointer to a valid ChatModelDetailsBits // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewChatModelDetailsBitsFromValue(v ChatModelDetailsBits) (*ChatModelDetailsBits, error) { ev := ChatModelDetailsBits(v) if ev.IsValid() { @@ -83,6 +93,7 @@ func NewChatModelDetailsBitsFromValue(v ChatModelDetailsBits) (*ChatModelDetails } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsBits) IsValid() bool { for _, existing := range AllowedChatModelDetailsBitsEnumValues { if existing == v { @@ -93,50 +104,65 @@ func (v ChatModelDetailsBits) IsValid() bool { } // Ptr returns reference to BitsBits value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsBits) Ptr() *ChatModelDetailsBits { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableChatModelDetailsBits struct { value *ChatModelDetailsBits isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsBits) Get() *ChatModelDetailsBits { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsBits) Set(val *ChatModelDetailsBits) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsBits) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsBits) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableChatModelDetailsBits(val *ChatModelDetailsBits) *NullableChatModelDetailsBits { return &NullableChatModelDetailsBits{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsBits) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsBits) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetBitsAttributeType = *ChatModelDetailsBits + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetBitsArgType = ChatModelDetailsBits + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetBitsRetType = ChatModelDetailsBits +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetBitsAttributeTypeOk(arg ChatModelDetailsGetBitsAttributeType) (ret ChatModelDetailsGetBitsRetType, ok bool) { if arg == nil { return ret, false @@ -144,6 +170,7 @@ func getChatModelDetailsGetBitsAttributeTypeOk(arg ChatModelDetailsGetBitsAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetBitsAttributeType(arg *ChatModelDetailsGetBitsAttributeType, val ChatModelDetailsGetBitsRetType) { *arg = &val } @@ -156,22 +183,28 @@ func setChatModelDetailsGetBitsAttributeType(arg *ChatModelDetailsGetBitsAttribu // ChatModelDetailsCategory the model 'ChatModelDetails' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsCategory string // List of Category const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CHATMODELDETAILSCATEGORY_STANDARD ChatModelDetailsCategory = "standard" - CHATMODELDETAILSCATEGORY_PLUS ChatModelDetailsCategory = "plus" - CHATMODELDETAILSCATEGORY_PREMIUM ChatModelDetailsCategory = "premium" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSCATEGORY_PLUS ChatModelDetailsCategory = "plus" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + CHATMODELDETAILSCATEGORY_PREMIUM ChatModelDetailsCategory = "premium" ) // All allowed values of ChatModelDetails enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedChatModelDetailsCategoryEnumValues = []ChatModelDetailsCategory{ "standard", "plus", "premium", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ChatModelDetailsCategory) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -199,6 +232,7 @@ func (v *ChatModelDetailsCategory) UnmarshalJSON(src []byte) error { // NewChatModelDetailsCategoryFromValue returns a pointer to a valid ChatModelDetailsCategory // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewChatModelDetailsCategoryFromValue(v ChatModelDetailsCategory) (*ChatModelDetailsCategory, error) { ev := ChatModelDetailsCategory(v) if ev.IsValid() { @@ -209,6 +243,7 @@ func NewChatModelDetailsCategoryFromValue(v ChatModelDetailsCategory) (*ChatMode } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsCategory) IsValid() bool { for _, existing := range AllowedChatModelDetailsCategoryEnumValues { if existing == v { @@ -219,50 +254,65 @@ func (v ChatModelDetailsCategory) IsValid() bool { } // Ptr returns reference to CategoryCategory value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsCategory) Ptr() *ChatModelDetailsCategory { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableChatModelDetailsCategory struct { value *ChatModelDetailsCategory isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsCategory) Get() *ChatModelDetailsCategory { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsCategory) Set(val *ChatModelDetailsCategory) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsCategory) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsCategory) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableChatModelDetailsCategory(val *ChatModelDetailsCategory) *NullableChatModelDetailsCategory { return &NullableChatModelDetailsCategory{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsCategory) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsCategory) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetCategoryAttributeType = *ChatModelDetailsCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetCategoryArgType = ChatModelDetailsCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetCategoryRetType = ChatModelDetailsCategory +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetCategoryAttributeTypeOk(arg ChatModelDetailsGetCategoryAttributeType) (ret ChatModelDetailsGetCategoryRetType, ok bool) { if arg == nil { return ret, false @@ -270,6 +320,7 @@ func getChatModelDetailsGetCategoryAttributeTypeOk(arg ChatModelDetailsGetCatego return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetCategoryAttributeType(arg *ChatModelDetailsGetCategoryAttributeType, val ChatModelDetailsGetCategoryRetType) { *arg = &val } @@ -279,10 +330,16 @@ func setChatModelDetailsGetCategoryAttributeType(arg *ChatModelDetailsGetCategor */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetContextLengthAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetContextLengthArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetContextLengthRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetContextLengthAttributeTypeOk(arg ChatModelDetailsGetContextLengthAttributeType) (ret ChatModelDetailsGetContextLengthRetType, ok bool) { if arg == nil { return ret, false @@ -290,6 +347,7 @@ func getChatModelDetailsGetContextLengthAttributeTypeOk(arg ChatModelDetailsGetC return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetContextLengthAttributeType(arg *ChatModelDetailsGetContextLengthAttributeType, val ChatModelDetailsGetContextLengthRetType) { *arg = &val } @@ -299,8 +357,10 @@ func setChatModelDetailsGetContextLengthAttributeType(arg *ChatModelDetailsGetCo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetDescriptionAttributeTypeOk(arg ChatModelDetailsGetDescriptionAttributeType) (ret ChatModelDetailsGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -308,11 +368,15 @@ func getChatModelDetailsGetDescriptionAttributeTypeOk(arg ChatModelDetailsGetDes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetDescriptionAttributeType(arg *ChatModelDetailsGetDescriptionAttributeType, val ChatModelDetailsGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDescriptionRetType = string /* @@ -320,8 +384,10 @@ type ChatModelDetailsGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDisplayedNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetDisplayedNameAttributeTypeOk(arg ChatModelDetailsGetDisplayedNameAttributeType) (ret ChatModelDetailsGetDisplayedNameRetType, ok bool) { if arg == nil { return ret, false @@ -329,11 +395,15 @@ func getChatModelDetailsGetDisplayedNameAttributeTypeOk(arg ChatModelDetailsGetD return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetDisplayedNameAttributeType(arg *ChatModelDetailsGetDisplayedNameAttributeType, val ChatModelDetailsGetDisplayedNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDisplayedNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetDisplayedNameRetType = string /* @@ -341,8 +411,10 @@ type ChatModelDetailsGetDisplayedNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetIdAttributeTypeOk(arg ChatModelDetailsGetIdAttributeType) (ret ChatModelDetailsGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -350,11 +422,15 @@ func getChatModelDetailsGetIdAttributeTypeOk(arg ChatModelDetailsGetIdAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetIdAttributeType(arg *ChatModelDetailsGetIdAttributeType, val ChatModelDetailsGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetIdRetType = string /* @@ -362,8 +438,10 @@ type ChatModelDetailsGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetNameAttributeTypeOk(arg ChatModelDetailsGetNameAttributeType) (ret ChatModelDetailsGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -371,11 +449,15 @@ func getChatModelDetailsGetNameAttributeTypeOk(arg ChatModelDetailsGetNameAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetNameAttributeType(arg *ChatModelDetailsGetNameAttributeType, val ChatModelDetailsGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetNameRetType = string /* @@ -386,20 +468,25 @@ type ChatModelDetailsGetNameRetType = string // ChatModelDetailsQuantizationMethod the model 'ChatModelDetails' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsQuantizationMethod string // List of QuantizationMethod const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CHATMODELDETAILSQUANTIZATION_METHOD_PTQ ChatModelDetailsQuantizationMethod = "PTQ" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead CHATMODELDETAILSQUANTIZATION_METHOD_QAT ChatModelDetailsQuantizationMethod = "QAT" ) // All allowed values of ChatModelDetails enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedChatModelDetailsQuantizationMethodEnumValues = []ChatModelDetailsQuantizationMethod{ "PTQ", "QAT", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ChatModelDetailsQuantizationMethod) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -427,6 +514,7 @@ func (v *ChatModelDetailsQuantizationMethod) UnmarshalJSON(src []byte) error { // NewChatModelDetailsQuantizationMethodFromValue returns a pointer to a valid ChatModelDetailsQuantizationMethod // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewChatModelDetailsQuantizationMethodFromValue(v ChatModelDetailsQuantizationMethod) (*ChatModelDetailsQuantizationMethod, error) { ev := ChatModelDetailsQuantizationMethod(v) if ev.IsValid() { @@ -437,6 +525,7 @@ func NewChatModelDetailsQuantizationMethodFromValue(v ChatModelDetailsQuantizati } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsQuantizationMethod) IsValid() bool { for _, existing := range AllowedChatModelDetailsQuantizationMethodEnumValues { if existing == v { @@ -447,50 +536,65 @@ func (v ChatModelDetailsQuantizationMethod) IsValid() bool { } // Ptr returns reference to QuantizationMethodQuantizationMethod value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ChatModelDetailsQuantizationMethod) Ptr() *ChatModelDetailsQuantizationMethod { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableChatModelDetailsQuantizationMethod struct { value *ChatModelDetailsQuantizationMethod isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsQuantizationMethod) Get() *ChatModelDetailsQuantizationMethod { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsQuantizationMethod) Set(val *ChatModelDetailsQuantizationMethod) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsQuantizationMethod) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsQuantizationMethod) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableChatModelDetailsQuantizationMethod(val *ChatModelDetailsQuantizationMethod) *NullableChatModelDetailsQuantizationMethod { return &NullableChatModelDetailsQuantizationMethod{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetailsQuantizationMethod) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetailsQuantizationMethod) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetQuantizationMethodAttributeType = *ChatModelDetailsQuantizationMethod + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetQuantizationMethodArgType = ChatModelDetailsQuantizationMethod + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetQuantizationMethodRetType = ChatModelDetailsQuantizationMethod +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetQuantizationMethodAttributeTypeOk(arg ChatModelDetailsGetQuantizationMethodAttributeType) (ret ChatModelDetailsGetQuantizationMethodRetType, ok bool) { if arg == nil { return ret, false @@ -498,6 +602,7 @@ func getChatModelDetailsGetQuantizationMethodAttributeTypeOk(arg ChatModelDetail return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetQuantizationMethodAttributeType(arg *ChatModelDetailsGetQuantizationMethodAttributeType, val ChatModelDetailsGetQuantizationMethodRetType) { *arg = &val } @@ -507,8 +612,10 @@ func setChatModelDetailsGetQuantizationMethodAttributeType(arg *ChatModelDetails */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetRegionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetRegionAttributeTypeOk(arg ChatModelDetailsGetRegionAttributeType) (ret ChatModelDetailsGetRegionRetType, ok bool) { if arg == nil { return ret, false @@ -516,11 +623,15 @@ func getChatModelDetailsGetRegionAttributeTypeOk(arg ChatModelDetailsGetRegionAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetRegionAttributeType(arg *ChatModelDetailsGetRegionAttributeType, val ChatModelDetailsGetRegionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetRegionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetRegionRetType = string /* @@ -528,10 +639,16 @@ type ChatModelDetailsGetRegionRetType = string */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSizeAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSizeArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSizeRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetSizeAttributeTypeOk(arg ChatModelDetailsGetSizeAttributeType) (ret ChatModelDetailsGetSizeRetType, ok bool) { if arg == nil { return ret, false @@ -539,6 +656,7 @@ func getChatModelDetailsGetSizeAttributeTypeOk(arg ChatModelDetailsGetSizeAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetSizeAttributeType(arg *ChatModelDetailsGetSizeAttributeType, val ChatModelDetailsGetSizeRetType) { *arg = &val } @@ -548,10 +666,16 @@ func setChatModelDetailsGetSizeAttributeType(arg *ChatModelDetailsGetSizeAttribu */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSkusAttributeType = *[]SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSkusArgType = []SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetSkusRetType = []SKU +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetSkusAttributeTypeOk(arg ChatModelDetailsGetSkusAttributeType) (ret ChatModelDetailsGetSkusRetType, ok bool) { if arg == nil { return ret, false @@ -559,6 +683,7 @@ func getChatModelDetailsGetSkusAttributeTypeOk(arg ChatModelDetailsGetSkusAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetSkusAttributeType(arg *ChatModelDetailsGetSkusAttributeType, val ChatModelDetailsGetSkusRetType) { *arg = &val } @@ -568,10 +693,16 @@ func setChatModelDetailsGetSkusAttributeType(arg *ChatModelDetailsGetSkusAttribu */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetTagsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetTagsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetTagsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetTagsAttributeTypeOk(arg ChatModelDetailsGetTagsAttributeType) (ret ChatModelDetailsGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -579,6 +710,7 @@ func getChatModelDetailsGetTagsAttributeTypeOk(arg ChatModelDetailsGetTagsAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetTagsAttributeType(arg *ChatModelDetailsGetTagsAttributeType, val ChatModelDetailsGetTagsRetType) { *arg = &val } @@ -588,8 +720,10 @@ func setChatModelDetailsGetTagsAttributeType(arg *ChatModelDetailsGetTagsAttribu */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getChatModelDetailsGetUrlAttributeTypeOk(arg ChatModelDetailsGetUrlAttributeType) (ret ChatModelDetailsGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -597,14 +731,19 @@ func getChatModelDetailsGetUrlAttributeTypeOk(arg ChatModelDetailsGetUrlAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setChatModelDetailsGetUrlAttributeType(arg *ChatModelDetailsGetUrlAttributeType, val ChatModelDetailsGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetailsGetUrlRetType = string // ChatModelDetails struct for ChatModelDetails +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ChatModelDetails struct { // Can be cast to int32 without loss of precision. Bits ChatModelDetailsGetBitsAttributeType `json:"bits,omitempty"` @@ -637,12 +776,14 @@ type ChatModelDetails struct { Url ChatModelDetailsGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ChatModelDetails ChatModelDetails // NewChatModelDetails instantiates a new ChatModelDetails object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewChatModelDetails(category ChatModelDetailsGetCategoryArgType, contextLength ChatModelDetailsGetContextLengthArgType, description ChatModelDetailsGetDescriptionArgType, displayedName ChatModelDetailsGetDisplayedNameArgType, id ChatModelDetailsGetIdArgType, name ChatModelDetailsGetNameArgType, region ChatModelDetailsGetRegionArgType, size ChatModelDetailsGetSizeArgType, skus ChatModelDetailsGetSkusArgType, tags ChatModelDetailsGetTagsArgType, url ChatModelDetailsGetUrlArgType) *ChatModelDetails { this := ChatModelDetails{} setChatModelDetailsGetCategoryAttributeType(&this.Category, category) @@ -662,12 +803,14 @@ func NewChatModelDetails(category ChatModelDetailsGetCategoryArgType, contextLen // NewChatModelDetailsWithDefaults instantiates a new ChatModelDetails object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewChatModelDetailsWithDefaults() *ChatModelDetails { this := ChatModelDetails{} return &this } // GetBits returns the Bits field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetBits() (res ChatModelDetailsGetBitsRetType) { res, _ = o.GetBitsOk() return @@ -675,22 +818,26 @@ func (o *ChatModelDetails) GetBits() (res ChatModelDetailsGetBitsRetType) { // GetBitsOk returns a tuple with the Bits field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetBitsOk() (ret ChatModelDetailsGetBitsRetType, ok bool) { return getChatModelDetailsGetBitsAttributeTypeOk(o.Bits) } // HasBits returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) HasBits() bool { _, ok := o.GetBitsOk() return ok } // SetBits gets a reference to the given int64 and assigns it to the Bits field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetBits(v ChatModelDetailsGetBitsRetType) { setChatModelDetailsGetBitsAttributeType(&o.Bits, v) } // GetCategory returns the Category field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetCategory() (ret ChatModelDetailsGetCategoryRetType) { ret, _ = o.GetCategoryOk() return ret @@ -698,16 +845,19 @@ func (o *ChatModelDetails) GetCategory() (ret ChatModelDetailsGetCategoryRetType // GetCategoryOk returns a tuple with the Category field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetCategoryOk() (ret ChatModelDetailsGetCategoryRetType, ok bool) { return getChatModelDetailsGetCategoryAttributeTypeOk(o.Category) } // SetCategory sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetCategory(v ChatModelDetailsGetCategoryRetType) { setChatModelDetailsGetCategoryAttributeType(&o.Category, v) } // GetContextLength returns the ContextLength field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetContextLength() (ret ChatModelDetailsGetContextLengthRetType) { ret, _ = o.GetContextLengthOk() return ret @@ -715,16 +865,19 @@ func (o *ChatModelDetails) GetContextLength() (ret ChatModelDetailsGetContextLen // GetContextLengthOk returns a tuple with the ContextLength field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetContextLengthOk() (ret ChatModelDetailsGetContextLengthRetType, ok bool) { return getChatModelDetailsGetContextLengthAttributeTypeOk(o.ContextLength) } // SetContextLength sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetContextLength(v ChatModelDetailsGetContextLengthRetType) { setChatModelDetailsGetContextLengthAttributeType(&o.ContextLength, v) } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetDescription() (ret ChatModelDetailsGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -732,16 +885,19 @@ func (o *ChatModelDetails) GetDescription() (ret ChatModelDetailsGetDescriptionR // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetDescriptionOk() (ret ChatModelDetailsGetDescriptionRetType, ok bool) { return getChatModelDetailsGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetDescription(v ChatModelDetailsGetDescriptionRetType) { setChatModelDetailsGetDescriptionAttributeType(&o.Description, v) } // GetDisplayedName returns the DisplayedName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetDisplayedName() (ret ChatModelDetailsGetDisplayedNameRetType) { ret, _ = o.GetDisplayedNameOk() return ret @@ -749,16 +905,19 @@ func (o *ChatModelDetails) GetDisplayedName() (ret ChatModelDetailsGetDisplayedN // GetDisplayedNameOk returns a tuple with the DisplayedName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetDisplayedNameOk() (ret ChatModelDetailsGetDisplayedNameRetType, ok bool) { return getChatModelDetailsGetDisplayedNameAttributeTypeOk(o.DisplayedName) } // SetDisplayedName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetDisplayedName(v ChatModelDetailsGetDisplayedNameRetType) { setChatModelDetailsGetDisplayedNameAttributeType(&o.DisplayedName, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetId() (ret ChatModelDetailsGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -766,16 +925,19 @@ func (o *ChatModelDetails) GetId() (ret ChatModelDetailsGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetIdOk() (ret ChatModelDetailsGetIdRetType, ok bool) { return getChatModelDetailsGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetId(v ChatModelDetailsGetIdRetType) { setChatModelDetailsGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetName() (ret ChatModelDetailsGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -783,16 +945,19 @@ func (o *ChatModelDetails) GetName() (ret ChatModelDetailsGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetNameOk() (ret ChatModelDetailsGetNameRetType, ok bool) { return getChatModelDetailsGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetName(v ChatModelDetailsGetNameRetType) { setChatModelDetailsGetNameAttributeType(&o.Name, v) } // GetQuantizationMethod returns the QuantizationMethod field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetQuantizationMethod() (res ChatModelDetailsGetQuantizationMethodRetType) { res, _ = o.GetQuantizationMethodOk() return @@ -800,22 +965,26 @@ func (o *ChatModelDetails) GetQuantizationMethod() (res ChatModelDetailsGetQuant // GetQuantizationMethodOk returns a tuple with the QuantizationMethod field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetQuantizationMethodOk() (ret ChatModelDetailsGetQuantizationMethodRetType, ok bool) { return getChatModelDetailsGetQuantizationMethodAttributeTypeOk(o.QuantizationMethod) } // HasQuantizationMethod returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) HasQuantizationMethod() bool { _, ok := o.GetQuantizationMethodOk() return ok } // SetQuantizationMethod gets a reference to the given string and assigns it to the QuantizationMethod field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetQuantizationMethod(v ChatModelDetailsGetQuantizationMethodRetType) { setChatModelDetailsGetQuantizationMethodAttributeType(&o.QuantizationMethod, v) } // GetRegion returns the Region field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetRegion() (ret ChatModelDetailsGetRegionRetType) { ret, _ = o.GetRegionOk() return ret @@ -823,16 +992,19 @@ func (o *ChatModelDetails) GetRegion() (ret ChatModelDetailsGetRegionRetType) { // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetRegionOk() (ret ChatModelDetailsGetRegionRetType, ok bool) { return getChatModelDetailsGetRegionAttributeTypeOk(o.Region) } // SetRegion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetRegion(v ChatModelDetailsGetRegionRetType) { setChatModelDetailsGetRegionAttributeType(&o.Region, v) } // GetSize returns the Size field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetSize() (ret ChatModelDetailsGetSizeRetType) { ret, _ = o.GetSizeOk() return ret @@ -840,16 +1012,19 @@ func (o *ChatModelDetails) GetSize() (ret ChatModelDetailsGetSizeRetType) { // GetSizeOk returns a tuple with the Size field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetSizeOk() (ret ChatModelDetailsGetSizeRetType, ok bool) { return getChatModelDetailsGetSizeAttributeTypeOk(o.Size) } // SetSize sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetSize(v ChatModelDetailsGetSizeRetType) { setChatModelDetailsGetSizeAttributeType(&o.Size, v) } // GetSkus returns the Skus field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetSkus() (ret ChatModelDetailsGetSkusRetType) { ret, _ = o.GetSkusOk() return ret @@ -857,16 +1032,19 @@ func (o *ChatModelDetails) GetSkus() (ret ChatModelDetailsGetSkusRetType) { // GetSkusOk returns a tuple with the Skus field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetSkusOk() (ret ChatModelDetailsGetSkusRetType, ok bool) { return getChatModelDetailsGetSkusAttributeTypeOk(o.Skus) } // SetSkus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetSkus(v ChatModelDetailsGetSkusRetType) { setChatModelDetailsGetSkusAttributeType(&o.Skus, v) } // GetTags returns the Tags field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetTags() (ret ChatModelDetailsGetTagsRetType) { ret, _ = o.GetTagsOk() return ret @@ -874,16 +1052,19 @@ func (o *ChatModelDetails) GetTags() (ret ChatModelDetailsGetTagsRetType) { // GetTagsOk returns a tuple with the Tags field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetTagsOk() (ret ChatModelDetailsGetTagsRetType, ok bool) { return getChatModelDetailsGetTagsAttributeTypeOk(o.Tags) } // SetTags sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetTags(v ChatModelDetailsGetTagsRetType) { setChatModelDetailsGetTagsAttributeType(&o.Tags, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetUrl() (ret ChatModelDetailsGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -891,15 +1072,18 @@ func (o *ChatModelDetails) GetUrl() (ret ChatModelDetailsGetUrlRetType) { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) GetUrlOk() (ret ChatModelDetailsGetUrlRetType, ok bool) { return getChatModelDetailsGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ChatModelDetails) SetUrl(v ChatModelDetailsGetUrlRetType) { setChatModelDetailsGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ChatModelDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getChatModelDetailsGetBitsAttributeTypeOk(o.Bits); ok { @@ -944,37 +1128,45 @@ func (o ChatModelDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableChatModelDetails struct { value *ChatModelDetails isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetails) Get() *ChatModelDetails { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetails) Set(val *ChatModelDetails) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetails) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetails) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableChatModelDetails(val *ChatModelDetails) *NullableChatModelDetails { return &NullableChatModelDetails{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableChatModelDetails) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableChatModelDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_create_token_payload.go b/services/modelserving/model_create_token_payload.go index 7b1c066fa..26f1b015b 100644 --- a/services/modelserving/model_create_token_payload.go +++ b/services/modelserving/model_create_token_payload.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateTokenPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateTokenPayloadGetDescriptionAttributeTypeOk(arg CreateTokenPayloadGetDescriptionAttributeType) (ret CreateTokenPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateTokenPayloadGetDescriptionAttributeTypeOk(arg CreateTokenPayloadGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateTokenPayloadGetDescriptionAttributeType(arg *CreateTokenPayloadGetDescriptionAttributeType, val CreateTokenPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type CreateTokenPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateTokenPayloadGetNameAttributeTypeOk(arg CreateTokenPayloadGetNameAttributeType) (ret CreateTokenPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getCreateTokenPayloadGetNameAttributeTypeOk(arg CreateTokenPayloadGetNameAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateTokenPayloadGetNameAttributeType(arg *CreateTokenPayloadGetNameAttributeType, val CreateTokenPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetNameRetType = string /* @@ -64,8 +77,10 @@ type CreateTokenPayloadGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetTtlDurationAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateTokenPayloadGetTtlDurationAttributeTypeOk(arg CreateTokenPayloadGetTtlDurationAttributeType) (ret CreateTokenPayloadGetTtlDurationRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getCreateTokenPayloadGetTtlDurationAttributeTypeOk(arg CreateTokenPayloadGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateTokenPayloadGetTtlDurationAttributeType(arg *CreateTokenPayloadGetTtlDurationAttributeType, val CreateTokenPayloadGetTtlDurationRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetTtlDurationArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayloadGetTtlDurationRetType = string // CreateTokenPayload struct for CreateTokenPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenPayload struct { Description CreateTokenPayloadGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED @@ -89,12 +109,14 @@ type CreateTokenPayload struct { TtlDuration CreateTokenPayloadGetTtlDurationAttributeType `json:"ttlDuration,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateTokenPayload CreateTokenPayload // NewCreateTokenPayload instantiates a new CreateTokenPayload object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateTokenPayload(name CreateTokenPayloadGetNameArgType) *CreateTokenPayload { this := CreateTokenPayload{} setCreateTokenPayloadGetNameAttributeType(&this.Name, name) @@ -104,12 +126,14 @@ func NewCreateTokenPayload(name CreateTokenPayloadGetNameArgType) *CreateTokenPa // NewCreateTokenPayloadWithDefaults instantiates a new CreateTokenPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateTokenPayloadWithDefaults() *CreateTokenPayload { this := CreateTokenPayload{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetDescription() (res CreateTokenPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -117,22 +141,26 @@ func (o *CreateTokenPayload) GetDescription() (res CreateTokenPayloadGetDescript // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetDescriptionOk() (ret CreateTokenPayloadGetDescriptionRetType, ok bool) { return getCreateTokenPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) SetDescription(v CreateTokenPayloadGetDescriptionRetType) { setCreateTokenPayloadGetDescriptionAttributeType(&o.Description, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetName() (ret CreateTokenPayloadGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -140,16 +168,19 @@ func (o *CreateTokenPayload) GetName() (ret CreateTokenPayloadGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetNameOk() (ret CreateTokenPayloadGetNameRetType, ok bool) { return getCreateTokenPayloadGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) SetName(v CreateTokenPayloadGetNameRetType) { setCreateTokenPayloadGetNameAttributeType(&o.Name, v) } // GetTtlDuration returns the TtlDuration field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetTtlDuration() (res CreateTokenPayloadGetTtlDurationRetType) { res, _ = o.GetTtlDurationOk() return @@ -157,21 +188,25 @@ func (o *CreateTokenPayload) GetTtlDuration() (res CreateTokenPayloadGetTtlDurat // GetTtlDurationOk returns a tuple with the TtlDuration field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) GetTtlDurationOk() (ret CreateTokenPayloadGetTtlDurationRetType, ok bool) { return getCreateTokenPayloadGetTtlDurationAttributeTypeOk(o.TtlDuration) } // HasTtlDuration returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) HasTtlDuration() bool { _, ok := o.GetTtlDurationOk() return ok } // SetTtlDuration gets a reference to the given string and assigns it to the TtlDuration field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenPayload) SetTtlDuration(v CreateTokenPayloadGetTtlDurationRetType) { setCreateTokenPayloadGetTtlDurationAttributeType(&o.TtlDuration, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateTokenPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateTokenPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -186,37 +221,45 @@ func (o CreateTokenPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateTokenPayload struct { value *CreateTokenPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenPayload) Get() *CreateTokenPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenPayload) Set(val *CreateTokenPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateTokenPayload(val *CreateTokenPayload) *NullableCreateTokenPayload { return &NullableCreateTokenPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_create_token_response.go b/services/modelserving/model_create_token_response.go index 79ac3643d..75f9d3d71 100644 --- a/services/modelserving/model_create_token_response.go +++ b/services/modelserving/model_create_token_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &CreateTokenResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateTokenResponseGetMessageAttributeTypeOk(arg CreateTokenResponseGetMessageAttributeType) (ret CreateTokenResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getCreateTokenResponseGetMessageAttributeTypeOk(arg CreateTokenResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateTokenResponseGetMessageAttributeType(arg *CreateTokenResponseGetMessageAttributeType, val CreateTokenResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type CreateTokenResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetTokenAttributeType = *TokenCreated + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetTokenArgType = TokenCreated + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponseGetTokenRetType = TokenCreated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getCreateTokenResponseGetTokenAttributeTypeOk(arg CreateTokenResponseGetTokenAttributeType) (ret CreateTokenResponseGetTokenRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getCreateTokenResponseGetTokenAttributeTypeOk(arg CreateTokenResponseGetTok return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setCreateTokenResponseGetTokenAttributeType(arg *CreateTokenResponseGetTokenAttributeType, val CreateTokenResponseGetTokenRetType) { *arg = &val } // CreateTokenResponse struct for CreateTokenResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type CreateTokenResponse struct { Message CreateTokenResponseGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Token CreateTokenResponseGetTokenAttributeType `json:"token" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _CreateTokenResponse CreateTokenResponse // NewCreateTokenResponse instantiates a new CreateTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateTokenResponse(token CreateTokenResponseGetTokenArgType) *CreateTokenResponse { this := CreateTokenResponse{} setCreateTokenResponseGetTokenAttributeType(&this.Token, token) @@ -80,12 +97,14 @@ func NewCreateTokenResponse(token CreateTokenResponseGetTokenArgType) *CreateTok // NewCreateTokenResponseWithDefaults instantiates a new CreateTokenResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewCreateTokenResponseWithDefaults() *CreateTokenResponse { this := CreateTokenResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) GetMessage() (res CreateTokenResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *CreateTokenResponse) GetMessage() (res CreateTokenResponseGetMessageRet // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) GetMessageOk() (ret CreateTokenResponseGetMessageRetType, ok bool) { return getCreateTokenResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) SetMessage(v CreateTokenResponseGetMessageRetType) { setCreateTokenResponseGetMessageAttributeType(&o.Message, v) } // GetToken returns the Token field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) GetToken() (ret CreateTokenResponseGetTokenRetType) { ret, _ = o.GetTokenOk() return ret @@ -116,15 +139,18 @@ func (o *CreateTokenResponse) GetToken() (ret CreateTokenResponseGetTokenRetType // GetTokenOk returns a tuple with the Token field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) GetTokenOk() (ret CreateTokenResponseGetTokenRetType, ok bool) { return getCreateTokenResponseGetTokenAttributeTypeOk(o.Token) } // SetToken sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *CreateTokenResponse) SetToken(v CreateTokenResponseGetTokenRetType) { setCreateTokenResponseGetTokenAttributeType(&o.Token, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o CreateTokenResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getCreateTokenResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o CreateTokenResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableCreateTokenResponse struct { value *CreateTokenResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenResponse) Get() *CreateTokenResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenResponse) Set(val *CreateTokenResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableCreateTokenResponse(val *CreateTokenResponse) *NullableCreateTokenResponse { return &NullableCreateTokenResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableCreateTokenResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableCreateTokenResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_embedding_model_details.go b/services/modelserving/model_embedding_model_details.go index 8dbc9403b..de4241069 100644 --- a/services/modelserving/model_embedding_model_details.go +++ b/services/modelserving/model_embedding_model_details.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -26,22 +27,28 @@ var _ MappedNullable = &EmbeddingModelDetails{} // EmbeddingModelDetailsCategory the model 'EmbeddingModelDetails' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsCategory string // List of Category const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead EMBEDDINGMODELDETAILSCATEGORY_STANDARD EmbeddingModelDetailsCategory = "standard" - EMBEDDINGMODELDETAILSCATEGORY_PLUS EmbeddingModelDetailsCategory = "plus" - EMBEDDINGMODELDETAILSCATEGORY_PREMIUM EmbeddingModelDetailsCategory = "premium" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + EMBEDDINGMODELDETAILSCATEGORY_PLUS EmbeddingModelDetailsCategory = "plus" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + EMBEDDINGMODELDETAILSCATEGORY_PREMIUM EmbeddingModelDetailsCategory = "premium" ) // All allowed values of EmbeddingModelDetails enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedEmbeddingModelDetailsCategoryEnumValues = []EmbeddingModelDetailsCategory{ "standard", "plus", "premium", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *EmbeddingModelDetailsCategory) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -69,6 +76,7 @@ func (v *EmbeddingModelDetailsCategory) UnmarshalJSON(src []byte) error { // NewEmbeddingModelDetailsCategoryFromValue returns a pointer to a valid EmbeddingModelDetailsCategory // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewEmbeddingModelDetailsCategoryFromValue(v EmbeddingModelDetailsCategory) (*EmbeddingModelDetailsCategory, error) { ev := EmbeddingModelDetailsCategory(v) if ev.IsValid() { @@ -79,6 +87,7 @@ func NewEmbeddingModelDetailsCategoryFromValue(v EmbeddingModelDetailsCategory) } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v EmbeddingModelDetailsCategory) IsValid() bool { for _, existing := range AllowedEmbeddingModelDetailsCategoryEnumValues { if existing == v { @@ -89,50 +98,65 @@ func (v EmbeddingModelDetailsCategory) IsValid() bool { } // Ptr returns reference to CategoryCategory value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v EmbeddingModelDetailsCategory) Ptr() *EmbeddingModelDetailsCategory { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableEmbeddingModelDetailsCategory struct { value *EmbeddingModelDetailsCategory isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetailsCategory) Get() *EmbeddingModelDetailsCategory { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetailsCategory) Set(val *EmbeddingModelDetailsCategory) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetailsCategory) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetailsCategory) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableEmbeddingModelDetailsCategory(val *EmbeddingModelDetailsCategory) *NullableEmbeddingModelDetailsCategory { return &NullableEmbeddingModelDetailsCategory{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetailsCategory) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetailsCategory) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetCategoryAttributeType = *EmbeddingModelDetailsCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetCategoryArgType = EmbeddingModelDetailsCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetCategoryRetType = EmbeddingModelDetailsCategory +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetCategoryAttributeTypeOk(arg EmbeddingModelDetailsGetCategoryAttributeType) (ret EmbeddingModelDetailsGetCategoryRetType, ok bool) { if arg == nil { return ret, false @@ -140,6 +164,7 @@ func getEmbeddingModelDetailsGetCategoryAttributeTypeOk(arg EmbeddingModelDetail return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetCategoryAttributeType(arg *EmbeddingModelDetailsGetCategoryAttributeType, val EmbeddingModelDetailsGetCategoryRetType) { *arg = &val } @@ -149,8 +174,10 @@ func setEmbeddingModelDetailsGetCategoryAttributeType(arg *EmbeddingModelDetails */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetDescriptionAttributeTypeOk(arg EmbeddingModelDetailsGetDescriptionAttributeType) (ret EmbeddingModelDetailsGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -158,11 +185,15 @@ func getEmbeddingModelDetailsGetDescriptionAttributeTypeOk(arg EmbeddingModelDet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetDescriptionAttributeType(arg *EmbeddingModelDetailsGetDescriptionAttributeType, val EmbeddingModelDetailsGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDescriptionRetType = string /* @@ -170,8 +201,10 @@ type EmbeddingModelDetailsGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDisplayedNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetDisplayedNameAttributeTypeOk(arg EmbeddingModelDetailsGetDisplayedNameAttributeType) (ret EmbeddingModelDetailsGetDisplayedNameRetType, ok bool) { if arg == nil { return ret, false @@ -179,11 +212,15 @@ func getEmbeddingModelDetailsGetDisplayedNameAttributeTypeOk(arg EmbeddingModelD return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetDisplayedNameAttributeType(arg *EmbeddingModelDetailsGetDisplayedNameAttributeType, val EmbeddingModelDetailsGetDisplayedNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDisplayedNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetDisplayedNameRetType = string /* @@ -191,8 +228,10 @@ type EmbeddingModelDetailsGetDisplayedNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetIdAttributeTypeOk(arg EmbeddingModelDetailsGetIdAttributeType) (ret EmbeddingModelDetailsGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -200,11 +239,15 @@ func getEmbeddingModelDetailsGetIdAttributeTypeOk(arg EmbeddingModelDetailsGetId return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetIdAttributeType(arg *EmbeddingModelDetailsGetIdAttributeType, val EmbeddingModelDetailsGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetIdRetType = string /* @@ -212,8 +255,10 @@ type EmbeddingModelDetailsGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetNameAttributeTypeOk(arg EmbeddingModelDetailsGetNameAttributeType) (ret EmbeddingModelDetailsGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -221,11 +266,15 @@ func getEmbeddingModelDetailsGetNameAttributeTypeOk(arg EmbeddingModelDetailsGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetNameAttributeType(arg *EmbeddingModelDetailsGetNameAttributeType, val EmbeddingModelDetailsGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetNameRetType = string /* @@ -233,10 +282,16 @@ type EmbeddingModelDetailsGetNameRetType = string */ // isLong +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetOutputDimensionAttributeType = *int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetOutputDimensionArgType = int64 + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetOutputDimensionRetType = int64 +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetOutputDimensionAttributeTypeOk(arg EmbeddingModelDetailsGetOutputDimensionAttributeType) (ret EmbeddingModelDetailsGetOutputDimensionRetType, ok bool) { if arg == nil { return ret, false @@ -244,6 +299,7 @@ func getEmbeddingModelDetailsGetOutputDimensionAttributeTypeOk(arg EmbeddingMode return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetOutputDimensionAttributeType(arg *EmbeddingModelDetailsGetOutputDimensionAttributeType, val EmbeddingModelDetailsGetOutputDimensionRetType) { *arg = &val } @@ -253,8 +309,10 @@ func setEmbeddingModelDetailsGetOutputDimensionAttributeType(arg *EmbeddingModel */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetRegionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetRegionAttributeTypeOk(arg EmbeddingModelDetailsGetRegionAttributeType) (ret EmbeddingModelDetailsGetRegionRetType, ok bool) { if arg == nil { return ret, false @@ -262,11 +320,15 @@ func getEmbeddingModelDetailsGetRegionAttributeTypeOk(arg EmbeddingModelDetailsG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetRegionAttributeType(arg *EmbeddingModelDetailsGetRegionAttributeType, val EmbeddingModelDetailsGetRegionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetRegionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetRegionRetType = string /* @@ -274,10 +336,16 @@ type EmbeddingModelDetailsGetRegionRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetSkusAttributeType = *[]SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetSkusArgType = []SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetSkusRetType = []SKU +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetSkusAttributeTypeOk(arg EmbeddingModelDetailsGetSkusAttributeType) (ret EmbeddingModelDetailsGetSkusRetType, ok bool) { if arg == nil { return ret, false @@ -285,6 +353,7 @@ func getEmbeddingModelDetailsGetSkusAttributeTypeOk(arg EmbeddingModelDetailsGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetSkusAttributeType(arg *EmbeddingModelDetailsGetSkusAttributeType, val EmbeddingModelDetailsGetSkusRetType) { *arg = &val } @@ -294,10 +363,16 @@ func setEmbeddingModelDetailsGetSkusAttributeType(arg *EmbeddingModelDetailsGetS */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetTagsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetTagsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetTagsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetTagsAttributeTypeOk(arg EmbeddingModelDetailsGetTagsAttributeType) (ret EmbeddingModelDetailsGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -305,6 +380,7 @@ func getEmbeddingModelDetailsGetTagsAttributeTypeOk(arg EmbeddingModelDetailsGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetTagsAttributeType(arg *EmbeddingModelDetailsGetTagsAttributeType, val EmbeddingModelDetailsGetTagsRetType) { *arg = &val } @@ -314,8 +390,10 @@ func setEmbeddingModelDetailsGetTagsAttributeType(arg *EmbeddingModelDetailsGetT */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getEmbeddingModelDetailsGetUrlAttributeTypeOk(arg EmbeddingModelDetailsGetUrlAttributeType) (ret EmbeddingModelDetailsGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -323,14 +401,19 @@ func getEmbeddingModelDetailsGetUrlAttributeTypeOk(arg EmbeddingModelDetailsGetU return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setEmbeddingModelDetailsGetUrlAttributeType(arg *EmbeddingModelDetailsGetUrlAttributeType, val EmbeddingModelDetailsGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetailsGetUrlRetType = string // EmbeddingModelDetails struct for EmbeddingModelDetails +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type EmbeddingModelDetails struct { // REQUIRED Category EmbeddingModelDetailsGetCategoryAttributeType `json:"category" required:"true"` @@ -356,12 +439,14 @@ type EmbeddingModelDetails struct { Url EmbeddingModelDetailsGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _EmbeddingModelDetails EmbeddingModelDetails // NewEmbeddingModelDetails instantiates a new EmbeddingModelDetails object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewEmbeddingModelDetails(category EmbeddingModelDetailsGetCategoryArgType, description EmbeddingModelDetailsGetDescriptionArgType, displayedName EmbeddingModelDetailsGetDisplayedNameArgType, id EmbeddingModelDetailsGetIdArgType, name EmbeddingModelDetailsGetNameArgType, outputDimension EmbeddingModelDetailsGetOutputDimensionArgType, region EmbeddingModelDetailsGetRegionArgType, skus EmbeddingModelDetailsGetSkusArgType, url EmbeddingModelDetailsGetUrlArgType) *EmbeddingModelDetails { this := EmbeddingModelDetails{} setEmbeddingModelDetailsGetCategoryAttributeType(&this.Category, category) @@ -379,12 +464,14 @@ func NewEmbeddingModelDetails(category EmbeddingModelDetailsGetCategoryArgType, // NewEmbeddingModelDetailsWithDefaults instantiates a new EmbeddingModelDetails object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewEmbeddingModelDetailsWithDefaults() *EmbeddingModelDetails { this := EmbeddingModelDetails{} return &this } // GetCategory returns the Category field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetCategory() (ret EmbeddingModelDetailsGetCategoryRetType) { ret, _ = o.GetCategoryOk() return ret @@ -392,16 +479,19 @@ func (o *EmbeddingModelDetails) GetCategory() (ret EmbeddingModelDetailsGetCateg // GetCategoryOk returns a tuple with the Category field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetCategoryOk() (ret EmbeddingModelDetailsGetCategoryRetType, ok bool) { return getEmbeddingModelDetailsGetCategoryAttributeTypeOk(o.Category) } // SetCategory sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetCategory(v EmbeddingModelDetailsGetCategoryRetType) { setEmbeddingModelDetailsGetCategoryAttributeType(&o.Category, v) } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetDescription() (ret EmbeddingModelDetailsGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -409,16 +499,19 @@ func (o *EmbeddingModelDetails) GetDescription() (ret EmbeddingModelDetailsGetDe // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetDescriptionOk() (ret EmbeddingModelDetailsGetDescriptionRetType, ok bool) { return getEmbeddingModelDetailsGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetDescription(v EmbeddingModelDetailsGetDescriptionRetType) { setEmbeddingModelDetailsGetDescriptionAttributeType(&o.Description, v) } // GetDisplayedName returns the DisplayedName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetDisplayedName() (ret EmbeddingModelDetailsGetDisplayedNameRetType) { ret, _ = o.GetDisplayedNameOk() return ret @@ -426,16 +519,19 @@ func (o *EmbeddingModelDetails) GetDisplayedName() (ret EmbeddingModelDetailsGet // GetDisplayedNameOk returns a tuple with the DisplayedName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetDisplayedNameOk() (ret EmbeddingModelDetailsGetDisplayedNameRetType, ok bool) { return getEmbeddingModelDetailsGetDisplayedNameAttributeTypeOk(o.DisplayedName) } // SetDisplayedName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetDisplayedName(v EmbeddingModelDetailsGetDisplayedNameRetType) { setEmbeddingModelDetailsGetDisplayedNameAttributeType(&o.DisplayedName, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetId() (ret EmbeddingModelDetailsGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -443,16 +539,19 @@ func (o *EmbeddingModelDetails) GetId() (ret EmbeddingModelDetailsGetIdRetType) // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetIdOk() (ret EmbeddingModelDetailsGetIdRetType, ok bool) { return getEmbeddingModelDetailsGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetId(v EmbeddingModelDetailsGetIdRetType) { setEmbeddingModelDetailsGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetName() (ret EmbeddingModelDetailsGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -460,16 +559,19 @@ func (o *EmbeddingModelDetails) GetName() (ret EmbeddingModelDetailsGetNameRetTy // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetNameOk() (ret EmbeddingModelDetailsGetNameRetType, ok bool) { return getEmbeddingModelDetailsGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetName(v EmbeddingModelDetailsGetNameRetType) { setEmbeddingModelDetailsGetNameAttributeType(&o.Name, v) } // GetOutputDimension returns the OutputDimension field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetOutputDimension() (ret EmbeddingModelDetailsGetOutputDimensionRetType) { ret, _ = o.GetOutputDimensionOk() return ret @@ -477,16 +579,19 @@ func (o *EmbeddingModelDetails) GetOutputDimension() (ret EmbeddingModelDetailsG // GetOutputDimensionOk returns a tuple with the OutputDimension field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetOutputDimensionOk() (ret EmbeddingModelDetailsGetOutputDimensionRetType, ok bool) { return getEmbeddingModelDetailsGetOutputDimensionAttributeTypeOk(o.OutputDimension) } // SetOutputDimension sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetOutputDimension(v EmbeddingModelDetailsGetOutputDimensionRetType) { setEmbeddingModelDetailsGetOutputDimensionAttributeType(&o.OutputDimension, v) } // GetRegion returns the Region field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetRegion() (ret EmbeddingModelDetailsGetRegionRetType) { ret, _ = o.GetRegionOk() return ret @@ -494,16 +599,19 @@ func (o *EmbeddingModelDetails) GetRegion() (ret EmbeddingModelDetailsGetRegionR // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetRegionOk() (ret EmbeddingModelDetailsGetRegionRetType, ok bool) { return getEmbeddingModelDetailsGetRegionAttributeTypeOk(o.Region) } // SetRegion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetRegion(v EmbeddingModelDetailsGetRegionRetType) { setEmbeddingModelDetailsGetRegionAttributeType(&o.Region, v) } // GetSkus returns the Skus field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetSkus() (ret EmbeddingModelDetailsGetSkusRetType) { ret, _ = o.GetSkusOk() return ret @@ -511,16 +619,19 @@ func (o *EmbeddingModelDetails) GetSkus() (ret EmbeddingModelDetailsGetSkusRetTy // GetSkusOk returns a tuple with the Skus field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetSkusOk() (ret EmbeddingModelDetailsGetSkusRetType, ok bool) { return getEmbeddingModelDetailsGetSkusAttributeTypeOk(o.Skus) } // SetSkus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetSkus(v EmbeddingModelDetailsGetSkusRetType) { setEmbeddingModelDetailsGetSkusAttributeType(&o.Skus, v) } // GetTags returns the Tags field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetTags() (res EmbeddingModelDetailsGetTagsRetType) { res, _ = o.GetTagsOk() return @@ -528,22 +639,26 @@ func (o *EmbeddingModelDetails) GetTags() (res EmbeddingModelDetailsGetTagsRetTy // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetTagsOk() (ret EmbeddingModelDetailsGetTagsRetType, ok bool) { return getEmbeddingModelDetailsGetTagsAttributeTypeOk(o.Tags) } // HasTags returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) HasTags() bool { _, ok := o.GetTagsOk() return ok } // SetTags gets a reference to the given []string and assigns it to the Tags field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetTags(v EmbeddingModelDetailsGetTagsRetType) { setEmbeddingModelDetailsGetTagsAttributeType(&o.Tags, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetUrl() (ret EmbeddingModelDetailsGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -551,15 +666,18 @@ func (o *EmbeddingModelDetails) GetUrl() (ret EmbeddingModelDetailsGetUrlRetType // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) GetUrlOk() (ret EmbeddingModelDetailsGetUrlRetType, ok bool) { return getEmbeddingModelDetailsGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *EmbeddingModelDetails) SetUrl(v EmbeddingModelDetailsGetUrlRetType) { setEmbeddingModelDetailsGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o EmbeddingModelDetails) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getEmbeddingModelDetailsGetCategoryAttributeTypeOk(o.Category); ok { @@ -595,37 +713,45 @@ func (o EmbeddingModelDetails) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableEmbeddingModelDetails struct { value *EmbeddingModelDetails isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetails) Get() *EmbeddingModelDetails { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetails) Set(val *EmbeddingModelDetails) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetails) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetails) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableEmbeddingModelDetails(val *EmbeddingModelDetails) *NullableEmbeddingModelDetails { return &NullableEmbeddingModelDetails{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableEmbeddingModelDetails) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableEmbeddingModelDetails) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_error_message_response.go b/services/modelserving/model_error_message_response.go index 9189e53e4..cb4747ec0 100644 --- a/services/modelserving/model_error_message_response.go +++ b/services/modelserving/model_error_message_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &ErrorMessageResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetErrorAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorMessageResponseGetErrorAttributeTypeOk(arg ErrorMessageResponseGetErrorAttributeType) (ret ErrorMessageResponseGetErrorRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getErrorMessageResponseGetErrorAttributeTypeOk(arg ErrorMessageResponseGetE return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorMessageResponseGetErrorAttributeType(arg *ErrorMessageResponseGetErrorAttributeType, val ErrorMessageResponseGetErrorRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetErrorArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetErrorRetType = string /* @@ -43,8 +50,10 @@ type ErrorMessageResponseGetErrorRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getErrorMessageResponseGetMessageAttributeTypeOk(arg ErrorMessageResponseGetMessageAttributeType) (ret ErrorMessageResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getErrorMessageResponseGetMessageAttributeTypeOk(arg ErrorMessageResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setErrorMessageResponseGetMessageAttributeType(arg *ErrorMessageResponseGetMessageAttributeType, val ErrorMessageResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponseGetMessageRetType = string // ErrorMessageResponse struct for ErrorMessageResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ErrorMessageResponse struct { Error ErrorMessageResponseGetErrorAttributeType `json:"error,omitempty"` Message ErrorMessageResponseGetMessageAttributeType `json:"message,omitempty"` @@ -69,6 +83,7 @@ type ErrorMessageResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewErrorMessageResponse() *ErrorMessageResponse { this := ErrorMessageResponse{} return &this @@ -77,12 +92,14 @@ func NewErrorMessageResponse() *ErrorMessageResponse { // NewErrorMessageResponseWithDefaults instantiates a new ErrorMessageResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewErrorMessageResponseWithDefaults() *ErrorMessageResponse { this := ErrorMessageResponse{} return &this } // GetError returns the Error field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) GetError() (res ErrorMessageResponseGetErrorRetType) { res, _ = o.GetErrorOk() return @@ -90,22 +107,26 @@ func (o *ErrorMessageResponse) GetError() (res ErrorMessageResponseGetErrorRetTy // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) GetErrorOk() (ret ErrorMessageResponseGetErrorRetType, ok bool) { return getErrorMessageResponseGetErrorAttributeTypeOk(o.Error) } // HasError returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) HasError() bool { _, ok := o.GetErrorOk() return ok } // SetError gets a reference to the given string and assigns it to the Error field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) SetError(v ErrorMessageResponseGetErrorRetType) { setErrorMessageResponseGetErrorAttributeType(&o.Error, v) } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) GetMessage() (res ErrorMessageResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -113,21 +134,25 @@ func (o *ErrorMessageResponse) GetMessage() (res ErrorMessageResponseGetMessageR // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) GetMessageOk() (ret ErrorMessageResponseGetMessageRetType, ok bool) { return getErrorMessageResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ErrorMessageResponse) SetMessage(v ErrorMessageResponseGetMessageRetType) { setErrorMessageResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ErrorMessageResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getErrorMessageResponseGetErrorAttributeTypeOk(o.Error); ok { @@ -139,37 +164,45 @@ func (o ErrorMessageResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableErrorMessageResponse struct { value *ErrorMessageResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableErrorMessageResponse) Get() *ErrorMessageResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableErrorMessageResponse) Set(val *ErrorMessageResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableErrorMessageResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableErrorMessageResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableErrorMessageResponse(val *ErrorMessageResponse) *NullableErrorMessageResponse { return &NullableErrorMessageResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableErrorMessageResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableErrorMessageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_get_chat_model_response.go b/services/modelserving/model_get_chat_model_response.go index 1fdc5efd9..0a614cbec 100644 --- a/services/modelserving/model_get_chat_model_response.go +++ b/services/modelserving/model_get_chat_model_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &GetChatModelResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetChatModelResponseGetMessageAttributeTypeOk(arg GetChatModelResponseGetMessageAttributeType) (ret GetChatModelResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getGetChatModelResponseGetMessageAttributeTypeOk(arg GetChatModelResponseGe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetChatModelResponseGetMessageAttributeType(arg *GetChatModelResponseGetMessageAttributeType, val GetChatModelResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type GetChatModelResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetModelAttributeType = *ChatModelDetails + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetModelArgType = ChatModelDetails + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponseGetModelRetType = ChatModelDetails +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetChatModelResponseGetModelAttributeTypeOk(arg GetChatModelResponseGetModelAttributeType) (ret GetChatModelResponseGetModelRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getGetChatModelResponseGetModelAttributeTypeOk(arg GetChatModelResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetChatModelResponseGetModelAttributeType(arg *GetChatModelResponseGetModelAttributeType, val GetChatModelResponseGetModelRetType) { *arg = &val } // GetChatModelResponse struct for GetChatModelResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetChatModelResponse struct { Message GetChatModelResponseGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Model GetChatModelResponseGetModelAttributeType `json:"model" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetChatModelResponse GetChatModelResponse // NewGetChatModelResponse instantiates a new GetChatModelResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetChatModelResponse(model GetChatModelResponseGetModelArgType) *GetChatModelResponse { this := GetChatModelResponse{} setGetChatModelResponseGetModelAttributeType(&this.Model, model) @@ -80,12 +97,14 @@ func NewGetChatModelResponse(model GetChatModelResponseGetModelArgType) *GetChat // NewGetChatModelResponseWithDefaults instantiates a new GetChatModelResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetChatModelResponseWithDefaults() *GetChatModelResponse { this := GetChatModelResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) GetMessage() (res GetChatModelResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *GetChatModelResponse) GetMessage() (res GetChatModelResponseGetMessageR // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) GetMessageOk() (ret GetChatModelResponseGetMessageRetType, ok bool) { return getGetChatModelResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) SetMessage(v GetChatModelResponseGetMessageRetType) { setGetChatModelResponseGetMessageAttributeType(&o.Message, v) } // GetModel returns the Model field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) GetModel() (ret GetChatModelResponseGetModelRetType) { ret, _ = o.GetModelOk() return ret @@ -116,15 +139,18 @@ func (o *GetChatModelResponse) GetModel() (ret GetChatModelResponseGetModelRetTy // GetModelOk returns a tuple with the Model field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) GetModelOk() (ret GetChatModelResponseGetModelRetType, ok bool) { return getGetChatModelResponseGetModelAttributeTypeOk(o.Model) } // SetModel sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetChatModelResponse) SetModel(v GetChatModelResponseGetModelRetType) { setGetChatModelResponseGetModelAttributeType(&o.Model, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetChatModelResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetChatModelResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o GetChatModelResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetChatModelResponse struct { value *GetChatModelResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetChatModelResponse) Get() *GetChatModelResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetChatModelResponse) Set(val *GetChatModelResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetChatModelResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetChatModelResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetChatModelResponse(val *GetChatModelResponse) *NullableGetChatModelResponse { return &NullableGetChatModelResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetChatModelResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetChatModelResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_get_embeddings_model_resp.go b/services/modelserving/model_get_embeddings_model_resp.go index 2d696c0cb..70e30c6e3 100644 --- a/services/modelserving/model_get_embeddings_model_resp.go +++ b/services/modelserving/model_get_embeddings_model_resp.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &GetEmbeddingsModelResp{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetEmbeddingsModelRespGetMessageAttributeTypeOk(arg GetEmbeddingsModelRespGetMessageAttributeType) (ret GetEmbeddingsModelRespGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getGetEmbeddingsModelRespGetMessageAttributeTypeOk(arg GetEmbeddingsModelRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetEmbeddingsModelRespGetMessageAttributeType(arg *GetEmbeddingsModelRespGetMessageAttributeType, val GetEmbeddingsModelRespGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetMessageRetType = string /* @@ -43,10 +50,16 @@ type GetEmbeddingsModelRespGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetModelAttributeType = *EmbeddingModelDetails + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetModelArgType = EmbeddingModelDetails + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelRespGetModelRetType = EmbeddingModelDetails +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetEmbeddingsModelRespGetModelAttributeTypeOk(arg GetEmbeddingsModelRespGetModelAttributeType) (ret GetEmbeddingsModelRespGetModelRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getGetEmbeddingsModelRespGetModelAttributeTypeOk(arg GetEmbeddingsModelResp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetEmbeddingsModelRespGetModelAttributeType(arg *GetEmbeddingsModelRespGetModelAttributeType, val GetEmbeddingsModelRespGetModelRetType) { *arg = &val } // GetEmbeddingsModelResp struct for GetEmbeddingsModelResp +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetEmbeddingsModelResp struct { Message GetEmbeddingsModelRespGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Model GetEmbeddingsModelRespGetModelAttributeType `json:"model" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetEmbeddingsModelResp GetEmbeddingsModelResp // NewGetEmbeddingsModelResp instantiates a new GetEmbeddingsModelResp object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetEmbeddingsModelResp(model GetEmbeddingsModelRespGetModelArgType) *GetEmbeddingsModelResp { this := GetEmbeddingsModelResp{} setGetEmbeddingsModelRespGetModelAttributeType(&this.Model, model) @@ -80,12 +97,14 @@ func NewGetEmbeddingsModelResp(model GetEmbeddingsModelRespGetModelArgType) *Get // NewGetEmbeddingsModelRespWithDefaults instantiates a new GetEmbeddingsModelResp object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetEmbeddingsModelRespWithDefaults() *GetEmbeddingsModelResp { this := GetEmbeddingsModelResp{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) GetMessage() (res GetEmbeddingsModelRespGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *GetEmbeddingsModelResp) GetMessage() (res GetEmbeddingsModelRespGetMess // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) GetMessageOk() (ret GetEmbeddingsModelRespGetMessageRetType, ok bool) { return getGetEmbeddingsModelRespGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) SetMessage(v GetEmbeddingsModelRespGetMessageRetType) { setGetEmbeddingsModelRespGetMessageAttributeType(&o.Message, v) } // GetModel returns the Model field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) GetModel() (ret GetEmbeddingsModelRespGetModelRetType) { ret, _ = o.GetModelOk() return ret @@ -116,15 +139,18 @@ func (o *GetEmbeddingsModelResp) GetModel() (ret GetEmbeddingsModelRespGetModelR // GetModelOk returns a tuple with the Model field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) GetModelOk() (ret GetEmbeddingsModelRespGetModelRetType, ok bool) { return getGetEmbeddingsModelRespGetModelAttributeTypeOk(o.Model) } // SetModel sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetEmbeddingsModelResp) SetModel(v GetEmbeddingsModelRespGetModelRetType) { setGetEmbeddingsModelRespGetModelAttributeType(&o.Model, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetEmbeddingsModelResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetEmbeddingsModelRespGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o GetEmbeddingsModelResp) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetEmbeddingsModelResp struct { value *GetEmbeddingsModelResp isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetEmbeddingsModelResp) Get() *GetEmbeddingsModelResp { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetEmbeddingsModelResp) Set(val *GetEmbeddingsModelResp) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetEmbeddingsModelResp) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetEmbeddingsModelResp) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetEmbeddingsModelResp(val *GetEmbeddingsModelResp) *NullableGetEmbeddingsModelResp { return &NullableGetEmbeddingsModelResp{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetEmbeddingsModelResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetEmbeddingsModelResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_get_token_response.go b/services/modelserving/model_get_token_response.go index d1ce679f9..c5121877b 100644 --- a/services/modelserving/model_get_token_response.go +++ b/services/modelserving/model_get_token_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &GetTokenResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetTokenResponseGetMessageAttributeTypeOk(arg GetTokenResponseGetMessageAttributeType) (ret GetTokenResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getGetTokenResponseGetMessageAttributeTypeOk(arg GetTokenResponseGetMessage return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetTokenResponseGetMessageAttributeType(arg *GetTokenResponseGetMessageAttributeType, val GetTokenResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type GetTokenResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetTokenAttributeType = *Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetTokenArgType = Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponseGetTokenRetType = Token +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getGetTokenResponseGetTokenAttributeTypeOk(arg GetTokenResponseGetTokenAttributeType) (ret GetTokenResponseGetTokenRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getGetTokenResponseGetTokenAttributeTypeOk(arg GetTokenResponseGetTokenAttr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setGetTokenResponseGetTokenAttributeType(arg *GetTokenResponseGetTokenAttributeType, val GetTokenResponseGetTokenRetType) { *arg = &val } // GetTokenResponse struct for GetTokenResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type GetTokenResponse struct { Message GetTokenResponseGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Token GetTokenResponseGetTokenAttributeType `json:"token" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _GetTokenResponse GetTokenResponse // NewGetTokenResponse instantiates a new GetTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetTokenResponse(token GetTokenResponseGetTokenArgType) *GetTokenResponse { this := GetTokenResponse{} setGetTokenResponseGetTokenAttributeType(&this.Token, token) @@ -80,12 +97,14 @@ func NewGetTokenResponse(token GetTokenResponseGetTokenArgType) *GetTokenRespons // NewGetTokenResponseWithDefaults instantiates a new GetTokenResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewGetTokenResponseWithDefaults() *GetTokenResponse { this := GetTokenResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) GetMessage() (res GetTokenResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *GetTokenResponse) GetMessage() (res GetTokenResponseGetMessageRetType) // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) GetMessageOk() (ret GetTokenResponseGetMessageRetType, ok bool) { return getGetTokenResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) SetMessage(v GetTokenResponseGetMessageRetType) { setGetTokenResponseGetMessageAttributeType(&o.Message, v) } // GetToken returns the Token field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) GetToken() (ret GetTokenResponseGetTokenRetType) { ret, _ = o.GetTokenOk() return ret @@ -116,15 +139,18 @@ func (o *GetTokenResponse) GetToken() (ret GetTokenResponseGetTokenRetType) { // GetTokenOk returns a tuple with the Token field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) GetTokenOk() (ret GetTokenResponseGetTokenRetType, ok bool) { return getGetTokenResponseGetTokenAttributeTypeOk(o.Token) } // SetToken sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *GetTokenResponse) SetToken(v GetTokenResponseGetTokenRetType) { setGetTokenResponseGetTokenAttributeType(&o.Token, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o GetTokenResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getGetTokenResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o GetTokenResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableGetTokenResponse struct { value *GetTokenResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetTokenResponse) Get() *GetTokenResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetTokenResponse) Set(val *GetTokenResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetTokenResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetTokenResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableGetTokenResponse(val *GetTokenResponse) *NullableGetTokenResponse { return &NullableGetTokenResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableGetTokenResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableGetTokenResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_list_models_response.go b/services/modelserving/model_list_models_response.go index 1f990abf9..107e73004 100644 --- a/services/modelserving/model_list_models_response.go +++ b/services/modelserving/model_list_models_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &ListModelsResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListModelsResponseGetMessageAttributeTypeOk(arg ListModelsResponseGetMessageAttributeType) (ret ListModelsResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getListModelsResponseGetMessageAttributeTypeOk(arg ListModelsResponseGetMes return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListModelsResponseGetMessageAttributeType(arg *ListModelsResponseGetMessageAttributeType, val ListModelsResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type ListModelsResponseGetMessageRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetModelsAttributeType = *[]Model + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetModelsArgType = []Model + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponseGetModelsRetType = []Model +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListModelsResponseGetModelsAttributeTypeOk(arg ListModelsResponseGetModelsAttributeType) (ret ListModelsResponseGetModelsRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getListModelsResponseGetModelsAttributeTypeOk(arg ListModelsResponseGetMode return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListModelsResponseGetModelsAttributeType(arg *ListModelsResponseGetModelsAttributeType, val ListModelsResponseGetModelsRetType) { *arg = &val } // ListModelsResponse struct for ListModelsResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListModelsResponse struct { Message ListModelsResponseGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Models ListModelsResponseGetModelsAttributeType `json:"models" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListModelsResponse ListModelsResponse // NewListModelsResponse instantiates a new ListModelsResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListModelsResponse(models ListModelsResponseGetModelsArgType) *ListModelsResponse { this := ListModelsResponse{} setListModelsResponseGetModelsAttributeType(&this.Models, models) @@ -80,12 +97,14 @@ func NewListModelsResponse(models ListModelsResponseGetModelsArgType) *ListModel // NewListModelsResponseWithDefaults instantiates a new ListModelsResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListModelsResponseWithDefaults() *ListModelsResponse { this := ListModelsResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) GetMessage() (res ListModelsResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *ListModelsResponse) GetMessage() (res ListModelsResponseGetMessageRetTy // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) GetMessageOk() (ret ListModelsResponseGetMessageRetType, ok bool) { return getListModelsResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) SetMessage(v ListModelsResponseGetMessageRetType) { setListModelsResponseGetMessageAttributeType(&o.Message, v) } // GetModels returns the Models field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) GetModels() (ret ListModelsResponseGetModelsRetType) { ret, _ = o.GetModelsOk() return ret @@ -116,15 +139,18 @@ func (o *ListModelsResponse) GetModels() (ret ListModelsResponseGetModelsRetType // GetModelsOk returns a tuple with the Models field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) GetModelsOk() (ret ListModelsResponseGetModelsRetType, ok bool) { return getListModelsResponseGetModelsAttributeTypeOk(o.Models) } // SetModels sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListModelsResponse) SetModels(v ListModelsResponseGetModelsRetType) { setListModelsResponseGetModelsAttributeType(&o.Models, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListModelsResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListModelsResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o ListModelsResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListModelsResponse struct { value *ListModelsResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListModelsResponse) Get() *ListModelsResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListModelsResponse) Set(val *ListModelsResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListModelsResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListModelsResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListModelsResponse(val *ListModelsResponse) *NullableListModelsResponse { return &NullableListModelsResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListModelsResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_list_token_resp.go b/services/modelserving/model_list_token_resp.go index 7183df279..ac023707a 100644 --- a/services/modelserving/model_list_token_resp.go +++ b/services/modelserving/model_list_token_resp.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &ListTokenResp{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListTokenRespGetMessageAttributeTypeOk(arg ListTokenRespGetMessageAttributeType) (ret ListTokenRespGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getListTokenRespGetMessageAttributeTypeOk(arg ListTokenRespGetMessageAttrib return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListTokenRespGetMessageAttributeType(arg *ListTokenRespGetMessageAttributeType, val ListTokenRespGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetMessageRetType = string /* @@ -43,10 +50,16 @@ type ListTokenRespGetMessageRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetTokensAttributeType = *[]Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetTokensArgType = []Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenRespGetTokensRetType = []Token +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getListTokenRespGetTokensAttributeTypeOk(arg ListTokenRespGetTokensAttributeType) (ret ListTokenRespGetTokensRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getListTokenRespGetTokensAttributeTypeOk(arg ListTokenRespGetTokensAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setListTokenRespGetTokensAttributeType(arg *ListTokenRespGetTokensAttributeType, val ListTokenRespGetTokensRetType) { *arg = &val } // ListTokenResp struct for ListTokenResp +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ListTokenResp struct { Message ListTokenRespGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Tokens ListTokenRespGetTokensAttributeType `json:"tokens" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _ListTokenResp ListTokenResp // NewListTokenResp instantiates a new ListTokenResp object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListTokenResp(tokens ListTokenRespGetTokensArgType) *ListTokenResp { this := ListTokenResp{} setListTokenRespGetTokensAttributeType(&this.Tokens, tokens) @@ -80,12 +97,14 @@ func NewListTokenResp(tokens ListTokenRespGetTokensArgType) *ListTokenResp { // NewListTokenRespWithDefaults instantiates a new ListTokenResp object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewListTokenRespWithDefaults() *ListTokenResp { this := ListTokenResp{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) GetMessage() (res ListTokenRespGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *ListTokenResp) GetMessage() (res ListTokenRespGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) GetMessageOk() (ret ListTokenRespGetMessageRetType, ok bool) { return getListTokenRespGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) SetMessage(v ListTokenRespGetMessageRetType) { setListTokenRespGetMessageAttributeType(&o.Message, v) } // GetTokens returns the Tokens field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) GetTokens() (ret ListTokenRespGetTokensRetType) { ret, _ = o.GetTokensOk() return ret @@ -116,15 +139,18 @@ func (o *ListTokenResp) GetTokens() (ret ListTokenRespGetTokensRetType) { // GetTokensOk returns a tuple with the Tokens field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) GetTokensOk() (ret ListTokenRespGetTokensRetType, ok bool) { return getListTokenRespGetTokensAttributeTypeOk(o.Tokens) } // SetTokens sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *ListTokenResp) SetTokens(v ListTokenRespGetTokensRetType) { setListTokenRespGetTokensAttributeType(&o.Tokens, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o ListTokenResp) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getListTokenRespGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o ListTokenResp) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableListTokenResp struct { value *ListTokenResp isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListTokenResp) Get() *ListTokenResp { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListTokenResp) Set(val *ListTokenResp) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListTokenResp) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListTokenResp) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableListTokenResp(val *ListTokenResp) *NullableListTokenResp { return &NullableListTokenResp{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableListTokenResp) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableListTokenResp) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_message_response.go b/services/modelserving/model_message_response.go index bc57a96e7..46e1e3348 100644 --- a/services/modelserving/model_message_response.go +++ b/services/modelserving/model_message_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &MessageResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getMessageResponseGetMessageAttributeTypeOk(arg MessageResponseGetMessageAttributeType) (ret MessageResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,14 +34,19 @@ func getMessageResponseGetMessageAttributeTypeOk(arg MessageResponseGetMessageAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setMessageResponseGetMessageAttributeType(arg *MessageResponseGetMessageAttributeType, val MessageResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageResponseGetMessageRetType = string // MessageResponse struct for MessageResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MessageResponse struct { Message MessageResponseGetMessageAttributeType `json:"message,omitempty"` } @@ -47,6 +55,7 @@ type MessageResponse struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMessageResponse() *MessageResponse { this := MessageResponse{} return &this @@ -55,12 +64,14 @@ func NewMessageResponse() *MessageResponse { // NewMessageResponseWithDefaults instantiates a new MessageResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewMessageResponseWithDefaults() *MessageResponse { this := MessageResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MessageResponse) GetMessage() (res MessageResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -68,21 +79,25 @@ func (o *MessageResponse) GetMessage() (res MessageResponseGetMessageRetType) { // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MessageResponse) GetMessageOk() (ret MessageResponseGetMessageRetType, ok bool) { return getMessageResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MessageResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *MessageResponse) SetMessage(v MessageResponseGetMessageRetType) { setMessageResponseGetMessageAttributeType(&o.Message, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o MessageResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getMessageResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -91,37 +106,45 @@ func (o MessageResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableMessageResponse struct { value *MessageResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessageResponse) Get() *MessageResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessageResponse) Set(val *MessageResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessageResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessageResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableMessageResponse(val *MessageResponse) *NullableMessageResponse { return &NullableMessageResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableMessageResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableMessageResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_model.go b/services/modelserving/model_model.go index a45046128..eab42c1d6 100644 --- a/services/modelserving/model_model.go +++ b/services/modelserving/model_model.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -26,22 +27,28 @@ var _ MappedNullable = &Model{} // ModelCategory the model 'Model' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelCategory string // List of Category const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead MODELCATEGORY_STANDARD ModelCategory = "standard" - MODELCATEGORY_PLUS ModelCategory = "plus" - MODELCATEGORY_PREMIUM ModelCategory = "premium" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + MODELCATEGORY_PLUS ModelCategory = "plus" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + MODELCATEGORY_PREMIUM ModelCategory = "premium" ) // All allowed values of Model enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedModelCategoryEnumValues = []ModelCategory{ "standard", "plus", "premium", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ModelCategory) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -69,6 +76,7 @@ func (v *ModelCategory) UnmarshalJSON(src []byte) error { // NewModelCategoryFromValue returns a pointer to a valid ModelCategory // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewModelCategoryFromValue(v ModelCategory) (*ModelCategory, error) { ev := ModelCategory(v) if ev.IsValid() { @@ -79,6 +87,7 @@ func NewModelCategoryFromValue(v ModelCategory) (*ModelCategory, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ModelCategory) IsValid() bool { for _, existing := range AllowedModelCategoryEnumValues { if existing == v { @@ -89,50 +98,65 @@ func (v ModelCategory) IsValid() bool { } // Ptr returns reference to CategoryCategory value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ModelCategory) Ptr() *ModelCategory { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableModelCategory struct { value *ModelCategory isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelCategory) Get() *ModelCategory { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelCategory) Set(val *ModelCategory) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelCategory) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelCategory) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableModelCategory(val *ModelCategory) *NullableModelCategory { return &NullableModelCategory{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelCategory) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelCategory) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetCategoryAttributeType = *ModelCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetCategoryArgType = ModelCategory + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetCategoryRetType = ModelCategory +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetCategoryAttributeTypeOk(arg ModelGetCategoryAttributeType) (ret ModelGetCategoryRetType, ok bool) { if arg == nil { return ret, false @@ -140,6 +164,7 @@ func getModelGetCategoryAttributeTypeOk(arg ModelGetCategoryAttributeType) (ret return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetCategoryAttributeType(arg *ModelGetCategoryAttributeType, val ModelGetCategoryRetType) { *arg = &val } @@ -149,8 +174,10 @@ func setModelGetCategoryAttributeType(arg *ModelGetCategoryAttributeType, val Mo */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetDescriptionAttributeTypeOk(arg ModelGetDescriptionAttributeType) (ret ModelGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -158,11 +185,15 @@ func getModelGetDescriptionAttributeTypeOk(arg ModelGetDescriptionAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetDescriptionAttributeType(arg *ModelGetDescriptionAttributeType, val ModelGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDescriptionRetType = string /* @@ -170,8 +201,10 @@ type ModelGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDisplayedNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetDisplayedNameAttributeTypeOk(arg ModelGetDisplayedNameAttributeType) (ret ModelGetDisplayedNameRetType, ok bool) { if arg == nil { return ret, false @@ -179,11 +212,15 @@ func getModelGetDisplayedNameAttributeTypeOk(arg ModelGetDisplayedNameAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetDisplayedNameAttributeType(arg *ModelGetDisplayedNameAttributeType, val ModelGetDisplayedNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDisplayedNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetDisplayedNameRetType = string /* @@ -191,8 +228,10 @@ type ModelGetDisplayedNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetIdAttributeTypeOk(arg ModelGetIdAttributeType) (ret ModelGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -200,11 +239,15 @@ func getModelGetIdAttributeTypeOk(arg ModelGetIdAttributeType) (ret ModelGetIdRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetIdAttributeType(arg *ModelGetIdAttributeType, val ModelGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetIdRetType = string /* @@ -212,8 +255,10 @@ type ModelGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetNameAttributeTypeOk(arg ModelGetNameAttributeType) (ret ModelGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -221,11 +266,15 @@ func getModelGetNameAttributeTypeOk(arg ModelGetNameAttributeType) (ret ModelGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetNameAttributeType(arg *ModelGetNameAttributeType, val ModelGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetNameRetType = string /* @@ -233,8 +282,10 @@ type ModelGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetRegionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetRegionAttributeTypeOk(arg ModelGetRegionAttributeType) (ret ModelGetRegionRetType, ok bool) { if arg == nil { return ret, false @@ -242,11 +293,15 @@ func getModelGetRegionAttributeTypeOk(arg ModelGetRegionAttributeType) (ret Mode return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetRegionAttributeType(arg *ModelGetRegionAttributeType, val ModelGetRegionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetRegionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetRegionRetType = string /* @@ -254,10 +309,16 @@ type ModelGetRegionRetType = string */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetSkusAttributeType = *[]SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetSkusArgType = []SKU + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetSkusRetType = []SKU +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetSkusAttributeTypeOk(arg ModelGetSkusAttributeType) (ret ModelGetSkusRetType, ok bool) { if arg == nil { return ret, false @@ -265,6 +326,7 @@ func getModelGetSkusAttributeTypeOk(arg ModelGetSkusAttributeType) (ret ModelGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetSkusAttributeType(arg *ModelGetSkusAttributeType, val ModelGetSkusRetType) { *arg = &val } @@ -274,10 +336,16 @@ func setModelGetSkusAttributeType(arg *ModelGetSkusAttributeType, val ModelGetSk */ // isArray +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTagsAttributeType = *[]string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTagsArgType = []string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTagsRetType = []string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetTagsAttributeTypeOk(arg ModelGetTagsAttributeType) (ret ModelGetTagsRetType, ok bool) { if arg == nil { return ret, false @@ -285,6 +353,7 @@ func getModelGetTagsAttributeTypeOk(arg ModelGetTagsAttributeType) (ret ModelGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetTagsAttributeType(arg *ModelGetTagsAttributeType, val ModelGetTagsRetType) { *arg = &val } @@ -297,17 +366,23 @@ func setModelGetTagsAttributeType(arg *ModelGetTagsAttributeType, val ModelGetTa // ModelTypes the model 'Model' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelTypes string // List of Type const ( - MODELTYPE_CHAT ModelTypes = "chat" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + MODELTYPE_CHAT ModelTypes = "chat" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead MODELTYPE_EMBEDDING ModelTypes = "embedding" - MODELTYPE_AUDIO ModelTypes = "audio" - MODELTYPE_IMAGE ModelTypes = "image" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + MODELTYPE_AUDIO ModelTypes = "audio" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + MODELTYPE_IMAGE ModelTypes = "image" ) // All allowed values of Model enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedModelTypesEnumValues = []ModelTypes{ "chat", "embedding", @@ -315,6 +390,7 @@ var AllowedModelTypesEnumValues = []ModelTypes{ "image", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *ModelTypes) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -342,6 +418,7 @@ func (v *ModelTypes) UnmarshalJSON(src []byte) error { // NewModelTypesFromValue returns a pointer to a valid ModelTypes // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewModelTypesFromValue(v ModelTypes) (*ModelTypes, error) { ev := ModelTypes(v) if ev.IsValid() { @@ -352,6 +429,7 @@ func NewModelTypesFromValue(v ModelTypes) (*ModelTypes, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ModelTypes) IsValid() bool { for _, existing := range AllowedModelTypesEnumValues { if existing == v { @@ -362,50 +440,65 @@ func (v ModelTypes) IsValid() bool { } // Ptr returns reference to TypeTypes value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v ModelTypes) Ptr() *ModelTypes { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableModelTypes struct { value *ModelTypes isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelTypes) Get() *ModelTypes { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelTypes) Set(val *ModelTypes) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelTypes) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelTypes) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableModelTypes(val *ModelTypes) *NullableModelTypes { return &NullableModelTypes{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModelTypes) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModelTypes) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTypeAttributeType = *ModelTypes + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTypeArgType = ModelTypes + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetTypeRetType = ModelTypes +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetTypeAttributeTypeOk(arg ModelGetTypeAttributeType) (ret ModelGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -413,6 +506,7 @@ func getModelGetTypeAttributeTypeOk(arg ModelGetTypeAttributeType) (ret ModelGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetTypeAttributeType(arg *ModelGetTypeAttributeType, val ModelGetTypeRetType) { *arg = &val } @@ -422,8 +516,10 @@ func setModelGetTypeAttributeType(arg *ModelGetTypeAttributeType, val ModelGetTy */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetUrlAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getModelGetUrlAttributeTypeOk(arg ModelGetUrlAttributeType) (ret ModelGetUrlRetType, ok bool) { if arg == nil { return ret, false @@ -431,14 +527,19 @@ func getModelGetUrlAttributeTypeOk(arg ModelGetUrlAttributeType) (ret ModelGetUr return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setModelGetUrlAttributeType(arg *ModelGetUrlAttributeType, val ModelGetUrlRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetUrlArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type ModelGetUrlRetType = string // Model struct for Model +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Model struct { // REQUIRED Category ModelGetCategoryAttributeType `json:"category" required:"true"` @@ -464,12 +565,14 @@ type Model struct { Url ModelGetUrlAttributeType `json:"url" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Model Model // NewModel instantiates a new Model object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewModel(category ModelGetCategoryArgType, description ModelGetDescriptionArgType, displayedName ModelGetDisplayedNameArgType, id ModelGetIdArgType, name ModelGetNameArgType, region ModelGetRegionArgType, skus ModelGetSkusArgType, types ModelGetTypeArgType, url ModelGetUrlArgType) *Model { this := Model{} setModelGetCategoryAttributeType(&this.Category, category) @@ -487,12 +590,14 @@ func NewModel(category ModelGetCategoryArgType, description ModelGetDescriptionA // NewModelWithDefaults instantiates a new Model object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewModelWithDefaults() *Model { this := Model{} return &this } // GetCategory returns the Category field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetCategory() (ret ModelGetCategoryRetType) { ret, _ = o.GetCategoryOk() return ret @@ -500,16 +605,19 @@ func (o *Model) GetCategory() (ret ModelGetCategoryRetType) { // GetCategoryOk returns a tuple with the Category field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetCategoryOk() (ret ModelGetCategoryRetType, ok bool) { return getModelGetCategoryAttributeTypeOk(o.Category) } // SetCategory sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetCategory(v ModelGetCategoryRetType) { setModelGetCategoryAttributeType(&o.Category, v) } // GetDescription returns the Description field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetDescription() (ret ModelGetDescriptionRetType) { ret, _ = o.GetDescriptionOk() return ret @@ -517,16 +625,19 @@ func (o *Model) GetDescription() (ret ModelGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetDescriptionOk() (ret ModelGetDescriptionRetType, ok bool) { return getModelGetDescriptionAttributeTypeOk(o.Description) } // SetDescription sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetDescription(v ModelGetDescriptionRetType) { setModelGetDescriptionAttributeType(&o.Description, v) } // GetDisplayedName returns the DisplayedName field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetDisplayedName() (ret ModelGetDisplayedNameRetType) { ret, _ = o.GetDisplayedNameOk() return ret @@ -534,16 +645,19 @@ func (o *Model) GetDisplayedName() (ret ModelGetDisplayedNameRetType) { // GetDisplayedNameOk returns a tuple with the DisplayedName field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetDisplayedNameOk() (ret ModelGetDisplayedNameRetType, ok bool) { return getModelGetDisplayedNameAttributeTypeOk(o.DisplayedName) } // SetDisplayedName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetDisplayedName(v ModelGetDisplayedNameRetType) { setModelGetDisplayedNameAttributeType(&o.DisplayedName, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetId() (ret ModelGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -551,16 +665,19 @@ func (o *Model) GetId() (ret ModelGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetIdOk() (ret ModelGetIdRetType, ok bool) { return getModelGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetId(v ModelGetIdRetType) { setModelGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetName() (ret ModelGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -568,16 +685,19 @@ func (o *Model) GetName() (ret ModelGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetNameOk() (ret ModelGetNameRetType, ok bool) { return getModelGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetName(v ModelGetNameRetType) { setModelGetNameAttributeType(&o.Name, v) } // GetRegion returns the Region field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetRegion() (ret ModelGetRegionRetType) { ret, _ = o.GetRegionOk() return ret @@ -585,16 +705,19 @@ func (o *Model) GetRegion() (ret ModelGetRegionRetType) { // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetRegionOk() (ret ModelGetRegionRetType, ok bool) { return getModelGetRegionAttributeTypeOk(o.Region) } // SetRegion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetRegion(v ModelGetRegionRetType) { setModelGetRegionAttributeType(&o.Region, v) } // GetSkus returns the Skus field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetSkus() (ret ModelGetSkusRetType) { ret, _ = o.GetSkusOk() return ret @@ -602,16 +725,19 @@ func (o *Model) GetSkus() (ret ModelGetSkusRetType) { // GetSkusOk returns a tuple with the Skus field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetSkusOk() (ret ModelGetSkusRetType, ok bool) { return getModelGetSkusAttributeTypeOk(o.Skus) } // SetSkus sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetSkus(v ModelGetSkusRetType) { setModelGetSkusAttributeType(&o.Skus, v) } // GetTags returns the Tags field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetTags() (res ModelGetTagsRetType) { res, _ = o.GetTagsOk() return @@ -619,22 +745,26 @@ func (o *Model) GetTags() (res ModelGetTagsRetType) { // GetTagsOk returns a tuple with the Tags field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetTagsOk() (ret ModelGetTagsRetType, ok bool) { return getModelGetTagsAttributeTypeOk(o.Tags) } // HasTags returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) HasTags() bool { _, ok := o.GetTagsOk() return ok } // SetTags gets a reference to the given []string and assigns it to the Tags field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetTags(v ModelGetTagsRetType) { setModelGetTagsAttributeType(&o.Tags, v) } // GetType returns the Type field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetType() (ret ModelGetTypeRetType) { ret, _ = o.GetTypeOk() return ret @@ -642,16 +772,19 @@ func (o *Model) GetType() (ret ModelGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetTypeOk() (ret ModelGetTypeRetType, ok bool) { return getModelGetTypeAttributeTypeOk(o.Type) } // SetType sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetType(v ModelGetTypeRetType) { setModelGetTypeAttributeType(&o.Type, v) } // GetUrl returns the Url field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetUrl() (ret ModelGetUrlRetType) { ret, _ = o.GetUrlOk() return ret @@ -659,15 +792,18 @@ func (o *Model) GetUrl() (ret ModelGetUrlRetType) { // GetUrlOk returns a tuple with the Url field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) GetUrlOk() (ret ModelGetUrlRetType, ok bool) { return getModelGetUrlAttributeTypeOk(o.Url) } // SetUrl sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Model) SetUrl(v ModelGetUrlRetType) { setModelGetUrlAttributeType(&o.Url, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Model) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getModelGetCategoryAttributeTypeOk(o.Category); ok { @@ -703,37 +839,45 @@ func (o Model) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableModel struct { value *Model isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModel) Get() *Model { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModel) Set(val *Model) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModel) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModel) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableModel(val *Model) *NullableModel { return &NullableModel{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableModel) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableModel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_partial_update_token_payload.go b/services/modelserving/model_partial_update_token_payload.go index 036d95d5d..46045bd96 100644 --- a/services/modelserving/model_partial_update_token_payload.go +++ b/services/modelserving/model_partial_update_token_payload.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &PartialUpdateTokenPayload{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateTokenPayloadGetDescriptionAttributeTypeOk(arg PartialUpdateTokenPayloadGetDescriptionAttributeType) (ret PartialUpdateTokenPayloadGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getPartialUpdateTokenPayloadGetDescriptionAttributeTypeOk(arg PartialUpdate return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateTokenPayloadGetDescriptionAttributeType(arg *PartialUpdateTokenPayloadGetDescriptionAttributeType, val PartialUpdateTokenPayloadGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type PartialUpdateTokenPayloadGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getPartialUpdateTokenPayloadGetNameAttributeTypeOk(arg PartialUpdateTokenPayloadGetNameAttributeType) (ret PartialUpdateTokenPayloadGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -52,14 +61,19 @@ func getPartialUpdateTokenPayloadGetNameAttributeTypeOk(arg PartialUpdateTokenPa return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setPartialUpdateTokenPayloadGetNameAttributeType(arg *PartialUpdateTokenPayloadGetNameAttributeType, val PartialUpdateTokenPayloadGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayloadGetNameRetType = string // PartialUpdateTokenPayload struct for PartialUpdateTokenPayload +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type PartialUpdateTokenPayload struct { Description PartialUpdateTokenPayloadGetDescriptionAttributeType `json:"description,omitempty"` Name PartialUpdateTokenPayloadGetNameAttributeType `json:"name,omitempty"` @@ -69,6 +83,7 @@ type PartialUpdateTokenPayload struct { // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateTokenPayload() *PartialUpdateTokenPayload { this := PartialUpdateTokenPayload{} return &this @@ -77,12 +92,14 @@ func NewPartialUpdateTokenPayload() *PartialUpdateTokenPayload { // NewPartialUpdateTokenPayloadWithDefaults instantiates a new PartialUpdateTokenPayload object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewPartialUpdateTokenPayloadWithDefaults() *PartialUpdateTokenPayload { this := PartialUpdateTokenPayload{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) GetDescription() (res PartialUpdateTokenPayloadGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -90,22 +107,26 @@ func (o *PartialUpdateTokenPayload) GetDescription() (res PartialUpdateTokenPayl // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) GetDescriptionOk() (ret PartialUpdateTokenPayloadGetDescriptionRetType, ok bool) { return getPartialUpdateTokenPayloadGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) SetDescription(v PartialUpdateTokenPayloadGetDescriptionRetType) { setPartialUpdateTokenPayloadGetDescriptionAttributeType(&o.Description, v) } // GetName returns the Name field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) GetName() (res PartialUpdateTokenPayloadGetNameRetType) { res, _ = o.GetNameOk() return @@ -113,21 +134,25 @@ func (o *PartialUpdateTokenPayload) GetName() (res PartialUpdateTokenPayloadGetN // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) GetNameOk() (ret PartialUpdateTokenPayloadGetNameRetType, ok bool) { return getPartialUpdateTokenPayloadGetNameAttributeTypeOk(o.Name) } // HasName returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) HasName() bool { _, ok := o.GetNameOk() return ok } // SetName gets a reference to the given string and assigns it to the Name field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *PartialUpdateTokenPayload) SetName(v PartialUpdateTokenPayloadGetNameRetType) { setPartialUpdateTokenPayloadGetNameAttributeType(&o.Name, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o PartialUpdateTokenPayload) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getPartialUpdateTokenPayloadGetDescriptionAttributeTypeOk(o.Description); ok { @@ -139,37 +164,45 @@ func (o PartialUpdateTokenPayload) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullablePartialUpdateTokenPayload struct { value *PartialUpdateTokenPayload isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateTokenPayload) Get() *PartialUpdateTokenPayload { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateTokenPayload) Set(val *PartialUpdateTokenPayload) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateTokenPayload) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateTokenPayload) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullablePartialUpdateTokenPayload(val *PartialUpdateTokenPayload) *NullablePartialUpdateTokenPayload { return &NullablePartialUpdateTokenPayload{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullablePartialUpdateTokenPayload) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullablePartialUpdateTokenPayload) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_sku.go b/services/modelserving/model_sku.go index 7ff168a90..147725979 100644 --- a/services/modelserving/model_sku.go +++ b/services/modelserving/model_sku.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &SKU{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getSKUGetDescriptionAttributeTypeOk(arg SKUGetDescriptionAttributeType) (ret SKUGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getSKUGetDescriptionAttributeTypeOk(arg SKUGetDescriptionAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setSKUGetDescriptionAttributeType(arg *SKUGetDescriptionAttributeType, val SKUGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetDescriptionRetType = string /* @@ -43,8 +50,10 @@ type SKUGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getSKUGetIdAttributeTypeOk(arg SKUGetIdAttributeType) (ret SKUGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -52,11 +61,15 @@ func getSKUGetIdAttributeTypeOk(arg SKUGetIdAttributeType) (ret SKUGetIdRetType, return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setSKUGetIdAttributeType(arg *SKUGetIdAttributeType, val SKUGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetIdRetType = string /* @@ -64,8 +77,10 @@ type SKUGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetTypeAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getSKUGetTypeAttributeTypeOk(arg SKUGetTypeAttributeType) (ret SKUGetTypeRetType, ok bool) { if arg == nil { return ret, false @@ -73,14 +88,19 @@ func getSKUGetTypeAttributeTypeOk(arg SKUGetTypeAttributeType) (ret SKUGetTypeRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setSKUGetTypeAttributeType(arg *SKUGetTypeAttributeType, val SKUGetTypeRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetTypeArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKUGetTypeRetType = string // SKU struct for SKU +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type SKU struct { Description SKUGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED @@ -88,12 +108,14 @@ type SKU struct { Type SKUGetTypeAttributeType `json:"type,omitempty"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _SKU SKU // NewSKU instantiates a new SKU object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewSKU(id SKUGetIdArgType) *SKU { this := SKU{} setSKUGetIdAttributeType(&this.Id, id) @@ -103,12 +125,14 @@ func NewSKU(id SKUGetIdArgType) *SKU { // NewSKUWithDefaults instantiates a new SKU object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewSKUWithDefaults() *SKU { this := SKU{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetDescription() (res SKUGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -116,22 +140,26 @@ func (o *SKU) GetDescription() (res SKUGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetDescriptionOk() (ret SKUGetDescriptionRetType, ok bool) { return getSKUGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) SetDescription(v SKUGetDescriptionRetType) { setSKUGetDescriptionAttributeType(&o.Description, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetId() (ret SKUGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -139,16 +167,19 @@ func (o *SKU) GetId() (ret SKUGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetIdOk() (ret SKUGetIdRetType, ok bool) { return getSKUGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) SetId(v SKUGetIdRetType) { setSKUGetIdAttributeType(&o.Id, v) } // GetType returns the Type field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetType() (res SKUGetTypeRetType) { res, _ = o.GetTypeOk() return @@ -156,21 +187,25 @@ func (o *SKU) GetType() (res SKUGetTypeRetType) { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) GetTypeOk() (ret SKUGetTypeRetType, ok bool) { return getSKUGetTypeAttributeTypeOk(o.Type) } // HasType returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) HasType() bool { _, ok := o.GetTypeOk() return ok } // SetType gets a reference to the given string and assigns it to the Type field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *SKU) SetType(v SKUGetTypeRetType) { setSKUGetTypeAttributeType(&o.Type, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o SKU) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getSKUGetDescriptionAttributeTypeOk(o.Description); ok { @@ -185,37 +220,45 @@ func (o SKU) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableSKU struct { value *SKU isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSKU) Get() *SKU { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSKU) Set(val *SKU) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSKU) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSKU) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableSKU(val *SKU) *NullableSKU { return &NullableSKU{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableSKU) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableSKU) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_token.go b/services/modelserving/model_token.go index 4c56febed..16caffe8f 100644 --- a/services/modelserving/model_token.go +++ b/services/modelserving/model_token.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -24,8 +25,10 @@ var _ MappedNullable = &Token{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetDescriptionAttributeTypeOk(arg TokenGetDescriptionAttributeType) (ret TokenGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +36,15 @@ func getTokenGetDescriptionAttributeTypeOk(arg TokenGetDescriptionAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetDescriptionAttributeType(arg *TokenGetDescriptionAttributeType, val TokenGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetDescriptionRetType = string /* @@ -45,8 +52,10 @@ type TokenGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetIdAttributeTypeOk(arg TokenGetIdAttributeType) (ret TokenGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +63,15 @@ func getTokenGetIdAttributeTypeOk(arg TokenGetIdAttributeType) (ret TokenGetIdRe return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetIdAttributeType(arg *TokenGetIdAttributeType, val TokenGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetIdRetType = string /* @@ -66,8 +79,10 @@ type TokenGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetNameAttributeTypeOk(arg TokenGetNameAttributeType) (ret TokenGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +90,15 @@ func getTokenGetNameAttributeTypeOk(arg TokenGetNameAttributeType) (ret TokenGet return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetNameAttributeType(arg *TokenGetNameAttributeType, val TokenGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetNameRetType = string /* @@ -87,8 +106,10 @@ type TokenGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetRegionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetRegionAttributeTypeOk(arg TokenGetRegionAttributeType) (ret TokenGetRegionRetType, ok bool) { if arg == nil { return ret, false @@ -96,11 +117,15 @@ func getTokenGetRegionAttributeTypeOk(arg TokenGetRegionAttributeType) (ret Toke return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetRegionAttributeType(arg *TokenGetRegionAttributeType, val TokenGetRegionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetRegionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetRegionRetType = string /* @@ -111,17 +136,23 @@ type TokenGetRegionRetType = string // TokenState the model 'Token' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead TOKENSTATE_CREATING TokenState = "creating" - TOKENSTATE_ACTIVE TokenState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + TOKENSTATE_ACTIVE TokenState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead TOKENSTATE_DELETING TokenState = "deleting" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead TOKENSTATE_INACTIVE TokenState = "inactive" ) // All allowed values of Token enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedTokenStateEnumValues = []TokenState{ "creating", "active", @@ -129,6 +160,7 @@ var AllowedTokenStateEnumValues = []TokenState{ "inactive", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *TokenState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -156,6 +188,7 @@ func (v *TokenState) UnmarshalJSON(src []byte) error { // NewTokenStateFromValue returns a pointer to a valid TokenState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTokenStateFromValue(v TokenState) (*TokenState, error) { ev := TokenState(v) if ev.IsValid() { @@ -166,6 +199,7 @@ func NewTokenStateFromValue(v TokenState) (*TokenState, error) { } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v TokenState) IsValid() bool { for _, existing := range AllowedTokenStateEnumValues { if existing == v { @@ -176,50 +210,65 @@ func (v TokenState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v TokenState) Ptr() *TokenState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTokenState struct { value *TokenState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenState) Get() *TokenState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenState) Set(val *TokenState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTokenState(val *TokenState) *NullableTokenState { return &NullableTokenState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetStateAttributeType = *TokenState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetStateArgType = TokenState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetStateRetType = TokenState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetStateAttributeTypeOk(arg TokenGetStateAttributeType) (ret TokenGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -227,6 +276,7 @@ func getTokenGetStateAttributeTypeOk(arg TokenGetStateAttributeType) (ret TokenG return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetStateAttributeType(arg *TokenGetStateAttributeType, val TokenGetStateRetType) { *arg = &val } @@ -236,10 +286,16 @@ func setTokenGetStateAttributeType(arg *TokenGetStateAttributeType, val TokenGet */ // isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetValidUntilAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetValidUntilArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenGetValidUntilRetType = time.Time +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenGetValidUntilAttributeTypeOk(arg TokenGetValidUntilAttributeType) (ret TokenGetValidUntilRetType, ok bool) { if arg == nil { return ret, false @@ -247,11 +303,13 @@ func getTokenGetValidUntilAttributeTypeOk(arg TokenGetValidUntilAttributeType) ( return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenGetValidUntilAttributeType(arg *TokenGetValidUntilAttributeType, val TokenGetValidUntilRetType) { *arg = &val } // Token struct for Token +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type Token struct { Description TokenGetDescriptionAttributeType `json:"description,omitempty"` // REQUIRED @@ -266,12 +324,14 @@ type Token struct { ValidUntil TokenGetValidUntilAttributeType `json:"validUntil" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _Token Token // NewToken instantiates a new Token object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewToken(id TokenGetIdArgType, name TokenGetNameArgType, region TokenGetRegionArgType, state TokenGetStateArgType, validUntil TokenGetValidUntilArgType) *Token { this := Token{} setTokenGetIdAttributeType(&this.Id, id) @@ -285,12 +345,14 @@ func NewToken(id TokenGetIdArgType, name TokenGetNameArgType, region TokenGetReg // NewTokenWithDefaults instantiates a new Token object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTokenWithDefaults() *Token { this := Token{} return &this } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetDescription() (res TokenGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -298,22 +360,26 @@ func (o *Token) GetDescription() (res TokenGetDescriptionRetType) { // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetDescriptionOk() (ret TokenGetDescriptionRetType, ok bool) { return getTokenGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetDescription(v TokenGetDescriptionRetType) { setTokenGetDescriptionAttributeType(&o.Description, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetId() (ret TokenGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -321,16 +387,19 @@ func (o *Token) GetId() (ret TokenGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetIdOk() (ret TokenGetIdRetType, ok bool) { return getTokenGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetId(v TokenGetIdRetType) { setTokenGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetName() (ret TokenGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -338,16 +407,19 @@ func (o *Token) GetName() (ret TokenGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetNameOk() (ret TokenGetNameRetType, ok bool) { return getTokenGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetName(v TokenGetNameRetType) { setTokenGetNameAttributeType(&o.Name, v) } // GetRegion returns the Region field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetRegion() (ret TokenGetRegionRetType) { ret, _ = o.GetRegionOk() return ret @@ -355,16 +427,19 @@ func (o *Token) GetRegion() (ret TokenGetRegionRetType) { // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetRegionOk() (ret TokenGetRegionRetType, ok bool) { return getTokenGetRegionAttributeTypeOk(o.Region) } // SetRegion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetRegion(v TokenGetRegionRetType) { setTokenGetRegionAttributeType(&o.Region, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetState() (ret TokenGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -372,16 +447,19 @@ func (o *Token) GetState() (ret TokenGetStateRetType) { // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetStateOk() (ret TokenGetStateRetType, ok bool) { return getTokenGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetState(v TokenGetStateRetType) { setTokenGetStateAttributeType(&o.State, v) } // GetValidUntil returns the ValidUntil field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetValidUntil() (ret TokenGetValidUntilRetType) { ret, _ = o.GetValidUntilOk() return ret @@ -389,15 +467,18 @@ func (o *Token) GetValidUntil() (ret TokenGetValidUntilRetType) { // GetValidUntilOk returns a tuple with the ValidUntil field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) GetValidUntilOk() (ret TokenGetValidUntilRetType, ok bool) { return getTokenGetValidUntilAttributeTypeOk(o.ValidUntil) } // SetValidUntil sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *Token) SetValidUntil(v TokenGetValidUntilRetType) { setTokenGetValidUntilAttributeType(&o.ValidUntil, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTokenGetDescriptionAttributeTypeOk(o.Description); ok { @@ -421,37 +502,45 @@ func (o Token) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableToken struct { value *Token isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableToken) Get() *Token { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableToken) Set(val *Token) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableToken) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableToken) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableToken(val *Token) *NullableToken { return &NullableToken{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableToken) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableToken) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_token_created.go b/services/modelserving/model_token_created.go index a600c36b2..fb614050e 100644 --- a/services/modelserving/model_token_created.go +++ b/services/modelserving/model_token_created.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -24,8 +25,10 @@ var _ MappedNullable = &TokenCreated{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetContentAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetContentAttributeTypeOk(arg TokenCreatedGetContentAttributeType) (ret TokenCreatedGetContentRetType, ok bool) { if arg == nil { return ret, false @@ -33,11 +36,15 @@ func getTokenCreatedGetContentAttributeTypeOk(arg TokenCreatedGetContentAttribut return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetContentAttributeType(arg *TokenCreatedGetContentAttributeType, val TokenCreatedGetContentRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetContentArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetContentRetType = string /* @@ -45,8 +52,10 @@ type TokenCreatedGetContentRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetDescriptionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetDescriptionAttributeTypeOk(arg TokenCreatedGetDescriptionAttributeType) (ret TokenCreatedGetDescriptionRetType, ok bool) { if arg == nil { return ret, false @@ -54,11 +63,15 @@ func getTokenCreatedGetDescriptionAttributeTypeOk(arg TokenCreatedGetDescription return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetDescriptionAttributeType(arg *TokenCreatedGetDescriptionAttributeType, val TokenCreatedGetDescriptionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetDescriptionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetDescriptionRetType = string /* @@ -66,8 +79,10 @@ type TokenCreatedGetDescriptionRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetIdAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetIdAttributeTypeOk(arg TokenCreatedGetIdAttributeType) (ret TokenCreatedGetIdRetType, ok bool) { if arg == nil { return ret, false @@ -75,11 +90,15 @@ func getTokenCreatedGetIdAttributeTypeOk(arg TokenCreatedGetIdAttributeType) (re return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetIdAttributeType(arg *TokenCreatedGetIdAttributeType, val TokenCreatedGetIdRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetIdArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetIdRetType = string /* @@ -87,8 +106,10 @@ type TokenCreatedGetIdRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetNameAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetNameAttributeTypeOk(arg TokenCreatedGetNameAttributeType) (ret TokenCreatedGetNameRetType, ok bool) { if arg == nil { return ret, false @@ -96,11 +117,15 @@ func getTokenCreatedGetNameAttributeTypeOk(arg TokenCreatedGetNameAttributeType) return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetNameAttributeType(arg *TokenCreatedGetNameAttributeType, val TokenCreatedGetNameRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetNameArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetNameRetType = string /* @@ -108,8 +133,10 @@ type TokenCreatedGetNameRetType = string */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetRegionAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetRegionAttributeTypeOk(arg TokenCreatedGetRegionAttributeType) (ret TokenCreatedGetRegionRetType, ok bool) { if arg == nil { return ret, false @@ -117,11 +144,15 @@ func getTokenCreatedGetRegionAttributeTypeOk(arg TokenCreatedGetRegionAttributeT return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetRegionAttributeType(arg *TokenCreatedGetRegionAttributeType, val TokenCreatedGetRegionRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetRegionArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetRegionRetType = string /* @@ -132,22 +163,28 @@ type TokenCreatedGetRegionRetType = string // TokenCreatedState the model 'TokenCreated' // value type for enums +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedState string // List of State const ( + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead TOKENCREATEDSTATE_CREATING TokenCreatedState = "creating" - TOKENCREATEDSTATE_ACTIVE TokenCreatedState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead + TOKENCREATEDSTATE_ACTIVE TokenCreatedState = "active" + // Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead TOKENCREATEDSTATE_DELETING TokenCreatedState = "deleting" ) // All allowed values of TokenCreated enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead var AllowedTokenCreatedStateEnumValues = []TokenCreatedState{ "creating", "active", "deleting", } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *TokenCreatedState) UnmarshalJSON(src []byte) error { // use a type alias to prevent infinite recursion during unmarshal, // see https://biscuit.ninja/posts/go-avoid-an-infitine-loop-with-custom-json-unmarshallers @@ -175,6 +212,7 @@ func (v *TokenCreatedState) UnmarshalJSON(src []byte) error { // NewTokenCreatedStateFromValue returns a pointer to a valid TokenCreatedState // for the value passed as argument, or an error if the value passed is not allowed by the enum +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTokenCreatedStateFromValue(v TokenCreatedState) (*TokenCreatedState, error) { ev := TokenCreatedState(v) if ev.IsValid() { @@ -185,6 +223,7 @@ func NewTokenCreatedStateFromValue(v TokenCreatedState) (*TokenCreatedState, err } // IsValid return true if the value is valid for the enum, false otherwise +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v TokenCreatedState) IsValid() bool { for _, existing := range AllowedTokenCreatedStateEnumValues { if existing == v { @@ -195,50 +234,65 @@ func (v TokenCreatedState) IsValid() bool { } // Ptr returns reference to StateState value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v TokenCreatedState) Ptr() *TokenCreatedState { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTokenCreatedState struct { value *TokenCreatedState isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreatedState) Get() *TokenCreatedState { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreatedState) Set(val *TokenCreatedState) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreatedState) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreatedState) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTokenCreatedState(val *TokenCreatedState) *NullableTokenCreatedState { return &NullableTokenCreatedState{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreatedState) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreatedState) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetStateAttributeType = *TokenCreatedState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetStateArgType = TokenCreatedState + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetStateRetType = TokenCreatedState +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetStateAttributeTypeOk(arg TokenCreatedGetStateAttributeType) (ret TokenCreatedGetStateRetType, ok bool) { if arg == nil { return ret, false @@ -246,6 +300,7 @@ func getTokenCreatedGetStateAttributeTypeOk(arg TokenCreatedGetStateAttributeTyp return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetStateAttributeType(arg *TokenCreatedGetStateAttributeType, val TokenCreatedGetStateRetType) { *arg = &val } @@ -255,10 +310,16 @@ func setTokenCreatedGetStateAttributeType(arg *TokenCreatedGetStateAttributeType */ // isDateTime +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetValidUntilAttributeType = *time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetValidUntilArgType = time.Time + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreatedGetValidUntilRetType = time.Time +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getTokenCreatedGetValidUntilAttributeTypeOk(arg TokenCreatedGetValidUntilAttributeType) (ret TokenCreatedGetValidUntilRetType, ok bool) { if arg == nil { return ret, false @@ -266,11 +327,13 @@ func getTokenCreatedGetValidUntilAttributeTypeOk(arg TokenCreatedGetValidUntilAt return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setTokenCreatedGetValidUntilAttributeType(arg *TokenCreatedGetValidUntilAttributeType, val TokenCreatedGetValidUntilRetType) { *arg = &val } // TokenCreated struct for TokenCreated +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type TokenCreated struct { // REQUIRED Content TokenCreatedGetContentAttributeType `json:"content" required:"true"` @@ -287,12 +350,14 @@ type TokenCreated struct { ValidUntil TokenCreatedGetValidUntilAttributeType `json:"validUntil" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _TokenCreated TokenCreated // NewTokenCreated instantiates a new TokenCreated object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTokenCreated(content TokenCreatedGetContentArgType, id TokenCreatedGetIdArgType, name TokenCreatedGetNameArgType, region TokenCreatedGetRegionArgType, state TokenCreatedGetStateArgType, validUntil TokenCreatedGetValidUntilArgType) *TokenCreated { this := TokenCreated{} setTokenCreatedGetContentAttributeType(&this.Content, content) @@ -307,12 +372,14 @@ func NewTokenCreated(content TokenCreatedGetContentArgType, id TokenCreatedGetId // NewTokenCreatedWithDefaults instantiates a new TokenCreated object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewTokenCreatedWithDefaults() *TokenCreated { this := TokenCreated{} return &this } // GetContent returns the Content field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetContent() (ret TokenCreatedGetContentRetType) { ret, _ = o.GetContentOk() return ret @@ -320,16 +387,19 @@ func (o *TokenCreated) GetContent() (ret TokenCreatedGetContentRetType) { // GetContentOk returns a tuple with the Content field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetContentOk() (ret TokenCreatedGetContentRetType, ok bool) { return getTokenCreatedGetContentAttributeTypeOk(o.Content) } // SetContent sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetContent(v TokenCreatedGetContentRetType) { setTokenCreatedGetContentAttributeType(&o.Content, v) } // GetDescription returns the Description field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetDescription() (res TokenCreatedGetDescriptionRetType) { res, _ = o.GetDescriptionOk() return @@ -337,22 +407,26 @@ func (o *TokenCreated) GetDescription() (res TokenCreatedGetDescriptionRetType) // GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetDescriptionOk() (ret TokenCreatedGetDescriptionRetType, ok bool) { return getTokenCreatedGetDescriptionAttributeTypeOk(o.Description) } // HasDescription returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) HasDescription() bool { _, ok := o.GetDescriptionOk() return ok } // SetDescription gets a reference to the given string and assigns it to the Description field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetDescription(v TokenCreatedGetDescriptionRetType) { setTokenCreatedGetDescriptionAttributeType(&o.Description, v) } // GetId returns the Id field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetId() (ret TokenCreatedGetIdRetType) { ret, _ = o.GetIdOk() return ret @@ -360,16 +434,19 @@ func (o *TokenCreated) GetId() (ret TokenCreatedGetIdRetType) { // GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetIdOk() (ret TokenCreatedGetIdRetType, ok bool) { return getTokenCreatedGetIdAttributeTypeOk(o.Id) } // SetId sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetId(v TokenCreatedGetIdRetType) { setTokenCreatedGetIdAttributeType(&o.Id, v) } // GetName returns the Name field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetName() (ret TokenCreatedGetNameRetType) { ret, _ = o.GetNameOk() return ret @@ -377,16 +454,19 @@ func (o *TokenCreated) GetName() (ret TokenCreatedGetNameRetType) { // GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetNameOk() (ret TokenCreatedGetNameRetType, ok bool) { return getTokenCreatedGetNameAttributeTypeOk(o.Name) } // SetName sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetName(v TokenCreatedGetNameRetType) { setTokenCreatedGetNameAttributeType(&o.Name, v) } // GetRegion returns the Region field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetRegion() (ret TokenCreatedGetRegionRetType) { ret, _ = o.GetRegionOk() return ret @@ -394,16 +474,19 @@ func (o *TokenCreated) GetRegion() (ret TokenCreatedGetRegionRetType) { // GetRegionOk returns a tuple with the Region field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetRegionOk() (ret TokenCreatedGetRegionRetType, ok bool) { return getTokenCreatedGetRegionAttributeTypeOk(o.Region) } // SetRegion sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetRegion(v TokenCreatedGetRegionRetType) { setTokenCreatedGetRegionAttributeType(&o.Region, v) } // GetState returns the State field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetState() (ret TokenCreatedGetStateRetType) { ret, _ = o.GetStateOk() return ret @@ -411,16 +494,19 @@ func (o *TokenCreated) GetState() (ret TokenCreatedGetStateRetType) { // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetStateOk() (ret TokenCreatedGetStateRetType, ok bool) { return getTokenCreatedGetStateAttributeTypeOk(o.State) } // SetState sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetState(v TokenCreatedGetStateRetType) { setTokenCreatedGetStateAttributeType(&o.State, v) } // GetValidUntil returns the ValidUntil field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetValidUntil() (ret TokenCreatedGetValidUntilRetType) { ret, _ = o.GetValidUntilOk() return ret @@ -428,15 +514,18 @@ func (o *TokenCreated) GetValidUntil() (ret TokenCreatedGetValidUntilRetType) { // GetValidUntilOk returns a tuple with the ValidUntil field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) GetValidUntilOk() (ret TokenCreatedGetValidUntilRetType, ok bool) { return getTokenCreatedGetValidUntilAttributeTypeOk(o.ValidUntil) } // SetValidUntil sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *TokenCreated) SetValidUntil(v TokenCreatedGetValidUntilRetType) { setTokenCreatedGetValidUntilAttributeType(&o.ValidUntil, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o TokenCreated) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getTokenCreatedGetContentAttributeTypeOk(o.Content); ok { @@ -463,37 +552,45 @@ func (o TokenCreated) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTokenCreated struct { value *TokenCreated isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreated) Get() *TokenCreated { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreated) Set(val *TokenCreated) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreated) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreated) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTokenCreated(val *TokenCreated) *NullableTokenCreated { return &NullableTokenCreated{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTokenCreated) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTokenCreated) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/model_update_token_response.go b/services/modelserving/model_update_token_response.go index c558b5e52..4fa802e77 100644 --- a/services/modelserving/model_update_token_response.go +++ b/services/modelserving/model_update_token_response.go @@ -8,6 +8,7 @@ API version: 1.0.0 // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead package modelserving import ( @@ -22,8 +23,10 @@ var _ MappedNullable = &UpdateTokenResponse{} */ // isNotNullableString +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetMessageAttributeType = *string +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateTokenResponseGetMessageAttributeTypeOk(arg UpdateTokenResponseGetMessageAttributeType) (ret UpdateTokenResponseGetMessageRetType, ok bool) { if arg == nil { return ret, false @@ -31,11 +34,15 @@ func getUpdateTokenResponseGetMessageAttributeTypeOk(arg UpdateTokenResponseGetM return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateTokenResponseGetMessageAttributeType(arg *UpdateTokenResponseGetMessageAttributeType, val UpdateTokenResponseGetMessageRetType) { *arg = &val } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetMessageArgType = string + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetMessageRetType = string /* @@ -43,10 +50,16 @@ type UpdateTokenResponseGetMessageRetType = string */ // isModel +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetTokenAttributeType = *Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetTokenArgType = Token + +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponseGetTokenRetType = Token +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func getUpdateTokenResponseGetTokenAttributeTypeOk(arg UpdateTokenResponseGetTokenAttributeType) (ret UpdateTokenResponseGetTokenRetType, ok bool) { if arg == nil { return ret, false @@ -54,23 +67,27 @@ func getUpdateTokenResponseGetTokenAttributeTypeOk(arg UpdateTokenResponseGetTok return *arg, true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func setUpdateTokenResponseGetTokenAttributeType(arg *UpdateTokenResponseGetTokenAttributeType, val UpdateTokenResponseGetTokenRetType) { *arg = &val } // UpdateTokenResponse struct for UpdateTokenResponse +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type UpdateTokenResponse struct { Message UpdateTokenResponseGetMessageAttributeType `json:"message,omitempty"` // REQUIRED Token UpdateTokenResponseGetTokenAttributeType `json:"token" required:"true"` } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type _UpdateTokenResponse UpdateTokenResponse // NewUpdateTokenResponse instantiates a new UpdateTokenResponse object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateTokenResponse(token UpdateTokenResponseGetTokenArgType) *UpdateTokenResponse { this := UpdateTokenResponse{} setUpdateTokenResponseGetTokenAttributeType(&this.Token, token) @@ -80,12 +97,14 @@ func NewUpdateTokenResponse(token UpdateTokenResponseGetTokenArgType) *UpdateTok // NewUpdateTokenResponseWithDefaults instantiates a new UpdateTokenResponse object // This constructor will only assign default values to properties that have it defined, // but it doesn't guarantee that properties required by API are set +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewUpdateTokenResponseWithDefaults() *UpdateTokenResponse { this := UpdateTokenResponse{} return &this } // GetMessage returns the Message field value if set, zero value otherwise. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) GetMessage() (res UpdateTokenResponseGetMessageRetType) { res, _ = o.GetMessageOk() return @@ -93,22 +112,26 @@ func (o *UpdateTokenResponse) GetMessage() (res UpdateTokenResponseGetMessageRet // GetMessageOk returns a tuple with the Message field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) GetMessageOk() (ret UpdateTokenResponseGetMessageRetType, ok bool) { return getUpdateTokenResponseGetMessageAttributeTypeOk(o.Message) } // HasMessage returns a boolean if a field has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) HasMessage() bool { _, ok := o.GetMessageOk() return ok } // SetMessage gets a reference to the given string and assigns it to the Message field. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) SetMessage(v UpdateTokenResponseGetMessageRetType) { setUpdateTokenResponseGetMessageAttributeType(&o.Message, v) } // GetToken returns the Token field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) GetToken() (ret UpdateTokenResponseGetTokenRetType) { ret, _ = o.GetTokenOk() return ret @@ -116,15 +139,18 @@ func (o *UpdateTokenResponse) GetToken() (ret UpdateTokenResponseGetTokenRetType // GetTokenOk returns a tuple with the Token field value // and a boolean to check if the value has been set. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) GetTokenOk() (ret UpdateTokenResponseGetTokenRetType, ok bool) { return getUpdateTokenResponseGetTokenAttributeTypeOk(o.Token) } // SetToken sets field value +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o *UpdateTokenResponse) SetToken(v UpdateTokenResponseGetTokenRetType) { setUpdateTokenResponseGetTokenAttributeType(&o.Token, v) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (o UpdateTokenResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} if val, ok := getUpdateTokenResponseGetMessageAttributeTypeOk(o.Message); ok { @@ -136,37 +162,45 @@ func (o UpdateTokenResponse) ToMap() (map[string]interface{}, error) { return toSerialize, nil } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableUpdateTokenResponse struct { value *UpdateTokenResponse isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTokenResponse) Get() *UpdateTokenResponse { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTokenResponse) Set(val *UpdateTokenResponse) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTokenResponse) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTokenResponse) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableUpdateTokenResponse(val *UpdateTokenResponse) *NullableUpdateTokenResponse { return &NullableUpdateTokenResponse{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableUpdateTokenResponse) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableUpdateTokenResponse) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) diff --git a/services/modelserving/oas_commit b/services/modelserving/oas_commit index 064e1081f..bf3189995 100644 --- a/services/modelserving/oas_commit +++ b/services/modelserving/oas_commit @@ -1 +1 @@ -cfcfc32bc1ae335acecd7bf7ffb60354fdc565ab +3e9c109388be83b40c16d8cb5ab146aa314eb6e8 diff --git a/services/modelserving/utils.go b/services/modelserving/utils.go index 9c21fb8eb..c331296f0 100644 --- a/services/modelserving/utils.go +++ b/services/modelserving/utils.go @@ -18,341 +18,419 @@ import ( ) // PtrBool is a helper routine that returns a pointer to given boolean value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrBool(v bool) *bool { return &v } // PtrInt is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt(v int) *int { return &v } // PtrInt32 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt32(v int32) *int32 { return &v } // PtrInt64 is a helper routine that returns a pointer to given integer value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrInt64(v int64) *int64 { return &v } // PtrFloat32 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat32(v float32) *float32 { return &v } // PtrFloat64 is a helper routine that returns a pointer to given float value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrFloat64(v float64) *float64 { return &v } // PtrString is a helper routine that returns a pointer to given string value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrString(v string) *string { return &v } // PtrTime is helper routine that returns a pointer to given Time value. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func PtrTime(v time.Time) *time.Time { return &v } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableValue[T any] struct { value *T isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) Get() *T { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Set(val *T) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableValue[T]) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableValue[T]) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableBool struct { value *bool isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) Get() *bool { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Set(val *bool) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableBool(val *bool) *NullableBool { return &NullableBool{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableBool) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableBool) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt struct { value *int isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) Get() *int { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Set(val *int) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt(val *int) *NullableInt { return &NullableInt{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt32 struct { value *int32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) Get() *int32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Set(val *int32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt32(val *int32) *NullableInt32 { return &NullableInt32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableInt64 struct { value *int64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) Get() *int64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Set(val *int64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableInt64(val *int64) *NullableInt64 { return &NullableInt64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableInt64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableInt64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat32 struct { value *float32 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) Get() *float32 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Set(val *float32) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat32(val *float32) *NullableFloat32 { return &NullableFloat32{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat32) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat32) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableFloat64 struct { value *float64 isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) Get() *float64 { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Set(val *float64) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableFloat64(val *float64) *NullableFloat64 { return &NullableFloat64{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableFloat64) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableFloat64) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableString struct { value *string isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) Get() *string { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Set(val *string) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableString(val *string) *NullableString { return &NullableString{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableString) MarshalJSON() ([]byte, error) { return json.Marshal(v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableString) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type NullableTime struct { value *time.Time isSet bool } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) Get() *time.Time { return v.value } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Set(val *time.Time) { v.value = val v.isSet = true } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) IsSet() bool { return v.isSet } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) Unset() { v.value = nil v.isSet = false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func NewNullableTime(val *time.Time) *NullableTime { return &NullableTime{value: val, isSet: true} } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v NullableTime) MarshalJSON() ([]byte, error) { return v.value.MarshalJSON() } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } // IsNil checks if an input is nil +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func IsNil(i interface{}) bool { if i == nil { return true @@ -369,13 +447,16 @@ func IsNil(i interface{}) bool { return false } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead type MappedNullable interface { ToMap() (map[string]interface{}, error) } +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead const letterRunes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" // randString returns a random string with a specified length. It panics if n <= 0. +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead func randString(n int) string { b := make([]byte, n) for i := range b { diff --git a/services/modelserving/v1api/api_default.go b/services/modelserving/v1api/api_default.go new file mode 100644 index 000000000..29287c553 --- /dev/null +++ b/services/modelserving/v1api/api_default.go @@ -0,0 +1,1463 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" + + "github.com/stackitcloud/stackit-sdk-go/core/config" + "github.com/stackitcloud/stackit-sdk-go/core/oapierror" +) + +type DefaultAPI interface { + + /* + CreateToken create auth token for shared model use + + create auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @return ApiCreateTokenRequest + */ + CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest + + // CreateTokenExecute executes the request + // @return CreateTokenResponse + CreateTokenExecute(r ApiCreateTokenRequest) (*CreateTokenResponse, error) + + /* + DeleteToken delete auth token in shared model use + + delete auth token in shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiDeleteTokenRequest + */ + DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest + + // DeleteTokenExecute executes the request + // @return MessageResponse + DeleteTokenExecute(r ApiDeleteTokenRequest) (*MessageResponse, error) + + /* + GetChatModel details of a llm model + + details of a llm model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param modelId model id + @return ApiGetChatModelRequest + */ + GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest + + // GetChatModelExecute executes the request + // @return GetChatModelResponse + GetChatModelExecute(r ApiGetChatModelRequest) (*GetChatModelResponse, error) + + /* + GetEmbeddingModel details of an embedding model + + details of an embedding model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param modelId model id + @return ApiGetEmbeddingModelRequest + */ + GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest + + // GetEmbeddingModelExecute executes the request + // @return GetEmbeddingsModelResp + GetEmbeddingModelExecute(r ApiGetEmbeddingModelRequest) (*GetEmbeddingsModelResp, error) + + /* + GetToken get auth token for shared model use + + get auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiGetTokenRequest + */ + GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest + + // GetTokenExecute executes the request + // @return GetTokenResponse + GetTokenExecute(r ApiGetTokenRequest) (*GetTokenResponse, error) + + /* + ListModels List of shared model + + List of shared model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @return ApiListModelsRequest + */ + ListModels(ctx context.Context, regionId string) ApiListModelsRequest + + // ListModelsExecute executes the request + // @return ListModelsResponse + ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, error) + + /* + ListTokens auth tokens for shared model in non dedicated instances + + auth tokens for shared model in non dedicated instances + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @return ApiListTokensRequest + */ + ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest + + // ListTokensExecute executes the request + // @return ListTokenResp + ListTokensExecute(r ApiListTokensRequest) (*ListTokenResp, error) + + /* + PartialUpdateToken partial update auth token for shared model use + + partial update auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiPartialUpdateTokenRequest + */ + PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest + + // PartialUpdateTokenExecute executes the request + // @return UpdateTokenResponse + PartialUpdateTokenExecute(r ApiPartialUpdateTokenRequest) (*UpdateTokenResponse, error) +} + +// DefaultAPIService DefaultAPI service +type DefaultAPIService service + +type ApiCreateTokenRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + projectId string + createTokenPayload *CreateTokenPayload +} + +func (r ApiCreateTokenRequest) CreateTokenPayload(createTokenPayload CreateTokenPayload) ApiCreateTokenRequest { + r.createTokenPayload = &createTokenPayload + return r +} + +func (r ApiCreateTokenRequest) Execute() (*CreateTokenResponse, error) { + return r.ApiService.CreateTokenExecute(r) +} + +/* +CreateToken create auth token for shared model use + +create auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @return ApiCreateTokenRequest +*/ +func (a *DefaultAPIService) CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest { + return ApiCreateTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return CreateTokenResponse +func (a *DefaultAPIService) CreateTokenExecute(r ApiCreateTokenRequest) (*CreateTokenResponse, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CreateTokenResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.CreateToken") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/tokens" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createTokenPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 409 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiDeleteTokenRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + projectId string + tId string +} + +func (r ApiDeleteTokenRequest) Execute() (*MessageResponse, error) { + return r.ApiService.DeleteTokenExecute(r) +} + +/* +DeleteToken delete auth token in shared model use + +delete auth token in shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiDeleteTokenRequest +*/ +func (a *DefaultAPIService) DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest { + return ApiDeleteTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// Execute executes the request +// +// @return MessageResponse +func (a *DefaultAPIService) DeleteTokenExecute(r ApiDeleteTokenRequest) (*MessageResponse, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *MessageResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.DeleteToken") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tId"+"}", url.PathEscape(parameterValueToString(r.tId, "tId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetChatModelRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + modelId string +} + +func (r ApiGetChatModelRequest) Execute() (*GetChatModelResponse, error) { + return r.ApiService.GetChatModelExecute(r) +} + +/* +GetChatModel details of a llm model + +details of a llm model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param modelId model id + @return ApiGetChatModelRequest +*/ +func (a *DefaultAPIService) GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest { + return ApiGetChatModelRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + modelId: modelId, + } +} + +// Execute executes the request +// +// @return GetChatModelResponse +func (a *DefaultAPIService) GetChatModelExecute(r ApiGetChatModelRequest) (*GetChatModelResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetChatModelResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetChatModel") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/regions/{regionId}/chat/models/{modelId}" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"modelId"+"}", url.PathEscape(parameterValueToString(r.modelId, "modelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetEmbeddingModelRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + modelId string +} + +func (r ApiGetEmbeddingModelRequest) Execute() (*GetEmbeddingsModelResp, error) { + return r.ApiService.GetEmbeddingModelExecute(r) +} + +/* +GetEmbeddingModel details of an embedding model + +details of an embedding model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param modelId model id + @return ApiGetEmbeddingModelRequest +*/ +func (a *DefaultAPIService) GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest { + return ApiGetEmbeddingModelRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + modelId: modelId, + } +} + +// Execute executes the request +// +// @return GetEmbeddingsModelResp +func (a *DefaultAPIService) GetEmbeddingModelExecute(r ApiGetEmbeddingModelRequest) (*GetEmbeddingsModelResp, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetEmbeddingsModelResp + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetEmbeddingModel") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/regions/{regionId}/embedding/models/{modelId}" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"modelId"+"}", url.PathEscape(parameterValueToString(r.modelId, "modelId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiGetTokenRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + projectId string + tId string +} + +func (r ApiGetTokenRequest) Execute() (*GetTokenResponse, error) { + return r.ApiService.GetTokenExecute(r) +} + +/* +GetToken get auth token for shared model use + +get auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiGetTokenRequest +*/ +func (a *DefaultAPIService) GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest { + return ApiGetTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// Execute executes the request +// +// @return GetTokenResponse +func (a *DefaultAPIService) GetTokenExecute(r ApiGetTokenRequest) (*GetTokenResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *GetTokenResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.GetToken") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tId"+"}", url.PathEscape(parameterValueToString(r.tId, "tId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListModelsRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string +} + +func (r ApiListModelsRequest) Execute() (*ListModelsResponse, error) { + return r.ApiService.ListModelsExecute(r) +} + +/* +ListModels List of shared model + +List of shared model + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @return ApiListModelsRequest +*/ +func (a *DefaultAPIService) ListModels(ctx context.Context, regionId string) ApiListModelsRequest { + return ApiListModelsRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + } +} + +// Execute executes the request +// +// @return ListModelsResponse +func (a *DefaultAPIService) ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListModelsResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListModels") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/regions/{regionId}/models" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiListTokensRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + projectId string +} + +func (r ApiListTokensRequest) Execute() (*ListTokenResp, error) { + return r.ApiService.ListTokensExecute(r) +} + +/* +ListTokens auth tokens for shared model in non dedicated instances + +auth tokens for shared model in non dedicated instances + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @return ApiListTokensRequest +*/ +func (a *DefaultAPIService) ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest { + return ApiListTokensRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + } +} + +// Execute executes the request +// +// @return ListTokenResp +func (a *DefaultAPIService) ListTokensExecute(r ApiListTokensRequest) (*ListTokenResp, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ListTokenResp + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.ListTokens") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/tokens" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} + +type ApiPartialUpdateTokenRequest struct { + ctx context.Context + ApiService DefaultAPI + regionId string + projectId string + tId string + partialUpdateTokenPayload *PartialUpdateTokenPayload +} + +func (r ApiPartialUpdateTokenRequest) PartialUpdateTokenPayload(partialUpdateTokenPayload PartialUpdateTokenPayload) ApiPartialUpdateTokenRequest { + r.partialUpdateTokenPayload = &partialUpdateTokenPayload + return r +} + +func (r ApiPartialUpdateTokenRequest) Execute() (*UpdateTokenResponse, error) { + return r.ApiService.PartialUpdateTokenExecute(r) +} + +/* +PartialUpdateToken partial update auth token for shared model use + +partial update auth token for shared model use + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param regionId region name + @param projectId portal project id + @param tId token id + @return ApiPartialUpdateTokenRequest +*/ +func (a *DefaultAPIService) PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest { + return ApiPartialUpdateTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// Execute executes the request +// +// @return UpdateTokenResponse +func (a *DefaultAPIService) PartialUpdateTokenExecute(r ApiPartialUpdateTokenRequest) (*UpdateTokenResponse, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UpdateTokenResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DefaultAPIService.PartialUpdateToken") + if err != nil { + return localVarReturnValue, &oapierror.GenericOpenAPIError{ErrorMessage: err.Error()} + } + + localVarPath := localBasePath + "/v1/projects/{projectId}/regions/{regionId}/tokens/{tId}" + localVarPath = strings.Replace(localVarPath, "{"+"regionId"+"}", url.PathEscape(parameterValueToString(r.regionId, "regionId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"projectId"+"}", url.PathEscape(parameterValueToString(r.projectId, "projectId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"tId"+"}", url.PathEscape(parameterValueToString(r.tId, "tId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.partialUpdateTokenPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, err + } + + contextHTTPRequest, ok := r.ctx.Value(config.ContextHTTPRequest).(**http.Request) + if ok { + *contextHTTPRequest = req + } + + localVarHTTPResponse, err := a.client.callAPI(req) + contextHTTPResponse, ok := r.ctx.Value(config.ContextHTTPResponse).(**http.Response) + if ok { + *contextHTTPResponse = localVarHTTPResponse + } + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &oapierror.GenericOpenAPIError{ + Body: localVarBody, + ErrorMessage: localVarHTTPResponse.Status, + StatusCode: localVarHTTPResponse.StatusCode, + } + if localVarHTTPResponse.StatusCode == 400 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 401 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + return localVarReturnValue, newErr + } + if localVarHTTPResponse.StatusCode == 500 { + var v ErrorMessageResponse + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.ErrorMessage = err.Error() + return localVarReturnValue, newErr + } + newErr.ErrorMessage = oapierror.FormatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.Model = v + return localVarReturnValue, newErr + } + return localVarReturnValue, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &oapierror.GenericOpenAPIError{ + StatusCode: localVarHTTPResponse.StatusCode, + Body: localVarBody, + ErrorMessage: err.Error(), + } + return localVarReturnValue, newErr + } + + return localVarReturnValue, nil +} diff --git a/services/modelserving/v1api/api_default_mock.go b/services/modelserving/v1api/api_default_mock.go new file mode 100644 index 000000000..f21cc667f --- /dev/null +++ b/services/modelserving/v1api/api_default_mock.go @@ -0,0 +1,194 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "context" +) + +// assert the implementation matches the interface +var _ DefaultAPI = &DefaultAPIServiceMock{} + +// DefaultAPIServiceMock is meant to be used for testing only as a replacement for DefaultAPIService. +// By default all FooExecute() implementations are a no-op. Behavior of the mock can be customized by populating the callbacks in this struct. +type DefaultAPIServiceMock struct { + // CreateTokenExecuteMock can be populated to implement the behavior of the CreateTokenExecute function of this mock + CreateTokenExecuteMock *func(r ApiCreateTokenRequest) (*CreateTokenResponse, error) + // DeleteTokenExecuteMock can be populated to implement the behavior of the DeleteTokenExecute function of this mock + DeleteTokenExecuteMock *func(r ApiDeleteTokenRequest) (*MessageResponse, error) + // GetChatModelExecuteMock can be populated to implement the behavior of the GetChatModelExecute function of this mock + GetChatModelExecuteMock *func(r ApiGetChatModelRequest) (*GetChatModelResponse, error) + // GetEmbeddingModelExecuteMock can be populated to implement the behavior of the GetEmbeddingModelExecute function of this mock + GetEmbeddingModelExecuteMock *func(r ApiGetEmbeddingModelRequest) (*GetEmbeddingsModelResp, error) + // GetTokenExecuteMock can be populated to implement the behavior of the GetTokenExecute function of this mock + GetTokenExecuteMock *func(r ApiGetTokenRequest) (*GetTokenResponse, error) + // ListModelsExecuteMock can be populated to implement the behavior of the ListModelsExecute function of this mock + ListModelsExecuteMock *func(r ApiListModelsRequest) (*ListModelsResponse, error) + // ListTokensExecuteMock can be populated to implement the behavior of the ListTokensExecute function of this mock + ListTokensExecuteMock *func(r ApiListTokensRequest) (*ListTokenResp, error) + // PartialUpdateTokenExecuteMock can be populated to implement the behavior of the PartialUpdateTokenExecute function of this mock + PartialUpdateTokenExecuteMock *func(r ApiPartialUpdateTokenRequest) (*UpdateTokenResponse, error) +} + +func (a DefaultAPIServiceMock) CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest { + return ApiCreateTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + } +} + +// CreateTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the CreateTokenExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) CreateTokenExecute(r ApiCreateTokenRequest) (*CreateTokenResponse, error) { + if a.CreateTokenExecuteMock == nil { + var localVarReturnValue *CreateTokenResponse + return localVarReturnValue, nil + } + + return (*a.CreateTokenExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest { + return ApiDeleteTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// DeleteTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the DeleteTokenExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) DeleteTokenExecute(r ApiDeleteTokenRequest) (*MessageResponse, error) { + if a.DeleteTokenExecuteMock == nil { + var localVarReturnValue *MessageResponse + return localVarReturnValue, nil + } + + return (*a.DeleteTokenExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest { + return ApiGetChatModelRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + modelId: modelId, + } +} + +// GetChatModelExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetChatModelExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetChatModelExecute(r ApiGetChatModelRequest) (*GetChatModelResponse, error) { + if a.GetChatModelExecuteMock == nil { + var localVarReturnValue *GetChatModelResponse + return localVarReturnValue, nil + } + + return (*a.GetChatModelExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest { + return ApiGetEmbeddingModelRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + modelId: modelId, + } +} + +// GetEmbeddingModelExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetEmbeddingModelExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetEmbeddingModelExecute(r ApiGetEmbeddingModelRequest) (*GetEmbeddingsModelResp, error) { + if a.GetEmbeddingModelExecuteMock == nil { + var localVarReturnValue *GetEmbeddingsModelResp + return localVarReturnValue, nil + } + + return (*a.GetEmbeddingModelExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest { + return ApiGetTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// GetTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the GetTokenExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) GetTokenExecute(r ApiGetTokenRequest) (*GetTokenResponse, error) { + if a.GetTokenExecuteMock == nil { + var localVarReturnValue *GetTokenResponse + return localVarReturnValue, nil + } + + return (*a.GetTokenExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListModels(ctx context.Context, regionId string) ApiListModelsRequest { + return ApiListModelsRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + } +} + +// ListModelsExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListModelsExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, error) { + if a.ListModelsExecuteMock == nil { + var localVarReturnValue *ListModelsResponse + return localVarReturnValue, nil + } + + return (*a.ListModelsExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest { + return ApiListTokensRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + } +} + +// ListTokensExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the ListTokensExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) ListTokensExecute(r ApiListTokensRequest) (*ListTokenResp, error) { + if a.ListTokensExecuteMock == nil { + var localVarReturnValue *ListTokenResp + return localVarReturnValue, nil + } + + return (*a.ListTokensExecuteMock)(r) +} + +func (a DefaultAPIServiceMock) PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest { + return ApiPartialUpdateTokenRequest{ + ApiService: a, + ctx: ctx, + regionId: regionId, + projectId: projectId, + tId: tId, + } +} + +// PartialUpdateTokenExecute is a no-op by default and will return only return nil values. Behavior can be controlled by populating the PartialUpdateTokenExecuteMock field in the DefaultAPIServiceMock struct. +func (a DefaultAPIServiceMock) PartialUpdateTokenExecute(r ApiPartialUpdateTokenRequest) (*UpdateTokenResponse, error) { + if a.PartialUpdateTokenExecuteMock == nil { + var localVarReturnValue *UpdateTokenResponse + return localVarReturnValue, nil + } + + return (*a.PartialUpdateTokenExecuteMock)(r) +} diff --git a/services/modelserving/v1api/client.go b/services/modelserving/v1api/client.go new file mode 100644 index 000000000..1cce49905 --- /dev/null +++ b/services/modelserving/v1api/client.go @@ -0,0 +1,659 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "bytes" + "context" + "encoding/json" + "encoding/xml" + "errors" + "fmt" + "io" + "log" + "mime/multipart" + "net/http" + "net/http/httputil" + "net/url" + "os" + "path/filepath" + "reflect" + "regexp" + "strconv" + "strings" + "time" + "unicode/utf8" + + "github.com/stackitcloud/stackit-sdk-go/core/auth" + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +var ( + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") +) + +// APIClient manages communication with the STACKIT Model Serving API API v1.0.0 +// In most cases there should be only one, shared, APIClient. +type APIClient struct { + cfg *config.Configuration + common service // Reuse a single struct instead of allocating one for each service on the heap. + + // API Services + + DefaultAPI DefaultAPI +} + +type service struct { + client *APIClient +} + +// NewAPIClient creates a new API client. Requires a userAgent string describing your application. +// optionally a custom http.Client to allow for advanced features such as caching. +func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error) { + cfg := NewConfiguration() + + for _, option := range opts { + err := option(cfg) + if err != nil { + return nil, fmt.Errorf("configuring the client: %w", err) + } + } + + err := config.ConfigureRegion(cfg) + if err != nil { + return nil, fmt.Errorf("configuring region: %w", err) + } + + if cfg.HTTPClient == nil { + cfg.HTTPClient = &http.Client{} + } + + authRoundTripper, err := auth.SetupAuth(cfg) + if err != nil { + return nil, fmt.Errorf("setting up authentication: %w", err) + } + + roundTripper := authRoundTripper + if cfg.Middleware != nil { + roundTripper = config.ChainMiddleware(roundTripper, cfg.Middleware...) + } + + cfg.HTTPClient.Transport = roundTripper + + c := &APIClient{} + c.cfg = cfg + c.common.client = c + + // API Services + c.DefaultAPI = (*DefaultAPIService)(&c.common) + + return c, nil +} + +func atoi(in string) (int, error) { + return strconv.Atoi(in) +} + +// selectHeaderContentType select a content type from the available list. +func selectHeaderContentType(contentTypes []string) string { + if len(contentTypes) == 0 { + return "" + } + if contains(contentTypes, "application/json") { + return "application/json" + } + return contentTypes[0] // use the first content type specified in 'consumes' +} + +// selectHeaderAccept join all accept types and return +func selectHeaderAccept(accepts []string) string { + if len(accepts) == 0 { + return "" + } + + if contains(accepts, "application/json") { + return "application/json" + } + + return strings.Join(accepts, ",") +} + +// contains is a case insensitive match, finding needle in a haystack +func contains(haystack []string, needle string) bool { + for _, a := range haystack { + if strings.EqualFold(a, needle) { + return true + } + } + return false +} + +// Verify optional parameters are of the correct type. +func typeCheckParameter(obj interface{}, expected string, name string) error { + // Make sure there is an object. + if obj == nil { + return nil + } + + // Check the type is as expected. + if reflect.TypeOf(obj).String() != expected { + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) + } + return nil +} + +func parameterValueToString(obj interface{}, key string) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + if actualObj, ok := obj.(interface{ GetActualInstanceValue() interface{} }); ok { + return fmt.Sprintf("%v", actualObj.GetActualInstanceValue()) + } + + return fmt.Sprintf("%v", obj) + } + var param, ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap, err := param.ToMap() + if err != nil { + return "" + } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, style string, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t, ok := obj.(MappedNullable); ok { + dataMap, err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, style, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339Nano), style, collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i := 0; i < lenIndValue; i++ { + var arrayValue = indValue.Index(i) + var keyPrefixForCollectionType = keyPrefix + if style == "deepObject" { + keyPrefixForCollectionType = keyPrefix + "[" + strconv.Itoa(i) + "]" + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefixForCollectionType, arrayValue.Interface(), style, collectionType) + } + return + + case reflect.Map: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + iter := indValue.MapRange() + for iter.Next() { + k, v := iter.Key(), iter.Value() + parameterAddToHeaderOrQuery(headerOrQueryParams, fmt.Sprintf("%s[%s]", keyPrefix, k.String()), v.Interface(), style, collectionType) + } + return + + case reflect.Interface: + fallthrough + case reflect.Ptr: + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, v.Elem().Interface(), style, collectionType) + return + + case reflect.Int, reflect.Int8, reflect.Int16, + reflect.Int32, reflect.Int64: + value = strconv.FormatInt(v.Int(), 10) + case reflect.Uint, reflect.Uint8, reflect.Uint16, + reflect.Uint32, reflect.Uint64, reflect.Uintptr: + value = strconv.FormatUint(v.Uint(), 10) + case reflect.Float32, reflect.Float64: + value = strconv.FormatFloat(v.Float(), 'g', -1, 32) + case reflect.Bool: + value = strconv.FormatBool(v.Bool()) + case reflect.String: + value = v.String() + default: + value = v.Type().String() + " value" + } + } + + switch valuesMap := headerOrQueryParams.(type) { + case url.Values: + if collectionType == "csv" && valuesMap.Get(keyPrefix) != "" { + valuesMap.Set(keyPrefix, valuesMap.Get(keyPrefix)+","+value) + } else { + valuesMap.Add(keyPrefix, value) + } + break + case map[string]string: + valuesMap[keyPrefix] = value + break + } +} + +// helper for converting interface{} parameters to json strings +func parameterToJson(obj interface{}) (string, error) { + jsonBuf, err := json.Marshal(obj) + if err != nil { + return "", err + } + return string(jsonBuf), err +} + +// callAPI do the request. +func (c *APIClient) callAPI(request *http.Request) (*http.Response, error) { + if c.cfg.Debug { + dump, err := httputil.DumpRequestOut(request, true) + if err != nil { + return nil, err + } + log.Printf("\n%s\n", string(dump)) + } + + resp, err := c.cfg.HTTPClient.Do(request) + if err != nil { + return resp, err + } + + if c.cfg.Debug { + dump, err := httputil.DumpResponse(resp, true) + if err != nil { + return resp, err + } + log.Printf("\n%s\n", string(dump)) + } + return resp, err +} + +// Allow modification of underlying config for alternate implementations and testing +// Caution: modifying the configuration while live can cause data races and potentially unwanted behavior +func (c *APIClient) GetConfig() *config.Configuration { + return c.cfg +} + +type formFile struct { + fileBytes []byte + fileName string + formFileName string +} + +// prepareRequest build the request +func (c *APIClient) prepareRequest( + ctx context.Context, + path string, method string, + postBody interface{}, + headerParams map[string]string, + queryParams url.Values, + formParams url.Values, + formFiles []formFile) (localVarRequest *http.Request, err error) { + + var body *bytes.Buffer + + // Detect postBody type and post. + if postBody != nil { + contentType := headerParams["Content-Type"] + if contentType == "" { + contentType = detectContentType(postBody) + headerParams["Content-Type"] = contentType + } + + body, err = setBody(postBody, contentType) + if err != nil { + return nil, err + } + } + + // add form parameters and file if available. + if strings.HasPrefix(headerParams["Content-Type"], "multipart/form-data") && len(formParams) > 0 || (len(formFiles) > 0) { + if body != nil { + return nil, errors.New("Cannot specify postBody and multipart form at the same time.") + } + body = &bytes.Buffer{} + w := multipart.NewWriter(body) + + for k, v := range formParams { + for _, iv := range v { + if strings.HasPrefix(k, "@") { // file + err = addFile(w, k[1:], iv) + if err != nil { + return nil, err + } + } else { // form value + w.WriteField(k, iv) + } + } + } + for _, formFile := range formFiles { + if len(formFile.fileBytes) > 0 && formFile.fileName != "" { + w.Boundary() + part, err := w.CreateFormFile(formFile.formFileName, filepath.Base(formFile.fileName)) + if err != nil { + return nil, err + } + _, err = part.Write(formFile.fileBytes) + if err != nil { + return nil, err + } + } + } + + // Set the Boundary in the Content-Type + headerParams["Content-Type"] = w.FormDataContentType() + + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + w.Close() + } + + if strings.HasPrefix(headerParams["Content-Type"], "application/x-www-form-urlencoded") && len(formParams) > 0 { + if body != nil { + return nil, errors.New("Cannot specify postBody and x-www-form-urlencoded form at the same time.") + } + body = &bytes.Buffer{} + body.WriteString(formParams.Encode()) + // Set Content-Length + headerParams["Content-Length"] = fmt.Sprintf("%d", body.Len()) + } + + // Setup path and query parameters + url, err := url.Parse(path) + if err != nil { + return nil, err + } + + // Override request host, if applicable + if c.cfg.Host != "" { + url.Host = c.cfg.Host + } + + // Override request scheme, if applicable + if c.cfg.Scheme != "" { + url.Scheme = c.cfg.Scheme + } + + // Adding Query Param + query := url.Query() + for k, v := range queryParams { + for _, iv := range v { + query.Add(k, iv) + } + } + + // Encode the parameters. + url.RawQuery = queryParamSplit.ReplaceAllStringFunc(query.Encode(), func(s string) string { + pieces := strings.Split(s, "=") + pieces[0] = queryDescape.Replace(pieces[0]) + return strings.Join(pieces, "=") + }) + + // Generate a new request + if body != nil { + localVarRequest, err = http.NewRequest(method, url.String(), body) + } else { + localVarRequest, err = http.NewRequest(method, url.String(), nil) + } + if err != nil { + return nil, err + } + + // add header parameters, if any + if len(headerParams) > 0 { + headers := http.Header{} + for h, v := range headerParams { + headers[h] = []string{v} + } + localVarRequest.Header = headers + } + + // Add the user agent to the request. + localVarRequest.Header.Add("User-Agent", c.cfg.UserAgent) + + if ctx != nil { + // add context to the request + localVarRequest = localVarRequest.WithContext(ctx) + + // Walk through any authentication. + + } + + for header, value := range c.cfg.DefaultHeader { + localVarRequest.Header.Add(header, value) + } + return localVarRequest, nil +} + +func (c *APIClient) decode(v interface{}, b []byte, contentType string) (err error) { + if len(b) == 0 { + return nil + } + if s, ok := v.(*string); ok { + *s = string(b) + return nil + } + if f, ok := v.(*os.File); ok { + f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = f.Write(b) + if err != nil { + return + } + _, err = f.Seek(0, io.SeekStart) + return + } + if f, ok := v.(**os.File); ok { + *f, err = os.CreateTemp("", "HttpClientFile") + if err != nil { + return + } + _, err = (*f).Write(b) + if err != nil { + return + } + _, err = (*f).Seek(0, io.SeekStart) + return + } + if XmlCheck.MatchString(contentType) { + if err = xml.Unmarshal(b, v); err != nil { + return err + } + return nil + } + if JsonCheck.MatchString(contentType) { + if actualObj, ok := v.(interface{ GetActualInstance() interface{} }); ok { // oneOf, anyOf schemas + if unmarshalObj, ok := actualObj.(interface{ UnmarshalJSON([]byte) error }); ok { // make sure it has UnmarshalJSON defined + if err = unmarshalObj.UnmarshalJSON(b); err != nil { + return err + } + } else { + return errors.New("Unknown type with GetActualInstance but no unmarshalObj.UnmarshalJSON defined") + } + } else if err = json.Unmarshal(b, v); err != nil { // simple model + return err + } + return nil + } + return errors.New("undefined response type") +} + +// Add a file to the multipart request +func addFile(w *multipart.Writer, fieldName, path string) error { + file, err := os.Open(filepath.Clean(path)) + if err != nil { + return err + } + defer file.Close() + + part, err := w.CreateFormFile(fieldName, filepath.Base(path)) + if err != nil { + return err + } + _, err = io.Copy(part, file) + + return err +} + +// Set request body from an interface{} +func setBody(body interface{}, contentType string) (bodyBuf *bytes.Buffer, err error) { + if bodyBuf == nil { + bodyBuf = &bytes.Buffer{} + } + + if reader, ok := body.(io.Reader); ok { + _, err = bodyBuf.ReadFrom(reader) + } else if fp, ok := body.(*os.File); ok { + _, err = bodyBuf.ReadFrom(fp) + } else if b, ok := body.([]byte); ok { + _, err = bodyBuf.Write(b) + } else if s, ok := body.(string); ok { + _, err = bodyBuf.WriteString(s) + } else if s, ok := body.(*string); ok { + _, err = bodyBuf.WriteString(*s) + } else if JsonCheck.MatchString(contentType) { + err = json.NewEncoder(bodyBuf).Encode(body) + } else if XmlCheck.MatchString(contentType) { + var bs []byte + bs, err = xml.Marshal(body) + if err == nil { + bodyBuf.Write(bs) + } + } + + if err != nil { + return nil, err + } + + if bodyBuf.Len() == 0 { + err = fmt.Errorf("invalid body type %s\n", contentType) + return nil, err + } + return bodyBuf, nil +} + +// detectContentType method is used to figure out `Request.Body` content type for request header +func detectContentType(body interface{}) string { + contentType := "text/plain; charset=utf-8" + kind := reflect.TypeOf(body).Kind() + + switch kind { + case reflect.Struct, reflect.Map, reflect.Ptr: + contentType = "application/json; charset=utf-8" + case reflect.String: + contentType = "text/plain; charset=utf-8" + default: + if b, ok := body.([]byte); ok { + contentType = http.DetectContentType(b) + } else if kind == reflect.Slice { + contentType = "application/json; charset=utf-8" + } + } + + return contentType +} + +// Ripped from https://github.com/gregjones/httpcache/blob/master/httpcache.go +type cacheControl map[string]string + +func parseCacheControl(headers http.Header) cacheControl { + cc := cacheControl{} + ccHeader := headers.Get("Cache-Control") + for _, part := range strings.Split(ccHeader, ",") { + part = strings.Trim(part, " ") + if part == "" { + continue + } + if strings.ContainsRune(part, '=') { + keyval := strings.Split(part, "=") + cc[strings.Trim(keyval[0], " ")] = strings.Trim(keyval[1], ",") + } else { + cc[part] = "" + } + } + return cc +} + +// CacheExpires helper function to determine remaining time before repeating a request. +func CacheExpires(r *http.Response) time.Time { + // Figure out when the cache expires. + var expires time.Time + now, err := time.Parse(time.RFC1123, r.Header.Get("date")) + if err != nil { + return time.Now() + } + respCacheControl := parseCacheControl(r.Header) + + if maxAge, ok := respCacheControl["max-age"]; ok { + lifetime, err := time.ParseDuration(maxAge + "s") + if err != nil { + expires = now + } else { + expires = now.Add(lifetime) + } + } else { + expiresHeader := r.Header.Get("Expires") + if expiresHeader != "" { + expires, err = time.Parse(time.RFC1123, expiresHeader) + if err != nil { + expires = now + } + } + } + return expires +} + +func strlen(s string) int { + return utf8.RuneCountInString(s) +} + +// format error message using title and detail when model implements rfc7807 +func formatErrorMessage(status string, v interface{}) string { + str := "" + metaValue := reflect.ValueOf(v).Elem() + + if metaValue.Kind() == reflect.Struct { + field := metaValue.FieldByName("Title") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s", field.Interface()) + } + + field = metaValue.FieldByName("Detail") + if field != (reflect.Value{}) { + str = fmt.Sprintf("%s (%s)", str, field.Interface()) + } + } + + return strings.TrimSpace(fmt.Sprintf("%s %s", status, str)) +} diff --git a/services/modelserving/v1api/configuration.go b/services/modelserving/v1api/configuration.go new file mode 100644 index 000000000..d716102e7 --- /dev/null +++ b/services/modelserving/v1api/configuration.go @@ -0,0 +1,38 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. +package v1api + +import ( + "github.com/stackitcloud/stackit-sdk-go/core/config" +) + +// NewConfiguration returns a new Configuration object +func NewConfiguration() *config.Configuration { + cfg := &config.Configuration{ + DefaultHeader: make(map[string]string), + UserAgent: "stackit-sdk-go/modelserving", + Debug: false, + Servers: config.ServerConfigurations{ + { + URL: "https://model-serving.api.stackit.cloud", + Description: "No description provided", + Variables: map[string]config.ServerVariable{ + "region": { + Description: "No description provided", + DefaultValue: "global", + }, + }, + }, + }, + OperationServers: map[string]config.ServerConfigurations{}, + } + return cfg +} diff --git a/services/modelserving/v1api/model_chat_model_details.go b/services/modelserving/v1api/model_chat_model_details.go new file mode 100644 index 000000000..e14e6e5e7 --- /dev/null +++ b/services/modelserving/v1api/model_chat_model_details.go @@ -0,0 +1,513 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ChatModelDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ChatModelDetails{} + +// ChatModelDetails struct for ChatModelDetails +type ChatModelDetails struct { + Bits *int32 `json:"bits,omitempty"` + Category string `json:"category"` + ContextLength int64 `json:"contextLength"` + Description string `json:"description" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + DisplayedName string `json:"displayedName" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + // generated uuid to identify a model + Id string `json:"id"` + // huggingface name + Name string `json:"name" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + QuantizationMethod *string `json:"quantizationMethod,omitempty"` + Region string `json:"region"` + // model size in bytes + Size int64 `json:"size"` + Skus []SKU `json:"skus"` + Tags []string `json:"tags"` + // url of the model + Url string `json:"url" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` +} + +type _ChatModelDetails ChatModelDetails + +// NewChatModelDetails instantiates a new ChatModelDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewChatModelDetails(category string, contextLength int64, description string, displayedName string, id string, name string, region string, size int64, skus []SKU, tags []string, url string) *ChatModelDetails { + this := ChatModelDetails{} + this.Category = category + this.ContextLength = contextLength + this.Description = description + this.DisplayedName = displayedName + this.Id = id + this.Name = name + this.Region = region + this.Size = size + this.Skus = skus + this.Tags = tags + this.Url = url + return &this +} + +// NewChatModelDetailsWithDefaults instantiates a new ChatModelDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewChatModelDetailsWithDefaults() *ChatModelDetails { + this := ChatModelDetails{} + return &this +} + +// GetBits returns the Bits field value if set, zero value otherwise. +func (o *ChatModelDetails) GetBits() int32 { + if o == nil || IsNil(o.Bits) { + var ret int32 + return ret + } + return *o.Bits +} + +// GetBitsOk returns a tuple with the Bits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetBitsOk() (*int32, bool) { + if o == nil || IsNil(o.Bits) { + return nil, false + } + return o.Bits, true +} + +// HasBits returns a boolean if a field has been set. +func (o *ChatModelDetails) HasBits() bool { + if o != nil && !IsNil(o.Bits) { + return true + } + + return false +} + +// SetBits gets a reference to the given int32 and assigns it to the Bits field. +func (o *ChatModelDetails) SetBits(v int32) { + o.Bits = &v +} + +// GetCategory returns the Category field value +func (o *ChatModelDetails) GetCategory() string { + if o == nil { + var ret string + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *ChatModelDetails) SetCategory(v string) { + o.Category = v +} + +// GetContextLength returns the ContextLength field value +func (o *ChatModelDetails) GetContextLength() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ContextLength +} + +// GetContextLengthOk returns a tuple with the ContextLength field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetContextLengthOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ContextLength, true +} + +// SetContextLength sets field value +func (o *ChatModelDetails) SetContextLength(v int64) { + o.ContextLength = v +} + +// GetDescription returns the Description field value +func (o *ChatModelDetails) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *ChatModelDetails) SetDescription(v string) { + o.Description = v +} + +// GetDisplayedName returns the DisplayedName field value +func (o *ChatModelDetails) GetDisplayedName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayedName +} + +// GetDisplayedNameOk returns a tuple with the DisplayedName field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetDisplayedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayedName, true +} + +// SetDisplayedName sets field value +func (o *ChatModelDetails) SetDisplayedName(v string) { + o.DisplayedName = v +} + +// GetId returns the Id field value +func (o *ChatModelDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ChatModelDetails) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ChatModelDetails) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ChatModelDetails) SetName(v string) { + o.Name = v +} + +// GetQuantizationMethod returns the QuantizationMethod field value if set, zero value otherwise. +func (o *ChatModelDetails) GetQuantizationMethod() string { + if o == nil || IsNil(o.QuantizationMethod) { + var ret string + return ret + } + return *o.QuantizationMethod +} + +// GetQuantizationMethodOk returns a tuple with the QuantizationMethod field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetQuantizationMethodOk() (*string, bool) { + if o == nil || IsNil(o.QuantizationMethod) { + return nil, false + } + return o.QuantizationMethod, true +} + +// HasQuantizationMethod returns a boolean if a field has been set. +func (o *ChatModelDetails) HasQuantizationMethod() bool { + if o != nil && !IsNil(o.QuantizationMethod) { + return true + } + + return false +} + +// SetQuantizationMethod gets a reference to the given string and assigns it to the QuantizationMethod field. +func (o *ChatModelDetails) SetQuantizationMethod(v string) { + o.QuantizationMethod = &v +} + +// GetRegion returns the Region field value +func (o *ChatModelDetails) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *ChatModelDetails) SetRegion(v string) { + o.Region = v +} + +// GetSize returns the Size field value +func (o *ChatModelDetails) GetSize() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.Size +} + +// GetSizeOk returns a tuple with the Size field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetSizeOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.Size, true +} + +// SetSize sets field value +func (o *ChatModelDetails) SetSize(v int64) { + o.Size = v +} + +// GetSkus returns the Skus field value +func (o *ChatModelDetails) GetSkus() []SKU { + if o == nil { + var ret []SKU + return ret + } + + return o.Skus +} + +// GetSkusOk returns a tuple with the Skus field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetSkusOk() ([]SKU, bool) { + if o == nil { + return nil, false + } + return o.Skus, true +} + +// SetSkus sets field value +func (o *ChatModelDetails) SetSkus(v []SKU) { + o.Skus = v +} + +// GetTags returns the Tags field value +func (o *ChatModelDetails) GetTags() []string { + if o == nil { + var ret []string + return ret + } + + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetTagsOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Tags, true +} + +// SetTags sets field value +func (o *ChatModelDetails) SetTags(v []string) { + o.Tags = v +} + +// GetUrl returns the Url field value +func (o *ChatModelDetails) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *ChatModelDetails) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *ChatModelDetails) SetUrl(v string) { + o.Url = v +} + +func (o ChatModelDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ChatModelDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Bits) { + toSerialize["bits"] = o.Bits + } + toSerialize["category"] = o.Category + toSerialize["contextLength"] = o.ContextLength + toSerialize["description"] = o.Description + toSerialize["displayedName"] = o.DisplayedName + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + if !IsNil(o.QuantizationMethod) { + toSerialize["quantizationMethod"] = o.QuantizationMethod + } + toSerialize["region"] = o.Region + toSerialize["size"] = o.Size + toSerialize["skus"] = o.Skus + toSerialize["tags"] = o.Tags + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *ChatModelDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "category", + "contextLength", + "description", + "displayedName", + "id", + "name", + "region", + "size", + "skus", + "tags", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varChatModelDetails := _ChatModelDetails{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varChatModelDetails) + + if err != nil { + return err + } + + *o = ChatModelDetails(varChatModelDetails) + + return err +} + +type NullableChatModelDetails struct { + value *ChatModelDetails + isSet bool +} + +func (v NullableChatModelDetails) Get() *ChatModelDetails { + return v.value +} + +func (v *NullableChatModelDetails) Set(val *ChatModelDetails) { + v.value = val + v.isSet = true +} + +func (v NullableChatModelDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableChatModelDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableChatModelDetails(val *ChatModelDetails) *NullableChatModelDetails { + return &NullableChatModelDetails{value: val, isSet: true} +} + +func (v NullableChatModelDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableChatModelDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_create_token_payload.go b/services/modelserving/v1api/model_create_token_payload.go new file mode 100644 index 000000000..273cef924 --- /dev/null +++ b/services/modelserving/v1api/model_create_token_payload.go @@ -0,0 +1,230 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateTokenPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateTokenPayload{} + +// CreateTokenPayload struct for CreateTokenPayload +type CreateTokenPayload struct { + Description *string `json:"description,omitempty" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + Name string `json:"name" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + // time to live duration. Must be valid duration string. If not set the token will never expire. + TtlDuration *string `json:"ttlDuration,omitempty"` +} + +type _CreateTokenPayload CreateTokenPayload + +// NewCreateTokenPayload instantiates a new CreateTokenPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateTokenPayload(name string) *CreateTokenPayload { + this := CreateTokenPayload{} + this.Name = name + return &this +} + +// NewCreateTokenPayloadWithDefaults instantiates a new CreateTokenPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateTokenPayloadWithDefaults() *CreateTokenPayload { + this := CreateTokenPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CreateTokenPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTokenPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CreateTokenPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CreateTokenPayload) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value +func (o *CreateTokenPayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateTokenPayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateTokenPayload) SetName(v string) { + o.Name = v +} + +// GetTtlDuration returns the TtlDuration field value if set, zero value otherwise. +func (o *CreateTokenPayload) GetTtlDuration() string { + if o == nil || IsNil(o.TtlDuration) { + var ret string + return ret + } + return *o.TtlDuration +} + +// GetTtlDurationOk returns a tuple with the TtlDuration field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTokenPayload) GetTtlDurationOk() (*string, bool) { + if o == nil || IsNil(o.TtlDuration) { + return nil, false + } + return o.TtlDuration, true +} + +// HasTtlDuration returns a boolean if a field has been set. +func (o *CreateTokenPayload) HasTtlDuration() bool { + if o != nil && !IsNil(o.TtlDuration) { + return true + } + + return false +} + +// SetTtlDuration gets a reference to the given string and assigns it to the TtlDuration field. +func (o *CreateTokenPayload) SetTtlDuration(v string) { + o.TtlDuration = &v +} + +func (o CreateTokenPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateTokenPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["name"] = o.Name + if !IsNil(o.TtlDuration) { + toSerialize["ttlDuration"] = o.TtlDuration + } + return toSerialize, nil +} + +func (o *CreateTokenPayload) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateTokenPayload := _CreateTokenPayload{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateTokenPayload) + + if err != nil { + return err + } + + *o = CreateTokenPayload(varCreateTokenPayload) + + return err +} + +type NullableCreateTokenPayload struct { + value *CreateTokenPayload + isSet bool +} + +func (v NullableCreateTokenPayload) Get() *CreateTokenPayload { + return v.value +} + +func (v *NullableCreateTokenPayload) Set(val *CreateTokenPayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateTokenPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateTokenPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateTokenPayload(val *CreateTokenPayload) *NullableCreateTokenPayload { + return &NullableCreateTokenPayload{value: val, isSet: true} +} + +func (v NullableCreateTokenPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateTokenPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_create_token_response.go b/services/modelserving/v1api/model_create_token_response.go new file mode 100644 index 000000000..6626e681e --- /dev/null +++ b/services/modelserving/v1api/model_create_token_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the CreateTokenResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateTokenResponse{} + +// CreateTokenResponse struct for CreateTokenResponse +type CreateTokenResponse struct { + Message *string `json:"message,omitempty"` + Token TokenCreated `json:"token"` +} + +type _CreateTokenResponse CreateTokenResponse + +// NewCreateTokenResponse instantiates a new CreateTokenResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateTokenResponse(token TokenCreated) *CreateTokenResponse { + this := CreateTokenResponse{} + this.Token = token + return &this +} + +// NewCreateTokenResponseWithDefaults instantiates a new CreateTokenResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateTokenResponseWithDefaults() *CreateTokenResponse { + this := CreateTokenResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *CreateTokenResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateTokenResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *CreateTokenResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *CreateTokenResponse) SetMessage(v string) { + o.Message = &v +} + +// GetToken returns the Token field value +func (o *CreateTokenResponse) GetToken() TokenCreated { + if o == nil { + var ret TokenCreated + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *CreateTokenResponse) GetTokenOk() (*TokenCreated, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *CreateTokenResponse) SetToken(v TokenCreated) { + o.Token = v +} + +func (o CreateTokenResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateTokenResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["token"] = o.Token + return toSerialize, nil +} + +func (o *CreateTokenResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "token", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateTokenResponse := _CreateTokenResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varCreateTokenResponse) + + if err != nil { + return err + } + + *o = CreateTokenResponse(varCreateTokenResponse) + + return err +} + +type NullableCreateTokenResponse struct { + value *CreateTokenResponse + isSet bool +} + +func (v NullableCreateTokenResponse) Get() *CreateTokenResponse { + return v.value +} + +func (v *NullableCreateTokenResponse) Set(val *CreateTokenResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCreateTokenResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateTokenResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateTokenResponse(val *CreateTokenResponse) *NullableCreateTokenResponse { + return &NullableCreateTokenResponse{value: val, isSet: true} +} + +func (v NullableCreateTokenResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateTokenResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_embedding_model_details.go b/services/modelserving/v1api/model_embedding_model_details.go new file mode 100644 index 000000000..7406a81a4 --- /dev/null +++ b/services/modelserving/v1api/model_embedding_model_details.go @@ -0,0 +1,420 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the EmbeddingModelDetails type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &EmbeddingModelDetails{} + +// EmbeddingModelDetails struct for EmbeddingModelDetails +type EmbeddingModelDetails struct { + Category string `json:"category"` + Description string `json:"description" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + DisplayedName string `json:"displayedName" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + // generated uuid to identify a model + Id string `json:"id"` + // huggingface name + Name string `json:"name" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + OutputDimension int64 `json:"outputDimension"` + Region string `json:"region"` + Skus []SKU `json:"skus"` + Tags []string `json:"tags,omitempty"` + // url of the model + Url string `json:"url" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` +} + +type _EmbeddingModelDetails EmbeddingModelDetails + +// NewEmbeddingModelDetails instantiates a new EmbeddingModelDetails object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewEmbeddingModelDetails(category string, description string, displayedName string, id string, name string, outputDimension int64, region string, skus []SKU, url string) *EmbeddingModelDetails { + this := EmbeddingModelDetails{} + this.Category = category + this.Description = description + this.DisplayedName = displayedName + this.Id = id + this.Name = name + this.OutputDimension = outputDimension + this.Region = region + this.Skus = skus + this.Url = url + return &this +} + +// NewEmbeddingModelDetailsWithDefaults instantiates a new EmbeddingModelDetails object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewEmbeddingModelDetailsWithDefaults() *EmbeddingModelDetails { + this := EmbeddingModelDetails{} + return &this +} + +// GetCategory returns the Category field value +func (o *EmbeddingModelDetails) GetCategory() string { + if o == nil { + var ret string + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *EmbeddingModelDetails) SetCategory(v string) { + o.Category = v +} + +// GetDescription returns the Description field value +func (o *EmbeddingModelDetails) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *EmbeddingModelDetails) SetDescription(v string) { + o.Description = v +} + +// GetDisplayedName returns the DisplayedName field value +func (o *EmbeddingModelDetails) GetDisplayedName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayedName +} + +// GetDisplayedNameOk returns a tuple with the DisplayedName field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetDisplayedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayedName, true +} + +// SetDisplayedName sets field value +func (o *EmbeddingModelDetails) SetDisplayedName(v string) { + o.DisplayedName = v +} + +// GetId returns the Id field value +func (o *EmbeddingModelDetails) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *EmbeddingModelDetails) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *EmbeddingModelDetails) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *EmbeddingModelDetails) SetName(v string) { + o.Name = v +} + +// GetOutputDimension returns the OutputDimension field value +func (o *EmbeddingModelDetails) GetOutputDimension() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.OutputDimension +} + +// GetOutputDimensionOk returns a tuple with the OutputDimension field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetOutputDimensionOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.OutputDimension, true +} + +// SetOutputDimension sets field value +func (o *EmbeddingModelDetails) SetOutputDimension(v int64) { + o.OutputDimension = v +} + +// GetRegion returns the Region field value +func (o *EmbeddingModelDetails) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *EmbeddingModelDetails) SetRegion(v string) { + o.Region = v +} + +// GetSkus returns the Skus field value +func (o *EmbeddingModelDetails) GetSkus() []SKU { + if o == nil { + var ret []SKU + return ret + } + + return o.Skus +} + +// GetSkusOk returns a tuple with the Skus field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetSkusOk() ([]SKU, bool) { + if o == nil { + return nil, false + } + return o.Skus, true +} + +// SetSkus sets field value +func (o *EmbeddingModelDetails) SetSkus(v []SKU) { + o.Skus = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *EmbeddingModelDetails) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *EmbeddingModelDetails) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *EmbeddingModelDetails) SetTags(v []string) { + o.Tags = v +} + +// GetUrl returns the Url field value +func (o *EmbeddingModelDetails) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *EmbeddingModelDetails) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *EmbeddingModelDetails) SetUrl(v string) { + o.Url = v +} + +func (o EmbeddingModelDetails) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o EmbeddingModelDetails) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["category"] = o.Category + toSerialize["description"] = o.Description + toSerialize["displayedName"] = o.DisplayedName + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["outputDimension"] = o.OutputDimension + toSerialize["region"] = o.Region + toSerialize["skus"] = o.Skus + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *EmbeddingModelDetails) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "category", + "description", + "displayedName", + "id", + "name", + "outputDimension", + "region", + "skus", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varEmbeddingModelDetails := _EmbeddingModelDetails{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varEmbeddingModelDetails) + + if err != nil { + return err + } + + *o = EmbeddingModelDetails(varEmbeddingModelDetails) + + return err +} + +type NullableEmbeddingModelDetails struct { + value *EmbeddingModelDetails + isSet bool +} + +func (v NullableEmbeddingModelDetails) Get() *EmbeddingModelDetails { + return v.value +} + +func (v *NullableEmbeddingModelDetails) Set(val *EmbeddingModelDetails) { + v.value = val + v.isSet = true +} + +func (v NullableEmbeddingModelDetails) IsSet() bool { + return v.isSet +} + +func (v *NullableEmbeddingModelDetails) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEmbeddingModelDetails(val *EmbeddingModelDetails) *NullableEmbeddingModelDetails { + return &NullableEmbeddingModelDetails{value: val, isSet: true} +} + +func (v NullableEmbeddingModelDetails) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEmbeddingModelDetails) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_error_message_response.go b/services/modelserving/v1api/model_error_message_response.go new file mode 100644 index 000000000..eb7c942fa --- /dev/null +++ b/services/modelserving/v1api/model_error_message_response.go @@ -0,0 +1,161 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the ErrorMessageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ErrorMessageResponse{} + +// ErrorMessageResponse struct for ErrorMessageResponse +type ErrorMessageResponse struct { + Error *string `json:"error,omitempty"` + Message *string `json:"message,omitempty"` +} + +// NewErrorMessageResponse instantiates a new ErrorMessageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewErrorMessageResponse() *ErrorMessageResponse { + this := ErrorMessageResponse{} + return &this +} + +// NewErrorMessageResponseWithDefaults instantiates a new ErrorMessageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewErrorMessageResponseWithDefaults() *ErrorMessageResponse { + this := ErrorMessageResponse{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *ErrorMessageResponse) SetError(v string) { + o.Error = &v +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ErrorMessageResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ErrorMessageResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ErrorMessageResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ErrorMessageResponse) SetMessage(v string) { + o.Message = &v +} + +func (o ErrorMessageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ErrorMessageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableErrorMessageResponse struct { + value *ErrorMessageResponse + isSet bool +} + +func (v NullableErrorMessageResponse) Get() *ErrorMessageResponse { + return v.value +} + +func (v *NullableErrorMessageResponse) Set(val *ErrorMessageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableErrorMessageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableErrorMessageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableErrorMessageResponse(val *ErrorMessageResponse) *NullableErrorMessageResponse { + return &NullableErrorMessageResponse{value: val, isSet: true} +} + +func (v NullableErrorMessageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableErrorMessageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_get_chat_model_response.go b/services/modelserving/v1api/model_get_chat_model_response.go new file mode 100644 index 000000000..a609c5ebd --- /dev/null +++ b/services/modelserving/v1api/model_get_chat_model_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetChatModelResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetChatModelResponse{} + +// GetChatModelResponse struct for GetChatModelResponse +type GetChatModelResponse struct { + Message *string `json:"message,omitempty"` + Model ChatModelDetails `json:"model"` +} + +type _GetChatModelResponse GetChatModelResponse + +// NewGetChatModelResponse instantiates a new GetChatModelResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetChatModelResponse(model ChatModelDetails) *GetChatModelResponse { + this := GetChatModelResponse{} + this.Model = model + return &this +} + +// NewGetChatModelResponseWithDefaults instantiates a new GetChatModelResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetChatModelResponseWithDefaults() *GetChatModelResponse { + this := GetChatModelResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetChatModelResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetChatModelResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetChatModelResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetChatModelResponse) SetMessage(v string) { + o.Message = &v +} + +// GetModel returns the Model field value +func (o *GetChatModelResponse) GetModel() ChatModelDetails { + if o == nil { + var ret ChatModelDetails + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *GetChatModelResponse) GetModelOk() (*ChatModelDetails, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *GetChatModelResponse) SetModel(v ChatModelDetails) { + o.Model = v +} + +func (o GetChatModelResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetChatModelResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["model"] = o.Model + return toSerialize, nil +} + +func (o *GetChatModelResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetChatModelResponse := _GetChatModelResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetChatModelResponse) + + if err != nil { + return err + } + + *o = GetChatModelResponse(varGetChatModelResponse) + + return err +} + +type NullableGetChatModelResponse struct { + value *GetChatModelResponse + isSet bool +} + +func (v NullableGetChatModelResponse) Get() *GetChatModelResponse { + return v.value +} + +func (v *NullableGetChatModelResponse) Set(val *GetChatModelResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetChatModelResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetChatModelResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetChatModelResponse(val *GetChatModelResponse) *NullableGetChatModelResponse { + return &NullableGetChatModelResponse{value: val, isSet: true} +} + +func (v NullableGetChatModelResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetChatModelResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_get_embeddings_model_resp.go b/services/modelserving/v1api/model_get_embeddings_model_resp.go new file mode 100644 index 000000000..b21edfdda --- /dev/null +++ b/services/modelserving/v1api/model_get_embeddings_model_resp.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetEmbeddingsModelResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetEmbeddingsModelResp{} + +// GetEmbeddingsModelResp struct for GetEmbeddingsModelResp +type GetEmbeddingsModelResp struct { + Message *string `json:"message,omitempty"` + Model EmbeddingModelDetails `json:"model"` +} + +type _GetEmbeddingsModelResp GetEmbeddingsModelResp + +// NewGetEmbeddingsModelResp instantiates a new GetEmbeddingsModelResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetEmbeddingsModelResp(model EmbeddingModelDetails) *GetEmbeddingsModelResp { + this := GetEmbeddingsModelResp{} + this.Model = model + return &this +} + +// NewGetEmbeddingsModelRespWithDefaults instantiates a new GetEmbeddingsModelResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetEmbeddingsModelRespWithDefaults() *GetEmbeddingsModelResp { + this := GetEmbeddingsModelResp{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetEmbeddingsModelResp) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetEmbeddingsModelResp) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetEmbeddingsModelResp) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetEmbeddingsModelResp) SetMessage(v string) { + o.Message = &v +} + +// GetModel returns the Model field value +func (o *GetEmbeddingsModelResp) GetModel() EmbeddingModelDetails { + if o == nil { + var ret EmbeddingModelDetails + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *GetEmbeddingsModelResp) GetModelOk() (*EmbeddingModelDetails, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *GetEmbeddingsModelResp) SetModel(v EmbeddingModelDetails) { + o.Model = v +} + +func (o GetEmbeddingsModelResp) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetEmbeddingsModelResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["model"] = o.Model + return toSerialize, nil +} + +func (o *GetEmbeddingsModelResp) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetEmbeddingsModelResp := _GetEmbeddingsModelResp{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetEmbeddingsModelResp) + + if err != nil { + return err + } + + *o = GetEmbeddingsModelResp(varGetEmbeddingsModelResp) + + return err +} + +type NullableGetEmbeddingsModelResp struct { + value *GetEmbeddingsModelResp + isSet bool +} + +func (v NullableGetEmbeddingsModelResp) Get() *GetEmbeddingsModelResp { + return v.value +} + +func (v *NullableGetEmbeddingsModelResp) Set(val *GetEmbeddingsModelResp) { + v.value = val + v.isSet = true +} + +func (v NullableGetEmbeddingsModelResp) IsSet() bool { + return v.isSet +} + +func (v *NullableGetEmbeddingsModelResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetEmbeddingsModelResp(val *GetEmbeddingsModelResp) *NullableGetEmbeddingsModelResp { + return &NullableGetEmbeddingsModelResp{value: val, isSet: true} +} + +func (v NullableGetEmbeddingsModelResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetEmbeddingsModelResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_get_token_response.go b/services/modelserving/v1api/model_get_token_response.go new file mode 100644 index 000000000..c4fabd146 --- /dev/null +++ b/services/modelserving/v1api/model_get_token_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the GetTokenResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetTokenResponse{} + +// GetTokenResponse struct for GetTokenResponse +type GetTokenResponse struct { + Message *string `json:"message,omitempty"` + Token Token `json:"token"` +} + +type _GetTokenResponse GetTokenResponse + +// NewGetTokenResponse instantiates a new GetTokenResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetTokenResponse(token Token) *GetTokenResponse { + this := GetTokenResponse{} + this.Token = token + return &this +} + +// NewGetTokenResponseWithDefaults instantiates a new GetTokenResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetTokenResponseWithDefaults() *GetTokenResponse { + this := GetTokenResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *GetTokenResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetTokenResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *GetTokenResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *GetTokenResponse) SetMessage(v string) { + o.Message = &v +} + +// GetToken returns the Token field value +func (o *GetTokenResponse) GetToken() Token { + if o == nil { + var ret Token + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *GetTokenResponse) GetTokenOk() (*Token, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *GetTokenResponse) SetToken(v Token) { + o.Token = v +} + +func (o GetTokenResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetTokenResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["token"] = o.Token + return toSerialize, nil +} + +func (o *GetTokenResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "token", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGetTokenResponse := _GetTokenResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varGetTokenResponse) + + if err != nil { + return err + } + + *o = GetTokenResponse(varGetTokenResponse) + + return err +} + +type NullableGetTokenResponse struct { + value *GetTokenResponse + isSet bool +} + +func (v NullableGetTokenResponse) Get() *GetTokenResponse { + return v.value +} + +func (v *NullableGetTokenResponse) Set(val *GetTokenResponse) { + v.value = val + v.isSet = true +} + +func (v NullableGetTokenResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableGetTokenResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetTokenResponse(val *GetTokenResponse) *NullableGetTokenResponse { + return &NullableGetTokenResponse{value: val, isSet: true} +} + +func (v NullableGetTokenResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetTokenResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_list_models_response.go b/services/modelserving/v1api/model_list_models_response.go new file mode 100644 index 000000000..c63502992 --- /dev/null +++ b/services/modelserving/v1api/model_list_models_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListModelsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListModelsResponse{} + +// ListModelsResponse struct for ListModelsResponse +type ListModelsResponse struct { + Message *string `json:"message,omitempty"` + Models []Model `json:"models"` +} + +type _ListModelsResponse ListModelsResponse + +// NewListModelsResponse instantiates a new ListModelsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListModelsResponse(models []Model) *ListModelsResponse { + this := ListModelsResponse{} + this.Models = models + return &this +} + +// NewListModelsResponseWithDefaults instantiates a new ListModelsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListModelsResponseWithDefaults() *ListModelsResponse { + this := ListModelsResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ListModelsResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListModelsResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ListModelsResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ListModelsResponse) SetMessage(v string) { + o.Message = &v +} + +// GetModels returns the Models field value +func (o *ListModelsResponse) GetModels() []Model { + if o == nil { + var ret []Model + return ret + } + + return o.Models +} + +// GetModelsOk returns a tuple with the Models field value +// and a boolean to check if the value has been set. +func (o *ListModelsResponse) GetModelsOk() ([]Model, bool) { + if o == nil { + return nil, false + } + return o.Models, true +} + +// SetModels sets field value +func (o *ListModelsResponse) SetModels(v []Model) { + o.Models = v +} + +func (o ListModelsResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListModelsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["models"] = o.Models + return toSerialize, nil +} + +func (o *ListModelsResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "models", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListModelsResponse := _ListModelsResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListModelsResponse) + + if err != nil { + return err + } + + *o = ListModelsResponse(varListModelsResponse) + + return err +} + +type NullableListModelsResponse struct { + value *ListModelsResponse + isSet bool +} + +func (v NullableListModelsResponse) Get() *ListModelsResponse { + return v.value +} + +func (v *NullableListModelsResponse) Set(val *ListModelsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListModelsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListModelsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListModelsResponse(val *ListModelsResponse) *NullableListModelsResponse { + return &NullableListModelsResponse{value: val, isSet: true} +} + +func (v NullableListModelsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_list_token_resp.go b/services/modelserving/v1api/model_list_token_resp.go new file mode 100644 index 000000000..1746c2b00 --- /dev/null +++ b/services/modelserving/v1api/model_list_token_resp.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the ListTokenResp type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListTokenResp{} + +// ListTokenResp struct for ListTokenResp +type ListTokenResp struct { + Message *string `json:"message,omitempty"` + Tokens []Token `json:"tokens"` +} + +type _ListTokenResp ListTokenResp + +// NewListTokenResp instantiates a new ListTokenResp object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListTokenResp(tokens []Token) *ListTokenResp { + this := ListTokenResp{} + this.Tokens = tokens + return &this +} + +// NewListTokenRespWithDefaults instantiates a new ListTokenResp object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListTokenRespWithDefaults() *ListTokenResp { + this := ListTokenResp{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *ListTokenResp) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ListTokenResp) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *ListTokenResp) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *ListTokenResp) SetMessage(v string) { + o.Message = &v +} + +// GetTokens returns the Tokens field value +func (o *ListTokenResp) GetTokens() []Token { + if o == nil { + var ret []Token + return ret + } + + return o.Tokens +} + +// GetTokensOk returns a tuple with the Tokens field value +// and a boolean to check if the value has been set. +func (o *ListTokenResp) GetTokensOk() ([]Token, bool) { + if o == nil { + return nil, false + } + return o.Tokens, true +} + +// SetTokens sets field value +func (o *ListTokenResp) SetTokens(v []Token) { + o.Tokens = v +} + +func (o ListTokenResp) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListTokenResp) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["tokens"] = o.Tokens + return toSerialize, nil +} + +func (o *ListTokenResp) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "tokens", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListTokenResp := _ListTokenResp{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varListTokenResp) + + if err != nil { + return err + } + + *o = ListTokenResp(varListTokenResp) + + return err +} + +type NullableListTokenResp struct { + value *ListTokenResp + isSet bool +} + +func (v NullableListTokenResp) Get() *ListTokenResp { + return v.value +} + +func (v *NullableListTokenResp) Set(val *ListTokenResp) { + v.value = val + v.isSet = true +} + +func (v NullableListTokenResp) IsSet() bool { + return v.isSet +} + +func (v *NullableListTokenResp) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListTokenResp(val *ListTokenResp) *NullableListTokenResp { + return &NullableListTokenResp{value: val, isSet: true} +} + +func (v NullableListTokenResp) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListTokenResp) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_message_response.go b/services/modelserving/v1api/model_message_response.go new file mode 100644 index 000000000..31c7f0219 --- /dev/null +++ b/services/modelserving/v1api/model_message_response.go @@ -0,0 +1,125 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the MessageResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MessageResponse{} + +// MessageResponse struct for MessageResponse +type MessageResponse struct { + Message *string `json:"message,omitempty"` +} + +// NewMessageResponse instantiates a new MessageResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMessageResponse() *MessageResponse { + this := MessageResponse{} + return &this +} + +// NewMessageResponseWithDefaults instantiates a new MessageResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMessageResponseWithDefaults() *MessageResponse { + this := MessageResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *MessageResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MessageResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *MessageResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *MessageResponse) SetMessage(v string) { + o.Message = &v +} + +func (o MessageResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MessageResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + return toSerialize, nil +} + +type NullableMessageResponse struct { + value *MessageResponse + isSet bool +} + +func (v NullableMessageResponse) Get() *MessageResponse { + return v.value +} + +func (v *NullableMessageResponse) Set(val *MessageResponse) { + v.value = val + v.isSet = true +} + +func (v NullableMessageResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableMessageResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMessageResponse(val *MessageResponse) *NullableMessageResponse { + return &NullableMessageResponse{value: val, isSet: true} +} + +func (v NullableMessageResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMessageResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_model.go b/services/modelserving/v1api/model_model.go new file mode 100644 index 000000000..f885385fc --- /dev/null +++ b/services/modelserving/v1api/model_model.go @@ -0,0 +1,420 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the Model type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Model{} + +// Model struct for Model +type Model struct { + Category string `json:"category"` + Description string `json:"description" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + DisplayedName string `json:"displayedName" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + // generated uuid to identify a model + Id string `json:"id"` + // huggingface name + Name string `json:"name"` + Region string `json:"region"` + Skus []SKU `json:"skus"` + Tags []string `json:"tags,omitempty"` + Type string `json:"type"` + // url of the model + Url string `json:"url"` +} + +type _Model Model + +// NewModel instantiates a new Model object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModel(category string, description string, displayedName string, id string, name string, region string, skus []SKU, types string, url string) *Model { + this := Model{} + this.Category = category + this.Description = description + this.DisplayedName = displayedName + this.Id = id + this.Name = name + this.Region = region + this.Skus = skus + this.Type = types + this.Url = url + return &this +} + +// NewModelWithDefaults instantiates a new Model object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModelWithDefaults() *Model { + this := Model{} + return &this +} + +// GetCategory returns the Category field value +func (o *Model) GetCategory() string { + if o == nil { + var ret string + return ret + } + + return o.Category +} + +// GetCategoryOk returns a tuple with the Category field value +// and a boolean to check if the value has been set. +func (o *Model) GetCategoryOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Category, true +} + +// SetCategory sets field value +func (o *Model) SetCategory(v string) { + o.Category = v +} + +// GetDescription returns the Description field value +func (o *Model) GetDescription() string { + if o == nil { + var ret string + return ret + } + + return o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value +// and a boolean to check if the value has been set. +func (o *Model) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Description, true +} + +// SetDescription sets field value +func (o *Model) SetDescription(v string) { + o.Description = v +} + +// GetDisplayedName returns the DisplayedName field value +func (o *Model) GetDisplayedName() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayedName +} + +// GetDisplayedNameOk returns a tuple with the DisplayedName field value +// and a boolean to check if the value has been set. +func (o *Model) GetDisplayedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayedName, true +} + +// SetDisplayedName sets field value +func (o *Model) SetDisplayedName(v string) { + o.DisplayedName = v +} + +// GetId returns the Id field value +func (o *Model) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Model) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Model) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *Model) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Model) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Model) SetName(v string) { + o.Name = v +} + +// GetRegion returns the Region field value +func (o *Model) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *Model) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *Model) SetRegion(v string) { + o.Region = v +} + +// GetSkus returns the Skus field value +func (o *Model) GetSkus() []SKU { + if o == nil { + var ret []SKU + return ret + } + + return o.Skus +} + +// GetSkusOk returns a tuple with the Skus field value +// and a boolean to check if the value has been set. +func (o *Model) GetSkusOk() ([]SKU, bool) { + if o == nil { + return nil, false + } + return o.Skus, true +} + +// SetSkus sets field value +func (o *Model) SetSkus(v []SKU) { + o.Skus = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Model) GetTags() []string { + if o == nil || IsNil(o.Tags) { + var ret []string + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Model) GetTagsOk() ([]string, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Model) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []string and assigns it to the Tags field. +func (o *Model) SetTags(v []string) { + o.Tags = v +} + +// GetType returns the Type field value +func (o *Model) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Model) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Model) SetType(v string) { + o.Type = v +} + +// GetUrl returns the Url field value +func (o *Model) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Model) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Model) SetUrl(v string) { + o.Url = v +} + +func (o Model) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Model) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["category"] = o.Category + toSerialize["description"] = o.Description + toSerialize["displayedName"] = o.DisplayedName + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["region"] = o.Region + toSerialize["skus"] = o.Skus + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["type"] = o.Type + toSerialize["url"] = o.Url + return toSerialize, nil +} + +func (o *Model) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "category", + "description", + "displayedName", + "id", + "name", + "region", + "skus", + "type", + "url", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varModel := _Model{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varModel) + + if err != nil { + return err + } + + *o = Model(varModel) + + return err +} + +type NullableModel struct { + value *Model + isSet bool +} + +func (v NullableModel) Get() *Model { + return v.value +} + +func (v *NullableModel) Set(val *Model) { + v.value = val + v.isSet = true +} + +func (v NullableModel) IsSet() bool { + return v.isSet +} + +func (v *NullableModel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModel(val *Model) *NullableModel { + return &NullableModel{value: val, isSet: true} +} + +func (v NullableModel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_partial_update_token_payload.go b/services/modelserving/v1api/model_partial_update_token_payload.go new file mode 100644 index 000000000..6c2c1e980 --- /dev/null +++ b/services/modelserving/v1api/model_partial_update_token_payload.go @@ -0,0 +1,161 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "encoding/json" +) + +// checks if the PartialUpdateTokenPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PartialUpdateTokenPayload{} + +// PartialUpdateTokenPayload struct for PartialUpdateTokenPayload +type PartialUpdateTokenPayload struct { + Description *string `json:"description,omitempty" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + Name *string `json:"name,omitempty" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` +} + +// NewPartialUpdateTokenPayload instantiates a new PartialUpdateTokenPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPartialUpdateTokenPayload() *PartialUpdateTokenPayload { + this := PartialUpdateTokenPayload{} + return &this +} + +// NewPartialUpdateTokenPayloadWithDefaults instantiates a new PartialUpdateTokenPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPartialUpdateTokenPayloadWithDefaults() *PartialUpdateTokenPayload { + this := PartialUpdateTokenPayload{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PartialUpdateTokenPayload) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateTokenPayload) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PartialUpdateTokenPayload) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PartialUpdateTokenPayload) SetDescription(v string) { + o.Description = &v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PartialUpdateTokenPayload) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PartialUpdateTokenPayload) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PartialUpdateTokenPayload) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PartialUpdateTokenPayload) SetName(v string) { + o.Name = &v +} + +func (o PartialUpdateTokenPayload) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PartialUpdateTokenPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + return toSerialize, nil +} + +type NullablePartialUpdateTokenPayload struct { + value *PartialUpdateTokenPayload + isSet bool +} + +func (v NullablePartialUpdateTokenPayload) Get() *PartialUpdateTokenPayload { + return v.value +} + +func (v *NullablePartialUpdateTokenPayload) Set(val *PartialUpdateTokenPayload) { + v.value = val + v.isSet = true +} + +func (v NullablePartialUpdateTokenPayload) IsSet() bool { + return v.isSet +} + +func (v *NullablePartialUpdateTokenPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePartialUpdateTokenPayload(val *PartialUpdateTokenPayload) *NullablePartialUpdateTokenPayload { + return &NullablePartialUpdateTokenPayload{value: val, isSet: true} +} + +func (v NullablePartialUpdateTokenPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePartialUpdateTokenPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_sku.go b/services/modelserving/v1api/model_sku.go new file mode 100644 index 000000000..a3e7c81bf --- /dev/null +++ b/services/modelserving/v1api/model_sku.go @@ -0,0 +1,229 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the SKU type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SKU{} + +// SKU struct for SKU +type SKU struct { + Description *string `json:"description,omitempty"` + Id string `json:"id"` + Type *string `json:"type,omitempty"` +} + +type _SKU SKU + +// NewSKU instantiates a new SKU object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSKU(id string) *SKU { + this := SKU{} + this.Id = id + return &this +} + +// NewSKUWithDefaults instantiates a new SKU object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSKUWithDefaults() *SKU { + this := SKU{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *SKU) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *SKU) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *SKU) SetDescription(v string) { + o.Description = &v +} + +// GetId returns the Id field value +func (o *SKU) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SKU) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SKU) SetId(v string) { + o.Id = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *SKU) GetType() string { + if o == nil || IsNil(o.Type) { + var ret string + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SKU) GetTypeOk() (*string, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *SKU) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *SKU) SetType(v string) { + o.Type = &v +} + +func (o SKU) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SKU) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["id"] = o.Id + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + return toSerialize, nil +} + +func (o *SKU) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSKU := _SKU{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varSKU) + + if err != nil { + return err + } + + *o = SKU(varSKU) + + return err +} + +type NullableSKU struct { + value *SKU + isSet bool +} + +func (v NullableSKU) Get() *SKU { + return v.value +} + +func (v *NullableSKU) Set(val *SKU) { + v.value = val + v.isSet = true +} + +func (v NullableSKU) IsSet() bool { + return v.isSet +} + +func (v *NullableSKU) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSKU(val *SKU) *NullableSKU { + return &NullableSKU{value: val, isSet: true} +} + +func (v NullableSKU) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSKU) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_token.go b/services/modelserving/v1api/model_token.go new file mode 100644 index 000000000..28111af9a --- /dev/null +++ b/services/modelserving/v1api/model_token.go @@ -0,0 +1,306 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "time" +) + +// checks if the Token type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Token{} + +// Token struct for Token +type Token struct { + Description *string `json:"description,omitempty" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + Id string `json:"id"` + Name string `json:"name" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + Region string `json:"region"` + State string `json:"state"` + ValidUntil time.Time `json:"validUntil"` +} + +type _Token Token + +// NewToken instantiates a new Token object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewToken(id string, name string, region string, state string, validUntil time.Time) *Token { + this := Token{} + this.Id = id + this.Name = name + this.Region = region + this.State = state + this.ValidUntil = validUntil + return &this +} + +// NewTokenWithDefaults instantiates a new Token object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTokenWithDefaults() *Token { + this := Token{} + return &this +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Token) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Token) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Token) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Token) SetDescription(v string) { + o.Description = &v +} + +// GetId returns the Id field value +func (o *Token) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Token) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Token) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *Token) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Token) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Token) SetName(v string) { + o.Name = v +} + +// GetRegion returns the Region field value +func (o *Token) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *Token) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *Token) SetRegion(v string) { + o.Region = v +} + +// GetState returns the State field value +func (o *Token) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *Token) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *Token) SetState(v string) { + o.State = v +} + +// GetValidUntil returns the ValidUntil field value +func (o *Token) GetValidUntil() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.ValidUntil +} + +// GetValidUntilOk returns a tuple with the ValidUntil field value +// and a boolean to check if the value has been set. +func (o *Token) GetValidUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.ValidUntil, true +} + +// SetValidUntil sets field value +func (o *Token) SetValidUntil(v time.Time) { + o.ValidUntil = v +} + +func (o Token) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Token) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["region"] = o.Region + toSerialize["state"] = o.State + toSerialize["validUntil"] = o.ValidUntil + return toSerialize, nil +} + +func (o *Token) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "name", + "region", + "state", + "validUntil", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varToken := _Token{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varToken) + + if err != nil { + return err + } + + *o = Token(varToken) + + return err +} + +type NullableToken struct { + value *Token + isSet bool +} + +func (v NullableToken) Get() *Token { + return v.value +} + +func (v *NullableToken) Set(val *Token) { + v.value = val + v.isSet = true +} + +func (v NullableToken) IsSet() bool { + return v.isSet +} + +func (v *NullableToken) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableToken(val *Token) *NullableToken { + return &NullableToken{value: val, isSet: true} +} + +func (v NullableToken) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableToken) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_token_created.go b/services/modelserving/v1api/model_token_created.go new file mode 100644 index 000000000..1c48caaea --- /dev/null +++ b/services/modelserving/v1api/model_token_created.go @@ -0,0 +1,334 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "time" +) + +// checks if the TokenCreated type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenCreated{} + +// TokenCreated struct for TokenCreated +type TokenCreated struct { + Content string `json:"content" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + Description *string `json:"description,omitempty" validate:"regexp=^[0-9a-zA-Z\\\\s.:\\/\\\\-]+$"` + Id string `json:"id"` + Name string `json:"name" validate:"regexp=^[0-9a-zA-Z\\\\s_-]+$"` + Region string `json:"region"` + State string `json:"state"` + ValidUntil time.Time `json:"validUntil"` +} + +type _TokenCreated TokenCreated + +// NewTokenCreated instantiates a new TokenCreated object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTokenCreated(content string, id string, name string, region string, state string, validUntil time.Time) *TokenCreated { + this := TokenCreated{} + this.Content = content + this.Id = id + this.Name = name + this.Region = region + this.State = state + this.ValidUntil = validUntil + return &this +} + +// NewTokenCreatedWithDefaults instantiates a new TokenCreated object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTokenCreatedWithDefaults() *TokenCreated { + this := TokenCreated{} + return &this +} + +// GetContent returns the Content field value +func (o *TokenCreated) GetContent() string { + if o == nil { + var ret string + return ret + } + + return o.Content +} + +// GetContentOk returns a tuple with the Content field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetContentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Content, true +} + +// SetContent sets field value +func (o *TokenCreated) SetContent(v string) { + o.Content = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *TokenCreated) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *TokenCreated) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *TokenCreated) SetDescription(v string) { + o.Description = &v +} + +// GetId returns the Id field value +func (o *TokenCreated) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *TokenCreated) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *TokenCreated) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *TokenCreated) SetName(v string) { + o.Name = v +} + +// GetRegion returns the Region field value +func (o *TokenCreated) GetRegion() string { + if o == nil { + var ret string + return ret + } + + return o.Region +} + +// GetRegionOk returns a tuple with the Region field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetRegionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Region, true +} + +// SetRegion sets field value +func (o *TokenCreated) SetRegion(v string) { + o.Region = v +} + +// GetState returns the State field value +func (o *TokenCreated) GetState() string { + if o == nil { + var ret string + return ret + } + + return o.State +} + +// GetStateOk returns a tuple with the State field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetStateOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.State, true +} + +// SetState sets field value +func (o *TokenCreated) SetState(v string) { + o.State = v +} + +// GetValidUntil returns the ValidUntil field value +func (o *TokenCreated) GetValidUntil() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.ValidUntil +} + +// GetValidUntilOk returns a tuple with the ValidUntil field value +// and a boolean to check if the value has been set. +func (o *TokenCreated) GetValidUntilOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.ValidUntil, true +} + +// SetValidUntil sets field value +func (o *TokenCreated) SetValidUntil(v time.Time) { + o.ValidUntil = v +} + +func (o TokenCreated) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenCreated) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["content"] = o.Content + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["region"] = o.Region + toSerialize["state"] = o.State + toSerialize["validUntil"] = o.ValidUntil + return toSerialize, nil +} + +func (o *TokenCreated) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "content", + "id", + "name", + "region", + "state", + "validUntil", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varTokenCreated := _TokenCreated{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varTokenCreated) + + if err != nil { + return err + } + + *o = TokenCreated(varTokenCreated) + + return err +} + +type NullableTokenCreated struct { + value *TokenCreated + isSet bool +} + +func (v NullableTokenCreated) Get() *TokenCreated { + return v.value +} + +func (v *NullableTokenCreated) Set(val *TokenCreated) { + v.value = val + v.isSet = true +} + +func (v NullableTokenCreated) IsSet() bool { + return v.isSet +} + +func (v *NullableTokenCreated) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTokenCreated(val *TokenCreated) *NullableTokenCreated { + return &NullableTokenCreated{value: val, isSet: true} +} + +func (v NullableTokenCreated) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTokenCreated) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/model_update_token_response.go b/services/modelserving/v1api/model_update_token_response.go new file mode 100644 index 000000000..668842b98 --- /dev/null +++ b/services/modelserving/v1api/model_update_token_response.go @@ -0,0 +1,193 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" +) + +// checks if the UpdateTokenResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateTokenResponse{} + +// UpdateTokenResponse struct for UpdateTokenResponse +type UpdateTokenResponse struct { + Message *string `json:"message,omitempty"` + Token Token `json:"token"` +} + +type _UpdateTokenResponse UpdateTokenResponse + +// NewUpdateTokenResponse instantiates a new UpdateTokenResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateTokenResponse(token Token) *UpdateTokenResponse { + this := UpdateTokenResponse{} + this.Token = token + return &this +} + +// NewUpdateTokenResponseWithDefaults instantiates a new UpdateTokenResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateTokenResponseWithDefaults() *UpdateTokenResponse { + this := UpdateTokenResponse{} + return &this +} + +// GetMessage returns the Message field value if set, zero value otherwise. +func (o *UpdateTokenResponse) GetMessage() string { + if o == nil || IsNil(o.Message) { + var ret string + return ret + } + return *o.Message +} + +// GetMessageOk returns a tuple with the Message field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateTokenResponse) GetMessageOk() (*string, bool) { + if o == nil || IsNil(o.Message) { + return nil, false + } + return o.Message, true +} + +// HasMessage returns a boolean if a field has been set. +func (o *UpdateTokenResponse) HasMessage() bool { + if o != nil && !IsNil(o.Message) { + return true + } + + return false +} + +// SetMessage gets a reference to the given string and assigns it to the Message field. +func (o *UpdateTokenResponse) SetMessage(v string) { + o.Message = &v +} + +// GetToken returns the Token field value +func (o *UpdateTokenResponse) GetToken() Token { + if o == nil { + var ret Token + return ret + } + + return o.Token +} + +// GetTokenOk returns a tuple with the Token field value +// and a boolean to check if the value has been set. +func (o *UpdateTokenResponse) GetTokenOk() (*Token, bool) { + if o == nil { + return nil, false + } + return &o.Token, true +} + +// SetToken sets field value +func (o *UpdateTokenResponse) SetToken(v Token) { + o.Token = v +} + +func (o UpdateTokenResponse) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateTokenResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Message) { + toSerialize["message"] = o.Message + } + toSerialize["token"] = o.Token + return toSerialize, nil +} + +func (o *UpdateTokenResponse) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "token", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateTokenResponse := _UpdateTokenResponse{} + + decoder := json.NewDecoder(bytes.NewReader(data)) + decoder.DisallowUnknownFields() + err = decoder.Decode(&varUpdateTokenResponse) + + if err != nil { + return err + } + + *o = UpdateTokenResponse(varUpdateTokenResponse) + + return err +} + +type NullableUpdateTokenResponse struct { + value *UpdateTokenResponse + isSet bool +} + +func (v NullableUpdateTokenResponse) Get() *UpdateTokenResponse { + return v.value +} + +func (v *NullableUpdateTokenResponse) Set(val *UpdateTokenResponse) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateTokenResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateTokenResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateTokenResponse(val *UpdateTokenResponse) *NullableUpdateTokenResponse { + return &NullableUpdateTokenResponse{value: val, isSet: true} +} + +func (v NullableUpdateTokenResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateTokenResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/services/modelserving/v1api/response.go b/services/modelserving/v1api/response.go new file mode 100644 index 000000000..38e3b4f8a --- /dev/null +++ b/services/modelserving/v1api/response.go @@ -0,0 +1,48 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "net/http" +) + +// APIResponse stores the API response returned by the server. +type APIResponse struct { + *http.Response `json:"-"` + Message string `json:"message,omitempty"` + // Operation is the name of the OpenAPI operation. + Operation string `json:"operation,omitempty"` + // RequestURL is the request URL. This value is always available, even if the + // embedded *http.Response is nil. + RequestURL string `json:"url,omitempty"` + // Method is the HTTP method used for the request. This value is always + // available, even if the embedded *http.Response is nil. + Method string `json:"method,omitempty"` + // Payload holds the contents of the response body (which may be nil or empty). + // This is provided here as the raw response.Body() reader will have already + // been drained. + Payload []byte `json:"-"` +} + +// NewAPIResponse returns a new APIResponse object. +func NewAPIResponse(r *http.Response) *APIResponse { + + response := &APIResponse{Response: r} + return response +} + +// NewAPIResponseWithError returns a new APIResponse object with the provided error message. +func NewAPIResponseWithError(errorMessage string) *APIResponse { + + response := &APIResponse{Message: errorMessage} + return response +} diff --git a/services/modelserving/v1api/utils.go b/services/modelserving/v1api/utils.go new file mode 100644 index 000000000..17f62a77a --- /dev/null +++ b/services/modelserving/v1api/utils.go @@ -0,0 +1,362 @@ +/* +STACKIT Model Serving API + +This API provides endpoints for the model serving api + +API version: 1.0.0 +Contact: model-serving@mail.schwarz +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package v1api + +import ( + "bytes" + "encoding/json" + "fmt" + "reflect" + "time" +) + +// PtrBool is a helper routine that returns a pointer to given boolean value. +func PtrBool(v bool) *bool { return &v } + +// PtrInt is a helper routine that returns a pointer to given integer value. +func PtrInt(v int) *int { return &v } + +// PtrInt32 is a helper routine that returns a pointer to given integer value. +func PtrInt32(v int32) *int32 { return &v } + +// PtrInt64 is a helper routine that returns a pointer to given integer value. +func PtrInt64(v int64) *int64 { return &v } + +// PtrFloat32 is a helper routine that returns a pointer to given float value. +func PtrFloat32(v float32) *float32 { return &v } + +// PtrFloat64 is a helper routine that returns a pointer to given float value. +func PtrFloat64(v float64) *float64 { return &v } + +// PtrString is a helper routine that returns a pointer to given string value. +func PtrString(v string) *string { return &v } + +// PtrTime is helper routine that returns a pointer to given Time value. +func PtrTime(v time.Time) *time.Time { return &v } + +type NullableBool struct { + value *bool + isSet bool +} + +func (v NullableBool) Get() *bool { + return v.value +} + +func (v *NullableBool) Set(val *bool) { + v.value = val + v.isSet = true +} + +func (v NullableBool) IsSet() bool { + return v.isSet +} + +func (v *NullableBool) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBool(val *bool) *NullableBool { + return &NullableBool{value: val, isSet: true} +} + +func (v NullableBool) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBool) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt struct { + value *int + isSet bool +} + +func (v NullableInt) Get() *int { + return v.value +} + +func (v *NullableInt) Set(val *int) { + v.value = val + v.isSet = true +} + +func (v NullableInt) IsSet() bool { + return v.isSet +} + +func (v *NullableInt) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt(val *int) *NullableInt { + return &NullableInt{value: val, isSet: true} +} + +func (v NullableInt) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt32 struct { + value *int32 + isSet bool +} + +func (v NullableInt32) Get() *int32 { + return v.value +} + +func (v *NullableInt32) Set(val *int32) { + v.value = val + v.isSet = true +} + +func (v NullableInt32) IsSet() bool { + return v.isSet +} + +func (v *NullableInt32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt32(val *int32) *NullableInt32 { + return &NullableInt32{value: val, isSet: true} +} + +func (v NullableInt32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableInt64 struct { + value *int64 + isSet bool +} + +func (v NullableInt64) Get() *int64 { + return v.value +} + +func (v *NullableInt64) Set(val *int64) { + v.value = val + v.isSet = true +} + +func (v NullableInt64) IsSet() bool { + return v.isSet +} + +func (v *NullableInt64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInt64(val *int64) *NullableInt64 { + return &NullableInt64{value: val, isSet: true} +} + +func (v NullableInt64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInt64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat32 struct { + value *float32 + isSet bool +} + +func (v NullableFloat32) Get() *float32 { + return v.value +} + +func (v *NullableFloat32) Set(val *float32) { + v.value = val + v.isSet = true +} + +func (v NullableFloat32) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat32) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat32(val *float32) *NullableFloat32 { + return &NullableFloat32{value: val, isSet: true} +} + +func (v NullableFloat32) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat32) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableFloat64 struct { + value *float64 + isSet bool +} + +func (v NullableFloat64) Get() *float64 { + return v.value +} + +func (v *NullableFloat64) Set(val *float64) { + v.value = val + v.isSet = true +} + +func (v NullableFloat64) IsSet() bool { + return v.isSet +} + +func (v *NullableFloat64) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableFloat64(val *float64) *NullableFloat64 { + return &NullableFloat64{value: val, isSet: true} +} + +func (v NullableFloat64) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableFloat64) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableString struct { + value *string + isSet bool +} + +func (v NullableString) Get() *string { + return v.value +} + +func (v *NullableString) Set(val *string) { + v.value = val + v.isSet = true +} + +func (v NullableString) IsSet() bool { + return v.isSet +} + +func (v *NullableString) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableString(val *string) *NullableString { + return &NullableString{value: val, isSet: true} +} + +func (v NullableString) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableString) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +type NullableTime struct { + value *time.Time + isSet bool +} + +func (v NullableTime) Get() *time.Time { + return v.value +} + +func (v *NullableTime) Set(val *time.Time) { + v.value = val + v.isSet = true +} + +func (v NullableTime) IsSet() bool { + return v.isSet +} + +func (v *NullableTime) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTime(val *time.Time) *NullableTime { + return &NullableTime{value: val, isSet: true} +} + +func (v NullableTime) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTime) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} + +// A wrapper for strict JSON decoding +func newStrictDecoder(data []byte) *json.Decoder { + dec := json.NewDecoder(bytes.NewBuffer(data)) + dec.DisallowUnknownFields() + return dec +} + +// Prevent trying to import "fmt" +func reportError(format string, a ...interface{}) error { + return fmt.Errorf(format, a...) +} diff --git a/services/modelserving/wait/deprecation.go b/services/modelserving/wait/deprecation.go new file mode 100644 index 000000000..58f184c09 --- /dev/null +++ b/services/modelserving/wait/deprecation.go @@ -0,0 +1,2 @@ +// Deprecated: Will be removed after 2026-09-30. Move to the packages generated for each available API version instead +package wait