mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix(region): add change_config status for aigateway (#23137)
This commit is contained in:
@@ -53,6 +53,7 @@ const (
|
||||
STATUS_SYNC_STATUS = "sync_status"
|
||||
STATUS_DELETING = "deleting"
|
||||
STATUS_DELETE_FAILED = "delete_failed"
|
||||
STATUS_CHANGE_CONFIG = "change_config"
|
||||
STATUS_UNKNOWN = "unknown"
|
||||
STATUS_CREATING = "creating"
|
||||
STATUS_AVAILABLE = "available"
|
||||
|
||||
@@ -61,13 +61,13 @@ type SAiGateway struct {
|
||||
db.SExternalizedResourceBase
|
||||
SManagedResourceBase
|
||||
|
||||
Authentication bool `default:"false" list:"user" json:"authentication"`
|
||||
CacheInvalidateOnUpdate bool `default:"false" list:"user" json:"cache_invalidate_on_update"`
|
||||
CacheTTL int `default:"0" list:"user" json:"cache_ttl"`
|
||||
CollectLogs bool `default:"false" list:"user" json:"collect_logs"`
|
||||
RateLimitingInterval int `default:"0" list:"user" json:"rate_limiting_interval"`
|
||||
RateLimitingLimit int `default:"0" list:"user" json:"rate_limiting_limit"`
|
||||
RateLimitingTechnique string `width:"32" charset:"ascii" default:"" list:"user" json:"rate_limiting_technique"`
|
||||
Authentication bool `default:"false" list:"user" create:"optional"`
|
||||
CacheInvalidateOnUpdate bool `default:"false" list:"user" create:"optional"`
|
||||
CacheTTL int `default:"0" list:"user" create:"optional"`
|
||||
CollectLogs bool `default:"false" list:"user" create:"optional"`
|
||||
RateLimitingInterval int `default:"0" list:"user" create:"optional"`
|
||||
RateLimitingLimit int `default:"0" list:"user" create:"optional`
|
||||
RateLimitingTechnique string `width:"32" charset:"ascii" default:"" list:"user" create:"optional"`
|
||||
}
|
||||
|
||||
// AI网关列表
|
||||
@@ -431,5 +431,6 @@ func (self *SAiGateway) StartAiGatewayChangeConfigTask(ctx context.Context, user
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
self.SetStatus(ctx, userCred, apis.STATUS_CHANGE_CONFIG, "")
|
||||
return task.ScheduleRun(nil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user