v1api

package
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`)
	XmlCheck  = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`)
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func IsNil

func IsNil(i interface{}) bool

IsNil checks if an input is nil

func NewConfiguration

func NewConfiguration() *config.Configuration

NewConfiguration returns a new Configuration object

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given boolean value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	DefaultAPI DefaultAPI
	// contains filtered or unexported fields
}

APIClient manages communication with the STACKIT Model Serving API API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(opts ...config.ConfigurationOption) (*APIClient, error)

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 (*APIClient) GetConfig

func (c *APIClient) GetConfig() *config.Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIResponse

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:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResponse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type ApiCreateTokenRequest

type ApiCreateTokenRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiCreateTokenRequest) CreateTokenPayload

func (r ApiCreateTokenRequest) CreateTokenPayload(createTokenPayload CreateTokenPayload) ApiCreateTokenRequest

func (ApiCreateTokenRequest) Execute

type ApiDeleteTokenRequest

type ApiDeleteTokenRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiDeleteTokenRequest) Execute

type ApiGetChatModelRequest

type ApiGetChatModelRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetChatModelRequest) Execute

type ApiGetEmbeddingModelRequest

type ApiGetEmbeddingModelRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetEmbeddingModelRequest) Execute

type ApiGetTokenRequest

type ApiGetTokenRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiGetTokenRequest) Execute

func (r ApiGetTokenRequest) Execute() (*GetTokenResponse, error)

type ApiListModelsRequest

type ApiListModelsRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListModelsRequest) Execute

type ApiListTokensRequest

type ApiListTokensRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiListTokensRequest) Execute

func (r ApiListTokensRequest) Execute() (*ListTokenResp, error)

type ApiPartialUpdateTokenRequest

type ApiPartialUpdateTokenRequest struct {
	ApiService DefaultAPI
	// contains filtered or unexported fields
}

func (ApiPartialUpdateTokenRequest) Execute

func (ApiPartialUpdateTokenRequest) PartialUpdateTokenPayload

func (r ApiPartialUpdateTokenRequest) PartialUpdateTokenPayload(partialUpdateTokenPayload PartialUpdateTokenPayload) ApiPartialUpdateTokenRequest

type 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.:\\/\\\\-]+$"`
}

ChatModelDetails struct for ChatModelDetails

func NewChatModelDetails

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

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 NewChatModelDetailsWithDefaults

func NewChatModelDetailsWithDefaults() *ChatModelDetails

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 (*ChatModelDetails) GetBits

func (o *ChatModelDetails) GetBits() int32

GetBits returns the Bits field value if set, zero value otherwise.

func (*ChatModelDetails) GetBitsOk

func (o *ChatModelDetails) GetBitsOk() (*int32, bool)

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 (*ChatModelDetails) GetCategory

func (o *ChatModelDetails) GetCategory() string

GetCategory returns the Category field value

func (*ChatModelDetails) GetCategoryOk

func (o *ChatModelDetails) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetContextLength

func (o *ChatModelDetails) GetContextLength() int64

GetContextLength returns the ContextLength field value

func (*ChatModelDetails) GetContextLengthOk

func (o *ChatModelDetails) GetContextLengthOk() (*int64, bool)

GetContextLengthOk returns a tuple with the ContextLength field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetDescription

func (o *ChatModelDetails) GetDescription() string

GetDescription returns the Description field value

func (*ChatModelDetails) GetDescriptionOk

func (o *ChatModelDetails) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetDisplayedName

func (o *ChatModelDetails) GetDisplayedName() string

GetDisplayedName returns the DisplayedName field value

func (*ChatModelDetails) GetDisplayedNameOk

func (o *ChatModelDetails) GetDisplayedNameOk() (*string, bool)

GetDisplayedNameOk returns a tuple with the DisplayedName field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetId

func (o *ChatModelDetails) GetId() string

GetId returns the Id field value

func (*ChatModelDetails) GetIdOk

func (o *ChatModelDetails) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetName

func (o *ChatModelDetails) GetName() string

GetName returns the Name field value

func (*ChatModelDetails) GetNameOk

func (o *ChatModelDetails) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetQuantizationMethod

func (o *ChatModelDetails) GetQuantizationMethod() string

GetQuantizationMethod returns the QuantizationMethod field value if set, zero value otherwise.

func (*ChatModelDetails) GetQuantizationMethodOk

func (o *ChatModelDetails) GetQuantizationMethodOk() (*string, bool)

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 (*ChatModelDetails) GetRegion

func (o *ChatModelDetails) GetRegion() string

GetRegion returns the Region field value

func (*ChatModelDetails) GetRegionOk

func (o *ChatModelDetails) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetSize

func (o *ChatModelDetails) GetSize() int64

GetSize returns the Size field value

func (*ChatModelDetails) GetSizeOk

func (o *ChatModelDetails) GetSizeOk() (*int64, bool)

GetSizeOk returns a tuple with the Size field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetSkus

func (o *ChatModelDetails) GetSkus() []SKU

GetSkus returns the Skus field value

func (*ChatModelDetails) GetSkusOk

func (o *ChatModelDetails) GetSkusOk() ([]SKU, bool)

GetSkusOk returns a tuple with the Skus field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetTags

func (o *ChatModelDetails) GetTags() []string

GetTags returns the Tags field value

func (*ChatModelDetails) GetTagsOk

func (o *ChatModelDetails) GetTagsOk() ([]string, bool)

GetTagsOk returns a tuple with the Tags field value and a boolean to check if the value has been set.

func (*ChatModelDetails) GetUrl

func (o *ChatModelDetails) GetUrl() string

GetUrl returns the Url field value

func (*ChatModelDetails) GetUrlOk

func (o *ChatModelDetails) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*ChatModelDetails) HasBits

func (o *ChatModelDetails) HasBits() bool

HasBits returns a boolean if a field has been set.

func (*ChatModelDetails) HasQuantizationMethod

func (o *ChatModelDetails) HasQuantizationMethod() bool

HasQuantizationMethod returns a boolean if a field has been set.

func (ChatModelDetails) MarshalJSON

func (o ChatModelDetails) MarshalJSON() ([]byte, error)

func (*ChatModelDetails) SetBits

func (o *ChatModelDetails) SetBits(v int32)

SetBits gets a reference to the given int32 and assigns it to the Bits field.

func (*ChatModelDetails) SetCategory

func (o *ChatModelDetails) SetCategory(v string)

SetCategory sets field value

func (*ChatModelDetails) SetContextLength

func (o *ChatModelDetails) SetContextLength(v int64)

SetContextLength sets field value

func (*ChatModelDetails) SetDescription

func (o *ChatModelDetails) SetDescription(v string)

SetDescription sets field value

func (*ChatModelDetails) SetDisplayedName

func (o *ChatModelDetails) SetDisplayedName(v string)

SetDisplayedName sets field value

func (*ChatModelDetails) SetId

func (o *ChatModelDetails) SetId(v string)

SetId sets field value

func (*ChatModelDetails) SetName

func (o *ChatModelDetails) SetName(v string)

SetName sets field value

func (*ChatModelDetails) SetQuantizationMethod

func (o *ChatModelDetails) SetQuantizationMethod(v string)

SetQuantizationMethod gets a reference to the given string and assigns it to the QuantizationMethod field.

func (*ChatModelDetails) SetRegion

func (o *ChatModelDetails) SetRegion(v string)

SetRegion sets field value

func (*ChatModelDetails) SetSize

func (o *ChatModelDetails) SetSize(v int64)

SetSize sets field value

func (*ChatModelDetails) SetSkus

func (o *ChatModelDetails) SetSkus(v []SKU)

SetSkus sets field value

func (*ChatModelDetails) SetTags

func (o *ChatModelDetails) SetTags(v []string)

SetTags sets field value

func (*ChatModelDetails) SetUrl

func (o *ChatModelDetails) SetUrl(v string)

SetUrl sets field value

func (ChatModelDetails) ToMap

func (o ChatModelDetails) ToMap() (map[string]interface{}, error)

func (*ChatModelDetails) UnmarshalJSON

func (o *ChatModelDetails) UnmarshalJSON(data []byte) (err error)

type 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"`
}

CreateTokenPayload struct for CreateTokenPayload

func NewCreateTokenPayload

func NewCreateTokenPayload(name string) *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 NewCreateTokenPayloadWithDefaults

func NewCreateTokenPayloadWithDefaults() *CreateTokenPayload

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 (*CreateTokenPayload) GetDescription

func (o *CreateTokenPayload) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*CreateTokenPayload) GetDescriptionOk

func (o *CreateTokenPayload) GetDescriptionOk() (*string, bool)

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 (*CreateTokenPayload) GetName

func (o *CreateTokenPayload) GetName() string

GetName returns the Name field value

func (*CreateTokenPayload) GetNameOk

func (o *CreateTokenPayload) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*CreateTokenPayload) GetTtlDuration

func (o *CreateTokenPayload) GetTtlDuration() string

GetTtlDuration returns the TtlDuration field value if set, zero value otherwise.

func (*CreateTokenPayload) GetTtlDurationOk

func (o *CreateTokenPayload) GetTtlDurationOk() (*string, bool)

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 (*CreateTokenPayload) HasDescription

func (o *CreateTokenPayload) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*CreateTokenPayload) HasTtlDuration

func (o *CreateTokenPayload) HasTtlDuration() bool

HasTtlDuration returns a boolean if a field has been set.

func (CreateTokenPayload) MarshalJSON

func (o CreateTokenPayload) MarshalJSON() ([]byte, error)

func (*CreateTokenPayload) SetDescription

func (o *CreateTokenPayload) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*CreateTokenPayload) SetName

func (o *CreateTokenPayload) SetName(v string)

SetName sets field value

func (*CreateTokenPayload) SetTtlDuration

func (o *CreateTokenPayload) SetTtlDuration(v string)

SetTtlDuration gets a reference to the given string and assigns it to the TtlDuration field.

func (CreateTokenPayload) ToMap

func (o CreateTokenPayload) ToMap() (map[string]interface{}, error)

func (*CreateTokenPayload) UnmarshalJSON

func (o *CreateTokenPayload) UnmarshalJSON(data []byte) (err error)

type CreateTokenResponse

type CreateTokenResponse struct {
	Message *string      `json:"message,omitempty"`
	Token   TokenCreated `json:"token"`
}

CreateTokenResponse struct for CreateTokenResponse

func NewCreateTokenResponse

func NewCreateTokenResponse(token TokenCreated) *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 NewCreateTokenResponseWithDefaults

func NewCreateTokenResponseWithDefaults() *CreateTokenResponse

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 (*CreateTokenResponse) GetMessage

func (o *CreateTokenResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*CreateTokenResponse) GetMessageOk

func (o *CreateTokenResponse) GetMessageOk() (*string, bool)

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 (*CreateTokenResponse) GetToken

func (o *CreateTokenResponse) GetToken() TokenCreated

GetToken returns the Token field value

func (*CreateTokenResponse) GetTokenOk

func (o *CreateTokenResponse) GetTokenOk() (*TokenCreated, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (*CreateTokenResponse) HasMessage

func (o *CreateTokenResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (CreateTokenResponse) MarshalJSON

func (o CreateTokenResponse) MarshalJSON() ([]byte, error)

func (*CreateTokenResponse) SetMessage

func (o *CreateTokenResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*CreateTokenResponse) SetToken

func (o *CreateTokenResponse) SetToken(v TokenCreated)

SetToken sets field value

func (CreateTokenResponse) ToMap

func (o CreateTokenResponse) ToMap() (map[string]interface{}, error)

func (*CreateTokenResponse) UnmarshalJSON

func (o *CreateTokenResponse) UnmarshalJSON(data []byte) (err error)

type DefaultAPI

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)
}

type DefaultAPIService

type DefaultAPIService service

DefaultAPIService DefaultAPI service

func (*DefaultAPIService) CreateToken

func (a *DefaultAPIService) CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest

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 (*DefaultAPIService) CreateTokenExecute

Execute executes the request

@return CreateTokenResponse

func (*DefaultAPIService) DeleteToken

func (a *DefaultAPIService) DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest

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 (*DefaultAPIService) DeleteTokenExecute

func (a *DefaultAPIService) DeleteTokenExecute(r ApiDeleteTokenRequest) (*MessageResponse, error)

Execute executes the request

@return MessageResponse

func (*DefaultAPIService) GetChatModel

func (a *DefaultAPIService) GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest

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 (*DefaultAPIService) GetChatModelExecute

Execute executes the request

@return GetChatModelResponse

func (*DefaultAPIService) GetEmbeddingModel

func (a *DefaultAPIService) GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest

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 (*DefaultAPIService) GetEmbeddingModelExecute

Execute executes the request

@return GetEmbeddingsModelResp

func (*DefaultAPIService) GetToken

func (a *DefaultAPIService) GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest

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 (*DefaultAPIService) GetTokenExecute

func (a *DefaultAPIService) GetTokenExecute(r ApiGetTokenRequest) (*GetTokenResponse, error)

Execute executes the request

@return GetTokenResponse

func (*DefaultAPIService) ListModels

func (a *DefaultAPIService) ListModels(ctx context.Context, regionId string) ApiListModelsRequest

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 (*DefaultAPIService) ListModelsExecute

func (a *DefaultAPIService) ListModelsExecute(r ApiListModelsRequest) (*ListModelsResponse, error)

Execute executes the request

@return ListModelsResponse

func (*DefaultAPIService) ListTokens

func (a *DefaultAPIService) ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest

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 (*DefaultAPIService) ListTokensExecute

func (a *DefaultAPIService) ListTokensExecute(r ApiListTokensRequest) (*ListTokenResp, error)

Execute executes the request

@return ListTokenResp

func (*DefaultAPIService) PartialUpdateToken

func (a *DefaultAPIService) PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest

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 (*DefaultAPIService) PartialUpdateTokenExecute

func (a *DefaultAPIService) PartialUpdateTokenExecute(r ApiPartialUpdateTokenRequest) (*UpdateTokenResponse, error)

Execute executes the request

@return UpdateTokenResponse

type DefaultAPIServiceMock

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)
}

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.

func (DefaultAPIServiceMock) CreateToken

func (a DefaultAPIServiceMock) CreateToken(ctx context.Context, regionId string, projectId string) ApiCreateTokenRequest

func (DefaultAPIServiceMock) CreateTokenExecute

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 (DefaultAPIServiceMock) DeleteToken

func (a DefaultAPIServiceMock) DeleteToken(ctx context.Context, regionId string, projectId string, tId string) ApiDeleteTokenRequest

func (DefaultAPIServiceMock) DeleteTokenExecute

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 (DefaultAPIServiceMock) GetChatModel

func (a DefaultAPIServiceMock) GetChatModel(ctx context.Context, regionId string, modelId string) ApiGetChatModelRequest

func (DefaultAPIServiceMock) GetChatModelExecute

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 (DefaultAPIServiceMock) GetEmbeddingModel

func (a DefaultAPIServiceMock) GetEmbeddingModel(ctx context.Context, regionId string, modelId string) ApiGetEmbeddingModelRequest

func (DefaultAPIServiceMock) GetEmbeddingModelExecute

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 (DefaultAPIServiceMock) GetToken

func (a DefaultAPIServiceMock) GetToken(ctx context.Context, regionId string, projectId string, tId string) ApiGetTokenRequest

func (DefaultAPIServiceMock) GetTokenExecute

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 (DefaultAPIServiceMock) ListModels

func (a DefaultAPIServiceMock) ListModels(ctx context.Context, regionId string) ApiListModelsRequest

func (DefaultAPIServiceMock) ListModelsExecute

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 (DefaultAPIServiceMock) ListTokens

func (a DefaultAPIServiceMock) ListTokens(ctx context.Context, regionId string, projectId string) ApiListTokensRequest

func (DefaultAPIServiceMock) ListTokensExecute

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 (DefaultAPIServiceMock) PartialUpdateToken

func (a DefaultAPIServiceMock) PartialUpdateToken(ctx context.Context, regionId string, projectId string, tId string) ApiPartialUpdateTokenRequest

func (DefaultAPIServiceMock) PartialUpdateTokenExecute

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.

type 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.:\\/\\\\-]+$"`
}

EmbeddingModelDetails struct for EmbeddingModelDetails

func NewEmbeddingModelDetails

func NewEmbeddingModelDetails(category string, description string, displayedName string, id string, name string, outputDimension int64, region string, skus []SKU, url string) *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 NewEmbeddingModelDetailsWithDefaults

func NewEmbeddingModelDetailsWithDefaults() *EmbeddingModelDetails

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 (*EmbeddingModelDetails) GetCategory

func (o *EmbeddingModelDetails) GetCategory() string

GetCategory returns the Category field value

func (*EmbeddingModelDetails) GetCategoryOk

func (o *EmbeddingModelDetails) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetDescription

func (o *EmbeddingModelDetails) GetDescription() string

GetDescription returns the Description field value

func (*EmbeddingModelDetails) GetDescriptionOk

func (o *EmbeddingModelDetails) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetDisplayedName

func (o *EmbeddingModelDetails) GetDisplayedName() string

GetDisplayedName returns the DisplayedName field value

func (*EmbeddingModelDetails) GetDisplayedNameOk

func (o *EmbeddingModelDetails) GetDisplayedNameOk() (*string, bool)

GetDisplayedNameOk returns a tuple with the DisplayedName field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetId

func (o *EmbeddingModelDetails) GetId() string

GetId returns the Id field value

func (*EmbeddingModelDetails) GetIdOk

func (o *EmbeddingModelDetails) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetName

func (o *EmbeddingModelDetails) GetName() string

GetName returns the Name field value

func (*EmbeddingModelDetails) GetNameOk

func (o *EmbeddingModelDetails) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetOutputDimension

func (o *EmbeddingModelDetails) GetOutputDimension() int64

GetOutputDimension returns the OutputDimension field value

func (*EmbeddingModelDetails) GetOutputDimensionOk

func (o *EmbeddingModelDetails) GetOutputDimensionOk() (*int64, bool)

GetOutputDimensionOk returns a tuple with the OutputDimension field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetRegion

func (o *EmbeddingModelDetails) GetRegion() string

GetRegion returns the Region field value

func (*EmbeddingModelDetails) GetRegionOk

func (o *EmbeddingModelDetails) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetSkus

func (o *EmbeddingModelDetails) GetSkus() []SKU

GetSkus returns the Skus field value

func (*EmbeddingModelDetails) GetSkusOk

func (o *EmbeddingModelDetails) GetSkusOk() ([]SKU, bool)

GetSkusOk returns a tuple with the Skus field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) GetTags

func (o *EmbeddingModelDetails) GetTags() []string

GetTags returns the Tags field value if set, zero value otherwise.

func (*EmbeddingModelDetails) GetTagsOk

func (o *EmbeddingModelDetails) GetTagsOk() ([]string, bool)

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 (*EmbeddingModelDetails) GetUrl

func (o *EmbeddingModelDetails) GetUrl() string

GetUrl returns the Url field value

func (*EmbeddingModelDetails) GetUrlOk

func (o *EmbeddingModelDetails) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*EmbeddingModelDetails) HasTags

func (o *EmbeddingModelDetails) HasTags() bool

HasTags returns a boolean if a field has been set.

func (EmbeddingModelDetails) MarshalJSON

func (o EmbeddingModelDetails) MarshalJSON() ([]byte, error)

func (*EmbeddingModelDetails) SetCategory

func (o *EmbeddingModelDetails) SetCategory(v string)

SetCategory sets field value

func (*EmbeddingModelDetails) SetDescription

func (o *EmbeddingModelDetails) SetDescription(v string)

SetDescription sets field value

func (*EmbeddingModelDetails) SetDisplayedName

func (o *EmbeddingModelDetails) SetDisplayedName(v string)

SetDisplayedName sets field value

func (*EmbeddingModelDetails) SetId

func (o *EmbeddingModelDetails) SetId(v string)

SetId sets field value

func (*EmbeddingModelDetails) SetName

func (o *EmbeddingModelDetails) SetName(v string)

SetName sets field value

func (*EmbeddingModelDetails) SetOutputDimension

func (o *EmbeddingModelDetails) SetOutputDimension(v int64)

SetOutputDimension sets field value

func (*EmbeddingModelDetails) SetRegion

func (o *EmbeddingModelDetails) SetRegion(v string)

SetRegion sets field value

func (*EmbeddingModelDetails) SetSkus

func (o *EmbeddingModelDetails) SetSkus(v []SKU)

SetSkus sets field value

func (*EmbeddingModelDetails) SetTags

func (o *EmbeddingModelDetails) SetTags(v []string)

SetTags gets a reference to the given []string and assigns it to the Tags field.

func (*EmbeddingModelDetails) SetUrl

func (o *EmbeddingModelDetails) SetUrl(v string)

SetUrl sets field value

func (EmbeddingModelDetails) ToMap

func (o EmbeddingModelDetails) ToMap() (map[string]interface{}, error)

func (*EmbeddingModelDetails) UnmarshalJSON

func (o *EmbeddingModelDetails) UnmarshalJSON(data []byte) (err error)

type ErrorMessageResponse

type ErrorMessageResponse struct {
	Error   *string `json:"error,omitempty"`
	Message *string `json:"message,omitempty"`
}

ErrorMessageResponse struct for ErrorMessageResponse

func NewErrorMessageResponse

func NewErrorMessageResponse() *ErrorMessageResponse

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 NewErrorMessageResponseWithDefaults

func NewErrorMessageResponseWithDefaults() *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

func (*ErrorMessageResponse) GetError

func (o *ErrorMessageResponse) GetError() string

GetError returns the Error field value if set, zero value otherwise.

func (*ErrorMessageResponse) GetErrorOk

func (o *ErrorMessageResponse) GetErrorOk() (*string, bool)

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 (*ErrorMessageResponse) GetMessage

func (o *ErrorMessageResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ErrorMessageResponse) GetMessageOk

func (o *ErrorMessageResponse) GetMessageOk() (*string, bool)

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 (*ErrorMessageResponse) HasError

func (o *ErrorMessageResponse) HasError() bool

HasError returns a boolean if a field has been set.

func (*ErrorMessageResponse) HasMessage

func (o *ErrorMessageResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ErrorMessageResponse) MarshalJSON

func (o ErrorMessageResponse) MarshalJSON() ([]byte, error)

func (*ErrorMessageResponse) SetError

func (o *ErrorMessageResponse) SetError(v string)

SetError gets a reference to the given string and assigns it to the Error field.

func (*ErrorMessageResponse) SetMessage

func (o *ErrorMessageResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (ErrorMessageResponse) ToMap

func (o ErrorMessageResponse) ToMap() (map[string]interface{}, error)

type GetChatModelResponse

type GetChatModelResponse struct {
	Message *string          `json:"message,omitempty"`
	Model   ChatModelDetails `json:"model"`
}

GetChatModelResponse struct for GetChatModelResponse

func NewGetChatModelResponse

func NewGetChatModelResponse(model ChatModelDetails) *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 NewGetChatModelResponseWithDefaults

func NewGetChatModelResponseWithDefaults() *GetChatModelResponse

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 (*GetChatModelResponse) GetMessage

func (o *GetChatModelResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*GetChatModelResponse) GetMessageOk

func (o *GetChatModelResponse) GetMessageOk() (*string, bool)

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 (*GetChatModelResponse) GetModel

func (o *GetChatModelResponse) GetModel() ChatModelDetails

GetModel returns the Model field value

func (*GetChatModelResponse) GetModelOk

func (o *GetChatModelResponse) GetModelOk() (*ChatModelDetails, bool)

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*GetChatModelResponse) HasMessage

func (o *GetChatModelResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (GetChatModelResponse) MarshalJSON

func (o GetChatModelResponse) MarshalJSON() ([]byte, error)

func (*GetChatModelResponse) SetMessage

func (o *GetChatModelResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*GetChatModelResponse) SetModel

func (o *GetChatModelResponse) SetModel(v ChatModelDetails)

SetModel sets field value

func (GetChatModelResponse) ToMap

func (o GetChatModelResponse) ToMap() (map[string]interface{}, error)

func (*GetChatModelResponse) UnmarshalJSON

func (o *GetChatModelResponse) UnmarshalJSON(data []byte) (err error)

type GetEmbeddingsModelResp

type GetEmbeddingsModelResp struct {
	Message *string               `json:"message,omitempty"`
	Model   EmbeddingModelDetails `json:"model"`
}

GetEmbeddingsModelResp struct for GetEmbeddingsModelResp

func NewGetEmbeddingsModelResp

func NewGetEmbeddingsModelResp(model EmbeddingModelDetails) *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 NewGetEmbeddingsModelRespWithDefaults

func NewGetEmbeddingsModelRespWithDefaults() *GetEmbeddingsModelResp

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 (*GetEmbeddingsModelResp) GetMessage

func (o *GetEmbeddingsModelResp) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*GetEmbeddingsModelResp) GetMessageOk

func (o *GetEmbeddingsModelResp) GetMessageOk() (*string, bool)

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 (*GetEmbeddingsModelResp) GetModel

GetModel returns the Model field value

func (*GetEmbeddingsModelResp) GetModelOk

GetModelOk returns a tuple with the Model field value and a boolean to check if the value has been set.

func (*GetEmbeddingsModelResp) HasMessage

func (o *GetEmbeddingsModelResp) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (GetEmbeddingsModelResp) MarshalJSON

func (o GetEmbeddingsModelResp) MarshalJSON() ([]byte, error)

func (*GetEmbeddingsModelResp) SetMessage

func (o *GetEmbeddingsModelResp) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*GetEmbeddingsModelResp) SetModel

SetModel sets field value

func (GetEmbeddingsModelResp) ToMap

func (o GetEmbeddingsModelResp) ToMap() (map[string]interface{}, error)

func (*GetEmbeddingsModelResp) UnmarshalJSON

func (o *GetEmbeddingsModelResp) UnmarshalJSON(data []byte) (err error)

type GetTokenResponse

type GetTokenResponse struct {
	Message *string `json:"message,omitempty"`
	Token   Token   `json:"token"`
}

GetTokenResponse struct for GetTokenResponse

func NewGetTokenResponse

func NewGetTokenResponse(token Token) *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 NewGetTokenResponseWithDefaults

func NewGetTokenResponseWithDefaults() *GetTokenResponse

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 (*GetTokenResponse) GetMessage

func (o *GetTokenResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*GetTokenResponse) GetMessageOk

func (o *GetTokenResponse) GetMessageOk() (*string, bool)

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 (*GetTokenResponse) GetToken

func (o *GetTokenResponse) GetToken() Token

GetToken returns the Token field value

func (*GetTokenResponse) GetTokenOk

func (o *GetTokenResponse) GetTokenOk() (*Token, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (*GetTokenResponse) HasMessage

func (o *GetTokenResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (GetTokenResponse) MarshalJSON

func (o GetTokenResponse) MarshalJSON() ([]byte, error)

func (*GetTokenResponse) SetMessage

func (o *GetTokenResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*GetTokenResponse) SetToken

func (o *GetTokenResponse) SetToken(v Token)

SetToken sets field value

func (GetTokenResponse) ToMap

func (o GetTokenResponse) ToMap() (map[string]interface{}, error)

func (*GetTokenResponse) UnmarshalJSON

func (o *GetTokenResponse) UnmarshalJSON(data []byte) (err error)

type ListModelsResponse

type ListModelsResponse struct {
	Message *string `json:"message,omitempty"`
	Models  []Model `json:"models"`
}

ListModelsResponse struct for ListModelsResponse

func NewListModelsResponse

func NewListModelsResponse(models []Model) *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 NewListModelsResponseWithDefaults

func NewListModelsResponseWithDefaults() *ListModelsResponse

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 (*ListModelsResponse) GetMessage

func (o *ListModelsResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListModelsResponse) GetMessageOk

func (o *ListModelsResponse) GetMessageOk() (*string, bool)

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 (*ListModelsResponse) GetModels

func (o *ListModelsResponse) GetModels() []Model

GetModels returns the Models field value

func (*ListModelsResponse) GetModelsOk

func (o *ListModelsResponse) GetModelsOk() ([]Model, bool)

GetModelsOk returns a tuple with the Models field value and a boolean to check if the value has been set.

func (*ListModelsResponse) HasMessage

func (o *ListModelsResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ListModelsResponse) MarshalJSON

func (o ListModelsResponse) MarshalJSON() ([]byte, error)

func (*ListModelsResponse) SetMessage

func (o *ListModelsResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListModelsResponse) SetModels

func (o *ListModelsResponse) SetModels(v []Model)

SetModels sets field value

func (ListModelsResponse) ToMap

func (o ListModelsResponse) ToMap() (map[string]interface{}, error)

func (*ListModelsResponse) UnmarshalJSON

func (o *ListModelsResponse) UnmarshalJSON(data []byte) (err error)

type ListTokenResp

type ListTokenResp struct {
	Message *string `json:"message,omitempty"`
	Tokens  []Token `json:"tokens"`
}

ListTokenResp struct for ListTokenResp

func NewListTokenResp

func NewListTokenResp(tokens []Token) *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 NewListTokenRespWithDefaults

func NewListTokenRespWithDefaults() *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

func (*ListTokenResp) GetMessage

func (o *ListTokenResp) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*ListTokenResp) GetMessageOk

func (o *ListTokenResp) GetMessageOk() (*string, bool)

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 (*ListTokenResp) GetTokens

func (o *ListTokenResp) GetTokens() []Token

GetTokens returns the Tokens field value

func (*ListTokenResp) GetTokensOk

func (o *ListTokenResp) GetTokensOk() ([]Token, bool)

GetTokensOk returns a tuple with the Tokens field value and a boolean to check if the value has been set.

func (*ListTokenResp) HasMessage

func (o *ListTokenResp) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (ListTokenResp) MarshalJSON

func (o ListTokenResp) MarshalJSON() ([]byte, error)

func (*ListTokenResp) SetMessage

func (o *ListTokenResp) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*ListTokenResp) SetTokens

func (o *ListTokenResp) SetTokens(v []Token)

SetTokens sets field value

func (ListTokenResp) ToMap

func (o ListTokenResp) ToMap() (map[string]interface{}, error)

func (*ListTokenResp) UnmarshalJSON

func (o *ListTokenResp) UnmarshalJSON(data []byte) (err error)

type MappedNullable

type MappedNullable interface {
	ToMap() (map[string]interface{}, error)
}

type MessageResponse

type MessageResponse struct {
	Message *string `json:"message,omitempty"`
}

MessageResponse struct for MessageResponse

func NewMessageResponse

func NewMessageResponse() *MessageResponse

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 NewMessageResponseWithDefaults

func NewMessageResponseWithDefaults() *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

func (*MessageResponse) GetMessage

func (o *MessageResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*MessageResponse) GetMessageOk

func (o *MessageResponse) GetMessageOk() (*string, bool)

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 (*MessageResponse) HasMessage

func (o *MessageResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (MessageResponse) MarshalJSON

func (o MessageResponse) MarshalJSON() ([]byte, error)

func (*MessageResponse) SetMessage

func (o *MessageResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (MessageResponse) ToMap

func (o MessageResponse) ToMap() (map[string]interface{}, error)

type 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"`
}

Model struct for Model

func NewModel

func NewModel(category string, description string, displayedName string, id string, name string, region string, skus []SKU, types string, url string) *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 NewModelWithDefaults

func NewModelWithDefaults() *Model

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 (*Model) GetCategory

func (o *Model) GetCategory() string

GetCategory returns the Category field value

func (*Model) GetCategoryOk

func (o *Model) GetCategoryOk() (*string, bool)

GetCategoryOk returns a tuple with the Category field value and a boolean to check if the value has been set.

func (*Model) GetDescription

func (o *Model) GetDescription() string

GetDescription returns the Description field value

func (*Model) GetDescriptionOk

func (o *Model) GetDescriptionOk() (*string, bool)

GetDescriptionOk returns a tuple with the Description field value and a boolean to check if the value has been set.

func (*Model) GetDisplayedName

func (o *Model) GetDisplayedName() string

GetDisplayedName returns the DisplayedName field value

func (*Model) GetDisplayedNameOk

func (o *Model) GetDisplayedNameOk() (*string, bool)

GetDisplayedNameOk returns a tuple with the DisplayedName field value and a boolean to check if the value has been set.

func (*Model) GetId

func (o *Model) GetId() string

GetId returns the Id field value

func (*Model) GetIdOk

func (o *Model) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Model) GetName

func (o *Model) GetName() string

GetName returns the Name field value

func (*Model) GetNameOk

func (o *Model) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Model) GetRegion

func (o *Model) GetRegion() string

GetRegion returns the Region field value

func (*Model) GetRegionOk

func (o *Model) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*Model) GetSkus

func (o *Model) GetSkus() []SKU

GetSkus returns the Skus field value

func (*Model) GetSkusOk

func (o *Model) GetSkusOk() ([]SKU, bool)

GetSkusOk returns a tuple with the Skus field value and a boolean to check if the value has been set.

func (*Model) GetTags

func (o *Model) GetTags() []string

GetTags returns the Tags field value if set, zero value otherwise.

func (*Model) GetTagsOk

func (o *Model) GetTagsOk() ([]string, bool)

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 (*Model) GetType

func (o *Model) GetType() string

GetType returns the Type field value

func (*Model) GetTypeOk

func (o *Model) GetTypeOk() (*string, bool)

GetTypeOk returns a tuple with the Type field value and a boolean to check if the value has been set.

func (*Model) GetUrl

func (o *Model) GetUrl() string

GetUrl returns the Url field value

func (*Model) GetUrlOk

func (o *Model) GetUrlOk() (*string, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*Model) HasTags

func (o *Model) HasTags() bool

HasTags returns a boolean if a field has been set.

func (Model) MarshalJSON

func (o Model) MarshalJSON() ([]byte, error)

func (*Model) SetCategory

func (o *Model) SetCategory(v string)

SetCategory sets field value

func (*Model) SetDescription

func (o *Model) SetDescription(v string)

SetDescription sets field value

func (*Model) SetDisplayedName

func (o *Model) SetDisplayedName(v string)

SetDisplayedName sets field value

func (*Model) SetId

func (o *Model) SetId(v string)

SetId sets field value

func (*Model) SetName

func (o *Model) SetName(v string)

SetName sets field value

func (*Model) SetRegion

func (o *Model) SetRegion(v string)

SetRegion sets field value

func (*Model) SetSkus

func (o *Model) SetSkus(v []SKU)

SetSkus sets field value

func (*Model) SetTags

func (o *Model) SetTags(v []string)

SetTags gets a reference to the given []string and assigns it to the Tags field.

func (*Model) SetType

func (o *Model) SetType(v string)

SetType sets field value

func (*Model) SetUrl

func (o *Model) SetUrl(v string)

SetUrl sets field value

func (Model) ToMap

func (o Model) ToMap() (map[string]interface{}, error)

func (*Model) UnmarshalJSON

func (o *Model) UnmarshalJSON(data []byte) (err error)

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableChatModelDetails

type NullableChatModelDetails struct {
	// contains filtered or unexported fields
}

func NewNullableChatModelDetails

func NewNullableChatModelDetails(val *ChatModelDetails) *NullableChatModelDetails

func (NullableChatModelDetails) Get

func (NullableChatModelDetails) IsSet

func (v NullableChatModelDetails) IsSet() bool

func (NullableChatModelDetails) MarshalJSON

func (v NullableChatModelDetails) MarshalJSON() ([]byte, error)

func (*NullableChatModelDetails) Set

func (*NullableChatModelDetails) UnmarshalJSON

func (v *NullableChatModelDetails) UnmarshalJSON(src []byte) error

func (*NullableChatModelDetails) Unset

func (v *NullableChatModelDetails) Unset()

type NullableCreateTokenPayload

type NullableCreateTokenPayload struct {
	// contains filtered or unexported fields
}

func NewNullableCreateTokenPayload

func NewNullableCreateTokenPayload(val *CreateTokenPayload) *NullableCreateTokenPayload

func (NullableCreateTokenPayload) Get

func (NullableCreateTokenPayload) IsSet

func (v NullableCreateTokenPayload) IsSet() bool

func (NullableCreateTokenPayload) MarshalJSON

func (v NullableCreateTokenPayload) MarshalJSON() ([]byte, error)

func (*NullableCreateTokenPayload) Set

func (*NullableCreateTokenPayload) UnmarshalJSON

func (v *NullableCreateTokenPayload) UnmarshalJSON(src []byte) error

func (*NullableCreateTokenPayload) Unset

func (v *NullableCreateTokenPayload) Unset()

type NullableCreateTokenResponse

type NullableCreateTokenResponse struct {
	// contains filtered or unexported fields
}

func NewNullableCreateTokenResponse

func NewNullableCreateTokenResponse(val *CreateTokenResponse) *NullableCreateTokenResponse

func (NullableCreateTokenResponse) Get

func (NullableCreateTokenResponse) IsSet

func (NullableCreateTokenResponse) MarshalJSON

func (v NullableCreateTokenResponse) MarshalJSON() ([]byte, error)

func (*NullableCreateTokenResponse) Set

func (*NullableCreateTokenResponse) UnmarshalJSON

func (v *NullableCreateTokenResponse) UnmarshalJSON(src []byte) error

func (*NullableCreateTokenResponse) Unset

func (v *NullableCreateTokenResponse) Unset()

type NullableEmbeddingModelDetails

type NullableEmbeddingModelDetails struct {
	// contains filtered or unexported fields
}

func (NullableEmbeddingModelDetails) Get

func (NullableEmbeddingModelDetails) IsSet

func (NullableEmbeddingModelDetails) MarshalJSON

func (v NullableEmbeddingModelDetails) MarshalJSON() ([]byte, error)

func (*NullableEmbeddingModelDetails) Set

func (*NullableEmbeddingModelDetails) UnmarshalJSON

func (v *NullableEmbeddingModelDetails) UnmarshalJSON(src []byte) error

func (*NullableEmbeddingModelDetails) Unset

func (v *NullableEmbeddingModelDetails) Unset()

type NullableErrorMessageResponse

type NullableErrorMessageResponse struct {
	// contains filtered or unexported fields
}

func NewNullableErrorMessageResponse

func NewNullableErrorMessageResponse(val *ErrorMessageResponse) *NullableErrorMessageResponse

func (NullableErrorMessageResponse) Get

func (NullableErrorMessageResponse) IsSet

func (NullableErrorMessageResponse) MarshalJSON

func (v NullableErrorMessageResponse) MarshalJSON() ([]byte, error)

func (*NullableErrorMessageResponse) Set

func (*NullableErrorMessageResponse) UnmarshalJSON

func (v *NullableErrorMessageResponse) UnmarshalJSON(src []byte) error

func (*NullableErrorMessageResponse) Unset

func (v *NullableErrorMessageResponse) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableGetChatModelResponse

type NullableGetChatModelResponse struct {
	// contains filtered or unexported fields
}

func NewNullableGetChatModelResponse

func NewNullableGetChatModelResponse(val *GetChatModelResponse) *NullableGetChatModelResponse

func (NullableGetChatModelResponse) Get

func (NullableGetChatModelResponse) IsSet

func (NullableGetChatModelResponse) MarshalJSON

func (v NullableGetChatModelResponse) MarshalJSON() ([]byte, error)

func (*NullableGetChatModelResponse) Set

func (*NullableGetChatModelResponse) UnmarshalJSON

func (v *NullableGetChatModelResponse) UnmarshalJSON(src []byte) error

func (*NullableGetChatModelResponse) Unset

func (v *NullableGetChatModelResponse) Unset()

type NullableGetEmbeddingsModelResp

type NullableGetEmbeddingsModelResp struct {
	// contains filtered or unexported fields
}

func (NullableGetEmbeddingsModelResp) Get

func (NullableGetEmbeddingsModelResp) IsSet

func (NullableGetEmbeddingsModelResp) MarshalJSON

func (v NullableGetEmbeddingsModelResp) MarshalJSON() ([]byte, error)

func (*NullableGetEmbeddingsModelResp) Set

func (*NullableGetEmbeddingsModelResp) UnmarshalJSON

func (v *NullableGetEmbeddingsModelResp) UnmarshalJSON(src []byte) error

func (*NullableGetEmbeddingsModelResp) Unset

func (v *NullableGetEmbeddingsModelResp) Unset()

type NullableGetTokenResponse

type NullableGetTokenResponse struct {
	// contains filtered or unexported fields
}

func NewNullableGetTokenResponse

func NewNullableGetTokenResponse(val *GetTokenResponse) *NullableGetTokenResponse

func (NullableGetTokenResponse) Get

func (NullableGetTokenResponse) IsSet

func (v NullableGetTokenResponse) IsSet() bool

func (NullableGetTokenResponse) MarshalJSON

func (v NullableGetTokenResponse) MarshalJSON() ([]byte, error)

func (*NullableGetTokenResponse) Set

func (*NullableGetTokenResponse) UnmarshalJSON

func (v *NullableGetTokenResponse) UnmarshalJSON(src []byte) error

func (*NullableGetTokenResponse) Unset

func (v *NullableGetTokenResponse) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableListModelsResponse

type NullableListModelsResponse struct {
	// contains filtered or unexported fields
}

func NewNullableListModelsResponse

func NewNullableListModelsResponse(val *ListModelsResponse) *NullableListModelsResponse

func (NullableListModelsResponse) Get

func (NullableListModelsResponse) IsSet

func (v NullableListModelsResponse) IsSet() bool

func (NullableListModelsResponse) MarshalJSON

func (v NullableListModelsResponse) MarshalJSON() ([]byte, error)

func (*NullableListModelsResponse) Set

func (*NullableListModelsResponse) UnmarshalJSON

func (v *NullableListModelsResponse) UnmarshalJSON(src []byte) error

func (*NullableListModelsResponse) Unset

func (v *NullableListModelsResponse) Unset()

type NullableListTokenResp

type NullableListTokenResp struct {
	// contains filtered or unexported fields
}

func NewNullableListTokenResp

func NewNullableListTokenResp(val *ListTokenResp) *NullableListTokenResp

func (NullableListTokenResp) Get

func (NullableListTokenResp) IsSet

func (v NullableListTokenResp) IsSet() bool

func (NullableListTokenResp) MarshalJSON

func (v NullableListTokenResp) MarshalJSON() ([]byte, error)

func (*NullableListTokenResp) Set

func (v *NullableListTokenResp) Set(val *ListTokenResp)

func (*NullableListTokenResp) UnmarshalJSON

func (v *NullableListTokenResp) UnmarshalJSON(src []byte) error

func (*NullableListTokenResp) Unset

func (v *NullableListTokenResp) Unset()

type NullableMessageResponse

type NullableMessageResponse struct {
	// contains filtered or unexported fields
}

func NewNullableMessageResponse

func NewNullableMessageResponse(val *MessageResponse) *NullableMessageResponse

func (NullableMessageResponse) Get

func (NullableMessageResponse) IsSet

func (v NullableMessageResponse) IsSet() bool

func (NullableMessageResponse) MarshalJSON

func (v NullableMessageResponse) MarshalJSON() ([]byte, error)

func (*NullableMessageResponse) Set

func (*NullableMessageResponse) UnmarshalJSON

func (v *NullableMessageResponse) UnmarshalJSON(src []byte) error

func (*NullableMessageResponse) Unset

func (v *NullableMessageResponse) Unset()

type NullableModel

type NullableModel struct {
	// contains filtered or unexported fields
}

func NewNullableModel

func NewNullableModel(val *Model) *NullableModel

func (NullableModel) Get

func (v NullableModel) Get() *Model

func (NullableModel) IsSet

func (v NullableModel) IsSet() bool

func (NullableModel) MarshalJSON

func (v NullableModel) MarshalJSON() ([]byte, error)

func (*NullableModel) Set

func (v *NullableModel) Set(val *Model)

func (*NullableModel) UnmarshalJSON

func (v *NullableModel) UnmarshalJSON(src []byte) error

func (*NullableModel) Unset

func (v *NullableModel) Unset()

type NullablePartialUpdateTokenPayload

type NullablePartialUpdateTokenPayload struct {
	// contains filtered or unexported fields
}

func (NullablePartialUpdateTokenPayload) Get

func (NullablePartialUpdateTokenPayload) IsSet

func (NullablePartialUpdateTokenPayload) MarshalJSON

func (v NullablePartialUpdateTokenPayload) MarshalJSON() ([]byte, error)

func (*NullablePartialUpdateTokenPayload) Set

func (*NullablePartialUpdateTokenPayload) UnmarshalJSON

func (v *NullablePartialUpdateTokenPayload) UnmarshalJSON(src []byte) error

func (*NullablePartialUpdateTokenPayload) Unset

type NullableSKU

type NullableSKU struct {
	// contains filtered or unexported fields
}

func NewNullableSKU

func NewNullableSKU(val *SKU) *NullableSKU

func (NullableSKU) Get

func (v NullableSKU) Get() *SKU

func (NullableSKU) IsSet

func (v NullableSKU) IsSet() bool

func (NullableSKU) MarshalJSON

func (v NullableSKU) MarshalJSON() ([]byte, error)

func (*NullableSKU) Set

func (v *NullableSKU) Set(val *SKU)

func (*NullableSKU) UnmarshalJSON

func (v *NullableSKU) UnmarshalJSON(src []byte) error

func (*NullableSKU) Unset

func (v *NullableSKU) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableToken

type NullableToken struct {
	// contains filtered or unexported fields
}

func NewNullableToken

func NewNullableToken(val *Token) *NullableToken

func (NullableToken) Get

func (v NullableToken) Get() *Token

func (NullableToken) IsSet

func (v NullableToken) IsSet() bool

func (NullableToken) MarshalJSON

func (v NullableToken) MarshalJSON() ([]byte, error)

func (*NullableToken) Set

func (v *NullableToken) Set(val *Token)

func (*NullableToken) UnmarshalJSON

func (v *NullableToken) UnmarshalJSON(src []byte) error

func (*NullableToken) Unset

func (v *NullableToken) Unset()

type NullableTokenCreated

type NullableTokenCreated struct {
	// contains filtered or unexported fields
}

func NewNullableTokenCreated

func NewNullableTokenCreated(val *TokenCreated) *NullableTokenCreated

func (NullableTokenCreated) Get

func (NullableTokenCreated) IsSet

func (v NullableTokenCreated) IsSet() bool

func (NullableTokenCreated) MarshalJSON

func (v NullableTokenCreated) MarshalJSON() ([]byte, error)

func (*NullableTokenCreated) Set

func (v *NullableTokenCreated) Set(val *TokenCreated)

func (*NullableTokenCreated) UnmarshalJSON

func (v *NullableTokenCreated) UnmarshalJSON(src []byte) error

func (*NullableTokenCreated) Unset

func (v *NullableTokenCreated) Unset()

type NullableUpdateTokenResponse

type NullableUpdateTokenResponse struct {
	// contains filtered or unexported fields
}

func NewNullableUpdateTokenResponse

func NewNullableUpdateTokenResponse(val *UpdateTokenResponse) *NullableUpdateTokenResponse

func (NullableUpdateTokenResponse) Get

func (NullableUpdateTokenResponse) IsSet

func (NullableUpdateTokenResponse) MarshalJSON

func (v NullableUpdateTokenResponse) MarshalJSON() ([]byte, error)

func (*NullableUpdateTokenResponse) Set

func (*NullableUpdateTokenResponse) UnmarshalJSON

func (v *NullableUpdateTokenResponse) UnmarshalJSON(src []byte) error

func (*NullableUpdateTokenResponse) Unset

func (v *NullableUpdateTokenResponse) Unset()

type 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_-]+$"`
}

PartialUpdateTokenPayload struct for PartialUpdateTokenPayload

func NewPartialUpdateTokenPayload

func NewPartialUpdateTokenPayload() *PartialUpdateTokenPayload

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 NewPartialUpdateTokenPayloadWithDefaults

func NewPartialUpdateTokenPayloadWithDefaults() *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

func (*PartialUpdateTokenPayload) GetDescription

func (o *PartialUpdateTokenPayload) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*PartialUpdateTokenPayload) GetDescriptionOk

func (o *PartialUpdateTokenPayload) GetDescriptionOk() (*string, bool)

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 (*PartialUpdateTokenPayload) GetName

func (o *PartialUpdateTokenPayload) GetName() string

GetName returns the Name field value if set, zero value otherwise.

func (*PartialUpdateTokenPayload) GetNameOk

func (o *PartialUpdateTokenPayload) GetNameOk() (*string, bool)

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 (*PartialUpdateTokenPayload) HasDescription

func (o *PartialUpdateTokenPayload) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*PartialUpdateTokenPayload) HasName

func (o *PartialUpdateTokenPayload) HasName() bool

HasName returns a boolean if a field has been set.

func (PartialUpdateTokenPayload) MarshalJSON

func (o PartialUpdateTokenPayload) MarshalJSON() ([]byte, error)

func (*PartialUpdateTokenPayload) SetDescription

func (o *PartialUpdateTokenPayload) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*PartialUpdateTokenPayload) SetName

func (o *PartialUpdateTokenPayload) SetName(v string)

SetName gets a reference to the given string and assigns it to the Name field.

func (PartialUpdateTokenPayload) ToMap

func (o PartialUpdateTokenPayload) ToMap() (map[string]interface{}, error)

type SKU

type SKU struct {
	Description *string `json:"description,omitempty"`
	Id          string  `json:"id"`
	Type        *string `json:"type,omitempty"`
}

SKU struct for SKU

func NewSKU

func NewSKU(id string) *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 NewSKUWithDefaults

func NewSKUWithDefaults() *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

func (*SKU) GetDescription

func (o *SKU) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*SKU) GetDescriptionOk

func (o *SKU) GetDescriptionOk() (*string, bool)

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 (*SKU) GetId

func (o *SKU) GetId() string

GetId returns the Id field value

func (*SKU) GetIdOk

func (o *SKU) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*SKU) GetType

func (o *SKU) GetType() string

GetType returns the Type field value if set, zero value otherwise.

func (*SKU) GetTypeOk

func (o *SKU) GetTypeOk() (*string, bool)

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 (*SKU) HasDescription

func (o *SKU) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (*SKU) HasType

func (o *SKU) HasType() bool

HasType returns a boolean if a field has been set.

func (SKU) MarshalJSON

func (o SKU) MarshalJSON() ([]byte, error)

func (*SKU) SetDescription

func (o *SKU) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*SKU) SetId

func (o *SKU) SetId(v string)

SetId sets field value

func (*SKU) SetType

func (o *SKU) SetType(v string)

SetType gets a reference to the given string and assigns it to the Type field.

func (SKU) ToMap

func (o SKU) ToMap() (map[string]interface{}, error)

func (*SKU) UnmarshalJSON

func (o *SKU) UnmarshalJSON(data []byte) (err error)

type 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"`
}

Token struct for Token

func NewToken

func NewToken(id string, name string, region string, state string, validUntil time.Time) *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 NewTokenWithDefaults

func NewTokenWithDefaults() *Token

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 (*Token) GetDescription

func (o *Token) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*Token) GetDescriptionOk

func (o *Token) GetDescriptionOk() (*string, bool)

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 (*Token) GetId

func (o *Token) GetId() string

GetId returns the Id field value

func (*Token) GetIdOk

func (o *Token) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*Token) GetName

func (o *Token) GetName() string

GetName returns the Name field value

func (*Token) GetNameOk

func (o *Token) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*Token) GetRegion

func (o *Token) GetRegion() string

GetRegion returns the Region field value

func (*Token) GetRegionOk

func (o *Token) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*Token) GetState

func (o *Token) GetState() string

GetState returns the State field value

func (*Token) GetStateOk

func (o *Token) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*Token) GetValidUntil

func (o *Token) GetValidUntil() time.Time

GetValidUntil returns the ValidUntil field value

func (*Token) GetValidUntilOk

func (o *Token) GetValidUntilOk() (*time.Time, bool)

GetValidUntilOk returns a tuple with the ValidUntil field value and a boolean to check if the value has been set.

func (*Token) HasDescription

func (o *Token) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (Token) MarshalJSON

func (o Token) MarshalJSON() ([]byte, error)

func (*Token) SetDescription

func (o *Token) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*Token) SetId

func (o *Token) SetId(v string)

SetId sets field value

func (*Token) SetName

func (o *Token) SetName(v string)

SetName sets field value

func (*Token) SetRegion

func (o *Token) SetRegion(v string)

SetRegion sets field value

func (*Token) SetState

func (o *Token) SetState(v string)

SetState sets field value

func (*Token) SetValidUntil

func (o *Token) SetValidUntil(v time.Time)

SetValidUntil sets field value

func (Token) ToMap

func (o Token) ToMap() (map[string]interface{}, error)

func (*Token) UnmarshalJSON

func (o *Token) UnmarshalJSON(data []byte) (err error)

type 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"`
}

TokenCreated struct for TokenCreated

func NewTokenCreated

func NewTokenCreated(content string, id string, name string, region string, state string, validUntil time.Time) *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 NewTokenCreatedWithDefaults

func NewTokenCreatedWithDefaults() *TokenCreated

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 (*TokenCreated) GetContent

func (o *TokenCreated) GetContent() string

GetContent returns the Content field value

func (*TokenCreated) GetContentOk

func (o *TokenCreated) GetContentOk() (*string, bool)

GetContentOk returns a tuple with the Content field value and a boolean to check if the value has been set.

func (*TokenCreated) GetDescription

func (o *TokenCreated) GetDescription() string

GetDescription returns the Description field value if set, zero value otherwise.

func (*TokenCreated) GetDescriptionOk

func (o *TokenCreated) GetDescriptionOk() (*string, bool)

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 (*TokenCreated) GetId

func (o *TokenCreated) GetId() string

GetId returns the Id field value

func (*TokenCreated) GetIdOk

func (o *TokenCreated) GetIdOk() (*string, bool)

GetIdOk returns a tuple with the Id field value and a boolean to check if the value has been set.

func (*TokenCreated) GetName

func (o *TokenCreated) GetName() string

GetName returns the Name field value

func (*TokenCreated) GetNameOk

func (o *TokenCreated) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (*TokenCreated) GetRegion

func (o *TokenCreated) GetRegion() string

GetRegion returns the Region field value

func (*TokenCreated) GetRegionOk

func (o *TokenCreated) GetRegionOk() (*string, bool)

GetRegionOk returns a tuple with the Region field value and a boolean to check if the value has been set.

func (*TokenCreated) GetState

func (o *TokenCreated) GetState() string

GetState returns the State field value

func (*TokenCreated) GetStateOk

func (o *TokenCreated) GetStateOk() (*string, bool)

GetStateOk returns a tuple with the State field value and a boolean to check if the value has been set.

func (*TokenCreated) GetValidUntil

func (o *TokenCreated) GetValidUntil() time.Time

GetValidUntil returns the ValidUntil field value

func (*TokenCreated) GetValidUntilOk

func (o *TokenCreated) GetValidUntilOk() (*time.Time, bool)

GetValidUntilOk returns a tuple with the ValidUntil field value and a boolean to check if the value has been set.

func (*TokenCreated) HasDescription

func (o *TokenCreated) HasDescription() bool

HasDescription returns a boolean if a field has been set.

func (TokenCreated) MarshalJSON

func (o TokenCreated) MarshalJSON() ([]byte, error)

func (*TokenCreated) SetContent

func (o *TokenCreated) SetContent(v string)

SetContent sets field value

func (*TokenCreated) SetDescription

func (o *TokenCreated) SetDescription(v string)

SetDescription gets a reference to the given string and assigns it to the Description field.

func (*TokenCreated) SetId

func (o *TokenCreated) SetId(v string)

SetId sets field value

func (*TokenCreated) SetName

func (o *TokenCreated) SetName(v string)

SetName sets field value

func (*TokenCreated) SetRegion

func (o *TokenCreated) SetRegion(v string)

SetRegion sets field value

func (*TokenCreated) SetState

func (o *TokenCreated) SetState(v string)

SetState sets field value

func (*TokenCreated) SetValidUntil

func (o *TokenCreated) SetValidUntil(v time.Time)

SetValidUntil sets field value

func (TokenCreated) ToMap

func (o TokenCreated) ToMap() (map[string]interface{}, error)

func (*TokenCreated) UnmarshalJSON

func (o *TokenCreated) UnmarshalJSON(data []byte) (err error)

type UpdateTokenResponse

type UpdateTokenResponse struct {
	Message *string `json:"message,omitempty"`
	Token   Token   `json:"token"`
}

UpdateTokenResponse struct for UpdateTokenResponse

func NewUpdateTokenResponse

func NewUpdateTokenResponse(token Token) *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 NewUpdateTokenResponseWithDefaults

func NewUpdateTokenResponseWithDefaults() *UpdateTokenResponse

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 (*UpdateTokenResponse) GetMessage

func (o *UpdateTokenResponse) GetMessage() string

GetMessage returns the Message field value if set, zero value otherwise.

func (*UpdateTokenResponse) GetMessageOk

func (o *UpdateTokenResponse) GetMessageOk() (*string, bool)

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 (*UpdateTokenResponse) GetToken

func (o *UpdateTokenResponse) GetToken() Token

GetToken returns the Token field value

func (*UpdateTokenResponse) GetTokenOk

func (o *UpdateTokenResponse) GetTokenOk() (*Token, bool)

GetTokenOk returns a tuple with the Token field value and a boolean to check if the value has been set.

func (*UpdateTokenResponse) HasMessage

func (o *UpdateTokenResponse) HasMessage() bool

HasMessage returns a boolean if a field has been set.

func (UpdateTokenResponse) MarshalJSON

func (o UpdateTokenResponse) MarshalJSON() ([]byte, error)

func (*UpdateTokenResponse) SetMessage

func (o *UpdateTokenResponse) SetMessage(v string)

SetMessage gets a reference to the given string and assigns it to the Message field.

func (*UpdateTokenResponse) SetToken

func (o *UpdateTokenResponse) SetToken(v Token)

SetToken sets field value

func (UpdateTokenResponse) ToMap

func (o UpdateTokenResponse) ToMap() (map[string]interface{}, error)

func (*UpdateTokenResponse) UnmarshalJSON

func (o *UpdateTokenResponse) UnmarshalJSON(data []byte) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL