From d6af97ae0aa5a2ebf20542d4935aa2e68d108f43 Mon Sep 17 00:00:00 2001 From: Pavel Dmitriev Date: Wed, 15 May 2024 16:58:12 +0300 Subject: [PATCH] model_types tags fix --- model_types.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/model_types.go b/model_types.go index e0eb956..9a9b34f 100644 --- a/model_types.go +++ b/model_types.go @@ -138,10 +138,10 @@ type GetDownloadUriForModelVersionArtifactsResponse struct { } type SearchModelVersionsRequest struct { - Filter string - MaxResults int64 - OrderBy []string - PageToken string + Filter string `json:"filter,omitempty"` + MaxResults int64 `json:"max_results,omitempty"` + OrderBy []string `json:"order_by,omitempty"` + PageToken string `json:"page_token,omitempty"` } func (e *SearchModelVersionsRequest) serialize() []byte { @@ -202,10 +202,10 @@ func (e *TransitionModelVersionStageRequest) serialize() []byte { type TransitionModelVersionStageResponse GetModelVersionResponse type SearchRegisteredModelsRequest struct { - Filter string - MaxResults int64 - OrderBy []string - PageToken string + Filter string `json:"filter,omitempty"` + MaxResults int64 `json:"max_results,omitempty"` + OrderBy []string `json:"order_by,omitempty"` + PageToken string `json:"page_token,omitempty"` } func (e *SearchRegisteredModelsRequest) serialize() []byte {