swagger

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ContextOAuth2 takes a oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKey takes an APIKey as authentication for the request
	ContextAPIKey = contextKey("apikey")
)

Functions

func CacheExpires

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

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

Types

type APIClient

type APIClient struct {
	AkApi *AkApiService

	DatasourceApi *DatasourceApiService

	FeatureEntityApi *FeatureEntityApiService

	FeatureViewApi *FeatureViewApiService

	FsModelApi *FsModelApiService

	FsProjectApi *FsProjectApiService

	FsTaskApi *FsTaskApiService

	SceneApi *SceneApiService

	TableMetaApi *TableMetaApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the Pairec Experiment Restful Api API v1.0.0 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) ChangeBasePath

func (c *APIClient) ChangeBasePath(path string)

Change base path to allow switching to mocks

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the swagger 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:"-"`
}

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

type Ak

type Ak struct {
	AccesskeyId     string `json:"accesskey_id"`
	AccesskeySecret string `json:"accesskey_secret"`
}

type AkApiService

type AkApiService service

func (*AkApiService) AkAkIdGet

func (a *AkApiService) AkAkIdGet(ctx context.Context, akId int64) (GetAkResponse, error)

AkApiService Get Ak By ak_id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param akId Ak Id to get ak info

@return InlineResponse20056

func (*AkApiService) AkAkIdPost

func (a *AkApiService) AkAkIdPost(ctx context.Context, body Ak, akId int64) (ModelApiResponse, *http.Response, error)

AkApiService update ak data

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body ak object that needs to be update
  • @param akId ID of ak to update

@return ModelApiResponse

func (*AkApiService) AkAllGet

AkApiService Get all ak

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20057

func (*AkApiService) AkPost

func (a *AkApiService) AkPost(ctx context.Context, body Ak) (Response, *http.Response, error)

AkApiService Create a new ak

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return InlineResponse20055

type BaseResponse

type BaseResponse struct {
	RequestId string `json:"request_id,omitempty"`
	Code      string `json:"code,omitempty"`
	Message   string `json:"message,omitempty"`
}

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type Configuration

type Configuration struct {
	BasePath      string            `json:"basePath,omitempty"`
	Host          string            `json:"host,omitempty"`
	Token         string            `json:"token,omitempty"`
	Scheme        string            `json:"scheme,omitempty"`
	DefaultHeader map[string]string `json:"defaultHeader,omitempty"`
	UserAgent     string            `json:"userAgent,omitempty"`
	HTTPClient    *http.Client
}

func NewConfiguration

func NewConfiguration(host, token string) *Configuration

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

type Datasource

type Datasource struct {
	DatasourceId  int32  `json:"datasource_id,omitempty"`
	AkId          int32  `json:"ak_id,omitempty"`
	Type_         string `json:"type"`
	Name          string `json:"name"`
	Region        string `json:"region,omitempty"`
	VpcAddress    string `json:"vpc_address,omitempty"`
	Project       string `json:"project,omitempty"`
	Database      string `json:"database,omitempty"`
	Token         string `json:"token,omitempty"`
	MysqlUser     string `json:"mysql_user,omitempty"`
	MysqlPwd      string `json:"mysql_pwd,omitempty"`
	Pwd           string `json:"pwd,omitempty"`
	RdsInstanceId string `json:"rds_instance_id,omitempty"`

	Ak Ak `json:"-"`
}

func (*Datasource) GenerateDSN

func (d *Datasource) GenerateDSN(datasourceType string) (DSN string)

func (*Datasource) NewOTSClient added in v1.0.1

func (d *Datasource) NewOTSClient() (client *tablestore.TableStoreClient)

type DatasourceApiDatasourceDatasourceIdPostOpts

type DatasourceApiDatasourceDatasourceIdPostOpts struct {
	Body optional.Interface
}

type DatasourceApiService

type DatasourceApiService service

func (*DatasourceApiService) DatasourceAllGet

DatasourceApiService Get all datasource Get all datasource

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20060

func (*DatasourceApiService) DatasourceDatasourceIdGet

func (a *DatasourceApiService) DatasourceDatasourceIdGet(ctx context.Context, datasourceId int64) (GetDatasourceResponse, error)

DatasourceApiService Get datasource By datasource_id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param datasourceId

@return InlineResponse20059

func (*DatasourceApiService) DatasourceDatasourceIdPost

func (a *DatasourceApiService) DatasourceDatasourceIdPost(ctx context.Context, datasourceId int64, localVarOptionals *DatasourceApiDatasourceDatasourceIdPostOpts) (ModelApiResponse, *http.Response, error)

func (*DatasourceApiService) DatasourcePost

func (a *DatasourceApiService) DatasourcePost(ctx context.Context, body Datasource) (Response, *http.Response, error)

DatasourceApiService Create a new datasource

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Datasource object that needs to be added

@return InlineResponse20058

type FeatureEntity

type FeatureEntity struct {
	FeatureEntityId     int32  `json:"feature_entity_id,omitempty"`
	ProjectId           int64  `json:"project_id"`
	ProjectName         string `json:"project_name,omitempty"`
	FeatureEntityName   string `json:"feature_entity_name"`
	FeatureEntityJoinid string `json:"feature_entity_joinid"`
}

type FeatureEntityApiService

type FeatureEntityApiService service

func (*FeatureEntityApiService) AddFeatureEntity

FeatureEntityApiService Create a new FeatureEntity

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FeatureEntity object that needs to be added

@return ModelApiResponse

func (*FeatureEntityApiService) DeleteFeatureEntityById

func (a *FeatureEntityApiService) DeleteFeatureEntityById(ctx context.Context, featureEntityId string) (ModelApiResponse, *http.Response, error)

FeatureEntityApiService Delete featureentity By id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param featureEntityId

@return ModelApiResponse

func (*FeatureEntityApiService) GetFeatureEntityById

func (a *FeatureEntityApiService) GetFeatureEntityById(ctx context.Context, featureEntityId int32) (GetFeatureEntityResponse, error)

FeatureEntityApiService Get FeatureEntity By id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param featureEntityId

@return InlineResponse20079

func (*FeatureEntityApiService) ListFeatureEntities

FeatureEntityApiService List FeatureEntities

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20079

type FeatureView

type FeatureView struct {
	FeatureViewId     int64               `json:"feature_view_id"`
	ProjectId         int64               `json:"project_id"`
	ProjectName       string              `json:"project_name,omitempty"`
	Name              string              `json:"name,omitempty"`
	FeatureEntityId   int32               `json:"feature_entity_id,omitempty"`
	FeatureEntityName string              `json:"feature_entity_name,omitempty"`
	Owner             string              `json:"owner"`
	Type_             string              `json:"type"`
	Online            bool                `json:"online"`
	IsRegister        bool                `json:"is_register"`
	RegisterTable     string              `json:"register_table"`
	Ttl               int32               `json:"ttl"`
	Tags              []string            `json:"tags"`
	Config            string              `json:"config"`
	Fields            []FeatureViewFields `json:"fields"`
}

type FeatureViewApiListFeatureViewsOpts

type FeatureViewApiListFeatureViewsOpts struct {
	Pagesize   optional.Int32
	Pagenumber optional.Int32
	ProjectId  optional.Int32
	Owner      optional.String
	Tag        optional.String
	Feature    optional.String
}

type FeatureViewApiService

type FeatureViewApiService service

func (*FeatureViewApiService) AddFeatureView

FeatureViewApiService Create a new FeatureView

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FeatureView object that needs to be added

@return ModelApiResponse

func (*FeatureViewApiService) AppendFeatureViewFeatures

func (a *FeatureViewApiService) AppendFeatureViewFeatures(ctx context.Context, body FeatureView, featureViewId string) (ModelApiResponse, *http.Response, error)

FeatureViewApiService FeatureView 追加特征

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FeatureViewFeatures object that needs to be added
  • @param featureViewId

@return ModelApiResponse

func (*FeatureViewApiService) DeleteFeatureViewByID

func (a *FeatureViewApiService) DeleteFeatureViewByID(ctx context.Context, featureViewId string) (ModelApiResponse, *http.Response, error)

FeatureViewApiService Delete featureview By ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param featureViewId

@return ModelApiResponse

func (*FeatureViewApiService) GetFeatureViewByID

func (a *FeatureViewApiService) GetFeatureViewByID(ctx context.Context, featureViewId string) (GetFeatureViewResponse, error)

FeatureViewApiService Get FeatureView By ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param featureViewId

@return InlineResponse20084

func (*FeatureViewApiService) GetFeatureViewOnlineFeatures

func (a *FeatureViewApiService) GetFeatureViewOnlineFeatures(ctx context.Context, body OnlineFeaturesBody, featureViewId string) (InlineResponse20081, *http.Response, error)

FeatureViewApiService 获取 FeatureView 在线特征

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body 请求的特征名称列表
  • @param featureViewId

@return InlineResponse20081

func (*FeatureViewApiService) GetFeatureViewOwners

func (a *FeatureViewApiService) GetFeatureViewOwners(ctx context.Context) (InlineResponse20082, *http.Response, error)

FeatureViewApiService 获取FeatureView下所有的创建人

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20082

func (*FeatureViewApiService) GetFeatureViewTags

FeatureViewApiService 获取FeatureView下所有标签列表

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20083

func (*FeatureViewApiService) ListFeatureViews

func (*FeatureViewApiService) PublishFeatureViewTable

func (a *FeatureViewApiService) PublishFeatureViewTable(ctx context.Context, body PublishTableRequest, featureViewId string) (ModelApiResponse, *http.Response, error)

FeatureViewApiService FeatureView把 offline 数据同步到 online 上

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FeatureView同步数据请求body
  • @param featureViewId

@return ModelApiResponse

func (*FeatureViewApiService) WriteFeatureViewTable

func (a *FeatureViewApiService) WriteFeatureViewTable(ctx context.Context, body WriteTableRequest, featureViewId string) (ModelApiResponse, *http.Response, error)

FeatureViewApiService FeatureView写入数据,离线特征非注册类型时调用

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FeatureView写入数据请求body
  • @param featureViewId

@return ModelApiResponse

type FeatureViewFields

type FeatureViewFields struct {
	Name         string `json:"name,omitempty"`
	Type         int32  `json:"type,omitempty"`
	IsPartition  bool   `json:"is_partition,omitempty"`
	IsPrimaryKey bool   `json:"is_primary_key,omitempty"`
	IsEventTime  bool   `json:"is_event_time,omitempty"`
	Position     int    `json:"position,omitempty"`
}

type FsModelApiListModelsOpts

type FsModelApiListModelsOpts struct {
	Pagesize   optional.Int32
	Pagenumber optional.Int32
	ProjectId  optional.Int32
}

type FsModelApiService

type FsModelApiService service

func (*FsModelApiService) AddFSModel

func (a *FsModelApiService) AddFSModel(ctx context.Context, body Model) (ModelApiResponse, *http.Response, error)

FsModelApiService Create a new Model

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Model object that needs to be added

@return ModelApiResponse

func (*FsModelApiService) CreateTrainingSetTable

FsModelApiService 样本表建表

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return ModelApiResponse

func (*FsModelApiService) DeleteModelByID

func (a *FsModelApiService) DeleteModelByID(ctx context.Context, modelId string) (ModelApiResponse, *http.Response, error)

FsModelApiService Delete model By ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param modelId

@return ModelApiResponse

func (*FsModelApiService) ExportTrainingSetTable

func (a *FsModelApiService) ExportTrainingSetTable(ctx context.Context, body TrainningSetTablesExportBody, modelId string) (InlineResponse20088, *http.Response, error)

FsModelApiService 导出训练样本

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body
  • @param modelId

@return InlineResponse20088

func (*FsModelApiService) GetModelByID

func (a *FsModelApiService) GetModelByID(ctx context.Context, modelId string) (GetModelResponse, error)

FsModelApiService Get Model By ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param modelId

@return InlineResponse20086

func (*FsModelApiService) GetOnlineFeaturesByModelId

func (a *FsModelApiService) GetOnlineFeaturesByModelId(ctx context.Context, body OnlineFeaturesBody1, modelId string) (InlineResponse20081, *http.Response, error)

FsModelApiService Get online features by model

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body 请求的特征名称列表
  • @param modelId

@return InlineResponse20081

func (*FsModelApiService) ListModels

func (a *FsModelApiService) ListModels(ctx context.Context, localVarOptionals *FsModelApiListModelsOpts) (ListModelsResponse, error)

func (*FsModelApiService) PreveiwTrainingSetTable

FsModelApiService 预览样本表建表语句

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body

@return InlineResponse20087

func (*FsModelApiService) UpdateModelByID

func (a *FsModelApiService) UpdateModelByID(ctx context.Context, body Model, modelId string) (ModelApiResponse, *http.Response, error)

FsModelApiService Update model By ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Model object that needs to be Update
  • @param modelId

@return ModelApiResponse

type FsProjectApiService

type FsProjectApiService service

func (*FsProjectApiService) AddProject

FsProjectApiService Create a new FeatureStore Project

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body FS Project object that needs to be added

@return ModelApiResponse

func (*FsProjectApiService) DeleteProjectById

func (a *FsProjectApiService) DeleteProjectById(ctx context.Context, projectId int64) (ModelApiResponse, *http.Response, error)

FsProjectApiService Delete project By project ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId ProjectId to get project info

@return ModelApiResponse

func (*FsProjectApiService) GetFeaturesByProjectId

func (a *FsProjectApiService) GetFeaturesByProjectId(ctx context.Context, projectId int64) (InlineResponse20078, *http.Response, error)

FsProjectApiService 获取项目下, 所有的featureview 和 features 信息

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId ProjectId to get project info

@return InlineResponse20078

func (*FsProjectApiService) GetOfflineTableNamesByProjectId

func (a *FsProjectApiService) GetOfflineTableNamesByProjectId(ctx context.Context, projectId int64) (InlineResponse20076, *http.Response, error)

FsProjectApiService 获取项目下, offline 中的所有表名称

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId ProjectId to get project info

@return InlineResponse20076

func (*FsProjectApiService) GetOfflineTableSchemaByProjectIdAndTableName

func (a *FsProjectApiService) GetOfflineTableSchemaByProjectIdAndTableName(ctx context.Context, projectId int64, tableName string) (InlineResponse20077, *http.Response, error)

FsProjectApiService 获取项目下,offline 中 table_name 的 schema

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId ProjectId to get project info
  • @param tableName 表名称

@return InlineResponse20077

func (*FsProjectApiService) GetProjectById

func (a *FsProjectApiService) GetProjectById(ctx context.Context, projectId int64) (Response, error)

FsProjectApiService Get Project By project ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param projectId ProjectId to get project info

@return InlineResponse20075

func (*FsProjectApiService) ListProjects

FsProjectApiService List Projects

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse20075

type FsTaskApiListTasksBySubjectOpts

type FsTaskApiListTasksBySubjectOpts struct {
	Limit optional.Int32
}

type FsTaskApiListTasksOpts

type FsTaskApiListTasksOpts struct {
	State optional.Int32
}

type FsTaskApiService

type FsTaskApiService service

func (*FsTaskApiService) GetTaskById

func (a *FsTaskApiService) GetTaskById(ctx context.Context, taskId int32) (InlineResponse20091, *http.Response, error)

FsTaskApiService Get Task by ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param taskId

@return InlineResponse20091

func (*FsTaskApiService) ListTasks

func (a *FsTaskApiService) ListTasks(ctx context.Context, limit int32, localVarOptionals *FsTaskApiListTasksOpts) (InlineResponse20089, *http.Response, error)

func (*FsTaskApiService) ListTasksBySubject

func (a *FsTaskApiService) ListTasksBySubject(ctx context.Context, taskSubjectType string, taskSubject string, localVarOptionals *FsTaskApiListTasksBySubjectOpts) (InlineResponse20090, *http.Response, error)

type GenericSwaggerError

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

GenericSwaggerError Provides access to the body, error and model on returned errors.

func (GenericSwaggerError) Body

func (e GenericSwaggerError) Body() []byte

Body returns the raw bytes of the response

func (GenericSwaggerError) Error

func (e GenericSwaggerError) Error() string

Error returns non-empty string if there was an error.

func (GenericSwaggerError) Model

func (e GenericSwaggerError) Model() interface{}

Model returns the unpacked model of the error

type GetAkResponse

type GetAkResponse struct {
	RequestId string        `json:"request_id,omitempty"`
	Code      string        `json:"code,omitempty"`
	Message   string        `json:"message,omitempty"`
	Data      map[string]Ak `json:"data,omitempty"`
}

type GetDatasourceResponse

type GetDatasourceResponse struct {
	RequestId string                 `json:"request_id,omitempty"`
	Code      string                 `json:"code,omitempty"`
	Message   string                 `json:"message,omitempty"`
	Data      map[string]*Datasource `json:"data,omitempty"`
}

type GetFeatureEntityResponse

type GetFeatureEntityResponse struct {
	BaseResponse
	Data map[string][]FeatureEntity `json:"data,omitempty"`
}

type GetFeatureViewResponse

type GetFeatureViewResponse struct {
	BaseResponse
	Data map[string][]FeatureView `json:"data,omitempty"`
}

type GetModelResponse

type GetModelResponse struct {
	BaseResponse
	Data *GetModelResponseData `json:"data,omitempty"`
}

type GetModelResponseData

type GetModelResponseData struct {
	Models    []Model         `json:"models,omitempty"`
	Relations *ModelRelations `json:"relations,omitempty"`
}

type InlineResponse200

type InlineResponse200 struct {
	RequestId string       `json:"request_id,omitempty"`
	Code      string       `json:"code,omitempty"`
	Message   string       `json:"message,omitempty"`
	Data      *interface{} `json:"data,omitempty"`
}

type InlineResponse2001

type InlineResponse2001 struct {
	RequestId string                  `json:"request_id,omitempty"`
	Code      string                  `json:"code,omitempty"`
	Message   string                  `json:"message,omitempty"`
	Data      *InlineResponse2001Data `json:"data,omitempty"`
}

type InlineResponse20014

type InlineResponse20014 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20014Data `json:"data,omitempty"`
}

type InlineResponse20014Data

type InlineResponse20014Data struct {
	TableMetaId int32 `json:"table_meta_id,omitempty"`
}

type InlineResponse20015

type InlineResponse20015 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20015Data `json:"data,omitempty"`
}

type InlineResponse20015Data

type InlineResponse20015Data struct {
	TableMetas []TableMeta `json:"table_metas,omitempty"`
}

type InlineResponse20016

type InlineResponse20016 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20016Data `json:"data,omitempty"`
}

type InlineResponse20016Data

type InlineResponse20016Data struct {
	Fields []string `json:"fields,omitempty"`
}

type InlineResponse20019

type InlineResponse20019 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20019Data `json:"data,omitempty"`
}

type InlineResponse20019Data

type InlineResponse20019Data struct {
	// recommend api response
	RecommendResponse *interface{}                      `json:"recommend_response,omitempty"`
	ItemData          []InlineResponse20019DataItemData `json:"item_data,omitempty"`
}

type InlineResponse20019DataFields

type InlineResponse20019DataFields struct {
	Content       string `json:"content,omitempty"`
	Meaning       string `json:"meaning,omitempty"`
	Name          string `json:"name,omitempty"`
	OriginContent string `json:"origin_content,omitempty"`
	Type_         string `json:"type,omitempty"`
}

type InlineResponse20019DataItemData

type InlineResponse20019DataItemData struct {
	Fields []InlineResponse20019DataFields `json:"fields,omitempty"`
}

type InlineResponse2001Data

type InlineResponse2001Data struct {
	Scenes []Scene `json:"scenes,omitempty"`
}

type InlineResponse20047

type InlineResponse20047 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20047Data `json:"data,omitempty"`
}

type InlineResponse20047Data

type InlineResponse20047Data struct {
	Meta []InlineResponse20047DataMeta `json:"meta,omitempty"`
}

type InlineResponse20047DataMeta

type InlineResponse20047DataMeta struct {
	ColumnName string `json:"column_name,omitempty"`
	Type_      string `json:"type,omitempty"`
}

type InlineResponse20057

type InlineResponse20057 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20057Data `json:"data,omitempty"`
}

type InlineResponse20057Data

type InlineResponse20057Data struct {
	Aks []Ak `json:"aks,omitempty"`
}

type InlineResponse20059DataDatasource

type InlineResponse20059DataDatasource struct {
	DatasourceId int32  `json:"datasource_id,omitempty"`
	Type_        string `json:"type,omitempty"`
	Name         string `json:"name,omitempty"`
	VpcAddress   string `json:"vpc_address,omitempty"`
}

type InlineResponse20060

type InlineResponse20060 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20060Data `json:"data,omitempty"`
}

type InlineResponse20060Data

type InlineResponse20060Data struct {
	Datasources []InlineResponse20060DataDatasources `json:"datasources,omitempty"`
}

type InlineResponse20060DataDatasources

type InlineResponse20060DataDatasources struct {
	DatasourceId int32  `json:"datasource_id,omitempty"`
	Type_        string `json:"type,omitempty"`
	Name         string `json:"name,omitempty"`
	VpcAddress   string `json:"vpc_address,omitempty"`
}

type InlineResponse20076

type InlineResponse20076 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20076Data `json:"data,omitempty"`
}

type InlineResponse20076Data

type InlineResponse20076Data struct {
	Tables []string `json:"tables,omitempty"`
}

type InlineResponse20077

type InlineResponse20077 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20077Data `json:"data,omitempty"`
}

type InlineResponse20077Data

type InlineResponse20077Data struct {
	Fields []InlineResponse20077DataFields `json:"fields,omitempty"`
}

type InlineResponse20077DataFields

type InlineResponse20077DataFields struct {
	Name        string `json:"name,omitempty"`
	Type_       int32  `json:"type,omitempty"`
	IsPartition bool   `json:"is_partition,omitempty"`
}

type InlineResponse20078

type InlineResponse20078 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20078Data `json:"data,omitempty"`
}

type InlineResponse20078Data

type InlineResponse20078Data struct {
	FeatureViews []InlineResponse20078DataFeatureViews `json:"feature_views,omitempty"`
}

type InlineResponse20078DataFeatureViews

type InlineResponse20078DataFeatureViews struct {
	FeatureViewId   string                            `json:"feature_view_id,omitempty"`
	FeatureViewName string                            `json:"feature_view_name,omitempty"`
	Features        []InlineResponse20078DataFeatures `json:"features,omitempty"`
}

type InlineResponse20078DataFeatures

type InlineResponse20078DataFeatures struct {
	Name    string `json:"name,omitempty"`
	Type_   int32  `json:"type,omitempty"`
	TypeStr string `json:"type_str,omitempty"`
}

type InlineResponse20080Data

type InlineResponse20080Data struct {
	TotalCount   int32         `json:"total_count,omitempty"`
	FeatureViews []FeatureView `json:"feature_views,omitempty"`
}

type InlineResponse20081

type InlineResponse20081 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20081Data `json:"data,omitempty"`
}

type InlineResponse20081Data

type InlineResponse20081Data struct {
	OnlineFeatures []interface{} `json:"online_features,omitempty"`
}

type InlineResponse20082

type InlineResponse20082 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20082Data `json:"data,omitempty"`
}

type InlineResponse20082Data

type InlineResponse20082Data struct {
	Owners []string `json:"owners,omitempty"`
}

type InlineResponse20083

type InlineResponse20083 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20083Data `json:"data,omitempty"`
}

type InlineResponse20083Data

type InlineResponse20083Data struct {
	Tags []string `json:"tags,omitempty"`
}

type InlineResponse20085Data

type InlineResponse20085Data struct {
	TotalCount int32   `json:"total_count,omitempty"`
	Models     []Model `json:"models,omitempty"`
}

type InlineResponse20087

type InlineResponse20087 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20087Data `json:"data,omitempty"`
}

type InlineResponse20087Data

type InlineResponse20087Data struct {
	TrainningSetTable    string `json:"trainning_set_table,omitempty"`
	TrainningSetTableSql string `json:"trainning_set_table_sql,omitempty"`
}

type InlineResponse20088

type InlineResponse20088 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20088Data `json:"data,omitempty"`
}

type InlineResponse20088Data

type InlineResponse20088Data struct {
	TaskId int32 `json:"task_id,omitempty"`
}

type InlineResponse20089

type InlineResponse20089 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20089Data `json:"data,omitempty"`
}

type InlineResponse20089Data

type InlineResponse20089Data struct {
	FeatureViews []Task `json:"feature_views,omitempty"`
}

type InlineResponse20090

type InlineResponse20090 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20090Data `json:"data,omitempty"`
}

type InlineResponse20090Data

type InlineResponse20090Data struct {
	Tasks []Task `json:"tasks,omitempty"`
}

type InlineResponse20091

type InlineResponse20091 struct {
	RequestId string                   `json:"request_id,omitempty"`
	Code      string                   `json:"code,omitempty"`
	Message   string                   `json:"message,omitempty"`
	Data      *InlineResponse20091Data `json:"data,omitempty"`
}

type InlineResponse20091Data

type InlineResponse20091Data struct {
	Tasks []Task `json:"tasks,omitempty"`
}

type ListFeatureEntitiesResponse

type ListFeatureEntitiesResponse struct {
	BaseResponse
	Data map[string][]FeatureEntity `json:"data,omitempty"`
}

type ListFeatureViewsResponse

type ListFeatureViewsResponse struct {
	BaseResponse
	Data ListFeatureViewsResponseData `json:"data,omitempty"`
}

type ListFeatureViewsResponseData

type ListFeatureViewsResponseData struct {
	TotalCount   int            `json:"total_count"`
	FeatureViews []*FeatureView `json:"feature_views"`
}

type ListModelsResponse

type ListModelsResponse struct {
	BaseResponse
	Data *ListModelsResponseData `json:"data,omitempty"`
}

type ListModelsResponseData

type ListModelsResponseData struct {
	TotalCount int32   `json:"total_count,omitempty"`
	Models     []Model `json:"models,omitempty"`
}

type ListProjectsResponse

type ListProjectsResponse struct {
	BaseResponse
	Data map[string][]*Project `json:"data,omitempty"`
}

type Model

type Model struct {
	ModelId              int             `json:"model_id"`
	ProjectId            int64           `json:"project_id"`
	ProjectName          string          `json:"project_name,omitempty"`
	Name                 string          `json:"name"`
	Owner                string          `json:"owner"`
	LabelDatasourceId    int32           `json:"label_datasource_id,omitempty"`
	LabelDatasourceTable string          `json:"label_datasource_table"`
	LabelEventTime       string          `json:"label_event_time"`
	TrainningSetTable    string          `json:"trainning_set_table"`
	Features             []ModelFeatures `json:"features"`
	Relations            *ModelRelations `json:"relations,omitempty"`
}

type ModelApiResponse

type ModelApiResponse struct {
	RequestId string       `json:"request_id,omitempty"`
	Code      string       `json:"code,omitempty"`
	Message   string       `json:"message,omitempty"`
	Data      *interface{} `json:"data,omitempty"`
}

type ModelFeatures

type ModelFeatures struct {
	FeatureViewId   int32  `json:"feature_view_id,omitempty"`
	FeatureViewName string `json:"feature_view_name,omitempty"`
	Name            string `json:"name,omitempty"`
	AliasName       string `json:"alias_name,omitempty"`
	Type_           int32  `json:"type,omitempty"`
	TypeStr         string `json:"type_str,omitempty"`
}

type ModelRelations

type ModelRelations struct {
	Domains *interface{}          `json:"domains,omitempty"`
	Links   []ModelRelationsLinks `json:"links,omitempty"`
}
type ModelRelationsLinks struct {
	From string `json:"from,omitempty"`
	To   string `json:"to,omitempty"`
	Link string `json:"link,omitempty"`
}

type ModelsTrainningSetTablesBody

type ModelsTrainningSetTablesBody struct {
	ProjectId            int32  `json:"project_id,omitempty"`
	TrainningSetTableSql string `json:"trainning_set_table_sql,omitempty"`
}

type ModelsmodelIdonlinefeaturesFeatureSelectors

type ModelsmodelIdonlinefeaturesFeatureSelectors struct {
	FeatureView   string       `json:"feature_view,omitempty"`
	FeatureEntity string       `json:"feature_entity,omitempty"`
	Features      []string     `json:"features,omitempty"`
	Alias         *interface{} `json:"alias,omitempty"`
}

type ModelsmodelIdtrainningSetTablesexportLabelInputConfig

type ModelsmodelIdtrainningSetTablesexportLabelInputConfig struct {
	Partitions *interface{} `json:"partitions,omitempty"`
	EventTime  string       `json:"event_time,omitempty"`
}

type ModelsmodelIdtrainningSetTablesexportTrainningSetConfig

type ModelsmodelIdtrainningSetTablesexportTrainningSetConfig struct {
	Partitions *interface{} `json:"partitions,omitempty"`
}

type ModelstrainningSetTablespreviewFeatures

type ModelstrainningSetTablespreviewFeatures struct {
	FeatureViewId int32  `json:"feature_view_id,omitempty"`
	Name          string `json:"name,omitempty"`
	Type_         int32  `json:"type,omitempty"`
	AliasName     string `json:"alias_name,omitempty"`
}

type OnlineFeaturesBody

type OnlineFeaturesBody struct {
	JoinIds  *interface{} `json:"join_ids,omitempty"`
	Features []string     `json:"features,omitempty"`
	Alias    *interface{} `json:"alias,omitempty"`
}

type OnlineFeaturesBody1

type OnlineFeaturesBody1 struct {
	JoinIds          *interface{}                                  `json:"join_ids,omitempty"`
	FeatureSelectors []ModelsmodelIdonlinefeaturesFeatureSelectors `json:"feature_selectors,omitempty"`
}

type Project

type Project struct {
	ProjectId             int64  `json:"project_id,omitempty"`
	ProjectName           string `json:"project_name"`
	Description           string `json:"description"`
	OfflineDatasourceType string `json:"offline_datasource_type"`
	OfflineDatasourceId   int64  `json:"offline_datasource_id"`
	OnlineDatasourceType  string `json:"online_datasource_type"`
	OnlineDatasourceId    int64  `json:"online_datasource_id"`
	OfflineLifecycle      int32  `json:"offline_lifecycle"`
	FeatureEntityCount    int32  `json:"feature_entity_count,omitempty"`
	FeatureViewCount      int32  `json:"feature_view_count,omitempty"`
	ModelCount            int32  `json:"model_count,omitempty"`

	OfflineDataSource *Datasource `json:"-"`
	OnlineDataSource  *Datasource `json:"-"`
}

type PublishTableRequest

type PublishTableRequest struct {
	Partitions *interface{} `json:"partitions,omitempty"`
	Mode       string       `json:"mode,omitempty"`
}

type Response

type Response struct {
	BaseResponse
	Data map[string]interface{} `json:"data,omitempty"`
}

type Scene

type Scene struct {
	SceneId   int64  `json:"scene_id,omitempty"`
	SceneName string `json:"scene_name"`
	SceneInfo string `json:"scene_info"`
}

type SceneApiService

type SceneApiService service

func (*SceneApiService) AddScene

SceneApiService Create a new scene

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Scene object that needs to be added

@return InlineResponse200

func (*SceneApiService) DeleteSceneById

func (a *SceneApiService) DeleteSceneById(ctx context.Context, sceneId int64) (ModelApiResponse, *http.Response, error)

SceneApiService Delete scene By scene ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param sceneId Scene Id to get scene info

@return ModelApiResponse

func (*SceneApiService) GetSceneById

func (a *SceneApiService) GetSceneById(ctx context.Context, sceneId int64) (InlineResponse2001, *http.Response, error)

SceneApiService Get Scene By scene ID Get Scene By scene ID

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param sceneId Scene Id to get scene info

@return InlineResponse2001

func (*SceneApiService) ListAllScenes

SceneApiService Get all scenes Get all scenes

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return InlineResponse2001

func (*SceneApiService) UpdateScene

func (a *SceneApiService) UpdateScene(ctx context.Context, body Scene, sceneId int64) (ModelApiResponse, *http.Response, error)

SceneApiService update scene data

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body Scene object that needs to be update
  • @param sceneId ID of scene to update

@return ModelApiResponse

type TableMeta

type TableMeta struct {
	TableMetaId int64            `json:"table_meta_id"`
	Name        string           `json:"name"`
	Datasource  string           `json:"datasource"`
	Dsn         string           `json:"dsn"`
	Table       string           `json:"table"`
	Module      string           `json:"module"`
	Fields      []TableMetaField `json:"fields"`
}

type TableMetaApiListTableMetaFieldsOpts

type TableMetaApiListTableMetaFieldsOpts struct {
	Table        optional.String
	DatasourceId optional.Int32
}

type TableMetaApiListTableMetasOpts

type TableMetaApiListTableMetasOpts struct {
	Module optional.String
}

type TableMetaApiService

type TableMetaApiService service

func (*TableMetaApiService) AddTableMeta

TableMetaApiService Create new table meta info

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body TableMeta object that needs to be added

@return InlineResponse20014

func (*TableMetaApiService) GetTableMetaById

func (a *TableMetaApiService) GetTableMetaById(ctx context.Context, tableMetaId int64) (InlineResponse20015, *http.Response, error)

TableMetaApiService Get TableMeta By table_meta_id

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param tableMetaId table meta Id

@return InlineResponse20015

func (*TableMetaApiService) ListTableMetaFields

func (a *TableMetaApiService) ListTableMetaFields(ctx context.Context, dsn string, localVarOptionals *TableMetaApiListTableMetaFieldsOpts) (InlineResponse20016, *http.Response, error)

func (*TableMetaApiService) ListTableMetas

func (*TableMetaApiService) UpdateTableMeta

func (a *TableMetaApiService) UpdateTableMeta(ctx context.Context, body TableMeta, tableMetaId int64) (ModelApiResponse, *http.Response, error)

TableMetaApiService update table meta data

  • @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
  • @param body TableMeta object that needs to be update
  • @param tableMetaId table meta Id

@return ModelApiResponse

type TableMetaField

type TableMetaField struct {
	Name           string `json:"name"`
	Meaning        string `json:"meaning"`
	Type_          string `json:"type"`
	DimensionField bool   `json:"dimension_field"`
}

type Task

type Task struct {
	TaskId            int64  `json:"task_id,omitempty"`
	ProjectId         int64  `json:"project_id"`
	TaskName          string `json:"task_name,omitempty"`
	TaskNameStr       string `json:"task_name_str,omitempty"`
	TaskSubject       string `json:"task_subject,omitempty"`
	TaskSubjectType   string `json:"task_subject_type,omitempty"`
	State             int32  `json:"state,omitempty"`
	CreateTime        string `json:"create_time,omitempty"`
	ExecuteTime       string `json:"execute_time,omitempty"`
	FinishTime        string `json:"finish_time,omitempty"`
	TaskConfig        string `json:"task_config,omitempty"`
	TaskRunningConfig string `json:"task_running_config,omitempty"`
	TaskLog           string `json:"task_log,omitempty"`
}

type TrainningSetTablesExportBody

type TrainningSetTablesExportBody struct {
	LabelInputConfig   *ModelsmodelIdtrainningSetTablesexportLabelInputConfig   `json:"label_input_config,omitempty"`
	FeatureViewConfig  *interface{}                                             `json:"feature_view_config,omitempty"`
	TrainningSetConfig *ModelsmodelIdtrainningSetTablesexportTrainningSetConfig `json:"trainning_set_config,omitempty"`
}

type TrainningSetTablesPreviewBody

type TrainningSetTablesPreviewBody struct {
	ProjectId            int32                                     `json:"project_id,omitempty"`
	ModelName            string                                    `json:"model_name,omitempty"`
	LabelDatasourceTable string                                    `json:"label_datasource_table,omitempty"`
	Features             []ModelstrainningSetTablespreviewFeatures `json:"features,omitempty"`
}

type WriteTableRequest

type WriteTableRequest struct {
	Partitions    *interface{}                    `json:"partitions,omitempty"`
	Ossdatasource *WriteTableRequestOssdatasource `json:"ossdatasource,omitempty"`
	Mode          string                          `json:"mode,omitempty"`
}

type WriteTableRequestOssdatasource

type WriteTableRequestOssdatasource struct {
	AccessId   string `json:"access_id,omitempty"`
	AccessKey  string `json:"access_key,omitempty"`
	Endpoint   string `json:"endpoint,omitempty"`
	Path       string `json:"path,omitempty"`
	Delimiter  string `json:"delimiter,omitempty"`
	OmitHeader bool   `json:"omit_header,omitempty"`
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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