mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #15264 from zexi/codegen-py3
feat(misc): use python3 for scripts/codegen.py
This commit is contained in:
@@ -17,10 +17,10 @@ package compute
|
||||
import (
|
||||
time "time"
|
||||
|
||||
cloudprovider "yunion.io/x/cloudmux/pkg/cloudprovider"
|
||||
jsonutils "yunion.io/x/jsonutils"
|
||||
|
||||
"yunion.io/x/onecloud/pkg/apis"
|
||||
"yunion.io/x/onecloud/pkg/apis/cloudprovider"
|
||||
)
|
||||
|
||||
// SAccessGroup is an autogenerated struct via yunion.io/x/onecloud/pkg/compute/models.SAccessGroup.
|
||||
@@ -820,11 +820,9 @@ type SElasticcache struct {
|
||||
NetworkId string `json:"network_id"`
|
||||
// 带宽
|
||||
Bandwidth int `json:"bandwidth"`
|
||||
// 安全组
|
||||
SecurityGroupId string `json:"security_group_id"`
|
||||
// 内网DNS
|
||||
// 内网DNS
|
||||
PrivateDNS string `json:"private_dns"`
|
||||
// 内网IP地址
|
||||
// 内网IP地址
|
||||
PrivateIpAddr string `json:"private_ip_addr"`
|
||||
// 内网访问端口
|
||||
PrivateConnectPort int `json:"private_connect_port"`
|
||||
@@ -1867,9 +1865,9 @@ type SLoadbalancerHealthCheck struct {
|
||||
// 健康检查路径 /
|
||||
HealthCheckHttpCode string `json:"health_check_http_code"`
|
||||
HealthCheckRise int `json:"health_check_rise"`
|
||||
// 健康检查健康阈值 3秒
|
||||
// 健康检查健康阈值 3秒
|
||||
HealthCheckFall int `json:"health_check_fall"`
|
||||
// 健康检查不健康阈值 15秒
|
||||
// 健康检查不健康阈值 15秒
|
||||
HealthCheckTimeout int `json:"health_check_timeout"`
|
||||
// 健康检查超时时间 10秒
|
||||
HealthCheckInterval int `json:"health_check_interval"`
|
||||
@@ -2533,7 +2531,7 @@ type SSchedtag struct {
|
||||
apis.SStandaloneResourceBase
|
||||
apis.SScopedResourceBase
|
||||
DefaultStrategy string `json:"default_strategy"`
|
||||
// Column(VARCHAR(16, charset='ascii'), nullable=True, default='')
|
||||
// Column(VARCHAR(16, charset='ascii'), nullable=True, default=”)
|
||||
ResourceType string `json:"resource_type"`
|
||||
}
|
||||
|
||||
|
||||
@@ -187,6 +187,7 @@ type SLocalUser struct {
|
||||
Name string `json:"name"`
|
||||
FailedAuthCount int `json:"failed_auth_count"`
|
||||
NeedResetPassword *bool `json:"need_reset_password,omitempty"`
|
||||
ResetHint string `json:"reset_hint"`
|
||||
}
|
||||
|
||||
// SNonlocalUser is an autogenerated struct via yunion.io/x/onecloud/pkg/keystone/models.SNonlocalUser.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
#!/usr/bin/env python
|
||||
#!/usr/bin/env python3
|
||||
|
||||
import argparse
|
||||
import os
|
||||
|
||||
Reference in New Issue
Block a user