diff --git a/README_cn.md b/README_cn.md
index 716a4273..d11138e8 100644
--- a/README_cn.md
+++ b/README_cn.md
@@ -1,4 +1,4 @@
-
+
# 华为云 Exporter
[华为云](https://www.huaweicloud.com/)云监控的 Prometheus Exporter.
@@ -64,8 +64,8 @@ Prometheus是用于展示大型测量数据的开源可视化工具,在工业
# 参考命令:
mkdir cloudeye-exporter
cd cloudeye-exporter
-wget https://github.com/huaweicloud/cloudeye-exporter/releases/download/v2.0.2/cloudeye-exporter.v2.0.2.tar.gz
-tar -xzvf cloudeye-exporter.v2.0.2.tar.gz
+wget https://github.com/huaweicloud/cloudeye-exporter/releases/download/v2.0.1/cloudeye-exporter.v2.0.1.tar.gz
+tar -xzvf cloudeye-exporter.v2.0.1.tar.gz
```
2. 编辑clouds.yml文件配置公有云信息
```
diff --git a/collector/bms.go b/collector/bms.go
index 4c6941fd..daa275a7 100644
--- a/collector/bms.go
+++ b/collector/bms.go
@@ -25,6 +25,7 @@ func (getter BMSInfo) GetResourceInfo() (map[string]labelInfo, []cesmodel.Metric
sysConfigMap := getMetricConfigMap("SYS.BMS")
if metricNames, ok := sysConfigMap["instance_id"]; ok {
for _, instance := range services {
+ loadAgentDimensions(instance.ID)
metrics := buildSingleDimensionMetrics(metricNames, "SYS.BMS", "instance_id", instance.ID)
filterMetrics = append(filterMetrics, metrics...)
info := labelInfo{
diff --git a/collector/cc.go b/collector/cc.go
new file mode 100644
index 00000000..33772f87
--- /dev/null
+++ b/collector/cc.go
@@ -0,0 +1,181 @@
+package collector
+
+import (
+ "fmt"
+ "time"
+
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/global"
+ cc "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model"
+ region "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/region"
+ cesmodel "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model"
+
+ "github.com/huaweicloud/cloudeye-exporter/logs"
+)
+
+var (
+ ccInfo serversInfo
+ limit = int32(2000)
+)
+
+const (
+ CCNamespace = "SYS.CC"
+ CCConfigDimNames = "cloud_connect_id,bwp_id,region_bandwidth_id"
+)
+
+type CCInfo struct{}
+
+func (getter CCInfo) GetResourceInfo() (map[string]labelInfo, []cesmodel.MetricInfoList) {
+ ccInfo.Lock()
+ defer ccInfo.Unlock()
+ if ccInfo.LabelInfo == nil || time.Now().Unix() > ccInfo.TTL {
+ sysConfigMap := getMetricConfigMap(CCNamespace)
+ metricNames := sysConfigMap[CCConfigDimNames]
+ if len(metricNames) == 0 {
+ logs.Logger.Warn("Metric config is empty of SYS.CC.")
+ return ccInfo.LabelInfo, ccInfo.FilterMetrics
+ }
+
+ connections, err := listCCConnections()
+ if err != nil {
+ logs.Logger.Errorf("Get all connections error: %s", err.Error())
+ return ccInfo.LabelInfo, ccInfo.FilterMetrics
+ }
+
+ packages, err := listBandwidthPackages()
+ if err != nil {
+ logs.Logger.Errorf("Get all bandwidth packages error: %s", err.Error())
+ return ccInfo.LabelInfo, ccInfo.FilterMetrics
+ }
+
+ bandwidths, err := listInterRegionBandwidths()
+ if err != nil {
+ logs.Logger.Errorf("Get all inter region bandwidths error: %s", err.Error())
+ return ccInfo.LabelInfo, ccInfo.FilterMetrics
+ }
+ ccInfo.LabelInfo, ccInfo.FilterMetrics = buildResourceInfoAndMetrics(metricNames, connections, packages, bandwidths)
+ ccInfo.TTL = time.Now().Add(TTL).Unix()
+ }
+ return ccInfo.LabelInfo, ccInfo.FilterMetrics
+}
+
+func buildResourceInfoAndMetrics(metricNames []string, connections map[string]model.CloudConnection, packages map[string]model.BandwidthPackage, bandwidths []model.InterRegionBandwidth) (map[string]labelInfo, []cesmodel.MetricInfoList) {
+ resourceInfos := map[string]labelInfo{}
+ filterMetrics := make([]cesmodel.MetricInfoList, 0)
+ for _, bandwidth := range bandwidths {
+ if *bandwidth.CloudConnectionId == "" || *bandwidth.BandwidthPackageId == "" {
+ continue
+ }
+ metrics := buildDimensionMetrics(metricNames, CCNamespace,
+ []cesmodel.MetricsDimension{{Name: "cloud_connect_id", Value: *bandwidth.CloudConnectionId},
+ {Name: "bwp_id", Value: *bandwidth.BandwidthPackageId},
+ {Name: "region_bandwidth_id", Value: *bandwidth.Id}})
+ filterMetrics = append(filterMetrics, metrics...)
+
+ var info labelInfo
+ connectionName, connectionValue := getConnectionInfo(connections, *bandwidth.CloudConnectionId)
+ info.Name = append(info.Name, connectionName...)
+ info.Value = append(info.Value, connectionValue...)
+
+ pkgName, pkgValue := getBandwidthPackageInfo(packages, *bandwidth.BandwidthPackageId)
+ info.Name = append(info.Name, pkgName...)
+ info.Value = append(info.Value, pkgValue...)
+
+ if bandwidth.InterRegions != nil && len(*bandwidth.InterRegions) != 0 {
+ info.Name = append(info.Name, "interRegions", "bandwidthName")
+ info.Value = append(info.Value, fmt.Sprintf("%s<->%s",
+ getDefaultString((*bandwidth.InterRegions)[0].LocalRegionId), getDefaultString((*bandwidth.InterRegions)[0].RemoteRegionId)),
+ getDefaultString(bandwidth.Name))
+ }
+ resourceInfos[GetResourceKeyFromMetricInfo(metrics[0])] = info
+ }
+ return resourceInfos, filterMetrics
+}
+
+func getConnectionInfo(connections map[string]model.CloudConnection, connectionId string) ([]string, []string) {
+ connection, ok := connections[connectionId]
+ if ok {
+ return []string{"connectionName", "connectionEpId"}, []string{*connection.Name, *connection.EnterpriseProjectId}
+ }
+ return nil, nil
+}
+
+func getBandwidthPackageInfo(packages map[string]model.BandwidthPackage, connectionId string) ([]string, []string) {
+ pkg, ok := packages[connectionId]
+ if !ok {
+ return nil, nil
+ }
+ name := []string{"packageName", "packageEpId"}
+ vale := []string{getDefaultString(pkg.Name), getDefaultString(pkg.EnterpriseProjectId)}
+ if pkg.Tags != nil {
+ keys, values := getTags(fmtTags(pkg.Tags))
+ name = append(name, keys...)
+ vale = append(vale, values...)
+ }
+ return name, vale
+}
+
+func listCCConnections() (map[string]model.CloudConnection, error) {
+ request := &model.ListCloudConnectionsRequest{Limit: &limit}
+ client := getCCClient()
+ connections := make(map[string]model.CloudConnection, 0)
+ for {
+ response, err := client.ListCloudConnections(request)
+ if err != nil {
+ return connections, err
+ }
+ for _, connection := range *response.CloudConnections {
+ connections[*connection.Id] = connection
+ }
+ if response.PageInfo.NextMarker == nil {
+ break
+ }
+ request.Marker = response.PageInfo.NextMarker
+ }
+ return connections, nil
+}
+
+func listBandwidthPackages() (map[string]model.BandwidthPackage, error) {
+ request := &model.ListBandwidthPackagesRequest{Limit: &limit}
+ client := getCCClient()
+ bandwidthPackages := make(map[string]model.BandwidthPackage, 0)
+ for {
+ response, err := client.ListBandwidthPackages(request)
+ if err != nil {
+ fmt.Println(err.Error())
+ return bandwidthPackages, err
+ }
+ for _, bandwidthPackage := range *response.BandwidthPackages {
+ bandwidthPackages[*bandwidthPackage.Id] = bandwidthPackage
+ }
+ if response.PageInfo.NextMarker == nil {
+ break
+ }
+ request.Marker = response.PageInfo.NextMarker
+ }
+ return bandwidthPackages, nil
+}
+
+func getCCClient() *cc.CcClient {
+ return cc.NewCcClient(cc.CcClientBuilder().WithRegion(region.ValueOf("cn-north-4")).
+ WithCredential(global.NewCredentialsBuilder().WithAk(conf.AccessKey).WithSk(conf.SecretKey).Build()).Build())
+}
+
+func listInterRegionBandwidths() ([]model.InterRegionBandwidth, error) {
+ request := &model.ListInterRegionBandwidthsRequest{Limit: &limit}
+ client := getCCClient()
+ var resources []model.InterRegionBandwidth
+ for {
+ response, err := client.ListInterRegionBandwidths(request)
+ if err != nil {
+ fmt.Println(err.Error())
+ return resources, err
+ }
+ resources = append(resources, *response.InterRegionBandwidths...)
+ if response.PageInfo.NextMarker == nil {
+ break
+ }
+ request.Marker = response.PageInfo.NextMarker
+ }
+ return resources, nil
+}
diff --git a/collector/collector.go b/collector/collector.go
index ebbba129..2e2ce610 100644
--- a/collector/collector.go
+++ b/collector/collector.go
@@ -107,13 +107,34 @@ func getDimLabel(metric model.BatchMetricData) labelInfo {
var label labelInfo
for _, dim := range *metric.Dimensions {
label.Name = append(label.Name, strings.ReplaceAll(dim.Name, "-", "_"))
- label.Value = append(label.Value, dim.Value)
+ label.Value = append(label.Value, getDimValue(*metric.Namespace, dim.Name, dim.Value))
}
label.Name = append(label.Name, "unit")
label.Value = append(label.Value, *metric.Unit)
return label
}
+func getDimValue(namespaces, dimName, dimValue string) string {
+ if !isContainsInStringArr(namespaces, []string{"AGT.ECS", "SERVICE.BMS"}) {
+ return dimValue
+ }
+
+ if !isContainsInStringArr(dimName, []string{"mount_point", "disk", "proc", "gpu", "raid"}) {
+ return dimValue
+ }
+
+ return getAgentOriginValue(dimValue)
+}
+
+func isContainsInStringArr(target string, array []string) bool {
+ for index := range array {
+ if target == array[index] {
+ return true
+ }
+ }
+ return false
+}
+
func (exporter *BaseHuaweiCloudExporter) collectMetricByNamespace(ctx context.Context, ch chan<- prometheus.Metric, namespace string) {
defer func() {
if err := recover(); err != nil {
diff --git a/collector/ecs.go b/collector/ecs.go
index 988ebd1a..f29391de 100644
--- a/collector/ecs.go
+++ b/collector/ecs.go
@@ -38,6 +38,7 @@ func (getter ECSInfo) GetResourceInfo() (map[string]labelInfo, []model.MetricInf
sysConfigMap := getMetricConfigMap("SYS.ECS")
for _, server := range servers {
if metricNames, ok := sysConfigMap["instance_id"]; ok {
+ loadAgentDimensions(server.ID)
metrics := buildSingleDimensionMetrics(metricNames, "SYS.ECS", "instance_id", server.ID)
filterMetrics = append(filterMetrics, metrics...)
info := labelInfo{
diff --git a/collector/elb.go b/collector/elb.go
index 5ccdba75..6026577b 100644
--- a/collector/elb.go
+++ b/collector/elb.go
@@ -98,7 +98,9 @@ func (getter ELBInfo) GetResourceInfo() (map[string]labelInfo, []cesmodel.Metric
if elbInfo.LabelInfo == nil || time.Now().Unix() > elbInfo.TTL {
getResourceMap()
sysConfigMap := getMetricConfigMap("SYS.ELB")
- for _, loadBalancer := range listLoadBalancers() {
+ loadBalancers := listLoadBalancers()
+ for index := range loadBalancers {
+ loadBalancer := loadBalancers[index]
if loadBalancerMetricNames, ok := sysConfigMap["lbaas_instance_id"]; ok {
metrics := buildSingleDimensionMetrics(loadBalancerMetricNames, "SYS.ELB", "lbaas_instance_id", loadBalancer.Id)
filterMetrics = append(filterMetrics, metrics...)
diff --git a/collector/extensions.go b/collector/extensions.go
index a34895ee..8f0fa705 100644
--- a/collector/extensions.go
+++ b/collector/extensions.go
@@ -46,6 +46,7 @@ var (
"SYS.ModelArts": ModelArtsInfo{},
"SYS.GES": GESInfo{},
"SYS.DBSS": DBSSInfo{},
+ "SYS.CC": CCInfo{},
}
)
diff --git a/collector/metrics.go b/collector/metrics.go
index 9322ae3f..b5013905 100644
--- a/collector/metrics.go
+++ b/collector/metrics.go
@@ -5,12 +5,15 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/config"
ces "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model"
+ cesv2 "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2"
+ cesv2model "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model"
"github.com/huaweicloud/cloudeye-exporter/logs"
)
var (
host string
+ agentDimensions = make(map[string]string, 0)
)
func getCESClient() *ces.CesClient {
@@ -63,3 +66,39 @@ func listAllMetrics(namespace string) ([]model.MetricInfoList, error) {
return metricData, nil
}
+
+func getCESClientV2() *cesv2.CesClient {
+ return cesv2.NewCesClient(ces.CesClientBuilder().WithCredential(
+ basic.NewCredentialsBuilder().WithAk(conf.AccessKey).WithSk(conf.SecretKey).WithProjectId(conf.ProjectID).Build()).
+ WithHttpConfig(config.DefaultHttpConfig().WithIgnoreSSLVerification(true)).
+ WithEndpoint(getEndpoint("ces", "v2")).Build())
+}
+
+func getAgentOriginValue(value string) string {
+ originValue, ok := agentDimensions[value]
+ if ok {
+ return originValue
+ }
+ return value
+}
+
+func loadAgentDimensions(instanceID string) {
+ dimName := cesv2model.GetListAgentDimensionInfoRequestDimNameEnum()
+ dimNames := []cesv2model.ListAgentDimensionInfoRequestDimName{dimName.DISK,
+ dimName.MOUNT_POINT, dimName.GPU, dimName.PROC, dimName.RAID}
+ for _, name := range dimNames {
+ request := &cesv2model.ListAgentDimensionInfoRequest{
+ ContentType: "application/json",
+ InstanceId: instanceID,
+ DimName: name,
+ }
+ response, err := getCESClientV2().ListAgentDimensionInfo(request)
+ if err != nil {
+ logs.Logger.Errorf("Failed to list agentDimensions: %s", err.Error())
+ return
+ }
+ for _, dimension := range *response.Dimensions {
+ agentDimensions[*dimension.Value] = *dimension.OriginValue
+ }
+ }
+}
diff --git a/collector/utils.go b/collector/utils.go
index 8902fa50..d280497f 100644
--- a/collector/utils.go
+++ b/collector/utils.go
@@ -67,7 +67,7 @@ func GetResourceKeyFromMetricData(metric model.BatchMetricData) string {
if *metric.Namespace == "SYS.DMS" {
return getDmsResourceKey(metric)
}
- if *metric.Namespace == "AGT.ECS" || *metric.Namespace == "SERVICE.BMS"{
+ if *metric.Namespace == "AGT.ECS" || *metric.Namespace == "SERVICE.BMS" {
return getServerResourceKey(metric)
}
sort.Slice(*metric.Dimensions, func(i, j int) bool {
@@ -183,7 +183,7 @@ func buildDimensionMetrics(metricNames []string, namespace string, dimensions []
func getHcClient(endpoint string) *core.HcHttpClient {
return core.NewHcHttpClient(impl.NewDefaultHttpClient(config.DefaultHttpConfig().WithIgnoreSSLVerification(true))).
WithCredential(basic.NewCredentialsBuilder().WithAk(conf.AccessKey).WithSk(conf.SecretKey).WithProjectId(conf.ProjectID).Build()).
- WithEndpoint(endpoint)
+ WithEndpoints([]string{endpoint})
}
func genDefaultReqDefWithOffsetAndLimit(path string, response interface{}) *def.HttpRequestDef {
diff --git a/go.mod b/go.mod
index 32b8a4ea..9343ad81 100644
--- a/go.mod
+++ b/go.mod
@@ -4,7 +4,7 @@ go 1.16
require (
github.com/cihub/seelog v0.0.0-20191126193922-f561c5e57575
- github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.0.99
+ github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.35
github.com/prometheus/client_golang v1.12.2
gopkg.in/yaml.v3 v3.0.1
)
diff --git a/go.sum b/go.sum
index c0c1a113..6b75f9c8 100644
--- a/go.sum
+++ b/go.sum
@@ -99,6 +99,7 @@ github.com/golang/protobuf v1.4.3/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw=
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
+github.com/golang/snappy v0.0.1/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
github.com/google/btree v0.0.0-20180813153112-4030bb1f1f0c/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
@@ -108,6 +109,7 @@ github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/
github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.4/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
@@ -126,8 +128,8 @@ github.com/googleapis/gax-go/v2 v2.0.4/go.mod h1:0Wqv26UfaUD9n4G6kQubkQ+KchISgw+
github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5mhpdKc/us6bOk=
github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8=
-github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.0.99 h1:Na9nP21Nqha4DFChXroPZqfrbSrFUkApVDmmhVZGEgM=
-github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.0.99/go.mod h1:i26wWZgTXy1S6CByqx7SX4lpNPECzAFF940ver/Zi9k=
+github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.35 h1:nn19IWDk/maQhHI/1t+1wgpQB4h6DS43md/BIarnEIE=
+github.com/huaweicloud/huaweicloud-sdk-go-v3 v0.1.35/go.mod h1:BXgkXeyM6erEASLPHYWjtGHHN1GhWSsvJYWyJp8jEG8=
github.com/ianlancetaylor/demangle v0.0.0-20181102032728-5e5cf60278f6/go.mod h1:aSSvb/t6k1mPoxDqO4vJh6VOCGPwU4O0C2/Eqndh1Sc=
github.com/jpillora/backoff v1.0.0/go.mod h1:J/6gKK9jxlEcS3zixgDgUAsiuZ7yrSoa/FX5e0EB2j4=
github.com/json-iterator/go v1.1.6/go.mod h1:+SdeFBvtyEkXs7REEP0seUULqWtbJapLOCVDaaPEHmU=
@@ -141,6 +143,7 @@ github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7V
github.com/julienschmidt/httprouter v1.3.0/go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM=
github.com/kisielk/errcheck v1.5.0/go.mod h1:pFxgyoBC7bSaBwPgfKdkLd5X25qrDl4LWUI2bnpBCr8=
github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/klauspost/compress v1.13.6/go.mod h1:/3/Vjq9QcHkK5uEr5lBEmyoZ1iFhe47etQ6QUkpK6sk=
github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/konsorten/go-windows-terminal-sequences v1.0.3/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
@@ -158,6 +161,7 @@ github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lN
github.com/modern-go/reflect2 v1.0.1/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
github.com/modern-go/reflect2 v1.0.2 h1:xBagoLtFs94CBntxluKeaWgTMpvLxC4ur3nMaC9Gz0M=
github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjYzDa0/r8luk=
+github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc=
github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/mwitkow/go-conntrack v0.0.0-20190716064945-2f068394615f/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
@@ -196,12 +200,21 @@ github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
-github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
-github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/stretchr/testify v1.7.2 h1:4jaiDzPyXQvSd7D0EjG45355tLlV3VOECpq10pLC+8s=
+github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals=
+github.com/tidwall/pretty v1.0.0 h1:HsD+QiTn7sK6flMKIvNmpqz1qrpP3Ps6jOKIKMooyg4=
+github.com/tidwall/pretty v1.0.0/go.mod h1:XNkn88O1ChpSDQmQeStsy+sBenx6DDtFZJxhVysOjyk=
+github.com/xdg-go/pbkdf2 v1.0.0/go.mod h1:jrpuAogTd400dnrH08LKmI/xc1MbPOebTwRqcT5RDeI=
+github.com/xdg-go/scram v1.1.1/go.mod h1:RaEWvsqvNKKvBPvcKeFjrG2cJqOkHTiyTpzz23ni57g=
+github.com/xdg-go/stringprep v1.0.3/go.mod h1:W3f5j4i+9rC0kuIEJL0ky1VpHXQU3ocBgklLGvcBnW8=
+github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d/go.mod h1:rHwXgn7JulP+udvsHwJoVG1YGAP6VLg4y9I5dyZdqmA=
github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+go.mongodb.org/mongo-driver v1.11.2 h1:+1v2rDQUWNcGW7/7E0Jvdz51V38XXxJfhzbV17aNHCw=
+go.mongodb.org/mongo-driver v1.11.2/go.mod h1:s7p5vEtfbeR1gYi6pnj3c3/urpbLv2T5Sfd6Rp2HBB8=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
@@ -285,6 +298,7 @@ golang.org/x/sync v0.0.0-20200317015054-43a5402ce75a/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@@ -331,6 +345,7 @@ golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3
golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
+golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@@ -470,7 +485,6 @@ gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.2.5/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
-gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
diff --git a/logs.conf b/logs.conf
index 866e9213..5ff6c40c 100644
--- a/logs.conf
+++ b/logs.conf
@@ -3,6 +3,6 @@
-
+
\ No newline at end of file
diff --git a/logs/logs.go b/logs/logs.go
index 1e21f595..e9186b77 100644
--- a/logs/logs.go
+++ b/logs/logs.go
@@ -4,6 +4,7 @@ import (
"io/ioutil"
"log"
"os"
+ "strings"
"github.com/cihub/seelog"
)
@@ -15,6 +16,8 @@ type LoggerConstructor struct {
}
func InitLog() {
+ // 注册自定义格式化控制器(防日志注入)
+ registerCustomFormatter()
data, err := ioutil.ReadFile("./logs.conf")
if err != nil {
log.Fatalf("Failed to read log config file, error: %s", err.Error())
@@ -83,3 +86,24 @@ func FlushLogAndExit(code int) {
Logger.Flush()
os.Exit(code)
}
+
+func registerCustomFormatter() {
+ registerErr := seelog.RegisterCustomFormatter("CleanMsg", createCleanMsgFormatter)
+ if registerErr != nil {
+ log.Printf("Register msg formatter error: %s", registerErr.Error())
+ }
+}
+
+func createCleanMsgFormatter(params string) seelog.FormatterFunc {
+ return func(message string, level seelog.LogLevel, context seelog.LogContextInterface) interface{} {
+ // 清除message中的常见日志注入字符
+ message = strings.Replace(message, "\b", "", -1)
+ message = strings.Replace(message, "\n", "", -1)
+ message = strings.Replace(message, "\t", "", -1)
+ message = strings.Replace(message, "\u000b", "", -1)
+ message = strings.Replace(message, "\f", "", -1)
+ message = strings.Replace(message, "\r", "", -1)
+ message = strings.Replace(message, "\u007f", "", -1)
+ return message
+ }
+}
diff --git a/metric.yml b/metric.yml
index d8ef0b87..a57d0fd4 100644
--- a/metric.yml
+++ b/metric.yml
@@ -1964,4 +1964,17 @@ SYS.DBSS:
audit_id:
- cpu_util
- mem_util
- - disk_util
\ No newline at end of file
+ - disk_util
+SYS.CC:
+ dim_metric_name:
+ cloud_connect_id,bwp_id,region_bandwidth_id:
+ - network_incoming_bits_rate
+ - network_outgoing_bits_rate
+ - network_incoming_bytes
+ - network_outgoing_bytes
+ - network_incoming_packets_rate
+ - network_outgoing_packets_rate
+ - network_incoming_packets
+ - network_outgoing_packets
+ - latency
+ - packet_loss_rate
\ No newline at end of file
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/global/global_icredential.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/global/global_icredential.go
index e6514c7e..0584c745 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/global/global_icredential.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/global/global_icredential.go
@@ -184,6 +184,33 @@ func (s Credentials) needUpdateSecurityToken() bool {
return s.expiredAt-time.Now().Unix() < 60
}
+func (s Credentials) needUpdateAuthToken() bool {
+ if s.IdpId == "" || s.IdTokenFile == "" {
+ return false
+ }
+ if s.authToken == "" {
+ return true
+ }
+ return s.expiredAt-time.Now().Unix() < 60
+}
+
+func (s Credentials) getIdToken() (string, error) {
+ _, err := os.Stat(s.IdTokenFile)
+ if err != nil {
+ return "", err
+ }
+
+ bytes, err := ioutil.ReadFile(s.IdTokenFile)
+ if err != nil {
+ return "", err
+ }
+ idToken := string(bytes)
+ if idToken == "" {
+ return "", sdkerr.NewCredentialsTypeError("id token is empty")
+ }
+ return idToken, nil
+}
+
func (s *Credentials) UpdateSecurityTokenFromMetadata() error {
credential, err := internal.GetCredentialFromMetadata()
if err != nil {
@@ -202,16 +229,6 @@ func (s *Credentials) UpdateSecurityTokenFromMetadata() error {
return nil
}
-func (s Credentials) needUpdateAuthToken() bool {
- if s.IdpId == "" || s.IdTokenFile == "" {
- return false
- }
- if s.authToken == "" {
- return true
- }
- return s.expiredAt-time.Now().Unix() < 60
-}
-
func (s *Credentials) updateAuthTokenByIdToken(client *impl.DefaultHttpClient) error {
idToken, err := s.getIdToken()
if err != nil {
@@ -233,23 +250,6 @@ func (s *Credentials) updateAuthTokenByIdToken(client *impl.DefaultHttpClient) e
return nil
}
-func (s Credentials) getIdToken() (string, error) {
- _, err := os.Stat(s.IdTokenFile)
- if err != nil {
- return "", err
- }
-
- bytes, err := ioutil.ReadFile(s.IdTokenFile)
- if err != nil {
- return "", err
- }
- idToken := string(bytes)
- if idToken == "" {
- return "", sdkerr.NewCredentialsTypeError("id token is empty")
- }
- return idToken, nil
-}
-
type CredentialsBuilder struct {
Credentials *Credentials
}
@@ -260,11 +260,6 @@ func NewCredentialsBuilder() *CredentialsBuilder {
}}
}
-func (builder *CredentialsBuilder) WithIamEndpointOverride(endpoint string) *CredentialsBuilder {
- builder.Credentials.IamEndpoint = endpoint
- return builder
-}
-
func (builder *CredentialsBuilder) WithAk(ak string) *CredentialsBuilder {
builder.Credentials.AK = ak
return builder
@@ -285,6 +280,11 @@ func (builder *CredentialsBuilder) WithSecurityToken(token string) *CredentialsB
return builder
}
+func (builder *CredentialsBuilder) WithIamEndpointOverride(endpoint string) *CredentialsBuilder {
+ builder.Credentials.IamEndpoint = endpoint
+ return builder
+}
+
func (builder *CredentialsBuilder) WithDerivedPredicate(derivedPredicate func(*request.DefaultHttpRequest) bool) *CredentialsBuilder {
builder.Credentials.DerivedPredicate = derivedPredicate
return builder
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/derived_signer.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/derived_signer.go
index bc0287a7..5abd7f2c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/derived_signer.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/derived_signer.go
@@ -22,6 +22,7 @@ package signer
import (
"crypto/sha256"
"encoding/hex"
+ "errors"
"fmt"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request"
"golang.org/x/crypto/hkdf"
@@ -62,8 +63,17 @@ func StringToSignDerived(canonicalRequest string, info string, t time.Time) (str
// SignDerived SignRequest set Authorization header
func SignDerived(r *request.DefaultHttpRequest, ak string, sk string, derivedAuthServiceName string, regionId string) (map[string]string, error) {
- if derivedAuthServiceName == "" || regionId == "" {
- panic("DerivedAuthServiceName and RegionId in credential is required when using derived auth")
+ if ak == "" {
+ return nil, errors.New("AK is required in credentials")
+ }
+ if sk == "" {
+ return nil, errors.New("SK is required in credentials")
+ }
+ if derivedAuthServiceName == "" {
+ return nil, errors.New("DerivedAuthServiceName is required in credentials when using derived auth")
+ }
+ if regionId == "" {
+ return nil, errors.New("RegionId is required in credentials when using derived auth")
}
var err error
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/signer.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/signer.go
index eea46c5b..4a457bb4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/signer.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth/signer/signer.go
@@ -8,6 +8,7 @@ package signer
import (
"crypto/hmac"
"crypto/sha256"
+ "errors"
"fmt"
"net/url"
"reflect"
@@ -83,7 +84,10 @@ func CanonicalURI(r *request.DefaultHttpRequest) string {
func CanonicalQueryString(r *request.DefaultHttpRequest) string {
var query = make(map[string][]string, 0)
for key, value := range r.GetQueryParams() {
- valueWithType := value.(reflect.Value)
+ valueWithType, ok := value.(reflect.Value)
+ if !ok {
+ continue
+ }
if valueWithType.Kind() == reflect.Slice {
params := r.CanonicalSliceQueryParamsToMulti(valueWithType)
@@ -196,11 +200,11 @@ func SignStringToSign(stringToSign string, signingKey []byte) (string, error) {
// HexEncodeSHA256Hash returns hexcode of sha256
func HexEncodeSHA256Hash(body []byte) (string, error) {
hash := sha256.New()
- if body == nil {
- body = []byte("")
- }
_, err := hash.Write(body)
- return fmt.Sprintf("%x", hash.Sum(nil)), err
+ if err != nil {
+ return "", err
+ }
+ return fmt.Sprintf("%x", hash.Sum(nil)), nil
}
// Get the finalized value for the "Authorization" header. The signature parameter is the output from SignStringToSign
@@ -210,6 +214,13 @@ func AuthHeaderValue(signature, accessKey string, signedHeaders []string) string
// SignRequest set Authorization header
func Sign(r *request.DefaultHttpRequest, ak string, sk string) (map[string]string, error) {
+ if ak == "" {
+ return nil, errors.New("ak is required in credentials")
+ }
+ if sk == "" {
+ return nil, errors.New("sk is required in credentials")
+ }
+
var err error
var t time.Time
var headerParams = make(map[string]string)
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/converters.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/converters.go
index c37b4e09..96c0a836 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/converters.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/converters.go
@@ -61,6 +61,8 @@ func ConvertInterfaceToString(value interface{}) string {
return strconv.FormatInt(value.(int64), 10)
case uint64:
return strconv.FormatUint(value.(uint64), 10)
+ case bool:
+ return strconv.FormatBool(value.(bool))
case string:
return value.(string)
case []byte:
@@ -70,6 +72,6 @@ func ConvertInterfaceToString(value interface{}) string {
if err != nil {
return ""
}
- return string(strings.Trim(string(b[:]), "\""))
+ return strings.Trim(string(b[:]), "\"")
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/types.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/types.go
index dc58f15b..8ae25903 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/types.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter/types.go
@@ -1,6 +1,8 @@
package converter
import (
+ "errors"
+ "fmt"
"reflect"
"strconv"
)
@@ -20,7 +22,11 @@ func (i Int32Converter) CovertStringToPrimitiveTypeAndSetField(field reflect.Val
if err != nil {
return err
}
- val := v.(int32)
+ val, ok := v.(int32)
+ if !ok {
+ return errors.New(fmt.Sprintf("failed to convert string (%s) to int32", value))
+ }
+
if isPtr {
field.Set(reflect.ValueOf(&val))
} else {
@@ -44,7 +50,11 @@ func (i Int64Converter) CovertStringToPrimitiveTypeAndSetField(field reflect.Val
if err != nil {
return err
}
- val := v.(int64)
+ val, ok := v.(int64)
+ if !ok {
+ return errors.New(fmt.Sprintf("failed to convert string (%s) to int64", value))
+ }
+
if isPtr {
field.Set(reflect.ValueOf(&val))
} else {
@@ -68,7 +78,11 @@ func (i Float32Converter) CovertStringToPrimitiveTypeAndSetField(field reflect.V
if err != nil {
return err
}
- val := v.(float32)
+ val, ok := v.(float32)
+ if !ok {
+ return errors.New(fmt.Sprintf("failed to convert string (%s) to float32", value))
+ }
+
if isPtr {
field.Set(reflect.ValueOf(&val))
} else {
@@ -92,7 +106,11 @@ func (i Float64Converter) CovertStringToPrimitiveTypeAndSetField(field reflect.V
if err != nil {
return err
}
- val := v.(float64)
+ val, ok := v.(float64)
+ if !ok {
+ return errors.New(fmt.Sprintf("failed to convert string (%s) to float64", value))
+ }
+
if isPtr {
field.Set(reflect.ValueOf(&val))
} else {
@@ -116,7 +134,12 @@ func (i BooleanConverter) CovertStringToPrimitiveTypeAndSetField(field reflect.V
if err != nil {
return err
}
- val := v.(bool)
+
+ val, ok := v.(bool)
+ if !ok {
+ return errors.New(fmt.Sprintf("failed to convert string (%s) to bool", value))
+ }
+
if isPtr {
field.Set(reflect.ValueOf(&val))
} else {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def/field.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def/field.go
index 0a498f5b..69ea7cd9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def/field.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def/field.go
@@ -27,6 +27,7 @@ const (
Query
Body
Form
+ Cname
)
type FieldDef struct {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client.go
index 512216f4..0926633e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client.go
@@ -22,6 +22,7 @@ package core
import (
"bytes"
"encoding/json"
+ "encoding/xml"
"errors"
"fmt"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth"
@@ -33,24 +34,37 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/response"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr"
jsoniter "github.com/json-iterator/go"
+ "go.mongodb.org/mongo-driver/bson"
"io/ioutil"
+ "net"
+ "net/url"
"reflect"
"strings"
+ "sync/atomic"
+)
+
+const (
+ userAgent = "User-Agent"
+ xRequestId = "X-Request-Id"
+ contentType = "Content-Type"
+ applicationXml = "application/xml"
+ applicationBson = "application/bson"
)
type HcHttpClient struct {
- endpoint string
- credential auth.ICredential
- extraHeader map[string]string
- httpClient *impl.DefaultHttpClient
+ endpoints []string
+ endpointIndex int32
+ credential auth.ICredential
+ extraHeader map[string]string
+ httpClient *impl.DefaultHttpClient
}
func NewHcHttpClient(httpClient *impl.DefaultHttpClient) *HcHttpClient {
return &HcHttpClient{httpClient: httpClient}
}
-func (hc *HcHttpClient) WithEndpoint(endpoint string) *HcHttpClient {
- hc.endpoint = endpoint
+func (hc *HcHttpClient) WithEndpoints(endpoints []string) *HcHttpClient {
+ hc.endpoints = endpoints
return hc
}
@@ -78,40 +92,88 @@ func (hc *HcHttpClient) Sync(req interface{}, reqDef *def.HttpRequestDef) (inter
func (hc *HcHttpClient) SyncInvoke(req interface{}, reqDef *def.HttpRequestDef,
exchange *exchange.SdkExchange) (interface{}, error) {
- httpRequest, err := hc.buildRequest(req, reqDef)
- if err != nil {
- return nil, err
+ var resp *response.DefaultHttpResponse
+ for {
+ httpRequest, err := hc.buildRequest(req, reqDef)
+ if err != nil {
+ return nil, err
+ }
+
+ resp, err = hc.httpClient.SyncInvokeHttpWithExchange(httpRequest, exchange)
+ if err == nil {
+ break
+ }
+
+ if isNoSuchHostErr(err) && atomic.LoadInt32(&hc.endpointIndex) < int32(len(hc.endpoints)-1) {
+ atomic.AddInt32(&hc.endpointIndex, 1)
+ } else {
+ return nil, err
+ }
}
- for k, v := range hc.extraHeader {
- httpRequest.AddHeaderParam(k, v)
+ return hc.extractResponse(resp, reqDef)
+}
+
+func (hc *HcHttpClient) extractEndpoint(req interface{}, reqDef *def.HttpRequestDef, attrMaps map[string]string) (string, error) {
+ var endpoint string
+ for _, v := range reqDef.RequestFields {
+ if v.LocationType == def.Cname {
+ u, err := url.Parse(hc.endpoints[atomic.LoadInt32(&hc.endpointIndex)])
+ if err != nil {
+ return "", err
+ }
+ value, err := hc.getFieldValueByName(v.Name, attrMaps, req)
+ if err != nil {
+ return "", err
+ }
+ endpoint = fmt.Sprintf("%s://%s.%s", u.Scheme, value, u.Host)
+ }
}
- resp, err := hc.httpClient.SyncInvokeHttpWithExchange(httpRequest, exchange)
- if err != nil {
- return nil, err
+ if endpoint == "" {
+ endpoint = hc.endpoints[hc.endpointIndex]
}
- return hc.extractResponse(resp, reqDef)
+ return endpoint, nil
}
func (hc *HcHttpClient) buildRequest(req interface{}, reqDef *def.HttpRequestDef) (*request.DefaultHttpRequest, error) {
+ t := reflect.TypeOf(req)
+ if t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+ attrMaps := hc.getFieldJsonTags(t)
+
+ endpoint, err := hc.extractEndpoint(req, reqDef, attrMaps)
+ if err != nil {
+ return nil, err
+ }
+
builder := request.NewHttpRequestBuilder().
- WithEndpoint(hc.endpoint).
+ WithEndpoint(endpoint).
WithMethod(reqDef.Method).
WithPath(reqDef.Path)
if reqDef.ContentType != "" {
- builder.AddHeaderParam("Content-Type", reqDef.ContentType)
+ builder.AddHeaderParam(contentType, reqDef.ContentType)
+ }
+
+ uaValue := "huaweicloud-usdk-go/3.0"
+ for k, v := range hc.extraHeader {
+ if strings.ToLower(k) == strings.ToLower(userAgent) {
+ uaValue = uaValue + ";" + v
+ } else {
+ builder.AddHeaderParam(k, v)
+ }
}
- builder.AddHeaderParam("User-Agent", "huaweicloud-usdk-go/3.0")
+ builder.AddHeaderParam(userAgent, uaValue)
- builder, err := hc.fillParamsFromReq(req, reqDef, builder)
+ builder, err = hc.fillParamsFromReq(req, t, reqDef, attrMaps, builder)
if err != nil {
return nil, err
}
- var httpRequest *request.DefaultHttpRequest = builder.Build()
+ var httpRequest = builder.Build()
currentHeaderParams := httpRequest.GetHeaderParams()
if _, ok := currentHeaderParams["Authorization"]; !ok {
@@ -124,14 +186,8 @@ func (hc *HcHttpClient) buildRequest(req interface{}, reqDef *def.HttpRequestDef
return httpRequest, err
}
-func (hc *HcHttpClient) fillParamsFromReq(req interface{}, reqDef *def.HttpRequestDef,
- builder *request.HttpRequestBuilder) (*request.HttpRequestBuilder, error) {
- t := reflect.TypeOf(req)
- if t.Kind() == reflect.Ptr {
- t = t.Elem()
- }
-
- attrMaps := hc.getFieldJsonTags(t)
+func (hc *HcHttpClient) fillParamsFromReq(req interface{}, t reflect.Type, reqDef *def.HttpRequestDef,
+ attrMaps map[string]string, builder *request.HttpRequestBuilder) (*request.HttpRequestBuilder, error) {
for _, fieldDef := range reqDef.RequestFields {
value, err := hc.getFieldValueByName(fieldDef.Name, attrMaps, req)
@@ -179,6 +235,7 @@ func (hc *HcHttpClient) getFieldJsonTags(t reflect.Type) map[string]string {
attrMaps[t.Field(i).Name] = jsonTag
}
}
+
return attrMaps
}
@@ -224,8 +281,8 @@ func (hc *HcHttpClient) extractResponse(resp *response.DefaultHttpResponse, reqD
return nil, sdkerr.NewServiceResponseError(resp.Response)
}
- err := hc.deserializeResponse(resp, reqDef)
- if err != nil {
+ if err := hc.deserializeResponse(resp, reqDef); err != nil {
+
return nil, err
}
@@ -254,6 +311,16 @@ func (hc *HcHttpClient) deserializeResponse(resp *response.DefaultHttpResponse,
return nil
}
+ err := hc.deserializeResponseFields(resp, reqDef)
+ if err != nil {
+ return err
+ }
+
+ addStatusCode()
+ return nil
+}
+
+func (hc *HcHttpClient) deserializeResponseFields(resp *response.DefaultHttpResponse, reqDef *def.HttpRequestDef) error {
data, err := ioutil.ReadAll(resp.Response.Body)
if err != nil {
if closeErr := resp.Response.Body.Close(); closeErr != nil {
@@ -261,22 +328,26 @@ func (hc *HcHttpClient) deserializeResponse(resp *response.DefaultHttpResponse,
}
return err
}
- if err := resp.Response.Body.Close(); err != nil {
+ if err = resp.Response.Body.Close(); err != nil {
return err
} else {
resp.Response.Body = ioutil.NopCloser(bytes.NewBuffer(data))
}
+ processError := func(err error) error {
+ return &sdkerr.ServiceResponseError{
+ StatusCode: resp.GetStatusCode(),
+ RequestId: resp.GetHeader(xRequestId),
+ ErrorMessage: err.Error(),
+ }
+ }
+
hasBody := false
for _, item := range reqDef.ResponseFields {
if item.LocationType == def.Header {
headerErr := hc.deserializeResponseHeaders(resp, reqDef, item)
if headerErr != nil {
- return &sdkerr.ServiceResponseError{
- StatusCode: resp.GetStatusCode(),
- RequestId: resp.GetHeader("X-Request-Id"),
- ErrorMessage: headerErr.Error(),
- }
+ return processError(headerErr)
}
}
@@ -285,27 +356,25 @@ func (hc *HcHttpClient) deserializeResponse(resp *response.DefaultHttpResponse,
bodyErr := hc.deserializeResponseBody(reqDef, data)
if bodyErr != nil {
- return &sdkerr.ServiceResponseError{
- StatusCode: resp.GetStatusCode(),
- RequestId: resp.GetHeader("X-Request-Id"),
- ErrorMessage: bodyErr.Error(),
- }
+ return processError(bodyErr)
}
}
}
if len(data) != 0 && !hasBody {
- err = jsoniter.Unmarshal(data, &reqDef.Response)
+ if strings.Contains(resp.Response.Header.Get(contentType), applicationXml) {
+ err = xml.Unmarshal(data, &reqDef.Response)
+ } else if strings.Contains(resp.Response.Header.Get(contentType), applicationBson) {
+ err = bson.Unmarshal(data, reqDef.Response)
+ } else {
+ err = jsoniter.Unmarshal(data, &reqDef.Response)
+ }
+
if err != nil {
- return &sdkerr.ServiceResponseError{
- StatusCode: resp.GetStatusCode(),
- RequestId: resp.GetHeader("X-Request-Id"),
- ErrorMessage: err.Error(),
- }
+ return processError(err)
}
}
- addStatusCode()
return nil
}
@@ -334,8 +403,12 @@ func (hc *HcHttpClient) deserializeResponseBody(reqDef *def.HttpRequestDef, data
} else {
bodyIns = reflect.New(body.Type).Interface()
}
-
- err := json.Unmarshal(data, bodyIns)
+ var err error
+ if reqDef.ContentType == applicationBson {
+ err = bson.Unmarshal(data, bodyIns)
+ } else {
+ err = json.Unmarshal(data, bodyIns)
+ }
if err != nil {
return err
}
@@ -358,16 +431,20 @@ func (hc *HcHttpClient) deserializeResponseHeaders(resp *response.DefaultHttpRes
if v.Kind() == reflect.Ptr {
v = v.Elem()
}
+
fieldValue := v.FieldByName(item.Name)
headerValue := resp.GetHeader(item.JsonTag)
+ if headerValue == "" {
+ return nil
+ }
sdkConverter := converter.StringConverterFactory(fieldKind)
if sdkConverter == nil {
- return errors.New("failed to convert " + item.JsonTag)
+ return fmt.Errorf("failed to convert %s", item.JsonTag)
}
- err := sdkConverter.CovertStringToPrimitiveTypeAndSetField(fieldValue, headerValue, isPtr)
- if err != nil {
+ if err := sdkConverter.CovertStringToPrimitiveTypeAndSetField(fieldValue, headerValue, isPtr); err != nil {
+
return err
}
@@ -375,18 +452,46 @@ func (hc *HcHttpClient) deserializeResponseHeaders(resp *response.DefaultHttpRes
}
func (hc *HcHttpClient) getFieldInfo(reqDef *def.HttpRequestDef, item *def.FieldDef) (bool, string) {
- var fieldKind string
+
var isPtr = false
+ var fieldKind string
+
t := reflect.TypeOf(reqDef.Response)
if t.Kind() == reflect.Ptr {
isPtr = true
t = t.Elem()
}
+
field, _ := t.FieldByName(item.Name)
if field.Type.Kind() == reflect.Ptr {
fieldKind = field.Type.Elem().Kind().String()
} else {
fieldKind = field.Type.Kind().String()
}
+
return isPtr, fieldKind
}
+
+func isNoSuchHostErr(err error) bool {
+ if err == nil {
+ return false
+ }
+ var errInterface interface{} = err
+ if innerErr, ok := errInterface.(*url.Error); !ok {
+ return false
+ } else {
+ errInterface = innerErr.Err
+ }
+
+ if innerErr, ok := errInterface.(*net.OpError); !ok {
+ return false
+ } else {
+ errInterface = innerErr.Err
+ }
+
+ if innerErr, ok := errInterface.(*net.DNSError); !ok {
+ return false
+ } else {
+ return innerErr.Err == "no such host"
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client_builder.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client_builder.go
index 8ae1849b..df161fca 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client_builder.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/hc_http_client_builder.go
@@ -34,7 +34,7 @@ type HcHttpClientBuilder struct {
CredentialsType []string
derivedAuthServiceName string
credentials auth.ICredential
- endpoint string
+ endpoints []string
httpConfig *config.HttpConfig
region *region.Region
}
@@ -56,8 +56,13 @@ func (builder *HcHttpClientBuilder) WithDerivedAuthServiceName(derivedAuthServic
return builder
}
+// Deprecated: As of 0.1.27, because of the support of the multi-endpoint feature, use WithEndpoints instead
func (builder *HcHttpClientBuilder) WithEndpoint(endpoint string) *HcHttpClientBuilder {
- builder.endpoint = endpoint
+ return builder.WithEndpoints([]string{endpoint})
+}
+
+func (builder *HcHttpClientBuilder) WithEndpoints(endpoints []string) *HcHttpClientBuilder {
+ builder.endpoints = endpoints
return builder
}
@@ -104,13 +109,12 @@ func (builder *HcHttpClientBuilder) Build() *HcHttpClient {
break
}
}
-
if !match {
panic(fmt.Sprintf("Need credential type is %s, actually is %s", builder.CredentialsType, givenCredentialsType))
}
if builder.region != nil {
- builder.endpoint = builder.region.Endpoint
+ builder.endpoints = builder.region.Endpoints
builder.credentials.ProcessAuthParams(defaultHttpClient, builder.region.Id)
if credential, ok := builder.credentials.(auth.IDerivedCredential); ok {
@@ -118,10 +122,12 @@ func (builder *HcHttpClientBuilder) Build() *HcHttpClient {
}
}
- if !strings.HasPrefix(builder.endpoint, "http") {
- builder.endpoint = "https://" + builder.endpoint
+ for index, endpoint := range builder.endpoints {
+ if !strings.HasPrefix(endpoint, "http") {
+ builder.endpoints[index] = "https://" + endpoint
+ }
}
- hcHttpClient := NewHcHttpClient(defaultHttpClient).WithEndpoint(builder.endpoint).WithCredential(builder.credentials)
+ hcHttpClient := NewHcHttpClient(defaultHttpClient).WithEndpoints(builder.endpoints).WithCredential(builder.credentials)
return hcHttpClient
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/impl/default_http_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/impl/default_http_client.go
index 3e7e5a81..9efa0d78 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/impl/default_http_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/impl/default_http_client.go
@@ -29,7 +29,6 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/response"
"io/ioutil"
"net/http"
- "net/http/httputil"
"net/url"
"time"
)
@@ -52,8 +51,8 @@ func NewDefaultHttpClient(httpConfig *config.HttpConfig) *DefaultHttpClient {
if httpConfig.HttpProxy != nil {
proxyUrl := httpConfig.HttpProxy.GetProxyUrl()
- if proxyUrl != "" {
- proxy, _ := url.Parse(proxyUrl)
+ proxy, err := url.Parse(proxyUrl)
+ if err == nil {
transport.Proxy = http.ProxyURL(proxy)
}
}
@@ -126,29 +125,28 @@ func (client *DefaultHttpClient) recordResponseInfo(exch *exchange.SdkExchange,
func (client *DefaultHttpClient) listenRequest(req *http.Request) error {
if client.httpHandler != nil && client.httpHandler.RequestHandlers != nil && req != nil {
- bodyBytes, err := httputil.DumpRequest(req, true)
- if err != nil {
- return err
- }
-
reqClone := req.Clone(req.Context())
- reqClone.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes))
- defer reqClone.Body.Close()
+
+ if req.Body != nil {
+ bodyBytes, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ return err
+ }
+
+ req.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes))
+ reqClone.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes))
+ defer reqClone.Body.Close()
+ }
client.httpHandler.RequestHandlers(*reqClone)
}
+
return nil
}
func (client *DefaultHttpClient) listenResponse(resp *http.Response) error {
if client.httpHandler != nil && client.httpHandler.ResponseHandlers != nil && resp != nil {
- bodyBytes, err := httputil.DumpResponse(resp, true)
- if err != nil {
- return err
- }
-
respClone := http.Response{
- Body: ioutil.NopCloser(bytes.NewBuffer(bodyBytes)),
Status: resp.Status,
StatusCode: resp.StatusCode,
Proto: resp.Proto,
@@ -161,10 +159,21 @@ func (client *DefaultHttpClient) listenResponse(resp *http.Response) error {
Uncompressed: resp.Uncompressed,
Trailer: resp.Trailer,
}
- defer respClone.Body.Close()
+
+ if resp.Body != nil {
+ bodyBytes, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return err
+ }
+
+ resp.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes))
+ respClone.Body = ioutil.NopCloser(bytes.NewBuffer(bodyBytes))
+ defer respClone.Body.Close()
+ }
client.httpHandler.ResponseHandlers(respClone)
}
+
return nil
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker/invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker/invoker.go
index 1f8b0579..b2948382 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker/invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker/invoker.go
@@ -92,6 +92,8 @@ func (b *BaseInvoker) Invoke() (interface{}, error) {
if b.retryChecker(resp, err) {
time.Sleep(time.Duration(b.backoffStrategy.ComputeDelayBeforeNextRetry()))
+ } else {
+ break
}
}
return resp, err
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/profile_region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/profile_region.go
index 5be4670c..1ecbfe33 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/profile_region.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/profile_region.go
@@ -21,7 +21,7 @@ package region
import (
"fmt"
- "gopkg.in/yaml.v2"
+ "gopkg.in/yaml.v3"
"io/ioutil"
"os"
"path/filepath"
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/region.go
index 0bed7f88..74673871 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/region.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region/region.go
@@ -20,18 +20,23 @@
package region
type Region struct {
- Id string
- Endpoint string
+ Id string
+ Endpoints []string
}
-func NewRegion(id string, endpoint string) *Region {
+func NewRegion(id string, endpoints ...string) *Region {
return &Region{
- Id: id,
- Endpoint: endpoint,
+ Id: id,
+ Endpoints: endpoints,
}
}
+// Deprecated: As of 0.1.27, because of the support of the multi-endpoint feature, use WithEndpointsOverride instead
func (r *Region) WithEndpointOverride(endpoint string) *Region {
- r.Endpoint = endpoint
+ return r.WithEndpointsOverride([]string{endpoint})
+}
+
+func (r *Region) WithEndpointsOverride(endpoints []string) *Region {
+ r.Endpoints = endpoints
return r
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/default_http_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/default_http_request.go
index 311aef8a..c7c811c7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/default_http_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/default_http_request.go
@@ -23,8 +23,11 @@ import (
"bufio"
"bytes"
"encoding/json"
+ "encoding/xml"
"errors"
"fmt"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "go.mongodb.org/mongo-driver/bson"
"io"
"mime/multipart"
"net/http"
@@ -108,9 +111,21 @@ func (httpRequest *DefaultHttpRequest) GetBodyToBytes() (*bytes.Buffer, error) {
if v.Kind() == reflect.String {
buf.WriteString(v.Interface().(string))
} else {
- encoder := json.NewEncoder(buf)
- encoder.SetEscapeHTML(false)
- err := encoder.Encode(httpRequest.body)
+ var err error
+ if httpRequest.headerParams["Content-Type"] == "application/xml" {
+ encoder := xml.NewEncoder(buf)
+ err = encoder.Encode(httpRequest.body)
+ } else if httpRequest.headerParams["Content-Type"] == "application/bson" {
+ buffer, err := bson.Marshal(httpRequest.body)
+ if err != nil {
+ return nil, err
+ }
+ buf.Write(buffer)
+ } else {
+ encoder := json.NewEncoder(buf)
+ encoder.SetEscapeHTML(false)
+ err = encoder.Encode(httpRequest.body)
+ }
if err != nil {
return nil, err
}
@@ -179,8 +194,17 @@ func (httpRequest *DefaultHttpRequest) covertFormBody() (*http.Request, error) {
bodyBuffer := &bytes.Buffer{}
bodyWriter := multipart.NewWriter(bodyBuffer)
+ sortedKeys := make([]string, 0, len(httpRequest.GetFormPrams()))
for k, v := range httpRequest.GetFormPrams() {
- if err := v.Write(bodyWriter, k); err != nil {
+ if _, ok := v.(*def.FilePart); ok {
+ sortedKeys = append(sortedKeys, k)
+ } else {
+ sortedKeys = append([]string{k}, sortedKeys...)
+ }
+ }
+
+ for _, k := range sortedKeys {
+ if err := httpRequest.GetFormPrams()[k].Write(bodyWriter, k); err != nil {
return nil, err
}
}
@@ -242,7 +266,10 @@ func (httpRequest *DefaultHttpRequest) fillQueryParams(req *http.Request) {
q := req.URL.Query()
for key, value := range httpRequest.GetQueryParams() {
- valueWithType := value.(reflect.Value)
+ valueWithType, ok := value.(reflect.Value)
+ if !ok {
+ continue
+ }
if valueWithType.Kind() == reflect.Slice {
params := httpRequest.CanonicalSliceQueryParamsToMulti(valueWithType)
@@ -273,12 +300,18 @@ func (httpRequest *DefaultHttpRequest) CanonicalSliceQueryParamsToMulti(value re
for i := 0; i < value.Len(); i++ {
if value.Index(i).Kind() == reflect.Struct {
- v, e := json.Marshal(value.Interface())
- if e == nil {
- if strings.HasPrefix(string(v), "\"") {
- params = append(params, strings.Trim(string(v), "\""))
- } else {
- params = append(params, string(v))
+ methodByName := value.Index(i).MethodByName("Value")
+ if methodByName.IsValid() {
+ value := converter.ConvertInterfaceToString(methodByName.Call([]reflect.Value{})[0].Interface())
+ params = append(params, value)
+ } else {
+ v, e := json.Marshal(value.Interface())
+ if e == nil {
+ if strings.HasPrefix(string(v), "\"") {
+ params = append(params, strings.Trim(string(v), "\""))
+ } else {
+ params = append(params, string(v))
+ }
}
}
} else {
@@ -336,96 +369,3 @@ func (httpRequest *DefaultHttpRequest) fillPath(req *http.Request) {
req.URL.Path = httpRequest.GetPath()
}
}
-
-type HttpRequestBuilder struct {
- httpRequest *DefaultHttpRequest
-}
-
-func NewHttpRequestBuilder() *HttpRequestBuilder {
- httpRequest := &DefaultHttpRequest{
- queryParams: make(map[string]interface{}),
- headerParams: make(map[string]string),
- pathParams: make(map[string]string),
- autoFilledPathParams: make(map[string]string),
- formParams: make(map[string]def.FormData),
- }
- httpRequestBuilder := &HttpRequestBuilder{
- httpRequest: httpRequest,
- }
- return httpRequestBuilder
-}
-
-func (builder *HttpRequestBuilder) WithEndpoint(endpoint string) *HttpRequestBuilder {
- builder.httpRequest.endpoint = endpoint
- return builder
-}
-
-func (builder *HttpRequestBuilder) WithPath(path string) *HttpRequestBuilder {
- builder.httpRequest.path = path
- return builder
-}
-
-func (builder *HttpRequestBuilder) WithMethod(method string) *HttpRequestBuilder {
- builder.httpRequest.method = method
- return builder
-}
-
-func (builder *HttpRequestBuilder) AddQueryParam(key string, value interface{}) *HttpRequestBuilder {
- builder.httpRequest.queryParams[key] = value
- return builder
-}
-
-func (builder *HttpRequestBuilder) AddPathParam(key string, value string) *HttpRequestBuilder {
- builder.httpRequest.pathParams[key] = value
- return builder
-}
-
-func (builder *HttpRequestBuilder) AddAutoFilledPathParam(key string, value string) *HttpRequestBuilder {
- builder.httpRequest.autoFilledPathParams[key] = value
- return builder
-}
-
-func (builder *HttpRequestBuilder) AddHeaderParam(key string, value string) *HttpRequestBuilder {
- builder.httpRequest.headerParams[key] = value
- return builder
-}
-
-func (builder *HttpRequestBuilder) AddFormParam(key string, value def.FormData) *HttpRequestBuilder {
- builder.httpRequest.formParams[key] = value
- return builder
-}
-
-func (builder *HttpRequestBuilder) WithBody(kind string, body interface{}) *HttpRequestBuilder {
- if kind == "multipart" {
- v := reflect.ValueOf(body)
- if v.Kind() == reflect.Ptr {
- v = v.Elem()
- }
-
- t := reflect.TypeOf(body)
- if t.Kind() == reflect.Ptr {
- t = t.Elem()
- }
-
- fieldNum := t.NumField()
- for i := 0; i < fieldNum; i++ {
- jsonTag := t.Field(i).Tag.Get("json")
- if jsonTag != "" {
- if v.FieldByName(t.Field(i).Name).IsNil() && strings.Contains(jsonTag, "omitempty") {
- continue
- }
- builder.AddFormParam(strings.Split(jsonTag, ",")[0], v.FieldByName(t.Field(i).Name).Interface().(def.FormData))
- } else {
- builder.AddFormParam(t.Field(i).Name, v.FieldByName(t.Field(i).Name).Interface().(def.FormData))
- }
- }
- } else {
- builder.httpRequest.body = body
- }
-
- return builder
-}
-
-func (builder *HttpRequestBuilder) Build() *DefaultHttpRequest {
- return builder.httpRequest.fillParamsInPath()
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/http_request_builder.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/http_request_builder.go
new file mode 100644
index 00000000..08af2466
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request/http_request_builder.go
@@ -0,0 +1,119 @@
+// Copyright 2022 Huawei Technologies Co.,Ltd.
+//
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+
+package request
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def"
+ "reflect"
+ "strings"
+)
+
+type HttpRequestBuilder struct {
+ httpRequest *DefaultHttpRequest
+}
+
+func NewHttpRequestBuilder() *HttpRequestBuilder {
+ httpRequest := &DefaultHttpRequest{
+ queryParams: make(map[string]interface{}),
+ headerParams: make(map[string]string),
+ pathParams: make(map[string]string),
+ autoFilledPathParams: make(map[string]string),
+ formParams: make(map[string]def.FormData),
+ }
+ httpRequestBuilder := &HttpRequestBuilder{
+ httpRequest: httpRequest,
+ }
+ return httpRequestBuilder
+}
+
+func (builder *HttpRequestBuilder) WithEndpoint(endpoint string) *HttpRequestBuilder {
+ builder.httpRequest.endpoint = endpoint
+ return builder
+}
+
+func (builder *HttpRequestBuilder) WithPath(path string) *HttpRequestBuilder {
+ builder.httpRequest.path = path
+ return builder
+}
+
+func (builder *HttpRequestBuilder) WithMethod(method string) *HttpRequestBuilder {
+ builder.httpRequest.method = method
+ return builder
+}
+
+func (builder *HttpRequestBuilder) AddQueryParam(key string, value interface{}) *HttpRequestBuilder {
+ builder.httpRequest.queryParams[key] = value
+ return builder
+}
+
+func (builder *HttpRequestBuilder) AddPathParam(key string, value string) *HttpRequestBuilder {
+ builder.httpRequest.pathParams[key] = value
+ return builder
+}
+
+func (builder *HttpRequestBuilder) AddAutoFilledPathParam(key string, value string) *HttpRequestBuilder {
+ builder.httpRequest.autoFilledPathParams[key] = value
+ return builder
+}
+
+func (builder *HttpRequestBuilder) AddHeaderParam(key string, value string) *HttpRequestBuilder {
+ builder.httpRequest.headerParams[key] = value
+ return builder
+}
+
+func (builder *HttpRequestBuilder) AddFormParam(key string, value def.FormData) *HttpRequestBuilder {
+ builder.httpRequest.formParams[key] = value
+ return builder
+}
+
+func (builder *HttpRequestBuilder) WithBody(kind string, body interface{}) *HttpRequestBuilder {
+ if kind == "multipart" {
+ v := reflect.ValueOf(body)
+ if v.Kind() == reflect.Ptr {
+ v = v.Elem()
+ }
+
+ t := reflect.TypeOf(body)
+ if t.Kind() == reflect.Ptr {
+ t = t.Elem()
+ }
+
+ fieldNum := t.NumField()
+ for i := 0; i < fieldNum; i++ {
+ jsonTag := t.Field(i).Tag.Get("json")
+ if jsonTag != "" {
+ if v.FieldByName(t.Field(i).Name).IsNil() && strings.Contains(jsonTag, "omitempty") {
+ continue
+ }
+ builder.AddFormParam(strings.Split(jsonTag, ",")[0], v.FieldByName(t.Field(i).Name).Interface().(def.FormData))
+ } else {
+ builder.AddFormParam(t.Field(i).Name, v.FieldByName(t.Field(i).Name).Interface().(def.FormData))
+ }
+ }
+ } else {
+ builder.httpRequest.body = body
+ }
+
+ return builder
+}
+
+func (builder *HttpRequestBuilder) Build() *DefaultHttpRequest {
+ return builder.httpRequest.fillParamsInPath()
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/errors.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/errors.go
index 9c8a9795..d83d39a0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/errors.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/errors.go
@@ -19,14 +19,158 @@
package sdkerr
-type Error interface {
- error
- ErrorMessage() string
+import (
+ "bytes"
+ "fmt"
+ jsoniter "github.com/json-iterator/go"
+ "io/ioutil"
+ "net/http"
+
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+)
+
+const (
+ xRequestId = "X-Request-Id"
+ code = "code"
+ message = "message"
+ errorCode = "error_code"
+ errorMsg = "error_msg"
+ encodedAuthorizationMessage = "encoded_authorization_message"
+)
+
+type CredentialsTypeError struct {
+ ErrorMessage string
+}
+
+func NewCredentialsTypeError(msg string) *CredentialsTypeError {
+ c := &CredentialsTypeError{
+ ErrorMessage: msg,
+ }
+ return c
+}
+
+func (c *CredentialsTypeError) Error() string {
+ return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", c.ErrorMessage)
+}
+
+type ConnectionError struct {
+ ErrorMessage string
+}
+
+func NewConnectionError(msg string) *ConnectionError {
+ c := &ConnectionError{
+ ErrorMessage: msg,
+ }
+ return c
+}
+
+func (c *ConnectionError) Error() string {
+ return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", c.ErrorMessage)
+}
+
+type RequestTimeoutError struct {
+ ErrorMessage string
+}
+
+func NewRequestTimeoutError(msg string) *RequestTimeoutError {
+ rt := &RequestTimeoutError{
+ ErrorMessage: msg,
+ }
+ return rt
+}
+
+func (rt *RequestTimeoutError) Error() string {
+ return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", rt.ErrorMessage)
+}
+
+type errMap map[string]interface{}
+
+func (m errMap) getStringValue(key string) string {
+ var result string
+
+ value, isExist := m[key]
+ if !isExist {
+ return result
+ }
+
+ if strVal, ok := value.(string); ok {
+ result = strVal
+ }
+
+ return result
+}
+
+type ServiceResponseError struct {
+ StatusCode int `json:"status_code"`
+ RequestId string `json:"request_id"`
+ ErrorCode string `json:"error_code"`
+ ErrorMessage string `json:"error_message"`
+ EncodedAuthorizationMessage string `json:"encoded_authorization_message"`
+}
+
+func NewServiceResponseError(resp *http.Response) *ServiceResponseError {
+ sr := &ServiceResponseError{
+ StatusCode: resp.StatusCode,
+ RequestId: resp.Header.Get(xRequestId),
+ }
+
+ data, err := ioutil.ReadAll(resp.Body)
+ defer func() {
+ closeErr := resp.Body.Close()
+ if closeErr == nil && err == nil {
+ resp.Body = ioutil.NopCloser(bytes.NewBuffer(data))
+ }
+ }()
+
+ if err == nil {
+ dataBuf := errMap{}
+ err := jsoniter.Unmarshal(data, &dataBuf)
+ if err != nil {
+ sr.ErrorMessage = string(data)
+ } else {
+ processServiceResponseError(dataBuf, sr)
+ if sr.ErrorMessage == "" {
+ sr.ErrorMessage = string(data)
+ }
+ }
+ }
+
+ return sr
+}
+
+func processServiceResponseError(m errMap, sr *ServiceResponseError) {
+ if value := m.getStringValue(encodedAuthorizationMessage); value != "" {
+ sr.EncodedAuthorizationMessage = value
+ }
+
+ _code := m.getStringValue(errorCode)
+ msg := m.getStringValue(errorMsg)
+ if _code != "" && msg != "" {
+ sr.ErrorCode = _code
+ sr.ErrorMessage = msg
+ return
+ }
+
+ _code = m.getStringValue(code)
+ msg = m.getStringValue(message)
+ if _code != "" && msg != "" {
+ sr.ErrorCode = _code
+ sr.ErrorMessage = msg
+ return
+ }
+
+ for _, v := range m {
+ if val, ok := v.(map[string]interface{}); ok {
+ processServiceResponseError(val, sr)
+ }
+ }
}
-type RequestError interface {
- Error
- StatusCode() int
- RequestID() string
- ErrorCode() string
+func (sr ServiceResponseError) Error() string {
+ data, err := utils.Marshal(sr)
+ if err != nil {
+ return fmt.Sprintf("{\"ErrorMessage\": \"%s\",\"ErrorCode\": \"%s\",\"EncodedAuthorizationMessage\": \"%s\"}",
+ sr.ErrorMessage, sr.ErrorCode, sr.EncodedAuthorizationMessage)
+ }
+ return fmt.Sprintf(string(data))
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/types.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/types.go
deleted file mode 100644
index 34ce09a8..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdkerr/types.go
+++ /dev/null
@@ -1,136 +0,0 @@
-// Copyright 2020 Huawei Technologies Co.,Ltd.
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-
-package sdkerr
-
-import (
- "bytes"
- "fmt"
- jsoniter "github.com/json-iterator/go"
- "io/ioutil"
- "net/http"
-
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-)
-
-type CredentialsTypeError struct {
- ErrorMessage string
-}
-
-func NewCredentialsTypeError(msg string) *CredentialsTypeError {
- c := &CredentialsTypeError{
- ErrorMessage: msg,
- }
- return c
-}
-
-func (c *CredentialsTypeError) Error() string {
- return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", c.ErrorMessage)
-}
-
-type ConnectionError struct {
- ErrorMessage string
-}
-
-func NewConnectionError(msg string) *ConnectionError {
- c := &ConnectionError{
- ErrorMessage: msg,
- }
- return c
-}
-
-func (c *ConnectionError) Error() string {
- return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", c.ErrorMessage)
-}
-
-type RequestTimeoutError struct {
- ErrorMessage string
-}
-
-func NewRequestTimeoutError(msg string) *RequestTimeoutError {
- rt := &RequestTimeoutError{
- ErrorMessage: msg,
- }
- return rt
-}
-
-func (rt *RequestTimeoutError) Error() string {
- return fmt.Sprintf("{\"ErrorMessage\": \"%s\"}", rt.ErrorMessage)
-}
-
-type ServiceResponseError struct {
- StatusCode int `json:"status_code"`
- RequestId string `json:"request_id"`
- ErrorCode string `json:"error_code"`
- ErrorMessage string `json:"error_message"`
-}
-
-func NewServiceResponseError(resp *http.Response) *ServiceResponseError {
- sr := &ServiceResponseError{
- StatusCode: resp.StatusCode,
- RequestId: resp.Header.Get("X-Request-Id"),
- }
-
- data, err := ioutil.ReadAll(resp.Body)
- if err == nil {
- dataBuf := make(map[string]string)
- err := jsoniter.Unmarshal(data, &dataBuf)
- if err != nil {
- dataBuf := make(map[string]map[string]string)
- err := jsoniter.Unmarshal(data, &dataBuf)
- for _, value := range dataBuf {
- if err == nil && value["code"] != "" && value["message"] != "" {
- sr.ErrorCode = value["code"]
- sr.ErrorMessage = value["message"]
- } else if err == nil && value["error_code"] != "" && value["error_msg"] != "" {
- sr.ErrorCode = value["error_code"]
- sr.ErrorMessage = value["error_msg"]
- }
- }
- } else {
- if sr.ErrorCode == "" && sr.ErrorMessage == "" {
- sr.ErrorCode = dataBuf["error_code"]
- sr.ErrorMessage = dataBuf["error_msg"]
- }
-
- if sr.ErrorCode == "" && sr.ErrorMessage == "" {
- sr.ErrorCode = dataBuf["code"]
- sr.ErrorMessage = dataBuf["message"]
- }
- }
-
- if sr.ErrorMessage == "" {
- sr.ErrorMessage = string(data)
- }
- }
-
- if err := resp.Body.Close(); err == nil {
- resp.Body = ioutil.NopCloser(bytes.NewBuffer(data))
- }
-
- return sr
-}
-
-func (sr ServiceResponseError) Error() string {
- data, err := utils.Marshal(sr)
- if err != nil {
- return fmt.Sprintf("{\"ErrorMessage\": \"%s\",\"ErrorCode\": \"%s\"}", sr.ErrorMessage, sr.ErrorCode)
- }
- return fmt.Sprintf(string(data))
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils/math_utils.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils/math_utils.go
index a71a24de..d90287dd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils/math_utils.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils/math_utils.go
@@ -19,7 +19,12 @@
package utils
-import "math/rand"
+import (
+ "crypto/rand"
+ "math/big"
+)
+
+var reader = rand.Reader
func Max32(x, y int32) int32 {
if x > y {
@@ -39,7 +44,12 @@ func RandInt32(min, max int32) int32 {
if min >= max || min == 0 || max == 0 {
return max
}
- return rand.Int31n(max-min) + min
+
+ b, err := rand.Int(reader, big.NewInt(int64(max)))
+ if err != nil {
+ return max
+ }
+ return int32(b.Int64()) + min
}
func Pow32(x, y int32) int32 {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_client.go
index 150bfe43..2727f054 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_client.go
@@ -23,8 +23,7 @@ func ApigClientBuilder() *http_client.HcHttpClientBuilder {
//
// 实例更新或绑定EIP
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AddEipV2(request *model.AddEipV2Request) (*model.AddEipV2Response, error) {
requestDef := GenReqDefForAddEipV2()
@@ -45,8 +44,7 @@ func (c *ApigClient) AddEipV2Invoker(request *model.AddEipV2Request) *AddEipV2In
//
// 实例开启公网出口
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AddEngressEipV2(request *model.AddEngressEipV2Request) (*model.AddEngressEipV2Response, error) {
requestDef := GenReqDefForAddEngressEipV2()
@@ -63,13 +61,33 @@ func (c *ApigClient) AddEngressEipV2Invoker(request *model.AddEngressEipV2Reques
return &AddEngressEipV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// AddIngressEipV2 开启实例公网入口
+//
+// 开启实例开启公网入口,仅当实例为ELB类型时支持
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) AddIngressEipV2(request *model.AddIngressEipV2Request) (*model.AddIngressEipV2Response, error) {
+ requestDef := GenReqDefForAddIngressEipV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AddIngressEipV2Response), nil
+ }
+}
+
+// AddIngressEipV2Invoker 开启实例公网入口
+func (c *ApigClient) AddIngressEipV2Invoker(request *model.AddIngressEipV2Request) *AddIngressEipV2Invoker {
+ requestDef := GenReqDefForAddIngressEipV2()
+ return &AddIngressEipV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// AssociateCertificateV2 绑定域名证书
//
// 如果创建API时,“定义API请求”使用HTTPS请求协议,那么在独立域名中需要添加SSL证书。
// 本章节主要介绍为特定域名绑定证书。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AssociateCertificateV2(request *model.AssociateCertificateV2Request) (*model.AssociateCertificateV2Response, error) {
requestDef := GenReqDefForAssociateCertificateV2()
@@ -88,11 +106,10 @@ func (c *ApigClient) AssociateCertificateV2Invoker(request *model.AssociateCerti
// AssociateDomainV2 绑定域名
//
-// 用户自定义的域名,需要CNAME到API分组的子域名上才能生效,具体方法请参见《云解析服务用户指南》的“添加CANME类型记录集”章节。
+// 用户自定义的域名,需要增加A记录才能生效,具体方法请参见《云解析服务用户指南》的“添加A类型记录集”章节。
// 每个API分组下最多可绑定5个域名。绑定域名后,用户可通过自定义域名调用API。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AssociateDomainV2(request *model.AssociateDomainV2Request) (*model.AssociateDomainV2Response, error) {
requestDef := GenReqDefForAssociateDomainV2()
@@ -117,8 +134,7 @@ func (c *ApigClient) AssociateDomainV2Invoker(request *model.AssociateDomainV2Re
//
// 将指定的签名密钥绑定到一个或多个已发布的API上。同一个API发布到不同的环境可以绑定不同的签名密钥;一个API在发布到特定环境后只能绑定一个签名密钥。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AssociateSignatureKeyV2(request *model.AssociateSignatureKeyV2Request) (*model.AssociateSignatureKeyV2Response, error) {
requestDef := GenReqDefForAssociateSignatureKeyV2()
@@ -135,12 +151,82 @@ func (c *ApigClient) AssociateSignatureKeyV2Invoker(request *model.AssociateSign
return &AssociateSignatureKeyV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// AttachApiToPlugin 插件绑定API
+//
+// 绑定插件到API上。
+// - 只能选择发布状态的API
+// - 绑定以后及时生效
+// - 修改插件后及时生效
+// - 相同类型的插件只能绑定一个,原来已经绑定的通类型插件,会直接覆盖。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) AttachApiToPlugin(request *model.AttachApiToPluginRequest) (*model.AttachApiToPluginResponse, error) {
+ requestDef := GenReqDefForAttachApiToPlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AttachApiToPluginResponse), nil
+ }
+}
+
+// AttachApiToPluginInvoker 插件绑定API
+func (c *ApigClient) AttachApiToPluginInvoker(request *model.AttachApiToPluginRequest) *AttachApiToPluginInvoker {
+ requestDef := GenReqDefForAttachApiToPlugin()
+ return &AttachApiToPluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// AttachPluginToApi API绑定插件
+//
+// 绑定插件到API上。
+// - 只能选择发布状态的API
+// - 绑定以后及时生效
+// - 修改插件后及时生效
+// - 相同类型的插件只能绑定一个,原来已经绑定的通类型插件,会直接覆盖。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) AttachPluginToApi(request *model.AttachPluginToApiRequest) (*model.AttachPluginToApiResponse, error) {
+ requestDef := GenReqDefForAttachPluginToApi()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AttachPluginToApiResponse), nil
+ }
+}
+
+// AttachPluginToApiInvoker API绑定插件
+func (c *ApigClient) AttachPluginToApiInvoker(request *model.AttachPluginToApiRequest) *AttachPluginToApiInvoker {
+ requestDef := GenReqDefForAttachPluginToApi()
+ return &AttachPluginToApiInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchCreateOrDeleteInstanceTags 批量添加或删除单个实例的标签
+//
+// 批量添加或删除单个实例的标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchCreateOrDeleteInstanceTags(request *model.BatchCreateOrDeleteInstanceTagsRequest) (*model.BatchCreateOrDeleteInstanceTagsResponse, error) {
+ requestDef := GenReqDefForBatchCreateOrDeleteInstanceTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateOrDeleteInstanceTagsResponse), nil
+ }
+}
+
+// BatchCreateOrDeleteInstanceTagsInvoker 批量添加或删除单个实例的标签
+func (c *ApigClient) BatchCreateOrDeleteInstanceTagsInvoker(request *model.BatchCreateOrDeleteInstanceTagsRequest) *BatchCreateOrDeleteInstanceTagsInvoker {
+ requestDef := GenReqDefForBatchCreateOrDeleteInstanceTags()
+ return &BatchCreateOrDeleteInstanceTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateCustomAuthorizerV2 创建自定义认证
//
// 创建自定义认证
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateCustomAuthorizerV2(request *model.CreateCustomAuthorizerV2Request) (*model.CreateCustomAuthorizerV2Response, error) {
requestDef := GenReqDefForCreateCustomAuthorizerV2()
@@ -165,8 +251,7 @@ func (c *ApigClient) CreateCustomAuthorizerV2Invoker(request *model.CreateCustom
//
// 为此,API网关提供多环境管理功能,使租户能够最大化的模拟实际场景,低成本的接入API网关。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateEnvironmentV2(request *model.CreateEnvironmentV2Request) (*model.CreateEnvironmentV2Response, error) {
requestDef := GenReqDefForCreateEnvironmentV2()
@@ -187,16 +272,18 @@ func (c *ApigClient) CreateEnvironmentV2Invoker(request *model.CreateEnvironment
//
// 将API发布到不同的环境后,对于不同的环境,可能会有不同的环境变量,比如,API的服务部署地址,请求的版本号等。
//
+//
// 用户可以定义不同的环境变量,用户在定义API时,在API的定义中使用这些变量,当调用API时,API网关会将这些变量替换成真实的变量值,以达到不同环境的区分效果。
//
+//
// 环境变量定义在API分组上,该分组下的所有API都可以使用这些变量。
-// > 1.环境变量的变量名称必须保持唯一,即一个分组在同一个环境上不能有两个同名的变量
-// 2.环境变量区分大小写,即变量ABC与变量abc是两个不同的变量
-// 3.设置了环境变量后,使用到该变量的API的调试功能将不可使用。
-// 4.定义了环境变量后,使用到环境变量的地方应该以对称的#标识环境变量,当API发布到相应的环境后,会对环境变量的值进行替换,如:定义的API的URL为:https://#address#:8080,环境变量address在RELEASE环境上的值为:192.168.1.5,则API发布到RELEASE环境后的真实的URL为:https://192.168.1.5:8080。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// > 1. 环境变量的变量名称必须保持唯一,即一个分组在同一个环境上不能有两个同名的变量。
+// > 2. 环境变量区分大小写,即变量ABC与变量abc是两个不同的变量。
+// > 3. 设置了环境变量后,使用到该变量的API的调试功能将不可使用。
+// > 4. 定义了环境变量后,使用到环境变量的地方应该以对称的#标识环境变量,当API发布到相应的环境后,会对环境变量的值进行替换,如:定义的API的URL为:https://#address#:8080,环境变量address在RELEASE环境上的值为:192.168.1.5,则API发布到RELEASE环境后的真实的URL为:https://192.168.1.5:8080。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateEnvironmentVariableV2(request *model.CreateEnvironmentVariableV2Request) (*model.CreateEnvironmentVariableV2Response, error) {
requestDef := GenReqDefForCreateEnvironmentVariableV2()
@@ -219,39 +306,31 @@ func (c *ApigClient) CreateEnvironmentVariableV2Invoker(request *model.CreateEnv
//
// 支持配置的特性列表及特性配置示例如下:
//
-// | 特性名称 | 特性描述 | 特性配置示例 | 特性配置参数 | | | |
+// | 特性名称 | 特性描述 | 特性配置示例 | 特性参数名称 | 参数描述 | 参数默认值 | 参数范围 |
// --------| :------- | :-------| :-------| :-------| :-------| :-------
-// | | | | 参数名称 | 参数描述 | 参数默认值 | 参数范围 |
-// | lts | 是否支持shubao访问日志上报功能。|{\"name\":\"lts\",\"enable\":true,\"config\": \"{\\\\\"group_id\\\\\": \\\"\\,\\\\\"topic_id\\\\\":\\\\\"\\\\\",\\\\\"log_group\\\\\":\\\\\"\\\\\",\\\\\"log_stream\\\\\":\\\\\"\\\\\"}\"} | group_id | 日志组ID | | |
-// | | | | topic_id | 日志流ID | | |
-// | | | | log_group | 日志组名称 | | |
-// | | | | log_stream | 日志流名称 | | |
+// | lts | 是否支持shubao访问日志上报功能。|{\"name\":\"lts\",\"enable\":true,\"config\": \"{\\\\\"group_id\\\\\": \\\"\\,\\\\\"topic_id\\\\\":\\\\\"\\\\\",\\\\\"log_group\\\\\":\\\\\"\\\\\",\\\\\"log_stream\\\\\":\\\\\"\\\\\"}\"} | (1) group_id <br/>(2) topic_id <br/>(3) log_group <br/>(4) log_stream | (1) 日志组ID <br/>(2) 日志流ID <br/>(3) 日志组名称 <br/>(4) 日志流名称 | - | - |
// | ratelimit | 是否支持自定义流控值。|{\"name\":\"ratelimit\",\"enable\":true,\"config\": \"{\\\\\"api_limits\\\\\": 500}\"} | api_limits | API全局默认流控值。注意:如果配置过小会导致业务持续被流控,请根据业务谨慎修改。 | 200 次/秒 | 1-1000000 次/秒 |
-// | request_body_size | 是否支持指定最大请求Body大小。|{\"name\":\"request_body_size\",\"enable\":true,\"config\": \"104857600\"} | request_body_size | 请求中允许携带的Body大小上限。 | 12 M | 1-9536 M |
+// | request_body_size | 是否支持设置请求体大小上限。|{\"name\":\"request_body_size\",\"enable\":true,\"config\": \"104857600\"} | request_body_size | 请求中允许携带的Body大小上限。 | 12 M | 1-9536 M |
// | backend_timeout | 是否支持配置后端API最大超时时间。|{\"name\":\"backend_timeout\",\"enable\":true,\"config\": \"{\\\"max_timeout\\\": 500}\"} | max_timeout | API网关到后端服务的超时时间上限。 | 60000 ms | 1-600000 ms |
-// | app_token | 是否开启app_token认证方式。|{\"name\":\"app_token\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"app_token_expire_time\\\\\": 3600, \\\\\"app_token_uri\\\\\": \\\\\"/v1/apigw/oauth2/token\\\\\", \\\\\"refresh_token_expire_time\\\\\": 7200}\"} | enable | 是否开启 | off | on/off |
-// | | | | app_token_expire_time | access token的有效时间 | 3600 s | 1-72000 s |
-// | | | | refresh_token_expire_time | refresh token的有效时间 | 7200 s | 1-72000 s |
-// | | | | app_token_uri | 获取token的uri | /v1/apigw/oauth2/token | |
-// | | | | app_token_key | token的加密key | | |
-// | app_api_key | 是否开启app_api_key认证方式。|{\"name\":\"app_api_key\",\"enable\":true,\"config\": \"on\"} | | | off | on/off |
-// | app_basic | 是否开启app_basic认证方式。|{\"name\":\"app_basic\",\"enable\":true,\"config\": \"on\"} | | | off | on/off |
-// | app_secret | 是否支持app_secret认证方式。|{\"name\":\"app_secret\",\"enable\":true,\"config\": \"on\"} | | | off | on/off |
-// | app_jwt | 是否支持app_jwt认证方式。|{\"name\":\"app_jwt\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"auth_header\\\\\": \\\\\"Authorization\\\\\"}\"}| enable | 是否开启app_jwt认证方式。 | off | on/off |
-// | | | | auth_header | app_jwt认证头 | Authorization | |
-// | public_key | 是否支持public_key类型的后端签名。|{\"name\":\"public_key\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"public_key_uri_prefix\\\\\": \\\\\"/apigw/authadv/v2/public-key/\\\\\"}\"}| enable | 是否开启app_jwt认证方式。 | off | on/off |
-// | | | | public_key_uri_prefix | 获取public key的uri前缀 | /apigw/authadv/v2/public-key/ | |
-// | backend_token_allow | 是否支持普通租户透传token到后端。|{\"name\":\"backend_token_allow\",\"enable\":true,\"config\": \"{\\\\\"backend_token_allow_users\\\\\": [\\\\\"paas_apig_wwx548366_01\\\\\"]}\"} | backend_token_allow_users | 透传token到后端普通租户白名单,匹配普通租户domain name正则表达式 | | |
-// | backend_client_certificate | 是否开启后端双向认证。|{\"name\":\"backend_client_certificate\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"ca\\\\\": \\\\\"\\\\\",\\\\\"content\\\\\": \\\\\"\\\\\",\\\\\"key\\\\\": \\\\\"\\\\\"}\"} | enable | 是否开启 | off | on/off |
-// | | | | ca | 双向认证信任证书 | | |
-// | | | | content | 双向认证证书 | | |
-// | | | | key | 双向认证信任私钥 | | |
-// | ssl_ciphers | 是否支持https加密套件。|{\"name\":\"ssl_ciphers\",\"enable\":true,\"config\": \"config\": \"{\\\\\"ssl_ciphers\\\\\": [\\\\\"ECDHE-ECDSA-AES256-GCM-SHA384\\\\\"]}\"} | ssl_ciphers | 支持的加解密套件。ssl_ciphers数组中只允许出现默认值中的字符串,且数组不能为空。 | | ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES128-SHA256,ECDHE-RSA-AES128-SHA256 |
-// | real_ip_from_xff | 是否开启使用xff头作为访问控制、流控策略的源ip生效依据。|{\"name\":\"real_ip_from_xff\",\"enable\": true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"xff_index\\\\\": 1}\"} | enable | 是否开启 | off | on/off |
-// | | | | xff_index | 源ip所在xff头的索引位置(支持负数,-1为最后一位,以此类推) | -1 | int32有效值 |
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// | app_token | 是否开启app_token认证方式。|{\"name\":\"app_token\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"app_token_expire_time\\\\\": 3600, \\\\\"app_token_uri\\\\\": \\\\\"/v1/apigw/oauth2/token\\\\\", \\\\\"refresh_token_expire_time\\\\\": 7200}\"} | (1) enable <br/>(2) app_token_expire_time <br/>(3) refresh_token_expire_time <br/>(4) app_token_uri <br/>(5) app_token_key | (1) 是否开启 <br/>(2) access token的有效时间 <br/>(3) refresh token的有效时间 <br/>(4) 获取token的uri <br/>(5) token的加密key | (1) off <br/>(2) 3600 s <br/>(3) 7200 s <br/>(4) /v1/apigw/oauth2/token | (1) on/off <br/>(2) 1-72000 s <br/>(3) 1-72000 s |
+// | app_api_key | 是否开启app_api_key认证方式。|{\"name\":\"app_api_key\",\"enable\":true,\"config\": \"on\"} | - | - | off | on/off |
+// | app_basic | 是否开启app_basic认证方式。|{\"name\":\"app_basic\",\"enable\":true,\"config\": \"on\"} | - | - | off | on/off |
+// | app_secret | 是否支持app_secret认证方式。|{\"name\":\"app_secret\",\"enable\":true,\"config\": \"on\"} | - | - | off | on/off |
+// | app_jwt | 是否支持app_jwt认证方式。|{\"name\":\"app_jwt\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"auth_header\\\\\": \\\\\"Authorization\\\\\"}\"}| (1) enable <br/>(2) auth_header | (1) 是否开启app_jwt认证方式。 <br/>(2) app_jwt认证头 | (1) off <br/>(2) Authorization | (1) on/off |
+// | public_key | 是否支持public_key类型的后端签名。|{\"name\":\"public_key\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\", \\\\\"public_key_uri_prefix\\\\\": \\\\\"/apigw/authadv/v2/public-key/\\\\\"}\"}| (1) enable <br/>(2) public_key_uri_prefix | (1) 是否开启app_jwt认证方式。 <br/>(2) 获取public key的uri前缀 | (1) off<br/>(2) /apigw/authadv/v2/public-key/ | (1) on/off |
+// | backend_token_allow | 是否支持普通租户透传token到后端。|{\"name\":\"backend_token_allow\",\"enable\":true,\"config\": \"{\\\\\"backend_token_allow_users\\\\\": [\\\\\"user_name\\\\\"]}\"} | backend_token_allow_users | 透传token到后端普通租户白名单,匹配普通租户domain name正则表达式 | - | - |
+// | backend_client_certificate | 是否开启后端双向认证。|{\"name\":\"backend_client_certificate\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"ca\\\\\": \\\\\"\\\\\",\\\\\"content\\\\\": \\\\\"\\\\\",\\\\\"key\\\\\": \\\\\"\\\\\"}\"} | (1) enable <br/>(2) ca <br/>(3) content <br/>(4) key | (1) 是否开启 <br/>(2) 双向认证信任证书 <br/>(3) 双向认证证书 <br/>(4) 双向认证信任私钥 | (1) off | (1) on/off |
+// | ssl_ciphers | 是否支持https加密套件。|{\"name\":\"ssl_ciphers\",\"enable\":true,\"config\": \"config\": \"{\\\\\"ssl_ciphers\\\\\": [\\\\\"ECDHE-ECDSA-AES256-GCM-SHA384\\\\\"]}\"} | ssl_ciphers | 支持的加解密套件。ssl_ciphers数组中只允许出现默认值中的字符串,且数组不能为空。 | - | ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES128-SHA256,ECDHE-RSA-AES128-SHA256 |
+// | real_ip_from_xff | 是否开启使用xff头作为访问控制、流控策略的源ip生效依据。|{\"name\":\"real_ip_from_xff\",\"enable\": true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"xff_index\\\\\": 1}\"} | (1) enable <br/>(2) xff_index | (1) 是否开启 <br/>(2) 源ip所在xff头的索引位置(支持负数,-1为最后一位,以此类推) | (1) off <br/>(2) -1 | (1) on/off <br/>(2) int32有效值 |
+// | app_route | 是否支持ip访问。|{\"name\":\"app_route\",\"enable\":true,\"config\": \"on\"} | - | - | off | on/off |
+// | vpc_name_modifiable | 是否支持修改负载通道名称。 |{\"name\":\"vpc_name_modifiable\",\"enable\":true,\"config\": \"on\"} | - | - | on | on/off |
+// | default_group_host_trustlist | DEFAULT分组是否支持配置非本实例IP访问。|{\"name\":\"default_group_host_trustlist\",\"enable\": true,\"config\": \"{\\\\\"enable\\\\\":\\\\\"on\\\\\",\\\\\"hosts\\\\\":[\\\\\"123.2.2.2\\\\\",\\\\\"202.2.2.2\\\\\"]}\"} | (1) enable <br/>(2) hosts | (1) 是否开启 <br/>(2) 非本实例IP列表 | - | (1) on/off |
+// | throttle_strategy | 是否启用流控模式。 |{\"name\":\"throttle_strategy\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"strategy\\\\\": \\\\\"local\\\\\"}\"} | (1) enable <br/>(2) strategy | (1) 是否开启<br/>(2) 流控模式 | (1) off | (1) on/off <br/>(2) cluster/local |
+// | custom_log | 是否支持用户自定义API请求中的HEADER、QUERY、COOKIE参数值打印到日志。 |{\"name\":\"custom_log\",\"enable\":true,\"config\": \"{\\\\\"custom_logs\\\\\":[{\\\\\"location\\\\\":\\\\\"header\\\\\",\\\\\"name\\\\\":\\\\\"a1234\\\\\"}]}\"} | (1) custom_logs <br/>(2) location <br/>(3) name | (1) 自定义日志 <br/>(2) 位置<br/>(3) 名称 | - | (1) 数量不超过10个 <br/>(2) header/query/cookie |
+// | real_ip_header_getter | 是否开启通过用户自定义的Header获取用户源IP地址。 |{\"name\":\"real_ip_header_getter\",\"enable\":true,\"config\": \"{\\\\\"enable\\\\\": \\\\\"on\\\\\",\\\\\"header_getter\\\\\": \\\\\"header:testIP\\\\\"}\"} | (1) enable <br/>(2) header_getter | (1) 是否开启 <br/>(2) 获取用户源IP地址的自定义Header | (1) off | (1) on/off |
+// | policy_cookie_param | 是否开启策略后端条件支持cookie类型。 |{\"name\":\"policy_cookie_param\",\"enable\":true,\"config\": \"on\"} | - | - | off | on/off |
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateFeatureV2(request *model.CreateFeatureV2Request) (*model.CreateFeatureV2Response, error) {
requestDef := GenReqDefForCreateFeatureV2()
@@ -272,8 +351,7 @@ func (c *ApigClient) CreateFeatureV2Invoker(request *model.CreateFeatureV2Reques
//
// 新增分组下自定义响应
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateGatewayResponseV2(request *model.CreateGatewayResponseV2Request) (*model.CreateGatewayResponseV2Response, error) {
requestDef := GenReqDefForCreateGatewayResponseV2()
@@ -294,8 +372,7 @@ func (c *ApigClient) CreateGatewayResponseV2Invoker(request *model.CreateGateway
//
// 创建专享版实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateInstanceV2(request *model.CreateInstanceV2Request) (*model.CreateInstanceV2Response, error) {
requestDef := GenReqDefForCreateInstanceV2()
@@ -312,12 +389,34 @@ func (c *ApigClient) CreateInstanceV2Invoker(request *model.CreateInstanceV2Requ
return &CreateInstanceV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CreatePlugin 创建插件
+//
+// 创建插件信息。
+// - 插件不允许重名
+// - 插件创建后未绑定API前是无意义的,绑定API后,对绑定的API即时生效
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) CreatePlugin(request *model.CreatePluginRequest) (*model.CreatePluginResponse, error) {
+ requestDef := GenReqDefForCreatePlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreatePluginResponse), nil
+ }
+}
+
+// CreatePluginInvoker 创建插件
+func (c *ApigClient) CreatePluginInvoker(request *model.CreatePluginRequest) *CreatePluginInvoker {
+ requestDef := GenReqDefForCreatePlugin()
+ return &CreatePluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateRequestThrottlingPolicyV2 创建流控策略
//
// 当API上线后,系统会默认给每个API提供一个流控策略,API提供者可以根据自身API的服务能力及负载情况变更这个流控策略。 流控策略即限制API在一定长度的时间内,能够允许被访问的最大次数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateRequestThrottlingPolicyV2(request *model.CreateRequestThrottlingPolicyV2Request) (*model.CreateRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForCreateRequestThrottlingPolicyV2()
@@ -342,8 +441,7 @@ func (c *ApigClient) CreateRequestThrottlingPolicyV2Invoker(request *model.Creat
//
// 租户创建一个签名密钥,并将签名密钥与API进行绑定,则API网关在请求这个API时,就会使用绑定的签名密钥对请求参数进行数据加密,生成签名。当租户的后端服务收到请求时,可以校验这个签名,如果签名校验不通过,则该请求不是API网关发出的请求,租户可以拒绝这个请求,从而保证API的安全性,避免API被未知来源的请求攻击。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateSignatureKeyV2(request *model.CreateSignatureKeyV2Request) (*model.CreateSignatureKeyV2Response, error) {
requestDef := GenReqDefForCreateSignatureKeyV2()
@@ -368,8 +466,7 @@ func (c *ApigClient) CreateSignatureKeyV2Invoker(request *model.CreateSignatureK
//
// 为流控策略添加一个特殊设置的对象,可以是APP,也可以是租户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateSpecialThrottlingConfigurationV2(request *model.CreateSpecialThrottlingConfigurationV2Request) (*model.CreateSpecialThrottlingConfigurationV2Response, error) {
requestDef := GenReqDefForCreateSpecialThrottlingConfigurationV2()
@@ -390,8 +487,7 @@ func (c *ApigClient) CreateSpecialThrottlingConfigurationV2Invoker(request *mode
//
// 删除自定义认证
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteCustomAuthorizerV2(request *model.DeleteCustomAuthorizerV2Request) (*model.DeleteCustomAuthorizerV2Response, error) {
requestDef := GenReqDefForDeleteCustomAuthorizerV2()
@@ -416,8 +512,7 @@ func (c *ApigClient) DeleteCustomAuthorizerV2Invoker(request *model.DeleteCustom
//
// 环境上存在已发布的API时,该环境不能被删除。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteEnvironmentV2(request *model.DeleteEnvironmentV2Request) (*model.DeleteEnvironmentV2Response, error) {
requestDef := GenReqDefForDeleteEnvironmentV2()
@@ -438,8 +533,7 @@ func (c *ApigClient) DeleteEnvironmentV2Invoker(request *model.DeleteEnvironment
//
// 删除指定的环境变量。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteEnvironmentVariableV2(request *model.DeleteEnvironmentVariableV2Request) (*model.DeleteEnvironmentVariableV2Response, error) {
requestDef := GenReqDefForDeleteEnvironmentVariableV2()
@@ -460,8 +554,7 @@ func (c *ApigClient) DeleteEnvironmentVariableV2Invoker(request *model.DeleteEnv
//
// 删除分组指定错误类型的自定义响应配置,还原为使用默认值的配置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteGatewayResponseTypeV2(request *model.DeleteGatewayResponseTypeV2Request) (*model.DeleteGatewayResponseTypeV2Response, error) {
requestDef := GenReqDefForDeleteGatewayResponseTypeV2()
@@ -482,8 +575,7 @@ func (c *ApigClient) DeleteGatewayResponseTypeV2Invoker(request *model.DeleteGat
//
// 删除分组自定义响应
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteGatewayResponseV2(request *model.DeleteGatewayResponseV2Request) (*model.DeleteGatewayResponseV2Response, error) {
requestDef := GenReqDefForDeleteGatewayResponseV2()
@@ -504,8 +596,7 @@ func (c *ApigClient) DeleteGatewayResponseV2Invoker(request *model.DeleteGateway
//
// 删除专享版实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteInstancesV2(request *model.DeleteInstancesV2Request) (*model.DeleteInstancesV2Response, error) {
requestDef := GenReqDefForDeleteInstancesV2()
@@ -522,12 +613,33 @@ func (c *ApigClient) DeleteInstancesV2Invoker(request *model.DeleteInstancesV2Re
return &DeleteInstancesV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeletePlugin 删除插件
+//
+// 删除插件。
+// - 必须先解除API和插件的绑定关系,否则删除报错
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) DeletePlugin(request *model.DeletePluginRequest) (*model.DeletePluginResponse, error) {
+ requestDef := GenReqDefForDeletePlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeletePluginResponse), nil
+ }
+}
+
+// DeletePluginInvoker 删除插件
+func (c *ApigClient) DeletePluginInvoker(request *model.DeletePluginRequest) *DeletePluginInvoker {
+ requestDef := GenReqDefForDeletePlugin()
+ return &DeletePluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteRequestThrottlingPolicyV2 删除流控策略
//
-// 删除指定的流控策略,以及该流控策略与API的所有绑定关系。
+// 删除指定的流控策略,以及该流控策略与API的所有绑定关系。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteRequestThrottlingPolicyV2(request *model.DeleteRequestThrottlingPolicyV2Request) (*model.DeleteRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForDeleteRequestThrottlingPolicyV2()
@@ -546,10 +658,9 @@ func (c *ApigClient) DeleteRequestThrottlingPolicyV2Invoker(request *model.Delet
// DeleteSignatureKeyV2 删除签名密钥
//
-// 删除指定的签名密钥,删除签名密钥时,其配置的绑定关系会一并删除,相应的签名密钥会失效。
+// 删除指定的签名密钥,删除签名密钥时,其配置的绑定关系会一并删除,相应的签名密钥会失效。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteSignatureKeyV2(request *model.DeleteSignatureKeyV2Request) (*model.DeleteSignatureKeyV2Response, error) {
requestDef := GenReqDefForDeleteSignatureKeyV2()
@@ -570,8 +681,7 @@ func (c *ApigClient) DeleteSignatureKeyV2Invoker(request *model.DeleteSignatureK
//
// 删除某个流控策略的某个特殊配置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteSpecialThrottlingConfigurationV2(request *model.DeleteSpecialThrottlingConfigurationV2Request) (*model.DeleteSpecialThrottlingConfigurationV2Response, error) {
requestDef := GenReqDefForDeleteSpecialThrottlingConfigurationV2()
@@ -588,12 +698,55 @@ func (c *ApigClient) DeleteSpecialThrottlingConfigurationV2Invoker(request *mode
return &DeleteSpecialThrottlingConfigurationV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DetachApiFromPlugin 解除绑定插件的API
+//
+// 解除绑定在插件上的API。
+// - 解绑及时生效
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) DetachApiFromPlugin(request *model.DetachApiFromPluginRequest) (*model.DetachApiFromPluginResponse, error) {
+ requestDef := GenReqDefForDetachApiFromPlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DetachApiFromPluginResponse), nil
+ }
+}
+
+// DetachApiFromPluginInvoker 解除绑定插件的API
+func (c *ApigClient) DetachApiFromPluginInvoker(request *model.DetachApiFromPluginRequest) *DetachApiFromPluginInvoker {
+ requestDef := GenReqDefForDetachApiFromPlugin()
+ return &DetachApiFromPluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DetachPluginFromApi 解除绑定API的插件
+//
+// 解除绑定在API上的插件。
+// - 解绑及时生效
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) DetachPluginFromApi(request *model.DetachPluginFromApiRequest) (*model.DetachPluginFromApiResponse, error) {
+ requestDef := GenReqDefForDetachPluginFromApi()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DetachPluginFromApiResponse), nil
+ }
+}
+
+// DetachPluginFromApiInvoker 解除绑定API的插件
+func (c *ApigClient) DetachPluginFromApiInvoker(request *model.DetachPluginFromApiRequest) *DetachPluginFromApiInvoker {
+ requestDef := GenReqDefForDetachPluginFromApi()
+ return &DetachPluginFromApiInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DisassociateCertificateV2 删除域名证书
//
// 如果域名证书不再需要或者已过期,则可以删除证书内容。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DisassociateCertificateV2(request *model.DisassociateCertificateV2Request) (*model.DisassociateCertificateV2Response, error) {
requestDef := GenReqDefForDisassociateCertificateV2()
@@ -614,8 +767,7 @@ func (c *ApigClient) DisassociateCertificateV2Invoker(request *model.Disassociat
//
// 如果API分组不再需要绑定某个自定义域名,则可以为此API分组解绑此域名。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DisassociateDomainV2(request *model.DisassociateDomainV2Request) (*model.DisassociateDomainV2Response, error) {
requestDef := GenReqDefForDisassociateDomainV2()
@@ -636,8 +788,7 @@ func (c *ApigClient) DisassociateDomainV2Invoker(request *model.DisassociateDoma
//
// 解除API与签名密钥的绑定关系。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DisassociateSignatureKeyV2(request *model.DisassociateSignatureKeyV2Request) (*model.DisassociateSignatureKeyV2Response, error) {
requestDef := GenReqDefForDisassociateSignatureKeyV2()
@@ -654,12 +805,79 @@ func (c *ApigClient) DisassociateSignatureKeyV2Invoker(request *model.Disassocia
return &DisassociateSignatureKeyV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ImportMicroservice 导入微服务
+//
+// 导入微服务。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ImportMicroservice(request *model.ImportMicroserviceRequest) (*model.ImportMicroserviceResponse, error) {
+ requestDef := GenReqDefForImportMicroservice()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ImportMicroserviceResponse), nil
+ }
+}
+
+// ImportMicroserviceInvoker 导入微服务
+func (c *ApigClient) ImportMicroserviceInvoker(request *model.ImportMicroserviceRequest) *ImportMicroserviceInvoker {
+ requestDef := GenReqDefForImportMicroservice()
+ return &ImportMicroserviceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListApiAttachablePlugins 查询可绑定当前API的插件
+//
+// 查询可绑定当前API的插件信息。
+// - 支持分页返回
+// - 支持插件名称模糊查询
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListApiAttachablePlugins(request *model.ListApiAttachablePluginsRequest) (*model.ListApiAttachablePluginsResponse, error) {
+ requestDef := GenReqDefForListApiAttachablePlugins()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListApiAttachablePluginsResponse), nil
+ }
+}
+
+// ListApiAttachablePluginsInvoker 查询可绑定当前API的插件
+func (c *ApigClient) ListApiAttachablePluginsInvoker(request *model.ListApiAttachablePluginsRequest) *ListApiAttachablePluginsInvoker {
+ requestDef := GenReqDefForListApiAttachablePlugins()
+ return &ListApiAttachablePluginsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListApiAttachedPlugins 查询API下绑定的插件
+//
+// 查询指定API下绑定的插件信息。
+// - 用于查询指定API下已经绑定的插件列表信息
+// - 支持分页返回
+// - 支持插件名称模糊查询
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListApiAttachedPlugins(request *model.ListApiAttachedPluginsRequest) (*model.ListApiAttachedPluginsResponse, error) {
+ requestDef := GenReqDefForListApiAttachedPlugins()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListApiAttachedPluginsResponse), nil
+ }
+}
+
+// ListApiAttachedPluginsInvoker 查询API下绑定的插件
+func (c *ApigClient) ListApiAttachedPluginsInvoker(request *model.ListApiAttachedPluginsRequest) *ListApiAttachedPluginsInvoker {
+ requestDef := GenReqDefForListApiAttachedPlugins()
+ return &ListApiAttachedPluginsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListApiGroupsQuantitiesV2 查询API分组概况
//
// 查询租户名下的API分组概况。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiGroupsQuantitiesV2(request *model.ListApiGroupsQuantitiesV2Request) (*model.ListApiGroupsQuantitiesV2Response, error) {
requestDef := GenReqDefForListApiGroupsQuantitiesV2()
@@ -680,8 +898,7 @@ func (c *ApigClient) ListApiGroupsQuantitiesV2Invoker(request *model.ListApiGrou
//
// 查询租户名下的API概况:已发布到RELEASE环境的API个数,未发布到RELEASE环境的API个数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiQuantitiesV2(request *model.ListApiQuantitiesV2Request) (*model.ListApiQuantitiesV2Response, error) {
requestDef := GenReqDefForListApiQuantitiesV2()
@@ -702,8 +919,7 @@ func (c *ApigClient) ListApiQuantitiesV2Invoker(request *model.ListApiQuantities
//
// 查询某个签名密钥上已经绑定的API列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisBindedToSignatureKeyV2(request *model.ListApisBindedToSignatureKeyV2Request) (*model.ListApisBindedToSignatureKeyV2Response, error) {
requestDef := GenReqDefForListApisBindedToSignatureKeyV2()
@@ -724,8 +940,7 @@ func (c *ApigClient) ListApisBindedToSignatureKeyV2Invoker(request *model.ListAp
//
// 查询所有未绑定到该签名密钥上的API列表。需要API已经发布,未发布的API不予展示。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisNotBoundWithSignatureKeyV2(request *model.ListApisNotBoundWithSignatureKeyV2Request) (*model.ListApisNotBoundWithSignatureKeyV2Response, error) {
requestDef := GenReqDefForListApisNotBoundWithSignatureKeyV2()
@@ -746,8 +961,7 @@ func (c *ApigClient) ListApisNotBoundWithSignatureKeyV2Invoker(request *model.Li
//
// 查询租户名下的APP概况:已进行API访问授权的APP个数,未进行API访问授权的APP个数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAppQuantitiesV2(request *model.ListAppQuantitiesV2Request) (*model.ListAppQuantitiesV2Response, error) {
requestDef := GenReqDefForListAppQuantitiesV2()
@@ -768,8 +982,7 @@ func (c *ApigClient) ListAppQuantitiesV2Invoker(request *model.ListAppQuantities
//
// 查看可用区信息
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAvailableZonesV2(request *model.ListAvailableZonesV2Request) (*model.ListAvailableZonesV2Response, error) {
requestDef := GenReqDefForListAvailableZonesV2()
@@ -790,8 +1003,7 @@ func (c *ApigClient) ListAvailableZonesV2Invoker(request *model.ListAvailableZon
//
// 查询自定义认证列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListCustomAuthorizersV2(request *model.ListCustomAuthorizersV2Request) (*model.ListCustomAuthorizersV2Response, error) {
requestDef := GenReqDefForListCustomAuthorizersV2()
@@ -812,8 +1024,7 @@ func (c *ApigClient) ListCustomAuthorizersV2Invoker(request *model.ListCustomAut
//
// 查询分组下的所有环境变量的列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListEnvironmentVariablesV2(request *model.ListEnvironmentVariablesV2Request) (*model.ListEnvironmentVariablesV2Response, error) {
requestDef := GenReqDefForListEnvironmentVariablesV2()
@@ -834,8 +1045,7 @@ func (c *ApigClient) ListEnvironmentVariablesV2Invoker(request *model.ListEnviro
//
// 查询符合条件的环境列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListEnvironmentsV2(request *model.ListEnvironmentsV2Request) (*model.ListEnvironmentsV2Response, error) {
requestDef := GenReqDefForListEnvironmentsV2()
@@ -863,7 +1073,7 @@ func (c *ApigClient) ListEnvironmentsV2Invoker(request *model.ListEnvironmentsV2
// lts | 是否支持shubao访问日志上报功能。| 是 |
// gateway_responses | 是否支持网关自定义响应。| 否 |
// ratelimit | 是否支持自定义流控值。| 是 |
-// request_body_size | 是否支持指定最大请求Body大小。| 是 |
+// request_body_size | 是否支持设置请求体大小上限。| 是 |
// backend_timeout | 是否支持配置后端API最大超时时间。| 是 |
// app_token | 是否开启app_token认证方式。| 是 |
// app_api_key | 是否开启app_api_key认证方式。| 是 |
@@ -872,16 +1082,36 @@ func (c *ApigClient) ListEnvironmentsV2Invoker(request *model.ListEnvironmentsV2
// app_jwt | 是否支持app_jwt认证方式。| 是 |
// public_key | 是否支持public_key类型的后端签名。| 是 |
// backend_token_allow | 是否支持普通租户透传token到后端。| 是 |
-// sign_basic | 签名秘钥是否支持basic类型。| 否 |
+// sign_basic | 签名密钥是否支持basic类型。| 否 |
// multi_auth | API是否支持双重认证方式。| 否 |
// backend_client_certificate | 是否开启后端双向认证。| 是 |
// ssl_ciphers | 是否支持https加密套件。 | 是 |
// route | 是否支持自定义路由。| 否 |
// cors | 是否支持API使用插件功能。| 否 |
// real_ip_from_xff | 是否开启使用xff头作为访问控制、流控策略的源ip生效依据。 | 是 |
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// app_route | 是否支持ip访问。| 是 |
+// vpc_name_modifiable | 是否支持修改负载通道名称。 | 是 |
+// default_group_host_trustlist | DEFAULT分组是否支持配置非本实例IP访问。 | 是 |
+// throttle_strategy | 是否支持配置流控算法策略。 | 是 |
+// custom_log | 是否支持用户自定义API请求中的HEADER、QUERY、COOKIE参数值打印到日志。 | 是 |
+// real_ip_header_getter | 是否开启通过用户自定义的Header获取用户源IP地址。 | 是 |
+// policy_cookie_param | 是否开启策略后端条件支持cookie类型。 | 是 |
+// app_quota | 是否支持客户端配额策略。 | 否 |
+// app_acl | 是否支持流控策略。 | 否 |
+// set_resp_headers | 是否支持响应header插件。 | 否 |
+// vpc_backup | 是否支持VPC通道的主备配置。 | 否 |
+// sign_aes | 签名密钥是否支持AES加密方式。 | 否 |
+// kafka_log | 是否支持增删改查kafka日志插件。 | 否 |
+// backend_retry_count | 是否支持API配置重试次数。 | 否 |
+// policy_sys_param | 策略后端条件来源是否支持系统参数。 | 否 |
+// breaker | 是否支持断路器。 | 否 |
+// content_type_configurable | 获取API列表的接口返回信息中是否存在API的请求参数类型信息(Content-Type)。 | 否 |
+// rate_limit_plugin | 是否支持流控插件。 | 否 |
+// breakerv2 | 是否支持断路器,能够实现过载情况下服务能力降级。 | 否 |
+// sm_cipher_type | 加密本地敏感数据时,是否支持应用商密加密算法。 | 否 |
+// rate_limit_algorithm | 是否支持切换流控算法。 | 否 |
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListFeaturesV2(request *model.ListFeaturesV2Request) (*model.ListFeaturesV2Response, error) {
requestDef := GenReqDefForListFeaturesV2()
@@ -902,8 +1132,7 @@ func (c *ApigClient) ListFeaturesV2Invoker(request *model.ListFeaturesV2Request)
//
// 查询分组自定义响应列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListGatewayResponsesV2(request *model.ListGatewayResponsesV2Request) (*model.ListGatewayResponsesV2Response, error) {
requestDef := GenReqDefForListGatewayResponsesV2()
@@ -924,8 +1153,7 @@ func (c *ApigClient) ListGatewayResponsesV2Invoker(request *model.ListGatewayRes
//
// 查询租户实例配置列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListInstanceConfigsV2(request *model.ListInstanceConfigsV2Request) (*model.ListInstanceConfigsV2Response, error) {
requestDef := GenReqDefForListInstanceConfigsV2()
@@ -942,12 +1170,32 @@ func (c *ApigClient) ListInstanceConfigsV2Invoker(request *model.ListInstanceCon
return &ListInstanceConfigsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListInstanceTags 查询单个实例标签
+//
+// 查询单个实例的标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error) {
+ requestDef := GenReqDefForListInstanceTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListInstanceTagsResponse), nil
+ }
+}
+
+// ListInstanceTagsInvoker 查询单个实例标签
+func (c *ApigClient) ListInstanceTagsInvoker(request *model.ListInstanceTagsRequest) *ListInstanceTagsInvoker {
+ requestDef := GenReqDefForListInstanceTags()
+ return &ListInstanceTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListInstancesV2 查询专享版实例列表
//
// 查询专享版实例列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListInstancesV2(request *model.ListInstancesV2Request) (*model.ListInstancesV2Response, error) {
requestDef := GenReqDefForListInstancesV2()
@@ -969,8 +1217,7 @@ func (c *ApigClient) ListInstancesV2Invoker(request *model.ListInstancesV2Reques
// 根据API的id和最近的一段时间查询API被调用的次数,统计周期为1分钟。查询范围一小时以内,一分钟一个样本,其样本值为一分钟内的累计值。
// > 为了安全起见,在服务器上使用curl命令调用接口查询信息后,需要清理历史操作记录,包括但不限于“~/.bash_history”、“/var/log/messages”(如有)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListLatelyApiStatisticsV2(request *model.ListLatelyApiStatisticsV2Request) (*model.ListLatelyApiStatisticsV2Response, error) {
requestDef := GenReqDefForListLatelyApiStatisticsV2()
@@ -992,8 +1239,7 @@ func (c *ApigClient) ListLatelyApiStatisticsV2Invoker(request *model.ListLatelyA
// 根据API分组的编号查询该分组下所有API被调用的总次数,统计周期为1分钟。查询范围一小时以内,一分钟一个样本,其样本值为一分钟内的累计值。
// > 为了安全起见,在服务器上使用curl命令调用接口查询信息后,需要清理历史操作记录,包括但不限于“~/.bash_history”、“/var/log/messages”(如有)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListLatelyGroupStatisticsV2(request *model.ListLatelyGroupStatisticsV2Request) (*model.ListLatelyGroupStatisticsV2Response, error) {
requestDef := GenReqDefForListLatelyGroupStatisticsV2()
@@ -1010,12 +1256,107 @@ func (c *ApigClient) ListLatelyGroupStatisticsV2Invoker(request *model.ListLatel
return &ListLatelyGroupStatisticsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListMetricData 查询监控数据
+//
+// 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListMetricData(request *model.ListMetricDataRequest) (*model.ListMetricDataResponse, error) {
+ requestDef := GenReqDefForListMetricData()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListMetricDataResponse), nil
+ }
+}
+
+// ListMetricDataInvoker 查询监控数据
+func (c *ApigClient) ListMetricDataInvoker(request *model.ListMetricDataRequest) *ListMetricDataInvoker {
+ requestDef := GenReqDefForListMetricData()
+ return &ListMetricDataInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListPluginAttachableApis 查询可绑定当前插件的API
+//
+// 查询可绑定当前插件的API信息。
+// - 支持分页返回
+// - 支持API名称模糊查询
+// - 支持已绑定其他插件的API查询返回
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListPluginAttachableApis(request *model.ListPluginAttachableApisRequest) (*model.ListPluginAttachableApisResponse, error) {
+ requestDef := GenReqDefForListPluginAttachableApis()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPluginAttachableApisResponse), nil
+ }
+}
+
+// ListPluginAttachableApisInvoker 查询可绑定当前插件的API
+func (c *ApigClient) ListPluginAttachableApisInvoker(request *model.ListPluginAttachableApisRequest) *ListPluginAttachableApisInvoker {
+ requestDef := GenReqDefForListPluginAttachableApis()
+ return &ListPluginAttachableApisInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListPluginAttachedApis 查询插件下绑定的API
+//
+// 查询指定插件下绑定的API信息。
+// - 用于查询指定插件下已经绑定的API列表信息
+// - 支持分页返回
+// - 支持API名称模糊查询
+// - 绑定关系列表中返回的API在对应的环境中可能已经下线
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListPluginAttachedApis(request *model.ListPluginAttachedApisRequest) (*model.ListPluginAttachedApisResponse, error) {
+ requestDef := GenReqDefForListPluginAttachedApis()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPluginAttachedApisResponse), nil
+ }
+}
+
+// ListPluginAttachedApisInvoker 查询插件下绑定的API
+func (c *ApigClient) ListPluginAttachedApisInvoker(request *model.ListPluginAttachedApisRequest) *ListPluginAttachedApisInvoker {
+ requestDef := GenReqDefForListPluginAttachedApis()
+ return &ListPluginAttachedApisInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListPlugins 查询插件列表
+//
+// 查询一组符合条件的API网关插件详情。
+// - 支持分页
+// - 支持根据插件类型查询
+// - 支持根据插件可见范围查询
+// - 支持根据插件编码查询
+// - 支持根据名称模糊查询
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListPlugins(request *model.ListPluginsRequest) (*model.ListPluginsResponse, error) {
+ requestDef := GenReqDefForListPlugins()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPluginsResponse), nil
+ }
+}
+
+// ListPluginsInvoker 查询插件列表
+func (c *ApigClient) ListPluginsInvoker(request *model.ListPluginsRequest) *ListPluginsInvoker {
+ requestDef := GenReqDefForListPlugins()
+ return &ListPluginsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListProjectCofigsV2 查询某个实例的租户配置列表
//
// 查询某个实例的租户配置列表,用户可以通过此接口查看各类型资源配置及使用情况。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListProjectCofigsV2(request *model.ListProjectCofigsV2Request) (*model.ListProjectCofigsV2Response, error) {
requestDef := GenReqDefForListProjectCofigsV2()
@@ -1032,12 +1373,32 @@ func (c *ApigClient) ListProjectCofigsV2Invoker(request *model.ListProjectCofigs
return &ListProjectCofigsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListProjectInstanceTags 查询项目下所有实例标签
+//
+// 查询项目下所有实例标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListProjectInstanceTags(request *model.ListProjectInstanceTagsRequest) (*model.ListProjectInstanceTagsResponse, error) {
+ requestDef := GenReqDefForListProjectInstanceTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListProjectInstanceTagsResponse), nil
+ }
+}
+
+// ListProjectInstanceTagsInvoker 查询项目下所有实例标签
+func (c *ApigClient) ListProjectInstanceTagsInvoker(request *model.ListProjectInstanceTagsRequest) *ListProjectInstanceTagsInvoker {
+ requestDef := GenReqDefForListProjectInstanceTags()
+ return &ListProjectInstanceTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListRequestThrottlingPolicyV2 查询流控策略列表
//
// 查询所有流控策略的信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListRequestThrottlingPolicyV2(request *model.ListRequestThrottlingPolicyV2Request) (*model.ListRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForListRequestThrottlingPolicyV2()
@@ -1058,8 +1419,7 @@ func (c *ApigClient) ListRequestThrottlingPolicyV2Invoker(request *model.ListReq
//
// 查询某个API绑定的签名密钥列表。每个API在每个环境上应该最多只会绑定一个签名密钥。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListSignatureKeysBindedToApiV2(request *model.ListSignatureKeysBindedToApiV2Request) (*model.ListSignatureKeysBindedToApiV2Response, error) {
requestDef := GenReqDefForListSignatureKeysBindedToApiV2()
@@ -1080,8 +1440,7 @@ func (c *ApigClient) ListSignatureKeysBindedToApiV2Invoker(request *model.ListSi
//
// 查询所有签名密钥的信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListSignatureKeysV2(request *model.ListSignatureKeysV2Request) (*model.ListSignatureKeysV2Response, error) {
requestDef := GenReqDefForListSignatureKeysV2()
@@ -1102,8 +1461,7 @@ func (c *ApigClient) ListSignatureKeysV2Invoker(request *model.ListSignatureKeys
//
// 查看给流控策略设置的特殊配置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListSpecialThrottlingConfigurationsV2(request *model.ListSpecialThrottlingConfigurationsV2Request) (*model.ListSpecialThrottlingConfigurationsV2Response, error) {
requestDef := GenReqDefForListSpecialThrottlingConfigurationsV2()
@@ -1124,8 +1482,7 @@ func (c *ApigClient) ListSpecialThrottlingConfigurationsV2Invoker(request *model
//
// 查询标签列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListTagsV2(request *model.ListTagsV2Request) (*model.ListTagsV2Response, error) {
requestDef := GenReqDefForListTagsV2()
@@ -1146,8 +1503,7 @@ func (c *ApigClient) ListTagsV2Invoker(request *model.ListTagsV2Request) *ListTa
//
// 实例解绑EIP
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) RemoveEipV2(request *model.RemoveEipV2Request) (*model.RemoveEipV2Response, error) {
requestDef := GenReqDefForRemoveEipV2()
@@ -1168,8 +1524,7 @@ func (c *ApigClient) RemoveEipV2Invoker(request *model.RemoveEipV2Request) *Remo
//
// 关闭实例公网出口
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) RemoveEngressEipV2(request *model.RemoveEngressEipV2Request) (*model.RemoveEngressEipV2Response, error) {
requestDef := GenReqDefForRemoveEngressEipV2()
@@ -1186,12 +1541,32 @@ func (c *ApigClient) RemoveEngressEipV2Invoker(request *model.RemoveEngressEipV2
return &RemoveEngressEipV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// RemoveIngressEipV2 关闭实例公网入口
+//
+// 关闭实例公网入口,仅当实例为ELB类型时支持
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) RemoveIngressEipV2(request *model.RemoveIngressEipV2Request) (*model.RemoveIngressEipV2Response, error) {
+ requestDef := GenReqDefForRemoveIngressEipV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RemoveIngressEipV2Response), nil
+ }
+}
+
+// RemoveIngressEipV2Invoker 关闭实例公网入口
+func (c *ApigClient) RemoveIngressEipV2Invoker(request *model.RemoveIngressEipV2Request) *RemoveIngressEipV2Invoker {
+ requestDef := GenReqDefForRemoveIngressEipV2()
+ return &RemoveIngressEipV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowDetailsOfCustomAuthorizersV2 查看自定义认证详情
//
// 查看自定义认证详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfCustomAuthorizersV2(request *model.ShowDetailsOfCustomAuthorizersV2Request) (*model.ShowDetailsOfCustomAuthorizersV2Response, error) {
requestDef := GenReqDefForShowDetailsOfCustomAuthorizersV2()
@@ -1212,8 +1587,7 @@ func (c *ApigClient) ShowDetailsOfCustomAuthorizersV2Invoker(request *model.Show
//
// 查看域名下绑定的证书详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfDomainNameCertificateV2(request *model.ShowDetailsOfDomainNameCertificateV2Request) (*model.ShowDetailsOfDomainNameCertificateV2Response, error) {
requestDef := GenReqDefForShowDetailsOfDomainNameCertificateV2()
@@ -1234,8 +1608,7 @@ func (c *ApigClient) ShowDetailsOfDomainNameCertificateV2Invoker(request *model.
//
// 查看指定的环境变量的详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfEnvironmentVariableV2(request *model.ShowDetailsOfEnvironmentVariableV2Request) (*model.ShowDetailsOfEnvironmentVariableV2Response, error) {
requestDef := GenReqDefForShowDetailsOfEnvironmentVariableV2()
@@ -1256,8 +1629,7 @@ func (c *ApigClient) ShowDetailsOfEnvironmentVariableV2Invoker(request *model.Sh
//
// 查看分组下指定错误类型的自定义响应
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfGatewayResponseTypeV2(request *model.ShowDetailsOfGatewayResponseTypeV2Request) (*model.ShowDetailsOfGatewayResponseTypeV2Response, error) {
requestDef := GenReqDefForShowDetailsOfGatewayResponseTypeV2()
@@ -1278,8 +1650,7 @@ func (c *ApigClient) ShowDetailsOfGatewayResponseTypeV2Invoker(request *model.Sh
//
// 查询分组自定义响应详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfGatewayResponseV2(request *model.ShowDetailsOfGatewayResponseV2Request) (*model.ShowDetailsOfGatewayResponseV2Response, error) {
requestDef := GenReqDefForShowDetailsOfGatewayResponseV2()
@@ -1300,8 +1671,7 @@ func (c *ApigClient) ShowDetailsOfGatewayResponseV2Invoker(request *model.ShowDe
//
// 查看专享版实例创建进度
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfInstanceProgressV2(request *model.ShowDetailsOfInstanceProgressV2Request) (*model.ShowDetailsOfInstanceProgressV2Response, error) {
requestDef := GenReqDefForShowDetailsOfInstanceProgressV2()
@@ -1322,8 +1692,7 @@ func (c *ApigClient) ShowDetailsOfInstanceProgressV2Invoker(request *model.ShowD
//
// 查看专享版实例详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfInstanceV2(request *model.ShowDetailsOfInstanceV2Request) (*model.ShowDetailsOfInstanceV2Response, error) {
requestDef := GenReqDefForShowDetailsOfInstanceV2()
@@ -1344,8 +1713,7 @@ func (c *ApigClient) ShowDetailsOfInstanceV2Invoker(request *model.ShowDetailsOf
//
// 查看指定流控策略的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfRequestThrottlingPolicyV2(request *model.ShowDetailsOfRequestThrottlingPolicyV2Request) (*model.ShowDetailsOfRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForShowDetailsOfRequestThrottlingPolicyV2()
@@ -1362,12 +1730,32 @@ func (c *ApigClient) ShowDetailsOfRequestThrottlingPolicyV2Invoker(request *mode
return &ShowDetailsOfRequestThrottlingPolicyV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowPlugin 查询插件详情
+//
+// 查询插件详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ShowPlugin(request *model.ShowPluginRequest) (*model.ShowPluginResponse, error) {
+ requestDef := GenReqDefForShowPlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowPluginResponse), nil
+ }
+}
+
+// ShowPluginInvoker 查询插件详情
+func (c *ApigClient) ShowPluginInvoker(request *model.ShowPluginRequest) *ShowPluginInvoker {
+ requestDef := GenReqDefForShowPlugin()
+ return &ShowPluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateCustomAuthorizerV2 修改自定义认证
//
// 修改自定义认证
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateCustomAuthorizerV2(request *model.UpdateCustomAuthorizerV2Request) (*model.UpdateCustomAuthorizerV2Response, error) {
requestDef := GenReqDefForUpdateCustomAuthorizerV2()
@@ -1388,8 +1776,7 @@ func (c *ApigClient) UpdateCustomAuthorizerV2Invoker(request *model.UpdateCustom
//
// 修改绑定的域名所对应的配置信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateDomainV2(request *model.UpdateDomainV2Request) (*model.UpdateDomainV2Response, error) {
requestDef := GenReqDefForUpdateDomainV2()
@@ -1410,8 +1797,7 @@ func (c *ApigClient) UpdateDomainV2Invoker(request *model.UpdateDomainV2Request)
//
// 更新实例出公网带宽
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateEngressEipV2(request *model.UpdateEngressEipV2Request) (*model.UpdateEngressEipV2Response, error) {
requestDef := GenReqDefForUpdateEngressEipV2()
@@ -1432,8 +1818,7 @@ func (c *ApigClient) UpdateEngressEipV2Invoker(request *model.UpdateEngressEipV2
//
// 修改指定环境的信息。其中可修改的属性为:name、remark,其它属性不可修改。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateEnvironmentV2(request *model.UpdateEnvironmentV2Request) (*model.UpdateEnvironmentV2Response, error) {
requestDef := GenReqDefForUpdateEnvironmentV2()
@@ -1454,8 +1839,7 @@ func (c *ApigClient) UpdateEnvironmentV2Invoker(request *model.UpdateEnvironment
//
// 修改分组下指定错误类型的自定义响应。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateGatewayResponseTypeV2(request *model.UpdateGatewayResponseTypeV2Request) (*model.UpdateGatewayResponseTypeV2Response, error) {
requestDef := GenReqDefForUpdateGatewayResponseTypeV2()
@@ -1476,8 +1860,7 @@ func (c *ApigClient) UpdateGatewayResponseTypeV2Invoker(request *model.UpdateGat
//
// 修改分组自定义响应
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateGatewayResponseV2(request *model.UpdateGatewayResponseV2Request) (*model.UpdateGatewayResponseV2Response, error) {
requestDef := GenReqDefForUpdateGatewayResponseV2()
@@ -1494,12 +1877,32 @@ func (c *ApigClient) UpdateGatewayResponseV2Invoker(request *model.UpdateGateway
return &UpdateGatewayResponseV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdateIngressEipV2 更新实例入公网带宽
+//
+// 更新实例入公网带宽,仅当实例为ELB类型时支持
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdateIngressEipV2(request *model.UpdateIngressEipV2Request) (*model.UpdateIngressEipV2Response, error) {
+ requestDef := GenReqDefForUpdateIngressEipV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateIngressEipV2Response), nil
+ }
+}
+
+// UpdateIngressEipV2Invoker 更新实例入公网带宽
+func (c *ApigClient) UpdateIngressEipV2Invoker(request *model.UpdateIngressEipV2Request) *UpdateIngressEipV2Invoker {
+ requestDef := GenReqDefForUpdateIngressEipV2()
+ return &UpdateIngressEipV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateInstanceV2 更新专享版实例
//
// 更新专享版实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateInstanceV2(request *model.UpdateInstanceV2Request) (*model.UpdateInstanceV2Response, error) {
requestDef := GenReqDefForUpdateInstanceV2()
@@ -1516,12 +1919,34 @@ func (c *ApigClient) UpdateInstanceV2Invoker(request *model.UpdateInstanceV2Requ
return &UpdateInstanceV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdatePlugin 修改插件
+//
+// 修改插件信息。
+// - 插件不允许重名
+// - 插件不支持修改类型和可见范围
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdatePlugin(request *model.UpdatePluginRequest) (*model.UpdatePluginResponse, error) {
+ requestDef := GenReqDefForUpdatePlugin()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdatePluginResponse), nil
+ }
+}
+
+// UpdatePluginInvoker 修改插件
+func (c *ApigClient) UpdatePluginInvoker(request *model.UpdatePluginRequest) *UpdatePluginInvoker {
+ requestDef := GenReqDefForUpdatePlugin()
+ return &UpdatePluginInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateRequestThrottlingPolicyV2 修改流控策略
//
// 修改指定流控策略的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateRequestThrottlingPolicyV2(request *model.UpdateRequestThrottlingPolicyV2Request) (*model.UpdateRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForUpdateRequestThrottlingPolicyV2()
@@ -1542,8 +1967,7 @@ func (c *ApigClient) UpdateRequestThrottlingPolicyV2Invoker(request *model.Updat
//
// 修改指定签名密钥的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateSignatureKeyV2(request *model.UpdateSignatureKeyV2Request) (*model.UpdateSignatureKeyV2Response, error) {
requestDef := GenReqDefForUpdateSignatureKeyV2()
@@ -1564,8 +1988,7 @@ func (c *ApigClient) UpdateSignatureKeyV2Invoker(request *model.UpdateSignatureK
//
// 修改某个流控策略下的某个特殊设置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateSpecialThrottlingConfigurationV2(request *model.UpdateSpecialThrottlingConfigurationV2Request) (*model.UpdateSpecialThrottlingConfigurationV2Response, error) {
requestDef := GenReqDefForUpdateSpecialThrottlingConfigurationV2()
@@ -1588,8 +2011,7 @@ func (c *ApigClient) UpdateSpecialThrottlingConfigurationV2Invoker(request *mode
//
// 删除ACL策略时,如果存在ACL策略与API绑定关系,则无法删除。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) BatchDeleteAclV2(request *model.BatchDeleteAclV2Request) (*model.BatchDeleteAclV2Response, error) {
requestDef := GenReqDefForBatchDeleteAclV2()
@@ -1610,8 +2032,7 @@ func (c *ApigClient) BatchDeleteAclV2Invoker(request *model.BatchDeleteAclV2Requ
//
// 增加一个ACL策略,策略类型通过字段acl_type来确定(permit或者deny),限制的对象的类型可以为IP或者DOMAIN,这里的DOMAIN对应的acl_value的值为租户名称,而非“www.exampleDomain.com\"之类的网络域名。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateAclStrategyV2(request *model.CreateAclStrategyV2Request) (*model.CreateAclStrategyV2Response, error) {
requestDef := GenReqDefForCreateAclStrategyV2()
@@ -1632,8 +2053,7 @@ func (c *ApigClient) CreateAclStrategyV2Invoker(request *model.CreateAclStrategy
//
// 删除指定的ACL策略, 如果存在api与该ACL策略的绑定关系,则无法删除
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteAclV2(request *model.DeleteAclV2Request) (*model.DeleteAclV2Response, error) {
requestDef := GenReqDefForDeleteAclV2()
@@ -1654,8 +2074,7 @@ func (c *ApigClient) DeleteAclV2Invoker(request *model.DeleteAclV2Request) *Dele
//
// 查询所有的ACL策略列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAclStrategiesV2(request *model.ListAclStrategiesV2Request) (*model.ListAclStrategiesV2Response, error) {
requestDef := GenReqDefForListAclStrategiesV2()
@@ -1676,8 +2095,7 @@ func (c *ApigClient) ListAclStrategiesV2Invoker(request *model.ListAclStrategies
//
// 查询指定ACL策略的详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfAclPolicyV2(request *model.ShowDetailsOfAclPolicyV2Request) (*model.ShowDetailsOfAclPolicyV2Response, error) {
requestDef := GenReqDefForShowDetailsOfAclPolicyV2()
@@ -1698,8 +2116,7 @@ func (c *ApigClient) ShowDetailsOfAclPolicyV2Invoker(request *model.ShowDetailsO
//
// 修改指定的ACL策略,其中可修改的属性为:acl_name、acl_type、acl_value,其它属性不可修改。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateAclStrategyV2(request *model.UpdateAclStrategyV2Request) (*model.UpdateAclStrategyV2Response, error) {
requestDef := GenReqDefForUpdateAclStrategyV2()
@@ -1724,8 +2141,7 @@ func (c *ApigClient) UpdateAclStrategyV2Invoker(request *model.UpdateAclStrategy
//
// 为指定的API绑定流控策略,绑定时,需要指定在哪个环境上生效。同一个API发布到不同的环境可以绑定不同的流控策略;一个API在发布到特定环境后只能绑定一个默认的流控策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AssociateRequestThrottlingPolicyV2(request *model.AssociateRequestThrottlingPolicyV2Request) (*model.AssociateRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForAssociateRequestThrottlingPolicyV2()
@@ -1746,8 +2162,7 @@ func (c *ApigClient) AssociateRequestThrottlingPolicyV2Invoker(request *model.As
//
// 批量解除API与流控策略的绑定关系
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) BatchDisassociateThrottlingPolicyV2(request *model.BatchDisassociateThrottlingPolicyV2Request) (*model.BatchDisassociateThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForBatchDisassociateThrottlingPolicyV2()
@@ -1768,8 +2183,7 @@ func (c *ApigClient) BatchDisassociateThrottlingPolicyV2Invoker(request *model.B
//
// 将多个API发布到一个指定的环境,或将多个API从指定的环境下线。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) BatchPublishOrOfflineApiV2(request *model.BatchPublishOrOfflineApiV2Request) (*model.BatchPublishOrOfflineApiV2Response, error) {
requestDef := GenReqDefForBatchPublishOrOfflineApiV2()
@@ -1792,8 +2206,7 @@ func (c *ApigClient) BatchPublishOrOfflineApiV2Invoker(request *model.BatchPubli
//
// 多个版本之间可以进行随意切换。但一个API在一个环境上,只能有一个版本生效。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ChangeApiVersionV2(request *model.ChangeApiVersionV2Request) (*model.ChangeApiVersionV2Response, error) {
requestDef := GenReqDefForChangeApiVersionV2()
@@ -1814,8 +2227,7 @@ func (c *ApigClient) ChangeApiVersionV2Invoker(request *model.ChangeApiVersionV2
//
// API分组是API的管理单元,一个API分组等同于一个服务入口,创建API分组时,返回一个子域名作为访问入口。建议一个API分组下的API具有一定的相关性。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateApiGroupV2(request *model.CreateApiGroupV2Request) (*model.CreateApiGroupV2Response, error) {
requestDef := GenReqDefForCreateApiGroupV2()
@@ -1838,8 +2250,7 @@ func (c *ApigClient) CreateApiGroupV2Invoker(request *model.CreateApiGroupV2Requ
//
// API分为两部分,第一部分为面向API使用者的API接口,定义了使用者如何调用这个API。第二部分面向API提供者,由API提供者定义这个API的真实的后端情况,定义了API网关如何去访问真实的后端服务。API的真实后端服务目前支持三种类型:传统的HTTP/HTTPS形式的web后端、函数工作流、MOCK。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateApiV2(request *model.CreateApiV2Request) (*model.CreateApiV2Response, error) {
requestDef := GenReqDefForCreateApiV2()
@@ -1864,8 +2275,7 @@ func (c *ApigClient) CreateApiV2Invoker(request *model.CreateApiV2Request) *Crea
//
// 下线操作是将API从某个已发布的环境上下线,下线后,API将无法再被调用。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateOrDeletePublishRecordForApiV2(request *model.CreateOrDeletePublishRecordForApiV2Request) (*model.CreateOrDeletePublishRecordForApiV2Response, error) {
requestDef := GenReqDefForCreateOrDeletePublishRecordForApiV2()
@@ -1886,8 +2296,7 @@ func (c *ApigClient) CreateOrDeletePublishRecordForApiV2Invoker(request *model.C
//
// 调试一个API在指定运行环境下的定义,接口调用者需要具有操作该API的权限。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DebugApiV2(request *model.DebugApiV2Request) (*model.DebugApiV2Response, error) {
requestDef := GenReqDefForDebugApiV2()
@@ -1908,8 +2317,7 @@ func (c *ApigClient) DebugApiV2Invoker(request *model.DebugApiV2Request) *DebugA
//
// 对某个生效中的API版本进行下线操作,下线后,API在该版本生效的环境中将不再能够被调用。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteApiByVersionIdV2(request *model.DeleteApiByVersionIdV2Request) (*model.DeleteApiByVersionIdV2Response, error) {
requestDef := GenReqDefForDeleteApiByVersionIdV2()
@@ -1932,8 +2340,7 @@ func (c *ApigClient) DeleteApiByVersionIdV2Invoker(request *model.DeleteApiByVer
// 删除API分组前,要先下线并删除分组下的所有API。
// 删除时,会一并删除直接或间接关联到该分组下的所有资源,包括独立域名、SSL证书信息等等。并会将外部域名与子域名的绑定关系进行解除(取决于域名cname方式)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteApiGroupV2(request *model.DeleteApiGroupV2Request) (*model.DeleteApiGroupV2Response, error) {
requestDef := GenReqDefForDeleteApiGroupV2()
@@ -1956,8 +2363,7 @@ func (c *ApigClient) DeleteApiGroupV2Invoker(request *model.DeleteApiGroupV2Requ
//
// 删除API时,会删除该API所有相关的资源信息或绑定关系,如API的发布记录,绑定的后端服务,对APP的授权信息等。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteApiV2(request *model.DeleteApiV2Request) (*model.DeleteApiV2Response, error) {
requestDef := GenReqDefForDeleteApiV2()
@@ -1978,8 +2384,7 @@ func (c *ApigClient) DeleteApiV2Invoker(request *model.DeleteApiV2Request) *Dele
//
// 解除API与流控策略的绑定关系。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DisassociateRequestThrottlingPolicyV2(request *model.DisassociateRequestThrottlingPolicyV2Request) (*model.DisassociateRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForDisassociateRequestThrottlingPolicyV2()
@@ -2000,10 +2405,9 @@ func (c *ApigClient) DisassociateRequestThrottlingPolicyV2Invoker(request *model
//
// 查询API分组列表。
//
-// 如果是租户操作,则查询该租户下所有的分组;如果是管理员操作,则查询的是所有租户的分组。
+// 如果是租户操作,则查询该租户下所有的分组;如果是管理员权限帐号操作,则查询的是所有租户的分组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiGroupsV2(request *model.ListApiGroupsV2Request) (*model.ListApiGroupsV2Response, error) {
requestDef := GenReqDefForListApiGroupsV2()
@@ -2030,8 +2434,7 @@ func (c *ApigClient) ListApiGroupsV2Invoker(request *model.ListApiGroupsV2Reques
//
// 访问某个环境上的API,其实访问的就是其运行时的定义
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiRuntimeDefinitionV2(request *model.ListApiRuntimeDefinitionV2Request) (*model.ListApiRuntimeDefinitionV2Response, error) {
requestDef := GenReqDefForListApiRuntimeDefinitionV2()
@@ -2052,8 +2455,7 @@ func (c *ApigClient) ListApiRuntimeDefinitionV2Invoker(request *model.ListApiRun
//
// 查询某个指定的版本详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiVersionDetailV2(request *model.ListApiVersionDetailV2Request) (*model.ListApiVersionDetailV2Response, error) {
requestDef := GenReqDefForListApiVersionDetailV2()
@@ -2074,8 +2476,7 @@ func (c *ApigClient) ListApiVersionDetailV2Invoker(request *model.ListApiVersion
//
// 查询某个API的历史版本。每个API在一个环境上最多存在10个历史版本。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApiVersionsV2(request *model.ListApiVersionsV2Request) (*model.ListApiVersionsV2Response, error) {
requestDef := GenReqDefForListApiVersionsV2()
@@ -2096,8 +2497,7 @@ func (c *ApigClient) ListApiVersionsV2Invoker(request *model.ListApiVersionsV2Re
//
// 查询某个流控策略上已经绑定的API列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisBindedToRequestThrottlingPolicyV2(request *model.ListApisBindedToRequestThrottlingPolicyV2Request) (*model.ListApisBindedToRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForListApisBindedToRequestThrottlingPolicyV2()
@@ -2118,8 +2518,7 @@ func (c *ApigClient) ListApisBindedToRequestThrottlingPolicyV2Invoker(request *m
//
// 查询所有未绑定到该流控策略上的自有API列表。需要API已经发布,未发布的API不予展示。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisUnbindedToRequestThrottlingPolicyV2(request *model.ListApisUnbindedToRequestThrottlingPolicyV2Request) (*model.ListApisUnbindedToRequestThrottlingPolicyV2Response, error) {
requestDef := GenReqDefForListApisUnbindedToRequestThrottlingPolicyV2()
@@ -2140,8 +2539,7 @@ func (c *ApigClient) ListApisUnbindedToRequestThrottlingPolicyV2Invoker(request
//
// 查看API列表,返回API详细信息、发布信息等,但不能查看到后端服务信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisV2(request *model.ListApisV2Request) (*model.ListApisV2Response, error) {
requestDef := GenReqDefForListApisV2()
@@ -2162,8 +2560,7 @@ func (c *ApigClient) ListApisV2Invoker(request *model.ListApisV2Request) *ListAp
//
// 查询某个API绑定的流控策略列表。每个环境上应该最多只有一个流控策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListRequestThrottlingPoliciesBindedToApiV2(request *model.ListRequestThrottlingPoliciesBindedToApiV2Request) (*model.ListRequestThrottlingPoliciesBindedToApiV2Response, error) {
requestDef := GenReqDefForListRequestThrottlingPoliciesBindedToApiV2()
@@ -2184,8 +2581,7 @@ func (c *ApigClient) ListRequestThrottlingPoliciesBindedToApiV2Invoker(request *
//
// 查询指定分组的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfApiGroupV2(request *model.ShowDetailsOfApiGroupV2Request) (*model.ShowDetailsOfApiGroupV2Response, error) {
requestDef := GenReqDefForShowDetailsOfApiGroupV2()
@@ -2206,8 +2602,7 @@ func (c *ApigClient) ShowDetailsOfApiGroupV2Invoker(request *model.ShowDetailsOf
//
// 查看指定的API的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfApiV2(request *model.ShowDetailsOfApiV2Request) (*model.ShowDetailsOfApiV2Response, error) {
requestDef := GenReqDefForShowDetailsOfApiV2()
@@ -2228,8 +2623,7 @@ func (c *ApigClient) ShowDetailsOfApiV2Invoker(request *model.ShowDetailsOfApiV2
//
// 修改API分组属性。其中name和remark可修改,其他属性不可修改。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateApiGroupV2(request *model.UpdateApiGroupV2Request) (*model.UpdateApiGroupV2Response, error) {
requestDef := GenReqDefForUpdateApiGroupV2()
@@ -2250,8 +2644,7 @@ func (c *ApigClient) UpdateApiGroupV2Invoker(request *model.UpdateApiGroupV2Requ
//
// 修改指定API的信息,包括后端服务信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateApiV2(request *model.UpdateApiV2Request) (*model.UpdateApiV2Response, error) {
requestDef := GenReqDefForUpdateApiV2()
@@ -2272,8 +2665,7 @@ func (c *ApigClient) UpdateApiV2Invoker(request *model.UpdateApiV2Request) *Upda
//
// 批量解除API与ACL策略的绑定
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) BatchDeleteApiAclBindingV2(request *model.BatchDeleteApiAclBindingV2Request) (*model.BatchDeleteApiAclBindingV2Response, error) {
requestDef := GenReqDefForBatchDeleteApiAclBindingV2()
@@ -2296,8 +2688,7 @@ func (c *ApigClient) BatchDeleteApiAclBindingV2Invoker(request *model.BatchDelet
//
// 同一个API发布到不同的环境可以绑定不同的ACL策略;一个API在发布到特定环境后只能绑定一个同一种类型的ACL策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateApiAclBindingV2(request *model.CreateApiAclBindingV2Request) (*model.CreateApiAclBindingV2Response, error) {
requestDef := GenReqDefForCreateApiAclBindingV2()
@@ -2318,8 +2709,7 @@ func (c *ApigClient) CreateApiAclBindingV2Invoker(request *model.CreateApiAclBin
//
// 解除某条API与ACL策略的绑定关系
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteApiAclBindingV2(request *model.DeleteApiAclBindingV2Request) (*model.DeleteApiAclBindingV2Response, error) {
requestDef := GenReqDefForDeleteApiAclBindingV2()
@@ -2340,8 +2730,7 @@ func (c *ApigClient) DeleteApiAclBindingV2Invoker(request *model.DeleteApiAclBin
//
// 查看API绑定的ACL策略列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAclPolicyBindedToApiV2(request *model.ListAclPolicyBindedToApiV2Request) (*model.ListAclPolicyBindedToApiV2Response, error) {
requestDef := GenReqDefForListAclPolicyBindedToApiV2()
@@ -2362,8 +2751,7 @@ func (c *ApigClient) ListAclPolicyBindedToApiV2Invoker(request *model.ListAclPol
//
// 查看ACL策略绑定的API列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisBindedToAclPolicyV2(request *model.ListApisBindedToAclPolicyV2Request) (*model.ListApisBindedToAclPolicyV2Response, error) {
requestDef := GenReqDefForListApisBindedToAclPolicyV2()
@@ -2384,8 +2772,7 @@ func (c *ApigClient) ListApisBindedToAclPolicyV2Invoker(request *model.ListApisB
//
// 查看ACL策略未绑定的API列表,需要API已发布
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisUnbindedToAclPolicyV2(request *model.ListApisUnbindedToAclPolicyV2Request) (*model.ListApisUnbindedToAclPolicyV2Response, error) {
requestDef := GenReqDefForListApisUnbindedToAclPolicyV2()
@@ -2406,8 +2793,7 @@ func (c *ApigClient) ListApisUnbindedToAclPolicyV2Invoker(request *model.ListApi
//
// 解除API对APP的授权关系。解除授权后,APP将不再能够调用该API。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CancelingAuthorizationV2(request *model.CancelingAuthorizationV2Request) (*model.CancelingAuthorizationV2Response, error) {
requestDef := GenReqDefForCancelingAuthorizationV2()
@@ -2428,8 +2814,7 @@ func (c *ApigClient) CancelingAuthorizationV2Invoker(request *model.CancelingAut
//
// 校验app是否存在,非APP所有者可以调用该接口校验APP是否真实存在。这个接口只展示app的基本信息id 、name、 remark,其他信息不显示。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CheckAppV2(request *model.CheckAppV2Request) (*model.CheckAppV2Response, error) {
requestDef := GenReqDefForCheckAppV2()
@@ -2451,8 +2836,7 @@ func (c *ApigClient) CheckAppV2Invoker(request *model.CheckAppV2Request) *CheckA
// APP即应用,是一个可以访问API的身份标识。将API授权给APP后,APP即可调用API。
// 创建一个APP。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateAnAppV2(request *model.CreateAnAppV2Request) (*model.CreateAnAppV2Response, error) {
requestDef := GenReqDefForCreateAnAppV2()
@@ -2473,8 +2857,7 @@ func (c *ApigClient) CreateAnAppV2Invoker(request *model.CreateAnAppV2Request) *
//
// 创建App Code时,可以不指定具体值,由后台自动生成随机字符串填充。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateAppCodeAutoV2(request *model.CreateAppCodeAutoV2Request) (*model.CreateAppCodeAutoV2Response, error) {
requestDef := GenReqDefForCreateAppCodeAutoV2()
@@ -2495,8 +2878,7 @@ func (c *ApigClient) CreateAppCodeAutoV2Invoker(request *model.CreateAppCodeAuto
//
// App Code为APP应用下的子模块,创建App Code之后,可以实现简易的APP认证。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateAppCodeV2(request *model.CreateAppCodeV2Request) (*model.CreateAppCodeV2Response, error) {
requestDef := GenReqDefForCreateAppCodeV2()
@@ -2517,8 +2899,7 @@ func (c *ApigClient) CreateAppCodeV2Invoker(request *model.CreateAppCodeV2Reques
//
// APP创建成功后,还不能访问API,如果想要访问某个环境上的API,需要将该API在该环境上授权给APP。授权成功后,APP即可访问该环境上的这个API。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateAuthorizingAppsV2(request *model.CreateAuthorizingAppsV2Request) (*model.CreateAuthorizingAppsV2Response, error) {
requestDef := GenReqDefForCreateAuthorizingAppsV2()
@@ -2539,8 +2920,7 @@ func (c *ApigClient) CreateAuthorizingAppsV2Invoker(request *model.CreateAuthori
//
// 删除App Code,App Code删除后,将无法再通过简易认证访问对应的API。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteAppCodeV2(request *model.DeleteAppCodeV2Request) (*model.DeleteAppCodeV2Response, error) {
requestDef := GenReqDefForDeleteAppCodeV2()
@@ -2560,10 +2940,9 @@ func (c *ApigClient) DeleteAppCodeV2Invoker(request *model.DeleteAppCodeV2Reques
// DeleteAppV2 删除APP
//
// 删除指定的APP。
-// APP删除后,将无法再调用任何API;其中,云市场自动创建的APP无法被删除。
+// APP删除后,将无法再调用任何API[;其中,云商店自动创建的APP无法被删除](tag:hws)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteAppV2(request *model.DeleteAppV2Request) (*model.DeleteAppV2Response, error) {
requestDef := GenReqDefForDeleteAppV2()
@@ -2584,8 +2963,7 @@ func (c *ApigClient) DeleteAppV2Invoker(request *model.DeleteAppV2Request) *Dele
//
// 查询APP已经绑定的API列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisBindedToAppV2(request *model.ListApisBindedToAppV2Request) (*model.ListApisBindedToAppV2Response, error) {
requestDef := GenReqDefForListApisBindedToAppV2()
@@ -2604,10 +2982,9 @@ func (c *ApigClient) ListApisBindedToAppV2Invoker(request *model.ListApisBindedT
// ListApisUnbindedToAppV2 查看APP未绑定的API列表
//
-// 查询指定环境上某个APP未绑定的API列表,包括自有API和从云市场购买的API。
+// 查询指定环境上某个APP未绑定的API列表[,包括自有API和从云商店购买的API](tag:hws)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListApisUnbindedToAppV2(request *model.ListApisUnbindedToAppV2Request) (*model.ListApisUnbindedToAppV2Response, error) {
requestDef := GenReqDefForListApisUnbindedToAppV2()
@@ -2628,8 +3005,7 @@ func (c *ApigClient) ListApisUnbindedToAppV2Invoker(request *model.ListApisUnbin
//
// 查询App Code列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAppCodesV2(request *model.ListAppCodesV2Request) (*model.ListAppCodesV2Response, error) {
requestDef := GenReqDefForListAppCodesV2()
@@ -2650,8 +3026,7 @@ func (c *ApigClient) ListAppCodesV2Invoker(request *model.ListAppCodesV2Request)
//
// 查询API绑定的APP列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAppsBindedToApiV2(request *model.ListAppsBindedToApiV2Request) (*model.ListAppsBindedToApiV2Response, error) {
requestDef := GenReqDefForListAppsBindedToApiV2()
@@ -2672,8 +3047,7 @@ func (c *ApigClient) ListAppsBindedToApiV2Invoker(request *model.ListAppsBindedT
//
// 查询APP列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListAppsV2(request *model.ListAppsV2Request) (*model.ListAppsV2Response, error) {
requestDef := GenReqDefForListAppsV2()
@@ -2694,8 +3068,7 @@ func (c *ApigClient) ListAppsV2Invoker(request *model.ListAppsV2Request) *ListAp
//
// 重置指定APP的密钥。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ResettingAppSecretV2(request *model.ResettingAppSecretV2Request) (*model.ResettingAppSecretV2Response, error) {
requestDef := GenReqDefForResettingAppSecretV2()
@@ -2716,8 +3089,7 @@ func (c *ApigClient) ResettingAppSecretV2Invoker(request *model.ResettingAppSecr
//
// App Code为APP应用下的子模块,创建App Code之后,可以实现简易的APP认证。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfAppCodeV2(request *model.ShowDetailsOfAppCodeV2Request) (*model.ShowDetailsOfAppCodeV2Response, error) {
requestDef := GenReqDefForShowDetailsOfAppCodeV2()
@@ -2738,8 +3110,7 @@ func (c *ApigClient) ShowDetailsOfAppCodeV2Invoker(request *model.ShowDetailsOfA
//
// 查看指定APP的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfAppV2(request *model.ShowDetailsOfAppV2Request) (*model.ShowDetailsOfAppV2Response, error) {
requestDef := GenReqDefForShowDetailsOfAppV2()
@@ -2760,8 +3131,7 @@ func (c *ApigClient) ShowDetailsOfAppV2Invoker(request *model.ShowDetailsOfAppV2
//
// 修改指定APP的信息。其中可修改的属性为:name、remark,当支持用户自定义key和secret的开关开启时,app_key和app_secret也支持修改,其它属性不可修改。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateAppV2(request *model.UpdateAppV2Request) (*model.UpdateAppV2Response, error) {
requestDef := GenReqDefForUpdateAppV2()
@@ -2782,8 +3152,7 @@ func (c *ApigClient) UpdateAppV2Invoker(request *model.UpdateAppV2Request) *Upda
//
// 导出分组下API的定义信息。导出文件内容符合swagger标准规范,API网关自定义扩展字段请参考《API网关开发指南》的“导入导出API:扩展定义”章节。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ExportApiDefinitionsV2(request *model.ExportApiDefinitionsV2Request) (*model.ExportApiDefinitionsV2Response, error) {
requestDef := GenReqDefForExportApiDefinitionsV2()
@@ -2804,8 +3173,7 @@ func (c *ApigClient) ExportApiDefinitionsV2Invoker(request *model.ExportApiDefin
//
// 导入API。导入文件内容需要符合swagger标准规范,API网关自定义扩展字段请参考《API网关开发指南》的“导入导出API:扩展定义”章节。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ImportApiDefinitionsV2(request *model.ImportApiDefinitionsV2Request) (*model.ImportApiDefinitionsV2Response, error) {
requestDef := GenReqDefForImportApiDefinitionsV2()
@@ -2822,12 +3190,223 @@ func (c *ApigClient) ImportApiDefinitionsV2Invoker(request *model.ImportApiDefin
return &ImportApiDefinitionsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// AddingBackendInstancesV2 添加后端实例
+// BatchAssociateCertsV2 域名绑定SSL证书
+//
+// 域名绑定SSL证书。目前暂时仅支持单个绑定,请求体当中的certificate_ids里面有且只能有一个证书ID。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchAssociateCertsV2(request *model.BatchAssociateCertsV2Request) (*model.BatchAssociateCertsV2Response, error) {
+ requestDef := GenReqDefForBatchAssociateCertsV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchAssociateCertsV2Response), nil
+ }
+}
+
+// BatchAssociateCertsV2Invoker 域名绑定SSL证书
+func (c *ApigClient) BatchAssociateCertsV2Invoker(request *model.BatchAssociateCertsV2Request) *BatchAssociateCertsV2Invoker {
+ requestDef := GenReqDefForBatchAssociateCertsV2()
+ return &BatchAssociateCertsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchAssociateDomainsV2 SSL证书绑定域名
+//
+// SSL证书绑定域名。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchAssociateDomainsV2(request *model.BatchAssociateDomainsV2Request) (*model.BatchAssociateDomainsV2Response, error) {
+ requestDef := GenReqDefForBatchAssociateDomainsV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchAssociateDomainsV2Response), nil
+ }
+}
+
+// BatchAssociateDomainsV2Invoker SSL证书绑定域名
+func (c *ApigClient) BatchAssociateDomainsV2Invoker(request *model.BatchAssociateDomainsV2Request) *BatchAssociateDomainsV2Invoker {
+ requestDef := GenReqDefForBatchAssociateDomainsV2()
+ return &BatchAssociateDomainsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDisassociateCertsV2 域名解绑SSL证书
+//
+// 域名解绑SSL证书。目前暂时仅支持单个解绑,请求体当中的certificate_ids里面有且只能有一个证书ID。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchDisassociateCertsV2(request *model.BatchDisassociateCertsV2Request) (*model.BatchDisassociateCertsV2Response, error) {
+ requestDef := GenReqDefForBatchDisassociateCertsV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDisassociateCertsV2Response), nil
+ }
+}
+
+// BatchDisassociateCertsV2Invoker 域名解绑SSL证书
+func (c *ApigClient) BatchDisassociateCertsV2Invoker(request *model.BatchDisassociateCertsV2Request) *BatchDisassociateCertsV2Invoker {
+ requestDef := GenReqDefForBatchDisassociateCertsV2()
+ return &BatchDisassociateCertsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDisassociateDomainsV2 SSL证书解绑域名
+//
+// SSL证书解绑域名。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchDisassociateDomainsV2(request *model.BatchDisassociateDomainsV2Request) (*model.BatchDisassociateDomainsV2Response, error) {
+ requestDef := GenReqDefForBatchDisassociateDomainsV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDisassociateDomainsV2Response), nil
+ }
+}
+
+// BatchDisassociateDomainsV2Invoker SSL证书解绑域名
+func (c *ApigClient) BatchDisassociateDomainsV2Invoker(request *model.BatchDisassociateDomainsV2Request) *BatchDisassociateDomainsV2Invoker {
+ requestDef := GenReqDefForBatchDisassociateDomainsV2()
+ return &BatchDisassociateDomainsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateCertificateV2 创建SSL证书
+//
+// 创建SSL证书。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) CreateCertificateV2(request *model.CreateCertificateV2Request) (*model.CreateCertificateV2Response, error) {
+ requestDef := GenReqDefForCreateCertificateV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateCertificateV2Response), nil
+ }
+}
+
+// CreateCertificateV2Invoker 创建SSL证书
+func (c *ApigClient) CreateCertificateV2Invoker(request *model.CreateCertificateV2Request) *CreateCertificateV2Invoker {
+ requestDef := GenReqDefForCreateCertificateV2()
+ return &CreateCertificateV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteCertificateV2 删除SSL证书
+//
+// 删除ssl证书接口,删除时只有没有关联域名的证书才能被删除。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) DeleteCertificateV2(request *model.DeleteCertificateV2Request) (*model.DeleteCertificateV2Response, error) {
+ requestDef := GenReqDefForDeleteCertificateV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteCertificateV2Response), nil
+ }
+}
+
+// DeleteCertificateV2Invoker 删除SSL证书
+func (c *ApigClient) DeleteCertificateV2Invoker(request *model.DeleteCertificateV2Request) *DeleteCertificateV2Invoker {
+ requestDef := GenReqDefForDeleteCertificateV2()
+ return &DeleteCertificateV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAttachedDomainsV2 获取SSL证书已绑定域名列表
+//
+// 获取SSL证书已绑定域名列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListAttachedDomainsV2(request *model.ListAttachedDomainsV2Request) (*model.ListAttachedDomainsV2Response, error) {
+ requestDef := GenReqDefForListAttachedDomainsV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAttachedDomainsV2Response), nil
+ }
+}
+
+// ListAttachedDomainsV2Invoker 获取SSL证书已绑定域名列表
+func (c *ApigClient) ListAttachedDomainsV2Invoker(request *model.ListAttachedDomainsV2Request) *ListAttachedDomainsV2Invoker {
+ requestDef := GenReqDefForListAttachedDomainsV2()
+ return &ListAttachedDomainsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListCertificatesV2 获取SSL证书列表
+//
+// 获取SSL证书列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListCertificatesV2(request *model.ListCertificatesV2Request) (*model.ListCertificatesV2Response, error) {
+ requestDef := GenReqDefForListCertificatesV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListCertificatesV2Response), nil
+ }
+}
+
+// ListCertificatesV2Invoker 获取SSL证书列表
+func (c *ApigClient) ListCertificatesV2Invoker(request *model.ListCertificatesV2Request) *ListCertificatesV2Invoker {
+ requestDef := GenReqDefForListCertificatesV2()
+ return &ListCertificatesV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowDetailsOfCertificateV2 查看证书详情
+//
+// 查看证书详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ShowDetailsOfCertificateV2(request *model.ShowDetailsOfCertificateV2Request) (*model.ShowDetailsOfCertificateV2Response, error) {
+ requestDef := GenReqDefForShowDetailsOfCertificateV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowDetailsOfCertificateV2Response), nil
+ }
+}
+
+// ShowDetailsOfCertificateV2Invoker 查看证书详情
+func (c *ApigClient) ShowDetailsOfCertificateV2Invoker(request *model.ShowDetailsOfCertificateV2Request) *ShowDetailsOfCertificateV2Invoker {
+ requestDef := GenReqDefForShowDetailsOfCertificateV2()
+ return &ShowDetailsOfCertificateV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateCertificateV2 修改SSL证书
+//
+// 修改SSL证书。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdateCertificateV2(request *model.UpdateCertificateV2Request) (*model.UpdateCertificateV2Response, error) {
+ requestDef := GenReqDefForUpdateCertificateV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateCertificateV2Response), nil
+ }
+}
+
+// UpdateCertificateV2Invoker 修改SSL证书
+func (c *ApigClient) UpdateCertificateV2Invoker(request *model.UpdateCertificateV2Request) *UpdateCertificateV2Invoker {
+ requestDef := GenReqDefForUpdateCertificateV2()
+ return &UpdateCertificateV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// AddingBackendInstancesV2 添加或更新后端实例
//
-// 为指定的VPC通道添加弹性云服务器
+// 为指定的VPC通道添加后端实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// 若指定地址的后端实例已存在,则更新对应后端实例信息。若请求体中包含多个重复地址的后端实例定义,则使用第一个定义。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) AddingBackendInstancesV2(request *model.AddingBackendInstancesV2Request) (*model.AddingBackendInstancesV2Response, error) {
requestDef := GenReqDefForAddingBackendInstancesV2()
@@ -2838,19 +3417,83 @@ func (c *ApigClient) AddingBackendInstancesV2(request *model.AddingBackendInstan
}
}
-// AddingBackendInstancesV2Invoker 添加后端实例
+// AddingBackendInstancesV2Invoker 添加或更新后端实例
func (c *ApigClient) AddingBackendInstancesV2Invoker(request *model.AddingBackendInstancesV2Request) *AddingBackendInstancesV2Invoker {
requestDef := GenReqDefForAddingBackendInstancesV2()
return &AddingBackendInstancesV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// BatchDisableMembers 批量修改后端服务器状态不可用
+//
+// 批量修改后端服务器状态不可用。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchDisableMembers(request *model.BatchDisableMembersRequest) (*model.BatchDisableMembersResponse, error) {
+ requestDef := GenReqDefForBatchDisableMembers()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDisableMembersResponse), nil
+ }
+}
+
+// BatchDisableMembersInvoker 批量修改后端服务器状态不可用
+func (c *ApigClient) BatchDisableMembersInvoker(request *model.BatchDisableMembersRequest) *BatchDisableMembersInvoker {
+ requestDef := GenReqDefForBatchDisableMembers()
+ return &BatchDisableMembersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchEnableMembers 批量修改后端服务器状态可用
+//
+// 批量修改后端服务器状态可用。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) BatchEnableMembers(request *model.BatchEnableMembersRequest) (*model.BatchEnableMembersResponse, error) {
+ requestDef := GenReqDefForBatchEnableMembers()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchEnableMembersResponse), nil
+ }
+}
+
+// BatchEnableMembersInvoker 批量修改后端服务器状态可用
+func (c *ApigClient) BatchEnableMembersInvoker(request *model.BatchEnableMembersRequest) *BatchEnableMembersInvoker {
+ requestDef := GenReqDefForBatchEnableMembers()
+ return &BatchEnableMembersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateMemberGroup 添加或更新VPC通道后端服务器组
+//
+// 在APIG中创建VPC通道后端服务器组,VPC通道后端实例可以选择是否关联后端实例服务器组,以便管理后端服务器节点。
+//
+// 若指定名称的后端服务器组已存在,则更新对应后端服务器组信息。若请求体中包含多个重复名称的后端服务器定义,则使用第一个定义。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) CreateMemberGroup(request *model.CreateMemberGroupRequest) (*model.CreateMemberGroupResponse, error) {
+ requestDef := GenReqDefForCreateMemberGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateMemberGroupResponse), nil
+ }
+}
+
+// CreateMemberGroupInvoker 添加或更新VPC通道后端服务器组
+func (c *ApigClient) CreateMemberGroupInvoker(request *model.CreateMemberGroupRequest) *CreateMemberGroupInvoker {
+ requestDef := GenReqDefForCreateMemberGroup()
+ return &CreateMemberGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateVpcChannelV2 创建VPC通道
//
// 在API网关中创建连接私有VPC资源的通道,并在创建API时将后端节点配置为使用这些VPC通道,以便API网关直接访问私有VPC资源。
// > 每个用户最多创建30个VPC通道。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) CreateVpcChannelV2(request *model.CreateVpcChannelV2Request) (*model.CreateVpcChannelV2Response, error) {
requestDef := GenReqDefForCreateVpcChannelV2()
@@ -2869,10 +3512,9 @@ func (c *ApigClient) CreateVpcChannelV2Invoker(request *model.CreateVpcChannelV2
// DeleteBackendInstanceV2 删除后端实例
//
-// 删除指定VPC通道中的弹性云服务器
+// 删除指定VPC通道中的后端实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteBackendInstanceV2(request *model.DeleteBackendInstanceV2Request) (*model.DeleteBackendInstanceV2Response, error) {
requestDef := GenReqDefForDeleteBackendInstanceV2()
@@ -2889,12 +3531,32 @@ func (c *ApigClient) DeleteBackendInstanceV2Invoker(request *model.DeleteBackend
return &DeleteBackendInstanceV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteMemberGroup 删除VPC通道后端服务器组
+//
+// 删除指定的VPC通道后端服务器组
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) DeleteMemberGroup(request *model.DeleteMemberGroupRequest) (*model.DeleteMemberGroupResponse, error) {
+ requestDef := GenReqDefForDeleteMemberGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteMemberGroupResponse), nil
+ }
+}
+
+// DeleteMemberGroupInvoker 删除VPC通道后端服务器组
+func (c *ApigClient) DeleteMemberGroupInvoker(request *model.DeleteMemberGroupRequest) *DeleteMemberGroupInvoker {
+ requestDef := GenReqDefForDeleteMemberGroup()
+ return &DeleteMemberGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteVpcChannelV2 删除VPC通道
//
// 删除指定的VPC通道
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) DeleteVpcChannelV2(request *model.DeleteVpcChannelV2Request) (*model.DeleteVpcChannelV2Response, error) {
requestDef := GenReqDefForDeleteVpcChannelV2()
@@ -2913,10 +3575,9 @@ func (c *ApigClient) DeleteVpcChannelV2Invoker(request *model.DeleteVpcChannelV2
// ListBackendInstancesV2 查看后端实例列表
//
-// 查看指定VPC通道的弹性云服务器列表。
+// 查看指定VPC通道的后端实例列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListBackendInstancesV2(request *model.ListBackendInstancesV2Request) (*model.ListBackendInstancesV2Response, error) {
requestDef := GenReqDefForListBackendInstancesV2()
@@ -2933,12 +3594,32 @@ func (c *ApigClient) ListBackendInstancesV2Invoker(request *model.ListBackendIns
return &ListBackendInstancesV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListMemberGroups 查询VPC通道后端云服务组列表
+//
+// 查询VPC通道后端云服务组列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ListMemberGroups(request *model.ListMemberGroupsRequest) (*model.ListMemberGroupsResponse, error) {
+ requestDef := GenReqDefForListMemberGroups()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListMemberGroupsResponse), nil
+ }
+}
+
+// ListMemberGroupsInvoker 查询VPC通道后端云服务组列表
+func (c *ApigClient) ListMemberGroupsInvoker(request *model.ListMemberGroupsRequest) *ListMemberGroupsInvoker {
+ requestDef := GenReqDefForListMemberGroups()
+ return &ListMemberGroupsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListVpcChannelsV2 查询VPC通道列表
//
// 查看VPC通道列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ListVpcChannelsV2(request *model.ListVpcChannelsV2Request) (*model.ListVpcChannelsV2Response, error) {
requestDef := GenReqDefForListVpcChannelsV2()
@@ -2955,12 +3636,32 @@ func (c *ApigClient) ListVpcChannelsV2Invoker(request *model.ListVpcChannelsV2Re
return &ListVpcChannelsV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowDetailsOfMemberGroup 查看VPC通道后端服务器组详情
+//
+// 查看指定的VPC通道后端服务器组详情
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) ShowDetailsOfMemberGroup(request *model.ShowDetailsOfMemberGroupRequest) (*model.ShowDetailsOfMemberGroupResponse, error) {
+ requestDef := GenReqDefForShowDetailsOfMemberGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowDetailsOfMemberGroupResponse), nil
+ }
+}
+
+// ShowDetailsOfMemberGroupInvoker 查看VPC通道后端服务器组详情
+func (c *ApigClient) ShowDetailsOfMemberGroupInvoker(request *model.ShowDetailsOfMemberGroupRequest) *ShowDetailsOfMemberGroupInvoker {
+ requestDef := GenReqDefForShowDetailsOfMemberGroup()
+ return &ShowDetailsOfMemberGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowDetailsOfVpcChannelV2 查看VPC通道详情
//
// 查看指定的VPC通道详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) ShowDetailsOfVpcChannelV2(request *model.ShowDetailsOfVpcChannelV2Request) (*model.ShowDetailsOfVpcChannelV2Response, error) {
requestDef := GenReqDefForShowDetailsOfVpcChannelV2()
@@ -2977,12 +3678,78 @@ func (c *ApigClient) ShowDetailsOfVpcChannelV2Invoker(request *model.ShowDetails
return &ShowDetailsOfVpcChannelV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdateBackendInstancesV2 更新后端实例
+//
+// 更新指定的VPC通道的后端实例。更新时,使用传入的请求参数对对应云服务组的后端实例进行全量覆盖修改。若未指定修改的云服务器组,则进行全量覆盖。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdateBackendInstancesV2(request *model.UpdateBackendInstancesV2Request) (*model.UpdateBackendInstancesV2Response, error) {
+ requestDef := GenReqDefForUpdateBackendInstancesV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateBackendInstancesV2Response), nil
+ }
+}
+
+// UpdateBackendInstancesV2Invoker 更新后端实例
+func (c *ApigClient) UpdateBackendInstancesV2Invoker(request *model.UpdateBackendInstancesV2Request) *UpdateBackendInstancesV2Invoker {
+ requestDef := GenReqDefForUpdateBackendInstancesV2()
+ return &UpdateBackendInstancesV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateHealthCheck 修改VPC通道健康检查
+//
+// 修改VPC通道健康检查。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdateHealthCheck(request *model.UpdateHealthCheckRequest) (*model.UpdateHealthCheckResponse, error) {
+ requestDef := GenReqDefForUpdateHealthCheck()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateHealthCheckResponse), nil
+ }
+}
+
+// UpdateHealthCheckInvoker 修改VPC通道健康检查
+func (c *ApigClient) UpdateHealthCheckInvoker(request *model.UpdateHealthCheckRequest) *UpdateHealthCheckInvoker {
+ requestDef := GenReqDefForUpdateHealthCheck()
+ return &UpdateHealthCheckInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateMemberGroup 更新VPC通道后端服务器组
+//
+// 更新指定VPC通道后端服务器组
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *ApigClient) UpdateMemberGroup(request *model.UpdateMemberGroupRequest) (*model.UpdateMemberGroupResponse, error) {
+ requestDef := GenReqDefForUpdateMemberGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateMemberGroupResponse), nil
+ }
+}
+
+// UpdateMemberGroupInvoker 更新VPC通道后端服务器组
+func (c *ApigClient) UpdateMemberGroupInvoker(request *model.UpdateMemberGroupRequest) *UpdateMemberGroupInvoker {
+ requestDef := GenReqDefForUpdateMemberGroup()
+ return &UpdateMemberGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateVpcChannelV2 更新VPC通道
//
// 更新指定VPC通道的参数
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// 使用传入的后端实例列表对VPC通道进行全量覆盖,若后端实例列表为空,则会全量删除已有的后端实例;
+//
+// 使用传入的后端服务器组列表对VPC通道进行全量覆盖,若后端服务器组列表为空,则会全量删除已有的服务器组;
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ApigClient) UpdateVpcChannelV2(request *model.UpdateVpcChannelV2Request) (*model.UpdateVpcChannelV2Response, error) {
requestDef := GenReqDefForUpdateVpcChannelV2()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_invoker.go
index ae40f055..9ca7d809 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_invoker.go
@@ -29,6 +29,18 @@ func (i *AddEngressEipV2Invoker) Invoke() (*model.AddEngressEipV2Response, error
}
}
+type AddIngressEipV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AddIngressEipV2Invoker) Invoke() (*model.AddIngressEipV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AddIngressEipV2Response), nil
+ }
+}
+
type AssociateCertificateV2Invoker struct {
*invoker.BaseInvoker
}
@@ -65,6 +77,42 @@ func (i *AssociateSignatureKeyV2Invoker) Invoke() (*model.AssociateSignatureKeyV
}
}
+type AttachApiToPluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AttachApiToPluginInvoker) Invoke() (*model.AttachApiToPluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AttachApiToPluginResponse), nil
+ }
+}
+
+type AttachPluginToApiInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AttachPluginToApiInvoker) Invoke() (*model.AttachPluginToApiResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AttachPluginToApiResponse), nil
+ }
+}
+
+type BatchCreateOrDeleteInstanceTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateOrDeleteInstanceTagsInvoker) Invoke() (*model.BatchCreateOrDeleteInstanceTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateOrDeleteInstanceTagsResponse), nil
+ }
+}
+
type CreateCustomAuthorizerV2Invoker struct {
*invoker.BaseInvoker
}
@@ -137,6 +185,18 @@ func (i *CreateInstanceV2Invoker) Invoke() (*model.CreateInstanceV2Response, err
}
}
+type CreatePluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreatePluginInvoker) Invoke() (*model.CreatePluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreatePluginResponse), nil
+ }
+}
+
type CreateRequestThrottlingPolicyV2Invoker struct {
*invoker.BaseInvoker
}
@@ -245,6 +305,18 @@ func (i *DeleteInstancesV2Invoker) Invoke() (*model.DeleteInstancesV2Response, e
}
}
+type DeletePluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeletePluginInvoker) Invoke() (*model.DeletePluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeletePluginResponse), nil
+ }
+}
+
type DeleteRequestThrottlingPolicyV2Invoker struct {
*invoker.BaseInvoker
}
@@ -281,6 +353,30 @@ func (i *DeleteSpecialThrottlingConfigurationV2Invoker) Invoke() (*model.DeleteS
}
}
+type DetachApiFromPluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DetachApiFromPluginInvoker) Invoke() (*model.DetachApiFromPluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DetachApiFromPluginResponse), nil
+ }
+}
+
+type DetachPluginFromApiInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DetachPluginFromApiInvoker) Invoke() (*model.DetachPluginFromApiResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DetachPluginFromApiResponse), nil
+ }
+}
+
type DisassociateCertificateV2Invoker struct {
*invoker.BaseInvoker
}
@@ -317,6 +413,42 @@ func (i *DisassociateSignatureKeyV2Invoker) Invoke() (*model.DisassociateSignatu
}
}
+type ImportMicroserviceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ImportMicroserviceInvoker) Invoke() (*model.ImportMicroserviceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ImportMicroserviceResponse), nil
+ }
+}
+
+type ListApiAttachablePluginsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListApiAttachablePluginsInvoker) Invoke() (*model.ListApiAttachablePluginsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListApiAttachablePluginsResponse), nil
+ }
+}
+
+type ListApiAttachedPluginsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListApiAttachedPluginsInvoker) Invoke() (*model.ListApiAttachedPluginsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListApiAttachedPluginsResponse), nil
+ }
+}
+
type ListApiGroupsQuantitiesV2Invoker struct {
*invoker.BaseInvoker
}
@@ -461,6 +593,18 @@ func (i *ListInstanceConfigsV2Invoker) Invoke() (*model.ListInstanceConfigsV2Res
}
}
+type ListInstanceTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListInstanceTagsInvoker) Invoke() (*model.ListInstanceTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListInstanceTagsResponse), nil
+ }
+}
+
type ListInstancesV2Invoker struct {
*invoker.BaseInvoker
}
@@ -497,6 +641,54 @@ func (i *ListLatelyGroupStatisticsV2Invoker) Invoke() (*model.ListLatelyGroupSta
}
}
+type ListMetricDataInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListMetricDataInvoker) Invoke() (*model.ListMetricDataResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListMetricDataResponse), nil
+ }
+}
+
+type ListPluginAttachableApisInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPluginAttachableApisInvoker) Invoke() (*model.ListPluginAttachableApisResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPluginAttachableApisResponse), nil
+ }
+}
+
+type ListPluginAttachedApisInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPluginAttachedApisInvoker) Invoke() (*model.ListPluginAttachedApisResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPluginAttachedApisResponse), nil
+ }
+}
+
+type ListPluginsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPluginsInvoker) Invoke() (*model.ListPluginsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPluginsResponse), nil
+ }
+}
+
type ListProjectCofigsV2Invoker struct {
*invoker.BaseInvoker
}
@@ -509,6 +701,18 @@ func (i *ListProjectCofigsV2Invoker) Invoke() (*model.ListProjectCofigsV2Respons
}
}
+type ListProjectInstanceTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListProjectInstanceTagsInvoker) Invoke() (*model.ListProjectInstanceTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListProjectInstanceTagsResponse), nil
+ }
+}
+
type ListRequestThrottlingPolicyV2Invoker struct {
*invoker.BaseInvoker
}
@@ -593,6 +797,18 @@ func (i *RemoveEngressEipV2Invoker) Invoke() (*model.RemoveEngressEipV2Response,
}
}
+type RemoveIngressEipV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RemoveIngressEipV2Invoker) Invoke() (*model.RemoveIngressEipV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RemoveIngressEipV2Response), nil
+ }
+}
+
type ShowDetailsOfCustomAuthorizersV2Invoker struct {
*invoker.BaseInvoker
}
@@ -689,6 +905,18 @@ func (i *ShowDetailsOfRequestThrottlingPolicyV2Invoker) Invoke() (*model.ShowDet
}
}
+type ShowPluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowPluginInvoker) Invoke() (*model.ShowPluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowPluginResponse), nil
+ }
+}
+
type UpdateCustomAuthorizerV2Invoker struct {
*invoker.BaseInvoker
}
@@ -761,6 +989,18 @@ func (i *UpdateGatewayResponseV2Invoker) Invoke() (*model.UpdateGatewayResponseV
}
}
+type UpdateIngressEipV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateIngressEipV2Invoker) Invoke() (*model.UpdateIngressEipV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateIngressEipV2Response), nil
+ }
+}
+
type UpdateInstanceV2Invoker struct {
*invoker.BaseInvoker
}
@@ -773,6 +1013,18 @@ func (i *UpdateInstanceV2Invoker) Invoke() (*model.UpdateInstanceV2Response, err
}
}
+type UpdatePluginInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdatePluginInvoker) Invoke() (*model.UpdatePluginResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdatePluginResponse), nil
+ }
+}
+
type UpdateRequestThrottlingPolicyV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1469,6 +1721,126 @@ func (i *ImportApiDefinitionsV2Invoker) Invoke() (*model.ImportApiDefinitionsV2R
}
}
+type BatchAssociateCertsV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchAssociateCertsV2Invoker) Invoke() (*model.BatchAssociateCertsV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchAssociateCertsV2Response), nil
+ }
+}
+
+type BatchAssociateDomainsV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchAssociateDomainsV2Invoker) Invoke() (*model.BatchAssociateDomainsV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchAssociateDomainsV2Response), nil
+ }
+}
+
+type BatchDisassociateCertsV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDisassociateCertsV2Invoker) Invoke() (*model.BatchDisassociateCertsV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDisassociateCertsV2Response), nil
+ }
+}
+
+type BatchDisassociateDomainsV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDisassociateDomainsV2Invoker) Invoke() (*model.BatchDisassociateDomainsV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDisassociateDomainsV2Response), nil
+ }
+}
+
+type CreateCertificateV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateCertificateV2Invoker) Invoke() (*model.CreateCertificateV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateCertificateV2Response), nil
+ }
+}
+
+type DeleteCertificateV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteCertificateV2Invoker) Invoke() (*model.DeleteCertificateV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteCertificateV2Response), nil
+ }
+}
+
+type ListAttachedDomainsV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAttachedDomainsV2Invoker) Invoke() (*model.ListAttachedDomainsV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAttachedDomainsV2Response), nil
+ }
+}
+
+type ListCertificatesV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListCertificatesV2Invoker) Invoke() (*model.ListCertificatesV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListCertificatesV2Response), nil
+ }
+}
+
+type ShowDetailsOfCertificateV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowDetailsOfCertificateV2Invoker) Invoke() (*model.ShowDetailsOfCertificateV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowDetailsOfCertificateV2Response), nil
+ }
+}
+
+type UpdateCertificateV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateCertificateV2Invoker) Invoke() (*model.UpdateCertificateV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateCertificateV2Response), nil
+ }
+}
+
type AddingBackendInstancesV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1481,6 +1853,42 @@ func (i *AddingBackendInstancesV2Invoker) Invoke() (*model.AddingBackendInstance
}
}
+type BatchDisableMembersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDisableMembersInvoker) Invoke() (*model.BatchDisableMembersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDisableMembersResponse), nil
+ }
+}
+
+type BatchEnableMembersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchEnableMembersInvoker) Invoke() (*model.BatchEnableMembersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchEnableMembersResponse), nil
+ }
+}
+
+type CreateMemberGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateMemberGroupInvoker) Invoke() (*model.CreateMemberGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateMemberGroupResponse), nil
+ }
+}
+
type CreateVpcChannelV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1505,6 +1913,18 @@ func (i *DeleteBackendInstanceV2Invoker) Invoke() (*model.DeleteBackendInstanceV
}
}
+type DeleteMemberGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteMemberGroupInvoker) Invoke() (*model.DeleteMemberGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteMemberGroupResponse), nil
+ }
+}
+
type DeleteVpcChannelV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1529,6 +1949,18 @@ func (i *ListBackendInstancesV2Invoker) Invoke() (*model.ListBackendInstancesV2R
}
}
+type ListMemberGroupsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListMemberGroupsInvoker) Invoke() (*model.ListMemberGroupsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListMemberGroupsResponse), nil
+ }
+}
+
type ListVpcChannelsV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1541,6 +1973,18 @@ func (i *ListVpcChannelsV2Invoker) Invoke() (*model.ListVpcChannelsV2Response, e
}
}
+type ShowDetailsOfMemberGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowDetailsOfMemberGroupInvoker) Invoke() (*model.ShowDetailsOfMemberGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowDetailsOfMemberGroupResponse), nil
+ }
+}
+
type ShowDetailsOfVpcChannelV2Invoker struct {
*invoker.BaseInvoker
}
@@ -1553,6 +1997,42 @@ func (i *ShowDetailsOfVpcChannelV2Invoker) Invoke() (*model.ShowDetailsOfVpcChan
}
}
+type UpdateBackendInstancesV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateBackendInstancesV2Invoker) Invoke() (*model.UpdateBackendInstancesV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateBackendInstancesV2Response), nil
+ }
+}
+
+type UpdateHealthCheckInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateHealthCheckInvoker) Invoke() (*model.UpdateHealthCheckResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateHealthCheckResponse), nil
+ }
+}
+
+type UpdateMemberGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateMemberGroupInvoker) Invoke() (*model.UpdateMemberGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateMemberGroupResponse), nil
+ }
+}
+
type UpdateVpcChannelV2Invoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_meta.go
index b59d755f..89b641e7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/apig_meta.go
@@ -47,6 +47,26 @@ func GenReqDefForAddEngressEipV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForAddIngressEipV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/ingress-eip").
+ WithResponse(new(model.AddIngressEipV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForAssociateCertificateV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -119,6 +139,74 @@ func GenReqDefForAssociateSignatureKeyV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForAttachApiToPlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attach").
+ WithResponse(new(model.AttachApiToPluginResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForAttachPluginToApi() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/attach").
+ WithResponse(new(model.AttachPluginToApiResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchCreateOrDeleteInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/instance-tags/action").
+ WithResponse(new(model.BatchCreateOrDeleteInstanceTagsResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateCustomAuthorizerV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -238,6 +326,26 @@ func GenReqDefForCreateInstanceV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCreatePlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins").
+ WithResponse(new(model.CreatePluginResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateRequestThrottlingPolicyV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -430,6 +538,26 @@ func GenReqDefForDeleteInstancesV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeletePlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}").
+ WithResponse(new(model.DeletePluginResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteRequestThrottlingPolicyV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -494,6 +622,54 @@ func GenReqDefForDeleteSpecialThrottlingConfigurationV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDetachApiFromPlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/detach").
+ WithResponse(new(model.DetachApiFromPluginResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDetachPluginFromApi() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/plugins/detach").
+ WithResponse(new(model.DetachPluginFromApiResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDisassociateCertificateV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -566,6 +742,120 @@ func GenReqDefForDisassociateSignatureKeyV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForImportMicroservice() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/microservice/import").
+ WithResponse(new(model.ImportMicroserviceResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListApiAttachablePlugins() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attachable-plugins").
+ WithResponse(new(model.ListApiAttachablePluginsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnvId").
+ WithJsonTag("env_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginName").
+ WithJsonTag("plugin_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginType").
+ WithJsonTag("plugin_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListApiAttachedPlugins() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/apis/{api_id}/attached-plugins").
+ WithResponse(new(model.ListApiAttachedPluginsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnvId").
+ WithJsonTag("env_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginName").
+ WithJsonTag("plugin_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnvName").
+ WithJsonTag("env_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginType").
+ WithJsonTag("plugin_type").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListApiGroupsQuantitiesV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -896,6 +1186,22 @@ func GenReqDefForListInstanceConfigsV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/instance-tags").
+ WithResponse(new(model.ListInstanceTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListInstancesV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -974,11 +1280,11 @@ func GenReqDefForListLatelyGroupStatisticsV2() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListProjectCofigsV2() *def.HttpRequestDef {
+func GenReqDefForListMetricData() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v2/{project_id}/apigw/instances/{instance_id}/project/configs").
- WithResponse(new(model.ListProjectCofigsV2Response)).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/metric-data").
+ WithResponse(new(model.ListMetricDataResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -987,7 +1293,199 @@ func GenReqDefForListProjectCofigsV2() *def.HttpRequestDef {
WithLocationType(def.Path))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Offset").
+ WithName("Dim").
+ WithJsonTag("dim").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MetricName").
+ WithJsonTag("metric_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("From").
+ WithJsonTag("from").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("To").
+ WithJsonTag("to").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Period").
+ WithJsonTag("period").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Filter").
+ WithJsonTag("filter").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListPluginAttachableApis() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attachable-apis").
+ WithResponse(new(model.ListPluginAttachableApisResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnvId").
+ WithJsonTag("env_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiName").
+ WithJsonTag("api_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ReqMethod").
+ WithJsonTag("req_method").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ReqUri").
+ WithJsonTag("req_uri").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListPluginAttachedApis() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}/attached-apis").
+ WithResponse(new(model.ListPluginAttachedApisResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnvId").
+ WithJsonTag("env_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiName").
+ WithJsonTag("api_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ApiId").
+ WithJsonTag("api_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ReqMethod").
+ WithJsonTag("req_method").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ReqUri").
+ WithJsonTag("req_uri").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListPlugins() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins").
+ WithResponse(new(model.ListPluginsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginType").
+ WithJsonTag("plugin_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginScope").
+ WithJsonTag("plugin_scope").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginName").
+ WithJsonTag("plugin_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PreciseSearch").
+ WithJsonTag("precise_search").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListProjectCofigsV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/project/configs").
+ WithResponse(new(model.ListProjectCofigsV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
WithJsonTag("offset").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -999,6 +1497,17 @@ func GenReqDefForListProjectCofigsV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListProjectInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instance-tags").
+ WithResponse(new(model.ListProjectInstanceTagsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListRequestThrottlingPolicyV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1212,6 +1721,22 @@ func GenReqDefForRemoveEngressEipV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForRemoveIngressEipV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/ingress-eip").
+ WithResponse(new(model.RemoveIngressEipV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowDetailsOfCustomAuthorizersV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1388,6 +1913,26 @@ func GenReqDefForShowDetailsOfRequestThrottlingPolicyV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowPlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}").
+ WithResponse(new(model.ShowPluginResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateCustomAuthorizerV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -1548,6 +2093,26 @@ func GenReqDefForUpdateGatewayResponseV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdateIngressEipV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/ingress-eip").
+ WithResponse(new(model.UpdateIngressEipV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateInstanceV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -1568,6 +2133,30 @@ func GenReqDefForUpdateInstanceV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdatePlugin() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/plugins/{plugin_id}").
+ WithResponse(new(model.UpdatePluginResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PluginId").
+ WithJsonTag("plugin_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateRequestThrottlingPolicyV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -3144,6 +3733,11 @@ func GenReqDefForExportApiDefinitionsV2() *def.HttpRequestDef {
WithJsonTag("instance_id").
WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OasVersion").
+ WithJsonTag("oas_version").
+ WithLocationType(def.Query))
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Body").
WithLocationType(def.Body))
@@ -3172,11 +3766,11 @@ func GenReqDefForImportApiDefinitionsV2() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForAddingBackendInstancesV2() *def.HttpRequestDef {
+func GenReqDefForBatchAssociateCertsV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
- WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members").
- WithResponse(new(model.AddingBackendInstancesV2Response)).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/attach").
+ WithResponse(new(model.BatchAssociateCertsV2Response)).
WithContentType("application/json;charset=UTF-8")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -3184,8 +3778,12 @@ func GenReqDefForAddingBackendInstancesV2() *def.HttpRequestDef {
WithJsonTag("instance_id").
WithLocationType(def.Path))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("VpcChannelId").
- WithJsonTag("vpc_channel_id").
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DomainId").
+ WithJsonTag("domain_id").
WithLocationType(def.Path))
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -3196,16 +3794,16 @@ func GenReqDefForAddingBackendInstancesV2() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForCreateVpcChannelV2() *def.HttpRequestDef {
+func GenReqDefForBatchAssociateDomainsV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
- WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels").
- WithResponse(new(model.CreateVpcChannelV2Response)).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}/domains/attach").
+ WithResponse(new(model.BatchAssociateDomainsV2Response)).
WithContentType("application/json;charset=UTF-8")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("InstanceId").
- WithJsonTag("instance_id").
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
WithLocationType(def.Path))
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -3216,10 +3814,310 @@ func GenReqDefForCreateVpcChannelV2() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForDeleteBackendInstanceV2() *def.HttpRequestDef {
+func GenReqDefForBatchDisassociateCertsV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodDelete).
- WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/{member_id}").
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/api-groups/{group_id}/domains/{domain_id}/certificates/detach").
+ WithResponse(new(model.BatchDisassociateCertsV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DomainId").
+ WithJsonTag("domain_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDisassociateDomainsV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}/domains/detach").
+ WithResponse(new(model.BatchDisassociateDomainsV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateCertificateV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/certificates").
+ WithResponse(new(model.CreateCertificateV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteCertificateV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}").
+ WithResponse(new(model.DeleteCertificateV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAttachedDomainsV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}/attached-domains").
+ WithResponse(new(model.ListAttachedDomainsV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("UrlDomain").
+ WithJsonTag("url_domain").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListCertificatesV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/certificates").
+ WithResponse(new(model.ListCertificatesV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CommonName").
+ WithJsonTag("common_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SignatureAlgorithm").
+ WithJsonTag("signature_algorithm").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowDetailsOfCertificateV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}").
+ WithResponse(new(model.ShowDetailsOfCertificateV2Response)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateCertificateV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/certificates/{certificate_id}").
+ WithResponse(new(model.UpdateCertificateV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CertificateId").
+ WithJsonTag("certificate_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForAddingBackendInstancesV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members").
+ WithResponse(new(model.AddingBackendInstancesV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDisableMembers() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-disable").
+ WithResponse(new(model.BatchDisableMembersResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchEnableMembers() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/batch-enable").
+ WithResponse(new(model.BatchEnableMembersResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateMemberGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups").
+ WithResponse(new(model.CreateMemberGroupResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateVpcChannelV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels").
+ WithResponse(new(model.CreateVpcChannelV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteBackendInstanceV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members/{member_id}").
WithResponse(new(model.DeleteBackendInstanceV2Response)).
WithContentType("application/json")
@@ -3240,6 +4138,30 @@ func GenReqDefForDeleteBackendInstanceV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteMemberGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}").
+ WithResponse(new(model.DeleteMemberGroupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupId").
+ WithJsonTag("member_group_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteVpcChannelV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -3288,6 +4210,59 @@ func GenReqDefForListBackendInstancesV2() *def.HttpRequestDef {
WithName("Name").
WithJsonTag("name").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupName").
+ WithJsonTag("member_group_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupId").
+ WithJsonTag("member_group_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PreciseSearch").
+ WithJsonTag("precise_search").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListMemberGroups() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups").
+ WithResponse(new(model.ListMemberGroupsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DictCode").
+ WithJsonTag("dict_code").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupName").
+ WithJsonTag("member_group_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("PreciseSearch").
+ WithJsonTag("precise_search").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -3321,10 +4296,54 @@ func GenReqDefForListVpcChannelsV2() *def.HttpRequestDef {
WithName("Name").
WithJsonTag("name").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DictCode").
+ WithJsonTag("dict_code").
+ WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("PreciseSearch").
WithJsonTag("precise_search").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberHost").
+ WithJsonTag("member_host").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberPort").
+ WithJsonTag("member_port").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupName").
+ WithJsonTag("member_group_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupId").
+ WithJsonTag("member_group_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowDetailsOfMemberGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}").
+ WithResponse(new(model.ShowDetailsOfMemberGroupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupId").
+ WithJsonTag("member_group_id").
+ WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -3350,6 +4369,82 @@ func GenReqDefForShowDetailsOfVpcChannelV2() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdateBackendInstancesV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/members").
+ WithResponse(new(model.UpdateBackendInstancesV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateHealthCheck() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/health-config").
+ WithResponse(new(model.UpdateHealthCheckResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateMemberGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/apigw/instances/{instance_id}/vpc-channels/{vpc_channel_id}/member-groups/{member_group_id}").
+ WithResponse(new(model.UpdateMemberGroupResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcChannelId").
+ WithJsonTag("vpc_channel_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("MemberGroupId").
+ WithJsonTag("member_group_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateVpcChannelV2() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_eip_v2_request.go
index 746e27fe..47878b1b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_eip_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_eip_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AddEipV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *EipBindReq `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_engress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_engress_eip_v2_request.go
index 966f7378..0e6b1051 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_engress_eip_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_engress_eip_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AddEngressEipV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *OpenEngressEipReq `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_request.go
new file mode 100644
index 00000000..44c8b24a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AddIngressEipV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ Body *OpenIngressEipReq `json:"body,omitempty"`
+}
+
+func (o AddIngressEipV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddIngressEipV2Request struct{}"
+ }
+
+ return strings.Join([]string{"AddIngressEipV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_response.go
new file mode 100644
index 00000000..f14bf3f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_add_ingress_eip_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AddIngressEipV2Response struct {
+
+ // 实例ID
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 公网入口变更的任务信息
+ Message *string `json:"message,omitempty"`
+
+ // 任务编号
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AddIngressEipV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddIngressEipV2Response struct{}"
+ }
+
+ return strings.Join([]string{"AddIngressEipV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_adding_backend_instances_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_adding_backend_instances_v2_request.go
index 054bd4f5..79d51af8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_adding_backend_instances_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_adding_backend_instances_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AddingBackendInstancesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_create.go
index a12f4584..12ba6d6a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_create.go
@@ -3,6 +3,9 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
@@ -12,13 +15,13 @@ type ApiAclCreate struct {
AclName string `json:"acl_name"`
// 类型 - PERMIT (白名单类型) - DENY (黑名单类型)
- AclType string `json:"acl_type"`
+ AclType ApiAclCreateAclType `json:"acl_type"`
// ACL策略值,支持一个或多个值,使用英文半角逗号分隔
AclValue string `json:"acl_value"`
- // 对象类型: - IP - DOMAIN
- EntityType string `json:"entity_type"`
+ // 对象类型: - IP:IP地址 - DOMAIN:帐号名 - DOMAIN_ID:帐号ID
+ EntityType ApiAclCreateEntityType `json:"entity_type"`
}
func (o ApiAclCreate) String() string {
@@ -29,3 +32,91 @@ func (o ApiAclCreate) String() string {
return strings.Join([]string{"ApiAclCreate", string(data)}, " ")
}
+
+type ApiAclCreateAclType struct {
+ value string
+}
+
+type ApiAclCreateAclTypeEnum struct {
+ PERMIT ApiAclCreateAclType
+ DENY ApiAclCreateAclType
+}
+
+func GetApiAclCreateAclTypeEnum() ApiAclCreateAclTypeEnum {
+ return ApiAclCreateAclTypeEnum{
+ PERMIT: ApiAclCreateAclType{
+ value: "PERMIT",
+ },
+ DENY: ApiAclCreateAclType{
+ value: "DENY",
+ },
+ }
+}
+
+func (c ApiAclCreateAclType) Value() string {
+ return c.value
+}
+
+func (c ApiAclCreateAclType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiAclCreateAclType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ApiAclCreateEntityType struct {
+ value string
+}
+
+type ApiAclCreateEntityTypeEnum struct {
+ IP ApiAclCreateEntityType
+ DOMAIN ApiAclCreateEntityType
+ DOMAIN_ID ApiAclCreateEntityType
+}
+
+func GetApiAclCreateEntityTypeEnum() ApiAclCreateEntityTypeEnum {
+ return ApiAclCreateEntityTypeEnum{
+ IP: ApiAclCreateEntityType{
+ value: "IP",
+ },
+ DOMAIN: ApiAclCreateEntityType{
+ value: "DOMAIN",
+ },
+ DOMAIN_ID: ApiAclCreateEntityType{
+ value: "DOMAIN_ID",
+ },
+ }
+}
+
+func (c ApiAclCreateEntityType) Value() string {
+ return c.value
+}
+
+func (c ApiAclCreateEntityType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiAclCreateEntityType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_info_with_bind_num.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_info_with_bind_num.go
index a306e5c3..b47c2817 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_info_with_bind_num.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_acl_info_with_bind_num.go
@@ -21,7 +21,7 @@ type ApiAclInfoWithBindNum struct {
// 绑定的API数量
BindNum *int32 `json:"bind_num,omitempty"`
- // 对象类型 - IP - DOMAIN
+ // 对象类型 - IP - DOMAIN - DOMAIN_ID
EntityType *string `json:"entity_type,omitempty"`
// ACL策略编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_auth_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_auth_create.go
index 4a46906e..7af77e88 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_auth_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_auth_create.go
@@ -14,7 +14,7 @@ type ApiAuthCreate struct {
// APP的编号列表
AppIds []string `json:"app_ids"`
- // API的编号列表,可以选择租户自己的API,也可以选择从云市场上购买的API。
+ // API的编号列表[,可以选择租户自己的API,也可以选择从云商店上购买的API](tag:hws)。
ApiIds []string `json:"api_ids"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_batch_publish.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_batch_publish.go
index eecfe649..5285a22d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_batch_publish.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_batch_publish.go
@@ -8,11 +8,14 @@ import (
type ApiBatchPublish struct {
- // 需要发布或下线的API ID列表,单次更新上限为1000个API
+ // 需要发布或下线的API ID列表,单次更新上限为1000个API。必须指定apis或group_id。
Apis *[]string `json:"apis,omitempty"`
// 环境ID
- EnvId *string `json:"env_id,omitempty"`
+ EnvId string `json:"env_id"`
+
+ // API分组ID。必须指定apis或group_id。
+ GroupId *string `json:"group_id,omitempty"`
// 对本次发布的描述信息 字符长度不超过255 > 中文字符必须为UTF-8或者unicode编码。
Remark *string `json:"remark,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_bind_acl_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_bind_acl_info.go
index ffa2a216..f39ce66f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_bind_acl_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_bind_acl_info.go
@@ -52,8 +52,9 @@ type ApiBindAclInfoEntityType struct {
}
type ApiBindAclInfoEntityTypeEnum struct {
- IP ApiBindAclInfoEntityType
- DOMAIN ApiBindAclInfoEntityType
+ IP ApiBindAclInfoEntityType
+ DOMAIN ApiBindAclInfoEntityType
+ DOMAIN_ID ApiBindAclInfoEntityType
}
func GetApiBindAclInfoEntityTypeEnum() ApiBindAclInfoEntityTypeEnum {
@@ -64,6 +65,9 @@ func GetApiBindAclInfoEntityTypeEnum() ApiBindAclInfoEntityTypeEnum {
DOMAIN: ApiBindAclInfoEntityType{
value: "DOMAIN",
},
+ DOMAIN_ID: ApiBindAclInfoEntityType{
+ value: "DOMAIN_ID",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_debug_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_debug_info.go
index eef86bc0..528bfcae 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_debug_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_debug_info.go
@@ -15,19 +15,19 @@ type ApiDebugInfo struct {
Body *string `json:"body,omitempty"`
// 头域参数,每个参数值为字符串数组,每个参数名称有如下约束: - 英文字母、数字、点、中连线组成 - 必须以英文字母开头,最长32字节 - 不支持以\"X-Apig-\"或\"X-Sdk-\"开头,不区分大小写 - 不支持取值为\"X-Stage\",不区分大小写 - mode为MARKET或CONSUMER时,不支持取值为\"X-Auth-Token\"和\"Authorization\",不区分大小写 > 头域名称在使用前会被规范化,如:\"x-MY-hEaDer\"会被规范化为\"X-My-Header\"
- Header map[string]string `json:"header,omitempty"`
+ Header map[string][]string `json:"header,omitempty"`
// API的请求方法
Method ApiDebugInfoMethod `json:"method"`
- // 调试模式 - DEVELOPER 调试尚未发布的API定义 - MARKET 调试云市场已购买的API - CONSUMER 调试指定运行环境下的API定义 > DEVELOPER模式,接口调用者必须是API拥有者。 MARKET模式,接口调用者必须是API购买者或拥有者。 CONSUMER模式,接口调用者必须有API在指定环境上的授权信息或是API拥有者。
+ // 调试模式 - DEVELOPER 调试尚未发布的API定义 - MARKET [调试云商店已购买的API](tag:hws)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm,hws_hk) - CONSUMER 调试指定运行环境下的API定义 > DEVELOPER模式,接口调用者必须是API拥有者。 [MARKET模式,接口调用者必须是API购买者或拥有者。](tag:hws) CONSUMER模式,接口调用者必须有API在指定环境上的授权信息或是API拥有者。
Mode string `json:"mode"`
// API的请求路径,需以\"/\"开头,最大长度1024 > 须符合路径规范,百分号编码格式可被正确解码
Path string `json:"path"`
// 查询参数,每个参数值为字符串数组,每个参数名称有如下约束: - 英文字母、数字、点、下划线、中连线组成 - 必须以英文字母开头,最长32字节 - 不支持以\"X-Apig-\"或\"X-Sdk-\"开头,不区分大小写 - 不支持取值为\"X-Stage\",不区分大小写
- Query map[string]string `json:"query,omitempty"`
+ Query map[string][]string `json:"query,omitempty"`
// API的请求协议 - HTTP - HTTPS
Scheme string `json:"scheme"`
@@ -38,7 +38,7 @@ type ApiDebugInfo struct {
// 调试请求使用的APP的密钥
AppSecret *string `json:"app_secret,omitempty"`
- // API的访问域名,未提供时根据mode的取值使用如下默认值: - DEVELOPER API分组的子域名 - MARKET 云市场为API分组分配的域名 - CONSUMER API分组的子域名
+ // API的访问域名,未提供时根据mode的取值使用如下默认值: - DEVELOPER API分组的子域名 - MARKET [云商店为API分组分配的域名](tag:hws)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm,hws_hk) - CONSUMER API分组的子域名
Domain *string `json:"domain,omitempty"`
// 调试请求指定的运行环境,仅在mode为CONSUMER时有效,未提供时有如下默认值: - CONSUMER RELEASE
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func.go
index 487741c8..40a5ea98 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func.go
@@ -20,9 +20,15 @@ type ApiFunc struct {
// 调用类型 - async: 异步 - sync:同步
InvocationType ApiFuncInvocationType `json:"invocation_type"`
- // 版本。
+ // 对接函数的网络架构类型 - V1:非VPC网络架构 - V2:VPC网络架构
+ NetworkType ApiFuncNetworkType `json:"network_type"`
+
+ // 函数版本 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
Version *string `json:"version,omitempty"`
+ // 函数别名URN 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AliasUrn *string `json:"alias_urn,omitempty"`
+
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout int32 `json:"timeout"`
@@ -92,3 +98,45 @@ func (c *ApiFuncInvocationType) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type ApiFuncNetworkType struct {
+ value string
+}
+
+type ApiFuncNetworkTypeEnum struct {
+ V1 ApiFuncNetworkType
+ V2 ApiFuncNetworkType
+}
+
+func GetApiFuncNetworkTypeEnum() ApiFuncNetworkTypeEnum {
+ return ApiFuncNetworkTypeEnum{
+ V1: ApiFuncNetworkType{
+ value: "V1",
+ },
+ V2: ApiFuncNetworkType{
+ value: "V2",
+ },
+ }
+}
+
+func (c ApiFuncNetworkType) Value() string {
+ return c.value
+}
+
+func (c ApiFuncNetworkType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiFuncNetworkType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func_create.go
index 1aeaf506..1ea3c82f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_func_create.go
@@ -21,9 +21,15 @@ type ApiFuncCreate struct {
// 调用类型 - async: 异步 - sync:同步
InvocationType ApiFuncCreateInvocationType `json:"invocation_type"`
- // 版本。
+ // 对接函数的网络架构类型 - V1:非VPC网络架构 - V2:VPC网络架构
+ NetworkType ApiFuncCreateNetworkType `json:"network_type"`
+
+ // 函数版本 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
Version *string `json:"version,omitempty"`
+ // 函数别名URN 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AliasUrn *string `json:"alias_urn,omitempty"`
+
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout int32 `json:"timeout"`
@@ -81,3 +87,45 @@ func (c *ApiFuncCreateInvocationType) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type ApiFuncCreateNetworkType struct {
+ value string
+}
+
+type ApiFuncCreateNetworkTypeEnum struct {
+ V1 ApiFuncCreateNetworkType
+ V2 ApiFuncCreateNetworkType
+}
+
+func GetApiFuncCreateNetworkTypeEnum() ApiFuncCreateNetworkTypeEnum {
+ return ApiFuncCreateNetworkTypeEnum{
+ V1: ApiFuncCreateNetworkType{
+ value: "V1",
+ },
+ V2: ApiFuncCreateNetworkType{
+ value: "V2",
+ },
+ }
+}
+
+func (c ApiFuncCreateNetworkType) Value() string {
+ return c.value
+}
+
+func (c ApiFuncCreateNetworkType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiFuncCreateNetworkType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_common_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_common_info.go
index 086bdb99..f71ff69c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_common_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_common_info.go
@@ -28,7 +28,7 @@ type ApiGroupCommonInfo struct {
// 最近修改时间
UpdateTime *sdktime.SdkTime `json:"update_time"`
- // 是否已上架云市场: - 1:已上架 - 2:未上架 - 3:审核中
+ // 是否已上架云商店: - 1:已上架 - 2:未上架 - 3:审核中
OnSellStatus int32 `json:"on_sell_status"`
// 分组上绑定的独立域名列表
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_info.go
index b9be2791..f7f1efe8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_group_info.go
@@ -28,7 +28,7 @@ type ApiGroupInfo struct {
// 最近修改时间
UpdateTime *sdktime.SdkTime `json:"update_time"`
- // 是否已上架云市场: - 1:已上架 - 2:未上架 - 3:审核中
+ // 是否已上架云商店: - 1:已上架 - 2:未上架 - 3:审核中
OnSellStatus int32 `json:"on_sell_status"`
// 分组上绑定的独立域名列表
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_oper_plugin_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_oper_plugin_info.go
new file mode 100644
index 00000000..4eeeed14
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_oper_plugin_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ApiOperPluginInfo struct {
+
+ // 绑定API的环境编码。
+ EnvId string `json:"env_id"`
+
+ // 绑定的插件编码列表。
+ PluginIds []string `json:"plugin_ids"`
+}
+
+func (o ApiOperPluginInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApiOperPluginInfo struct{}"
+ }
+
+ return strings.Join([]string{"ApiOperPluginInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_base.go
index a343dafa..a409fccf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_base.go
@@ -17,9 +17,15 @@ type ApiPolicyFunctionBase struct {
// 调用类型 - async: 异步 - sync:同步
InvocationType ApiPolicyFunctionBaseInvocationType `json:"invocation_type"`
- // 版本。字符长度不超过64
+ // 对接函数的网络架构类型 - V1:非VPC网络架构 - V2:VPC网络架构
+ NetworkType ApiPolicyFunctionBaseNetworkType `json:"network_type"`
+
+ // 函数版本 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
Version *string `json:"version,omitempty"`
+ // 函数别名URN 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AliasUrn *string `json:"alias_urn,omitempty"`
+
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
}
@@ -74,3 +80,45 @@ func (c *ApiPolicyFunctionBaseInvocationType) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type ApiPolicyFunctionBaseNetworkType struct {
+ value string
+}
+
+type ApiPolicyFunctionBaseNetworkTypeEnum struct {
+ V1 ApiPolicyFunctionBaseNetworkType
+ V2 ApiPolicyFunctionBaseNetworkType
+}
+
+func GetApiPolicyFunctionBaseNetworkTypeEnum() ApiPolicyFunctionBaseNetworkTypeEnum {
+ return ApiPolicyFunctionBaseNetworkTypeEnum{
+ V1: ApiPolicyFunctionBaseNetworkType{
+ value: "V1",
+ },
+ V2: ApiPolicyFunctionBaseNetworkType{
+ value: "V2",
+ },
+ }
+}
+
+func (c ApiPolicyFunctionBaseNetworkType) Value() string {
+ return c.value
+}
+
+func (c ApiPolicyFunctionBaseNetworkType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiPolicyFunctionBaseNetworkType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_create.go
index a6413f4f..2ad103c7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_create.go
@@ -17,9 +17,15 @@ type ApiPolicyFunctionCreate struct {
// 调用类型 - async: 异步 - sync:同步
InvocationType ApiPolicyFunctionCreateInvocationType `json:"invocation_type"`
- // 版本。字符长度不超过64
+ // 对接函数的网络架构类型 - V1:非VPC网络架构 - V2:VPC网络架构
+ NetworkType ApiPolicyFunctionCreateNetworkType `json:"network_type"`
+
+ // 函数版本 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
Version *string `json:"version,omitempty"`
+ // 函数别名URN 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AliasUrn *string `json:"alias_urn,omitempty"`
+
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
@@ -90,6 +96,48 @@ func (c *ApiPolicyFunctionCreateInvocationType) UnmarshalJSON(b []byte) error {
}
}
+type ApiPolicyFunctionCreateNetworkType struct {
+ value string
+}
+
+type ApiPolicyFunctionCreateNetworkTypeEnum struct {
+ V1 ApiPolicyFunctionCreateNetworkType
+ V2 ApiPolicyFunctionCreateNetworkType
+}
+
+func GetApiPolicyFunctionCreateNetworkTypeEnum() ApiPolicyFunctionCreateNetworkTypeEnum {
+ return ApiPolicyFunctionCreateNetworkTypeEnum{
+ V1: ApiPolicyFunctionCreateNetworkType{
+ value: "V1",
+ },
+ V2: ApiPolicyFunctionCreateNetworkType{
+ value: "V2",
+ },
+ }
+}
+
+func (c ApiPolicyFunctionCreateNetworkType) Value() string {
+ return c.value
+}
+
+func (c ApiPolicyFunctionCreateNetworkType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiPolicyFunctionCreateNetworkType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
type ApiPolicyFunctionCreateEffectMode struct {
value string
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_resp.go
index e1e9b21a..8761f6f1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_function_resp.go
@@ -17,9 +17,15 @@ type ApiPolicyFunctionResp struct {
// 调用类型 - async: 异步 - sync:同步
InvocationType ApiPolicyFunctionRespInvocationType `json:"invocation_type"`
- // 版本。字符长度不超过64
+ // 对接函数的网络架构类型 - V1:非VPC网络架构 - V2:VPC网络架构
+ NetworkType ApiPolicyFunctionRespNetworkType `json:"network_type"`
+
+ // 函数版本 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
Version *string `json:"version,omitempty"`
+ // 函数别名URN 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AliasUrn *string `json:"alias_urn,omitempty"`
+
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
@@ -93,6 +99,48 @@ func (c *ApiPolicyFunctionRespInvocationType) UnmarshalJSON(b []byte) error {
}
}
+type ApiPolicyFunctionRespNetworkType struct {
+ value string
+}
+
+type ApiPolicyFunctionRespNetworkTypeEnum struct {
+ V1 ApiPolicyFunctionRespNetworkType
+ V2 ApiPolicyFunctionRespNetworkType
+}
+
+func GetApiPolicyFunctionRespNetworkTypeEnum() ApiPolicyFunctionRespNetworkTypeEnum {
+ return ApiPolicyFunctionRespNetworkTypeEnum{
+ V1: ApiPolicyFunctionRespNetworkType{
+ value: "V1",
+ },
+ V2: ApiPolicyFunctionRespNetworkType{
+ value: "V2",
+ },
+ }
+}
+
+func (c ApiPolicyFunctionRespNetworkType) Value() string {
+ return c.value
+}
+
+func (c ApiPolicyFunctionRespNetworkType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiPolicyFunctionRespNetworkType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
type ApiPolicyFunctionRespEffectMode struct {
value string
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_base.go
index f5e6d30c..358ac71f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_base.go
@@ -25,6 +25,9 @@ type ApiPolicyHttpBase struct {
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
+
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
}
func (o ApiPolicyHttpBase) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_create.go
index 9b4159dc..5b331334 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_create.go
@@ -26,6 +26,9 @@ type ApiPolicyHttpCreate struct {
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
+
// 关联的策略组合模式: - ALL:满足全部条件 - ANY:满足任一条件
EffectMode ApiPolicyHttpCreateEffectMode `json:"effect_mode"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_resp.go
index 9dc26a49..11c761f1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_api_policy_http_resp.go
@@ -44,6 +44,9 @@ type ApiPolicyHttpResp struct {
// API网关请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000。 单位:毫秒。
Timeout *int32 `json:"timeout,omitempty"`
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
+
VpcChannelInfo *VpcInfo `json:"vpc_channel_info,omitempty"`
// 是否使用VPC通道: - 1: 使用VPC通道 - 2:不使用VPC通道
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info.go
index 4ed352f3..7e6ae727 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info.go
@@ -19,7 +19,7 @@ type AppInfo struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *AppInfoCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info_with_bind_num.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info_with_bind_num.go
index 5ac4f8f3..8e77c645 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info_with_bind_num.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_app_info_with_bind_num.go
@@ -19,7 +19,7 @@ type AppInfoWithBindNum struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *AppInfoWithBindNumCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_request.go
index 01d325f4..8ba7259b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AssociateCertificateV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_response.go
index 7a3374a0..4cb1b4ec 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_certificate_v2_response.go
@@ -24,6 +24,12 @@ type AssociateCertificateV2Response struct {
// 支持的最小SSL版本
MinSslVersion string `json:"min_ssl_version"`
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+
// 证书的名称
SslName string `json:"ssl_name"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_request.go
index c390dcc4..61f8354c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AssociateDomainV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_response.go
index 44843f6b..90fdba25 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_domain_v2_response.go
@@ -22,8 +22,14 @@ type AssociateDomainV2Response struct {
Status *AssociateDomainV2ResponseStatus `json:"status,omitempty"`
// 支持的最小SSL版本
- MinSslVersion *string `json:"min_ssl_version,omitempty"`
- HttpStatusCode int `json:"-"`
+ MinSslVersion *string `json:"min_ssl_version,omitempty"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o AssociateDomainV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_request_throttling_policy_v2_request.go
index a5e8d7bf..b7745c26 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AssociateRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ThrottleApiBindingCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_signature_key_v2_request.go
index f7283e2d..f33f2025 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_associate_signature_key_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type AssociateSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *SignApiBinding `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_request.go
new file mode 100644
index 00000000..06c7a23e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AttachApiToPluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+
+ Body *PluginOperApiInfo `json:"body,omitempty"`
+}
+
+func (o AttachApiToPluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachApiToPluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"AttachApiToPluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_response.go
new file mode 100644
index 00000000..06867b36
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_api_to_plugin_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AttachApiToPluginResponse struct {
+
+ // 绑定插件信息列表。
+ AttachedPlugins *[]PluginApiAttachInfo `json:"attached_plugins,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AttachApiToPluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachApiToPluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"AttachApiToPluginResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_certs_req_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_certs_req_body.go
new file mode 100644
index 00000000..9554192a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_certs_req_body.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 域名绑定和解绑证书的请求体
+type AttachOrDetachCertsReqBody struct {
+
+ // 证书的id集合
+ CertificateIds []string `json:"certificate_ids"`
+
+ // 是否开启客户端证书校验。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+}
+
+func (o AttachOrDetachCertsReqBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachOrDetachCertsReqBody struct{}"
+ }
+
+ return strings.Join([]string{"AttachOrDetachCertsReqBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domain_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domain_info.go
new file mode 100644
index 00000000..f310edac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domain_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 证书绑定或解绑域名信息。如果填了instance_id则只操作该实例下指定域名;如果不填instance_id则操作全局指定域名。
+type AttachOrDetachDomainInfo struct {
+
+ // 域名
+ Domain string `json:"domain"`
+
+ // 实例ID集合
+ InstanceIds *[]string `json:"instance_ids,omitempty"`
+
+ // 是否开启客户端证书校验。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+}
+
+func (o AttachOrDetachDomainInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachOrDetachDomainInfo struct{}"
+ }
+
+ return strings.Join([]string{"AttachOrDetachDomainInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domains_req_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domains_req_body.go
new file mode 100644
index 00000000..ead51ee5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_or_detach_domains_req_body.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 证书批量绑定或解绑域名请求体
+type AttachOrDetachDomainsReqBody struct {
+
+ // 证书绑定或解绑域名列表
+ Domains []AttachOrDetachDomainInfo `json:"domains"`
+}
+
+func (o AttachOrDetachDomainsReqBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachOrDetachDomainsReqBody struct{}"
+ }
+
+ return strings.Join([]string{"AttachOrDetachDomainsReqBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_request.go
new file mode 100644
index 00000000..ba959798
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AttachPluginToApiRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // API编号
+ ApiId string `json:"api_id"`
+
+ Body *ApiOperPluginInfo `json:"body,omitempty"`
+}
+
+func (o AttachPluginToApiRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachPluginToApiRequest struct{}"
+ }
+
+ return strings.Join([]string{"AttachPluginToApiRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_response.go
new file mode 100644
index 00000000..fd1d6e26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attach_plugin_to_api_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AttachPluginToApiResponse struct {
+
+ // 绑定插件信息列表。
+ AttachedPlugins *[]PluginApiAttachInfo `json:"attached_plugins,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AttachPluginToApiResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachPluginToApiResponse struct{}"
+ }
+
+ return strings.Join([]string{"AttachPluginToApiResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attached_plugin_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attached_plugin_info.go
new file mode 100644
index 00000000..18e20da3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_attached_plugin_info.go
@@ -0,0 +1,149 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type AttachedPluginInfo struct {
+
+ // 插件绑定编码。
+ PluginAttachId *string `json:"plugin_attach_id,omitempty"`
+
+ // 插件编码。
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType *AttachedPluginInfoPluginType `json:"plugin_type,omitempty"`
+
+ // 插件可见范围。global:全局可见。
+ PluginScope *AttachedPluginInfoPluginScope `json:"plugin_scope,omitempty"`
+
+ // 绑定API的环境编码。
+ EnvId *string `json:"env_id,omitempty"`
+
+ // api授权绑定的环境名称
+ EnvName *string `json:"env_name,omitempty"`
+
+ // 绑定时间。
+ AttachedTime *sdktime.SdkTime `json:"attached_time,omitempty"`
+
+ // 插件定义内容,支持json。
+ PluginContent *string `json:"plugin_content,omitempty"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+
+ // 创建时间。
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+}
+
+func (o AttachedPluginInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachedPluginInfo struct{}"
+ }
+
+ return strings.Join([]string{"AttachedPluginInfo", string(data)}, " ")
+}
+
+type AttachedPluginInfoPluginType struct {
+ value string
+}
+
+type AttachedPluginInfoPluginTypeEnum struct {
+ CORS AttachedPluginInfoPluginType
+ SET_RESP_HEADERS AttachedPluginInfoPluginType
+ KAFKA_LOG AttachedPluginInfoPluginType
+ BREAKER AttachedPluginInfoPluginType
+ RATE_LIMIT AttachedPluginInfoPluginType
+}
+
+func GetAttachedPluginInfoPluginTypeEnum() AttachedPluginInfoPluginTypeEnum {
+ return AttachedPluginInfoPluginTypeEnum{
+ CORS: AttachedPluginInfoPluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: AttachedPluginInfoPluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: AttachedPluginInfoPluginType{
+ value: "kafka_log",
+ },
+ BREAKER: AttachedPluginInfoPluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: AttachedPluginInfoPluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c AttachedPluginInfoPluginType) Value() string {
+ return c.value
+}
+
+func (c AttachedPluginInfoPluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AttachedPluginInfoPluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type AttachedPluginInfoPluginScope struct {
+ value string
+}
+
+type AttachedPluginInfoPluginScopeEnum struct {
+ GLOBAL AttachedPluginInfoPluginScope
+}
+
+func GetAttachedPluginInfoPluginScopeEnum() AttachedPluginInfoPluginScopeEnum {
+ return AttachedPluginInfoPluginScopeEnum{
+ GLOBAL: AttachedPluginInfoPluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c AttachedPluginInfoPluginScope) Value() string {
+ return c.value
+}
+
+func (c AttachedPluginInfoPluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AttachedPluginInfoPluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_base.go
index a33451ab..45b76ed4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_base.go
@@ -23,6 +23,12 @@ type AuthorizerBase struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_create.go
index 504d627e..83eb0d56 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_create.go
@@ -23,6 +23,12 @@ type AuthorizerCreate struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_resp.go
index 673012e3..ded9dd25 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_authorizer_resp.go
@@ -22,6 +22,12 @@ type AuthorizerResp struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api.go
index 9905b4c1..db12bd5f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api.go
@@ -38,6 +38,9 @@ type BackendApi struct {
// 是否开启双向认证
EnableClientSsl *bool `json:"enable_client_ssl,omitempty"`
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
+
// 编号
Id *string `json:"id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base.go
index 0845e62f..a5b5a83a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base.go
@@ -37,6 +37,9 @@ type BackendApiBase struct {
// 是否开启双向认证
EnableClientSsl *bool `json:"enable_client_ssl,omitempty"`
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
+
// 编号
Id *string `json:"id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base_info.go
index e37d69f4..89ba4fbe 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_base_info.go
@@ -37,6 +37,9 @@ type BackendApiBaseInfo struct {
// 是否开启双向认证
EnableClientSsl *bool `json:"enable_client_ssl,omitempty"`
+
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
}
func (o BackendApiBaseInfo) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_create.go
index 1fc153ab..8347ceb8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_api_create.go
@@ -39,6 +39,9 @@ type BackendApiCreate struct {
// 是否开启双向认证
EnableClientSsl *bool `json:"enable_client_ssl,omitempty"`
+ // 请求后端服务的重试次数,默认为-1,范围[-1,10]
+ RetryCount *string `json:"retry_count,omitempty"`
+
VpcChannelInfo *ApiBackendVpcReq `json:"vpc_channel_info,omitempty"`
// 是否使用VPC通道 - 1:使用VPC通道 - 2:不使用VPC通道
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param.go
index 509542a3..6b36dcb0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param.go
@@ -23,7 +23,7 @@ type BackendParam struct {
// 参数位置:PATH、QUERY、HEADER
Location BackendParamLocation `json:"location"`
- // 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa
+ // 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成请求ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa
Value string `json:"value"`
// 参数编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param_base.go
index 538a5f66..88f4ab06 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_backend_param_base.go
@@ -23,7 +23,7 @@ type BackendParamBase struct {
// 参数位置:PATH、QUERY、HEADER
Location BackendParamBaseLocation `json:"location"`
- // 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成跟踪ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa
+ // 参数值。字符长度不超过255 origin类别为REQUEST时,此字段值为req_params中的参数名称; origin类别为CONSTANT时,此字段值为参数真正的值; origin类别为SYSTEM时,此字段值为系统参数名称,系统参数分为网关内置参数、前端认证参数和后端认证参数,当api前端安全认证方式为自定义认证时,可以填写前端认证参数,当api开启后端认证时,可以填写后端认证参数。 网关内置参数取值及对应含义: - $context.sourceIp:API调用者的源地址 - $context.stage:API调用的部署环境 - $context.apiId:API的ID - $context.appId:API调用者的APP对象ID - $context.requestId:当次API调用生成请求ID - $context.serverAddr:网关的服务器地址 - $context.serverName:网关的服务器名称 - $context.handleTime:本次API调用的处理时间 - $context.providerAppId:API拥有者的应用对象ID,暂不支持使用 前端认证参数取值:以“$context.authorizer.frontend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.frontend.aaa 后端认证参数取值:以“$context.authorizer.backend.”为前缀,如希望自定义认证校验通过返回的参数为aaa,那么此字段填写为$context.authorizer.backend.aaa
Value string `json:"value"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_base_signature.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_base_signature.go
index ab2114ab..aa10cb42 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_base_signature.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_base_signature.go
@@ -17,13 +17,13 @@ type BaseSignature struct {
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
SignType *BaseSignatureSignType `json:"sign_type,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
- // 签名算法。默认值为空,仅aes类型签名秘钥支持选择签名算法,其他类型签名秘钥不支持签名算法。
+ // 签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。
SignAlgorithm *BaseSignatureSignAlgorithm `json:"sign_algorithm,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_request.go
new file mode 100644
index 00000000..f1e91302
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_request.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchAssociateCertsV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 分组的编号
+ GroupId string `json:"group_id"`
+
+ // 域名的编号
+ DomainId string `json:"domain_id"`
+
+ Body *AttachOrDetachCertsReqBody `json:"body,omitempty"`
+}
+
+func (o BatchAssociateCertsV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchAssociateCertsV2Request struct{}"
+ }
+
+ return strings.Join([]string{"BatchAssociateCertsV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_response.go
similarity index 51%
rename from vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_response.go
rename to vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_response.go
index 9eccc5ce..35cb56c2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_certs_v2_response.go
@@ -7,15 +7,15 @@ import (
)
// Response Object
-type DeleteMasterSlavePoolResponse struct {
+type BatchAssociateCertsV2Response struct {
HttpStatusCode int `json:"-"`
}
-func (o DeleteMasterSlavePoolResponse) String() string {
+func (o BatchAssociateCertsV2Response) String() string {
data, err := utils.Marshal(o)
if err != nil {
- return "DeleteMasterSlavePoolResponse struct{}"
+ return "BatchAssociateCertsV2Response struct{}"
}
- return strings.Join([]string{"DeleteMasterSlavePoolResponse", string(data)}, " ")
+ return strings.Join([]string{"BatchAssociateCertsV2Response", string(data)}, " ")
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_request.go
new file mode 100644
index 00000000..8b679330
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchAssociateDomainsV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+
+ Body *AttachOrDetachDomainsReqBody `json:"body,omitempty"`
+}
+
+func (o BatchAssociateDomainsV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchAssociateDomainsV2Request struct{}"
+ }
+
+ return strings.Join([]string{"BatchAssociateDomainsV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_response.go
new file mode 100644
index 00000000..45b014a7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_associate_domains_v2_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchAssociateDomainsV2Response struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchAssociateDomainsV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchAssociateDomainsV2Response struct{}"
+ }
+
+ return strings.Join([]string{"BatchAssociateDomainsV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_request.go
new file mode 100644
index 00000000..ef585cbf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateOrDeleteInstanceTagsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ Body *TmsUpdatePublicReq `json:"body,omitempty"`
+}
+
+func (o BatchCreateOrDeleteInstanceTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateOrDeleteInstanceTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateOrDeleteInstanceTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_response.go
new file mode 100644
index 00000000..d4308623
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_create_or_delete_instance_tags_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateOrDeleteInstanceTagsResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateOrDeleteInstanceTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateOrDeleteInstanceTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateOrDeleteInstanceTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_acl_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_acl_v2_request.go
index ed9632db..0cc76311 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_acl_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_acl_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type BatchDeleteAclV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 必须为delete
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_api_acl_binding_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_api_acl_binding_v2_request.go
index dd7e7303..055f6dfd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_api_acl_binding_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_delete_api_acl_binding_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type BatchDeleteApiAclBindingV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 必须为delete
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_request.go
new file mode 100644
index 00000000..b7b098bd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDisableMembersRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ Body *MembersBatchEnableOrDisable `json:"body,omitempty"`
+}
+
+func (o BatchDisableMembersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisableMembersRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisableMembersRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_response.go
new file mode 100644
index 00000000..3804607a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disable_members_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDisableMembersResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDisableMembersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisableMembersResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisableMembersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_request.go
new file mode 100644
index 00000000..129b5296
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_request.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDisassociateCertsV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 分组的编号
+ GroupId string `json:"group_id"`
+
+ // 域名的编号
+ DomainId string `json:"domain_id"`
+
+ Body *AttachOrDetachCertsReqBody `json:"body,omitempty"`
+}
+
+func (o BatchDisassociateCertsV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisassociateCertsV2Request struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisassociateCertsV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_response.go
new file mode 100644
index 00000000..15cc9275
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_certs_v2_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDisassociateCertsV2Response struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDisassociateCertsV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisassociateCertsV2Response struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisassociateCertsV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_request.go
new file mode 100644
index 00000000..9c3c2799
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDisassociateDomainsV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+
+ Body *AttachOrDetachDomainsReqBody `json:"body,omitempty"`
+}
+
+func (o BatchDisassociateDomainsV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisassociateDomainsV2Request struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisassociateDomainsV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_response.go
new file mode 100644
index 00000000..55944f03
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_domains_v2_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDisassociateDomainsV2Response struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDisassociateDomainsV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDisassociateDomainsV2Response struct{}"
+ }
+
+ return strings.Join([]string{"BatchDisassociateDomainsV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_throttling_policy_v2_request.go
index 97926b3c..491882bd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_disassociate_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type BatchDisassociateThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 必须为delete
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_request.go
new file mode 100644
index 00000000..b51ef917
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchEnableMembersRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ Body *MembersBatchEnableOrDisable `json:"body,omitempty"`
+}
+
+func (o BatchEnableMembersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchEnableMembersRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchEnableMembersRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_response.go
new file mode 100644
index 00000000..7bce0b0a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_enable_members_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchEnableMembersResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchEnableMembersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchEnableMembersResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchEnableMembersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_publish_or_offline_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_publish_or_offline_api_v2_request.go
index 92ad5975..9d4de38b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_publish_or_offline_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_batch_publish_or_offline_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type BatchPublishOrOfflineApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// - online:发布 - offline:下线
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_canceling_authorization_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_canceling_authorization_v2_request.go
index b056c25b..27534cef 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_canceling_authorization_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_canceling_authorization_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CancelingAuthorizationV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 授权关系的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cert_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cert_base.go
new file mode 100644
index 00000000..5342aa55
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cert_base.go
@@ -0,0 +1,99 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type CertBase struct {
+
+ // 证书ID
+ Id *string `json:"id,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书类型 - global:全局证书 - instance:实例证书
+ Type *CertBaseType `json:"type,omitempty"`
+
+ // 实例编码 - `type`为`global`时,缺省为common - `type`为`instance`时,为实例编码
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 租户项目编号
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 域名
+ CommonName *string `json:"common_name,omitempty"`
+
+ // san扩展域名
+ San *[]string `json:"san,omitempty"`
+
+ // 有效期到
+ NotAfter *sdktime.SdkTime `json:"not_after,omitempty"`
+
+ // 签名算法
+ SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
+ // 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。
+ IsHasTrustedRootCa *bool `json:"is_has_trusted_root_ca,omitempty"`
+}
+
+func (o CertBase) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CertBase struct{}"
+ }
+
+ return strings.Join([]string{"CertBase", string(data)}, " ")
+}
+
+type CertBaseType struct {
+ value string
+}
+
+type CertBaseTypeEnum struct {
+ GLOBAL CertBaseType
+ INSTANCE CertBaseType
+}
+
+func GetCertBaseTypeEnum() CertBaseTypeEnum {
+ return CertBaseTypeEnum{
+ GLOBAL: CertBaseType{
+ value: "global",
+ },
+ INSTANCE: CertBaseType{
+ value: "instance",
+ },
+ }
+}
+
+func (c CertBaseType) Value() string {
+ return c.value
+}
+
+func (c CertBaseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CertBaseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_certificate_form.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_certificate_form.go
new file mode 100644
index 00000000..ed07a99c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_certificate_form.go
@@ -0,0 +1,83 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 添加或编辑证书的请求体表单
+type CertificateForm struct {
+
+ // 证书名称
+ Name string `json:"name"`
+
+ // 证书内容
+ CertContent string `json:"cert_content"`
+
+ // 证书私钥
+ PrivateKey string `json:"private_key"`
+
+ // 证书可见范围
+ Type *CertificateFormType `json:"type,omitempty"`
+
+ // 所属实例ID,当type=instance时必填
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 信任的根证书CA
+ TrustedRootCa *string `json:"trusted_root_ca,omitempty"`
+}
+
+func (o CertificateForm) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CertificateForm struct{}"
+ }
+
+ return strings.Join([]string{"CertificateForm", string(data)}, " ")
+}
+
+type CertificateFormType struct {
+ value string
+}
+
+type CertificateFormTypeEnum struct {
+ INSTANCE CertificateFormType
+ GLOBAL CertificateFormType
+}
+
+func GetCertificateFormTypeEnum() CertificateFormTypeEnum {
+ return CertificateFormTypeEnum{
+ INSTANCE: CertificateFormType{
+ value: "instance",
+ },
+ GLOBAL: CertificateFormType{
+ value: "global",
+ },
+ }
+}
+
+func (c CertificateFormType) Value() string {
+ return c.value
+}
+
+func (c CertificateFormType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CertificateFormType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_change_api_version_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_change_api_version_v2_request.go
index 44e8b8b9..02a51980 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_change_api_version_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_change_api_version_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ChangeApiVersionV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_check_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_check_app_v2_request.go
index a449ecdb..1d1d768d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_check_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_check_app_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CheckAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cors_plugin_content.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cors_plugin_content.go
new file mode 100644
index 00000000..b5514cfa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_cors_plugin_content.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 跨域资源共享插件类型
+type CorsPluginContent struct {
+
+ // Access-Control-Allow-Origin头,该字段必填,允许访问该资源的外域URI。对于不需要携带身份凭证的请求,服务器可以指定该字段的值为通配符*,表示允许来自所有域的请求。 多个域名使用英文逗号分隔。
+ AllowOrigin string `json:"allow_origin"`
+
+ // Access-Control-Allow-Methods头,请求所允许使用的 HTTP 方法。 多个方法使用英文逗号分隔。
+ AllowMethods *string `json:"allow_methods,omitempty"`
+
+ // Access-Control-Allow-Headers头,请求中允许携带的头域字段。 多个头域使用英文逗号分隔。
+ AllowHeaders *string `json:"allow_headers,omitempty"`
+
+ // Access-Control-Expose-Headers 头,让服务器把允许浏览器访问的头放入白名单。 多个头域可通过英文逗号分隔。
+ ExposeHeaders *string `json:"expose_headers,omitempty"`
+
+ // Access-Control-Max-Age 头,表示本次预检的有效期,单位:秒,范围为0-86400。在有效期内,无需再次发出预检请求。
+ MaxAge *int32 `json:"max_age,omitempty"`
+
+ // Access-Control-Allow-Credentials 头,是否允许浏览器读取response的内容。
+ AllowCredentials *bool `json:"allow_credentials,omitempty"`
+}
+
+func (o CorsPluginContent) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CorsPluginContent struct{}"
+ }
+
+ return strings.Join([]string{"CorsPluginContent", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_request.go
index 49f7fa9e..648d2b40 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateAclStrategyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ApiAclCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_response.go
index 03b844e3..417358b6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_acl_strategy_v2_response.go
@@ -19,7 +19,7 @@ type CreateAclStrategyV2Response struct {
// ACL策略值
AclValue *string `json:"acl_value,omitempty"`
- // 对象类型: - IP - DOMAIN
+ // 对象类型: - IP - DOMAIN - DOMAIN_ID
EntityType *string `json:"entity_type,omitempty"`
// 编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_request.go
index 5fc787b5..a2dd7d03 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateAnAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *AppCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_response.go
index 14204943..718219f3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_an_app_v2_response.go
@@ -20,7 +20,7 @@ type CreateAnAppV2Response struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *CreateAnAppV2ResponseCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_acl_binding_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_acl_binding_v2_request.go
index 37d20e02..155d7fca 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_acl_binding_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_acl_binding_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateApiAclBindingV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *AclApiBindingCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_request.go
index cd0eb88b..6b2a282e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateApiGroupV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ApiGroupCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_response.go
index 744abbd3..1049705c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_group_v2_response.go
@@ -29,7 +29,7 @@ type CreateApiGroupV2Response struct {
// 最近修改时间
UpdateTime *sdktime.SdkTime `json:"update_time"`
- // 是否已上架云市场: - 1:已上架 - 2:未上架 - 3:审核中
+ // 是否已上架云商店: - 1:已上架 - 2:未上架 - 3:审核中
OnSellStatus int32 `json:"on_sell_status"`
// 分组上绑定的独立域名列表
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_v2_request.go
index 8d7dbf89..9e3e27fa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ApiCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_auto_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_auto_v2_request.go
index 4388b987..9c5370ad 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_auto_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_auto_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateAppCodeAutoV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_v2_request.go
index fac72367..bc08fbfd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_app_code_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateAppCodeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_authorizing_apps_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_authorizing_apps_v2_request.go
index 298d4cbc..bbc6f8da 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_authorizing_apps_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_authorizing_apps_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateAuthorizingAppsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ApiAuthCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_request.go
new file mode 100644
index 00000000..c37cae0a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateCertificateV2Request struct {
+ Body *CertificateForm `json:"body,omitempty"`
+}
+
+func (o CreateCertificateV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCertificateV2Request struct{}"
+ }
+
+ return strings.Join([]string{"CreateCertificateV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_response.go
new file mode 100644
index 00000000..e9d1589e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_certificate_v2_response.go
@@ -0,0 +1,128 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type CreateCertificateV2Response struct {
+
+ // 证书ID
+ Id *string `json:"id,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书类型 - global:全局证书 - instance:实例证书
+ Type *CreateCertificateV2ResponseType `json:"type,omitempty"`
+
+ // 实例编码 - `type`为`global`时,缺省为common - `type`为`instance`时,为实例编码
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 租户项目编号
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 域名
+ CommonName *string `json:"common_name,omitempty"`
+
+ // san扩展域名
+ San *[]string `json:"san,omitempty"`
+
+ // 有效期到
+ NotAfter *sdktime.SdkTime `json:"not_after,omitempty"`
+
+ // 签名算法
+ SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
+ // 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。
+ IsHasTrustedRootCa *bool `json:"is_has_trusted_root_ca,omitempty"`
+
+ // 版本
+ Version *int32 `json:"version,omitempty"`
+
+ // 公司、组织
+ Organization *[]string `json:"organization,omitempty"`
+
+ // 部门
+ OrganizationalUnit *[]string `json:"organizational_unit,omitempty"`
+
+ // 城市
+ Locality *[]string `json:"locality,omitempty"`
+
+ // 省份
+ State *[]string `json:"state,omitempty"`
+
+ // 国家
+ Country *[]string `json:"country,omitempty"`
+
+ // 有效期从
+ NotBefore *sdktime.SdkTime `json:"not_before,omitempty"`
+
+ // 序列号
+ SerialNumber *string `json:"serial_number,omitempty"`
+
+ // 颁发者
+ Issuer *[]string `json:"issuer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateCertificateV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCertificateV2Response struct{}"
+ }
+
+ return strings.Join([]string{"CreateCertificateV2Response", string(data)}, " ")
+}
+
+type CreateCertificateV2ResponseType struct {
+ value string
+}
+
+type CreateCertificateV2ResponseTypeEnum struct {
+ GLOBAL CreateCertificateV2ResponseType
+ INSTANCE CreateCertificateV2ResponseType
+}
+
+func GetCreateCertificateV2ResponseTypeEnum() CreateCertificateV2ResponseTypeEnum {
+ return CreateCertificateV2ResponseTypeEnum{
+ GLOBAL: CreateCertificateV2ResponseType{
+ value: "global",
+ },
+ INSTANCE: CreateCertificateV2ResponseType{
+ value: "instance",
+ },
+ }
+}
+
+func (c CreateCertificateV2ResponseType) Value() string {
+ return c.value
+}
+
+func (c CreateCertificateV2ResponseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateCertificateV2ResponseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_request.go
index 03721c68..69df51cc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateCustomAuthorizerV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *AuthorizerCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_response.go
index bf88a210..d2d39638 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_custom_authorizer_v2_response.go
@@ -23,6 +23,12 @@ type CreateCustomAuthorizerV2Response struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_v2_request.go
index a00c0d09..85bc18bb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateEnvironmentV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *EnvCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_variable_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_variable_v2_request.go
index 8d7d6495..55001b71 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_variable_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_environment_variable_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateEnvironmentVariableV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *EnvVariableCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_feature_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_feature_v2_request.go
index 05f54386..87fc2529 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_feature_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_feature_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateFeatureV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *FeatureToggle `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_gateway_response_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_gateway_response_v2_request.go
index 2f0063bf..62c68f8c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_gateway_response_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_gateway_response_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateGatewayResponseV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_request.go
new file mode 100644
index 00000000..df77e6b9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateMemberGroupRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ Body *MemberGroupCreateBatch `json:"body,omitempty"`
+}
+
+func (o CreateMemberGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateMemberGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateMemberGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_response.go
new file mode 100644
index 00000000..7bef7762
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_member_group_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateMemberGroupResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // VPC通道后端服务器组列表
+ MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateMemberGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateMemberGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateMemberGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_or_delete_publish_record_for_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_or_delete_publish_record_for_api_v2_request.go
index 146c76ec..ee629a19 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_or_delete_publish_record_for_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_or_delete_publish_record_for_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateOrDeletePublishRecordForApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ApiActionInfo `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_request.go
new file mode 100644
index 00000000..41efc1e9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreatePluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ Body *PluginCreate `json:"body,omitempty"`
+}
+
+func (o CreatePluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreatePluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreatePluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_response.go
new file mode 100644
index 00000000..93648ecd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_plugin_response.go
@@ -0,0 +1,139 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type CreatePluginResponse struct {
+
+ // 插件编码。
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType *CreatePluginResponsePluginType `json:"plugin_type,omitempty"`
+
+ // 插件可见范围。global:全局可见;
+ PluginScope *CreatePluginResponsePluginScope `json:"plugin_scope,omitempty"`
+
+ // 插件定义内容,支持json。参考提供的具体模型定义 CorsPluginContent:跨域资源共享 定义内容 SetRespHeadersContent:HTTP响应头管理 定义内容 KafkaLogContent:Kafka日志推送 定义内容 BreakerContent:断路器 定义内容 RateLimitContent 流量控制 定义内容
+ PluginContent *string `json:"plugin_content,omitempty"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+
+ // 创建时间。
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreatePluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreatePluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreatePluginResponse", string(data)}, " ")
+}
+
+type CreatePluginResponsePluginType struct {
+ value string
+}
+
+type CreatePluginResponsePluginTypeEnum struct {
+ CORS CreatePluginResponsePluginType
+ SET_RESP_HEADERS CreatePluginResponsePluginType
+ KAFKA_LOG CreatePluginResponsePluginType
+ BREAKER CreatePluginResponsePluginType
+ RATE_LIMIT CreatePluginResponsePluginType
+}
+
+func GetCreatePluginResponsePluginTypeEnum() CreatePluginResponsePluginTypeEnum {
+ return CreatePluginResponsePluginTypeEnum{
+ CORS: CreatePluginResponsePluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: CreatePluginResponsePluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: CreatePluginResponsePluginType{
+ value: "kafka_log",
+ },
+ BREAKER: CreatePluginResponsePluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: CreatePluginResponsePluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c CreatePluginResponsePluginType) Value() string {
+ return c.value
+}
+
+func (c CreatePluginResponsePluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreatePluginResponsePluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreatePluginResponsePluginScope struct {
+ value string
+}
+
+type CreatePluginResponsePluginScopeEnum struct {
+ GLOBAL CreatePluginResponsePluginScope
+}
+
+func GetCreatePluginResponsePluginScopeEnum() CreatePluginResponsePluginScopeEnum {
+ return CreatePluginResponsePluginScopeEnum{
+ GLOBAL: CreatePluginResponsePluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c CreatePluginResponsePluginScope) Value() string {
+ return c.value
+}
+
+func (c CreatePluginResponsePluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreatePluginResponsePluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_request.go
index 9c0098ac..6a009456 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ThrottleBaseInfo `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_response.go
index ceb6f45d..268470bb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_request_throttling_policy_v2_response.go
@@ -32,7 +32,7 @@ type CreateRequestThrottlingPolicyV2Response struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_request.go
index 5eb3b9e0..aea5201c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *BaseSignature `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_response.go
index 29d219ef..2db099c8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_signature_key_v2_response.go
@@ -17,13 +17,13 @@ type CreateSignatureKeyV2Response struct {
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
SignType *CreateSignatureKeyV2ResponseSignType `json:"sign_type,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
- // 签名算法。默认值为空,仅aes类型签名秘钥支持选择签名算法,其他类型签名秘钥不支持签名算法。
+ // 签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。
SignAlgorithm *CreateSignatureKeyV2ResponseSignAlgorithm `json:"sign_algorithm,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_special_throttling_configuration_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_special_throttling_configuration_v2_request.go
index 644e2c8e..f4e7e164 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_special_throttling_configuration_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_special_throttling_configuration_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateSpecialThrottlingConfigurationV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_request.go
index 3e691cb1..8b967011 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type CreateVpcChannelV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *VpcCreate `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_response.go
index c2dd0ac6..8b077a49 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_create_vpc_channel_v2_response.go
@@ -14,14 +14,20 @@ type CreateVpcChannelV2Response struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *CreateVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy CreateVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *CreateVpcChannelV2ResponseMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType CreateVpcChannelV2ResponseMemberType `json:"member_type"`
+
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
// VPC通道的创建时间
CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
@@ -32,9 +38,11 @@ type CreateVpcChannelV2Response struct {
// VPC通道的状态。 - 1:正常 - 2:异常
Status *CreateVpcChannelV2ResponseStatus `json:"status,omitempty"`
- // 后端云服务器组列表。 暂不支持
- MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
- HttpStatusCode int `json:"-"`
+ // 后端云服务器组列表。
+ MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
+
+ MicroserviceInfo *MicroServiceInfo `json:"microservice_info,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o CreateVpcChannelV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_debug_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_debug_api_v2_request.go
index 130d03ea..c9b23611 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_debug_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_debug_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DebugApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_acl_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_acl_v2_request.go
index 1e3e62d7..a7b5ba59 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_acl_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_acl_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteAclV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// ACL策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_acl_binding_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_acl_binding_v2_request.go
index 5b7a6761..10d71618 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_acl_binding_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_acl_binding_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteApiAclBindingV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 绑定关系编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_by_version_id_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_by_version_id_v2_request.go
index ad6cd5d4..2be70158 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_by_version_id_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_by_version_id_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteApiByVersionIdV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API版本的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_group_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_group_v2_request.go
index d3cbb09e..bc469920 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_group_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_group_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteApiGroupV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_v2_request.go
index 43f51011..63b1f289 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_code_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_code_v2_request.go
index 2c0c1298..d025b85b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_code_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_code_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteAppCodeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_v2_request.go
index 44f8e47d..38909ba3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_app_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_backend_instance_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_backend_instance_v2_request.go
index aa0af46f..fb2d2fb2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_backend_instance_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_backend_instance_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteBackendInstanceV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_request.go
new file mode 100644
index 00000000..1447666d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteCertificateV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+}
+
+func (o DeleteCertificateV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteCertificateV2Request struct{}"
+ }
+
+ return strings.Join([]string{"DeleteCertificateV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_response.go
new file mode 100644
index 00000000..4db6c838
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_certificate_v2_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteCertificateV2Response struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteCertificateV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteCertificateV2Response struct{}"
+ }
+
+ return strings.Join([]string{"DeleteCertificateV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_custom_authorizer_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_custom_authorizer_v2_request.go
index a317e9d2..80c6a835 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_custom_authorizer_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_custom_authorizer_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteCustomAuthorizerV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 自定义认证的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_v2_request.go
index 691ed687..4a27cd84 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteEnvironmentV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 环境的ID
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_variable_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_variable_v2_request.go
index 7fd70752..78e64fbe 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_variable_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_environment_variable_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteEnvironmentVariableV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 环境变量的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_type_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_type_v2_request.go
index 5cfc5a66..5dfe7231 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_type_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_type_v2_request.go
@@ -12,7 +12,7 @@ import (
// Request Object
type DeleteGatewayResponseTypeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_v2_request.go
index 15d6462e..35017707 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_gateway_response_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteGatewayResponseV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_instances_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_instances_v2_request.go
index 23eb3aa7..e1135805 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_instances_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_instances_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteInstancesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_request.go
new file mode 100644
index 00000000..0d2bd30f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteMemberGroupRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ // VPC通道后端服务器组编号
+ MemberGroupId string `json:"member_group_id"`
+}
+
+func (o DeleteMemberGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteMemberGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteMemberGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_response.go
new file mode 100644
index 00000000..5342a5c9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_member_group_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteMemberGroupResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteMemberGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteMemberGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteMemberGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_request.go
new file mode 100644
index 00000000..a0bdf1b4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeletePluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+}
+
+func (o DeletePluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeletePluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeletePluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_response.go
new file mode 100644
index 00000000..d24d447f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_plugin_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeletePluginResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeletePluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeletePluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeletePluginResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_request_throttling_policy_v2_request.go
index 4555fc25..f91ad0ab 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_signature_key_v2_request.go
index b57feae2..50b94c87 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_signature_key_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 签名密钥编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_special_throttling_configuration_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_special_throttling_configuration_v2_request.go
index 7956a397..4535860c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_special_throttling_configuration_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_special_throttling_configuration_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteSpecialThrottlingConfigurationV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_vpc_channel_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_vpc_channel_v2_request.go
index 8ce3d23e..3fd1547f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_vpc_channel_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_delete_vpc_channel_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DeleteVpcChannelV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_request.go
new file mode 100644
index 00000000..4411fce3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DetachApiFromPluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+
+ Body *PluginOperApiInfo `json:"body,omitempty"`
+}
+
+func (o DetachApiFromPluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DetachApiFromPluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"DetachApiFromPluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_response.go
new file mode 100644
index 00000000..c27acc74
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_api_from_plugin_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DetachApiFromPluginResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DetachApiFromPluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DetachApiFromPluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"DetachApiFromPluginResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_request.go
new file mode 100644
index 00000000..653ba807
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DetachPluginFromApiRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // API编号
+ ApiId string `json:"api_id"`
+
+ Body *ApiOperPluginInfo `json:"body,omitempty"`
+}
+
+func (o DetachPluginFromApiRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DetachPluginFromApiRequest struct{}"
+ }
+
+ return strings.Join([]string{"DetachPluginFromApiRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_response.go
new file mode 100644
index 00000000..2c269028
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_detach_plugin_from_api_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DetachPluginFromApiResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DetachPluginFromApiResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DetachPluginFromApiResponse struct{}"
+ }
+
+ return strings.Join([]string{"DetachPluginFromApiResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_certificate_v2_request.go
index 7faed896..bc863ec4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_certificate_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_certificate_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DisassociateCertificateV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_domain_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_domain_v2_request.go
index 6085978f..c4823dde 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_domain_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_domain_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DisassociateDomainV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_request_throttling_policy_v2_request.go
index 8daa2f72..576c7055 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DisassociateRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API和流控策略绑定关系的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_signature_key_v2_request.go
index b1c135f3..d1d2eb36 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_disassociate_signature_key_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type DisassociateSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API与签名密钥的绑定关系编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_api_definitions_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_api_definitions_v2_request.go
index 697b6bf5..0bd94f9b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_api_definitions_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_api_definitions_v2_request.go
@@ -3,15 +3,21 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Request Object
type ExportApiDefinitionsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
+ // OpenAPI版本
+ OasVersion *ExportApiDefinitionsV2RequestOasVersion `json:"oas_version,omitempty"`
+
Body *ExportOpenApiReq `json:"body,omitempty"`
}
@@ -23,3 +29,45 @@ func (o ExportApiDefinitionsV2Request) String() string {
return strings.Join([]string{"ExportApiDefinitionsV2Request", string(data)}, " ")
}
+
+type ExportApiDefinitionsV2RequestOasVersion struct {
+ value string
+}
+
+type ExportApiDefinitionsV2RequestOasVersionEnum struct {
+ E_2_0 ExportApiDefinitionsV2RequestOasVersion
+ E_3_0 ExportApiDefinitionsV2RequestOasVersion
+}
+
+func GetExportApiDefinitionsV2RequestOasVersionEnum() ExportApiDefinitionsV2RequestOasVersionEnum {
+ return ExportApiDefinitionsV2RequestOasVersionEnum{
+ E_2_0: ExportApiDefinitionsV2RequestOasVersion{
+ value: "2.0",
+ },
+ E_3_0: ExportApiDefinitionsV2RequestOasVersion{
+ value: "3.0",
+ },
+ }
+}
+
+func (c ExportApiDefinitionsV2RequestOasVersion) Value() string {
+ return c.value
+}
+
+func (c ExportApiDefinitionsV2RequestOasVersion) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ExportApiDefinitionsV2RequestOasVersion) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_open_api_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_open_api_req.go
index b259fb02..86e02469 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_open_api_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_export_open_api_req.go
@@ -12,7 +12,7 @@ import (
type ExportOpenApiReq struct {
// API分组发布的环境ID
- EnvId *string `json:"env_id,omitempty"`
+ EnvId string `json:"env_id"`
// API分组ID
GroupId string `json:"group_id"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_api_definitions_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_api_definitions_v2_request.go
index ed64ded0..78898119 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_api_definitions_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_api_definitions_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ImportApiDefinitionsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *ImportApiDefinitionsV2RequestBody `json:"body,omitempty" type:"multipart"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_request.go
new file mode 100644
index 00000000..256bfafa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ImportMicroserviceRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ Body *MicroserviceImportReq `json:"body,omitempty"`
+}
+
+func (o ImportMicroserviceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ImportMicroserviceRequest struct{}"
+ }
+
+ return strings.Join([]string{"ImportMicroserviceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_response.go
new file mode 100644
index 00000000..1269099a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_import_microservice_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ImportMicroserviceResponse struct {
+
+ // vpc通道编号
+ VpcChannelId *string `json:"vpc_channel_id,omitempty"`
+
+ // api分组编号
+ ApiGroupId *string `json:"api_group_id,omitempty"`
+
+ // 导入的api列表
+ Apis *[]MicroserviceImportApiResp `json:"apis,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ImportMicroserviceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ImportMicroserviceResponse struct{}"
+ }
+
+ return strings.Join([]string{"ImportMicroserviceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_abstract_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_abstract_req.go
index 36e433df..a0958dce 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_abstract_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_abstract_req.go
@@ -11,10 +11,10 @@ type InstanceAbstractReq struct {
// 实例描述
Description *string `json:"description,omitempty"`
- // '维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。'
+ // 维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainBegin *string `json:"maintain_begin,omitempty"`
- // '维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次'。
+ // 维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainEnd *string `json:"maintain_end,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_create_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_create_req.go
index 17ca71f1..c07cb859 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_create_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_create_req.go
@@ -14,10 +14,10 @@ type InstanceCreateReq struct {
// 实例描述
Description *string `json:"description,omitempty"`
- // '维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。'
+ // 维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainBegin *string `json:"maintain_begin,omitempty"`
- // '维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次'。
+ // 维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainEnd *string `json:"maintain_end,omitempty"`
// 实例名称
@@ -38,7 +38,7 @@ type InstanceCreateReq struct {
// 指定实例所属的安全组。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体方法请参见《虚拟私有云服务API参考》的“查询安全组列表”章节。
SecurityGroupId *string `json:"security_group_id,omitempty"`
- // 弹性公网IP ID。 实例需要开启公网访问时需要填写,绑定后使用者可以通过该入口从公网访问APIG实例中的API等资源 获取方法:登录虚拟私有云服务的控制台界面,在弹性公网IP的详情页面查找弹性公网IP ID。
+ // 弹性公网IP ID。 实例需要开启公网访问,且loadbalancer_provider为lvs时需要填写,绑定后使用者可以通过该入口从公网访问APIG实例中的API等资源 获取方法:登录虚拟私有云服务的控制台界面,在弹性公网IP的详情页面查找弹性公网IP ID。
EipId *string `json:"eip_id,omitempty"`
// 企业项目ID,企业帐号必填。 获取方法如下: - 方法1:登录企业项目管理界面,在项目管理详情页面查找项目ID。 - 方法2:通过企业项目管理的API接口查询,具体方法请参见《企业管理API参考》的“查询企业项目列表”章节。
@@ -50,11 +50,26 @@ type InstanceCreateReq struct {
// 出公网带宽 实例需要开启出公网功能时需要填写,绑定后使用者可以利用该出口访问公网上的互联网资源
BandwidthSize *int32 `json:"bandwidth_size,omitempty"`
+ // 出公网带宽计费类型,实例需要开启出公网功能时需要填写: - bandwidth:按带宽计费 - traffic:按流量计费
+ BandwidthChargingMode *InstanceCreateReqBandwidthChargingMode `json:"bandwidth_charging_mode,omitempty"`
+
// 公网访问是否支持IPv6。 当前仅部分region部分可用区支持IPv6
Ipv6Enable *bool `json:"ipv6_enable,omitempty"`
// 实例使用的负载均衡器类型 - lvs Linux虚拟服务器 - elb 弹性负载均衡,elb仅部分region支持
LoadbalancerProvider *InstanceCreateReqLoadbalancerProvider `json:"loadbalancer_provider,omitempty"`
+
+ // 标签列表。 一个实例默认最多支持创建20个标签
+ Tags *[]TmsKeyValue `json:"tags,omitempty"`
+
+ // 终端节点服务的名称。 长度不超过16个字符,允许输入大小写字母、数字、下划线、中划线。 如果您不填写该参数,系统生成的终端节点服务的名称为{region}.apig.{service_id}。 如果您填写该参数,系统生成的终端节点服务的名称为{region}.{vpcep_service_name}.{service_id}。 实例创建完成后,可以在实例管理->终端节点管理页面修改该名称。
+ VpcepServiceName *string `json:"vpcep_service_name,omitempty"`
+
+ // 入公网带宽 实例需要开启入公网功能,且loadbalancer_provider为elb时需要填写,绑定后使用者可以通过该入口从公网访问APIG实例中的API等资源
+ IngressBandwidthSize *int32 `json:"ingress_bandwidth_size,omitempty"`
+
+ // 入公网带宽计费类型,实例需要开启入公网功能,且loadbalancer_provider为elb时需要填写: - bandwidth:按带宽计费 - traffic:按流量计费
+ IngressBandwidthChargingMode *InstanceCreateReqIngressBandwidthChargingMode `json:"ingress_bandwidth_charging_mode,omitempty"`
}
func (o InstanceCreateReq) String() string {
@@ -132,6 +147,48 @@ func (c *InstanceCreateReqSpecId) UnmarshalJSON(b []byte) error {
}
}
+type InstanceCreateReqBandwidthChargingMode struct {
+ value string
+}
+
+type InstanceCreateReqBandwidthChargingModeEnum struct {
+ BANDWIDTH InstanceCreateReqBandwidthChargingMode
+ TRAFFIC InstanceCreateReqBandwidthChargingMode
+}
+
+func GetInstanceCreateReqBandwidthChargingModeEnum() InstanceCreateReqBandwidthChargingModeEnum {
+ return InstanceCreateReqBandwidthChargingModeEnum{
+ BANDWIDTH: InstanceCreateReqBandwidthChargingMode{
+ value: "bandwidth",
+ },
+ TRAFFIC: InstanceCreateReqBandwidthChargingMode{
+ value: "traffic",
+ },
+ }
+}
+
+func (c InstanceCreateReqBandwidthChargingMode) Value() string {
+ return c.value
+}
+
+func (c InstanceCreateReqBandwidthChargingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *InstanceCreateReqBandwidthChargingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
type InstanceCreateReqLoadbalancerProvider struct {
value string
}
@@ -173,3 +230,45 @@ func (c *InstanceCreateReqLoadbalancerProvider) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type InstanceCreateReqIngressBandwidthChargingMode struct {
+ value string
+}
+
+type InstanceCreateReqIngressBandwidthChargingModeEnum struct {
+ BANDWIDTH InstanceCreateReqIngressBandwidthChargingMode
+ TRAFFIC InstanceCreateReqIngressBandwidthChargingMode
+}
+
+func GetInstanceCreateReqIngressBandwidthChargingModeEnum() InstanceCreateReqIngressBandwidthChargingModeEnum {
+ return InstanceCreateReqIngressBandwidthChargingModeEnum{
+ BANDWIDTH: InstanceCreateReqIngressBandwidthChargingMode{
+ value: "bandwidth",
+ },
+ TRAFFIC: InstanceCreateReqIngressBandwidthChargingMode{
+ value: "traffic",
+ },
+ }
+}
+
+func (c InstanceCreateReqIngressBandwidthChargingMode) Value() string {
+ return c.value
+}
+
+func (c InstanceCreateReqIngressBandwidthChargingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *InstanceCreateReqIngressBandwidthChargingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_mod_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_mod_req.go
index 9a23156b..a11f5acc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_mod_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_instance_mod_req.go
@@ -11,17 +11,20 @@ type InstanceModReq struct {
// 实例描述
Description *string `json:"description,omitempty"`
- // '维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。'
+ // 维护时间窗开始时间。时间格式为 xx:00:00,xx取值为02,06,10,14,18,22。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainBegin *string `json:"maintain_begin,omitempty"`
- // '维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。' '在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次'。
+ // 维护时间窗结束时间。时间格式为 xx:00:00,与维护时间窗开始时间相差4个小时。 在这个时间段内,运维人员可以对该实例的节点进行维护操作。维护期间,业务可以正常使用,可能会发生闪断。维护操作通常几个月一次。
MaintainEnd *string `json:"maintain_end,omitempty"`
// 实例名称
InstanceName *string `json:"instance_name,omitempty"`
- // 指定实例所属的安全组。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体方法请参见《虚拟私有云服务API参考》的“查询安全组列表”章节。。
+ // 指定实例所属的安全组。 获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体方法请参见《虚拟私有云服务API参考》的“查询安全组列表”章节。
SecurityGroupId *string `json:"security_group_id,omitempty"`
+
+ // 终端节点服务的名称。 长度不超过16个字符,允许输入大小写字母、数字、下划线、中划线。 如果您不填写该参数,系统生成的终端节点服务的名称为{region}.apig.{service_id}。 如果您填写该参数,系统生成的终端节点服务的名称为{region}.{vpcep_service_name}.{service_id}。
+ VpcepServiceName *string `json:"vpcep_service_name,omitempty"`
}
func (o InstanceModReq) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_policy_binded_to_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_policy_binded_to_api_v2_request.go
index 2f7cac62..26adaad6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_policy_binded_to_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_policy_binded_to_api_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListAclPolicyBindedToApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_strategies_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_strategies_v2_request.go
index 48cc24ac..464fcd72 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_strategies_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_acl_strategies_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListAclStrategiesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// ACL策略编号。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_request.go
new file mode 100644
index 00000000..661c0596
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_request.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListApiAttachablePluginsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // API编号
+ ApiId string `json:"api_id"`
+
+ // 发布的环境编号
+ EnvId *string `json:"env_id,omitempty"`
+
+ // 插件名称
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型
+ PluginType *string `json:"plugin_type,omitempty"`
+
+ // 插件编号
+ PluginId *string `json:"plugin_id,omitempty"`
+}
+
+func (o ListApiAttachablePluginsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApiAttachablePluginsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListApiAttachablePluginsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_response.go
new file mode 100644
index 00000000..d0b86f26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attachable_plugins_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListApiAttachablePluginsResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 插件列表。
+ Plugins *[]PluginInfo `json:"plugins,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListApiAttachablePluginsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApiAttachablePluginsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListApiAttachablePluginsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_request.go
new file mode 100644
index 00000000..429bbeb1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_request.go
@@ -0,0 +1,47 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListApiAttachedPluginsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // API编号
+ ApiId string `json:"api_id"`
+
+ // 发布的环境编号
+ EnvId *string `json:"env_id,omitempty"`
+
+ // 插件名称
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件编号
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 环境名称
+ EnvName *string `json:"env_name,omitempty"`
+
+ // 插件类型
+ PluginType *string `json:"plugin_type,omitempty"`
+}
+
+func (o ListApiAttachedPluginsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApiAttachedPluginsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListApiAttachedPluginsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_response.go
new file mode 100644
index 00000000..9e068415
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_attached_plugins_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListApiAttachedPluginsResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 绑定API的插件列表。
+ Plugins *[]AttachedPluginInfo `json:"plugins,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListApiAttachedPluginsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApiAttachedPluginsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListApiAttachedPluginsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_quantities_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_quantities_v2_request.go
index 05120f14..113da38e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_quantities_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_quantities_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListApiGroupsQuantitiesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_v2_request.go
index 9e7995b9..ca1a8132 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_groups_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApiGroupsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API分组编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_quantities_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_quantities_v2_request.go
index 26f07a5b..75c3b167 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_quantities_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_quantities_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListApiQuantitiesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_runtime_definition_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_runtime_definition_v2_request.go
index ffab1fea..d6c79b6d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_runtime_definition_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_runtime_definition_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListApiRuntimeDefinitionV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_version_detail_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_version_detail_v2_request.go
index 5262c22d..5d60a07f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_version_detail_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_version_detail_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListApiVersionDetailV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API版本的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_versions_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_versions_v2_request.go
index 5e9cf34c..604f4ff1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_versions_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_api_versions_v2_request.go
@@ -9,18 +9,18 @@ import (
// Request Object
type ListApiVersionsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
+ // API的编号
+ ApiId string `json:"api_id"`
+
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
- // API的编号
- ApiId string `json:"api_id"`
-
// 环境的编号
EnvId *string `json:"env_id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_acl_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_acl_policy_v2_request.go
index d595a470..49521e2f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_acl_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_acl_policy_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisBindedToAclPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// ACL编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_app_v2_request.go
index e72b6274..00d1b576 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_app_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisBindedToAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_request_throttling_policy_v2_request.go
index 648a232d..ac15f5dd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_request_throttling_policy_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisBindedToRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 流控策略编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_signature_key_v2_request.go
index 5fb12367..4f60cf13 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_binded_to_signature_key_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisBindedToSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 签名密钥编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_not_bound_with_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_not_bound_with_signature_key_v2_request.go
index 6c115e3e..f2fa2abd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_not_bound_with_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_not_bound_with_signature_key_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisNotBoundWithSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 签名密钥编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_acl_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_acl_policy_v2_request.go
index a48a2677..eb460763 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_acl_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_acl_policy_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisUnbindedToAclPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// ACL策略编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_app_v2_request.go
index 7449ebaf..7861ae60 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_app_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisUnbindedToAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 应用id
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_request_throttling_policy_v2_request.go
index f6328f61..8be080ab 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_unbinded_to_request_throttling_policy_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisUnbindedToRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 流控策略编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_v2_request.go
index 71f366f4..9499f070 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apis_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListApisV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_codes_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_codes_v2_request.go
index 4fb2ad7e..b9d40880 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_codes_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_codes_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListAppCodesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
@@ -18,7 +18,7 @@ type ListAppCodesV2Request struct {
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_quantities_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_quantities_v2_request.go
index 44b3d58b..f56bf50f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_quantities_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_app_quantities_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListAppQuantitiesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_binded_to_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_binded_to_api_v2_request.go
index 4d3bdb96..9860b1d9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_binded_to_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_binded_to_api_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListAppsBindedToApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_v2_request.go
index 6ef3a416..d255fe86 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_apps_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListAppsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// APP编号
@@ -30,7 +30,7 @@ type ListAppsV2Request struct {
// APP的KEY
AppKey *string `json:"app_key,omitempty"`
- // APP的创建者。 - USER:用户自行创建 - MARKET:云市场分配
+ // APP的创建者。 - USER:用户自行创建 - MARKET:[云商店分配](tag:hws)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm,hws_hk)
Creator *string `json:"creator,omitempty"`
// 指定需要精确匹配查找的参数名称,目前仅支持name
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_request.go
new file mode 100644
index 00000000..d0598a2a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAttachedDomainsV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 独立域名
+ UrlDomain *string `json:"url_domain,omitempty"`
+}
+
+func (o ListAttachedDomainsV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAttachedDomainsV2Request struct{}"
+ }
+
+ return strings.Join([]string{"ListAttachedDomainsV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_response.go
new file mode 100644
index 00000000..b0f6b41c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_attached_domains_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAttachedDomainsV2Response struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 已绑定域名集合
+ BoundDomains *[]UrlDomainRefInfo `json:"bound_domains,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAttachedDomainsV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAttachedDomainsV2Response struct{}"
+ }
+
+ return strings.Join([]string{"ListAttachedDomainsV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_backend_instances_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_backend_instances_v2_request.go
index f30f5ab1..5a1edbc0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_backend_instances_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_backend_instances_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListBackendInstancesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
@@ -18,11 +18,20 @@ type ListBackendInstancesV2Request struct {
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 云服务器的名称
Name *string `json:"name,omitempty"`
+
+ // 后端服务器组名称。
+ MemberGroupName *string `json:"member_group_name,omitempty"`
+
+ // 后端服务器组编号
+ MemberGroupId *string `json:"member_group_id,omitempty"`
+
+ // 指定需要精确匹配查找的参数名称,多个参数需要支持精确匹配时参数之间使用“,”隔开。 目前支持name,member_group_name。
+ PreciseSearch *string `json:"precise_search,omitempty"`
}
func (o ListBackendInstancesV2Request) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_request.go
new file mode 100644
index 00000000..dbcbecc2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_request.go
@@ -0,0 +1,86 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListCertificatesV2Request struct {
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书域名
+ CommonName *string `json:"common_name,omitempty"`
+
+ // 证书签名算法
+ SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`
+
+ // 证书可见范围
+ Type *ListCertificatesV2RequestType `json:"type,omitempty"`
+
+ // 证书所属实例ID
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ListCertificatesV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCertificatesV2Request struct{}"
+ }
+
+ return strings.Join([]string{"ListCertificatesV2Request", string(data)}, " ")
+}
+
+type ListCertificatesV2RequestType struct {
+ value string
+}
+
+type ListCertificatesV2RequestTypeEnum struct {
+ INSTANCE ListCertificatesV2RequestType
+ GLOBAL ListCertificatesV2RequestType
+}
+
+func GetListCertificatesV2RequestTypeEnum() ListCertificatesV2RequestTypeEnum {
+ return ListCertificatesV2RequestTypeEnum{
+ INSTANCE: ListCertificatesV2RequestType{
+ value: "instance",
+ },
+ GLOBAL: ListCertificatesV2RequestType{
+ value: "global",
+ },
+ }
+}
+
+func (c ListCertificatesV2RequestType) Value() string {
+ return c.value
+}
+
+func (c ListCertificatesV2RequestType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListCertificatesV2RequestType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_response.go
new file mode 100644
index 00000000..082b2878
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_certificates_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListCertificatesV2Response struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 证书基本内容
+ Certs *[]CertBase `json:"certs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListCertificatesV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCertificatesV2Response struct{}"
+ }
+
+ return strings.Join([]string{"ListCertificatesV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_custom_authorizers_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_custom_authorizers_v2_request.go
index 201fc74a..2b0547c8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_custom_authorizers_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_custom_authorizers_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListCustomAuthorizersV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environment_variables_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environment_variables_v2_request.go
index b20d6d3b..a9911fc8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environment_variables_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environment_variables_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListEnvironmentVariablesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API分组编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environments_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environments_v2_request.go
index d30223be..520a7d7e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environments_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_environments_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListEnvironmentsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 环境名称
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_features_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_features_v2_request.go
index 2a9011f4..79efa903 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_features_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_features_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListFeaturesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_request.go
index 5620a462..d1c39685 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListGatewayResponsesV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
@@ -18,7 +18,7 @@ type ListGatewayResponsesV2Request struct {
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_response.go
index 9a1ac4e5..29c6c55a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_gateway_responses_v2_response.go
@@ -16,8 +16,8 @@ type ListGatewayResponsesV2Response struct {
Total int64 `json:"total"`
// 响应列表
- Responses *[]ResponseInfoResp `json:"responses,omitempty"`
- HttpStatusCode int `json:"-"`
+ Responses *[]ResponsesInfo `json:"responses,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ListGatewayResponsesV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_configs_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_configs_v2_request.go
index 201c95b7..e56c12e9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_configs_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_configs_v2_request.go
@@ -12,7 +12,7 @@ type ListInstanceConfigsV2Request struct {
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_request.go
new file mode 100644
index 00000000..6c6012ff
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListInstanceTagsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ListInstanceTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_response.go
new file mode 100644
index 00000000..0344f2ec
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instance_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListInstanceTagsResponse struct {
+
+ // 实例绑定的标签列表
+ Tags *[]TmsKeyValue `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListInstanceTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instances_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instances_v2_request.go
index dc7796b3..fade9869 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instances_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_instances_v2_request.go
@@ -15,7 +15,7 @@ type ListInstancesV2Request struct {
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 实例编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_api_statistics_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_api_statistics_v2_request.go
index 3e735da9..def513dc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_api_statistics_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_api_statistics_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListLatelyApiStatisticsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_group_statistics_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_group_statistics_v2_request.go
index 74d94de4..adf9d14a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_group_statistics_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_lately_group_statistics_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListLatelyGroupStatisticsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_request.go
new file mode 100644
index 00000000..2ece8fa8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListMemberGroupsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 字典编码。 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
+
+ // VPC通道后端云服务组的名称
+ MemberGroupName *string `json:"member_group_name,omitempty"`
+
+ // 指定需要精确匹配查找的参数名称,多个参数需要支持精确匹配时参数之间使用“,”隔开。 当前支持member_group_name。
+ PreciseSearch *string `json:"precise_search,omitempty"`
+}
+
+func (o ListMemberGroupsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMemberGroupsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListMemberGroupsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_response.go
new file mode 100644
index 00000000..51886bae
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_member_groups_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListMemberGroupsResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // VPC通道后端服务器组列表
+ MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListMemberGroupsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMemberGroupsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListMemberGroupsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_request.go
new file mode 100644
index 00000000..c29fd27e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_request.go
@@ -0,0 +1,251 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListMetricDataRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 指标维度 - inbound_eip:入口公网带宽,仅ELB类型实例支持 - outbound_eip:出口公网带宽
+ Dim ListMetricDataRequestDim `json:"dim"`
+
+ // 指标名称 - upstream_bandwidth:出网带宽 - downstream_bandwidth:入网带宽 - upstream_bandwidth_usage:出网带宽使用率 - downstream_bandwidth_usage:入网带宽使用率 - up_stream:出网流量 - down_stream:入网流量
+ MetricName ListMetricDataRequestMetricName `json:"metric_name"`
+
+ // 查询数据起始时间,UNIX时间戳,单位毫秒。
+ From string `json:"from"`
+
+ // 查询数据截止时间UNIX时间戳,单位毫秒。from必须小于to。
+ To string `json:"to"`
+
+ // 监控数据粒度。 - 1:实时数据 - 300:5分钟粒度 - 1200:20分钟粒度 - 3600:1小时粒度 - 14400:4小时粒度 - 86400:1天粒度
+ Period ListMetricDataRequestPeriod `json:"period"`
+
+ // 数据聚合方式。 - average:聚合周期内指标数据的平均值。 - max:聚合周期内指标数据的最大值。 - min:聚合周期内指标数据的最小值。 - sum:聚合周期内指标数据的求和值。 - variance:聚合周期内指标数据的方差。
+ Filter ListMetricDataRequestFilter `json:"filter"`
+}
+
+func (o ListMetricDataRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMetricDataRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListMetricDataRequest", string(data)}, " ")
+}
+
+type ListMetricDataRequestDim struct {
+ value string
+}
+
+type ListMetricDataRequestDimEnum struct {
+ INBOUND_EIP ListMetricDataRequestDim
+ OUTBOUND_EIP ListMetricDataRequestDim
+}
+
+func GetListMetricDataRequestDimEnum() ListMetricDataRequestDimEnum {
+ return ListMetricDataRequestDimEnum{
+ INBOUND_EIP: ListMetricDataRequestDim{
+ value: "inbound_eip",
+ },
+ OUTBOUND_EIP: ListMetricDataRequestDim{
+ value: "outbound_eip",
+ },
+ }
+}
+
+func (c ListMetricDataRequestDim) Value() string {
+ return c.value
+}
+
+func (c ListMetricDataRequestDim) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListMetricDataRequestDim) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ListMetricDataRequestMetricName struct {
+ value string
+}
+
+type ListMetricDataRequestMetricNameEnum struct {
+ UPSTREAM_BANDWIDTH ListMetricDataRequestMetricName
+ DOWNSTREAM_BANDWIDTH ListMetricDataRequestMetricName
+ UPSTREAM_BANDWIDTH_USAGE ListMetricDataRequestMetricName
+ DOWNSTREAM_BANDWIDTH_USAGE ListMetricDataRequestMetricName
+ UP_STREAM ListMetricDataRequestMetricName
+ DOWN_STREAM ListMetricDataRequestMetricName
+}
+
+func GetListMetricDataRequestMetricNameEnum() ListMetricDataRequestMetricNameEnum {
+ return ListMetricDataRequestMetricNameEnum{
+ UPSTREAM_BANDWIDTH: ListMetricDataRequestMetricName{
+ value: "upstream_bandwidth",
+ },
+ DOWNSTREAM_BANDWIDTH: ListMetricDataRequestMetricName{
+ value: "downstream_bandwidth",
+ },
+ UPSTREAM_BANDWIDTH_USAGE: ListMetricDataRequestMetricName{
+ value: "upstream_bandwidth_usage",
+ },
+ DOWNSTREAM_BANDWIDTH_USAGE: ListMetricDataRequestMetricName{
+ value: "downstream_bandwidth_usage",
+ },
+ UP_STREAM: ListMetricDataRequestMetricName{
+ value: "up_stream",
+ },
+ DOWN_STREAM: ListMetricDataRequestMetricName{
+ value: "down_stream",
+ },
+ }
+}
+
+func (c ListMetricDataRequestMetricName) Value() string {
+ return c.value
+}
+
+func (c ListMetricDataRequestMetricName) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListMetricDataRequestMetricName) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ListMetricDataRequestPeriod struct {
+ value int32
+}
+
+type ListMetricDataRequestPeriodEnum struct {
+ E_1 ListMetricDataRequestPeriod
+ E_300 ListMetricDataRequestPeriod
+ E_1200 ListMetricDataRequestPeriod
+ E_3600 ListMetricDataRequestPeriod
+ E_14400 ListMetricDataRequestPeriod
+ E_86400 ListMetricDataRequestPeriod
+}
+
+func GetListMetricDataRequestPeriodEnum() ListMetricDataRequestPeriodEnum {
+ return ListMetricDataRequestPeriodEnum{
+ E_1: ListMetricDataRequestPeriod{
+ value: 1,
+ }, E_300: ListMetricDataRequestPeriod{
+ value: 300,
+ }, E_1200: ListMetricDataRequestPeriod{
+ value: 1200,
+ }, E_3600: ListMetricDataRequestPeriod{
+ value: 3600,
+ }, E_14400: ListMetricDataRequestPeriod{
+ value: 14400,
+ }, E_86400: ListMetricDataRequestPeriod{
+ value: 86400,
+ },
+ }
+}
+
+func (c ListMetricDataRequestPeriod) Value() int32 {
+ return c.value
+}
+
+func (c ListMetricDataRequestPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListMetricDataRequestPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
+
+type ListMetricDataRequestFilter struct {
+ value string
+}
+
+type ListMetricDataRequestFilterEnum struct {
+ AVERAGE ListMetricDataRequestFilter
+ MAX ListMetricDataRequestFilter
+ MIN ListMetricDataRequestFilter
+ SUM ListMetricDataRequestFilter
+ VARIANCE ListMetricDataRequestFilter
+}
+
+func GetListMetricDataRequestFilterEnum() ListMetricDataRequestFilterEnum {
+ return ListMetricDataRequestFilterEnum{
+ AVERAGE: ListMetricDataRequestFilter{
+ value: "average",
+ },
+ MAX: ListMetricDataRequestFilter{
+ value: "max",
+ },
+ MIN: ListMetricDataRequestFilter{
+ value: "min",
+ },
+ SUM: ListMetricDataRequestFilter{
+ value: "sum",
+ },
+ VARIANCE: ListMetricDataRequestFilter{
+ value: "variance",
+ },
+ }
+}
+
+func (c ListMetricDataRequestFilter) Value() string {
+ return c.value
+}
+
+func (c ListMetricDataRequestFilter) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListMetricDataRequestFilter) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_response.go
new file mode 100644
index 00000000..9ae1c5b9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_metric_data_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListMetricDataResponse struct {
+
+ // 指标数据列表
+ Datapoints *[]MetricData `json:"datapoints,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListMetricDataResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMetricDataResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListMetricDataResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_request.go
new file mode 100644
index 00000000..f22bb0d1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_request.go
@@ -0,0 +1,50 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListPluginAttachableApisRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+
+ // 发布的环境编号
+ EnvId *string `json:"env_id,omitempty"`
+
+ // API名称
+ ApiName *string `json:"api_name,omitempty"`
+
+ // API编号
+ ApiId *string `json:"api_id,omitempty"`
+
+ // 分组编号
+ GroupId *string `json:"group_id,omitempty"`
+
+ // 请求方法
+ ReqMethod *string `json:"req_method,omitempty"`
+
+ // 请求路径
+ ReqUri *string `json:"req_uri,omitempty"`
+}
+
+func (o ListPluginAttachableApisRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginAttachableApisRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginAttachableApisRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_response.go
new file mode 100644
index 00000000..39450b5f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attachable_apis_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPluginAttachableApisResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 绑定插件的API列表。
+ Apis *[]PluginApiInfo `json:"apis,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPluginAttachableApisResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginAttachableApisResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginAttachableApisResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_request.go
new file mode 100644
index 00000000..08d89845
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_request.go
@@ -0,0 +1,50 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListPluginAttachedApisRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+
+ // 发布的环境编号
+ EnvId *string `json:"env_id,omitempty"`
+
+ // API名称
+ ApiName *string `json:"api_name,omitempty"`
+
+ // API编号
+ ApiId *string `json:"api_id,omitempty"`
+
+ // 分组编号
+ GroupId *string `json:"group_id,omitempty"`
+
+ // 请求方法
+ ReqMethod *string `json:"req_method,omitempty"`
+
+ // 请求路径
+ ReqUri *string `json:"req_uri,omitempty"`
+}
+
+func (o ListPluginAttachedApisRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginAttachedApisRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginAttachedApisRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_response.go
new file mode 100644
index 00000000..9a50e9cc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugin_attached_apis_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPluginAttachedApisResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 绑定插件的API列表。
+ Apis *[]PluginApiInfo `json:"apis,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPluginAttachedApisResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginAttachedApisResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginAttachedApisResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_request.go
new file mode 100644
index 00000000..d4daecd1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_request.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListPluginsRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
+ Offset *int64 `json:"offset,omitempty"`
+
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 插件类型
+ PluginType *string `json:"plugin_type,omitempty"`
+
+ // 插件可见范围
+ PluginScope *string `json:"plugin_scope,omitempty"`
+
+ // 插件编码
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称,支持模糊查询
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 指定需要精确匹配查找的参数名称,目前支持插件名称
+ PreciseSearch *string `json:"precise_search,omitempty"`
+}
+
+func (o ListPluginsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_response.go
new file mode 100644
index 00000000..8a2874f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_plugins_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPluginsResponse struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 插件列表。
+ Plugins *[]PluginInfo `json:"plugins,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPluginsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPluginsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPluginsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_cofigs_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_cofigs_v2_request.go
index 9cceb7bb..ce92f937 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_cofigs_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_cofigs_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListProjectCofigsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_request.go
new file mode 100644
index 00000000..cf690b82
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListProjectInstanceTagsRequest struct {
+}
+
+func (o ListProjectInstanceTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectInstanceTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectInstanceTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_response.go
new file mode 100644
index 00000000..402529ea
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_project_instance_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListProjectInstanceTagsResponse struct {
+
+ // 项目下所有实例绑定的标签列表
+ Tags *[]TmsKeyValues `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListProjectInstanceTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectInstanceTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectInstanceTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policies_binded_to_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policies_binded_to_api_v2_request.go
index e71a841a..eeef4325 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policies_binded_to_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policies_binded_to_api_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListRequestThrottlingPoliciesBindedToApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policy_v2_request.go
index 858bb112..6ff596aa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_request_throttling_policy_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 流控策略编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_binded_to_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_binded_to_api_v2_request.go
index 01aee826..7163dbc0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_binded_to_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_binded_to_api_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListSignatureKeysBindedToApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_v2_request.go
index 4cfa174a..8a1ecab2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_signature_keys_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListSignatureKeysV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// 签名密钥编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_special_throttling_configurations_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_special_throttling_configurations_v2_request.go
index b133ecc2..7784de9e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_special_throttling_configurations_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_special_throttling_configurations_v2_request.go
@@ -9,19 +9,19 @@ import (
// Request Object
type ListSpecialThrottlingConfigurationsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
+ // 流控策略的编号
+ ThrottleId string `json:"throttle_id"`
+
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
- // 流控策略的编号
- ThrottleId string `json:"throttle_id"`
-
- // 特殊流控类型:APP, USER
+ // 特殊流控类型:APP,USER
ObjectType *string `json:"object_type,omitempty"`
// 筛选的特殊应用名称
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_request.go
index 7b145546..c5448762 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListTagsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_response.go
index 7b289eae..dc984388 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_tags_v2_response.go
@@ -16,7 +16,7 @@ type ListTagsV2Response struct {
Total int64 `json:"total"`
// 标签列表
- Responses *[]string `json:"responses,omitempty"`
+ Tags *[]string `json:"tags,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_vpc_channels_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_vpc_channels_v2_request.go
index 91cbd49b..fa9cd635 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_vpc_channels_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_list_vpc_channels_v2_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListVpcChannelsV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 偏移量,表示从此偏移量开始查询,偏移量小于0时,自动转换为0
Offset *int64 `json:"offset,omitempty"`
- // 每页显示的条目数量
+ // 每页显示的条目数量,条目数量小于等于0时,自动转换为20,条目数量大于500时,自动转换为500
Limit *int32 `json:"limit,omitempty"`
// VPC通道的编号
@@ -24,8 +24,23 @@ type ListVpcChannelsV2Request struct {
// VPC通道的名称
Name *string `json:"name,omitempty"`
- // 指定需要精确匹配查找的参数名称,目前仅支持name
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
+
+ // 指定需要精确匹配查找的参数名称,多个参数需要支持精确匹配时参数之间使用“,”隔开。 目前支持name,member_group_name。
PreciseSearch *string `json:"precise_search,omitempty"`
+
+ // 后端服务地址。默认精确查询,不支持模糊查询。
+ MemberHost *string `json:"member_host,omitempty"`
+
+ // 后端服务器端口
+ MemberPort *int32 `json:"member_port,omitempty"`
+
+ // 后端服务器组名称
+ MemberGroupName *string `json:"member_group_name,omitempty"`
+
+ // 后端服务器组编号
+ MemberGroupId *string `json:"member_group_id,omitempty"`
}
func (o ListVpcChannelsV2Request) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_base.go
index dc5d95a3..e236248a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_base.go
@@ -20,7 +20,7 @@ type MemberBase struct {
// 是否备用节点。 开启后对应后端服务为备用节点,仅当非备用节点全部故障时工作。 实例需要升级到对应版本才支持此功能,若不支持请联系技术支持。
IsBackup *bool `json:"is_backup,omitempty"`
- // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。 暂不支持
+ // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。
MemberGroupName *string `json:"member_group_name,omitempty"`
// 后端服务器状态 - 1:可用 - 2:不可用
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create.go
index dafaebb8..8bb067b6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create.go
@@ -19,6 +19,15 @@ type MemberGroupCreate struct {
// VPC通道后端服务器组的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
DictCode *string `json:"dict_code,omitempty"`
+
+ // VPC通道后端服务器组的版本,仅VPC通道类型为微服务时支持。
+ MicroserviceVersion *string `json:"microservice_version,omitempty"`
+
+ // VPC通道后端服务器组的端口号,仅VPC通道类型为微服务时支持。端口号为0时后端服务器组下的所有地址沿用原来负载端口继承逻辑。
+ MicroservicePort *int32 `json:"microservice_port,omitempty"`
+
+ // VPC通道后端服务器组的标签,仅VPC通道类型为微服务时支持。
+ MicroserviceLabels *[]MicroserviceLabel `json:"microservice_labels,omitempty"`
}
func (o MemberGroupCreate) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create_batch.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create_batch.go
new file mode 100644
index 00000000..e83dc35b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_create_batch.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type MemberGroupCreateBatch struct {
+
+ // 后端服务器组列表
+ MemberGroups *[]MemberGroupCreate `json:"member_groups,omitempty"`
+}
+
+func (o MemberGroupCreateBatch) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MemberGroupCreateBatch struct{}"
+ }
+
+ return strings.Join([]string{"MemberGroupCreateBatch", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_info.go
index b4f3ec76..305c15cc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_group_info.go
@@ -21,6 +21,15 @@ type MemberGroupInfo struct {
// VPC通道后端服务器组的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
DictCode *string `json:"dict_code,omitempty"`
+ // VPC通道后端服务器组的版本,仅VPC通道类型为微服务时支持。
+ MicroserviceVersion *string `json:"microservice_version,omitempty"`
+
+ // VPC通道后端服务器组的端口号,仅VPC通道类型为微服务时支持。端口号为0时后端服务器组下的所有地址沿用原来负载端口继承逻辑。
+ MicroservicePort *int32 `json:"microservice_port,omitempty"`
+
+ // VPC通道后端服务器组的标签,仅VPC通道类型为微服务时支持。
+ MicroserviceLabels *[]MicroserviceLabel `json:"microservice_labels,omitempty"`
+
// VPC通道后端服务器组编号
MemberGroupId *string `json:"member_group_id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_info.go
index c8933bec..643ecd63 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_member_info.go
@@ -20,7 +20,7 @@ type MemberInfo struct {
// 是否备用节点。 开启后对应后端服务为备用节点,仅当非备用节点全部故障时工作。 实例需要升级到对应版本才支持此功能,若不支持请联系技术支持。
IsBackup *bool `json:"is_backup,omitempty"`
- // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。 暂不支持
+ // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。
MemberGroupName *string `json:"member_group_name,omitempty"`
// 后端服务器状态 - 1:可用 - 2:不可用
@@ -29,10 +29,10 @@ type MemberInfo struct {
// 后端服务器端口
Port *int32 `json:"port,omitempty"`
- // 后端云服务器的编号。 后端实例类型为instance时生效,支持英文,数字,“-”,“_”,1 ~ 64字符。
+ // 后端云服务器的编号。 后端实例类型为ecs时必填,支持英文,数字,“-”,“_”,1 ~ 64字符。
EcsId *string `json:"ecs_id,omitempty"`
- // 后端云服务器的名称。 后端实例类型为instance时生效,支持汉字,英文,数字,“-”,“_”,“.”,1 ~ 64字符。
+ // 后端云服务器的名称。 后端实例类型为ecs时必填,支持汉字,英文,数字,“-”,“_”,“.”,1 ~ 64字符。
EcsName *string `json:"ecs_name,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_members_batch_enable_or_disable.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_members_batch_enable_or_disable.go
new file mode 100644
index 00000000..dcec2506
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_members_batch_enable_or_disable.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type MembersBatchEnableOrDisable struct {
+
+ // 后端服务器编号列表。
+ MemberIds *[]string `json:"member_ids,omitempty"`
+}
+
+func (o MembersBatchEnableOrDisable) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MembersBatchEnableOrDisable struct{}"
+ }
+
+ return strings.Join([]string{"MembersBatchEnableOrDisable", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_metric_data.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_metric_data.go
new file mode 100644
index 00000000..233e0e52
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_metric_data.go
@@ -0,0 +1,40 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type MetricData struct {
+
+ // 聚合周期内指标数据的平均值,仅当请求参数filter字段值为average时支持。
+ Average *int32 `json:"average,omitempty"`
+
+ // 聚合周期内指标数据的最大值,仅当请求参数filter字段值为max时支持。
+ Max *int32 `json:"max,omitempty"`
+
+ // 聚合周期内指标数据的最小值,仅当请求参数filter字段值为min时支持。
+ Min *int32 `json:"min,omitempty"`
+
+ // 聚合周期内指标数据的求和值,仅当请求参数filter字段值为sum时支持。
+ Sum *int32 `json:"sum,omitempty"`
+
+ // 聚合周期内指标数据的方差,仅当请求参数filter字段值为variance时支持。
+ Variance *int32 `json:"variance,omitempty"`
+
+ // 指标采集时间,UNIX时间戳,单位毫秒。
+ Timestamp *int32 `json:"timestamp,omitempty"`
+
+ // 指标单位。
+ Unit *string `json:"unit,omitempty"`
+}
+
+func (o MetricData) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MetricData struct{}"
+ }
+
+ return strings.Join([]string{"MetricData", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_create.go
new file mode 100644
index 00000000..80f1d95b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_create.go
@@ -0,0 +1,72 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 微服务详情。
+type MicroServiceCreate struct {
+
+ // 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎
+ ServiceType *MicroServiceCreateServiceType `json:"service_type,omitempty"`
+
+ CseInfo *MicroServiceInfoCseBase `json:"cse_info,omitempty"`
+
+ CceInfo *MicroServiceInfoCceBase `json:"cce_info,omitempty"`
+}
+
+func (o MicroServiceCreate) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceCreate struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceCreate", string(data)}, " ")
+}
+
+type MicroServiceCreateServiceType struct {
+ value string
+}
+
+type MicroServiceCreateServiceTypeEnum struct {
+ CSE MicroServiceCreateServiceType
+ CCE MicroServiceCreateServiceType
+}
+
+func GetMicroServiceCreateServiceTypeEnum() MicroServiceCreateServiceTypeEnum {
+ return MicroServiceCreateServiceTypeEnum{
+ CSE: MicroServiceCreateServiceType{
+ value: "CSE",
+ },
+ CCE: MicroServiceCreateServiceType{
+ value: "CCE",
+ },
+ }
+}
+
+func (c MicroServiceCreateServiceType) Value() string {
+ return c.value
+}
+
+func (c MicroServiceCreateServiceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroServiceCreateServiceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info.go
new file mode 100644
index 00000000..cb5c1e97
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info.go
@@ -0,0 +1,83 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// 微服务的响应对象
+type MicroServiceInfo struct {
+
+ // 微服务编号
+ Id *string `json:"id,omitempty"`
+
+ // 实例编号
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 微服务类型: - CSE:CSE微服务注册中心 - CCE:CCE云容器引擎
+ ServiceType *MicroServiceInfoServiceType `json:"service_type,omitempty"`
+
+ CseInfo *MicroServiceInfoCse `json:"cse_info,omitempty"`
+
+ CceInfo *MicroServiceInfoCce `json:"cce_info,omitempty"`
+
+ // 微服务更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
+ // 微服务创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+}
+
+func (o MicroServiceInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfo struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfo", string(data)}, " ")
+}
+
+type MicroServiceInfoServiceType struct {
+ value string
+}
+
+type MicroServiceInfoServiceTypeEnum struct {
+ CSE MicroServiceInfoServiceType
+ CCE MicroServiceInfoServiceType
+}
+
+func GetMicroServiceInfoServiceTypeEnum() MicroServiceInfoServiceTypeEnum {
+ return MicroServiceInfoServiceTypeEnum{
+ CSE: MicroServiceInfoServiceType{
+ value: "CSE",
+ },
+ CCE: MicroServiceInfoServiceType{
+ value: "CCE",
+ },
+ }
+}
+
+func (c MicroServiceInfoServiceType) Value() string {
+ return c.value
+}
+
+func (c MicroServiceInfoServiceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroServiceInfoServiceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce.go
new file mode 100644
index 00000000..8e091724
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce.go
@@ -0,0 +1,84 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// CCE微服务详细信息
+type MicroServiceInfoCce struct {
+
+ // 云容器引擎集群编号
+ ClusterId string `json:"cluster_id"`
+
+ // 命名空间
+ Namespace string `json:"namespace"`
+
+ // 工作负载类型 - deployment:无状态负载 - statefulset:有状态负载 - daemonset:守护进程集
+ WorkloadType MicroServiceInfoCceWorkloadType `json:"workload_type"`
+
+ // APP名称
+ AppName string `json:"app_name"`
+
+ // 云容器引擎集群名称
+ ClusterName *string `json:"cluster_name,omitempty"`
+}
+
+func (o MicroServiceInfoCce) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCce struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCce", string(data)}, " ")
+}
+
+type MicroServiceInfoCceWorkloadType struct {
+ value string
+}
+
+type MicroServiceInfoCceWorkloadTypeEnum struct {
+ DEPLOYMENT MicroServiceInfoCceWorkloadType
+ STATEFULSET MicroServiceInfoCceWorkloadType
+ DAEMONSET MicroServiceInfoCceWorkloadType
+}
+
+func GetMicroServiceInfoCceWorkloadTypeEnum() MicroServiceInfoCceWorkloadTypeEnum {
+ return MicroServiceInfoCceWorkloadTypeEnum{
+ DEPLOYMENT: MicroServiceInfoCceWorkloadType{
+ value: "deployment",
+ },
+ STATEFULSET: MicroServiceInfoCceWorkloadType{
+ value: "statefulset",
+ },
+ DAEMONSET: MicroServiceInfoCceWorkloadType{
+ value: "daemonset",
+ },
+ }
+}
+
+func (c MicroServiceInfoCceWorkloadType) Value() string {
+ return c.value
+}
+
+func (c MicroServiceInfoCceWorkloadType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroServiceInfoCceWorkloadType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_base.go
new file mode 100644
index 00000000..28bed1fd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_base.go
@@ -0,0 +1,81 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// CCE云容器引擎详细信息,service_type为CCE时必填
+type MicroServiceInfoCceBase struct {
+
+ // 云容器引擎集群编号
+ ClusterId string `json:"cluster_id"`
+
+ // 命名空间
+ Namespace string `json:"namespace"`
+
+ // 工作负载类型 - deployment:无状态负载 - statefulset:有状态负载 - daemonset:守护进程集
+ WorkloadType MicroServiceInfoCceBaseWorkloadType `json:"workload_type"`
+
+ // APP名称
+ AppName string `json:"app_name"`
+}
+
+func (o MicroServiceInfoCceBase) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCceBase struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCceBase", string(data)}, " ")
+}
+
+type MicroServiceInfoCceBaseWorkloadType struct {
+ value string
+}
+
+type MicroServiceInfoCceBaseWorkloadTypeEnum struct {
+ DEPLOYMENT MicroServiceInfoCceBaseWorkloadType
+ STATEFULSET MicroServiceInfoCceBaseWorkloadType
+ DAEMONSET MicroServiceInfoCceBaseWorkloadType
+}
+
+func GetMicroServiceInfoCceBaseWorkloadTypeEnum() MicroServiceInfoCceBaseWorkloadTypeEnum {
+ return MicroServiceInfoCceBaseWorkloadTypeEnum{
+ DEPLOYMENT: MicroServiceInfoCceBaseWorkloadType{
+ value: "deployment",
+ },
+ STATEFULSET: MicroServiceInfoCceBaseWorkloadType{
+ value: "statefulset",
+ },
+ DAEMONSET: MicroServiceInfoCceBaseWorkloadType{
+ value: "daemonset",
+ },
+ }
+}
+
+func (c MicroServiceInfoCceBaseWorkloadType) Value() string {
+ return c.value
+}
+
+func (c MicroServiceInfoCceBaseWorkloadType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroServiceInfoCceBaseWorkloadType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_create.go
new file mode 100644
index 00000000..98523ed1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cce_create.go
@@ -0,0 +1,90 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// CCE云容器引擎详细信息,service_type为CCE时必填
+type MicroServiceInfoCceCreate struct {
+
+ // 云容器引擎集群编号
+ ClusterId string `json:"cluster_id"`
+
+ // 命名空间
+ Namespace string `json:"namespace"`
+
+ // 工作负载类型 - deployment:无状态负载 - statefulset:有状态负载 - daemonset:守护进程集
+ WorkloadType MicroServiceInfoCceCreateWorkloadType `json:"workload_type"`
+
+ // APP名称
+ AppName string `json:"app_name"`
+
+ // 工作负载的版本
+ Version *string `json:"version,omitempty"`
+
+ // 工作负载的监听端口号
+ Port int32 `json:"port"`
+
+ // 工作负载的标签列表。
+ Labels *[]MicroserviceLabel `json:"labels,omitempty"`
+}
+
+func (o MicroServiceInfoCceCreate) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCceCreate struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCceCreate", string(data)}, " ")
+}
+
+type MicroServiceInfoCceCreateWorkloadType struct {
+ value string
+}
+
+type MicroServiceInfoCceCreateWorkloadTypeEnum struct {
+ DEPLOYMENT MicroServiceInfoCceCreateWorkloadType
+ STATEFULSET MicroServiceInfoCceCreateWorkloadType
+ DAEMONSET MicroServiceInfoCceCreateWorkloadType
+}
+
+func GetMicroServiceInfoCceCreateWorkloadTypeEnum() MicroServiceInfoCceCreateWorkloadTypeEnum {
+ return MicroServiceInfoCceCreateWorkloadTypeEnum{
+ DEPLOYMENT: MicroServiceInfoCceCreateWorkloadType{
+ value: "deployment",
+ },
+ STATEFULSET: MicroServiceInfoCceCreateWorkloadType{
+ value: "statefulset",
+ },
+ DAEMONSET: MicroServiceInfoCceCreateWorkloadType{
+ value: "daemonset",
+ },
+ }
+}
+
+func (c MicroServiceInfoCceCreateWorkloadType) Value() string {
+ return c.value
+}
+
+func (c MicroServiceInfoCceCreateWorkloadType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroServiceInfoCceCreateWorkloadType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse.go
new file mode 100644
index 00000000..e55d95f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// CSE微服务详细信息
+type MicroServiceInfoCse struct {
+
+ // 微服务引擎编号
+ EngineId string `json:"engine_id"`
+
+ // 微服务编号
+ ServiceId string `json:"service_id"`
+
+ // 微服务引擎名称
+ EngineName *string `json:"engine_name,omitempty"`
+
+ // 微服务名称
+ ServiceName *string `json:"service_name,omitempty"`
+
+ // 注册中心地址
+ RegisterAddress *string `json:"register_address,omitempty"`
+
+ // 微服务所属的应用
+ CseAppId *string `json:"cse_app_id,omitempty"`
+
+ // 微服务的版本,已废弃,通过后端服务器组中的版本承载。
+ Version *string `json:"version,omitempty"`
+}
+
+func (o MicroServiceInfoCse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCse struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_base.go
new file mode 100644
index 00000000..46d93033
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_base.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// CSE微服务详细信息,service_type为CSE时必填
+type MicroServiceInfoCseBase struct {
+
+ // 微服务引擎编号
+ EngineId string `json:"engine_id"`
+
+ // 微服务编号
+ ServiceId string `json:"service_id"`
+}
+
+func (o MicroServiceInfoCseBase) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCseBase struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCseBase", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_create.go
new file mode 100644
index 00000000..2c818737
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_micro_service_info_cse_create.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// CSE微服务详细信息,service_type为CSE时必填
+type MicroServiceInfoCseCreate struct {
+
+ // 微服务引擎编号
+ EngineId string `json:"engine_id"`
+
+ // 微服务编号
+ ServiceId string `json:"service_id"`
+
+ // 微服务版本
+ Version string `json:"version"`
+}
+
+func (o MicroServiceInfoCseCreate) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroServiceInfoCseCreate struct{}"
+ }
+
+ return strings.Join([]string{"MicroServiceInfoCseCreate", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_api_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_api_create.go
new file mode 100644
index 00000000..9f435962
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_api_create.go
@@ -0,0 +1,143 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 导入微服务创建单个API的对象
+type MicroserviceApiCreate struct {
+
+ // API名称。 支持汉字、英文、数字、中划线、下划线、点、斜杠、中英文格式下的小括号和冒号、中文格式下的顿号,且只能以英文、汉字和数字开头。 > 中文字符必须为UTF-8或者unicode编码。
+ Name *string `json:"name,omitempty"`
+
+ // API的请求方式
+ ReqMethod *MicroserviceApiCreateReqMethod `json:"req_method,omitempty"`
+
+ // 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 /apic/health_check为APIG预置的健康检查路径,当req_method=GET时不支持req_uri=/apic/health_check。 > 需要服从URI规范。
+ ReqUri string `json:"req_uri"`
+
+ // API的匹配方式 - SWA:前缀匹配 - NORMAL:正常匹配(绝对匹配) 默认:NORMAL
+ MatchMode *MicroserviceApiCreateMatchMode `json:"match_mode,omitempty"`
+}
+
+func (o MicroserviceApiCreate) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroserviceApiCreate struct{}"
+ }
+
+ return strings.Join([]string{"MicroserviceApiCreate", string(data)}, " ")
+}
+
+type MicroserviceApiCreateReqMethod struct {
+ value string
+}
+
+type MicroserviceApiCreateReqMethodEnum struct {
+ GET MicroserviceApiCreateReqMethod
+ POST MicroserviceApiCreateReqMethod
+ PUT MicroserviceApiCreateReqMethod
+ DELETE MicroserviceApiCreateReqMethod
+ HEAD MicroserviceApiCreateReqMethod
+ PATCH MicroserviceApiCreateReqMethod
+ OPTIONS MicroserviceApiCreateReqMethod
+ ANY MicroserviceApiCreateReqMethod
+}
+
+func GetMicroserviceApiCreateReqMethodEnum() MicroserviceApiCreateReqMethodEnum {
+ return MicroserviceApiCreateReqMethodEnum{
+ GET: MicroserviceApiCreateReqMethod{
+ value: "GET",
+ },
+ POST: MicroserviceApiCreateReqMethod{
+ value: "POST",
+ },
+ PUT: MicroserviceApiCreateReqMethod{
+ value: "PUT",
+ },
+ DELETE: MicroserviceApiCreateReqMethod{
+ value: "DELETE",
+ },
+ HEAD: MicroserviceApiCreateReqMethod{
+ value: "HEAD",
+ },
+ PATCH: MicroserviceApiCreateReqMethod{
+ value: "PATCH",
+ },
+ OPTIONS: MicroserviceApiCreateReqMethod{
+ value: "OPTIONS",
+ },
+ ANY: MicroserviceApiCreateReqMethod{
+ value: "ANY",
+ },
+ }
+}
+
+func (c MicroserviceApiCreateReqMethod) Value() string {
+ return c.value
+}
+
+func (c MicroserviceApiCreateReqMethod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceApiCreateReqMethod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type MicroserviceApiCreateMatchMode struct {
+ value string
+}
+
+type MicroserviceApiCreateMatchModeEnum struct {
+ SWA MicroserviceApiCreateMatchMode
+ NORMAL MicroserviceApiCreateMatchMode
+}
+
+func GetMicroserviceApiCreateMatchModeEnum() MicroserviceApiCreateMatchModeEnum {
+ return MicroserviceApiCreateMatchModeEnum{
+ SWA: MicroserviceApiCreateMatchMode{
+ value: "SWA",
+ },
+ NORMAL: MicroserviceApiCreateMatchMode{
+ value: "NORMAL",
+ },
+ }
+}
+
+func (c MicroserviceApiCreateMatchMode) Value() string {
+ return c.value
+}
+
+func (c MicroserviceApiCreateMatchMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceApiCreateMatchMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_group.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_group.go
new file mode 100644
index 00000000..a9a193b6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_group.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 导入微服务的API分组信息
+type MicroserviceGroup struct {
+
+ // 指定已有的分组,为空时创建新的分组
+ GroupId *string `json:"group_id,omitempty"`
+
+ // API分组的名称,group_id为空时必填。 支持汉字、英文、数字、中划线、下划线、点、斜杠、中英文格式下的小括号和冒号、中文格式下的顿号,且只能以英文、汉字和数字开头,3-255个字符。 > 中文字符必须为UTF-8或者unicode编码。
+ GroupName *string `json:"group_name,omitempty"`
+
+ // group_id为空时必填,指定新分组所属的集成应用
+ AppId *string `json:"app_id,omitempty"`
+}
+
+func (o MicroserviceGroup) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroserviceGroup struct{}"
+ }
+
+ return strings.Join([]string{"MicroserviceGroup", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_api_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_api_resp.go
new file mode 100644
index 00000000..9ee3a5b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_api_resp.go
@@ -0,0 +1,80 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 导入的微服务API的响应对象
+type MicroserviceImportApiResp struct {
+
+ // API名称
+ Name *string `json:"name,omitempty"`
+
+ // API请求路径
+ ReqUri *string `json:"req_uri,omitempty"`
+
+ // API请求方法
+ ReqMethod *string `json:"req_method,omitempty"`
+
+ // API编号
+ Id *string `json:"id,omitempty"`
+
+ // API的匹配方式 - SWA:前缀匹配 - NORMAL:正常匹配(绝对匹配) 默认:SWA
+ MatchMode *MicroserviceImportApiRespMatchMode `json:"match_mode,omitempty"`
+}
+
+func (o MicroserviceImportApiResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroserviceImportApiResp struct{}"
+ }
+
+ return strings.Join([]string{"MicroserviceImportApiResp", string(data)}, " ")
+}
+
+type MicroserviceImportApiRespMatchMode struct {
+ value string
+}
+
+type MicroserviceImportApiRespMatchModeEnum struct {
+ SWA MicroserviceImportApiRespMatchMode
+ NORMAL MicroserviceImportApiRespMatchMode
+}
+
+func GetMicroserviceImportApiRespMatchModeEnum() MicroserviceImportApiRespMatchModeEnum {
+ return MicroserviceImportApiRespMatchModeEnum{
+ SWA: MicroserviceImportApiRespMatchMode{
+ value: "SWA",
+ },
+ NORMAL: MicroserviceImportApiRespMatchMode{
+ value: "NORMAL",
+ },
+ }
+}
+
+func (c MicroserviceImportApiRespMatchMode) Value() string {
+ return c.value
+}
+
+func (c MicroserviceImportApiRespMatchMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceImportApiRespMatchMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_req.go
new file mode 100644
index 00000000..233c469c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_import_req.go
@@ -0,0 +1,176 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 导入微服务的请求对象
+type MicroserviceImportReq struct {
+ GroupInfo *MicroserviceGroup `json:"group_info"`
+
+ // 微服务中心类型。 - CSE:CSE微服务注册中心 - CCE: CCE云容器引擎
+ ServiceType MicroserviceImportReqServiceType `json:"service_type"`
+
+ // API网关访问微服务的请求协议 - HTTP - HTTPS
+ Protocol *MicroserviceImportReqProtocol `json:"protocol,omitempty"`
+
+ // 导入的api列表
+ Apis []MicroserviceApiCreate `json:"apis"`
+
+ // APIG请求后端服务的超时时间。最大超时时间可通过实例特性backend_timeout配置修改,可修改的上限为600000,默认5000 单位:毫秒。
+ BackendTimeout *int32 `json:"backend_timeout,omitempty"`
+
+ // API的认证方式,默认无认证[,site暂不支持IAM认证。](tag:Site) - NONE:无认证 - APP:APP认证 - IAM:IAM认证
+ AuthType *MicroserviceImportReqAuthType `json:"auth_type,omitempty"`
+
+ // 是否支持跨域,默认不支持 - true:支持 - false:不支持
+ Cors *bool `json:"cors,omitempty"`
+
+ CseInfo *MicroServiceInfoCseCreate `json:"cse_info,omitempty"`
+
+ CceInfo *MicroServiceInfoCceCreate `json:"cce_info,omitempty"`
+}
+
+func (o MicroserviceImportReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroserviceImportReq struct{}"
+ }
+
+ return strings.Join([]string{"MicroserviceImportReq", string(data)}, " ")
+}
+
+type MicroserviceImportReqServiceType struct {
+ value string
+}
+
+type MicroserviceImportReqServiceTypeEnum struct {
+ CSE MicroserviceImportReqServiceType
+ CCE MicroserviceImportReqServiceType
+}
+
+func GetMicroserviceImportReqServiceTypeEnum() MicroserviceImportReqServiceTypeEnum {
+ return MicroserviceImportReqServiceTypeEnum{
+ CSE: MicroserviceImportReqServiceType{
+ value: "CSE",
+ },
+ CCE: MicroserviceImportReqServiceType{
+ value: "CCE",
+ },
+ }
+}
+
+func (c MicroserviceImportReqServiceType) Value() string {
+ return c.value
+}
+
+func (c MicroserviceImportReqServiceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceImportReqServiceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type MicroserviceImportReqProtocol struct {
+ value string
+}
+
+type MicroserviceImportReqProtocolEnum struct {
+ HTTP MicroserviceImportReqProtocol
+ HTTPS MicroserviceImportReqProtocol
+}
+
+func GetMicroserviceImportReqProtocolEnum() MicroserviceImportReqProtocolEnum {
+ return MicroserviceImportReqProtocolEnum{
+ HTTP: MicroserviceImportReqProtocol{
+ value: "HTTP",
+ },
+ HTTPS: MicroserviceImportReqProtocol{
+ value: "HTTPS",
+ },
+ }
+}
+
+func (c MicroserviceImportReqProtocol) Value() string {
+ return c.value
+}
+
+func (c MicroserviceImportReqProtocol) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceImportReqProtocol) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type MicroserviceImportReqAuthType struct {
+ value string
+}
+
+type MicroserviceImportReqAuthTypeEnum struct {
+ NONE MicroserviceImportReqAuthType
+ APP MicroserviceImportReqAuthType
+ IAM MicroserviceImportReqAuthType
+}
+
+func GetMicroserviceImportReqAuthTypeEnum() MicroserviceImportReqAuthTypeEnum {
+ return MicroserviceImportReqAuthTypeEnum{
+ NONE: MicroserviceImportReqAuthType{
+ value: "NONE",
+ },
+ APP: MicroserviceImportReqAuthType{
+ value: "APP",
+ },
+ IAM: MicroserviceImportReqAuthType{
+ value: "IAM",
+ },
+ }
+}
+
+func (c MicroserviceImportReqAuthType) Value() string {
+ return c.value
+}
+
+func (c MicroserviceImportReqAuthType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *MicroserviceImportReqAuthType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_label.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_label.go
new file mode 100644
index 00000000..765064a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_microservice_label.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type MicroserviceLabel struct {
+
+ // 标签名称。 以字母或者数字开头和结尾,由字母、数字、连接符('-')、下划线('_')、点号('.')组成且63个字符之内。
+ LabelName string `json:"label_name"`
+
+ // 标签值。 以字母或者数字开头和结尾,由字母、数字、连接符('-')、下划线('_')、点号('.')组成且63个字符之内。
+ LabelValue string `json:"label_value"`
+}
+
+func (o MicroserviceLabel) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MicroserviceLabel struct{}"
+ }
+
+ return strings.Join([]string{"MicroserviceLabel", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_engress_eip_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_engress_eip_req.go
index aaf812db..711768df 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_engress_eip_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_engress_eip_req.go
@@ -3,6 +3,9 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
@@ -10,6 +13,9 @@ type OpenEngressEipReq struct {
// 出公网带宽 单位:Mbit/s
BandwidthSize *string `json:"bandwidth_size,omitempty"`
+
+ // 出公网带宽计费类型: - bandwidth:按带宽计费 - traffic:按流量计费
+ BandwidthChargingMode *OpenEngressEipReqBandwidthChargingMode `json:"bandwidth_charging_mode,omitempty"`
}
func (o OpenEngressEipReq) String() string {
@@ -20,3 +26,45 @@ func (o OpenEngressEipReq) String() string {
return strings.Join([]string{"OpenEngressEipReq", string(data)}, " ")
}
+
+type OpenEngressEipReqBandwidthChargingMode struct {
+ value string
+}
+
+type OpenEngressEipReqBandwidthChargingModeEnum struct {
+ BANDWIDTH OpenEngressEipReqBandwidthChargingMode
+ TRAFFIC OpenEngressEipReqBandwidthChargingMode
+}
+
+func GetOpenEngressEipReqBandwidthChargingModeEnum() OpenEngressEipReqBandwidthChargingModeEnum {
+ return OpenEngressEipReqBandwidthChargingModeEnum{
+ BANDWIDTH: OpenEngressEipReqBandwidthChargingMode{
+ value: "bandwidth",
+ },
+ TRAFFIC: OpenEngressEipReqBandwidthChargingMode{
+ value: "traffic",
+ },
+ }
+}
+
+func (c OpenEngressEipReqBandwidthChargingMode) Value() string {
+ return c.value
+}
+
+func (c OpenEngressEipReqBandwidthChargingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *OpenEngressEipReqBandwidthChargingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_ingress_eip_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_ingress_eip_req.go
new file mode 100644
index 00000000..c3f1470e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_open_ingress_eip_req.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type OpenIngressEipReq struct {
+
+ // 入公网带宽 单位:Mbit/s
+ BandwidthSize *int32 `json:"bandwidth_size,omitempty"`
+
+ // 入公网带宽计费类型: - bandwidth:按带宽计费 - traffic:按流量计费
+ BandwidthChargingMode *OpenIngressEipReqBandwidthChargingMode `json:"bandwidth_charging_mode,omitempty"`
+}
+
+func (o OpenIngressEipReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OpenIngressEipReq struct{}"
+ }
+
+ return strings.Join([]string{"OpenIngressEipReq", string(data)}, " ")
+}
+
+type OpenIngressEipReqBandwidthChargingMode struct {
+ value string
+}
+
+type OpenIngressEipReqBandwidthChargingModeEnum struct {
+ BANDWIDTH OpenIngressEipReqBandwidthChargingMode
+ TRAFFIC OpenIngressEipReqBandwidthChargingMode
+}
+
+func GetOpenIngressEipReqBandwidthChargingModeEnum() OpenIngressEipReqBandwidthChargingModeEnum {
+ return OpenIngressEipReqBandwidthChargingModeEnum{
+ BANDWIDTH: OpenIngressEipReqBandwidthChargingMode{
+ value: "bandwidth",
+ },
+ TRAFFIC: OpenIngressEipReqBandwidthChargingMode{
+ value: "traffic",
+ },
+ }
+}
+
+func (c OpenIngressEipReqBandwidthChargingMode) Value() string {
+ return c.value
+}
+
+func (c OpenIngressEipReqBandwidthChargingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *OpenIngressEipReqBandwidthChargingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_attach_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_attach_info.go
new file mode 100644
index 00000000..983160c2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_attach_info.go
@@ -0,0 +1,143 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type PluginApiAttachInfo struct {
+
+ // 插件绑定编码。
+ PluginAttachId *string `json:"plugin_attach_id,omitempty"`
+
+ // 插件编码。
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType *PluginApiAttachInfoPluginType `json:"plugin_type,omitempty"`
+
+ // 插件可见范围。global:全局可见。
+ PluginScope *PluginApiAttachInfoPluginScope `json:"plugin_scope,omitempty"`
+
+ // 绑定API的环境编码。
+ EnvId *string `json:"env_id,omitempty"`
+
+ // api授权绑定的环境名称
+ EnvName *string `json:"env_name,omitempty"`
+
+ // 绑定的API编码。
+ ApiId *string `json:"api_id,omitempty"`
+
+ // API的名称
+ ApiName *string `json:"api_name,omitempty"`
+
+ // 绑定时间。
+ AttachedTime *sdktime.SdkTime `json:"attached_time,omitempty"`
+}
+
+func (o PluginApiAttachInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PluginApiAttachInfo struct{}"
+ }
+
+ return strings.Join([]string{"PluginApiAttachInfo", string(data)}, " ")
+}
+
+type PluginApiAttachInfoPluginType struct {
+ value string
+}
+
+type PluginApiAttachInfoPluginTypeEnum struct {
+ CORS PluginApiAttachInfoPluginType
+ SET_RESP_HEADERS PluginApiAttachInfoPluginType
+ KAFKA_LOG PluginApiAttachInfoPluginType
+ BREAKER PluginApiAttachInfoPluginType
+ RATE_LIMIT PluginApiAttachInfoPluginType
+}
+
+func GetPluginApiAttachInfoPluginTypeEnum() PluginApiAttachInfoPluginTypeEnum {
+ return PluginApiAttachInfoPluginTypeEnum{
+ CORS: PluginApiAttachInfoPluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: PluginApiAttachInfoPluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: PluginApiAttachInfoPluginType{
+ value: "kafka_log",
+ },
+ BREAKER: PluginApiAttachInfoPluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: PluginApiAttachInfoPluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c PluginApiAttachInfoPluginType) Value() string {
+ return c.value
+}
+
+func (c PluginApiAttachInfoPluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiAttachInfoPluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginApiAttachInfoPluginScope struct {
+ value string
+}
+
+type PluginApiAttachInfoPluginScopeEnum struct {
+ GLOBAL PluginApiAttachInfoPluginScope
+}
+
+func GetPluginApiAttachInfoPluginScopeEnum() PluginApiAttachInfoPluginScopeEnum {
+ return PluginApiAttachInfoPluginScopeEnum{
+ GLOBAL: PluginApiAttachInfoPluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c PluginApiAttachInfoPluginScope) Value() string {
+ return c.value
+}
+
+func (c PluginApiAttachInfoPluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiAttachInfoPluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_info.go
new file mode 100644
index 00000000..5ef89df9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_api_info.go
@@ -0,0 +1,276 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type PluginApiInfo struct {
+
+ // API编号
+ ApiId *string `json:"api_id,omitempty"`
+
+ // API名称。 支持汉字、英文、数字、中划线、下划线、点、斜杠、中英文格式下的小括号和冒号、中文格式下的顿号,且只能以英文、汉字和数字开头,3-255个字符。 > 中文字符必须为UTF-8或者unicode编码。
+ ApiName *string `json:"api_name,omitempty"`
+
+ // API类型 - 1:公有API - 2:私有API
+ Type *int32 `json:"type,omitempty"`
+
+ // API的请求协议 - HTTP - HTTPS - BOTH:同时支持HTTP和HTTPS
+ ReqProtocol *PluginApiInfoReqProtocol `json:"req_protocol,omitempty"`
+
+ // API的请求方式
+ ReqMethod *PluginApiInfoReqMethod `json:"req_method,omitempty"`
+
+ // 请求地址。可以包含请求参数,用{}标识,比如/getUserInfo/{userId},支持 * % - _ . 等特殊字符,总长度不超过512,且满足URI规范。 支持环境变量,使用环境变量时,每个变量名的长度为3 ~ 32位的字符串,字符串由英文字母、数字、中划线、下划线组成,且只能以英文开头。 > 需要服从URI规范。
+ ReqUri *string `json:"req_uri,omitempty"`
+
+ // API的认证方式 - NONE:无认证 - APP:APP认证 - IAM:IAM认证 - AUTHORIZER:自定义认证
+ AuthType *PluginApiInfoAuthType `json:"auth_type,omitempty"`
+
+ // API的匹配方式 - SWA:前缀匹配 - NORMAL:正常匹配(绝对匹配) 默认:NORMAL
+ MatchMode *PluginApiInfoMatchMode `json:"match_mode,omitempty"`
+
+ // API描述。
+ Remark *string `json:"remark,omitempty"`
+
+ // API所属的分组编号
+ GroupId *string `json:"group_id,omitempty"`
+
+ // API所属分组的名称
+ GroupName *string `json:"group_name,omitempty"`
+
+ // 归属集成应用编码,兼容roma实例的字段,一般为空
+ RomaAppId *string `json:"roma_app_id,omitempty"`
+
+ // 绑定API的环境编码。
+ EnvId *string `json:"env_id,omitempty"`
+
+ // 绑定API的环境名称
+ EnvName *string `json:"env_name,omitempty"`
+
+ // 发布编码。
+ PublishId *string `json:"publish_id,omitempty"`
+
+ // 插件绑定编码。
+ PluginAttachId *string `json:"plugin_attach_id,omitempty"`
+
+ // 绑定时间。
+ AttachedTime *sdktime.SdkTime `json:"attached_time,omitempty"`
+}
+
+func (o PluginApiInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PluginApiInfo struct{}"
+ }
+
+ return strings.Join([]string{"PluginApiInfo", string(data)}, " ")
+}
+
+type PluginApiInfoReqProtocol struct {
+ value string
+}
+
+type PluginApiInfoReqProtocolEnum struct {
+ HTTP PluginApiInfoReqProtocol
+ HTTPS PluginApiInfoReqProtocol
+ BOTH PluginApiInfoReqProtocol
+}
+
+func GetPluginApiInfoReqProtocolEnum() PluginApiInfoReqProtocolEnum {
+ return PluginApiInfoReqProtocolEnum{
+ HTTP: PluginApiInfoReqProtocol{
+ value: "HTTP",
+ },
+ HTTPS: PluginApiInfoReqProtocol{
+ value: "HTTPS",
+ },
+ BOTH: PluginApiInfoReqProtocol{
+ value: "BOTH",
+ },
+ }
+}
+
+func (c PluginApiInfoReqProtocol) Value() string {
+ return c.value
+}
+
+func (c PluginApiInfoReqProtocol) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiInfoReqProtocol) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginApiInfoReqMethod struct {
+ value string
+}
+
+type PluginApiInfoReqMethodEnum struct {
+ GET PluginApiInfoReqMethod
+ POST PluginApiInfoReqMethod
+ PUT PluginApiInfoReqMethod
+ DELETE PluginApiInfoReqMethod
+ HEAD PluginApiInfoReqMethod
+ PATCH PluginApiInfoReqMethod
+ OPTIONS PluginApiInfoReqMethod
+ ANY PluginApiInfoReqMethod
+}
+
+func GetPluginApiInfoReqMethodEnum() PluginApiInfoReqMethodEnum {
+ return PluginApiInfoReqMethodEnum{
+ GET: PluginApiInfoReqMethod{
+ value: "GET",
+ },
+ POST: PluginApiInfoReqMethod{
+ value: "POST",
+ },
+ PUT: PluginApiInfoReqMethod{
+ value: "PUT",
+ },
+ DELETE: PluginApiInfoReqMethod{
+ value: "DELETE",
+ },
+ HEAD: PluginApiInfoReqMethod{
+ value: "HEAD",
+ },
+ PATCH: PluginApiInfoReqMethod{
+ value: "PATCH",
+ },
+ OPTIONS: PluginApiInfoReqMethod{
+ value: "OPTIONS",
+ },
+ ANY: PluginApiInfoReqMethod{
+ value: "ANY",
+ },
+ }
+}
+
+func (c PluginApiInfoReqMethod) Value() string {
+ return c.value
+}
+
+func (c PluginApiInfoReqMethod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiInfoReqMethod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginApiInfoAuthType struct {
+ value string
+}
+
+type PluginApiInfoAuthTypeEnum struct {
+ NONE PluginApiInfoAuthType
+ APP PluginApiInfoAuthType
+ IAM PluginApiInfoAuthType
+ AUTHORIZER PluginApiInfoAuthType
+}
+
+func GetPluginApiInfoAuthTypeEnum() PluginApiInfoAuthTypeEnum {
+ return PluginApiInfoAuthTypeEnum{
+ NONE: PluginApiInfoAuthType{
+ value: "NONE",
+ },
+ APP: PluginApiInfoAuthType{
+ value: "APP",
+ },
+ IAM: PluginApiInfoAuthType{
+ value: "IAM",
+ },
+ AUTHORIZER: PluginApiInfoAuthType{
+ value: "AUTHORIZER",
+ },
+ }
+}
+
+func (c PluginApiInfoAuthType) Value() string {
+ return c.value
+}
+
+func (c PluginApiInfoAuthType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiInfoAuthType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginApiInfoMatchMode struct {
+ value string
+}
+
+type PluginApiInfoMatchModeEnum struct {
+ SWA PluginApiInfoMatchMode
+ NORMAL PluginApiInfoMatchMode
+}
+
+func GetPluginApiInfoMatchModeEnum() PluginApiInfoMatchModeEnum {
+ return PluginApiInfoMatchModeEnum{
+ SWA: PluginApiInfoMatchMode{
+ value: "SWA",
+ },
+ NORMAL: PluginApiInfoMatchMode{
+ value: "NORMAL",
+ },
+ }
+}
+
+func (c PluginApiInfoMatchMode) Value() string {
+ return c.value
+}
+
+func (c PluginApiInfoMatchMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginApiInfoMatchMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_create.go
new file mode 100644
index 00000000..27ba01a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_create.go
@@ -0,0 +1,129 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type PluginCreate struct {
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName string `json:"plugin_name"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType PluginCreatePluginType `json:"plugin_type"`
+
+ // 插件可见范围。global:全局可见;
+ PluginScope PluginCreatePluginScope `json:"plugin_scope"`
+
+ // 插件定义内容,支持json。参考提供的具体模型定义 CorsPluginContent:跨域资源共享 定义内容 SetRespHeadersContent:HTTP响应头管理 定义内容 KafkaLogContent:Kafka日志推送 定义内容 BreakerContent:断路器 定义内容 RateLimitContent 流量控制 定义内容
+ PluginContent string `json:"plugin_content"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+}
+
+func (o PluginCreate) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PluginCreate struct{}"
+ }
+
+ return strings.Join([]string{"PluginCreate", string(data)}, " ")
+}
+
+type PluginCreatePluginType struct {
+ value string
+}
+
+type PluginCreatePluginTypeEnum struct {
+ CORS PluginCreatePluginType
+ SET_RESP_HEADERS PluginCreatePluginType
+ KAFKA_LOG PluginCreatePluginType
+ BREAKER PluginCreatePluginType
+ RATE_LIMIT PluginCreatePluginType
+}
+
+func GetPluginCreatePluginTypeEnum() PluginCreatePluginTypeEnum {
+ return PluginCreatePluginTypeEnum{
+ CORS: PluginCreatePluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: PluginCreatePluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: PluginCreatePluginType{
+ value: "kafka_log",
+ },
+ BREAKER: PluginCreatePluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: PluginCreatePluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c PluginCreatePluginType) Value() string {
+ return c.value
+}
+
+func (c PluginCreatePluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginCreatePluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginCreatePluginScope struct {
+ value string
+}
+
+type PluginCreatePluginScopeEnum struct {
+ GLOBAL PluginCreatePluginScope
+}
+
+func GetPluginCreatePluginScopeEnum() PluginCreatePluginScopeEnum {
+ return PluginCreatePluginScopeEnum{
+ GLOBAL: PluginCreatePluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c PluginCreatePluginScope) Value() string {
+ return c.value
+}
+
+func (c PluginCreatePluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginCreatePluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_info.go
new file mode 100644
index 00000000..a7698506
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_info.go
@@ -0,0 +1,137 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type PluginInfo struct {
+
+ // 插件编码。
+ PluginId string `json:"plugin_id"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName string `json:"plugin_name"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType PluginInfoPluginType `json:"plugin_type"`
+
+ // 插件可见范围。global:全局可见;
+ PluginScope PluginInfoPluginScope `json:"plugin_scope"`
+
+ // 插件定义内容,支持json。参考提供的具体模型定义 CorsPluginContent:跨域资源共享 定义内容 SetRespHeadersContent:HTTP响应头管理 定义内容 KafkaLogContent:Kafka日志推送 定义内容 BreakerContent:断路器 定义内容 RateLimitContent 流量控制 定义内容
+ PluginContent string `json:"plugin_content"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+
+ // 创建时间。
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+}
+
+func (o PluginInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PluginInfo struct{}"
+ }
+
+ return strings.Join([]string{"PluginInfo", string(data)}, " ")
+}
+
+type PluginInfoPluginType struct {
+ value string
+}
+
+type PluginInfoPluginTypeEnum struct {
+ CORS PluginInfoPluginType
+ SET_RESP_HEADERS PluginInfoPluginType
+ KAFKA_LOG PluginInfoPluginType
+ BREAKER PluginInfoPluginType
+ RATE_LIMIT PluginInfoPluginType
+}
+
+func GetPluginInfoPluginTypeEnum() PluginInfoPluginTypeEnum {
+ return PluginInfoPluginTypeEnum{
+ CORS: PluginInfoPluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: PluginInfoPluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: PluginInfoPluginType{
+ value: "kafka_log",
+ },
+ BREAKER: PluginInfoPluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: PluginInfoPluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c PluginInfoPluginType) Value() string {
+ return c.value
+}
+
+func (c PluginInfoPluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginInfoPluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PluginInfoPluginScope struct {
+ value string
+}
+
+type PluginInfoPluginScopeEnum struct {
+ GLOBAL PluginInfoPluginScope
+}
+
+func GetPluginInfoPluginScopeEnum() PluginInfoPluginScopeEnum {
+ return PluginInfoPluginScopeEnum{
+ GLOBAL: PluginInfoPluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c PluginInfoPluginScope) Value() string {
+ return c.value
+}
+
+func (c PluginInfoPluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PluginInfoPluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_oper_api_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_oper_api_info.go
new file mode 100644
index 00000000..cf248df1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_plugin_oper_api_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PluginOperApiInfo struct {
+
+ // 绑定API的环境编码。
+ EnvId string `json:"env_id"`
+
+ // 绑定的API编码列表。
+ ApiIds []string `json:"api_ids"`
+}
+
+func (o PluginOperApiInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PluginOperApiInfo struct{}"
+ }
+
+ return strings.Join([]string{"PluginOperApiInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_eip_v2_request.go
index e739b5de..30e2f679 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_eip_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_eip_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type RemoveEipV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_engress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_engress_eip_v2_request.go
index 0ea07cbe..3fb904ac 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_engress_eip_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_engress_eip_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type RemoveEngressEipV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_request.go
new file mode 100644
index 00000000..fc699ec5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RemoveIngressEipV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o RemoveIngressEipV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RemoveIngressEipV2Request struct{}"
+ }
+
+ return strings.Join([]string{"RemoveIngressEipV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_response.go
new file mode 100644
index 00000000..8c97c725
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_remove_ingress_eip_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RemoveIngressEipV2Response struct {
+
+ // 实例ID
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 公网入口变更的任务信息
+ Message *string `json:"message,omitempty"`
+
+ // 任务编号
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RemoveIngressEipV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RemoveIngressEipV2Response struct{}"
+ }
+
+ return strings.Join([]string{"RemoveIngressEipV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_request.go
index 172ef95b..b8db0bef 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ResettingAppSecretV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_response.go
index b759114d..7c2581bf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resetting_app_secret_v2_response.go
@@ -20,7 +20,7 @@ type ResettingAppSecretV2Response struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *ResettingAppSecretV2ResponseCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resp_instance_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resp_instance_base.go
index ddf29863..b6ac2561 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resp_instance_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_resp_instance_base.go
@@ -41,10 +41,10 @@ type RespInstanceBase struct {
// 实例绑定的弹性IP地址
EipAddress *string `json:"eip_address,omitempty"`
- // 实例计费方式: - 0:按需计费 - 1:包周期计费
+ // 实例计费方式: - 0:按需计费 - 1:[包周期计费](tag:hws,hws_hk)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
ChargingMode *RespInstanceBaseChargingMode `json:"charging_mode,omitempty"`
- // 包周期计费订单编号
+ // [包周期计费订单编号](tag:hws,hws_hk)[计费订单编号参数暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
CbcMetadata *string `json:"cbc_metadata,omitempty"`
// 实例使用的负载均衡器类型 - lvs Linux虚拟服务器 - elb 弹性负载均衡,elb仅部分region支持
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_responses_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_responses_info.go
new file mode 100644
index 00000000..84dba99c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_responses_info.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResponsesInfo struct {
+
+ // 响应名称
+ Name *string `json:"name,omitempty"`
+
+ // 错误类型的响应定义,其中key为错误类型。key的枚举值为: - AUTH_FAILURE:认证失败 - AUTH_HEADER_MISSING:认证身份来源缺失 - AUTHORIZER_FAILURE:自定义认证失败 - AUTHORIZER_CONF_FAILURE:自定义认证配置错误 - AUTHORIZER_IDENTITIES_FAILURE:自定义认证身份来源错误 - BACKEND_UNAVAILABLE:后端不可用 - BACKEND_TIMEOUT:后端超时 - THROTTLED:调用次数超出阈值 - UNAUTHORIZED:应用未授权 - ACCESS_DENIED:拒绝访问 - NOT_FOUND:未找到匹配的API - REQUEST_PARAMETERS_FAILURE:请求参数错误 - DEFAULT_4XX:默认4XX - DEFAULT_5XX:默认5XX 每项错误类型均为一个JSON体
+ Responses map[string]ResponseInfoResp `json:"responses,omitempty"`
+
+ // 响应ID
+ Id *string `json:"id,omitempty"`
+
+ // 是否为分组默认响应
+ Default *bool `json:"default,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 修改时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+}
+
+func (o ResponsesInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResponsesInfo struct{}"
+ }
+
+ return strings.Join([]string{"ResponsesInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_request.go
index 0bb4d9e3..44bafede 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfAclPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// ACL策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_response.go
index 30dbfa81..b1410c10 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_acl_policy_v2_response.go
@@ -19,7 +19,7 @@ type ShowDetailsOfAclPolicyV2Response struct {
// ACL策略值
AclValue *string `json:"acl_value,omitempty"`
- // 对象类型: - IP - DOMAIN
+ // 对象类型: - IP - DOMAIN - DOMAIN_ID
EntityType *string `json:"entity_type,omitempty"`
// 编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_request.go
index bb3b2215..19a5e944 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfApiGroupV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_response.go
index 0bc0c3bf..633c6d41 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_group_v2_response.go
@@ -29,7 +29,7 @@ type ShowDetailsOfApiGroupV2Response struct {
// 最近修改时间
UpdateTime *sdktime.SdkTime `json:"update_time"`
- // 是否已上架云市场: - 1:已上架 - 2:未上架 - 3:审核中
+ // 是否已上架云商店: - 1:已上架 - 2:未上架 - 3:审核中
OnSellStatus int32 `json:"on_sell_status"`
// 分组上绑定的独立域名列表
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_v2_request.go
index 58bfdff4..75eff458 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_code_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_code_v2_request.go
index aa036d4a..7a524bcf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_code_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_code_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfAppCodeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_request.go
index f9b3029e..e012b8ca 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_response.go
index ead8d3c2..44c69e0c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_app_v2_response.go
@@ -20,7 +20,7 @@ type ShowDetailsOfAppV2Response struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *ShowDetailsOfAppV2ResponseCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_request.go
new file mode 100644
index 00000000..6f3402b6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowDetailsOfCertificateV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+}
+
+func (o ShowDetailsOfCertificateV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDetailsOfCertificateV2Request struct{}"
+ }
+
+ return strings.Join([]string{"ShowDetailsOfCertificateV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_response.go
new file mode 100644
index 00000000..25e8a7cb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_certificate_v2_response.go
@@ -0,0 +1,128 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type ShowDetailsOfCertificateV2Response struct {
+
+ // 证书ID
+ Id *string `json:"id,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书类型 - global:全局证书 - instance:实例证书
+ Type *ShowDetailsOfCertificateV2ResponseType `json:"type,omitempty"`
+
+ // 实例编码 - `type`为`global`时,缺省为common - `type`为`instance`时,为实例编码
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 租户项目编号
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 域名
+ CommonName *string `json:"common_name,omitempty"`
+
+ // san扩展域名
+ San *[]string `json:"san,omitempty"`
+
+ // 有效期到
+ NotAfter *sdktime.SdkTime `json:"not_after,omitempty"`
+
+ // 签名算法
+ SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
+ // 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。
+ IsHasTrustedRootCa *bool `json:"is_has_trusted_root_ca,omitempty"`
+
+ // 版本
+ Version *int32 `json:"version,omitempty"`
+
+ // 公司、组织
+ Organization *[]string `json:"organization,omitempty"`
+
+ // 部门
+ OrganizationalUnit *[]string `json:"organizational_unit,omitempty"`
+
+ // 城市
+ Locality *[]string `json:"locality,omitempty"`
+
+ // 省份
+ State *[]string `json:"state,omitempty"`
+
+ // 国家
+ Country *[]string `json:"country,omitempty"`
+
+ // 有效期从
+ NotBefore *sdktime.SdkTime `json:"not_before,omitempty"`
+
+ // 序列号
+ SerialNumber *string `json:"serial_number,omitempty"`
+
+ // 颁发者
+ Issuer *[]string `json:"issuer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowDetailsOfCertificateV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDetailsOfCertificateV2Response struct{}"
+ }
+
+ return strings.Join([]string{"ShowDetailsOfCertificateV2Response", string(data)}, " ")
+}
+
+type ShowDetailsOfCertificateV2ResponseType struct {
+ value string
+}
+
+type ShowDetailsOfCertificateV2ResponseTypeEnum struct {
+ GLOBAL ShowDetailsOfCertificateV2ResponseType
+ INSTANCE ShowDetailsOfCertificateV2ResponseType
+}
+
+func GetShowDetailsOfCertificateV2ResponseTypeEnum() ShowDetailsOfCertificateV2ResponseTypeEnum {
+ return ShowDetailsOfCertificateV2ResponseTypeEnum{
+ GLOBAL: ShowDetailsOfCertificateV2ResponseType{
+ value: "global",
+ },
+ INSTANCE: ShowDetailsOfCertificateV2ResponseType{
+ value: "instance",
+ },
+ }
+}
+
+func (c ShowDetailsOfCertificateV2ResponseType) Value() string {
+ return c.value
+}
+
+func (c ShowDetailsOfCertificateV2ResponseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowDetailsOfCertificateV2ResponseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_request.go
index e519d04b..650d6c0e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfCustomAuthorizersV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 自定义认证的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_response.go
index e0262d87..9e21f9bf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_custom_authorizers_v2_response.go
@@ -23,6 +23,12 @@ type ShowDetailsOfCustomAuthorizersV2Response struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_request.go
index b17fb604..f9899a34 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfDomainNameCertificateV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_response.go
index 0a2cbd14..9308fa63 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_domain_name_certificate_v2_response.go
@@ -1,14 +1,37 @@
package model
import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
"strings"
)
// Response Object
type ShowDetailsOfDomainNameCertificateV2Response struct {
+ // 证书ID
+ Id *string `json:"id,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书类型 - global:全局证书 - instance:实例证书
+ Type *ShowDetailsOfDomainNameCertificateV2ResponseType `json:"type,omitempty"`
+
+ // 实例编码 - `type`为`global`时,缺省为common - `type`为`instance`时,为实例编码
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 租户项目编号
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
// 证书域名
CommonName *string `json:"common_name,omitempty"`
@@ -58,3 +81,45 @@ func (o ShowDetailsOfDomainNameCertificateV2Response) String() string {
return strings.Join([]string{"ShowDetailsOfDomainNameCertificateV2Response", string(data)}, " ")
}
+
+type ShowDetailsOfDomainNameCertificateV2ResponseType struct {
+ value string
+}
+
+type ShowDetailsOfDomainNameCertificateV2ResponseTypeEnum struct {
+ GLOBAL ShowDetailsOfDomainNameCertificateV2ResponseType
+ INSTANCE ShowDetailsOfDomainNameCertificateV2ResponseType
+}
+
+func GetShowDetailsOfDomainNameCertificateV2ResponseTypeEnum() ShowDetailsOfDomainNameCertificateV2ResponseTypeEnum {
+ return ShowDetailsOfDomainNameCertificateV2ResponseTypeEnum{
+ GLOBAL: ShowDetailsOfDomainNameCertificateV2ResponseType{
+ value: "global",
+ },
+ INSTANCE: ShowDetailsOfDomainNameCertificateV2ResponseType{
+ value: "instance",
+ },
+ }
+}
+
+func (c ShowDetailsOfDomainNameCertificateV2ResponseType) Value() string {
+ return c.value
+}
+
+func (c ShowDetailsOfDomainNameCertificateV2ResponseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowDetailsOfDomainNameCertificateV2ResponseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_environment_variable_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_environment_variable_v2_request.go
index 83a60217..aee20b2a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_environment_variable_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_environment_variable_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfEnvironmentVariableV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 环境变量的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_type_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_type_v2_request.go
index 898b1955..9200d1c1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_type_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_type_v2_request.go
@@ -12,7 +12,7 @@ import (
// Request Object
type ShowDetailsOfGatewayResponseTypeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_v2_request.go
index 1404c4d6..00bc5c32 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_gateway_response_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfGatewayResponseV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_progress_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_progress_v2_request.go
index ed4aaef3..91c9da7b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_progress_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_progress_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfInstanceProgressV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_request.go
index 00bb7756..a7128be7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfInstanceV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_response.go
index 71e28fe5..2eb39d2c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_instance_v2_response.go
@@ -42,10 +42,10 @@ type ShowDetailsOfInstanceV2Response struct {
// 实例绑定的弹性IP地址
EipAddress *string `json:"eip_address,omitempty"`
- // 实例计费方式: - 0:按需计费 - 1:包周期计费
+ // 实例计费方式: - 0:按需计费 - 1:[包周期计费](tag:hws,hws_hk)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
ChargingMode *ShowDetailsOfInstanceV2ResponseChargingMode `json:"charging_mode,omitempty"`
- // 包周期计费订单编号
+ // [包周期计费订单编号](tag:hws,hws_hk)[计费订单编号参数暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
CbcMetadata *string `json:"cbc_metadata,omitempty"`
// 实例使用的负载均衡器类型 - lvs Linux虚拟服务器 - elb 弹性负载均衡,elb仅部分region支持
@@ -72,6 +72,9 @@ type ShowDetailsOfInstanceV2Response struct {
// 实例入口,虚拟私有云访问地址
IngressIp *string `json:"ingress_ip,omitempty"`
+ // 实例入口,虚拟私有云访问地址 (IPv6)
+ IngressIpV6 *string `json:"ingress_ip_v6,omitempty"`
+
// 实例所属用户ID
UserId *string `json:"user_id,omitempty"`
@@ -87,6 +90,9 @@ type ShowDetailsOfInstanceV2Response struct {
// 出公网带宽
BandwidthSize *int32 `json:"bandwidth_size,omitempty"`
+ // 出公网带宽计费模式
+ BandwidthChargingMode *string `json:"bandwidth_charging_mode,omitempty"`
+
// 可用区
AvailableZoneIds *string `json:"available_zone_ids,omitempty"`
@@ -116,8 +122,14 @@ type ShowDetailsOfInstanceV2Response struct {
Publicips *[]IpDetails `json:"publicips,omitempty"`
// 私网入口地址列表
- Privateips *[]IpDetails `json:"privateips,omitempty"`
- HttpStatusCode int `json:"-"`
+ Privateips *[]IpDetails `json:"privateips,omitempty"`
+
+ // 实例是否可释放 - true:可释放 - false:不可释放
+ IsReleasable *bool `json:"is_releasable,omitempty"`
+
+ // 入公网带宽计费模式
+ IngressBandwidthChargingMode *string `json:"ingress_bandwidth_charging_mode,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ShowDetailsOfInstanceV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_request.go
new file mode 100644
index 00000000..4e138e0e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowDetailsOfMemberGroupRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ // VPC通道后端服务器组编号
+ MemberGroupId string `json:"member_group_id"`
+}
+
+func (o ShowDetailsOfMemberGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDetailsOfMemberGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowDetailsOfMemberGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_response.go
new file mode 100644
index 00000000..9f9c3289
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_member_group_response.go
@@ -0,0 +1,52 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowDetailsOfMemberGroupResponse struct {
+
+ // VPC通道后端服务器组名称
+ MemberGroupName string `json:"member_group_name"`
+
+ // VPC通道后端服务器组描述
+ MemberGroupRemark *string `json:"member_group_remark,omitempty"`
+
+ // VPC通道后端服务器组权重值。 当前服务器组存在服务器且此权重值存在时,自动使用此权重值分配权重。
+ MemberGroupWeight *int32 `json:"member_group_weight,omitempty"`
+
+ // VPC通道后端服务器组的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
+
+ // VPC通道后端服务器组的版本,仅VPC通道类型为微服务时支持。
+ MicroserviceVersion *string `json:"microservice_version,omitempty"`
+
+ // VPC通道后端服务器组的端口号,仅VPC通道类型为微服务时支持。端口号为0时后端服务器组下的所有地址沿用原来负载端口继承逻辑。
+ MicroservicePort *int32 `json:"microservice_port,omitempty"`
+
+ // VPC通道后端服务器组的标签,仅VPC通道类型为微服务时支持。
+ MicroserviceLabels *[]MicroserviceLabel `json:"microservice_labels,omitempty"`
+
+ // VPC通道后端服务器组编号
+ MemberGroupId *string `json:"member_group_id,omitempty"`
+
+ // VPC通道后端服务器组创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // VPC通道后端服务器组更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowDetailsOfMemberGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDetailsOfMemberGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowDetailsOfMemberGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_request.go
index 4dc1ac66..c6a78a33 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_response.go
index 4d5a386e..55874390 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_request_throttling_policy_v2_response.go
@@ -32,7 +32,7 @@ type ShowDetailsOfRequestThrottlingPolicyV2Response struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_request.go
index 3b19e1a4..17b3e3aa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ShowDetailsOfVpcChannelV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_response.go
index 587ca500..f92025ec 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_details_of_vpc_channel_v2_response.go
@@ -14,14 +14,20 @@ type ShowDetailsOfVpcChannelV2Response struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *ShowDetailsOfVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy ShowDetailsOfVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *ShowDetailsOfVpcChannelV2ResponseMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType ShowDetailsOfVpcChannelV2ResponseMemberType `json:"member_type"`
+
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
// VPC通道的创建时间
CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
@@ -32,10 +38,12 @@ type ShowDetailsOfVpcChannelV2Response struct {
// VPC通道的状态。 - 1:正常 - 2:异常
Status *ShowDetailsOfVpcChannelV2ResponseStatus `json:"status,omitempty"`
- // 后端云服务器组列表。 暂不支持
+ // 后端云服务器组列表。
MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
- // 后端实例列表,VPC通道类型为1时,有且仅有1个后端实例。
+ MicroserviceInfo *MicroServiceInfo `json:"microservice_info,omitempty"`
+
+ // 后端实例列表。
Members *[]VpcMemberInfo `json:"members,omitempty"`
VpcHealthConfig *VpcHealthConfigInfo `json:"vpc_health_config,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_request.go
new file mode 100644
index 00000000..57eaa654
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowPluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+}
+
+func (o ShowPluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowPluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowPluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_response.go
new file mode 100644
index 00000000..0f213ab3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_show_plugin_response.go
@@ -0,0 +1,139 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type ShowPluginResponse struct {
+
+ // 插件编码。
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType *ShowPluginResponsePluginType `json:"plugin_type,omitempty"`
+
+ // 插件可见范围。global:全局可见;
+ PluginScope *ShowPluginResponsePluginScope `json:"plugin_scope,omitempty"`
+
+ // 插件定义内容,支持json。参考提供的具体模型定义 CorsPluginContent:跨域资源共享 定义内容 SetRespHeadersContent:HTTP响应头管理 定义内容 KafkaLogContent:Kafka日志推送 定义内容 BreakerContent:断路器 定义内容 RateLimitContent 流量控制 定义内容
+ PluginContent *string `json:"plugin_content,omitempty"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+
+ // 创建时间。
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowPluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowPluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowPluginResponse", string(data)}, " ")
+}
+
+type ShowPluginResponsePluginType struct {
+ value string
+}
+
+type ShowPluginResponsePluginTypeEnum struct {
+ CORS ShowPluginResponsePluginType
+ SET_RESP_HEADERS ShowPluginResponsePluginType
+ KAFKA_LOG ShowPluginResponsePluginType
+ BREAKER ShowPluginResponsePluginType
+ RATE_LIMIT ShowPluginResponsePluginType
+}
+
+func GetShowPluginResponsePluginTypeEnum() ShowPluginResponsePluginTypeEnum {
+ return ShowPluginResponsePluginTypeEnum{
+ CORS: ShowPluginResponsePluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: ShowPluginResponsePluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: ShowPluginResponsePluginType{
+ value: "kafka_log",
+ },
+ BREAKER: ShowPluginResponsePluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: ShowPluginResponsePluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c ShowPluginResponsePluginType) Value() string {
+ return c.value
+}
+
+func (c ShowPluginResponsePluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowPluginResponsePluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ShowPluginResponsePluginScope struct {
+ value string
+}
+
+type ShowPluginResponsePluginScopeEnum struct {
+ GLOBAL ShowPluginResponsePluginScope
+}
+
+func GetShowPluginResponsePluginScopeEnum() ShowPluginResponsePluginScopeEnum {
+ return ShowPluginResponsePluginScopeEnum{
+ GLOBAL: ShowPluginResponsePluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c ShowPluginResponsePluginScope) Value() string {
+ return c.value
+}
+
+func (c ShowPluginResponsePluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowPluginResponsePluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_sign_api_binding_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_sign_api_binding_info.go
index 476dace2..97ddc1b4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_sign_api_binding_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_sign_api_binding_info.go
@@ -46,10 +46,10 @@ type SignApiBindingInfo struct {
// 签名密钥的名称。支持汉字,英文,数字,下划线,且只能以英文和汉字开头,3 ~ 64字符。 > 中文字符必须为UTF-8或者unicode编码。
SignName *string `json:"sign_name,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature.go
index 808dc0d8..4641a3e7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature.go
@@ -16,13 +16,13 @@ type Signature struct {
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
SignType *SignatureSignType `json:"sign_type,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
- // 签名算法。默认值为空,仅aes类型签名秘钥支持选择签名算法,其他类型签名秘钥不支持签名算法。
+ // 签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。
SignAlgorithm *SignatureSignAlgorithm `json:"sign_algorithm,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature_with_bind_num.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature_with_bind_num.go
index 088cafaf..593a6907 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature_with_bind_num.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_signature_with_bind_num.go
@@ -16,13 +16,13 @@ type SignatureWithBindNum struct {
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
SignType *SignatureWithBindNumSignType `json:"sign_type,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
- // 签名算法。默认值为空,仅aes类型签名秘钥支持选择签名算法,其他类型签名秘钥不支持签名算法。
+ // 签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。
SignAlgorithm *SignatureWithBindNumSignAlgorithm `json:"sign_algorithm,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_base_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_base_info.go
index 6b0cef9b..8c1382ec 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_base_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_base_info.go
@@ -32,7 +32,7 @@ type ThrottleBaseInfo struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_for_api.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_for_api.go
index e8b341ac..4767f0ec 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_for_api.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttle_for_api.go
@@ -31,7 +31,7 @@ type ThrottleForApi struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttles_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttles_info.go
index d94e840d..01b2aa54 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttles_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_throttles_info.go
@@ -31,7 +31,7 @@ type ThrottlesInfo struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_value.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_value.go
new file mode 100644
index 00000000..e6f56f10
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_value.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TmsKeyValue struct {
+
+ // 键。 支持可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : = + - @; \\_sys\\_开头属于系统标签,租户不能输入
+ Key *string `json:"key,omitempty"`
+
+ // 值。 支持可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : / = + - @
+ Value *string `json:"value,omitempty"`
+}
+
+func (o TmsKeyValue) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TmsKeyValue struct{}"
+ }
+
+ return strings.Join([]string{"TmsKeyValue", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_values.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_values.go
new file mode 100644
index 00000000..3b6a0045
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_key_values.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TmsKeyValues struct {
+
+ // 键。 支持可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : = + - @; \\_sys\\_开头属于系统标签,租户不能输入
+ Key *string `json:"key,omitempty"`
+
+ // 值。 支持可用 UTF-8 格式表示的字母(包含中文)、数字和空格,以及以下字符: _ . : / = + - @
+ Values *[]string `json:"values,omitempty"`
+}
+
+func (o TmsKeyValues) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TmsKeyValues struct{}"
+ }
+
+ return strings.Join([]string{"TmsKeyValues", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_update_public_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_update_public_req.go
new file mode 100644
index 00000000..c27c4f61
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_tms_update_public_req.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type TmsUpdatePublicReq struct {
+
+ // 操作标识:create(创建),delete(删除)
+ Action TmsUpdatePublicReqAction `json:"action"`
+
+ // 标签列表。 一个实例默认最多支持创建20个标签。
+ Tags []TmsKeyValue `json:"tags"`
+}
+
+func (o TmsUpdatePublicReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TmsUpdatePublicReq struct{}"
+ }
+
+ return strings.Join([]string{"TmsUpdatePublicReq", string(data)}, " ")
+}
+
+type TmsUpdatePublicReqAction struct {
+ value string
+}
+
+type TmsUpdatePublicReqActionEnum struct {
+ CREATE TmsUpdatePublicReqAction
+ DELETE TmsUpdatePublicReqAction
+}
+
+func GetTmsUpdatePublicReqActionEnum() TmsUpdatePublicReqActionEnum {
+ return TmsUpdatePublicReqActionEnum{
+ CREATE: TmsUpdatePublicReqAction{
+ value: "create",
+ },
+ DELETE: TmsUpdatePublicReqAction{
+ value: "delete",
+ },
+ }
+}
+
+func (c TmsUpdatePublicReqAction) Value() string {
+ return c.value
+}
+
+func (c TmsUpdatePublicReqAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *TmsUpdatePublicReqAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_unbind_api_for_acl.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_unbind_api_for_acl.go
index bdb7f1f4..83956175 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_unbind_api_for_acl.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_unbind_api_for_acl.go
@@ -37,6 +37,12 @@ type UnbindApiForAcl struct {
// 绑定的其他同类型的ACL策略名称
AclName *string `json:"acl_name,omitempty"`
+
+ // API的请求地址
+ ReqUri *string `json:"req_uri,omitempty"`
+
+ // API的认证方式
+ AuthType *string `json:"auth_type,omitempty"`
}
func (o UnbindApiForAcl) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_request.go
index cff65818..544771f5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateAclStrategyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// ACL策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_response.go
index f10af838..3707a6ca 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_acl_strategy_v2_response.go
@@ -19,7 +19,7 @@ type UpdateAclStrategyV2Response struct {
// ACL策略值
AclValue *string `json:"acl_value,omitempty"`
- // 对象类型: - IP - DOMAIN
+ // 对象类型: - IP - DOMAIN - DOMAIN_ID
EntityType *string `json:"entity_type,omitempty"`
// 编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_request.go
index b0b73763..49d00cf6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateApiGroupV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_response.go
index 75e1d78b..408186d7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_group_v2_response.go
@@ -29,7 +29,7 @@ type UpdateApiGroupV2Response struct {
// 最近修改时间
UpdateTime *sdktime.SdkTime `json:"update_time"`
- // 是否已上架云市场: - 1:已上架 - 2:未上架 - 3:审核中
+ // 是否已上架云商店: - 1:已上架 - 2:未上架 - 3:审核中
OnSellStatus int32 `json:"on_sell_status"`
// 分组上绑定的独立域名列表
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_v2_request.go
index ace5d9a1..d44cd786 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_api_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateApiV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// API的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_request.go
index 102eecd3..3458d355 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateAppV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 应用编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_response.go
index 72378e5f..4ab007a8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_app_v2_response.go
@@ -20,7 +20,7 @@ type UpdateAppV2Response struct {
// 描述
Remark *string `json:"remark,omitempty"`
- // APP的创建者 - USER:用户自行创建 - MARKET:云市场分配 暂不支持MARKET
+ // APP的创建者 - USER:用户自行创建 - MARKET:云商店分配 暂不支持MARKET
Creator *UpdateAppV2ResponseCreator `json:"creator,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_request.go
new file mode 100644
index 00000000..aa91e833
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateBackendInstancesV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ Body *VpcMemberModify `json:"body,omitempty"`
+}
+
+func (o UpdateBackendInstancesV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBackendInstancesV2Request struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBackendInstancesV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_response.go
new file mode 100644
index 00000000..8bd13e7b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_backend_instances_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateBackendInstancesV2Response struct {
+
+ // 本次返回的列表长度
+ Size int32 `json:"size"`
+
+ // 满足条件的记录数
+ Total int64 `json:"total"`
+
+ // 本次查询到的云服务器列表
+ Members *[]VpcMemberInfo `json:"members,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateBackendInstancesV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBackendInstancesV2Response struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBackendInstancesV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_request.go
new file mode 100644
index 00000000..8778e420
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateCertificateV2Request struct {
+
+ // 证书的编号
+ CertificateId string `json:"certificate_id"`
+
+ Body *CertificateForm `json:"body,omitempty"`
+}
+
+func (o UpdateCertificateV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCertificateV2Request struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCertificateV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_response.go
new file mode 100644
index 00000000..438ee942
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_certificate_v2_response.go
@@ -0,0 +1,128 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type UpdateCertificateV2Response struct {
+
+ // 证书ID
+ Id *string `json:"id,omitempty"`
+
+ // 证书名称
+ Name *string `json:"name,omitempty"`
+
+ // 证书类型 - global:全局证书 - instance:实例证书
+ Type *UpdateCertificateV2ResponseType `json:"type,omitempty"`
+
+ // 实例编码 - `type`为`global`时,缺省为common - `type`为`instance`时,为实例编码
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 租户项目编号
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 域名
+ CommonName *string `json:"common_name,omitempty"`
+
+ // san扩展域名
+ San *[]string `json:"san,omitempty"`
+
+ // 有效期到
+ NotAfter *sdktime.SdkTime `json:"not_after,omitempty"`
+
+ // 签名算法
+ SignatureAlgorithm *string `json:"signature_algorithm,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+
+ // 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。
+ IsHasTrustedRootCa *bool `json:"is_has_trusted_root_ca,omitempty"`
+
+ // 版本
+ Version *int32 `json:"version,omitempty"`
+
+ // 公司、组织
+ Organization *[]string `json:"organization,omitempty"`
+
+ // 部门
+ OrganizationalUnit *[]string `json:"organizational_unit,omitempty"`
+
+ // 城市
+ Locality *[]string `json:"locality,omitempty"`
+
+ // 省份
+ State *[]string `json:"state,omitempty"`
+
+ // 国家
+ Country *[]string `json:"country,omitempty"`
+
+ // 有效期从
+ NotBefore *sdktime.SdkTime `json:"not_before,omitempty"`
+
+ // 序列号
+ SerialNumber *string `json:"serial_number,omitempty"`
+
+ // 颁发者
+ Issuer *[]string `json:"issuer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateCertificateV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCertificateV2Response struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCertificateV2Response", string(data)}, " ")
+}
+
+type UpdateCertificateV2ResponseType struct {
+ value string
+}
+
+type UpdateCertificateV2ResponseTypeEnum struct {
+ GLOBAL UpdateCertificateV2ResponseType
+ INSTANCE UpdateCertificateV2ResponseType
+}
+
+func GetUpdateCertificateV2ResponseTypeEnum() UpdateCertificateV2ResponseTypeEnum {
+ return UpdateCertificateV2ResponseTypeEnum{
+ GLOBAL: UpdateCertificateV2ResponseType{
+ value: "global",
+ },
+ INSTANCE: UpdateCertificateV2ResponseType{
+ value: "instance",
+ },
+ }
+}
+
+func (c UpdateCertificateV2ResponseType) Value() string {
+ return c.value
+}
+
+func (c UpdateCertificateV2ResponseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateCertificateV2ResponseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_request.go
index 639a4312..950138d7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateCustomAuthorizerV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 自定义认证的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_response.go
index 7cfb3bf8..00776d43 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_custom_authorizer_v2_response.go
@@ -23,6 +23,12 @@ type UpdateCustomAuthorizerV2Response struct {
// 函数地址。
AuthorizerUri string `json:"authorizer_uri"`
+ // 函数版本。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerVersion *string `json:"authorizer_version,omitempty"`
+
+ // 函数别名地址。 当函数别名URN和函数版本同时传入时,函数版本将被忽略,只会使用函数别名URN
+ AuthorizerAliasUri *string `json:"authorizer_alias_uri,omitempty"`
+
// 认证来源
Identities *[]Identity `json:"identities,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_request.go
index 0a3ce46f..756205c3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateDomainV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_response.go
index aaa48b63..065eebe2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_domain_v2_response.go
@@ -22,8 +22,14 @@ type UpdateDomainV2Response struct {
Status *UpdateDomainV2ResponseStatus `json:"status,omitempty"`
// 支持的最小SSL版本
- MinSslVersion *string `json:"min_ssl_version,omitempty"`
- HttpStatusCode int `json:"-"`
+ MinSslVersion *string `json:"min_ssl_version,omitempty"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o UpdateDomainV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_engress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_engress_eip_v2_request.go
index a1da09f5..63fab017 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_engress_eip_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_engress_eip_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateEngressEipV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *OpenEngressEipReq `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_environment_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_environment_v2_request.go
index 3c74f531..04edd56d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_environment_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_environment_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateEnvironmentV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 环境的ID
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_type_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_type_v2_request.go
index 24aac5bf..aeb630fb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_type_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_type_v2_request.go
@@ -12,7 +12,7 @@ import (
// Request Object
type UpdateGatewayResponseTypeV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_v2_request.go
index 61d09f66..0384c6b9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_gateway_response_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateGatewayResponseV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 分组的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_request.go
new file mode 100644
index 00000000..3ed492d5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateHealthCheckRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ Body *VpcHealthConfig `json:"body,omitempty"`
+}
+
+func (o UpdateHealthCheckRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateHealthCheckRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateHealthCheckRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_response.go
new file mode 100644
index 00000000..12cfeb39
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_health_check_response.go
@@ -0,0 +1,194 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type UpdateHealthCheckResponse struct {
+
+ // 使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
+ Protocol UpdateHealthCheckResponseProtocol `json:"protocol"`
+
+ // 健康检查时的目标路径。protocol = http或https时必选
+ Path *string `json:"path,omitempty"`
+
+ // 健康检查时的请求方法
+ Method *UpdateHealthCheckResponseMethod `json:"method,omitempty"`
+
+ // 健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
+ Port *int32 `json:"port,omitempty"`
+
+ // 正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
+ ThresholdNormal int32 `json:"threshold_normal"`
+
+ // 异常阈值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
+ ThresholdAbnormal int32 `json:"threshold_abnormal"`
+
+ // 间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
+ TimeInterval int32 `json:"time_interval"`
+
+ // 检查目标HTTP响应时,判断成功使用的HTTP响应码。取值范围为100到599之前的任意整数值,支持如下三种格式: - 多个值,如:200,201,202 - 一系列值,如:200-299 - 组合值,如:201,202,210-299 protocol = http时必选
+ HttpCode *string `json:"http_code,omitempty"`
+
+ // 是否开启双向认证。若开启,则使用实例配置中的backend_client_certificate配置项的证书
+ EnableClientSsl *bool `json:"enable_client_ssl,omitempty"`
+
+ // 健康检查状态 - 1:可用 - 2:不可用
+ Status *UpdateHealthCheckResponseStatus `json:"status,omitempty"`
+
+ // 超时时间:检查期间,无响应的时间,单位为秒。必须小于time_interval字段取值。
+ Timeout *int32 `json:"timeout,omitempty"`
+
+ // VPC通道的编号
+ VpcChannelId *string `json:"vpc_channel_id,omitempty"`
+
+ // 健康检查的编号
+ Id *string `json:"id,omitempty"`
+
+ // 创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateHealthCheckResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateHealthCheckResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateHealthCheckResponse", string(data)}, " ")
+}
+
+type UpdateHealthCheckResponseProtocol struct {
+ value string
+}
+
+type UpdateHealthCheckResponseProtocolEnum struct {
+ TCP UpdateHealthCheckResponseProtocol
+ HTTP UpdateHealthCheckResponseProtocol
+ HTTPS UpdateHealthCheckResponseProtocol
+}
+
+func GetUpdateHealthCheckResponseProtocolEnum() UpdateHealthCheckResponseProtocolEnum {
+ return UpdateHealthCheckResponseProtocolEnum{
+ TCP: UpdateHealthCheckResponseProtocol{
+ value: "TCP",
+ },
+ HTTP: UpdateHealthCheckResponseProtocol{
+ value: "HTTP",
+ },
+ HTTPS: UpdateHealthCheckResponseProtocol{
+ value: "HTTPS",
+ },
+ }
+}
+
+func (c UpdateHealthCheckResponseProtocol) Value() string {
+ return c.value
+}
+
+func (c UpdateHealthCheckResponseProtocol) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateHealthCheckResponseProtocol) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type UpdateHealthCheckResponseMethod struct {
+ value string
+}
+
+type UpdateHealthCheckResponseMethodEnum struct {
+ GET UpdateHealthCheckResponseMethod
+ HEAD UpdateHealthCheckResponseMethod
+}
+
+func GetUpdateHealthCheckResponseMethodEnum() UpdateHealthCheckResponseMethodEnum {
+ return UpdateHealthCheckResponseMethodEnum{
+ GET: UpdateHealthCheckResponseMethod{
+ value: "GET",
+ },
+ HEAD: UpdateHealthCheckResponseMethod{
+ value: "HEAD",
+ },
+ }
+}
+
+func (c UpdateHealthCheckResponseMethod) Value() string {
+ return c.value
+}
+
+func (c UpdateHealthCheckResponseMethod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateHealthCheckResponseMethod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type UpdateHealthCheckResponseStatus struct {
+ value int32
+}
+
+type UpdateHealthCheckResponseStatusEnum struct {
+ E_1 UpdateHealthCheckResponseStatus
+ E_2 UpdateHealthCheckResponseStatus
+}
+
+func GetUpdateHealthCheckResponseStatusEnum() UpdateHealthCheckResponseStatusEnum {
+ return UpdateHealthCheckResponseStatusEnum{
+ E_1: UpdateHealthCheckResponseStatus{
+ value: 1,
+ }, E_2: UpdateHealthCheckResponseStatus{
+ value: 2,
+ },
+ }
+}
+
+func (c UpdateHealthCheckResponseStatus) Value() int32 {
+ return c.value
+}
+
+func (c UpdateHealthCheckResponseStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateHealthCheckResponseStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_request.go
new file mode 100644
index 00000000..f66910c4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateIngressEipV2Request struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ Body *OpenIngressEipReq `json:"body,omitempty"`
+}
+
+func (o UpdateIngressEipV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateIngressEipV2Request struct{}"
+ }
+
+ return strings.Join([]string{"UpdateIngressEipV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_response.go
new file mode 100644
index 00000000..41499168
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_ingress_eip_v2_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateIngressEipV2Response struct {
+
+ // 实例ID
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 公网入口变更的任务信息
+ Message *string `json:"message,omitempty"`
+
+ // 任务编号
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateIngressEipV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateIngressEipV2Response struct{}"
+ }
+
+ return strings.Join([]string{"UpdateIngressEipV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_request.go
index 84dc41c4..d02d58a4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateInstanceV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
Body *InstanceModReq `json:"body,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_response.go
index 7eb38c30..ff982b09 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_instance_v2_response.go
@@ -42,10 +42,10 @@ type UpdateInstanceV2Response struct {
// 实例绑定的弹性IP地址
EipAddress *string `json:"eip_address,omitempty"`
- // 实例计费方式: - 0:按需计费 - 1:包周期计费
+ // 实例计费方式: - 0:按需计费 - 1:[包周期计费](tag:hws,hws_hk)[暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
ChargingMode *UpdateInstanceV2ResponseChargingMode `json:"charging_mode,omitempty"`
- // 包周期计费订单编号
+ // [包周期计费订单编号](tag:hws,hws_hk)[计费订单编号参数暂未使用](tag:cmcc,ctc,DT,g42,hk_g42,hk_sbc,hk_tm,hws_eu,hws_ocb,OCB,sbc,tm)
CbcMetadata *string `json:"cbc_metadata,omitempty"`
// 实例使用的负载均衡器类型 - lvs Linux虚拟服务器 - elb 弹性负载均衡,elb仅部分region支持
@@ -72,6 +72,9 @@ type UpdateInstanceV2Response struct {
// 实例入口,虚拟私有云访问地址
IngressIp *string `json:"ingress_ip,omitempty"`
+ // 实例入口,虚拟私有云访问地址 (IPv6)
+ IngressIpV6 *string `json:"ingress_ip_v6,omitempty"`
+
// 实例所属用户ID
UserId *string `json:"user_id,omitempty"`
@@ -87,6 +90,9 @@ type UpdateInstanceV2Response struct {
// 出公网带宽
BandwidthSize *int32 `json:"bandwidth_size,omitempty"`
+ // 出公网带宽计费模式
+ BandwidthChargingMode *string `json:"bandwidth_charging_mode,omitempty"`
+
// 可用区
AvailableZoneIds *string `json:"available_zone_ids,omitempty"`
@@ -116,8 +122,14 @@ type UpdateInstanceV2Response struct {
Publicips *[]IpDetails `json:"publicips,omitempty"`
// 私网入口地址列表
- Privateips *[]IpDetails `json:"privateips,omitempty"`
- HttpStatusCode int `json:"-"`
+ Privateips *[]IpDetails `json:"privateips,omitempty"`
+
+ // 实例是否可释放 - true:可释放 - false:不可释放
+ IsReleasable *bool `json:"is_releasable,omitempty"`
+
+ // 入公网带宽计费模式
+ IngressBandwidthChargingMode *string `json:"ingress_bandwidth_charging_mode,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o UpdateInstanceV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_request.go
new file mode 100644
index 00000000..84502566
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_request.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateMemberGroupRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // VPC通道的编号
+ VpcChannelId string `json:"vpc_channel_id"`
+
+ // VPC通道后端服务器组编号
+ MemberGroupId string `json:"member_group_id"`
+
+ Body *MemberGroupCreate `json:"body,omitempty"`
+}
+
+func (o UpdateMemberGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateMemberGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateMemberGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_response.go
new file mode 100644
index 00000000..40205ff2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_member_group_response.go
@@ -0,0 +1,52 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateMemberGroupResponse struct {
+
+ // VPC通道后端服务器组名称
+ MemberGroupName string `json:"member_group_name"`
+
+ // VPC通道后端服务器组描述
+ MemberGroupRemark *string `json:"member_group_remark,omitempty"`
+
+ // VPC通道后端服务器组权重值。 当前服务器组存在服务器且此权重值存在时,自动使用此权重值分配权重。
+ MemberGroupWeight *int32 `json:"member_group_weight,omitempty"`
+
+ // VPC通道后端服务器组的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
+
+ // VPC通道后端服务器组的版本,仅VPC通道类型为微服务时支持。
+ MicroserviceVersion *string `json:"microservice_version,omitempty"`
+
+ // VPC通道后端服务器组的端口号,仅VPC通道类型为微服务时支持。端口号为0时后端服务器组下的所有地址沿用原来负载端口继承逻辑。
+ MicroservicePort *int32 `json:"microservice_port,omitempty"`
+
+ // VPC通道后端服务器组的标签,仅VPC通道类型为微服务时支持。
+ MicroserviceLabels *[]MicroserviceLabel `json:"microservice_labels,omitempty"`
+
+ // VPC通道后端服务器组编号
+ MemberGroupId *string `json:"member_group_id,omitempty"`
+
+ // VPC通道后端服务器组创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // VPC通道后端服务器组更新时间
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateMemberGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateMemberGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateMemberGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_request.go
new file mode 100644
index 00000000..b28e840d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdatePluginRequest struct {
+
+ // 实例ID,在API网关控制台的“实例信息”中获取。
+ InstanceId string `json:"instance_id"`
+
+ // 插件编号
+ PluginId string `json:"plugin_id"`
+
+ Body *PluginCreate `json:"body,omitempty"`
+}
+
+func (o UpdatePluginRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdatePluginRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdatePluginRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_response.go
new file mode 100644
index 00000000..48766be5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_plugin_response.go
@@ -0,0 +1,139 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type UpdatePluginResponse struct {
+
+ // 插件编码。
+ PluginId *string `json:"plugin_id,omitempty"`
+
+ // 插件名称。支持汉字,英文,数字,中划线,下划线,且只能以英文和汉字开头,3-255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 插件类型 - cors:跨域资源共享 - set_resp_headers:HTTP响应头管理 - kafka_log:Kafka日志推送 - breaker:断路器 - rate_limit: 流量控制
+ PluginType *UpdatePluginResponsePluginType `json:"plugin_type,omitempty"`
+
+ // 插件可见范围。global:全局可见;
+ PluginScope *UpdatePluginResponsePluginScope `json:"plugin_scope,omitempty"`
+
+ // 插件定义内容,支持json。参考提供的具体模型定义 CorsPluginContent:跨域资源共享 定义内容 SetRespHeadersContent:HTTP响应头管理 定义内容 KafkaLogContent:Kafka日志推送 定义内容 BreakerContent:断路器 定义内容 RateLimitContent 流量控制 定义内容
+ PluginContent *string `json:"plugin_content,omitempty"`
+
+ // 插件描述,255字符。 > 中文字符必须为UTF-8或者unicode编码。
+ Remark *string `json:"remark,omitempty"`
+
+ // 创建时间。
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *sdktime.SdkTime `json:"update_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdatePluginResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdatePluginResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdatePluginResponse", string(data)}, " ")
+}
+
+type UpdatePluginResponsePluginType struct {
+ value string
+}
+
+type UpdatePluginResponsePluginTypeEnum struct {
+ CORS UpdatePluginResponsePluginType
+ SET_RESP_HEADERS UpdatePluginResponsePluginType
+ KAFKA_LOG UpdatePluginResponsePluginType
+ BREAKER UpdatePluginResponsePluginType
+ RATE_LIMIT UpdatePluginResponsePluginType
+}
+
+func GetUpdatePluginResponsePluginTypeEnum() UpdatePluginResponsePluginTypeEnum {
+ return UpdatePluginResponsePluginTypeEnum{
+ CORS: UpdatePluginResponsePluginType{
+ value: "cors",
+ },
+ SET_RESP_HEADERS: UpdatePluginResponsePluginType{
+ value: "set_resp_headers",
+ },
+ KAFKA_LOG: UpdatePluginResponsePluginType{
+ value: "kafka_log",
+ },
+ BREAKER: UpdatePluginResponsePluginType{
+ value: "breaker",
+ },
+ RATE_LIMIT: UpdatePluginResponsePluginType{
+ value: "rate_limit",
+ },
+ }
+}
+
+func (c UpdatePluginResponsePluginType) Value() string {
+ return c.value
+}
+
+func (c UpdatePluginResponsePluginType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdatePluginResponsePluginType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type UpdatePluginResponsePluginScope struct {
+ value string
+}
+
+type UpdatePluginResponsePluginScopeEnum struct {
+ GLOBAL UpdatePluginResponsePluginScope
+}
+
+func GetUpdatePluginResponsePluginScopeEnum() UpdatePluginResponsePluginScopeEnum {
+ return UpdatePluginResponsePluginScopeEnum{
+ GLOBAL: UpdatePluginResponsePluginScope{
+ value: "global",
+ },
+ }
+}
+
+func (c UpdatePluginResponsePluginScope) Value() string {
+ return c.value
+}
+
+func (c UpdatePluginResponsePluginScope) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdatePluginResponsePluginScope) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_request.go
index b4e36fdc..fa490553 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateRequestThrottlingPolicyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_response.go
index 2e87a36e..31c35bef 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_request_throttling_policy_v2_response.go
@@ -32,7 +32,7 @@ type UpdateRequestThrottlingPolicyV2Response struct {
// 是否开启动态流控: - TRUE - FALSE 暂不支持
EnableAdaptiveControl *string `json:"enable_adaptive_control,omitempty"`
- // [用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。](tag:hws,hws_hk,hcs,fcs,g42)[site不支持用户流量限制,输入值为0](tag:Site)
+ // 用户流量限制是指一个API在时长之内每一个用户能访问的次数上限,该数值不超过API流量限制值。输入的值不超过2147483647。正整数。
UserCallLimits *int32 `json:"user_call_limits,omitempty"`
// 流量控制的时长单位。与“流量限制次数”配合使用,表示单位时间内的API请求次数上限。输入的值不超过2147483647。正整数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_request.go
index 2feb6ac1..f33f8db5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateSignatureKeyV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 签名密钥编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_response.go
index c33ce5d3..fa2fffc6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_signature_key_v2_response.go
@@ -17,13 +17,13 @@ type UpdateSignatureKeyV2Response struct {
// 签名密钥类型: - hmac - basic - public_key - aes basic类型需要实例升级到对应版本,若不存在可联系技术工程师升级。 public_key类型开启实例配置public_key才可使用,实例特性配置详情请参考“附录 > 实例支持的APIG特性”,如确认实例不存在public_key配置可联系技术工程师开启。 aes类型需要实例升级到对应版本,若不存在可联系技术工程师升级。
SignType *UpdateSignatureKeyV2ResponseSignType `json:"sign_type,omitempty"`
- // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名秘钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
+ // 签名密钥的key。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母或数字开头,8 ~ 32字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,且只能以英文字母开头,4 ~ 32字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,+,/,=,可以英文字母,数字,+,/开头,8 ~ 512字符。未填写时后台自动生成。 - aes类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,签名算法为aes-128-cfb时为16个字符,签名算法为aes-256-cfb时为32个字符。未填写时后台自动生成。
SignKey *string `json:"sign_key,omitempty"`
- // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名秘钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
+ // 签名密钥的密钥。 - hmac类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,16 ~ 64字符。未填写时后台自动生成。 - basic类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,且只能以英文字母或数字开头,8 ~ 64字符。未填写时后台自动生成。 - public_key类型的签名密钥key:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,15 ~ 2048字符。未填写时后台自动生成。 - aes类型签名密钥使用的向量:支持英文,数字,下划线,中划线,!,@,#,$,%,+,/,=,可以英文字母,数字,+,/开头,16个字符。未填写时后台自动生成。
SignSecret *string `json:"sign_secret,omitempty"`
- // 签名算法。默认值为空,仅aes类型签名秘钥支持选择签名算法,其他类型签名秘钥不支持签名算法。
+ // 签名算法。默认值为空,仅aes类型签名密钥支持选择签名算法,其他类型签名密钥不支持签名算法。
SignAlgorithm *UpdateSignatureKeyV2ResponseSignAlgorithm `json:"sign_algorithm,omitempty"`
// 更新时间
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_special_throttling_configuration_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_special_throttling_configuration_v2_request.go
index e3a3aad7..83099a3f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_special_throttling_configuration_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_special_throttling_configuration_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateSpecialThrottlingConfigurationV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// 流控策略的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_request.go
index fba3ccbf..5733b4cc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type UpdateVpcChannelV2Request struct {
- // 实例ID
+ // 实例ID,在API网关控制台的“实例信息”中获取。
InstanceId string `json:"instance_id"`
// VPC通道的编号
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_response.go
index 75ab18e3..a31a36c5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_update_vpc_channel_v2_response.go
@@ -14,14 +14,20 @@ type UpdateVpcChannelV2Response struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *UpdateVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy UpdateVpcChannelV2ResponseBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *UpdateVpcChannelV2ResponseMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType UpdateVpcChannelV2ResponseMemberType `json:"member_type"`
+
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
// VPC通道的创建时间
CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
@@ -32,9 +38,11 @@ type UpdateVpcChannelV2Response struct {
// VPC通道的状态。 - 1:正常 - 2:异常
Status *UpdateVpcChannelV2ResponseStatus `json:"status,omitempty"`
- // 后端云服务器组列表。 暂不支持
- MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
- HttpStatusCode int `json:"-"`
+ // 后端云服务器组列表。
+ MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
+
+ MicroserviceInfo *MicroServiceInfo `json:"microservice_info,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o UpdateVpcChannelV2Response) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain.go
index 21c12cf7..c9494ab1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain.go
@@ -28,6 +28,12 @@ type UrlDomain struct {
// 最小ssl协议版本号。支持TLSv1.1或TLSv1.2
MinSslVersion *UrlDomainMinSslVersion `json:"min_ssl_version,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+
+ // 是否存在信任的根证书CA。当绑定证书存在trusted_root_ca时为true。
+ IsHasTrustedRootCa *bool `json:"is_has_trusted_root_ca,omitempty"`
}
func (o UrlDomain) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base.go
index 656aa4f7..96fec68a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base.go
@@ -13,6 +13,9 @@ type UrlDomainBase struct {
// 最小ssl协议版本号。支持TLSv1.1或TLSv1.2
MinSslVersion *UrlDomainBaseMinSslVersion `json:"min_ssl_version,omitempty"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
}
func (o UrlDomainBase) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base_info.go
index 2a7a1d1e..b221f7b0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_base_info.go
@@ -22,6 +22,12 @@ type UrlDomainBaseInfo struct {
// 支持的最小SSL版本
MinSslVersion string `json:"min_ssl_version"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
}
func (o UrlDomainBaseInfo) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_create.go
index 0e64002e..a6b3a765 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_create.go
@@ -14,6 +14,9 @@ type UrlDomainCreate struct {
// 最小ssl协议版本号。支持TLSv1.1或TLSv1.2
MinSslVersion *UrlDomainCreateMinSslVersion `json:"min_ssl_version,omitempty"`
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
// 自定义域名。长度为0-255位的字符串,需要符合域名规范。
UrlDomain *string `json:"url_domain,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_modify.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_modify.go
index 4ddb3702..8e36ec6e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_modify.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_modify.go
@@ -13,6 +13,12 @@ type UrlDomainModify struct {
// 最小ssl协议版本号。支持TLSv1.1或TLSv1.2
MinSslVersion UrlDomainModifyMinSslVersion `json:"min_ssl_version"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
}
func (o UrlDomainModify) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_ref_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_ref_info.go
new file mode 100644
index 00000000..36f0c85a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_url_domain_ref_info.go
@@ -0,0 +1,103 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 域名详情及关联的证书、分组信息
+type UrlDomainRefInfo struct {
+
+ // 自定义域名
+ UrlDomain string `json:"url_domain"`
+
+ // 自定义域名的编号
+ Id string `json:"id"`
+
+ // CNAME解析状态 - 1: 未解析 - 2: 解析中 - 3: 解析成功 - 4: 解析失败
+ Status UrlDomainRefInfoStatus `json:"status"`
+
+ // 支持的最小SSL版本
+ MinSslVersion string `json:"min_ssl_version"`
+
+ // 是否开启http到https的重定向,false为关闭,true为开启,默认为false
+ IsHttpRedirectToHttps *bool `json:"is_http_redirect_to_https,omitempty"`
+
+ // 是否开启客户端证书校验。只有绑定证书时,该参数才生效。当绑定证书存在trusted_root_ca时,默认开启;当绑定证书不存在trusted_root_ca时,默认关闭。
+ VerifiedClientCertificateEnabled *bool `json:"verified_client_certificate_enabled,omitempty"`
+
+ // 证书ID
+ SslId *string `json:"ssl_id,omitempty"`
+
+ // 证书名称
+ SslName *string `json:"ssl_name,omitempty"`
+
+ // 所属API分组ID
+ ApiGroupId string `json:"api_group_id"`
+
+ // 所属API分组名称
+ ApiGroupName string `json:"api_group_name"`
+
+ // 所属实例ID
+ InstanceId string `json:"instance_id"`
+}
+
+func (o UrlDomainRefInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UrlDomainRefInfo struct{}"
+ }
+
+ return strings.Join([]string{"UrlDomainRefInfo", string(data)}, " ")
+}
+
+type UrlDomainRefInfoStatus struct {
+ value int32
+}
+
+type UrlDomainRefInfoStatusEnum struct {
+ E_1 UrlDomainRefInfoStatus
+ E_2 UrlDomainRefInfoStatus
+ E_3 UrlDomainRefInfoStatus
+ E_4 UrlDomainRefInfoStatus
+}
+
+func GetUrlDomainRefInfoStatusEnum() UrlDomainRefInfoStatusEnum {
+ return UrlDomainRefInfoStatusEnum{
+ E_1: UrlDomainRefInfoStatus{
+ value: 1,
+ }, E_2: UrlDomainRefInfoStatus{
+ value: 2,
+ }, E_3: UrlDomainRefInfoStatus{
+ value: 3,
+ }, E_4: UrlDomainRefInfoStatus{
+ value: 4,
+ },
+ }
+}
+
+func (c UrlDomainRefInfoStatus) Value() int32 {
+ return c.value
+}
+
+func (c UrlDomainRefInfoStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UrlDomainRefInfoStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_base.go
index 931c7823..48340e3a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_base.go
@@ -14,14 +14,20 @@ type VpcBase struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *VpcBaseBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy VpcBaseBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *VpcBaseMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType VpcBaseMemberType `json:"member_type"`
+
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
}
func (o VpcBase) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_channel_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_channel_info.go
index 99b9b922..cf3ead65 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_channel_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_channel_info.go
@@ -13,14 +13,20 @@ type VpcChannelInfo struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *VpcChannelInfoBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy VpcChannelInfoBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *VpcChannelInfoMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType VpcChannelInfoMemberType `json:"member_type"`
+
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
// VPC通道的创建时间
CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
@@ -31,8 +37,10 @@ type VpcChannelInfo struct {
// VPC通道的状态。 - 1:正常 - 2:异常
Status *VpcChannelInfoStatus `json:"status,omitempty"`
- // 后端云服务器组列表。 暂不支持
+ // 后端云服务器组列表。
MemberGroups *[]MemberGroupInfo `json:"member_groups,omitempty"`
+
+ MicroserviceInfo *MicroServiceInfo `json:"microservice_info,omitempty"`
}
func (o VpcChannelInfo) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_create.go
index 9f5579cf..bd37da7b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_create.go
@@ -14,19 +14,30 @@ type VpcCreate struct {
// VPC通道的名称。 长度为3 ~ 64位的字符串,字符串由中文、英文字母、数字、中划线、下划线组成,且只能以英文或中文开头。 > 中文字符必须为UTF-8或者unicode编码。
Name string `json:"name"`
- // VPC通道中主机的端口号。 取值范围1 ~ 65535,仅VPC通道类型为2时有效。 VPC通道类型为2时必选。
- Port *int32 `json:"port,omitempty"`
+ // VPC通道中主机的端口号。 取值范围1 ~ 65535。
+ Port int32 `json:"port"`
- // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri) VPC通道类型为2时必选。
- BalanceStrategy *VpcCreateBalanceStrategy `json:"balance_strategy,omitempty"`
+ // 分发算法。 - 1:加权轮询(wrr) - 2:加权最少连接(wleastconn) - 3:源地址哈希(source) - 4:URI哈希(uri)
+ BalanceStrategy VpcCreateBalanceStrategy `json:"balance_strategy"`
- // VPC通道的成员类型。 - ip - ecs VPC通道类型为2时必选。
- MemberType *VpcCreateMemberType `json:"member_type,omitempty"`
+ // VPC通道的成员类型。 - ip - ecs
+ MemberType VpcCreateMemberType `json:"member_type"`
- // VPC后端实例列表,VPC通道类型为1时,有且仅有1个后端实例。
+ // vpc通道类型,默认为服务器类型。 - 2:服务器类型 - 3:微服务类型
+ Type *int32 `json:"type,omitempty"`
+
+ // VPC通道的字典编码 支持英文,数字,特殊字符(-_.) 暂不支持
+ DictCode *string `json:"dict_code,omitempty"`
+
+ // VPC通道后端服务器组列表
+ MemberGroups *[]MemberGroupCreate `json:"member_groups,omitempty"`
+
+ // VPC后端实例列表。
Members *[]MemberInfo `json:"members,omitempty"`
VpcHealthConfig *VpcHealthConfig `json:"vpc_health_config,omitempty"`
+
+ MicroserviceInfo *MicroServiceCreate `json:"microservice_info,omitempty"`
}
func (o VpcCreate) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config.go
index cabce434..d1efbaf8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config.go
@@ -9,24 +9,25 @@ import (
"strings"
)
+// 健康检查详情。
type VpcHealthConfig struct {
- // 使用以下协议,对VPC中主机执行健康检查。
+ // 使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
Protocol VpcHealthConfigProtocol `json:"protocol"`
- // 健康检查时的目标路径。protocol = http时必选
+ // 健康检查时的目标路径。protocol = http或https时必选
Path *string `json:"path,omitempty"`
// 健康检查时的请求方法
Method *VpcHealthConfigMethod `json:"method,omitempty"`
- // 健康检查的目标端口,缺省时为VPC中主机的端口号。
+ // 健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
Port *int32 `json:"port,omitempty"`
// 正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
ThresholdNormal int32 `json:"threshold_normal"`
- // 异常阙值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
+ // 异常阈值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
ThresholdAbnormal int32 `json:"threshold_abnormal"`
// 间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_base.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_base.go
index f05b9112..f5a3c080 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_base.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_base.go
@@ -9,25 +9,25 @@ import (
"strings"
)
-// 健康检查详情,VPC通道类型为2时必选。
+// 健康检查详情。
type VpcHealthConfigBase struct {
- // 使用以下协议,对VPC中主机执行健康检查。
+ // 使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
Protocol VpcHealthConfigBaseProtocol `json:"protocol"`
- // 健康检查时的目标路径。protocol = http时必选
+ // 健康检查时的目标路径。protocol = http或https时必选
Path *string `json:"path,omitempty"`
// 健康检查时的请求方法
Method *VpcHealthConfigBaseMethod `json:"method,omitempty"`
- // 健康检查的目标端口,缺省时为VPC中主机的端口号。
+ // 健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
Port *int32 `json:"port,omitempty"`
// 正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
ThresholdNormal int32 `json:"threshold_normal"`
- // 异常阙值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
+ // 异常阈值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
ThresholdAbnormal int32 `json:"threshold_abnormal"`
// 间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_info.go
index dabc6faa..1dbe82d3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_health_config_info.go
@@ -8,25 +8,25 @@ import (
"strings"
)
-// 健康检查详情,仅VPC通道类型为2时有效。
+// 健康检查详情。
type VpcHealthConfigInfo struct {
- // 使用以下协议,对VPC中主机执行健康检查。
+ // 使用以下协议,对VPC中主机执行健康检查: - TCP - HTTP - HTTPS
Protocol VpcHealthConfigInfoProtocol `json:"protocol"`
- // 健康检查时的目标路径。protocol = http时必选
+ // 健康检查时的目标路径。protocol = http或https时必选
Path *string `json:"path,omitempty"`
// 健康检查时的请求方法
Method *VpcHealthConfigInfoMethod `json:"method,omitempty"`
- // 健康检查的目标端口,缺省时为VPC中主机的端口号。
+ // 健康检查的目标端口,缺少或port = 0时为VPC中主机的端口号。 若此端口存在非0值,则使用此端口进行健康检查。
Port *int32 `json:"port,omitempty"`
// 正常阈值。判定VPC通道中主机正常的依据为:连续检查x成功,x为您设置的正常阈值。
ThresholdNormal int32 `json:"threshold_normal"`
- // 异常阙值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
+ // 异常阈值。判定VPC通道中主机异常的依据为:连续检查x失败,x为您设置的异常阈值。
ThresholdAbnormal int32 `json:"threshold_abnormal"`
// 间隔时间:连续两次检查的间隔时间,单位为秒。必须大于timeout字段取值。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_info.go
index 8550024d..167ff523 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_info.go
@@ -19,7 +19,7 @@ type VpcMemberInfo struct {
// 是否备用节点。 开启后对应后端服务为备用节点,仅当非备用节点全部故障时工作。 实例需要升级到对应版本才支持此功能,若不支持请联系技术支持。
IsBackup *bool `json:"is_backup,omitempty"`
- // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。 暂不支持
+ // 后端服务器组名称。为后端服务地址选择服务器组,便于统一修改对应服务器组的后端地址。
MemberGroupName *string `json:"member_group_name,omitempty"`
// 后端服务器状态 - 1:可用 - 2:不可用
@@ -28,10 +28,10 @@ type VpcMemberInfo struct {
// 后端服务器端口
Port *int32 `json:"port,omitempty"`
- // 后端云服务器的编号。 后端实例类型为instance时生效,支持英文,数字,“-”,“_”,1 ~ 64字符。
+ // 后端云服务器的编号。 后端实例类型为ecs时必填,支持英文,数字,“-”,“_”,1 ~ 64字符。
EcsId *string `json:"ecs_id,omitempty"`
- // 后端云服务器的名称。 后端实例类型为instance时生效,支持汉字,英文,数字,“-”,“_”,“.”,1 ~ 64字符。
+ // 后端云服务器的名称。 后端实例类型为ecs时必填,支持汉字,英文,数字,“-”,“_”,“.”,1 ~ 64字符。
EcsName *string `json:"ecs_name,omitempty"`
// 后端实例对象的编号
@@ -43,7 +43,7 @@ type VpcMemberInfo struct {
// 后端实例增加到VPC通道的时间
CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
- // 后端服务器组编号 暂不支持
+ // 后端服务器组编号
MemberGroupId *string `json:"member_group_id,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_modify.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_modify.go
new file mode 100644
index 00000000..c8360244
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/apig/v2/model/model_vpc_member_modify.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type VpcMemberModify struct {
+
+ // 后端实例列表
+ Members *[]MemberInfo `json:"members,omitempty"`
+
+ // 需要修改的后端服务器组 不传时使用members中的定义对VPC通道后端进行全量覆盖修改。 传入时,只对members中对应后端服务器组的后端实例进行处理,其他后端服务器组的入参会被忽略。例如:member_group_name=primary时,只处理members中后端服务器组为105c6902457144a4820dff8b1ad63331的后端实例。
+ MemberGroupName *string `json:"member_group_name,omitempty"`
+}
+
+func (o VpcMemberModify) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "VpcMemberModify struct{}"
+ }
+
+ return strings.Join([]string{"VpcMemberModify", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_client.go
index 15a8d362..76a84448 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_client.go
@@ -23,8 +23,7 @@ func CbrClientBuilder() *http_client.HcHttpClientBuilder {
//
// 添加备份可共享的成员,只有云服务器备份可以添加备份共享成员,且仅支持在同一区域的不同用户间共享。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) AddMember(request *model.AddMemberRequest) (*model.AddMemberResponse, error) {
requestDef := GenReqDefForAddMember()
@@ -45,8 +44,7 @@ func (c *CbrClient) AddMemberInvoker(request *model.AddMemberRequest) *AddMember
//
// 存储库添加资源
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) AddVaultResource(request *model.AddVaultResourceRequest) (*model.AddVaultResourceResponse, error) {
requestDef := GenReqDefForAddVaultResource()
@@ -67,8 +65,7 @@ func (c *CbrClient) AddVaultResourceInvoker(request *model.AddVaultResourceReque
//
// 存储库设置策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) AssociateVaultPolicy(request *model.AssociateVaultPolicyRequest) (*model.AssociateVaultPolicyResponse, error) {
requestDef := GenReqDefForAssociateVaultPolicy()
@@ -96,8 +93,7 @@ func (c *CbrClient) AssociateVaultPolicyInvoker(request *model.AssociateVaultPol
// 删除时,允许重复key。
// 删除时,如果删除的标签不存在,默认处理成功,删除时不对标签字符集范围做校验。key长度127个字符,value为255个字符。删除时tags结构体不能缺失,key不能为空,或者空字符串。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) BatchCreateAndDeleteVaultTags(request *model.BatchCreateAndDeleteVaultTagsRequest) (*model.BatchCreateAndDeleteVaultTagsResponse, error) {
requestDef := GenReqDefForBatchCreateAndDeleteVaultTags()
@@ -118,8 +114,7 @@ func (c *CbrClient) BatchCreateAndDeleteVaultTagsInvoker(request *model.BatchCre
//
// 跨区域复制备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CopyBackup(request *model.CopyBackupRequest) (*model.CopyBackupResponse, error) {
requestDef := GenReqDefForCopyBackup()
@@ -140,8 +135,7 @@ func (c *CbrClient) CopyBackupInvoker(request *model.CopyBackupRequest) *CopyBac
//
// 执行复制
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CopyCheckpoint(request *model.CopyCheckpointRequest) (*model.CopyCheckpointResponse, error) {
requestDef := GenReqDefForCopyCheckpoint()
@@ -162,8 +156,7 @@ func (c *CbrClient) CopyCheckpointInvoker(request *model.CopyCheckpointRequest)
//
// 对存储库执行备份,生成备份还原点
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CreateCheckpoint(request *model.CreateCheckpointRequest) (*model.CreateCheckpointResponse, error) {
requestDef := GenReqDefForCreateCheckpoint()
@@ -184,8 +177,7 @@ func (c *CbrClient) CreateCheckpointInvoker(request *model.CreateCheckpointReque
//
// 创建策略,策略分为备份策略和复制策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CreatePolicy(request *model.CreatePolicyRequest) (*model.CreatePolicyResponse, error) {
requestDef := GenReqDefForCreatePolicy()
@@ -206,8 +198,7 @@ func (c *CbrClient) CreatePolicyInvoker(request *model.CreatePolicyRequest) *Cre
//
// 创建存储库
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CreateVault(request *model.CreateVaultRequest) (*model.CreateVaultResponse, error) {
requestDef := GenReqDefForCreateVault()
@@ -229,8 +220,7 @@ func (c *CbrClient) CreateVaultInvoker(request *model.CreateVaultRequest) *Creat
// 一个资源上最多有10个标签。
// 此接口为幂等接口:创建时,如果创建的标签已经存在(key相同),则覆盖。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) CreateVaultTags(request *model.CreateVaultTagsRequest) (*model.CreateVaultTagsResponse, error) {
requestDef := GenReqDefForCreateVaultTags()
@@ -251,8 +241,7 @@ func (c *CbrClient) CreateVaultTagsInvoker(request *model.CreateVaultTagsRequest
//
// 删除单个备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error) {
requestDef := GenReqDefForDeleteBackup()
@@ -273,8 +262,7 @@ func (c *CbrClient) DeleteBackupInvoker(request *model.DeleteBackupRequest) *Del
//
// 删除指定的备份共享成员
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DeleteMember(request *model.DeleteMemberRequest) (*model.DeleteMemberResponse, error) {
requestDef := GenReqDefForDeleteMember()
@@ -295,8 +283,7 @@ func (c *CbrClient) DeleteMemberInvoker(request *model.DeleteMemberRequest) *Del
//
// 删除策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DeletePolicy(request *model.DeletePolicyRequest) (*model.DeletePolicyResponse, error) {
requestDef := GenReqDefForDeletePolicy()
@@ -317,8 +304,7 @@ func (c *CbrClient) DeletePolicyInvoker(request *model.DeletePolicyRequest) *Del
//
// 删除存储库。若删除储存库,将一并删除存储库中的所有备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DeleteVault(request *model.DeleteVaultRequest) (*model.DeleteVaultResponse, error) {
requestDef := GenReqDefForDeleteVault()
@@ -339,8 +325,7 @@ func (c *CbrClient) DeleteVaultInvoker(request *model.DeleteVaultRequest) *Delet
//
// 幂等接口:删除时,如果删除的标签不存在,返回404。Key不能为空或者空字符串。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DeleteVaultTag(request *model.DeleteVaultTagRequest) (*model.DeleteVaultTagResponse, error) {
requestDef := GenReqDefForDeleteVaultTag()
@@ -361,8 +346,7 @@ func (c *CbrClient) DeleteVaultTagInvoker(request *model.DeleteVaultTagRequest)
//
// 存储库解除策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) DisassociateVaultPolicy(request *model.DisassociateVaultPolicyRequest) (*model.DisassociateVaultPolicyResponse, error) {
requestDef := GenReqDefForDisassociateVaultPolicy()
@@ -383,8 +367,7 @@ func (c *CbrClient) DisassociateVaultPolicyInvoker(request *model.DisassociateVa
//
// 同步线下混合云VMware备份副本
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ImportBackup(request *model.ImportBackupRequest) (*model.ImportBackupResponse, error) {
requestDef := GenReqDefForImportBackup()
@@ -405,8 +388,7 @@ func (c *CbrClient) ImportBackupInvoker(request *model.ImportBackupRequest) *Imp
//
// 查询所有副本
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error) {
requestDef := GenReqDefForListBackups()
@@ -427,8 +409,7 @@ func (c *CbrClient) ListBackupsInvoker(request *model.ListBackupsRequest) *ListB
//
// 查询任务列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ListOpLogs(request *model.ListOpLogsRequest) (*model.ListOpLogsResponse, error) {
requestDef := GenReqDefForListOpLogs()
@@ -449,8 +430,7 @@ func (c *CbrClient) ListOpLogsInvoker(request *model.ListOpLogsRequest) *ListOpL
//
// 查询策略列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ListPolicies(request *model.ListPoliciesRequest) (*model.ListPoliciesResponse, error) {
requestDef := GenReqDefForListPolicies()
@@ -471,8 +451,7 @@ func (c *CbrClient) ListPoliciesInvoker(request *model.ListPoliciesRequest) *Lis
//
// 查询可保护性资源列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ListProtectable(request *model.ListProtectableRequest) (*model.ListProtectableResponse, error) {
requestDef := GenReqDefForListProtectable()
@@ -493,8 +472,7 @@ func (c *CbrClient) ListProtectableInvoker(request *model.ListProtectableRequest
//
// 查询存储库列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ListVault(request *model.ListVaultRequest) (*model.ListVaultResponse, error) {
requestDef := GenReqDefForListVault()
@@ -515,8 +493,7 @@ func (c *CbrClient) ListVaultInvoker(request *model.ListVaultRequest) *ListVault
//
// 支持资源迁移到另一个存储库,不删除备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) MigrateVaultResource(request *model.MigrateVaultResourceRequest) (*model.MigrateVaultResourceResponse, error) {
requestDef := GenReqDefForMigrateVaultResource()
@@ -537,8 +514,7 @@ func (c *CbrClient) MigrateVaultResourceInvoker(request *model.MigrateVaultResou
//
// 移除存储库中的资源,若移除资源,将一并删除该资源在保管库中的备份
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) RemoveVaultResource(request *model.RemoveVaultResourceRequest) (*model.RemoveVaultResourceResponse, error) {
requestDef := GenReqDefForRemoveVaultResource()
@@ -559,8 +535,7 @@ func (c *CbrClient) RemoveVaultResourceInvoker(request *model.RemoveVaultResourc
//
// 恢复备份数据
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) RestoreBackup(request *model.RestoreBackupRequest) (*model.RestoreBackupResponse, error) {
requestDef := GenReqDefForRestoreBackup()
@@ -581,8 +556,7 @@ func (c *CbrClient) RestoreBackupInvoker(request *model.RestoreBackupRequest) *R
//
// 根据指定id查询单个副本。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowBackup(request *model.ShowBackupRequest) (*model.ShowBackupResponse, error) {
requestDef := GenReqDefForShowBackup()
@@ -603,8 +577,7 @@ func (c *CbrClient) ShowBackupInvoker(request *model.ShowBackupRequest) *ShowBac
//
// 根据还原点ID查询指定还原点
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowCheckpoint(request *model.ShowCheckpointRequest) (*model.ShowCheckpointResponse, error) {
requestDef := GenReqDefForShowCheckpoint()
@@ -625,8 +598,7 @@ func (c *CbrClient) ShowCheckpointInvoker(request *model.ShowCheckpointRequest)
//
// 获取备份成员的详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowMemberDetail(request *model.ShowMemberDetailRequest) (*model.ShowMemberDetailResponse, error) {
requestDef := GenReqDefForShowMemberDetail()
@@ -647,8 +619,7 @@ func (c *CbrClient) ShowMemberDetailInvoker(request *model.ShowMemberDetailReque
//
// 获取备份共享成员的列表信息
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowMembersDetail(request *model.ShowMembersDetailRequest) (*model.ShowMembersDetailResponse, error) {
requestDef := GenReqDefForShowMembersDetail()
@@ -669,8 +640,7 @@ func (c *CbrClient) ShowMembersDetailInvoker(request *model.ShowMembersDetailReq
//
// 根据指定任务ID查询任务
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowOpLog(request *model.ShowOpLogRequest) (*model.ShowOpLogResponse, error) {
requestDef := GenReqDefForShowOpLog()
@@ -691,8 +661,7 @@ func (c *CbrClient) ShowOpLogInvoker(request *model.ShowOpLogRequest) *ShowOpLog
//
// 查询单个策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowPolicy(request *model.ShowPolicyRequest) (*model.ShowPolicyResponse, error) {
requestDef := GenReqDefForShowPolicy()
@@ -713,8 +682,7 @@ func (c *CbrClient) ShowPolicyInvoker(request *model.ShowPolicyRequest) *ShowPol
//
// 根据ID查询可保护性资源
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowProtectable(request *model.ShowProtectableRequest) (*model.ShowProtectableResponse, error) {
requestDef := GenReqDefForShowProtectable()
@@ -735,8 +703,7 @@ func (c *CbrClient) ShowProtectableInvoker(request *model.ShowProtectableRequest
//
// 查询本区域的复制能力
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowReplicationCapabilities(request *model.ShowReplicationCapabilitiesRequest) (*model.ShowReplicationCapabilitiesResponse, error) {
requestDef := GenReqDefForShowReplicationCapabilities()
@@ -757,8 +724,7 @@ func (c *CbrClient) ShowReplicationCapabilitiesInvoker(request *model.ShowReplic
//
// 根据ID查询指定存储库
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowVault(request *model.ShowVaultRequest) (*model.ShowVaultResponse, error) {
requestDef := GenReqDefForShowVault()
@@ -780,8 +746,7 @@ func (c *CbrClient) ShowVaultInvoker(request *model.ShowVaultRequest) *ShowVault
// 查询租户在指定Region和实例类型的所有标签集合
// 标签管理服务需要能够列出当前租户全部已使用的标签集合,为各服务Console打标签和过滤实例时提供标签联想功能
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowVaultProjectTag(request *model.ShowVaultProjectTagRequest) (*model.ShowVaultProjectTagResponse, error) {
requestDef := GenReqDefForShowVaultProjectTag()
@@ -803,8 +768,7 @@ func (c *CbrClient) ShowVaultProjectTagInvoker(request *model.ShowVaultProjectTa
// 使用标签过滤实例
// 标签管理服务需要提供按标签过滤各服务实例并汇总显示在列表中,需要各服务提供查询能力
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowVaultResourceInstances(request *model.ShowVaultResourceInstancesRequest) (*model.ShowVaultResourceInstancesResponse, error) {
requestDef := GenReqDefForShowVaultResourceInstances()
@@ -826,8 +790,7 @@ func (c *CbrClient) ShowVaultResourceInstancesInvoker(request *model.ShowVaultRe
// 查询指定实例的标签信息
// 标签管理服务需要使用该接口查询指定实例的全部标签数据
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) ShowVaultTag(request *model.ShowVaultTagRequest) (*model.ShowVaultTagResponse, error) {
requestDef := GenReqDefForShowVaultTag()
@@ -848,8 +811,7 @@ func (c *CbrClient) ShowVaultTagInvoker(request *model.ShowVaultTagRequest) *Sho
//
// 更新备份共享成员的状态,需要接收方执行此API。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) UpdateMemberStatus(request *model.UpdateMemberStatusRequest) (*model.UpdateMemberStatusResponse, error) {
requestDef := GenReqDefForUpdateMemberStatus()
@@ -870,8 +832,7 @@ func (c *CbrClient) UpdateMemberStatusInvoker(request *model.UpdateMemberStatusR
//
// 修改策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) UpdatePolicy(request *model.UpdatePolicyRequest) (*model.UpdatePolicyResponse, error) {
requestDef := GenReqDefForUpdatePolicy()
@@ -892,8 +853,7 @@ func (c *CbrClient) UpdatePolicyInvoker(request *model.UpdatePolicyRequest) *Upd
//
// 根据存储库ID修改存储库
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CbrClient) UpdateVault(request *model.UpdateVaultRequest) (*model.UpdateVaultResponse, error) {
requestDef := GenReqDefForUpdateVault()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_meta.go
index 79a884d9..fb8a6466 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/cbr_meta.go
@@ -405,6 +405,10 @@ func GenReqDefForListBackups() *def.HttpRequestDef {
WithName("ShowReplication").
WithJsonTag("show_replication").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Incremental").
+ WithJsonTag("incremental").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_detail.go
deleted file mode 100644
index a192cc95..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_detail.go
+++ /dev/null
@@ -1,239 +0,0 @@
-package model
-
-import (
- "errors"
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
- "strings"
-)
-
-type BackupDetail struct {
-
- // 还原点ID
- CheckpointId string `json:"checkpoint_id"`
-
- // 创建时间,例如:\"2020-02-05T10:38:34.209782\"
- CreatedAt *sdktime.SdkTime `json:"created_at"`
-
- // 备份描述
- Description string `json:"description"`
-
- // 过期时间,例如:\"2020-02-05T10:38:34.209782\"
- ExpiredAt *sdktime.SdkTime `json:"expired_at"`
-
- ExtendInfo *BackupExtendInfo `json:"extend_info"`
-
- // 备份ID
- Id string `json:"id"`
-
- // 备份类型
- ImageType BackupDetailImageType `json:"image_type"`
-
- // 备份名称
- Name string `json:"name"`
-
- // 父备份ID
- ParentId string `json:"parent_id"`
-
- // 项目ID
- ProjectId string `json:"project_id"`
-
- // 备份时间
- ProtectedAt string `json:"protected_at"`
-
- // 资源可用区
- ResourceAz string `json:"resource_az"`
-
- // 资源ID
- ResourceId string `json:"resource_id"`
-
- // 资源名称
- ResourceName string `json:"resource_name"`
-
- // 资源大小,单位为GB
- ResourceSize int32 `json:"resource_size"`
-
- // 资源类型
- ResourceType BackupDetailResourceType `json:"resource_type"`
-
- // 备份状态
- Status BackupDetailStatus `json:"status"`
-
- // 更新时间,例如:\"2020-02-05T10:38:34.209782\"
- UpdatedAt *sdktime.SdkTime `json:"updated_at"`
-
- // 存储库ID
- VaultId string `json:"vault_id"`
-
- // 复制记录
- ReplicationRecords *[]ReplicationRecordGet `json:"replication_records,omitempty"`
-
- // 企业项目id,默认为‘0’。
- EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
-
- // 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。
- ProviderId string `json:"provider_id"`
-
- //
- Children []BackupResp `json:"children"`
-}
-
-func (o BackupDetail) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "BackupDetail struct{}"
- }
-
- return strings.Join([]string{"BackupDetail", string(data)}, " ")
-}
-
-type BackupDetailImageType struct {
- value string
-}
-
-type BackupDetailImageTypeEnum struct {
- BACKUP BackupDetailImageType
- REPLICATION BackupDetailImageType
-}
-
-func GetBackupDetailImageTypeEnum() BackupDetailImageTypeEnum {
- return BackupDetailImageTypeEnum{
- BACKUP: BackupDetailImageType{
- value: "backup",
- },
- REPLICATION: BackupDetailImageType{
- value: "replication",
- },
- }
-}
-
-func (c BackupDetailImageType) Value() string {
- return c.value
-}
-
-func (c BackupDetailImageType) MarshalJSON() ([]byte, error) {
- return utils.Marshal(c.value)
-}
-
-func (c *BackupDetailImageType) UnmarshalJSON(b []byte) error {
- myConverter := converter.StringConverterFactory("string")
- if myConverter != nil {
- val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
- if err == nil {
- c.value = val.(string)
- return nil
- }
- return err
- } else {
- return errors.New("convert enum data to string error")
- }
-}
-
-type BackupDetailResourceType struct {
- value string
-}
-
-type BackupDetailResourceTypeEnum struct {
- OSNOVASERVER BackupDetailResourceType
- OSCINDERVOLUME BackupDetailResourceType
-}
-
-func GetBackupDetailResourceTypeEnum() BackupDetailResourceTypeEnum {
- return BackupDetailResourceTypeEnum{
- OSNOVASERVER: BackupDetailResourceType{
- value: "OS::Nova::Server",
- },
- OSCINDERVOLUME: BackupDetailResourceType{
- value: "OS::Cinder::Volume",
- },
- }
-}
-
-func (c BackupDetailResourceType) Value() string {
- return c.value
-}
-
-func (c BackupDetailResourceType) MarshalJSON() ([]byte, error) {
- return utils.Marshal(c.value)
-}
-
-func (c *BackupDetailResourceType) UnmarshalJSON(b []byte) error {
- myConverter := converter.StringConverterFactory("string")
- if myConverter != nil {
- val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
- if err == nil {
- c.value = val.(string)
- return nil
- }
- return err
- } else {
- return errors.New("convert enum data to string error")
- }
-}
-
-type BackupDetailStatus struct {
- value string
-}
-
-type BackupDetailStatusEnum struct {
- AVAILABLE BackupDetailStatus
- PROTECTING BackupDetailStatus
- DELETING BackupDetailStatus
- RESTORING BackupDetailStatus
- ERROR BackupDetailStatus
- WAITING_PROTECT BackupDetailStatus
- WAITING_DELETE BackupDetailStatus
- WAITING_RESTORE BackupDetailStatus
-}
-
-func GetBackupDetailStatusEnum() BackupDetailStatusEnum {
- return BackupDetailStatusEnum{
- AVAILABLE: BackupDetailStatus{
- value: "available",
- },
- PROTECTING: BackupDetailStatus{
- value: "protecting",
- },
- DELETING: BackupDetailStatus{
- value: "deleting",
- },
- RESTORING: BackupDetailStatus{
- value: "restoring",
- },
- ERROR: BackupDetailStatus{
- value: "error",
- },
- WAITING_PROTECT: BackupDetailStatus{
- value: "waiting_protect",
- },
- WAITING_DELETE: BackupDetailStatus{
- value: "waiting_delete",
- },
- WAITING_RESTORE: BackupDetailStatus{
- value: "waiting_restore",
- },
- }
-}
-
-func (c BackupDetailStatus) Value() string {
- return c.value
-}
-
-func (c BackupDetailStatus) MarshalJSON() ([]byte, error) {
- return utils.Marshal(c.value)
-}
-
-func (c *BackupDetailStatus) UnmarshalJSON(b []byte) error {
- myConverter := converter.StringConverterFactory("string")
- if myConverter != nil {
- val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
- if err == nil {
- c.value = val.(string)
- return nil
- }
- return err
- } else {
- return errors.New("convert enum data to string error")
- }
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_resp.go
index dbff74b6..3a456788 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_backup_resp.go
@@ -54,7 +54,7 @@ type BackupResp struct {
// 资源大小,单位为GB
ResourceSize int32 `json:"resource_size"`
- // 资源类型
+ // 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
ResourceType BackupRespResourceType `json:"resource_type"`
// 备份状态
@@ -74,6 +74,9 @@ type BackupResp struct {
// 备份提供商ID,用于区分备份对象。当前取值包含 0daac4c5-6707-4851-97ba-169e36266b66,该值代表备份对象为云服务器。d1603440-187d-4516-af25-121250c7cc97,该值代表备份对象为云硬盘。3f3c3220-245c-4805-b811-758870015881, 该值代表备份对象为SFS Turbo。a13639de-00be-4e94-af30-26912d75e4a2,该值代表备份对象为混合云VMware备份。
ProviderId string `json:"provider_id"`
+
+ // 子副本列表
+ Children *[]BackupResp `json:"children,omitempty"`
}
func (o BackupResp) String() string {
@@ -132,8 +135,9 @@ type BackupRespResourceType struct {
}
type BackupRespResourceTypeEnum struct {
- OSNOVASERVER BackupRespResourceType
- OSCINDERVOLUME BackupRespResourceType
+ OSNOVASERVER BackupRespResourceType
+ OSCINDERVOLUME BackupRespResourceType
+ OSWORKSPACEDESKTOP_V2 BackupRespResourceType
}
func GetBackupRespResourceTypeEnum() BackupRespResourceTypeEnum {
@@ -144,6 +148,9 @@ func GetBackupRespResourceTypeEnum() BackupRespResourceTypeEnum {
OSCINDERVOLUME: BackupRespResourceType{
value: "OS::Cinder::Volume",
},
+ OSWORKSPACEDESKTOP_V2: BackupRespResourceType{
+ value: "OS::Workspace::DesktopV2",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing.go
index eac5821c..c0d172c3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing.go
@@ -23,7 +23,7 @@ type Billing struct {
// 崩溃一致性(crash_consistent)或应用一致性(app_consistent)
ConsistentLevel BillingConsistentLevel `json:"consistent_level"`
- // 对象类型
+ // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。
ObjectType *BillingObjectType `json:"object_type,omitempty"`
// 订单ID
@@ -197,8 +197,12 @@ type BillingObjectType struct {
}
type BillingObjectTypeEnum struct {
- SERVER BillingObjectType
- DISK BillingObjectType
+ SERVER BillingObjectType
+ DISK BillingObjectType
+ WORKSPACE BillingObjectType
+ VMWARE BillingObjectType
+ RDS BillingObjectType
+ FILE BillingObjectType
}
func GetBillingObjectTypeEnum() BillingObjectTypeEnum {
@@ -209,6 +213,18 @@ func GetBillingObjectTypeEnum() BillingObjectTypeEnum {
DISK: BillingObjectType{
value: "disk",
},
+ WORKSPACE: BillingObjectType{
+ value: "workspace",
+ },
+ VMWARE: BillingObjectType{
+ value: "vmware",
+ },
+ RDS: BillingObjectType{
+ value: "rds",
+ },
+ FILE: BillingObjectType{
+ value: "file",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing_create.go
index 39976674..26d49496 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_billing_create.go
@@ -18,7 +18,7 @@ type BillingCreate struct {
// 规格,崩溃一致性(crash_consistent)或应用一致性(app_consistent)
ConsistentLevel BillingCreateConsistentLevel `json:"consistent_level"`
- // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo)。
+ // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。
ObjectType BillingCreateObjectType `json:"object_type"`
// 保护类型:备份(backup)、复制(replication)
@@ -49,6 +49,15 @@ type BillingCreate struct {
// 存储库多az属性,默认为false
IsMultiAz *bool `json:"is_multi_az,omitempty"`
+
+ // 促销信息,包周期时可选参数
+ PromotionInfo *string `json:"promotion_info,omitempty"`
+
+ // 购买模式,包周期时可选参数
+ PurchaseMode *string `json:"purchase_mode,omitempty"`
+
+ // 订单 ID,包周期时可选参数
+ OrderId *string `json:"order_id,omitempty"`
}
func (o BillingCreate) String() string {
@@ -149,9 +158,13 @@ type BillingCreateObjectType struct {
}
type BillingCreateObjectTypeEnum struct {
- SERVER BillingCreateObjectType
- DISK BillingCreateObjectType
- TURBO BillingCreateObjectType
+ SERVER BillingCreateObjectType
+ DISK BillingCreateObjectType
+ TURBO BillingCreateObjectType
+ WORKSPACE BillingCreateObjectType
+ VMWARE BillingCreateObjectType
+ RDS BillingCreateObjectType
+ FILE BillingCreateObjectType
}
func GetBillingCreateObjectTypeEnum() BillingCreateObjectTypeEnum {
@@ -165,6 +178,18 @@ func GetBillingCreateObjectTypeEnum() BillingCreateObjectTypeEnum {
TURBO: BillingCreateObjectType{
value: "turbo",
},
+ WORKSPACE: BillingCreateObjectType{
+ value: "workspace",
+ },
+ VMWARE: BillingCreateObjectType{
+ value: "vmware",
+ },
+ RDS: BillingCreateObjectType{
+ value: "rds",
+ },
+ FILE: BillingCreateObjectType{
+ value: "file",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_bind_rules_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_bind_rules_tags.go
new file mode 100644
index 00000000..f3104a86
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_bind_rules_tags.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 自动绑定规则标签
+type BindRulesTags struct {
+
+ // key不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 [key只能由中文,字母,数字,“-”,“_”组成。](tag:hws,hws_hk,fcs_vm,ctc) [key只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc,g42,hcso_dt)
+ Key string `json:"key"`
+
+ // value不能包含非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。 [value只能由中文,字母,数字,“-”,“_”,“.”组成。](tag:hws,hws_hk,fcs_vm,ctc) [value只能由字母,数字,“_”,“-”组成。](tag:dt,ocb,tlf,sbc,g42,hcso_dt)
+ Value string `json:"value"`
+}
+
+func (o BindRulesTags) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BindRulesTags struct{}"
+ }
+
+ return strings.Join([]string{"BindRulesTags", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_checkpoint_resource_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_checkpoint_resource_resp.go
index 2963f42e..4aebff8e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_checkpoint_resource_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_checkpoint_resource_resp.go
@@ -26,7 +26,7 @@ type CheckpointResourceResp struct {
// 资源已分配容量,单位为GB
ResourceSize *string `json:"resource_size,omitempty"`
- // 待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo
+ // 待备份资源的类型: OS::Nova::Server, OS::Cinder::Volume, OS::Ironic::BareMetalServer, OS::Native::Server, OS::Sfs::Turbo, OS::Workspace::DesktopV2
Type string `json:"type"`
// 副本大小
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_backups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_backups_request.go
index 48ec92fe..a3460d72 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_backups_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_backups_request.go
@@ -15,7 +15,7 @@ type ListBackupsRequest struct {
// 还原点ID
CheckpointId *string `json:"checkpoint_id,omitempty"`
- // 专属云
+ // 专属云 (专属云场景使用,非专属云场景不生效)
Dec *bool `json:"dec,omitempty"`
// 备份产生时间范围的结束时间,格式为%YYYY-%mm-%ddT%HH:%MM:%SSZ,例如2018-02-01T12:00:00Z
@@ -45,7 +45,7 @@ type ListBackupsRequest struct {
// 资源名称
ResourceName *string `json:"resource_name,omitempty"`
- // 资源类型
+ // 资源类型: 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 云桌面:OS::Workspace::DesktopV2
ResourceType *ListBackupsRequestResourceType `json:"resource_type,omitempty"`
// sort的内容为一组由逗号分隔的属性及可选排序方向组成,形如[:],[:],其中direction的取值为asc (升序) 或 desc (降序),如没有传入direction参数,默认为降序,sort内容的长度限制为255个字符。key取值范围:[created_at,updated_at,name,status,protected_at,id]
@@ -77,6 +77,9 @@ type ListBackupsRequest struct {
// 是否返回复制记录
ShowReplication *bool `json:"show_replication,omitempty"`
+
+ // 是否是增备
+ Incremental *bool `json:"incremental,omitempty"`
}
func (o ListBackupsRequest) String() string {
@@ -135,8 +138,9 @@ type ListBackupsRequestResourceType struct {
}
type ListBackupsRequestResourceTypeEnum struct {
- OSCINDERVOLUME ListBackupsRequestResourceType
- OSNOVASERVER ListBackupsRequestResourceType
+ OSCINDERVOLUME ListBackupsRequestResourceType
+ OSNOVASERVER ListBackupsRequestResourceType
+ OSWORKSPACEDESKTOP_V2 ListBackupsRequestResourceType
}
func GetListBackupsRequestResourceTypeEnum() ListBackupsRequestResourceTypeEnum {
@@ -147,6 +151,9 @@ func GetListBackupsRequestResourceTypeEnum() ListBackupsRequestResourceTypeEnum
OSNOVASERVER: ListBackupsRequestResourceType{
value: "OS::Nova::Server",
},
+ OSWORKSPACEDESKTOP_V2: ListBackupsRequestResourceType{
+ value: "OS::Workspace::DesktopV2",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_vault_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_vault_request.go
index fe86dd6c..e2ce40e4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_vault_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_list_vault_request.go
@@ -27,7 +27,7 @@ type ListVaultRequest struct {
// 保护类型
ProtectType *ListVaultRequestProtectType `json:"protect_type,omitempty"`
- // 资源类型
+ // 对象类型:云服务器(server),云硬盘(disk),文件系统(turbo),云桌面(workspace),VMware(vmware),关系型数据库(rds),文件(file)。
ObjectType *string `json:"object_type,omitempty"`
// 企业项目id或all_granted_eps,all_granted_eps表示查询用户有权限的所有企业项目id
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_protectables_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_protectables_resp.go
index 07dc014a..6607699e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_protectables_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_protectables_resp.go
@@ -31,7 +31,7 @@ type ProtectablesResp struct {
// 资源状态
Status *ProtectablesRespStatus `json:"status,omitempty"`
- // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo
+ // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2
Type string `json:"type"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource.go
index c02c3f38..adaa4d99 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource.go
@@ -15,7 +15,7 @@ type Resource struct {
// 待备份资源名称,长度限制:0-255
Name *string `json:"name,omitempty"`
- // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo
+ // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2
Type string `json:"type"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_create.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_create.go
index bae14eca..fa66f75e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_create.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_create.go
@@ -12,7 +12,7 @@ type ResourceCreate struct {
// 待备份资源id
Id string `json:"id"`
- // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo
+ // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2
Type string `json:"type"`
// 名称
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_resp.go
index 8bb37063..f7fc9066 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_resource_resp.go
@@ -25,7 +25,7 @@ type ResourceResp struct {
// 资源已分配容量,单位为GB
Size *int32 `json:"size,omitempty"`
- // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo
+ // 待备份资源的类型, 云服务器: OS::Nova::Server, 云硬盘: OS::Cinder::Volume, 裸金属服务器: OS::Ironic::BareMetalServer, 线下本地服务器: OS::Native::Server, 弹性文件系统: OS::Sfs::Turbo, 云桌面:OS::Workspace::DesktopV2
Type string `json:"type"`
// 副本大小
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_show_backup_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_show_backup_response.go
index 29d259c4..70c25a3e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_show_backup_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_show_backup_response.go
@@ -8,8 +8,8 @@ import (
// Response Object
type ShowBackupResponse struct {
- Backup *BackupDetail `json:"backup,omitempty"`
- HttpStatusCode int `json:"-"`
+ Backup *BackupResp `json:"backup,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ShowBackupResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_bind_rules.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_bind_rules.go
index f201d994..3b538284 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_bind_rules.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_bind_rules.go
@@ -8,8 +8,8 @@ import (
type VaultBindRules struct {
- // 按tags过滤自动绑定的资源
- Tags *[]Tag `json:"tags,omitempty"`
+ // 按tags过滤自动绑定的资源 最小长度:1 最大长度:5
+ Tags *[]BindRulesTags `json:"tags,omitempty"`
}
func (o VaultBindRules) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_get.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_get.go
index 3165f8ff..dc1ad133 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_get.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_get.go
@@ -27,8 +27,8 @@ type VaultGet struct {
// 资源
Resources []ResourceResp `json:"resources"`
- // 标签
- Tags *[]TagsResp `json:"tags,omitempty"`
+ // 存储库标签
+ Tags *[]Tag `json:"tags,omitempty"`
// 企业项目id,默认为‘0’。
EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_resource_instances_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_resource_instances_req.go
index 876ea50e..6fce9750 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_resource_instances_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cbr/v1/model/model_vault_resource_instances_req.go
@@ -39,7 +39,7 @@ type VaultResourceInstancesReq struct {
// 操作标识取值范围为:\"filter\", \"count\"。如果是filter就是分页查询,如果是count只需按照条件将总条数返回即可
Action string `json:"action"`
- // 资源本身支持的查询条件。 matches不允许为空列表。 matches中key不允许重复。
+ // 资源本身支持的查询条件。 matches中key不允许重复。 数组长度最大值为 1,后续再扩展。
Matches *[]Match `json:"matches,omitempty"`
// 云类型
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_client.go
new file mode 100644
index 00000000..27a197fc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_client.go
@@ -0,0 +1,784 @@
+package v3
+
+import (
+ http_client "github.com/huaweicloud/huaweicloud-sdk-go-v3/core"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model"
+)
+
+type CcClient struct {
+ HcClient *http_client.HcHttpClient
+}
+
+func NewCcClient(hcClient *http_client.HcHttpClient) *CcClient {
+ return &CcClient{HcClient: hcClient}
+}
+
+func CcClientBuilder() *http_client.HcHttpClientBuilder {
+ builder := http_client.NewHcHttpClientBuilder().WithCredentialsType("global.Credentials")
+ return builder
+}
+
+// AssociateBandwidthPackage 将带宽包实例关联到资源
+//
+// 将带宽包实例关联到资源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) AssociateBandwidthPackage(request *model.AssociateBandwidthPackageRequest) (*model.AssociateBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForAssociateBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AssociateBandwidthPackageResponse), nil
+ }
+}
+
+// AssociateBandwidthPackageInvoker 将带宽包实例关联到资源
+func (c *CcClient) AssociateBandwidthPackageInvoker(request *model.AssociateBandwidthPackageRequest) *AssociateBandwidthPackageInvoker {
+ requestDef := GenReqDefForAssociateBandwidthPackage()
+ return &AssociateBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchCreateDeleteTags 批量创建和删除资源标签
+//
+// 批量创建和删除标签
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) BatchCreateDeleteTags(request *model.BatchCreateDeleteTagsRequest) (*model.BatchCreateDeleteTagsResponse, error) {
+ requestDef := GenReqDefForBatchCreateDeleteTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateDeleteTagsResponse), nil
+ }
+}
+
+// BatchCreateDeleteTagsInvoker 批量创建和删除资源标签
+func (c *CcClient) BatchCreateDeleteTagsInvoker(request *model.BatchCreateDeleteTagsRequest) *BatchCreateDeleteTagsInvoker {
+ requestDef := GenReqDefForBatchCreateDeleteTags()
+ return &BatchCreateDeleteTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateAuthorisation 创建授权
+//
+// 网络实例所属租户授予云连接实例所属租户加载其网络实例的权限。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateAuthorisation(request *model.CreateAuthorisationRequest) (*model.CreateAuthorisationResponse, error) {
+ requestDef := GenReqDefForCreateAuthorisation()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateAuthorisationResponse), nil
+ }
+}
+
+// CreateAuthorisationInvoker 创建授权
+func (c *CcClient) CreateAuthorisationInvoker(request *model.CreateAuthorisationRequest) *CreateAuthorisationInvoker {
+ requestDef := GenReqDefForCreateAuthorisation()
+ return &CreateAuthorisationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateBandwidthPackage 创建带宽包实例
+//
+// 创建带宽包实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateBandwidthPackage(request *model.CreateBandwidthPackageRequest) (*model.CreateBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForCreateBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateBandwidthPackageResponse), nil
+ }
+}
+
+// CreateBandwidthPackageInvoker 创建带宽包实例
+func (c *CcClient) CreateBandwidthPackageInvoker(request *model.CreateBandwidthPackageRequest) *CreateBandwidthPackageInvoker {
+ requestDef := GenReqDefForCreateBandwidthPackage()
+ return &CreateBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateCloudConnection 创建云连接实例
+//
+// 创建云连接实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateCloudConnection(request *model.CreateCloudConnectionRequest) (*model.CreateCloudConnectionResponse, error) {
+ requestDef := GenReqDefForCreateCloudConnection()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateCloudConnectionResponse), nil
+ }
+}
+
+// CreateCloudConnectionInvoker 创建云连接实例
+func (c *CcClient) CreateCloudConnectionInvoker(request *model.CreateCloudConnectionRequest) *CreateCloudConnectionInvoker {
+ requestDef := GenReqDefForCreateCloudConnection()
+ return &CreateCloudConnectionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateInterRegionBandwidth 创建域间带宽实例
+//
+// 创建域间带宽实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateInterRegionBandwidth(request *model.CreateInterRegionBandwidthRequest) (*model.CreateInterRegionBandwidthResponse, error) {
+ requestDef := GenReqDefForCreateInterRegionBandwidth()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateInterRegionBandwidthResponse), nil
+ }
+}
+
+// CreateInterRegionBandwidthInvoker 创建域间带宽实例
+func (c *CcClient) CreateInterRegionBandwidthInvoker(request *model.CreateInterRegionBandwidthRequest) *CreateInterRegionBandwidthInvoker {
+ requestDef := GenReqDefForCreateInterRegionBandwidth()
+ return &CreateInterRegionBandwidthInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateNetworkInstance 创建网络实例
+//
+// 创建网络实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateNetworkInstance(request *model.CreateNetworkInstanceRequest) (*model.CreateNetworkInstanceResponse, error) {
+ requestDef := GenReqDefForCreateNetworkInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateNetworkInstanceResponse), nil
+ }
+}
+
+// CreateNetworkInstanceInvoker 创建网络实例
+func (c *CcClient) CreateNetworkInstanceInvoker(request *model.CreateNetworkInstanceRequest) *CreateNetworkInstanceInvoker {
+ requestDef := GenReqDefForCreateNetworkInstance()
+ return &CreateNetworkInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateTag 添加资源标签
+//
+// 添加资源标签
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) CreateTag(request *model.CreateTagRequest) (*model.CreateTagResponse, error) {
+ requestDef := GenReqDefForCreateTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateTagResponse), nil
+ }
+}
+
+// CreateTagInvoker 添加资源标签
+func (c *CcClient) CreateTagInvoker(request *model.CreateTagRequest) *CreateTagInvoker {
+ requestDef := GenReqDefForCreateTag()
+ return &CreateTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteAuthorisation 删除授权
+//
+// 网络实例所属租户取消授予云连接实例所属租户加载其网络实例的权限。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteAuthorisation(request *model.DeleteAuthorisationRequest) (*model.DeleteAuthorisationResponse, error) {
+ requestDef := GenReqDefForDeleteAuthorisation()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteAuthorisationResponse), nil
+ }
+}
+
+// DeleteAuthorisationInvoker 删除授权
+func (c *CcClient) DeleteAuthorisationInvoker(request *model.DeleteAuthorisationRequest) *DeleteAuthorisationInvoker {
+ requestDef := GenReqDefForDeleteAuthorisation()
+ return &DeleteAuthorisationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteBandwidthPackage 删除带宽包实例
+//
+// 删除带宽包实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteBandwidthPackage(request *model.DeleteBandwidthPackageRequest) (*model.DeleteBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForDeleteBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteBandwidthPackageResponse), nil
+ }
+}
+
+// DeleteBandwidthPackageInvoker 删除带宽包实例
+func (c *CcClient) DeleteBandwidthPackageInvoker(request *model.DeleteBandwidthPackageRequest) *DeleteBandwidthPackageInvoker {
+ requestDef := GenReqDefForDeleteBandwidthPackage()
+ return &DeleteBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteCloudConnection 删除云连接实例
+//
+// 删除云连接实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteCloudConnection(request *model.DeleteCloudConnectionRequest) (*model.DeleteCloudConnectionResponse, error) {
+ requestDef := GenReqDefForDeleteCloudConnection()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteCloudConnectionResponse), nil
+ }
+}
+
+// DeleteCloudConnectionInvoker 删除云连接实例
+func (c *CcClient) DeleteCloudConnectionInvoker(request *model.DeleteCloudConnectionRequest) *DeleteCloudConnectionInvoker {
+ requestDef := GenReqDefForDeleteCloudConnection()
+ return &DeleteCloudConnectionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteInterRegionBandwidth 删除域间带宽实例
+//
+// 删除域间带宽实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteInterRegionBandwidth(request *model.DeleteInterRegionBandwidthRequest) (*model.DeleteInterRegionBandwidthResponse, error) {
+ requestDef := GenReqDefForDeleteInterRegionBandwidth()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteInterRegionBandwidthResponse), nil
+ }
+}
+
+// DeleteInterRegionBandwidthInvoker 删除域间带宽实例
+func (c *CcClient) DeleteInterRegionBandwidthInvoker(request *model.DeleteInterRegionBandwidthRequest) *DeleteInterRegionBandwidthInvoker {
+ requestDef := GenReqDefForDeleteInterRegionBandwidth()
+ return &DeleteInterRegionBandwidthInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteNetworkInstance 删除网络实例
+//
+// 删除网络实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteNetworkInstance(request *model.DeleteNetworkInstanceRequest) (*model.DeleteNetworkInstanceResponse, error) {
+ requestDef := GenReqDefForDeleteNetworkInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteNetworkInstanceResponse), nil
+ }
+}
+
+// DeleteNetworkInstanceInvoker 删除网络实例
+func (c *CcClient) DeleteNetworkInstanceInvoker(request *model.DeleteNetworkInstanceRequest) *DeleteNetworkInstanceInvoker {
+ requestDef := GenReqDefForDeleteNetworkInstance()
+ return &DeleteNetworkInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteTag 删除资源标签
+//
+// 删除资源标签
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DeleteTag(request *model.DeleteTagRequest) (*model.DeleteTagResponse, error) {
+ requestDef := GenReqDefForDeleteTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteTagResponse), nil
+ }
+}
+
+// DeleteTagInvoker 删除资源标签
+func (c *CcClient) DeleteTagInvoker(request *model.DeleteTagRequest) *DeleteTagInvoker {
+ requestDef := GenReqDefForDeleteTag()
+ return &DeleteTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DisassociateBandwidthPackage 将带宽包实例与资源解关联
+//
+// 将带宽包实例与资源解关联。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) DisassociateBandwidthPackage(request *model.DisassociateBandwidthPackageRequest) (*model.DisassociateBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForDisassociateBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DisassociateBandwidthPackageResponse), nil
+ }
+}
+
+// DisassociateBandwidthPackageInvoker 将带宽包实例与资源解关联
+func (c *CcClient) DisassociateBandwidthPackageInvoker(request *model.DisassociateBandwidthPackageRequest) *DisassociateBandwidthPackageInvoker {
+ requestDef := GenReqDefForDisassociateBandwidthPackage()
+ return &DisassociateBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAuthorisations 查询授权列表
+//
+// 网络实例所属租户查看其已经授予其他租户的权限。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListAuthorisations(request *model.ListAuthorisationsRequest) (*model.ListAuthorisationsResponse, error) {
+ requestDef := GenReqDefForListAuthorisations()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAuthorisationsResponse), nil
+ }
+}
+
+// ListAuthorisationsInvoker 查询授权列表
+func (c *CcClient) ListAuthorisationsInvoker(request *model.ListAuthorisationsRequest) *ListAuthorisationsInvoker {
+ requestDef := GenReqDefForListAuthorisations()
+ return &ListAuthorisationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListBandwidthPackages 查询带宽包列表
+//
+// 查询带宽包列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListBandwidthPackages(request *model.ListBandwidthPackagesRequest) (*model.ListBandwidthPackagesResponse, error) {
+ requestDef := GenReqDefForListBandwidthPackages()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListBandwidthPackagesResponse), nil
+ }
+}
+
+// ListBandwidthPackagesInvoker 查询带宽包列表
+func (c *CcClient) ListBandwidthPackagesInvoker(request *model.ListBandwidthPackagesRequest) *ListBandwidthPackagesInvoker {
+ requestDef := GenReqDefForListBandwidthPackages()
+ return &ListBandwidthPackagesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListCloudConnectionRoutes 查询云连接路由条目列表
+//
+// 查询云连接路由条目列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListCloudConnectionRoutes(request *model.ListCloudConnectionRoutesRequest) (*model.ListCloudConnectionRoutesResponse, error) {
+ requestDef := GenReqDefForListCloudConnectionRoutes()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListCloudConnectionRoutesResponse), nil
+ }
+}
+
+// ListCloudConnectionRoutesInvoker 查询云连接路由条目列表
+func (c *CcClient) ListCloudConnectionRoutesInvoker(request *model.ListCloudConnectionRoutesRequest) *ListCloudConnectionRoutesInvoker {
+ requestDef := GenReqDefForListCloudConnectionRoutes()
+ return &ListCloudConnectionRoutesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListCloudConnections 查询云连接列表
+//
+// 查询云连接列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListCloudConnections(request *model.ListCloudConnectionsRequest) (*model.ListCloudConnectionsResponse, error) {
+ requestDef := GenReqDefForListCloudConnections()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListCloudConnectionsResponse), nil
+ }
+}
+
+// ListCloudConnectionsInvoker 查询云连接列表
+func (c *CcClient) ListCloudConnectionsInvoker(request *model.ListCloudConnectionsRequest) *ListCloudConnectionsInvoker {
+ requestDef := GenReqDefForListCloudConnections()
+ return &ListCloudConnectionsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListDomainTags 查询账户资源标签
+//
+// 查询账户资源标签
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListDomainTags(request *model.ListDomainTagsRequest) (*model.ListDomainTagsResponse, error) {
+ requestDef := GenReqDefForListDomainTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListDomainTagsResponse), nil
+ }
+}
+
+// ListDomainTagsInvoker 查询账户资源标签
+func (c *CcClient) ListDomainTagsInvoker(request *model.ListDomainTagsRequest) *ListDomainTagsInvoker {
+ requestDef := GenReqDefForListDomainTags()
+ return &ListDomainTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListInterRegionBandwidths 查询域间带宽列表
+//
+// 查询域间带宽列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListInterRegionBandwidths(request *model.ListInterRegionBandwidthsRequest) (*model.ListInterRegionBandwidthsResponse, error) {
+ requestDef := GenReqDefForListInterRegionBandwidths()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListInterRegionBandwidthsResponse), nil
+ }
+}
+
+// ListInterRegionBandwidthsInvoker 查询域间带宽列表
+func (c *CcClient) ListInterRegionBandwidthsInvoker(request *model.ListInterRegionBandwidthsRequest) *ListInterRegionBandwidthsInvoker {
+ requestDef := GenReqDefForListInterRegionBandwidths()
+ return &ListInterRegionBandwidthsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListNetworkInstances 查询网络实例列表
+//
+// 查询云连接列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListNetworkInstances(request *model.ListNetworkInstancesRequest) (*model.ListNetworkInstancesResponse, error) {
+ requestDef := GenReqDefForListNetworkInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListNetworkInstancesResponse), nil
+ }
+}
+
+// ListNetworkInstancesInvoker 查询网络实例列表
+func (c *CcClient) ListNetworkInstancesInvoker(request *model.ListNetworkInstancesRequest) *ListNetworkInstancesInvoker {
+ requestDef := GenReqDefForListNetworkInstances()
+ return &ListNetworkInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListPermissions 查询权限列表
+//
+// 云连接实例所属租户查询其可加载其他租户的网络实例权限。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListPermissions(request *model.ListPermissionsRequest) (*model.ListPermissionsResponse, error) {
+ requestDef := GenReqDefForListPermissions()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPermissionsResponse), nil
+ }
+}
+
+// ListPermissionsInvoker 查询权限列表
+func (c *CcClient) ListPermissionsInvoker(request *model.ListPermissionsRequest) *ListPermissionsInvoker {
+ requestDef := GenReqDefForListPermissions()
+ return &ListPermissionsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListQuotas 查询配额
+//
+// 查询配额
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error) {
+ requestDef := GenReqDefForListQuotas()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListQuotasResponse), nil
+ }
+}
+
+// ListQuotasInvoker 查询配额
+func (c *CcClient) ListQuotasInvoker(request *model.ListQuotasRequest) *ListQuotasInvoker {
+ requestDef := GenReqDefForListQuotas()
+ return &ListQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListResourceByFilterTag 查询资源实例
+//
+// 查询资源实例
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListResourceByFilterTag(request *model.ListResourceByFilterTagRequest) (*model.ListResourceByFilterTagResponse, error) {
+ requestDef := GenReqDefForListResourceByFilterTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListResourceByFilterTagResponse), nil
+ }
+}
+
+// ListResourceByFilterTagInvoker 查询资源实例
+func (c *CcClient) ListResourceByFilterTagInvoker(request *model.ListResourceByFilterTagRequest) *ListResourceByFilterTagInvoker {
+ requestDef := GenReqDefForListResourceByFilterTag()
+ return &ListResourceByFilterTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListTags 查询资源标签
+//
+// 查询资源标签
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ListTags(request *model.ListTagsRequest) (*model.ListTagsResponse, error) {
+ requestDef := GenReqDefForListTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListTagsResponse), nil
+ }
+}
+
+// ListTagsInvoker 查询资源标签
+func (c *CcClient) ListTagsInvoker(request *model.ListTagsRequest) *ListTagsInvoker {
+ requestDef := GenReqDefForListTags()
+ return &ListTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowBandwidthPackage 查询带宽包实例
+//
+// 查询带宽包实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ShowBandwidthPackage(request *model.ShowBandwidthPackageRequest) (*model.ShowBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForShowBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowBandwidthPackageResponse), nil
+ }
+}
+
+// ShowBandwidthPackageInvoker 查询带宽包实例
+func (c *CcClient) ShowBandwidthPackageInvoker(request *model.ShowBandwidthPackageRequest) *ShowBandwidthPackageInvoker {
+ requestDef := GenReqDefForShowBandwidthPackage()
+ return &ShowBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowCloudConnection 查询云连接实例
+//
+// 查询云连接实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ShowCloudConnection(request *model.ShowCloudConnectionRequest) (*model.ShowCloudConnectionResponse, error) {
+ requestDef := GenReqDefForShowCloudConnection()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowCloudConnectionResponse), nil
+ }
+}
+
+// ShowCloudConnectionInvoker 查询云连接实例
+func (c *CcClient) ShowCloudConnectionInvoker(request *model.ShowCloudConnectionRequest) *ShowCloudConnectionInvoker {
+ requestDef := GenReqDefForShowCloudConnection()
+ return &ShowCloudConnectionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowCloudConnectionRoutes 查询云连接路由条目详情
+//
+// 查询云连接路由条目列表。
+// 分页查询使用的参数为marker、limit。marker和limit一起使用时才会生效,单独使用无效。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ShowCloudConnectionRoutes(request *model.ShowCloudConnectionRoutesRequest) (*model.ShowCloudConnectionRoutesResponse, error) {
+ requestDef := GenReqDefForShowCloudConnectionRoutes()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowCloudConnectionRoutesResponse), nil
+ }
+}
+
+// ShowCloudConnectionRoutesInvoker 查询云连接路由条目详情
+func (c *CcClient) ShowCloudConnectionRoutesInvoker(request *model.ShowCloudConnectionRoutesRequest) *ShowCloudConnectionRoutesInvoker {
+ requestDef := GenReqDefForShowCloudConnectionRoutes()
+ return &ShowCloudConnectionRoutesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowInterRegionBandwidth 查询域间带宽实例
+//
+// 查询域间带宽实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ShowInterRegionBandwidth(request *model.ShowInterRegionBandwidthRequest) (*model.ShowInterRegionBandwidthResponse, error) {
+ requestDef := GenReqDefForShowInterRegionBandwidth()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowInterRegionBandwidthResponse), nil
+ }
+}
+
+// ShowInterRegionBandwidthInvoker 查询域间带宽实例
+func (c *CcClient) ShowInterRegionBandwidthInvoker(request *model.ShowInterRegionBandwidthRequest) *ShowInterRegionBandwidthInvoker {
+ requestDef := GenReqDefForShowInterRegionBandwidth()
+ return &ShowInterRegionBandwidthInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowNetworkInstance 查询网络实例
+//
+// 查询网络实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) ShowNetworkInstance(request *model.ShowNetworkInstanceRequest) (*model.ShowNetworkInstanceResponse, error) {
+ requestDef := GenReqDefForShowNetworkInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowNetworkInstanceResponse), nil
+ }
+}
+
+// ShowNetworkInstanceInvoker 查询网络实例
+func (c *CcClient) ShowNetworkInstanceInvoker(request *model.ShowNetworkInstanceRequest) *ShowNetworkInstanceInvoker {
+ requestDef := GenReqDefForShowNetworkInstance()
+ return &ShowNetworkInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateAuthorisation 更新授权
+//
+// 更新授权实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) UpdateAuthorisation(request *model.UpdateAuthorisationRequest) (*model.UpdateAuthorisationResponse, error) {
+ requestDef := GenReqDefForUpdateAuthorisation()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateAuthorisationResponse), nil
+ }
+}
+
+// UpdateAuthorisationInvoker 更新授权
+func (c *CcClient) UpdateAuthorisationInvoker(request *model.UpdateAuthorisationRequest) *UpdateAuthorisationInvoker {
+ requestDef := GenReqDefForUpdateAuthorisation()
+ return &UpdateAuthorisationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateBandwidthPackage 更新带宽包实例
+//
+// 更新带宽包实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) UpdateBandwidthPackage(request *model.UpdateBandwidthPackageRequest) (*model.UpdateBandwidthPackageResponse, error) {
+ requestDef := GenReqDefForUpdateBandwidthPackage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateBandwidthPackageResponse), nil
+ }
+}
+
+// UpdateBandwidthPackageInvoker 更新带宽包实例
+func (c *CcClient) UpdateBandwidthPackageInvoker(request *model.UpdateBandwidthPackageRequest) *UpdateBandwidthPackageInvoker {
+ requestDef := GenReqDefForUpdateBandwidthPackage()
+ return &UpdateBandwidthPackageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateCloudConnection 更新云连接实例
+//
+// 更新云连接实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) UpdateCloudConnection(request *model.UpdateCloudConnectionRequest) (*model.UpdateCloudConnectionResponse, error) {
+ requestDef := GenReqDefForUpdateCloudConnection()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateCloudConnectionResponse), nil
+ }
+}
+
+// UpdateCloudConnectionInvoker 更新云连接实例
+func (c *CcClient) UpdateCloudConnectionInvoker(request *model.UpdateCloudConnectionRequest) *UpdateCloudConnectionInvoker {
+ requestDef := GenReqDefForUpdateCloudConnection()
+ return &UpdateCloudConnectionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateInterRegionBandwidth 更新域间带宽实例
+//
+// 更新域间带宽实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) UpdateInterRegionBandwidth(request *model.UpdateInterRegionBandwidthRequest) (*model.UpdateInterRegionBandwidthResponse, error) {
+ requestDef := GenReqDefForUpdateInterRegionBandwidth()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateInterRegionBandwidthResponse), nil
+ }
+}
+
+// UpdateInterRegionBandwidthInvoker 更新域间带宽实例
+func (c *CcClient) UpdateInterRegionBandwidthInvoker(request *model.UpdateInterRegionBandwidthRequest) *UpdateInterRegionBandwidthInvoker {
+ requestDef := GenReqDefForUpdateInterRegionBandwidth()
+ return &UpdateInterRegionBandwidthInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateNetworkInstance 更新网络实例
+//
+// 更新网络实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CcClient) UpdateNetworkInstance(request *model.UpdateNetworkInstanceRequest) (*model.UpdateNetworkInstanceResponse, error) {
+ requestDef := GenReqDefForUpdateNetworkInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateNetworkInstanceResponse), nil
+ }
+}
+
+// UpdateNetworkInstanceInvoker 更新网络实例
+func (c *CcClient) UpdateNetworkInstanceInvoker(request *model.UpdateNetworkInstanceRequest) *UpdateNetworkInstanceInvoker {
+ requestDef := GenReqDefForUpdateNetworkInstance()
+ return &UpdateNetworkInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_invoker.go
new file mode 100644
index 00000000..fad273d3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_invoker.go
@@ -0,0 +1,438 @@
+package v3
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model"
+)
+
+type AssociateBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AssociateBandwidthPackageInvoker) Invoke() (*model.AssociateBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AssociateBandwidthPackageResponse), nil
+ }
+}
+
+type BatchCreateDeleteTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateDeleteTagsInvoker) Invoke() (*model.BatchCreateDeleteTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateDeleteTagsResponse), nil
+ }
+}
+
+type CreateAuthorisationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateAuthorisationInvoker) Invoke() (*model.CreateAuthorisationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateAuthorisationResponse), nil
+ }
+}
+
+type CreateBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateBandwidthPackageInvoker) Invoke() (*model.CreateBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateBandwidthPackageResponse), nil
+ }
+}
+
+type CreateCloudConnectionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateCloudConnectionInvoker) Invoke() (*model.CreateCloudConnectionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateCloudConnectionResponse), nil
+ }
+}
+
+type CreateInterRegionBandwidthInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateInterRegionBandwidthInvoker) Invoke() (*model.CreateInterRegionBandwidthResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateInterRegionBandwidthResponse), nil
+ }
+}
+
+type CreateNetworkInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateNetworkInstanceInvoker) Invoke() (*model.CreateNetworkInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateNetworkInstanceResponse), nil
+ }
+}
+
+type CreateTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateTagInvoker) Invoke() (*model.CreateTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateTagResponse), nil
+ }
+}
+
+type DeleteAuthorisationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteAuthorisationInvoker) Invoke() (*model.DeleteAuthorisationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteAuthorisationResponse), nil
+ }
+}
+
+type DeleteBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteBandwidthPackageInvoker) Invoke() (*model.DeleteBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteBandwidthPackageResponse), nil
+ }
+}
+
+type DeleteCloudConnectionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteCloudConnectionInvoker) Invoke() (*model.DeleteCloudConnectionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteCloudConnectionResponse), nil
+ }
+}
+
+type DeleteInterRegionBandwidthInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteInterRegionBandwidthInvoker) Invoke() (*model.DeleteInterRegionBandwidthResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteInterRegionBandwidthResponse), nil
+ }
+}
+
+type DeleteNetworkInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteNetworkInstanceInvoker) Invoke() (*model.DeleteNetworkInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteNetworkInstanceResponse), nil
+ }
+}
+
+type DeleteTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteTagInvoker) Invoke() (*model.DeleteTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteTagResponse), nil
+ }
+}
+
+type DisassociateBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DisassociateBandwidthPackageInvoker) Invoke() (*model.DisassociateBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DisassociateBandwidthPackageResponse), nil
+ }
+}
+
+type ListAuthorisationsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAuthorisationsInvoker) Invoke() (*model.ListAuthorisationsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAuthorisationsResponse), nil
+ }
+}
+
+type ListBandwidthPackagesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListBandwidthPackagesInvoker) Invoke() (*model.ListBandwidthPackagesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListBandwidthPackagesResponse), nil
+ }
+}
+
+type ListCloudConnectionRoutesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListCloudConnectionRoutesInvoker) Invoke() (*model.ListCloudConnectionRoutesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListCloudConnectionRoutesResponse), nil
+ }
+}
+
+type ListCloudConnectionsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListCloudConnectionsInvoker) Invoke() (*model.ListCloudConnectionsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListCloudConnectionsResponse), nil
+ }
+}
+
+type ListDomainTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListDomainTagsInvoker) Invoke() (*model.ListDomainTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListDomainTagsResponse), nil
+ }
+}
+
+type ListInterRegionBandwidthsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListInterRegionBandwidthsInvoker) Invoke() (*model.ListInterRegionBandwidthsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListInterRegionBandwidthsResponse), nil
+ }
+}
+
+type ListNetworkInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListNetworkInstancesInvoker) Invoke() (*model.ListNetworkInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListNetworkInstancesResponse), nil
+ }
+}
+
+type ListPermissionsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPermissionsInvoker) Invoke() (*model.ListPermissionsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPermissionsResponse), nil
+ }
+}
+
+type ListQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListQuotasInvoker) Invoke() (*model.ListQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListQuotasResponse), nil
+ }
+}
+
+type ListResourceByFilterTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListResourceByFilterTagInvoker) Invoke() (*model.ListResourceByFilterTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListResourceByFilterTagResponse), nil
+ }
+}
+
+type ListTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListTagsInvoker) Invoke() (*model.ListTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListTagsResponse), nil
+ }
+}
+
+type ShowBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowBandwidthPackageInvoker) Invoke() (*model.ShowBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowBandwidthPackageResponse), nil
+ }
+}
+
+type ShowCloudConnectionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowCloudConnectionInvoker) Invoke() (*model.ShowCloudConnectionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowCloudConnectionResponse), nil
+ }
+}
+
+type ShowCloudConnectionRoutesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowCloudConnectionRoutesInvoker) Invoke() (*model.ShowCloudConnectionRoutesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowCloudConnectionRoutesResponse), nil
+ }
+}
+
+type ShowInterRegionBandwidthInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowInterRegionBandwidthInvoker) Invoke() (*model.ShowInterRegionBandwidthResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowInterRegionBandwidthResponse), nil
+ }
+}
+
+type ShowNetworkInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowNetworkInstanceInvoker) Invoke() (*model.ShowNetworkInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowNetworkInstanceResponse), nil
+ }
+}
+
+type UpdateAuthorisationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateAuthorisationInvoker) Invoke() (*model.UpdateAuthorisationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateAuthorisationResponse), nil
+ }
+}
+
+type UpdateBandwidthPackageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateBandwidthPackageInvoker) Invoke() (*model.UpdateBandwidthPackageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateBandwidthPackageResponse), nil
+ }
+}
+
+type UpdateCloudConnectionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateCloudConnectionInvoker) Invoke() (*model.UpdateCloudConnectionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateCloudConnectionResponse), nil
+ }
+}
+
+type UpdateInterRegionBandwidthInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateInterRegionBandwidthInvoker) Invoke() (*model.UpdateInterRegionBandwidthResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateInterRegionBandwidthResponse), nil
+ }
+}
+
+type UpdateNetworkInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateNetworkInstanceInvoker) Invoke() (*model.UpdateNetworkInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateNetworkInstanceResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_meta.go
new file mode 100644
index 00000000..dbe48a86
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/cc_meta.go
@@ -0,0 +1,827 @@
+package v3
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def"
+
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model"
+ "net/http"
+)
+
+func GenReqDefForAssociateBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages/{id}/associate").
+ WithResponse(new(model.AssociateBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchCreateDeleteTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags/action").
+ WithResponse(new(model.BatchCreateDeleteTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateAuthorisation() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/authorisations").
+ WithResponse(new(model.CreateAuthorisationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages").
+ WithResponse(new(model.CreateBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateCloudConnection() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connections").
+ WithResponse(new(model.CreateCloudConnectionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateInterRegionBandwidth() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/inter-region-bandwidths").
+ WithResponse(new(model.CreateInterRegionBandwidthResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateNetworkInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/network-instances").
+ WithResponse(new(model.CreateNetworkInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags").
+ WithResponse(new(model.CreateTagResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteAuthorisation() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/authorisations/{id}").
+ WithResponse(new(model.DeleteAuthorisationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages/{id}").
+ WithResponse(new(model.DeleteBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteCloudConnection() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connections/{id}").
+ WithResponse(new(model.DeleteCloudConnectionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteInterRegionBandwidth() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/inter-region-bandwidths/{id}").
+ WithResponse(new(model.DeleteInterRegionBandwidthResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteNetworkInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/network-instances/{id}").
+ WithResponse(new(model.DeleteNetworkInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags/{tag_key}").
+ WithResponse(new(model.DeleteTagResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TagKey").
+ WithJsonTag("tag_key").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDisassociateBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages/{id}/disassociate").
+ WithResponse(new(model.DisassociateBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAuthorisations() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/authorisations").
+ WithResponse(new(model.ListAuthorisationsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Description").
+ WithJsonTag("description").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CloudConnectionId").
+ WithJsonTag("cloud_connection_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListBandwidthPackages() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages").
+ WithResponse(new(model.ListBandwidthPackagesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BillingMode").
+ WithJsonTag("billing_mode").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListCloudConnectionRoutes() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connection-routes").
+ WithResponse(new(model.ListCloudConnectionRoutesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CloudConnectionId").
+ WithJsonTag("cloud_connection_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RegionId").
+ WithJsonTag("region_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListCloudConnections() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connections").
+ WithResponse(new(model.ListCloudConnectionsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Description").
+ WithJsonTag("description").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDomainTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/tags").
+ WithResponse(new(model.ListDomainTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInterRegionBandwidths() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/inter-region-bandwidths").
+ WithResponse(new(model.ListInterRegionBandwidthsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CloudConnectionId").
+ WithJsonTag("cloud_connection_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BandwidthPackageId").
+ WithJsonTag("bandwidth_package_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListNetworkInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/network-instances").
+ WithResponse(new(model.ListNetworkInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Description").
+ WithJsonTag("description").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CloudConnectionId").
+ WithJsonTag("cloud_connection_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RegionId").
+ WithJsonTag("region_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListPermissions() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/permissions").
+ WithResponse(new(model.ListPermissionsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Description").
+ WithJsonTag("description").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("CloudConnectionId").
+ WithJsonTag("cloud_connection_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListQuotas() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/quotas").
+ WithResponse(new(model.ListQuotasResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("QuotaType").
+ WithJsonTag("quota_type").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListResourceByFilterTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/resource-instances/action").
+ WithResponse(new(model.ListResourceByFilterTagResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/{resource_type}/{resource_id}/tags").
+ WithResponse(new(model.ListTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceType").
+ WithJsonTag("resource_type").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages/{id}").
+ WithResponse(new(model.ShowBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowCloudConnection() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connections/{id}").
+ WithResponse(new(model.ShowCloudConnectionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowCloudConnectionRoutes() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connection-routes/{id}").
+ WithResponse(new(model.ShowCloudConnectionRoutesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowInterRegionBandwidth() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/inter-region-bandwidths/{id}").
+ WithResponse(new(model.ShowInterRegionBandwidthResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowNetworkInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{domain_id}/ccaas/network-instances/{id}").
+ WithResponse(new(model.ShowNetworkInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateAuthorisation() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{domain_id}/ccaas/authorisations/{id}").
+ WithResponse(new(model.UpdateAuthorisationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateBandwidthPackage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{domain_id}/ccaas/bandwidth-packages/{id}").
+ WithResponse(new(model.UpdateBandwidthPackageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateCloudConnection() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{domain_id}/ccaas/cloud-connections/{id}").
+ WithResponse(new(model.UpdateCloudConnectionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateInterRegionBandwidth() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{domain_id}/ccaas/inter-region-bandwidths/{id}").
+ WithResponse(new(model.UpdateInterRegionBandwidthResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateNetworkInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{domain_id}/ccaas/network-instances/{id}").
+ WithResponse(new(model.UpdateNetworkInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_agg_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_agg_tag.go
new file mode 100644
index 00000000..3f1351d7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_agg_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 对于多个key相同的value,聚合成为key/values
+type AggTag struct {
+
+ // 键
+ Key *string `json:"key,omitempty"`
+
+ // 相同键的值列表
+ Values *[]string `json:"values,omitempty"`
+}
+
+func (o AggTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggTag struct{}"
+ }
+
+ return strings.Join([]string{"AggTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package.go
new file mode 100644
index 00000000..66bf0eb0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package.go
@@ -0,0 +1,67 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 将带宽包实例关联到资源的详细信息。
+type AssociateBandwidthPackage struct {
+
+ // 带宽包实例待关联的资源实例ID。
+ ResourceId string `json:"resource_id"`
+
+ // 带宽包实例待关联的资源实例类型,cloud_connection:表示云连接实例。
+ ResourceType AssociateBandwidthPackageResourceType `json:"resource_type"`
+}
+
+func (o AssociateBandwidthPackage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateBandwidthPackage struct{}"
+ }
+
+ return strings.Join([]string{"AssociateBandwidthPackage", string(data)}, " ")
+}
+
+type AssociateBandwidthPackageResourceType struct {
+ value string
+}
+
+type AssociateBandwidthPackageResourceTypeEnum struct {
+ CLOUD_CONNECTION AssociateBandwidthPackageResourceType
+}
+
+func GetAssociateBandwidthPackageResourceTypeEnum() AssociateBandwidthPackageResourceTypeEnum {
+ return AssociateBandwidthPackageResourceTypeEnum{
+ CLOUD_CONNECTION: AssociateBandwidthPackageResourceType{
+ value: "cloud_connection",
+ },
+ }
+}
+
+func (c AssociateBandwidthPackageResourceType) Value() string {
+ return c.value
+}
+
+func (c AssociateBandwidthPackageResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AssociateBandwidthPackageResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request.go
new file mode 100644
index 00000000..f0c689aa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AssociateBandwidthPackageRequest struct {
+
+ // 带宽包实例ID。
+ Id string `json:"id"`
+
+ Body *AssociateBandwidthPackageRequestBody `json:"body,omitempty"`
+}
+
+func (o AssociateBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"AssociateBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request_body.go
new file mode 100644
index 00000000..897d5d41
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 关联带宽包实例的请求体。
+type AssociateBandwidthPackageRequestBody struct {
+ BandwidthPackage *AssociateBandwidthPackage `json:"bandwidth_package"`
+}
+
+func (o AssociateBandwidthPackageRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateBandwidthPackageRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"AssociateBandwidthPackageRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_response.go
new file mode 100644
index 00000000..088694d3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_associate_bandwidth_package_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AssociateBandwidthPackageResponse struct {
+ BandwidthPackage *BandwidthPackage `json:"bandwidth_package,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AssociateBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"AssociateBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_authorisation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_authorisation.go
new file mode 100644
index 00000000..fbf3f702
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_authorisation.go
@@ -0,0 +1,60 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 授权
+type Authorisation struct {
+
+ // 授权的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 授权的名称。
+ Name *string `json:"name,omitempty"`
+
+ // 授权的描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 授权的状态。
+ Status *string `json:"status,omitempty"`
+
+ // 创建授权的时间。
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 更新授权的时间。
+ UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
+
+ // 授权者的账户ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 授权实例的ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 授权实例的类型。
+ InstanceType *string `json:"instance_type,omitempty"`
+
+ // 授权实例所属Region。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 授权实例所属项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 被授权云连接实例所属的账户ID。
+ CloudConnectionDomainId *string `json:"cloud_connection_domain_id,omitempty"`
+
+ // 被授权云连接实例ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+}
+
+func (o Authorisation) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Authorisation struct{}"
+ }
+
+ return strings.Join([]string{"Authorisation", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_bandwidth_package.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_bandwidth_package.go
new file mode 100644
index 00000000..71defff6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_bandwidth_package.go
@@ -0,0 +1,528 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// 带宽包实例。
+type BandwidthPackage struct {
+
+ // 带宽包实例的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 带宽包实例的名字。
+ Name *string `json:"name,omitempty"`
+
+ // 带宽包实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 带宽包实例的企业项目ID。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 带宽包实例的状态。ACTIVE表示状态
+ Status *BandwidthPackageStatus `json:"status,omitempty"`
+
+ // 带宽包实例的创建时间。
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 带宽包实例的更新时间。
+ UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
+
+ // 带宽包实例的管理状态。
+ AdminStateUp *bool `json:"admin_state_up,omitempty"`
+
+ // 带宽包实例的订单ID。
+ OrderId *string `json:"order_id,omitempty"`
+
+ // 带宽包实例的产品ID。
+ ProductId *string `json:"product_id,omitempty"`
+
+ // 带宽包实例的规格编码。 bandwidth.aftoela:大陆站+国际站南非-拉美东 bandwidth.aftonla:大陆站+国际站南非-拉美北 bandwidth.aftowla:大陆站+国际站南非-拉美西 bandwidth.aptoaf:国际站亚太-南非 bandwidth.aptoap:国际站亚太-亚太 bandwidth.aptoela:大陆站+国际站亚太-拉美东 bandwidth.aptonla:大陆站+国际站亚太-拉美北 bandwidth.aptowla:大陆站+国际站亚太-拉美西 bandwidth.cmtoaf:国际站中国大陆-南非 bandwidth.cmtoap:国际站中国大陆-亚太 bandwidth.cmtocm:国际站中国大陆-中国大陆 bandwidth.cmtoela:大陆站+国际站中国大陆-拉美东 bandwidth.cmtonla:大陆站+国际站中国大陆-拉美北 bandwidth.cmtowla:大陆站+国际站中国大陆-拉美西 bandwidth.elatoela:大陆站+国际站拉美东-拉美东 bandwidth.elatonla:大陆站+国际站拉美东-拉美北 bandwidth.wlatoela:大陆站+国际站拉美西-拉美东 bandwidth.wlatonla:大陆站+国际站拉美西-拉美北 bandwidth.wlatowla:大陆站+国际站拉美西-拉美西
+ SpecCode *BandwidthPackageSpecCode `json:"spec_code,omitempty"`
+
+ // 带宽包实例在大陆站或国际站的计费方式。 1:大陆站包周期 2:国际站包周期 3:大陆站按需计费 4:国际站按需计费 5:大陆站按95方式计费 6:国际站按95方式计费
+ BillingMode *BandwidthPackageBillingMode `json:"billing_mode,omitempty"`
+
+ // 带宽包实例的计费方式。 bandwidth是按带宽计费。
+ ChargeMode *BandwidthPackageChargeMode `json:"charge_mode,omitempty"`
+
+ // 带宽包实例中的带宽值。
+ Bandwidth *int32 `json:"bandwidth,omitempty"`
+
+ // 带宽包实例绑定的资源ID。
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 带宽包实例绑定的资源类型。 cloud_connection: 云连接实例。
+ ResourceType *BandwidthPackageResourceType `json:"resource_type,omitempty"`
+
+ // 本端大区。 云连接支持的大区有: | Chinese-Mainland | 中国大陆 | | Asia-Pacific | 亚太 | | Africa | 非洲 | | Western-Latin-America | 拉美西 | | Eastern-Latin-America | 拉美东 | | Northern-Latin-America | 拉美北 |
+ LocalAreaId *BandwidthPackageLocalAreaId `json:"local_area_id,omitempty"`
+
+ // 远端大区。 云连接支持的大区有: | Chinese-Mainland | 中国大陆 | | Asia-Pacific | 亚太 | | Africa | 非洲 | | Western-Latin-America | 拉美西 | | Eastern-Latin-America | 拉美东 | | Northern-Latin-America | 拉美北 |
+ RemoteAreaId *BandwidthPackageRemoteAreaId `json:"remote_area_id,omitempty"`
+
+ // 项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 互通类型: - Area: 大区互通 - Region: 城域互通
+ InterflowMode *BandwidthPackageInterflowMode `json:"interflow_mode,omitempty"`
+
+ // 标签列表。
+ Tags *[]Tag `json:"tags,omitempty"`
+}
+
+func (o BandwidthPackage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BandwidthPackage struct{}"
+ }
+
+ return strings.Join([]string{"BandwidthPackage", string(data)}, " ")
+}
+
+type BandwidthPackageStatus struct {
+ value string
+}
+
+type BandwidthPackageStatusEnum struct {
+ ACTIVE BandwidthPackageStatus
+}
+
+func GetBandwidthPackageStatusEnum() BandwidthPackageStatusEnum {
+ return BandwidthPackageStatusEnum{
+ ACTIVE: BandwidthPackageStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c BandwidthPackageStatus) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageSpecCode struct {
+ value string
+}
+
+type BandwidthPackageSpecCodeEnum struct {
+ BANDWIDTH_AFTOELA BandwidthPackageSpecCode
+ BANDWIDTH_AFTONLA BandwidthPackageSpecCode
+ BANDWIDTH_AFTOWLA BandwidthPackageSpecCode
+ BANDWIDTH_APTOAF BandwidthPackageSpecCode
+ BANDWIDTH_APTOAP BandwidthPackageSpecCode
+ BANDWIDTH_APTOELA BandwidthPackageSpecCode
+ BANDWIDTH_APTONLA BandwidthPackageSpecCode
+ BANDWIDTH_APTOWLA BandwidthPackageSpecCode
+ BANDWIDTH_CMTOAF BandwidthPackageSpecCode
+ BANDWIDTH_CMTOAP BandwidthPackageSpecCode
+ BANDWIDTH_CMTOCM BandwidthPackageSpecCode
+ BANDWIDTH_CMTOELA BandwidthPackageSpecCode
+ BANDWIDTH_CMTONLA BandwidthPackageSpecCode
+ BANDWIDTH_CMTOWLA BandwidthPackageSpecCode
+ BANDWIDTH_ELATOELA BandwidthPackageSpecCode
+ BANDWIDTH_ELATONLA BandwidthPackageSpecCode
+ BANDWIDTH_WLATOELA BandwidthPackageSpecCode
+ BANDWIDTH_WLATONLA BandwidthPackageSpecCode
+ BANDWIDTH_WLATOWLA BandwidthPackageSpecCode
+}
+
+func GetBandwidthPackageSpecCodeEnum() BandwidthPackageSpecCodeEnum {
+ return BandwidthPackageSpecCodeEnum{
+ BANDWIDTH_AFTOELA: BandwidthPackageSpecCode{
+ value: "bandwidth.aftoela",
+ },
+ BANDWIDTH_AFTONLA: BandwidthPackageSpecCode{
+ value: "bandwidth.aftonla",
+ },
+ BANDWIDTH_AFTOWLA: BandwidthPackageSpecCode{
+ value: "bandwidth.aftowla",
+ },
+ BANDWIDTH_APTOAF: BandwidthPackageSpecCode{
+ value: "bandwidth.aptoaf",
+ },
+ BANDWIDTH_APTOAP: BandwidthPackageSpecCode{
+ value: "bandwidth.aptoap",
+ },
+ BANDWIDTH_APTOELA: BandwidthPackageSpecCode{
+ value: "bandwidth.aptoela",
+ },
+ BANDWIDTH_APTONLA: BandwidthPackageSpecCode{
+ value: "bandwidth.aptonla",
+ },
+ BANDWIDTH_APTOWLA: BandwidthPackageSpecCode{
+ value: "bandwidth.aptowla",
+ },
+ BANDWIDTH_CMTOAF: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtoaf",
+ },
+ BANDWIDTH_CMTOAP: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtoap",
+ },
+ BANDWIDTH_CMTOCM: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtocm",
+ },
+ BANDWIDTH_CMTOELA: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtoela",
+ },
+ BANDWIDTH_CMTONLA: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtonla",
+ },
+ BANDWIDTH_CMTOWLA: BandwidthPackageSpecCode{
+ value: "bandwidth.cmtowla",
+ },
+ BANDWIDTH_ELATOELA: BandwidthPackageSpecCode{
+ value: "bandwidth.elatoela",
+ },
+ BANDWIDTH_ELATONLA: BandwidthPackageSpecCode{
+ value: "bandwidth.elatonla",
+ },
+ BANDWIDTH_WLATOELA: BandwidthPackageSpecCode{
+ value: "bandwidth.wlatoela",
+ },
+ BANDWIDTH_WLATONLA: BandwidthPackageSpecCode{
+ value: "bandwidth.wlatonla",
+ },
+ BANDWIDTH_WLATOWLA: BandwidthPackageSpecCode{
+ value: "bandwidth.wlatowla",
+ },
+ }
+}
+
+func (c BandwidthPackageSpecCode) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageSpecCode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageSpecCode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageBillingMode struct {
+ value string
+}
+
+type BandwidthPackageBillingModeEnum struct {
+ E_1 BandwidthPackageBillingMode
+ E_2 BandwidthPackageBillingMode
+ E_3 BandwidthPackageBillingMode
+ E_4 BandwidthPackageBillingMode
+ E_5 BandwidthPackageBillingMode
+ E_6 BandwidthPackageBillingMode
+}
+
+func GetBandwidthPackageBillingModeEnum() BandwidthPackageBillingModeEnum {
+ return BandwidthPackageBillingModeEnum{
+ E_1: BandwidthPackageBillingMode{
+ value: "1",
+ },
+ E_2: BandwidthPackageBillingMode{
+ value: "2",
+ },
+ E_3: BandwidthPackageBillingMode{
+ value: "3",
+ },
+ E_4: BandwidthPackageBillingMode{
+ value: "4",
+ },
+ E_5: BandwidthPackageBillingMode{
+ value: "5",
+ },
+ E_6: BandwidthPackageBillingMode{
+ value: "6",
+ },
+ }
+}
+
+func (c BandwidthPackageBillingMode) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageBillingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageBillingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageChargeMode struct {
+ value string
+}
+
+type BandwidthPackageChargeModeEnum struct {
+ BANDWIDTH BandwidthPackageChargeMode
+}
+
+func GetBandwidthPackageChargeModeEnum() BandwidthPackageChargeModeEnum {
+ return BandwidthPackageChargeModeEnum{
+ BANDWIDTH: BandwidthPackageChargeMode{
+ value: "bandwidth",
+ },
+ }
+}
+
+func (c BandwidthPackageChargeMode) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageChargeMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageChargeMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageResourceType struct {
+ value string
+}
+
+type BandwidthPackageResourceTypeEnum struct {
+ CLOUD_CONNECTION BandwidthPackageResourceType
+}
+
+func GetBandwidthPackageResourceTypeEnum() BandwidthPackageResourceTypeEnum {
+ return BandwidthPackageResourceTypeEnum{
+ CLOUD_CONNECTION: BandwidthPackageResourceType{
+ value: "cloud_connection",
+ },
+ }
+}
+
+func (c BandwidthPackageResourceType) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageLocalAreaId struct {
+ value string
+}
+
+type BandwidthPackageLocalAreaIdEnum struct {
+ CHINESE_MAINLAND BandwidthPackageLocalAreaId
+ ASIA_PACIFIC BandwidthPackageLocalAreaId
+ AFRICA BandwidthPackageLocalAreaId
+ WESTERN_LATIN_AMERICA BandwidthPackageLocalAreaId
+ EASTERN_LATIN_AMERICA BandwidthPackageLocalAreaId
+ NORTHERN_LATIN_AMERICA BandwidthPackageLocalAreaId
+}
+
+func GetBandwidthPackageLocalAreaIdEnum() BandwidthPackageLocalAreaIdEnum {
+ return BandwidthPackageLocalAreaIdEnum{
+ CHINESE_MAINLAND: BandwidthPackageLocalAreaId{
+ value: "Chinese-Mainland",
+ },
+ ASIA_PACIFIC: BandwidthPackageLocalAreaId{
+ value: "Asia-Pacific",
+ },
+ AFRICA: BandwidthPackageLocalAreaId{
+ value: "Africa",
+ },
+ WESTERN_LATIN_AMERICA: BandwidthPackageLocalAreaId{
+ value: "Western-Latin-America",
+ },
+ EASTERN_LATIN_AMERICA: BandwidthPackageLocalAreaId{
+ value: "Eastern-Latin-America",
+ },
+ NORTHERN_LATIN_AMERICA: BandwidthPackageLocalAreaId{
+ value: "Northern-Latin-America",
+ },
+ }
+}
+
+func (c BandwidthPackageLocalAreaId) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageLocalAreaId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageLocalAreaId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageRemoteAreaId struct {
+ value string
+}
+
+type BandwidthPackageRemoteAreaIdEnum struct {
+ CHINESE_MAINLAND BandwidthPackageRemoteAreaId
+ ASIA_PACIFIC BandwidthPackageRemoteAreaId
+ AFRICA BandwidthPackageRemoteAreaId
+ WESTERN_LATIN_AMERICA BandwidthPackageRemoteAreaId
+ EASTERN_LATIN_AMERICA BandwidthPackageRemoteAreaId
+ NORTHERN_LATIN_AMERICA BandwidthPackageRemoteAreaId
+}
+
+func GetBandwidthPackageRemoteAreaIdEnum() BandwidthPackageRemoteAreaIdEnum {
+ return BandwidthPackageRemoteAreaIdEnum{
+ CHINESE_MAINLAND: BandwidthPackageRemoteAreaId{
+ value: "Chinese-Mainland",
+ },
+ ASIA_PACIFIC: BandwidthPackageRemoteAreaId{
+ value: "Asia-Pacific",
+ },
+ AFRICA: BandwidthPackageRemoteAreaId{
+ value: "Africa",
+ },
+ WESTERN_LATIN_AMERICA: BandwidthPackageRemoteAreaId{
+ value: "Western-Latin-America",
+ },
+ EASTERN_LATIN_AMERICA: BandwidthPackageRemoteAreaId{
+ value: "Eastern-Latin-America",
+ },
+ NORTHERN_LATIN_AMERICA: BandwidthPackageRemoteAreaId{
+ value: "Northern-Latin-America",
+ },
+ }
+}
+
+func (c BandwidthPackageRemoteAreaId) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageRemoteAreaId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageRemoteAreaId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BandwidthPackageInterflowMode struct {
+ value string
+}
+
+type BandwidthPackageInterflowModeEnum struct {
+ AREA BandwidthPackageInterflowMode
+ REGION BandwidthPackageInterflowMode
+}
+
+func GetBandwidthPackageInterflowModeEnum() BandwidthPackageInterflowModeEnum {
+ return BandwidthPackageInterflowModeEnum{
+ AREA: BandwidthPackageInterflowMode{
+ value: "Area",
+ },
+ REGION: BandwidthPackageInterflowMode{
+ value: "Region",
+ },
+ }
+}
+
+func (c BandwidthPackageInterflowMode) Value() string {
+ return c.value
+}
+
+func (c BandwidthPackageInterflowMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BandwidthPackageInterflowMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_request.go
new file mode 100644
index 00000000..c206d5a2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_request.go
@@ -0,0 +1,73 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateDeleteTagsRequest struct {
+
+ // 资源ID
+ ResourceId string `json:"resource_id"`
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType BatchCreateDeleteTagsRequestResourceType `json:"resource_type"`
+
+ Body *Tags `json:"body,omitempty"`
+}
+
+func (o BatchCreateDeleteTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateDeleteTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateDeleteTagsRequest", string(data)}, " ")
+}
+
+type BatchCreateDeleteTagsRequestResourceType struct {
+ value string
+}
+
+type BatchCreateDeleteTagsRequestResourceTypeEnum struct {
+ CC BatchCreateDeleteTagsRequestResourceType
+ BWP BatchCreateDeleteTagsRequestResourceType
+}
+
+func GetBatchCreateDeleteTagsRequestResourceTypeEnum() BatchCreateDeleteTagsRequestResourceTypeEnum {
+ return BatchCreateDeleteTagsRequestResourceTypeEnum{
+ CC: BatchCreateDeleteTagsRequestResourceType{
+ value: "cc",
+ },
+ BWP: BatchCreateDeleteTagsRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c BatchCreateDeleteTagsRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c BatchCreateDeleteTagsRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BatchCreateDeleteTagsRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_response.go
new file mode 100644
index 00000000..42e428ee
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_batch_create_delete_tags_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateDeleteTagsResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateDeleteTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateDeleteTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateDeleteTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection.go
new file mode 100644
index 00000000..de6d0f16
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection.go
@@ -0,0 +1,137 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// 云连接实例。
+type CloudConnection struct {
+
+ // 云连接实例的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 云连接实例的名字。
+ Name *string `json:"name,omitempty"`
+
+ // 云连接实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 云连接实例的企业项目ID。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 云连接实例的状态。ACTIVE:表示状态可用。
+ Status *CloudConnectionStatus `json:"status,omitempty"`
+
+ // 云连接实例的管理状态。
+ AdminStateUp *bool `json:"admin_state_up,omitempty"`
+
+ // 云连接实例的创建时间。UTC时间格式,yyyy-MM-ddTHH:mm:ss
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 云连接实例的更新时间。UTC时间格式,yyyy-MM-ddTHH:mm:ss
+ UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
+
+ // 云连接使用场景。 - VPC:虚拟私有云。
+ UsedScene *CloudConnectionUsedScene `json:"used_scene,omitempty"`
+
+ // 云连接实例关联网络实例的个数。
+ NetworkInstanceNumber *int32 `json:"network_instance_number,omitempty"`
+
+ // 云连接实例关联带宽包的个数。
+ BandwidthPackageNumber *int32 `json:"bandwidth_package_number,omitempty"`
+
+ // 云连接实例关联域间带宽的个数。
+ InterRegionBandwidthNumber *int32 `json:"inter_region_bandwidth_number,omitempty"`
+}
+
+func (o CloudConnection) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CloudConnection struct{}"
+ }
+
+ return strings.Join([]string{"CloudConnection", string(data)}, " ")
+}
+
+type CloudConnectionStatus struct {
+ value string
+}
+
+type CloudConnectionStatusEnum struct {
+ ACTIVE CloudConnectionStatus
+}
+
+func GetCloudConnectionStatusEnum() CloudConnectionStatusEnum {
+ return CloudConnectionStatusEnum{
+ ACTIVE: CloudConnectionStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c CloudConnectionStatus) Value() string {
+ return c.value
+}
+
+func (c CloudConnectionStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CloudConnectionStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CloudConnectionUsedScene struct {
+ value string
+}
+
+type CloudConnectionUsedSceneEnum struct {
+ VPC CloudConnectionUsedScene
+}
+
+func GetCloudConnectionUsedSceneEnum() CloudConnectionUsedSceneEnum {
+ return CloudConnectionUsedSceneEnum{
+ VPC: CloudConnectionUsedScene{
+ value: "vpc",
+ },
+ }
+}
+
+func (c CloudConnectionUsedScene) Value() string {
+ return c.value
+}
+
+func (c CloudConnectionUsedScene) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CloudConnectionUsedScene) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection_route.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection_route.go
new file mode 100644
index 00000000..25df0216
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_cloud_connection_route.go
@@ -0,0 +1,89 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 云连接路由实例。
+type CloudConnectionRoute struct {
+
+ // 云连接实例路由的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 云连接实例的ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 网络实例的项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 路由条目下一跳指向的网络实例的ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 路由条目下一跳指向的网络实例的类型。 - VPC:虚拟私有云。 - VGW:虚拟网关。
+ Type *CloudConnectionRouteType `json:"type,omitempty"`
+
+ // Region的ID。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 目的地址。
+ Destination *string `json:"destination,omitempty"`
+}
+
+func (o CloudConnectionRoute) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CloudConnectionRoute struct{}"
+ }
+
+ return strings.Join([]string{"CloudConnectionRoute", string(data)}, " ")
+}
+
+type CloudConnectionRouteType struct {
+ value string
+}
+
+type CloudConnectionRouteTypeEnum struct {
+ VPC CloudConnectionRouteType
+ VGW CloudConnectionRouteType
+}
+
+func GetCloudConnectionRouteTypeEnum() CloudConnectionRouteTypeEnum {
+ return CloudConnectionRouteTypeEnum{
+ VPC: CloudConnectionRouteType{
+ value: "vpc",
+ },
+ VGW: CloudConnectionRouteType{
+ value: "vgw",
+ },
+ }
+}
+
+func (c CloudConnectionRouteType) Value() string {
+ return c.value
+}
+
+func (c CloudConnectionRouteType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CloudConnectionRouteType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation.go
new file mode 100644
index 00000000..257a03bb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation.go
@@ -0,0 +1,85 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 创建授权的详细信息。
+type CreateAuthorisation struct {
+
+ // 授权的名称。
+ Name *string `json:"name,omitempty"`
+
+ // 授权的描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 授权网络实例的ID。
+ InstanceId string `json:"instance_id"`
+
+ // 授权网络实例的类型: - vpc:虚拟私有云
+ InstanceType CreateAuthorisationInstanceType `json:"instance_type"`
+
+ // 授权网络实例所属项目。
+ ProjectId string `json:"project_id"`
+
+ // 授权实例所属Region。
+ RegionId string `json:"region_id"`
+
+ // 被授权云连接实例所属的账户ID。
+ CloudConnectionDomainId string `json:"cloud_connection_domain_id"`
+
+ // 被授权云连接实例ID。
+ CloudConnectionId string `json:"cloud_connection_id"`
+}
+
+func (o CreateAuthorisation) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAuthorisation struct{}"
+ }
+
+ return strings.Join([]string{"CreateAuthorisation", string(data)}, " ")
+}
+
+type CreateAuthorisationInstanceType struct {
+ value string
+}
+
+type CreateAuthorisationInstanceTypeEnum struct {
+ VPC CreateAuthorisationInstanceType
+}
+
+func GetCreateAuthorisationInstanceTypeEnum() CreateAuthorisationInstanceTypeEnum {
+ return CreateAuthorisationInstanceTypeEnum{
+ VPC: CreateAuthorisationInstanceType{
+ value: "vpc",
+ },
+ }
+}
+
+func (c CreateAuthorisationInstanceType) Value() string {
+ return c.value
+}
+
+func (c CreateAuthorisationInstanceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateAuthorisationInstanceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request.go
new file mode 100644
index 00000000..40c8ebb3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateAuthorisationRequest struct {
+ Body *CreateAuthorisationRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateAuthorisationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAuthorisationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateAuthorisationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request_body.go
new file mode 100644
index 00000000..9dbcdd50
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建授权的详细信息。
+type CreateAuthorisationRequestBody struct {
+ Authorisation *CreateAuthorisation `json:"authorisation"`
+}
+
+func (o CreateAuthorisationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAuthorisationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateAuthorisationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_response.go
new file mode 100644
index 00000000..cf3f912b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_authorisation_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateAuthorisationResponse struct {
+ Authorisation *Authorisation `json:"authorisation,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateAuthorisationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAuthorisationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateAuthorisationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package.go
new file mode 100644
index 00000000..2c614bff
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package.go
@@ -0,0 +1,340 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 创建带宽包请求体。
+type CreateBandwidthPackage struct {
+
+ // 带宽包实例的名字。
+ Name string `json:"name"`
+
+ // 带宽包实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 带宽包实例所属的企业项目ID。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 本端大区。 云连接支持的大区有: | Chinese-Mainland | 中国大陆 | | Asia-Pacific | 亚太 | | Africa | 非洲 | | Western-Latin-America | 拉美西 | | Eastern-Latin-America | 拉美东 | | Northern-Latin-America | 拉美北 |
+ LocalAreaId CreateBandwidthPackageLocalAreaId `json:"local_area_id"`
+
+ // 远端大区。 云连接支持的大区有: | Chinese-Mainland | 中国大陆 | | Asia-Pacific | 亚太 | | Africa | 非洲 | | Western-Latin-America | 拉美西 | | Eastern-Latin-America | 拉美东 | | Northern-Latin-America | 拉美北 |
+ RemoteAreaId CreateBandwidthPackageRemoteAreaId `json:"remote_area_id"`
+
+ // 带宽包实例的计费方式。 bandwidth是按带宽计费。
+ ChargeMode CreateBandwidthPackageChargeMode `json:"charge_mode"`
+
+ // 带宽包实例在大陆站或国际站的计费方式: - 3:大陆站按需计费 - 4:国际站按需计费 - 5:大陆站按95方式计费 - 6:国际站按95方式计费
+ BillingMode CreateBandwidthPackageBillingMode `json:"billing_mode"`
+
+ // 带宽包实例中的带宽值。
+ Bandwidth int32 `json:"bandwidth"`
+
+ // 项目ID。
+ ProjectId string `json:"project_id"`
+
+ // 带宽包实例绑定的资源ID。
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 带宽包实例绑定的资源类型。 cloud_connection: 云连接实例。
+ ResourceType *CreateBandwidthPackageResourceType `json:"resource_type,omitempty"`
+
+ // 互通类型: - Area: 大区互通 - Region: 城域互通
+ InterflowMode *CreateBandwidthPackageInterflowMode `json:"interflow_mode,omitempty"`
+}
+
+func (o CreateBandwidthPackage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBandwidthPackage struct{}"
+ }
+
+ return strings.Join([]string{"CreateBandwidthPackage", string(data)}, " ")
+}
+
+type CreateBandwidthPackageLocalAreaId struct {
+ value string
+}
+
+type CreateBandwidthPackageLocalAreaIdEnum struct {
+ CHINESE_MAINLAND CreateBandwidthPackageLocalAreaId
+ ASIA_PACIFIC CreateBandwidthPackageLocalAreaId
+ AFRICA CreateBandwidthPackageLocalAreaId
+ WESTERN_LATIN_AMERICA CreateBandwidthPackageLocalAreaId
+ EASTERN_LATIN_AMERICA CreateBandwidthPackageLocalAreaId
+ NORTHERN_LATIN_AMERICA CreateBandwidthPackageLocalAreaId
+}
+
+func GetCreateBandwidthPackageLocalAreaIdEnum() CreateBandwidthPackageLocalAreaIdEnum {
+ return CreateBandwidthPackageLocalAreaIdEnum{
+ CHINESE_MAINLAND: CreateBandwidthPackageLocalAreaId{
+ value: "Chinese-Mainland",
+ },
+ ASIA_PACIFIC: CreateBandwidthPackageLocalAreaId{
+ value: "Asia-Pacific",
+ },
+ AFRICA: CreateBandwidthPackageLocalAreaId{
+ value: "Africa",
+ },
+ WESTERN_LATIN_AMERICA: CreateBandwidthPackageLocalAreaId{
+ value: "Western-Latin-America",
+ },
+ EASTERN_LATIN_AMERICA: CreateBandwidthPackageLocalAreaId{
+ value: "Eastern-Latin-America",
+ },
+ NORTHERN_LATIN_AMERICA: CreateBandwidthPackageLocalAreaId{
+ value: "Northern-Latin-America",
+ },
+ }
+}
+
+func (c CreateBandwidthPackageLocalAreaId) Value() string {
+ return c.value
+}
+
+func (c CreateBandwidthPackageLocalAreaId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageLocalAreaId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateBandwidthPackageRemoteAreaId struct {
+ value string
+}
+
+type CreateBandwidthPackageRemoteAreaIdEnum struct {
+ CHINESE_MAINLAND CreateBandwidthPackageRemoteAreaId
+ ASIA_PACIFIC CreateBandwidthPackageRemoteAreaId
+ AFRICA CreateBandwidthPackageRemoteAreaId
+ WESTERN_LATIN_AMERICA CreateBandwidthPackageRemoteAreaId
+ EASTERN_LATIN_AMERICA CreateBandwidthPackageRemoteAreaId
+ NORTHERN_LATIN_AMERICA CreateBandwidthPackageRemoteAreaId
+}
+
+func GetCreateBandwidthPackageRemoteAreaIdEnum() CreateBandwidthPackageRemoteAreaIdEnum {
+ return CreateBandwidthPackageRemoteAreaIdEnum{
+ CHINESE_MAINLAND: CreateBandwidthPackageRemoteAreaId{
+ value: "Chinese-Mainland",
+ },
+ ASIA_PACIFIC: CreateBandwidthPackageRemoteAreaId{
+ value: "Asia-Pacific",
+ },
+ AFRICA: CreateBandwidthPackageRemoteAreaId{
+ value: "Africa",
+ },
+ WESTERN_LATIN_AMERICA: CreateBandwidthPackageRemoteAreaId{
+ value: "Western-Latin-America",
+ },
+ EASTERN_LATIN_AMERICA: CreateBandwidthPackageRemoteAreaId{
+ value: "Eastern-Latin-America",
+ },
+ NORTHERN_LATIN_AMERICA: CreateBandwidthPackageRemoteAreaId{
+ value: "Northern-Latin-America",
+ },
+ }
+}
+
+func (c CreateBandwidthPackageRemoteAreaId) Value() string {
+ return c.value
+}
+
+func (c CreateBandwidthPackageRemoteAreaId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageRemoteAreaId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateBandwidthPackageChargeMode struct {
+ value string
+}
+
+type CreateBandwidthPackageChargeModeEnum struct {
+ BANDWIDTH CreateBandwidthPackageChargeMode
+}
+
+func GetCreateBandwidthPackageChargeModeEnum() CreateBandwidthPackageChargeModeEnum {
+ return CreateBandwidthPackageChargeModeEnum{
+ BANDWIDTH: CreateBandwidthPackageChargeMode{
+ value: "bandwidth",
+ },
+ }
+}
+
+func (c CreateBandwidthPackageChargeMode) Value() string {
+ return c.value
+}
+
+func (c CreateBandwidthPackageChargeMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageChargeMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateBandwidthPackageBillingMode struct {
+ value int32
+}
+
+type CreateBandwidthPackageBillingModeEnum struct {
+ E_3 CreateBandwidthPackageBillingMode
+ E_4 CreateBandwidthPackageBillingMode
+ E_5 CreateBandwidthPackageBillingMode
+ E_6 CreateBandwidthPackageBillingMode
+}
+
+func GetCreateBandwidthPackageBillingModeEnum() CreateBandwidthPackageBillingModeEnum {
+ return CreateBandwidthPackageBillingModeEnum{
+ E_3: CreateBandwidthPackageBillingMode{
+ value: 3,
+ }, E_4: CreateBandwidthPackageBillingMode{
+ value: 4,
+ }, E_5: CreateBandwidthPackageBillingMode{
+ value: 5,
+ }, E_6: CreateBandwidthPackageBillingMode{
+ value: 6,
+ },
+ }
+}
+
+func (c CreateBandwidthPackageBillingMode) Value() int32 {
+ return c.value
+}
+
+func (c CreateBandwidthPackageBillingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageBillingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
+
+type CreateBandwidthPackageResourceType struct {
+ value string
+}
+
+type CreateBandwidthPackageResourceTypeEnum struct {
+ CLOUD_CONNECTION CreateBandwidthPackageResourceType
+}
+
+func GetCreateBandwidthPackageResourceTypeEnum() CreateBandwidthPackageResourceTypeEnum {
+ return CreateBandwidthPackageResourceTypeEnum{
+ CLOUD_CONNECTION: CreateBandwidthPackageResourceType{
+ value: "cloud_connection",
+ },
+ }
+}
+
+func (c CreateBandwidthPackageResourceType) Value() string {
+ return c.value
+}
+
+func (c CreateBandwidthPackageResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateBandwidthPackageInterflowMode struct {
+ value string
+}
+
+type CreateBandwidthPackageInterflowModeEnum struct {
+ AREA CreateBandwidthPackageInterflowMode
+ REGION CreateBandwidthPackageInterflowMode
+}
+
+func GetCreateBandwidthPackageInterflowModeEnum() CreateBandwidthPackageInterflowModeEnum {
+ return CreateBandwidthPackageInterflowModeEnum{
+ AREA: CreateBandwidthPackageInterflowMode{
+ value: "Area",
+ },
+ REGION: CreateBandwidthPackageInterflowMode{
+ value: "Region",
+ },
+ }
+}
+
+func (c CreateBandwidthPackageInterflowMode) Value() string {
+ return c.value
+}
+
+func (c CreateBandwidthPackageInterflowMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateBandwidthPackageInterflowMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request.go
new file mode 100644
index 00000000..0493a6d0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateBandwidthPackageRequest struct {
+ Body *CreateBandwidthPackageRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request_body.go
new file mode 100644
index 00000000..5cb01764
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建带宽包实例的请求体。
+type CreateBandwidthPackageRequestBody struct {
+ BandwidthPackage *CreateBandwidthPackage `json:"bandwidth_package"`
+}
+
+func (o CreateBandwidthPackageRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBandwidthPackageRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateBandwidthPackageRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_response.go
new file mode 100644
index 00000000..11d5fa7c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_bandwidth_package_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateBandwidthPackageResponse struct {
+ BandwidthPackage *BandwidthPackage `json:"bandwidth_package,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection.go
new file mode 100644
index 00000000..6928d18e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建云连接实例的详细信息。
+type CreateCloudConnection struct {
+
+ // 云连接实例的名字。只能由中文、英文字母、数字、下划线、中划线、点组成。
+ Name string `json:"name"`
+
+ // 云连接实例的描述。不支持 <>。
+ Description *string `json:"description,omitempty"`
+
+ // 云连接实例所属的企业项目ID。企业项目账号必填;非企业项目账号不填。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+}
+
+func (o CreateCloudConnection) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCloudConnection struct{}"
+ }
+
+ return strings.Join([]string{"CreateCloudConnection", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request.go
new file mode 100644
index 00000000..6d0ebead
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateCloudConnectionRequest struct {
+ Body *CreateCloudConnectionRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateCloudConnectionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCloudConnectionRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateCloudConnectionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request_body.go
new file mode 100644
index 00000000..dbc3346e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建云连接实例的请求体。
+type CreateCloudConnectionRequestBody struct {
+ CloudConnection *CreateCloudConnection `json:"cloud_connection"`
+}
+
+func (o CreateCloudConnectionRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCloudConnectionRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateCloudConnectionRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_response.go
new file mode 100644
index 00000000..082c5c10
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_cloud_connection_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateCloudConnectionResponse struct {
+ CloudConnection *CloudConnection `json:"cloud_connection,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateCloudConnectionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateCloudConnectionResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateCloudConnectionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth.go
new file mode 100644
index 00000000..659d8103
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建域间带宽的详情信息。
+type CreateInterRegionBandwidth struct {
+
+ // 云连接实例ID。
+ CloudConnectionId string `json:"cloud_connection_id"`
+
+ // 带宽包实例ID。
+ BandwidthPackageId string `json:"bandwidth_package_id"`
+
+ // 域间带宽值。
+ Bandwidth int32 `json:"bandwidth"`
+
+ // 域间RegionID。
+ InterRegionIds []string `json:"inter_region_ids"`
+}
+
+func (o CreateInterRegionBandwidth) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInterRegionBandwidth struct{}"
+ }
+
+ return strings.Join([]string{"CreateInterRegionBandwidth", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request.go
new file mode 100644
index 00000000..63027b5d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateInterRegionBandwidthRequest struct {
+ Body *CreateInterRegionBandwidthRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateInterRegionBandwidthRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInterRegionBandwidthRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateInterRegionBandwidthRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request_body.go
new file mode 100644
index 00000000..4f474f38
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建域间带宽实例的请求体。
+type CreateInterRegionBandwidthRequestBody struct {
+ InterRegionBandwidth *CreateInterRegionBandwidth `json:"inter_region_bandwidth"`
+}
+
+func (o CreateInterRegionBandwidthRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInterRegionBandwidthRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateInterRegionBandwidthRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_response.go
new file mode 100644
index 00000000..3526ebc6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_inter_region_bandwidth_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateInterRegionBandwidthResponse struct {
+ InterRegionBandwidth *InterRegionBandwidth `json:"inter_region_bandwidth,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateInterRegionBandwidthResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInterRegionBandwidthResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateInterRegionBandwidthResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance.go
new file mode 100644
index 00000000..edc54e15
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance.go
@@ -0,0 +1,92 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 创建网络实例的详细信息。
+type CreateNetworkInstance struct {
+
+ // 网络实例的名字。只能由中文、英文字母、数字、下划线、中划线、点组成。
+ Name *string `json:"name,omitempty"`
+
+ // 网络实例的描述。不支持 <>。
+ Description *string `json:"description,omitempty"`
+
+ // 添加到云连接网络实例的类型,有效值: - vpc:虚拟私有云。 - vgw:虚拟网关。
+ Type CreateNetworkInstanceType `json:"type"`
+
+ // 添加到云连接网络实例的ID,VPC或者VGW的ID。
+ InstanceId string `json:"instance_id"`
+
+ // 网络实例的账户ID。跨账号加载必填;同账号下资源加载不填。
+ InstanceDomainId *string `json:"instance_domain_id,omitempty"`
+
+ // 网络实例的项目ID。
+ ProjectId string `json:"project_id"`
+
+ // 网络实例的RegionID。
+ RegionId string `json:"region_id"`
+
+ // 云连接实例ID。
+ CloudConnectionId string `json:"cloud_connection_id"`
+
+ // 网络实例发布的网段路由列表。
+ Cidrs []string `json:"cidrs"`
+}
+
+func (o CreateNetworkInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateNetworkInstance struct{}"
+ }
+
+ return strings.Join([]string{"CreateNetworkInstance", string(data)}, " ")
+}
+
+type CreateNetworkInstanceType struct {
+ value string
+}
+
+type CreateNetworkInstanceTypeEnum struct {
+ VPC CreateNetworkInstanceType
+ VGW CreateNetworkInstanceType
+}
+
+func GetCreateNetworkInstanceTypeEnum() CreateNetworkInstanceTypeEnum {
+ return CreateNetworkInstanceTypeEnum{
+ VPC: CreateNetworkInstanceType{
+ value: "vpc",
+ },
+ VGW: CreateNetworkInstanceType{
+ value: "vgw",
+ },
+ }
+}
+
+func (c CreateNetworkInstanceType) Value() string {
+ return c.value
+}
+
+func (c CreateNetworkInstanceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateNetworkInstanceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request.go
new file mode 100644
index 00000000..9773007e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateNetworkInstanceRequest struct {
+ Body *CreateNetworkInstanceRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateNetworkInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateNetworkInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateNetworkInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request_body.go
new file mode 100644
index 00000000..4e9b3203
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建网络实例的请求体。
+type CreateNetworkInstanceRequestBody struct {
+ NetworkInstance *CreateNetworkInstance `json:"network_instance"`
+}
+
+func (o CreateNetworkInstanceRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateNetworkInstanceRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateNetworkInstanceRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_response.go
new file mode 100644
index 00000000..1f525550
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_network_instance_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateNetworkInstanceResponse struct {
+ NetworkInstance *NetworkInstance `json:"network_instance,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateNetworkInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateNetworkInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateNetworkInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request.go
new file mode 100644
index 00000000..a763f3fb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request.go
@@ -0,0 +1,73 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type CreateTagRequest struct {
+
+ // 资源ID。
+ ResourceId string `json:"resource_id"`
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType CreateTagRequestResourceType `json:"resource_type"`
+
+ Body *CreateTagRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateTagRequest", string(data)}, " ")
+}
+
+type CreateTagRequestResourceType struct {
+ value string
+}
+
+type CreateTagRequestResourceTypeEnum struct {
+ CC CreateTagRequestResourceType
+ BWP CreateTagRequestResourceType
+}
+
+func GetCreateTagRequestResourceTypeEnum() CreateTagRequestResourceTypeEnum {
+ return CreateTagRequestResourceTypeEnum{
+ CC: CreateTagRequestResourceType{
+ value: "cc",
+ },
+ BWP: CreateTagRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c CreateTagRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c CreateTagRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateTagRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request_body.go
new file mode 100644
index 00000000..a72b3b31
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建Tag请求体
+type CreateTagRequestBody struct {
+ Tag *Tag `json:"tag,omitempty"`
+}
+
+func (o CreateTagRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateTagRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateTagRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_response.go
new file mode 100644
index 00000000..444f2236
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_create_tag_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateTagResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_request.go
new file mode 100644
index 00000000..976e1e81
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteAuthorisationRequest struct {
+
+ // 授权ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteAuthorisationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAuthorisationRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAuthorisationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_response.go
new file mode 100644
index 00000000..5919c67e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_authorisation_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteAuthorisationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteAuthorisationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAuthorisationResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAuthorisationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_request.go
new file mode 100644
index 00000000..01b382b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteBandwidthPackageRequest struct {
+
+ // 带宽包实例ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_response.go
new file mode 100644
index 00000000..f0d94a15
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_bandwidth_package_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteBandwidthPackageResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_request.go
new file mode 100644
index 00000000..ac68bfa9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteCloudConnectionRequest struct {
+
+ // 云连接实例ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteCloudConnectionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteCloudConnectionRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteCloudConnectionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_response.go
new file mode 100644
index 00000000..7a61e761
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_cloud_connection_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteCloudConnectionResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteCloudConnectionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteCloudConnectionResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteCloudConnectionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_request.go
new file mode 100644
index 00000000..06460fca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteInterRegionBandwidthRequest struct {
+
+ // 域间带宽实例ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteInterRegionBandwidthRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteInterRegionBandwidthRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteInterRegionBandwidthRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_response.go
new file mode 100644
index 00000000..2302e8a5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_inter_region_bandwidth_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteInterRegionBandwidthResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteInterRegionBandwidthResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteInterRegionBandwidthResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteInterRegionBandwidthResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_request.go
new file mode 100644
index 00000000..4069cc59
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteNetworkInstanceRequest struct {
+
+ // 网络实例ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteNetworkInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteNetworkInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteNetworkInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_response.go
new file mode 100644
index 00000000..5b9c4102
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_network_instance_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteNetworkInstanceResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteNetworkInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteNetworkInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteNetworkInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_request.go
new file mode 100644
index 00000000..9fae1f70
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_request.go
@@ -0,0 +1,74 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type DeleteTagRequest struct {
+
+ // 资源ID
+ ResourceId string `json:"resource_id"`
+
+ // 待删除资源标签的key
+ TagKey string `json:"tag_key"`
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType DeleteTagRequestResourceType `json:"resource_type"`
+}
+
+func (o DeleteTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteTagRequest", string(data)}, " ")
+}
+
+type DeleteTagRequestResourceType struct {
+ value string
+}
+
+type DeleteTagRequestResourceTypeEnum struct {
+ CC DeleteTagRequestResourceType
+ BWP DeleteTagRequestResourceType
+}
+
+func GetDeleteTagRequestResourceTypeEnum() DeleteTagRequestResourceTypeEnum {
+ return DeleteTagRequestResourceTypeEnum{
+ CC: DeleteTagRequestResourceType{
+ value: "cc",
+ },
+ BWP: DeleteTagRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c DeleteTagRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c DeleteTagRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DeleteTagRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_response.go
new file mode 100644
index 00000000..e20d4ef7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_delete_tag_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteTagResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package.go
new file mode 100644
index 00000000..2ae628f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package.go
@@ -0,0 +1,67 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 解关联带宽包实例的详细信息。
+type DisassociateBandwidthPackage struct {
+
+ // 带宽包实例待解关联的资源实例ID。
+ ResourceId string `json:"resource_id"`
+
+ // 带宽包实例待解关联的资源实例类型,cloud_connection:表示为云连接实例。
+ ResourceType DisassociateBandwidthPackageResourceType `json:"resource_type"`
+}
+
+func (o DisassociateBandwidthPackage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateBandwidthPackage struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateBandwidthPackage", string(data)}, " ")
+}
+
+type DisassociateBandwidthPackageResourceType struct {
+ value string
+}
+
+type DisassociateBandwidthPackageResourceTypeEnum struct {
+ CLOUD_CONNECTION DisassociateBandwidthPackageResourceType
+}
+
+func GetDisassociateBandwidthPackageResourceTypeEnum() DisassociateBandwidthPackageResourceTypeEnum {
+ return DisassociateBandwidthPackageResourceTypeEnum{
+ CLOUD_CONNECTION: DisassociateBandwidthPackageResourceType{
+ value: "cloud_connection",
+ },
+ }
+}
+
+func (c DisassociateBandwidthPackageResourceType) Value() string {
+ return c.value
+}
+
+func (c DisassociateBandwidthPackageResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DisassociateBandwidthPackageResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request.go
new file mode 100644
index 00000000..d352ddd7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DisassociateBandwidthPackageRequest struct {
+
+ // 带宽包实例ID。
+ Id string `json:"id"`
+
+ Body *DisassociateBandwidthPackageRequestBody `json:"body,omitempty"`
+}
+
+func (o DisassociateBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request_body.go
new file mode 100644
index 00000000..c14e01df
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 解关联带宽包实例的请求体。
+type DisassociateBandwidthPackageRequestBody struct {
+ BandwidthPackage *DisassociateBandwidthPackage `json:"bandwidth_package"`
+}
+
+func (o DisassociateBandwidthPackageRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateBandwidthPackageRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateBandwidthPackageRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_response.go
new file mode 100644
index 00000000..2e6163d2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_disassociate_bandwidth_package_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DisassociateBandwidthPackageResponse struct {
+ BandwidthPackage *BandwidthPackage `json:"bandwidth_package,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DisassociateBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_filter_tag_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_filter_tag_resource.go
new file mode 100644
index 00000000..f786d09f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_filter_tag_resource.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签资源
+type FilterTagResource struct {
+
+ // 资源ID
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 资源名称
+ ResourceName string `json:"resource_name"`
+
+ // 资源详情
+ ResourceDetail *string `json:"resource_detail,omitempty"`
+
+ // 资源下包含的标签
+ Tags *[]Tag `json:"tags,omitempty"`
+}
+
+func (o FilterTagResource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "FilterTagResource struct{}"
+ }
+
+ return strings.Join([]string{"FilterTagResource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region.go
new file mode 100644
index 00000000..d2fe21a0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type InterRegion struct {
+
+ // 域间实例的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 域间实例本段的项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 域间实例本段的RegionID。
+ LocalRegionId *string `json:"local_region_id,omitempty"`
+
+ // 域间实例对段的RegionID。
+ RemoteRegionId *string `json:"remote_region_id,omitempty"`
+}
+
+func (o InterRegion) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "InterRegion struct{}"
+ }
+
+ return strings.Join([]string{"InterRegion", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region_bandwidth.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region_bandwidth.go
new file mode 100644
index 00000000..e3fd2de4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_inter_region_bandwidth.go
@@ -0,0 +1,51 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 域间带宽实例。
+type InterRegionBandwidth struct {
+
+ // 域间带宽实例的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 域间带宽实例的名字。
+ Name *string `json:"name,omitempty"`
+
+ // 域间带宽实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 带宽包实例的ID。
+ BandwidthPackageId *string `json:"bandwidth_package_id,omitempty"`
+
+ // 域间带宽实例的创建时间。
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 域间带宽实例的更新时间。
+ UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
+
+ // 云连接实例的ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+
+ // 域间实例信息。
+ InterRegions *[]InterRegion `json:"inter_regions,omitempty"`
+
+ // 域间带宽的值。
+ Bandwidth *int32 `json:"bandwidth,omitempty"`
+}
+
+func (o InterRegionBandwidth) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "InterRegionBandwidth struct{}"
+ }
+
+ return strings.Join([]string{"InterRegionBandwidth", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_request.go
new file mode 100644
index 00000000..ab364a69
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_request.go
@@ -0,0 +1,82 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListAuthorisationsRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤授权列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据名称过滤授权列表。
+ Name *[]string `json:"name,omitempty"`
+
+ // 根据描述过滤授权列表。
+ Description *[]string `json:"description,omitempty"`
+
+ // 根据云连接实例ID过滤授权列表。
+ CloudConnectionId *[]string `json:"cloud_connection_id,omitempty"`
+
+ // 根据实例ID过滤授权列表。
+ InstanceId *[]ListAuthorisationsRequestInstanceId `json:"instance_id,omitempty"`
+}
+
+func (o ListAuthorisationsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAuthorisationsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAuthorisationsRequest", string(data)}, " ")
+}
+
+type ListAuthorisationsRequestInstanceId struct {
+ value string
+}
+
+type ListAuthorisationsRequestInstanceIdEnum struct {
+ ACTIVE ListAuthorisationsRequestInstanceId
+}
+
+func GetListAuthorisationsRequestInstanceIdEnum() ListAuthorisationsRequestInstanceIdEnum {
+ return ListAuthorisationsRequestInstanceIdEnum{
+ ACTIVE: ListAuthorisationsRequestInstanceId{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c ListAuthorisationsRequestInstanceId) Value() string {
+ return c.value
+}
+
+func (c ListAuthorisationsRequestInstanceId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListAuthorisationsRequestInstanceId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_response.go
new file mode 100644
index 00000000..2e611ffa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_authorisations_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAuthorisationsResponse struct {
+
+ // 授权的详细信息。
+ Authorisations *[]Authorisation `json:"authorisations,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAuthorisationsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAuthorisationsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAuthorisationsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_request.go
new file mode 100644
index 00000000..f1c38679
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_request.go
@@ -0,0 +1,85 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListBandwidthPackagesRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤带宽包实例列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据名称过滤带宽包实例列表。
+ Name *[]string `json:"name,omitempty"`
+
+ // 根据状态过滤带宽包实例列表。ACTIVE:表示状态可用。
+ Status *[]ListBandwidthPackagesRequestStatus `json:"status,omitempty"`
+
+ // 根据企业项目ID过滤带宽包实例列表。
+ EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
+
+ // 根据计费方式过滤带宽包实例列表。
+ BillingMode *[]string `json:"billing_mode,omitempty"`
+
+ // 根据绑定的资源ID过滤带宽包实例列表。
+ ResourceId *[]string `json:"resource_id,omitempty"`
+}
+
+func (o ListBandwidthPackagesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListBandwidthPackagesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListBandwidthPackagesRequest", string(data)}, " ")
+}
+
+type ListBandwidthPackagesRequestStatus struct {
+ value string
+}
+
+type ListBandwidthPackagesRequestStatusEnum struct {
+ ACTIVE ListBandwidthPackagesRequestStatus
+}
+
+func GetListBandwidthPackagesRequestStatusEnum() ListBandwidthPackagesRequestStatusEnum {
+ return ListBandwidthPackagesRequestStatusEnum{
+ ACTIVE: ListBandwidthPackagesRequestStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c ListBandwidthPackagesRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ListBandwidthPackagesRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListBandwidthPackagesRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_response.go
new file mode 100644
index 00000000..e6ad3261
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_bandwidth_packages_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListBandwidthPackagesResponse struct {
+
+ // 带宽包实例列表。
+ BandwidthPackages *[]BandwidthPackage `json:"bandwidth_packages,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListBandwidthPackagesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListBandwidthPackagesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListBandwidthPackagesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_request.go
new file mode 100644
index 00000000..8136a37b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_request.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListCloudConnectionRoutesRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据云连接路由ID过滤云连接路由条目列表。
+ Id *string `json:"id,omitempty"`
+
+ // 根据云连接实例ID过滤云连接路由条目列表。
+ CloudConnectionId *[]string `json:"cloud_connection_id,omitempty"`
+
+ // 根据网络实例ID过滤云连接路由条目列表。
+ InstanceId *[]string `json:"instance_id,omitempty"`
+
+ // 根据Region ID过滤云连接路由条目列表。
+ RegionId *string `json:"region_id,omitempty"`
+}
+
+func (o ListCloudConnectionRoutesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCloudConnectionRoutesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListCloudConnectionRoutesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_response.go
new file mode 100644
index 00000000..b062d8cd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connection_routes_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListCloudConnectionRoutesResponse struct {
+
+ // 云连接路由实例列表。
+ CloudConnectionRoutes *[]CloudConnectionRoute `json:"cloud_connection_routes,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListCloudConnectionRoutesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCloudConnectionRoutesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListCloudConnectionRoutesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_request.go
new file mode 100644
index 00000000..5492180f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_request.go
@@ -0,0 +1,85 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListCloudConnectionsRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤云连接实例列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据名称过滤云连接实例列表。
+ Name *[]string `json:"name,omitempty"`
+
+ // 根据描述过滤云连接实例列表。
+ Description *[]string `json:"description,omitempty"`
+
+ // 根据状态过滤云连接实例列表。ACTIVE:表示状态可用。
+ Status *[]ListCloudConnectionsRequestStatus `json:"status,omitempty"`
+
+ // 根据企业项目ID过滤云连接实例列表。
+ EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
+
+ // 根据类型过滤云连接实例列表。
+ Type *[]string `json:"type,omitempty"`
+}
+
+func (o ListCloudConnectionsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCloudConnectionsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListCloudConnectionsRequest", string(data)}, " ")
+}
+
+type ListCloudConnectionsRequestStatus struct {
+ value string
+}
+
+type ListCloudConnectionsRequestStatusEnum struct {
+ ACTIVE ListCloudConnectionsRequestStatus
+}
+
+func GetListCloudConnectionsRequestStatusEnum() ListCloudConnectionsRequestStatusEnum {
+ return ListCloudConnectionsRequestStatusEnum{
+ ACTIVE: ListCloudConnectionsRequestStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c ListCloudConnectionsRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ListCloudConnectionsRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListCloudConnectionsRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_response.go
new file mode 100644
index 00000000..66966fff
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_cloud_connections_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListCloudConnectionsResponse struct {
+
+ // 云连接实例列表。
+ CloudConnections *[]CloudConnection `json:"cloud_connections,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListCloudConnectionsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListCloudConnectionsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListCloudConnectionsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_request.go
new file mode 100644
index 00000000..b026747f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_request.go
@@ -0,0 +1,68 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListDomainTagsRequest struct {
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType ListDomainTagsRequestResourceType `json:"resource_type"`
+}
+
+func (o ListDomainTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDomainTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListDomainTagsRequest", string(data)}, " ")
+}
+
+type ListDomainTagsRequestResourceType struct {
+ value string
+}
+
+type ListDomainTagsRequestResourceTypeEnum struct {
+ CC ListDomainTagsRequestResourceType
+ BWP ListDomainTagsRequestResourceType
+}
+
+func GetListDomainTagsRequestResourceTypeEnum() ListDomainTagsRequestResourceTypeEnum {
+ return ListDomainTagsRequestResourceTypeEnum{
+ CC: ListDomainTagsRequestResourceType{
+ value: "cc",
+ },
+ BWP: ListDomainTagsRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c ListDomainTagsRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c ListDomainTagsRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListDomainTagsRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_response.go
new file mode 100644
index 00000000..ea06588a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_domain_tags_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListDomainTagsResponse struct {
+
+ // 标签列表
+ Tags *[]AggTag `json:"tags,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListDomainTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDomainTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListDomainTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_request.go
new file mode 100644
index 00000000..6592ca92
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_request.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListInterRegionBandwidthsRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤域间带宽实例列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据企业项目ID过滤域间带宽实例列表。
+ EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
+
+ // 根据云连接ID过滤域间带宽实例列表。
+ CloudConnectionId *[]string `json:"cloud_connection_id,omitempty"`
+
+ // 根据带宽包列表过滤域间带宽实例列表。
+ BandwidthPackageId *[]string `json:"bandwidth_package_id,omitempty"`
+}
+
+func (o ListInterRegionBandwidthsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInterRegionBandwidthsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListInterRegionBandwidthsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_response.go
new file mode 100644
index 00000000..3ea3da8f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_inter_region_bandwidths_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListInterRegionBandwidthsResponse struct {
+
+ // 域间带宽实例列表。
+ InterRegionBandwidths *[]InterRegionBandwidth `json:"inter_region_bandwidths,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListInterRegionBandwidthsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInterRegionBandwidthsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListInterRegionBandwidthsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_request.go
new file mode 100644
index 00000000..f63b8254
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_request.go
@@ -0,0 +1,91 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListNetworkInstancesRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤网络实例列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据名称过滤网络实例列表。
+ Name *[]string `json:"name,omitempty"`
+
+ // 根据描述过滤网络实例列表。
+ Description *[]string `json:"description,omitempty"`
+
+ // 根据状态过滤网络实例列表。ACTIVE:表示状态可用。
+ Status *[]ListNetworkInstancesRequestStatus `json:"status,omitempty"`
+
+ // 根据类型过滤网络实例列表。
+ Type *[]string `json:"type,omitempty"`
+
+ // 根据云连接实例ID过滤网络实例列表。
+ CloudConnectionId *[]string `json:"cloud_connection_id,omitempty"`
+
+ // 根据网络实例ID过滤网络实例列表。
+ InstanceId *[]string `json:"instance_id,omitempty"`
+
+ // 根据网络实例所在的Region过滤网络实例列表。
+ RegionId *[]string `json:"region_id,omitempty"`
+}
+
+func (o ListNetworkInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListNetworkInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListNetworkInstancesRequest", string(data)}, " ")
+}
+
+type ListNetworkInstancesRequestStatus struct {
+ value string
+}
+
+type ListNetworkInstancesRequestStatusEnum struct {
+ ACTIVE ListNetworkInstancesRequestStatus
+}
+
+func GetListNetworkInstancesRequestStatusEnum() ListNetworkInstancesRequestStatusEnum {
+ return ListNetworkInstancesRequestStatusEnum{
+ ACTIVE: ListNetworkInstancesRequestStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c ListNetworkInstancesRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ListNetworkInstancesRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListNetworkInstancesRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_response.go
new file mode 100644
index 00000000..3fde21ee
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_network_instances_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListNetworkInstancesResponse struct {
+
+ // 网络实例列表。
+ NetworkInstances *[]NetworkInstance `json:"network_instances,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListNetworkInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListNetworkInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListNetworkInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_request.go
new file mode 100644
index 00000000..ef76ade2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListPermissionsRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 根据ID过滤授权列表。
+ Id *[]string `json:"id,omitempty"`
+
+ // 根据名称过滤授权列表。
+ Name *[]string `json:"name,omitempty"`
+
+ // 根据描述过滤授权列表。
+ Description *[]string `json:"description,omitempty"`
+
+ // 根据云连接实例ID过滤授权列表。
+ CloudConnectionId *[]string `json:"cloud_connection_id,omitempty"`
+
+ // 根据实例ID过滤授权列表。
+ InstanceId *[]string `json:"instance_id,omitempty"`
+}
+
+func (o ListPermissionsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPermissionsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPermissionsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_response.go
new file mode 100644
index 00000000..cb95de84
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_permissions_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPermissionsResponse struct {
+
+ // 权限的详细信息。
+ Permissions *[]Permission `json:"permissions,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPermissionsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPermissionsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPermissionsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_request.go
new file mode 100644
index 00000000..0911aac4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_request.go
@@ -0,0 +1,82 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListQuotasRequest struct {
+
+ // 分页查询时,每页返回的个数。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页查询时,上一页最后一条记录的ID,为空时为查询第一页。 使用说明:必须与limit一起使用。
+ Marker *string `json:"marker,omitempty"`
+
+ // 配额类型: - cloud_connection: 可加载的云连接实例数 - cloud_connection_region: 某云连接实例下可加载的Region数 - cloud_connection_route: 某云连接实例下可加载的路由数 - region_network_instance: 某云连接实例下某个Region下可加载的网络实例数
+ QuotaType *ListQuotasRequestQuotaType `json:"quota_type,omitempty"`
+}
+
+func (o ListQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListQuotasRequest", string(data)}, " ")
+}
+
+type ListQuotasRequestQuotaType struct {
+ value string
+}
+
+type ListQuotasRequestQuotaTypeEnum struct {
+ CLOUD_CONNECTION ListQuotasRequestQuotaType
+ CLOUD_CONNECTION_REGION ListQuotasRequestQuotaType
+ CLOUD_CONNECTION_ROUTE ListQuotasRequestQuotaType
+ REGION_NETWORK_INSTANCE ListQuotasRequestQuotaType
+}
+
+func GetListQuotasRequestQuotaTypeEnum() ListQuotasRequestQuotaTypeEnum {
+ return ListQuotasRequestQuotaTypeEnum{
+ CLOUD_CONNECTION: ListQuotasRequestQuotaType{
+ value: "cloud_connection",
+ },
+ CLOUD_CONNECTION_REGION: ListQuotasRequestQuotaType{
+ value: "cloud_connection_region",
+ },
+ CLOUD_CONNECTION_ROUTE: ListQuotasRequestQuotaType{
+ value: "cloud_connection_route",
+ },
+ REGION_NETWORK_INSTANCE: ListQuotasRequestQuotaType{
+ value: "region_network_instance",
+ },
+ }
+}
+
+func (c ListQuotasRequestQuotaType) Value() string {
+ return c.value
+}
+
+func (c ListQuotasRequestQuotaType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListQuotasRequestQuotaType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_response.go
new file mode 100644
index 00000000..51fb08d7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_quotas_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListQuotasResponse struct {
+
+ // 配额列表。
+ Quotas *[]Quota `json:"quotas,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request.go
new file mode 100644
index 00000000..290a4d45
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListResourceByFilterTagRequest struct {
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType ListResourceByFilterTagRequestResourceType `json:"resource_type"`
+
+ Body *ListResourceByFilterTagRequestBody `json:"body,omitempty"`
+}
+
+func (o ListResourceByFilterTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceByFilterTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceByFilterTagRequest", string(data)}, " ")
+}
+
+type ListResourceByFilterTagRequestResourceType struct {
+ value string
+}
+
+type ListResourceByFilterTagRequestResourceTypeEnum struct {
+ CC ListResourceByFilterTagRequestResourceType
+ BWP ListResourceByFilterTagRequestResourceType
+}
+
+func GetListResourceByFilterTagRequestResourceTypeEnum() ListResourceByFilterTagRequestResourceTypeEnum {
+ return ListResourceByFilterTagRequestResourceTypeEnum{
+ CC: ListResourceByFilterTagRequestResourceType{
+ value: "cc",
+ },
+ BWP: ListResourceByFilterTagRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c ListResourceByFilterTagRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c ListResourceByFilterTagRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListResourceByFilterTagRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request_body.go
new file mode 100644
index 00000000..9347040e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_request_body.go
@@ -0,0 +1,80 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 用于查询资源实例的Tag过滤条件
+type ListResourceByFilterTagRequestBody struct {
+
+ // 动作。|- filter:过滤。 count:查询总条数。
+ Action *ListResourceByFilterTagRequestBodyAction `json:"action,omitempty"`
+
+ // 查询结果数量限制
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 查询结果偏移
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 是否包含以下tag(多个key取\"与\"关系,多个value取\"或\"关系)
+ Tags *[]AggTag `json:"tags,omitempty"`
+
+ // 是否匹配以下tag,key必须为\"resource_name\",value如果有值则模糊匹配,如果为空字符串则精确匹配
+ Matches *[]Tag `json:"matches,omitempty"`
+}
+
+func (o ListResourceByFilterTagRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceByFilterTagRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceByFilterTagRequestBody", string(data)}, " ")
+}
+
+type ListResourceByFilterTagRequestBodyAction struct {
+ value string
+}
+
+type ListResourceByFilterTagRequestBodyActionEnum struct {
+ FILTER ListResourceByFilterTagRequestBodyAction
+ COUNT ListResourceByFilterTagRequestBodyAction
+}
+
+func GetListResourceByFilterTagRequestBodyActionEnum() ListResourceByFilterTagRequestBodyActionEnum {
+ return ListResourceByFilterTagRequestBodyActionEnum{
+ FILTER: ListResourceByFilterTagRequestBodyAction{
+ value: "filter",
+ },
+ COUNT: ListResourceByFilterTagRequestBodyAction{
+ value: "count",
+ },
+ }
+}
+
+func (c ListResourceByFilterTagRequestBodyAction) Value() string {
+ return c.value
+}
+
+func (c ListResourceByFilterTagRequestBodyAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListResourceByFilterTagRequestBodyAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_response.go
new file mode 100644
index 00000000..38cf5fc5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_resource_by_filter_tag_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListResourceByFilterTagResponse struct {
+
+ // 资源实例实例列表。
+ Resources *[]FilterTagResource `json:"resources,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+
+ // 符合过滤条件的资源总数量。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListResourceByFilterTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceByFilterTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceByFilterTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_request.go
new file mode 100644
index 00000000..32661e78
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListTagsRequest struct {
+
+ // 资源类型: - cc: 云连接 - bwp: 带宽包
+ ResourceType ListTagsRequestResourceType `json:"resource_type"`
+
+ // 资源ID
+ ResourceId string `json:"resource_id"`
+}
+
+func (o ListTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListTagsRequest", string(data)}, " ")
+}
+
+type ListTagsRequestResourceType struct {
+ value string
+}
+
+type ListTagsRequestResourceTypeEnum struct {
+ CC ListTagsRequestResourceType
+ BWP ListTagsRequestResourceType
+}
+
+func GetListTagsRequestResourceTypeEnum() ListTagsRequestResourceTypeEnum {
+ return ListTagsRequestResourceTypeEnum{
+ CC: ListTagsRequestResourceType{
+ value: "cc",
+ },
+ BWP: ListTagsRequestResourceType{
+ value: "bwp",
+ },
+ }
+}
+
+func (c ListTagsRequestResourceType) Value() string {
+ return c.value
+}
+
+func (c ListTagsRequestResourceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListTagsRequestResourceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_response.go
new file mode 100644
index 00000000..f314854f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_list_tags_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListTagsResponse struct {
+
+ // 标签列表
+ Tags *[]Tag `json:"tags,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_network_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_network_instance.go
new file mode 100644
index 00000000..92c708a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_network_instance.go
@@ -0,0 +1,144 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// 网络实例。
+type NetworkInstance struct {
+
+ // 网络实例的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 网络实例的名字。
+ Name *string `json:"name,omitempty"`
+
+ // 网络实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 网络实例的状态。 - ACTIVE:处理成功。 - PENDING:处理中。 - ERROR:处理失败。
+ Status *NetworkInstanceStatus `json:"status,omitempty"`
+
+ // 网络实例的创建时间。 UTC时间格式,yyyy-MM-ddTHH:mm:ss
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 网络实例的更新时间。 UTC时间格式,yyyy-MM-ddTHH:mm:ss
+ UpdatedAt *sdktime.SdkTime `json:"updated_at,omitempty"`
+
+ // 网络实例的类型。 - vpc:虚拟私有云。 - vgw:虚拟网关。
+ Type *NetworkInstanceType `json:"type,omitempty"`
+
+ // 云连接实例ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+
+ // 网络实例的ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 网络实例所属账户ID。
+ InstanceDomainId *string `json:"instance_domain_id,omitempty"`
+
+ // 网络实例所在Region的ID。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 网络实例所在租户的项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 网络实例发布的网段路由列表。
+ Cidrs *[]string `json:"cidrs,omitempty"`
+}
+
+func (o NetworkInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NetworkInstance struct{}"
+ }
+
+ return strings.Join([]string{"NetworkInstance", string(data)}, " ")
+}
+
+type NetworkInstanceStatus struct {
+ value string
+}
+
+type NetworkInstanceStatusEnum struct {
+ ACTIVE NetworkInstanceStatus
+}
+
+func GetNetworkInstanceStatusEnum() NetworkInstanceStatusEnum {
+ return NetworkInstanceStatusEnum{
+ ACTIVE: NetworkInstanceStatus{
+ value: "ACTIVE",
+ },
+ }
+}
+
+func (c NetworkInstanceStatus) Value() string {
+ return c.value
+}
+
+func (c NetworkInstanceStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *NetworkInstanceStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type NetworkInstanceType struct {
+ value string
+}
+
+type NetworkInstanceTypeEnum struct {
+ VPC NetworkInstanceType
+ VGW NetworkInstanceType
+}
+
+func GetNetworkInstanceTypeEnum() NetworkInstanceTypeEnum {
+ return NetworkInstanceTypeEnum{
+ VPC: NetworkInstanceType{
+ value: "vpc",
+ },
+ VGW: NetworkInstanceType{
+ value: "vgw",
+ },
+ }
+}
+
+func (c NetworkInstanceType) Value() string {
+ return c.value
+}
+
+func (c NetworkInstanceType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *NetworkInstanceType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_page_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_page_info.go
new file mode 100644
index 00000000..7cf52d03
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_page_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 分页查询页的信息。
+type PageInfo struct {
+
+ // 下一页的marker,值为资源的uuid,为空时表示最后一页。
+ NextMarker *string `json:"next_marker,omitempty"`
+
+ // 上一页的marker,值为资源的uuid,为空时表示第一页。
+ PreviousMarker *string `json:"previous_marker,omitempty"`
+
+ // 当前列表中资源数量。
+ CurrentCount *int32 `json:"current_count,omitempty"`
+}
+
+func (o PageInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PageInfo struct{}"
+ }
+
+ return strings.Join([]string{"PageInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_permission.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_permission.go
new file mode 100644
index 00000000..bdf4c00e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_permission.go
@@ -0,0 +1,57 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 授权
+type Permission struct {
+
+ // 授权的ID。
+ Id *string `json:"id,omitempty"`
+
+ // 授权的名称。
+ Name *string `json:"name,omitempty"`
+
+ // 授权的描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 授权的状态。
+ Status *string `json:"status,omitempty"`
+
+ // 授权的时间。
+ CreatedAt *sdktime.SdkTime `json:"created_at,omitempty"`
+
+ // 被授权者的账户ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 被授权云连接实例ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+
+ // 授权实例的ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 授权实例的类型。
+ InstanceType *string `json:"instance_type,omitempty"`
+
+ // 被授权网络实例所属的账户ID。
+ InstanceDomainId *string `json:"instance_domain_id,omitempty"`
+
+ // 授权实例所属Region。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 授权实例所属项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+}
+
+func (o Permission) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Permission struct{}"
+ }
+
+ return strings.Join([]string{"Permission", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_quota.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_quota.go
new file mode 100644
index 00000000..883a2df5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_quota.go
@@ -0,0 +1,91 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 配额实例
+type Quota struct {
+
+ // 账号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 配额类型: - cloud_connection: 可加载的云连接实例数 - cloud_connection_region: 某云连接实例下可加载的Region数 - cloud_connection_route: 某云连接实例下可加载的路由数 - region_network_instance: 某云连接实例下某个Region下可加载的网络实例数
+ QuotaType *QuotaQuotaType `json:"quota_type,omitempty"`
+
+ // 配额数量。
+ QuotaNumber *int32 `json:"quota_number,omitempty"`
+
+ // 配额使用数量。
+ QuotaUsed *int32 `json:"quota_used,omitempty"`
+
+ // 云连接ID。
+ CloudConnectionId *string `json:"cloud_connection_id,omitempty"`
+
+ // 网络实例的RegionID。
+ RegionId *string `json:"region_id,omitempty"`
+}
+
+func (o Quota) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Quota struct{}"
+ }
+
+ return strings.Join([]string{"Quota", string(data)}, " ")
+}
+
+type QuotaQuotaType struct {
+ value string
+}
+
+type QuotaQuotaTypeEnum struct {
+ CLOUD_CONNECTION QuotaQuotaType
+ CLOUD_CONNECTION_REGION QuotaQuotaType
+ CLOUD_CONNECTION_ROUTE QuotaQuotaType
+ REGION_NETWORK_INSTANCE QuotaQuotaType
+}
+
+func GetQuotaQuotaTypeEnum() QuotaQuotaTypeEnum {
+ return QuotaQuotaTypeEnum{
+ CLOUD_CONNECTION: QuotaQuotaType{
+ value: "cloud_connection",
+ },
+ CLOUD_CONNECTION_REGION: QuotaQuotaType{
+ value: "cloud_connection_region",
+ },
+ CLOUD_CONNECTION_ROUTE: QuotaQuotaType{
+ value: "cloud_connection_route",
+ },
+ REGION_NETWORK_INSTANCE: QuotaQuotaType{
+ value: "region_network_instance",
+ },
+ }
+}
+
+func (c QuotaQuotaType) Value() string {
+ return c.value
+}
+
+func (c QuotaQuotaType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *QuotaQuotaType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_request.go
new file mode 100644
index 00000000..c9f5e87b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowBandwidthPackageRequest struct {
+
+ // 带宽包实例ID。
+ Id string `json:"id"`
+}
+
+func (o ShowBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_response.go
new file mode 100644
index 00000000..2afe2035
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_bandwidth_package_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowBandwidthPackageResponse struct {
+ BandwidthPackage *BandwidthPackage `json:"bandwidth_package,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_request.go
new file mode 100644
index 00000000..e57b1b96
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowCloudConnectionRequest struct {
+
+ // 云连接实例ID。
+ Id string `json:"id"`
+}
+
+func (o ShowCloudConnectionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowCloudConnectionRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowCloudConnectionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_response.go
new file mode 100644
index 00000000..3989599d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowCloudConnectionResponse struct {
+ CloudConnection *CloudConnection `json:"cloud_connection,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowCloudConnectionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowCloudConnectionResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowCloudConnectionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_request.go
new file mode 100644
index 00000000..289fd3f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowCloudConnectionRoutesRequest struct {
+
+ // 云连接路由实例ID。
+ Id string `json:"id"`
+}
+
+func (o ShowCloudConnectionRoutesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowCloudConnectionRoutesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowCloudConnectionRoutesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_response.go
new file mode 100644
index 00000000..98203a41
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_cloud_connection_routes_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowCloudConnectionRoutesResponse struct {
+ CloudConnectionRoute *CloudConnectionRoute `json:"cloud_connection_route,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowCloudConnectionRoutesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowCloudConnectionRoutesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowCloudConnectionRoutesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_request.go
new file mode 100644
index 00000000..39f329bd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowInterRegionBandwidthRequest struct {
+
+ // 域间带宽实例ID。
+ Id string `json:"id"`
+}
+
+func (o ShowInterRegionBandwidthRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInterRegionBandwidthRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowInterRegionBandwidthRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_response.go
new file mode 100644
index 00000000..e02a7f61
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_inter_region_bandwidth_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowInterRegionBandwidthResponse struct {
+ InterRegionBandwidth *InterRegionBandwidth `json:"inter_region_bandwidth,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowInterRegionBandwidthResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInterRegionBandwidthResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowInterRegionBandwidthResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_request.go
new file mode 100644
index 00000000..62f19e5c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowNetworkInstanceRequest struct {
+
+ // 网络实例ID。
+ Id string `json:"id"`
+}
+
+func (o ShowNetworkInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowNetworkInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowNetworkInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_response.go
new file mode 100644
index 00000000..605c2662
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_show_network_instance_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowNetworkInstanceResponse struct {
+ NetworkInstance *NetworkInstance `json:"network_instance,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowNetworkInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowNetworkInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowNetworkInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tag.go
new file mode 100644
index 00000000..23a0836c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 一个key/value键值对
+type Tag struct {
+
+ // 键
+ Key *string `json:"key,omitempty"`
+
+ // 值
+ Value *string `json:"value,omitempty"`
+}
+
+func (o Tag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Tag struct{}"
+ }
+
+ return strings.Join([]string{"Tag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tags.go
new file mode 100644
index 00000000..2f0f71ea
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_tags.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 资源标签Tag汇总复数
+type Tags struct {
+
+ // 动作。|- create:创建。 delete:删除。
+ Action *TagsAction `json:"action,omitempty"`
+
+ // 批量添加/删除资源标签
+ Tags *[]Tag `json:"tags,omitempty"`
+}
+
+func (o Tags) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Tags struct{}"
+ }
+
+ return strings.Join([]string{"Tags", string(data)}, " ")
+}
+
+type TagsAction struct {
+ value string
+}
+
+type TagsActionEnum struct {
+ CREATE TagsAction
+ DELETE TagsAction
+}
+
+func GetTagsActionEnum() TagsActionEnum {
+ return TagsActionEnum{
+ CREATE: TagsAction{
+ value: "create",
+ },
+ DELETE: TagsAction{
+ value: "delete",
+ },
+ }
+}
+
+func (c TagsAction) Value() string {
+ return c.value
+}
+
+func (c TagsAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *TagsAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation.go
new file mode 100644
index 00000000..1711df84
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新授权的详细信息。
+type UpdateAuthorisation struct {
+
+ // 授权的名称。
+ Name *string `json:"name,omitempty"`
+
+ // 授权的描述信息。
+ Description *string `json:"description,omitempty"`
+}
+
+func (o UpdateAuthorisation) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAuthorisation struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAuthorisation", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request.go
new file mode 100644
index 00000000..124b03fa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateAuthorisationRequest struct {
+
+ // 授权实例ID。
+ Id string `json:"id"`
+
+ Body *UpdateAuthorisationRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateAuthorisationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAuthorisationRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAuthorisationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request_body.go
new file mode 100644
index 00000000..6e4638a5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新授权的详细信息。
+type UpdateAuthorisationRequestBody struct {
+ Authorisation *UpdateAuthorisation `json:"authorisation"`
+}
+
+func (o UpdateAuthorisationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAuthorisationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAuthorisationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_response.go
new file mode 100644
index 00000000..3f4c3e6a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_authorisation_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateAuthorisationResponse struct {
+ Authorisation *Authorisation `json:"authorisation,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateAuthorisationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAuthorisationResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAuthorisationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package.go
new file mode 100644
index 00000000..b31c121e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package.go
@@ -0,0 +1,76 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 更新带宽包实例的请求体
+type UpdateBandwidthPackage struct {
+
+ // 带宽包实例的名字。
+ Name *string `json:"name,omitempty"`
+
+ // 带宽包实例的描述。
+ Description *string `json:"description,omitempty"`
+
+ // 带宽包实例中的带宽值。
+ Bandwidth *int32 `json:"bandwidth,omitempty"`
+
+ // 带宽包实例在大陆站或国际站的计费方式: - 5:大陆站按95方式计费 - 6:国际站按95方式计费
+ BillingMode *UpdateBandwidthPackageBillingMode `json:"billing_mode,omitempty"`
+}
+
+func (o UpdateBandwidthPackage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBandwidthPackage struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBandwidthPackage", string(data)}, " ")
+}
+
+type UpdateBandwidthPackageBillingMode struct {
+ value int32
+}
+
+type UpdateBandwidthPackageBillingModeEnum struct {
+ E_5 UpdateBandwidthPackageBillingMode
+ E_6 UpdateBandwidthPackageBillingMode
+}
+
+func GetUpdateBandwidthPackageBillingModeEnum() UpdateBandwidthPackageBillingModeEnum {
+ return UpdateBandwidthPackageBillingModeEnum{
+ E_5: UpdateBandwidthPackageBillingMode{
+ value: 5,
+ }, E_6: UpdateBandwidthPackageBillingMode{
+ value: 6,
+ },
+ }
+}
+
+func (c UpdateBandwidthPackageBillingMode) Value() int32 {
+ return c.value
+}
+
+func (c UpdateBandwidthPackageBillingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateBandwidthPackageBillingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request.go
new file mode 100644
index 00000000..610823bd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateBandwidthPackageRequest struct {
+
+ // 带宽包实例ID。
+ Id string `json:"id"`
+
+ Body *UpdateBandwidthPackageRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateBandwidthPackageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBandwidthPackageRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBandwidthPackageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request_body.go
new file mode 100644
index 00000000..1a23b603
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新带宽包实例的请求体。
+type UpdateBandwidthPackageRequestBody struct {
+ BandwidthPackage *UpdateBandwidthPackage `json:"bandwidth_package"`
+}
+
+func (o UpdateBandwidthPackageRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBandwidthPackageRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBandwidthPackageRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_response.go
new file mode 100644
index 00000000..aabdf59f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_bandwidth_package_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateBandwidthPackageResponse struct {
+ BandwidthPackage *BandwidthPackage `json:"bandwidth_package,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateBandwidthPackageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateBandwidthPackageResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateBandwidthPackageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection.go
new file mode 100644
index 00000000..d9519430
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新云连接实例的详细信息。
+type UpdateCloudConnection struct {
+
+ // 云连接实例的名字。只能由中文、英文字母、数字、下划线、中划线、点组成。
+ Name *string `json:"name,omitempty"`
+
+ // 云连接实例的描述。不支持 <>。
+ Description *string `json:"description,omitempty"`
+}
+
+func (o UpdateCloudConnection) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCloudConnection struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCloudConnection", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request.go
new file mode 100644
index 00000000..78daad81
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateCloudConnectionRequest struct {
+
+ // 云连接实例ID。
+ Id string `json:"id"`
+
+ Body *UpdateCloudConnectionRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateCloudConnectionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCloudConnectionRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCloudConnectionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request_body.go
new file mode 100644
index 00000000..cedf40e5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新云连接实例的请求体。
+type UpdateCloudConnectionRequestBody struct {
+ CloudConnection *UpdateCloudConnection `json:"cloud_connection"`
+}
+
+func (o UpdateCloudConnectionRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCloudConnectionRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCloudConnectionRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_response.go
new file mode 100644
index 00000000..df467c3d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_cloud_connection_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateCloudConnectionResponse struct {
+ CloudConnection *CloudConnection `json:"cloud_connection,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateCloudConnectionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateCloudConnectionResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateCloudConnectionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth.go
new file mode 100644
index 00000000..03d48f86
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新域间带宽的详情信息。
+type UpdateInterRegionBandwidth struct {
+
+ // 域间带宽值。
+ Bandwidth int32 `json:"bandwidth"`
+}
+
+func (o UpdateInterRegionBandwidth) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateInterRegionBandwidth struct{}"
+ }
+
+ return strings.Join([]string{"UpdateInterRegionBandwidth", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request.go
new file mode 100644
index 00000000..df8cf90a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateInterRegionBandwidthRequest struct {
+
+ // 域间带宽实例ID。
+ Id string `json:"id"`
+
+ Body *UpdateInterRegionBandwidthRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateInterRegionBandwidthRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateInterRegionBandwidthRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateInterRegionBandwidthRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request_body.go
new file mode 100644
index 00000000..7410e941
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新域间带宽实例的请求体。
+type UpdateInterRegionBandwidthRequestBody struct {
+ InterRegionBandwidth *UpdateInterRegionBandwidth `json:"inter_region_bandwidth"`
+}
+
+func (o UpdateInterRegionBandwidthRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateInterRegionBandwidthRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateInterRegionBandwidthRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_response.go
new file mode 100644
index 00000000..021b239a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_inter_region_bandwidth_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateInterRegionBandwidthResponse struct {
+ InterRegionBandwidth *InterRegionBandwidth `json:"inter_region_bandwidth,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateInterRegionBandwidthResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateInterRegionBandwidthResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateInterRegionBandwidthResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance.go
new file mode 100644
index 00000000..9a639a94
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新网络实例的详细信息。
+type UpdateNetworkInstance struct {
+
+ // 网络实例的名字。只能由中文、英文字母、数字、下划线、中划线、点组成。
+ Name *string `json:"name,omitempty"`
+
+ // 网络实例的描述。不支持 <>。
+ Description *string `json:"description,omitempty"`
+
+ // 网络实例发布的网段路由列表。
+ Cidrs *[]string `json:"cidrs,omitempty"`
+}
+
+func (o UpdateNetworkInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateNetworkInstance struct{}"
+ }
+
+ return strings.Join([]string{"UpdateNetworkInstance", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request.go
new file mode 100644
index 00000000..d692ceca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateNetworkInstanceRequest struct {
+
+ // 网络实例ID。
+ Id string `json:"id"`
+
+ Body *UpdateNetworkInstanceRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateNetworkInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateNetworkInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateNetworkInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request_body.go
new file mode 100644
index 00000000..665bf804
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新网络实例的请求体。
+type UpdateNetworkInstanceRequestBody struct {
+ NetworkInstance *UpdateNetworkInstance `json:"network_instance"`
+}
+
+func (o UpdateNetworkInstanceRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateNetworkInstanceRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateNetworkInstanceRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_response.go
new file mode 100644
index 00000000..12723f0d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/model/model_update_network_instance_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateNetworkInstanceResponse struct {
+ NetworkInstance *NetworkInstance `json:"network_instance,omitempty"`
+
+ // 请求ID。
+ RequestId *string `json:"request_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateNetworkInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateNetworkInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateNetworkInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/region/region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/region/region.go
new file mode 100644
index 00000000..015fdc13
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cc/v3/region/region.go
@@ -0,0 +1,36 @@
+package region
+
+import (
+ "fmt"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region"
+)
+
+var (
+ CN_NORTH_4 = region.NewRegion("cn-north-4",
+ "https://cc.myhuaweicloud.com")
+ CN_NORTH_1 = region.NewRegion("cn-north-1",
+ "https://ccaas.cn-north-1.myhuaweicloud.com")
+)
+
+var staticFields = map[string]*region.Region{
+ "cn-north-4": CN_NORTH_4,
+ "cn-north-1": CN_NORTH_1,
+}
+
+var provider = region.DefaultProviderChain("CC")
+
+func ValueOf(regionId string) *region.Region {
+ if regionId == "" {
+ panic("unexpected empty parameter: regionId")
+ }
+
+ reg := provider.GetRegion(regionId)
+ if reg != nil {
+ return reg
+ }
+
+ if _, ok := staticFields[regionId]; ok {
+ return staticFields[regionId]
+ }
+ panic(fmt.Sprintf("unexpected regionId: %s", regionId))
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/cdm_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/cdm_client.go
index 035eba48..6d42fa90 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/cdm_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/cdm_client.go
@@ -23,8 +23,7 @@ func CdmClientBuilder() *http_client.HcHttpClientBuilder {
//
// 随机集群创建作业并执行接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) CreateAndStartRandomClusterJob(request *model.CreateAndStartRandomClusterJobRequest) (*model.CreateAndStartRandomClusterJobResponse, error) {
requestDef := GenReqDefForCreateAndStartRandomClusterJob()
@@ -45,8 +44,7 @@ func (c *CdmClient) CreateAndStartRandomClusterJobInvoker(request *model.CreateA
//
// 创建集群接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error) {
requestDef := GenReqDefForCreateCluster()
@@ -67,8 +65,7 @@ func (c *CdmClient) CreateClusterInvoker(request *model.CreateClusterRequest) *C
//
// 指定集群创建作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) CreateJob(request *model.CreateJobRequest) (*model.CreateJobResponse, error) {
requestDef := GenReqDefForCreateJob()
@@ -89,8 +86,7 @@ func (c *CdmClient) CreateJobInvoker(request *model.CreateJobRequest) *CreateJob
//
// 创建连接接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) CreateLink(request *model.CreateLinkRequest) (*model.CreateLinkResponse, error) {
requestDef := GenReqDefForCreateLink()
@@ -111,8 +107,7 @@ func (c *CdmClient) CreateLinkInvoker(request *model.CreateLinkRequest) *CreateL
//
// 删除集群接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error) {
requestDef := GenReqDefForDeleteCluster()
@@ -133,8 +128,7 @@ func (c *CdmClient) DeleteClusterInvoker(request *model.DeleteClusterRequest) *D
//
// 删除作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) DeleteJob(request *model.DeleteJobRequest) (*model.DeleteJobResponse, error) {
requestDef := GenReqDefForDeleteJob()
@@ -155,8 +149,7 @@ func (c *CdmClient) DeleteJobInvoker(request *model.DeleteJobRequest) *DeleteJob
//
// 删除连接接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) DeleteLink(request *model.DeleteLinkRequest) (*model.DeleteLinkResponse, error) {
requestDef := GenReqDefForDeleteLink()
@@ -177,8 +170,7 @@ func (c *CdmClient) DeleteLinkInvoker(request *model.DeleteLinkRequest) *DeleteL
//
// 查询集群列表接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error) {
requestDef := GenReqDefForListClusters()
@@ -199,8 +191,7 @@ func (c *CdmClient) ListClustersInvoker(request *model.ListClustersRequest) *Lis
//
// 重启集群接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error) {
requestDef := GenReqDefForRestartCluster()
@@ -221,8 +212,7 @@ func (c *CdmClient) RestartClusterInvoker(request *model.RestartClusterRequest)
//
// 查询集群详情接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ShowClusterDetail(request *model.ShowClusterDetailRequest) (*model.ShowClusterDetailResponse, error) {
requestDef := GenReqDefForShowClusterDetail()
@@ -243,8 +233,7 @@ func (c *CdmClient) ShowClusterDetailInvoker(request *model.ShowClusterDetailReq
//
// 查询作业状态接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ShowJobStatus(request *model.ShowJobStatusRequest) (*model.ShowJobStatusResponse, error) {
requestDef := GenReqDefForShowJobStatus()
@@ -265,8 +254,7 @@ func (c *CdmClient) ShowJobStatusInvoker(request *model.ShowJobStatusRequest) *S
//
// 查询作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ShowJobs(request *model.ShowJobsRequest) (*model.ShowJobsResponse, error) {
requestDef := GenReqDefForShowJobs()
@@ -287,8 +275,7 @@ func (c *CdmClient) ShowJobsInvoker(request *model.ShowJobsRequest) *ShowJobsInv
//
// 查询连接接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ShowLink(request *model.ShowLinkRequest) (*model.ShowLinkResponse, error) {
requestDef := GenReqDefForShowLink()
@@ -309,8 +296,7 @@ func (c *CdmClient) ShowLinkInvoker(request *model.ShowLinkRequest) *ShowLinkInv
//
// 查询作业执行历史接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) ShowSubmissions(request *model.ShowSubmissionsRequest) (*model.ShowSubmissionsResponse, error) {
requestDef := GenReqDefForShowSubmissions()
@@ -331,8 +317,7 @@ func (c *CdmClient) ShowSubmissionsInvoker(request *model.ShowSubmissionsRequest
//
// 启动集群接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) StartCluster(request *model.StartClusterRequest) (*model.StartClusterResponse, error) {
requestDef := GenReqDefForStartCluster()
@@ -353,8 +338,7 @@ func (c *CdmClient) StartClusterInvoker(request *model.StartClusterRequest) *Sta
//
// 启动作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) StartJob(request *model.StartJobRequest) (*model.StartJobResponse, error) {
requestDef := GenReqDefForStartJob()
@@ -375,8 +359,7 @@ func (c *CdmClient) StartJobInvoker(request *model.StartJobRequest) *StartJobInv
//
// 停止集群接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) StopCluster(request *model.StopClusterRequest) (*model.StopClusterResponse, error) {
requestDef := GenReqDefForStopCluster()
@@ -397,8 +380,7 @@ func (c *CdmClient) StopClusterInvoker(request *model.StopClusterRequest) *StopC
//
// 停止作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) StopJob(request *model.StopJobRequest) (*model.StopJobResponse, error) {
requestDef := GenReqDefForStopJob()
@@ -419,8 +401,7 @@ func (c *CdmClient) StopJobInvoker(request *model.StopJobRequest) *StopJobInvoke
//
// 修改作业接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) UpdateJob(request *model.UpdateJobRequest) (*model.UpdateJobResponse, error) {
requestDef := GenReqDefForUpdateJob()
@@ -441,8 +422,7 @@ func (c *CdmClient) UpdateJobInvoker(request *model.UpdateJobRequest) *UpdateJob
//
// 修改连接接口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CdmClient) UpdateLink(request *model.UpdateLinkRequest) (*model.UpdateLinkResponse, error) {
requestDef := GenReqDefForUpdateLink()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_create_cluster_req_cluster.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_create_cluster_req_cluster.go
index c51c51ab..854254ca 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_create_cluster_req_cluster.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_create_cluster_req_cluster.go
@@ -20,6 +20,8 @@ type CdmCreateClusterReqCluster struct {
Datastore *Datastore `json:"datastore,omitempty"`
+ ExtendedProperties *ExtendedProperties `json:"extended_properties,omitempty"`
+
// 定时关机的时间,定时关机时系统不会等待未完成的作业执行完成
ScheduleOffTime *string `json:"scheduleOffTime,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_restart_cluster_req_restart.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_restart_cluster_req_restart.go
index 0cbc270f..97f84ad0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_restart_cluster_req_restart.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_cdm_restart_cluster_req_restart.go
@@ -12,7 +12,7 @@ type CdmRestartClusterReqRestart struct {
// 重启时延,单位:秒
RestartDelayTime *int32 `json:"restartDelayTime,omitempty"`
- // 重启类型: - IMMEDIATELY:立即重启。 - GRACEFULL:优雅重启。 - FORCELY:强制重启。 - SOFTLY:一般重启。 默认值为“IMMEDIATELY”。优雅重启等作业执行完后,有序的释放资源再重启,并且只重启CDM服务的进程,不会重启集群虚拟机。强制重启业务进程会中断,并重启集群的虚拟机。
+ // 重启类型: - IMMEDIATELY:立即重启。 - FORCELY:强制重启。 - SOFTLY:一般重启。 默认值为“IMMEDIATELY”。强制重启业务进程会中断,并重启集群的虚拟机。
RestartMode *string `json:"restartMode,omitempty"`
// 重启级别: - SERVICE:重启服务。 - VM:重启虚拟机。 默认值为“SERVICE”。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_config_values.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_config_values.go
index d3c5cac1..b20dd12a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_config_values.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_config_values.go
@@ -9,7 +9,9 @@ import (
type ConfigValues struct {
// 源连接参数、目的连接参数和作业任务参数,它们的配置数据结构相同,其中“inputs”里的参数不一样,详细请参见configs数据结构说明
- Configs *[]Configs `json:"configs,omitempty"`
+ Configs []Configs `json:"configs"`
+
+ ExtendedConfigs *ExtendedConfigs `json:"extended-configs,omitempty"`
}
func (o ConfigValues) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_configs.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_configs.go
index 6af432aa..b6d6ba69 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_configs.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_configs.go
@@ -15,10 +15,10 @@ type Configs struct {
Name string `json:"name"`
// 配置ID
- Id int32 `json:"id"`
+ Id *int32 `json:"id,omitempty"`
// 配置类型
- Type string `json:"type"`
+ Type *string `json:"type,omitempty"`
}
func (o Configs) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_configs.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_configs.go
new file mode 100644
index 00000000..eb3eef88
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_configs.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ExtendedConfigs struct {
+
+ // 扩展参数属性名称
+ Name *string `json:"name,omitempty"`
+
+ // cdm-base64编码后的值
+ Value *string `json:"value,omitempty"`
+}
+
+func (o ExtendedConfigs) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExtendedConfigs struct{}"
+ }
+
+ return strings.Join([]string{"ExtendedConfigs", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_properties.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_properties.go
new file mode 100644
index 00000000..7a2c167d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_extended_properties.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群扩展信息
+type ExtendedProperties struct {
+
+ // 工作空间ID。
+ WorkSpaceId *string `json:"workSpaceId,omitempty"`
+
+ // 资源ID。
+ ResourceId *string `json:"resourceId,omitempty"`
+
+ // 是否是试用集群。
+ Trial *string `json:"trial,omitempty"`
+}
+
+func (o ExtendedProperties) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExtendedProperties struct{}"
+ }
+
+ return strings.Join([]string{"ExtendedProperties", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_input.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_input.go
index 2900675a..1b0b3b4d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_input.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_input.go
@@ -12,7 +12,7 @@ type Input struct {
Name string `json:"name"`
// 参数值
- Values string `json:"values"`
+ Value string `json:"value"`
// 值类型
Type *string `json:"type,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_job.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_job.go
index bac39477..0bcf23c0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_job.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_job.go
@@ -92,11 +92,17 @@ type Job struct {
// 执行_更新_日期。
ExecuteUpdateDate *int64 `json:"execute_update_date,omitempty"`
- // 写入行数
+ // 写入数据行数
WriteRows *int32 `json:"write_rows,omitempty"`
+ // 写入行数
+ RowsWritten *int32 `json:"rows_written,omitempty"`
+
+ // 读取的行数
+ RowsRead *int64 `json:"rows_read,omitempty"`
+
// 写入文件数
- FilesWritte *int32 `json:"files_writte,omitempty"`
+ FilesWritten *int32 `json:"files_written,omitempty"`
// 是否增量
IsIncrementing *bool `json:"is_incrementing,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_stop_job_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_stop_job_response.go
index 779b9447..14bf2ec2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_stop_job_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/cdm/v1/model/model_stop_job_response.go
@@ -9,9 +9,9 @@ import (
// Response Object
type StopJobResponse struct {
- // 作业运行信息,请参见submission参数说明
- Submissions *[]StartJobSubmission `json:"submissions,omitempty"`
- HttpStatusCode int `json:"-"`
+ // 校验结构:如果停止作业接失败,返回失败原因,请参见validation-result参数说明。如果停止成功,返回空列表。
+ ValidationResult *[]JobValidationResult `json:"validation-result,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o StopJobResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/ces_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/ces_client.go
index c16ec058..4fb34877 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/ces_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/ces_client.go
@@ -23,8 +23,7 @@ func CesClientBuilder() *http_client.HcHttpClientBuilder {
//
// 批量查询指定时间范围内指定指标的指定粒度的监控数据,目前最多支持500指标的批量查询。 对于不同的period取值和查询的指标数量,默认的最大查询区间(to-from)不同。 规则为\"指标数量*(to-from)/监控周期<=3000\",若超出阈值,会自动调整from以满足规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) BatchListMetricData(request *model.BatchListMetricDataRequest) (*model.BatchListMetricDataResponse, error) {
requestDef := GenReqDefForBatchListMetricData()
@@ -45,8 +44,7 @@ func (c *CesClient) BatchListMetricDataInvoker(request *model.BatchListMetricDat
//
// 创建一条告警规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) CreateAlarm(request *model.CreateAlarmRequest) (*model.CreateAlarmResponse, error) {
requestDef := GenReqDefForCreateAlarm()
@@ -67,8 +65,7 @@ func (c *CesClient) CreateAlarmInvoker(request *model.CreateAlarmRequest) *Creat
//
// 创建自定义告警模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) CreateAlarmTemplate(request *model.CreateAlarmTemplateRequest) (*model.CreateAlarmTemplateResponse, error) {
requestDef := GenReqDefForCreateAlarmTemplate()
@@ -89,8 +86,7 @@ func (c *CesClient) CreateAlarmTemplateInvoker(request *model.CreateAlarmTemplat
//
// 上报自定义事件。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) CreateEvents(request *model.CreateEventsRequest) (*model.CreateEventsResponse, error) {
requestDef := GenReqDefForCreateEvents()
@@ -111,8 +107,7 @@ func (c *CesClient) CreateEventsInvoker(request *model.CreateEventsRequest) *Cre
//
// 添加一条或多条指标监控数据。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) CreateMetricData(request *model.CreateMetricDataRequest) (*model.CreateMetricDataResponse, error) {
requestDef := GenReqDefForCreateMetricData()
@@ -133,8 +128,7 @@ func (c *CesClient) CreateMetricDataInvoker(request *model.CreateMetricDataReque
//
// 创建资源分组,资源分组支持将各类资源按照业务集中进行分组管理,可以从分组角度查看监控与告警信息,以提升运维效率。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) CreateResourceGroup(request *model.CreateResourceGroupRequest) (*model.CreateResourceGroupResponse, error) {
requestDef := GenReqDefForCreateResourceGroup()
@@ -155,8 +149,7 @@ func (c *CesClient) CreateResourceGroupInvoker(request *model.CreateResourceGrou
//
// 删除一条告警规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) DeleteAlarm(request *model.DeleteAlarmRequest) (*model.DeleteAlarmResponse, error) {
requestDef := GenReqDefForDeleteAlarm()
@@ -177,8 +170,7 @@ func (c *CesClient) DeleteAlarmInvoker(request *model.DeleteAlarmRequest) *Delet
//
// 根据ID删除自定义告警模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) DeleteAlarmTemplate(request *model.DeleteAlarmTemplateRequest) (*model.DeleteAlarmTemplateResponse, error) {
requestDef := GenReqDefForDeleteAlarmTemplate()
@@ -199,8 +191,7 @@ func (c *CesClient) DeleteAlarmTemplateInvoker(request *model.DeleteAlarmTemplat
//
// 删除一条资源分组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) DeleteResourceGroup(request *model.DeleteResourceGroupRequest) (*model.DeleteResourceGroupResponse, error) {
requestDef := GenReqDefForDeleteResourceGroup()
@@ -221,8 +212,7 @@ func (c *CesClient) DeleteResourceGroupInvoker(request *model.DeleteResourceGrou
//
// 查询告警历史列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListAlarmHistories(request *model.ListAlarmHistoriesRequest) (*model.ListAlarmHistoriesResponse, error) {
requestDef := GenReqDefForListAlarmHistories()
@@ -243,8 +233,7 @@ func (c *CesClient) ListAlarmHistoriesInvoker(request *model.ListAlarmHistoriesR
//
// 查询自定义告警模板列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListAlarmTemplates(request *model.ListAlarmTemplatesRequest) (*model.ListAlarmTemplatesResponse, error) {
requestDef := GenReqDefForListAlarmTemplates()
@@ -265,8 +254,7 @@ func (c *CesClient) ListAlarmTemplatesInvoker(request *model.ListAlarmTemplatesR
//
// 查询告警规则列表,可以指定分页条件限制结果数量,可以指定排序规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListAlarms(request *model.ListAlarmsRequest) (*model.ListAlarmsResponse, error) {
requestDef := GenReqDefForListAlarms()
@@ -287,8 +275,7 @@ func (c *CesClient) ListAlarmsInvoker(request *model.ListAlarmsRequest) *ListAla
//
// 根据事件监控名称,查询该事件发生的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListEventDetail(request *model.ListEventDetailRequest) (*model.ListEventDetailResponse, error) {
requestDef := GenReqDefForListEventDetail()
@@ -309,8 +296,7 @@ func (c *CesClient) ListEventDetailInvoker(request *model.ListEventDetailRequest
//
// 查询事件监控列表,包括系统事件和自定义事件。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error) {
requestDef := GenReqDefForListEvents()
@@ -331,8 +317,7 @@ func (c *CesClient) ListEventsInvoker(request *model.ListEventsRequest) *ListEve
//
// 查询系统当前可监控指标列表,可以指定指标命名空间、指标名称、维度、排序方式,起始记录和最大记录条数过滤查询结果。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListMetrics(request *model.ListMetricsRequest) (*model.ListMetricsResponse, error) {
requestDef := GenReqDefForListMetrics()
@@ -353,8 +338,7 @@ func (c *CesClient) ListMetricsInvoker(request *model.ListMetricsRequest) *ListM
//
// 查询所创建的所有资源分组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ListResourceGroup(request *model.ListResourceGroupRequest) (*model.ListResourceGroupResponse, error) {
requestDef := GenReqDefForListResourceGroup()
@@ -375,8 +359,7 @@ func (c *CesClient) ListResourceGroupInvoker(request *model.ListResourceGroupReq
//
// 根据告警ID查询告警规则信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ShowAlarm(request *model.ShowAlarmRequest) (*model.ShowAlarmResponse, error) {
requestDef := GenReqDefForShowAlarm()
@@ -397,8 +380,7 @@ func (c *CesClient) ShowAlarmInvoker(request *model.ShowAlarmRequest) *ShowAlarm
//
// 查询指定时间范围指定事件类型的主机配置数据,可以通过参数指定需要查询的数据维度。注意:该接口提供给HANA场景下SAP Monitor查询主机配置数据,其他场景下查不到主机配置数据。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ShowEventData(request *model.ShowEventDataRequest) (*model.ShowEventDataResponse, error) {
requestDef := GenReqDefForShowEventData()
@@ -419,8 +401,7 @@ func (c *CesClient) ShowEventDataInvoker(request *model.ShowEventDataRequest) *S
//
// 查询指定时间范围指定指标的指定粒度的监控数据,可以通过参数指定需要查询的数据维度。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ShowMetricData(request *model.ShowMetricDataRequest) (*model.ShowMetricDataResponse, error) {
requestDef := GenReqDefForShowMetricData()
@@ -441,8 +422,7 @@ func (c *CesClient) ShowMetricDataInvoker(request *model.ShowMetricDataRequest)
//
// 查询用户可以创建的资源配额总数及当前使用量,当前仅有告警规则一种资源类型。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error) {
requestDef := GenReqDefForShowQuotas()
@@ -463,8 +443,7 @@ func (c *CesClient) ShowQuotasInvoker(request *model.ShowQuotasRequest) *ShowQuo
//
// 根据资源分组ID查询资源分组下的资源。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) ShowResourceGroup(request *model.ShowResourceGroupRequest) (*model.ShowResourceGroupResponse, error) {
requestDef := GenReqDefForShowResourceGroup()
@@ -485,8 +464,7 @@ func (c *CesClient) ShowResourceGroupInvoker(request *model.ShowResourceGroupReq
//
// 修改告警规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) UpdateAlarm(request *model.UpdateAlarmRequest) (*model.UpdateAlarmResponse, error) {
requestDef := GenReqDefForUpdateAlarm()
@@ -507,8 +485,7 @@ func (c *CesClient) UpdateAlarmInvoker(request *model.UpdateAlarmRequest) *Updat
//
// 启动或停止一条告警规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) UpdateAlarmAction(request *model.UpdateAlarmActionRequest) (*model.UpdateAlarmActionResponse, error) {
requestDef := GenReqDefForUpdateAlarmAction()
@@ -529,8 +506,7 @@ func (c *CesClient) UpdateAlarmActionInvoker(request *model.UpdateAlarmActionReq
//
// 更新自定义告警模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) UpdateAlarmTemplate(request *model.UpdateAlarmTemplateRequest) (*model.UpdateAlarmTemplateResponse, error) {
requestDef := GenReqDefForUpdateAlarmTemplate()
@@ -551,8 +527,7 @@ func (c *CesClient) UpdateAlarmTemplateInvoker(request *model.UpdateAlarmTemplat
//
// 更新资源分组,资源分组支持将各类资源按照业务集中进行分组管理,可以从分组角度查看监控与告警信息,以提升运维效率。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *CesClient) UpdateResourceGroup(request *model.UpdateResourceGroupRequest) (*model.UpdateResourceGroupResponse, error) {
requestDef := GenReqDefForUpdateResourceGroup()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_event_item_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_event_item_detail.go
index 98a87fe9..679da424 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_event_item_detail.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_event_item_detail.go
@@ -32,6 +32,9 @@ type EventItemDetail struct {
// 事件用户。 支持字母 数字_ -/空格 ,最大长度64。
EventUser *string `json:"event_user,omitempty"`
+
+ // 事件类型。 枚举类型,EVENT.SYS或EVENT.CUSTOM,EVENT.SYS为系统事件,用户自已不能上报,只能传EVENT.CUSTOM。
+ EventType *string `json:"event_type,omitempty"`
}
func (o EventItemDetail) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_list_metrics_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_list_metrics_request.go
index dafe334a..5533fb68 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_list_metrics_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_list_metrics_request.go
@@ -15,13 +15,13 @@ type ListMetricsRequest struct {
// 发送的实体的MIME类型。推荐用户默认使用application/json,如果API是对象、镜像上传等接口,媒体类型可按照流类型的不同进行确定。
ContentType string `json:"Content-Type"`
- // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:dim.0=instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim0 *string `json:"dim.0,omitempty"`
- // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:dim.1=instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim1 *string `json:"dim.1,omitempty"`
- // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:dim.2=instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的维度,目前最大支持3个维度,从0开始;维度格式为dim.{i}=key,value,最大值为256。 例如:instance_id,6f3c6f91-4b24-4e1b-b7d1-a94ac1cb011d;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim2 *string `json:"dim.2,omitempty"`
// 取值范围(0,1000],默认值为1000。 用于限制结果数据条数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_event_data_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_event_data_request.go
index ac921bcd..d43d3006 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_event_data_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_event_data_request.go
@@ -15,16 +15,16 @@ type ShowEventDataRequest struct {
// 指标命名空间,如:弹性云服务器的命名空间为SYS.ECS,文档数据库的命名空间为SYS.DDS,各服务的命名空间可查看:“[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Namespace string `json:"namespace"`
- // 指标的第一层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.0=key,value,如dim.0=mongodb_cluster_id,4270ff17-aba3-4138-89fa-820594c39755;key为指标的维度信息,如:文档数据库服务,则第一层维度为mongodb_cluster_id,value为文档数据库实例ID;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第一层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.0=key,value,如mongodb_cluster_id,4270ff17-aba3-4138-89fa-820594c39755;key为指标的维度信息,如:文档数据库服务,则第一层维度为mongodb_cluster_id,value为文档数据库实例ID;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim0 string `json:"dim.0"`
- // 指标的第二层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.1=key,value,如dim.1=mongos_instance_id,c65d39d7-185c-4616-9aca-ad65703b15f9;key为指标的维度信息,如:文档数据库服务,则第二层维度为mongos_instance_id,value为文档数据库集群实例下的mongos节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第二层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.1=key,value,如mongos_instance_id,c65d39d7-185c-4616-9aca-ad65703b15f9;key为指标的维度信息,如:文档数据库服务,则第二层维度为mongos_instance_id,value为文档数据库集群实例下的mongos节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim1 *string `json:"dim.1,omitempty"`
- // 指标的第三层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.2=key,value,如dim.2=mongod_primary_instance_id,5f9498e9-36f8-4317-9ea1-ebe28cba99b4;key为指标的维度信息,如:文档数据库服务,则第三层维度为mongod_primary_instance_id,value为文档数据库实例下的主节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第三层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.2=key,value,如mongod_primary_instance_id,5f9498e9-36f8-4317-9ea1-ebe28cba99b4;key为指标的维度信息,如:文档数据库服务,则第三层维度为mongod_primary_instance_id,value为文档数据库实例下的主节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim2 *string `json:"dim.2,omitempty"`
- // 指标的第四层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.3=key,value,如dim.3=mongod_secondary_instance_id,b46fa2c7-aac6-4ae3-9337-f4ea97f885cb;key为指标的维度信息,如:文档数据库服务,则第四层维度为mongod_secondary_instance_id,value为文档数据库实例下的备节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第四层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.3=key,value,如mongod_secondary_instance_id,b46fa2c7-aac6-4ae3-9337-f4ea97f885cb;key为指标的维度信息,如:文档数据库服务,则第四层维度为mongod_secondary_instance_id,value为文档数据库实例下的备节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim3 *string `json:"dim.3,omitempty"`
// 事件类型,只允许字母、下划线、中划线,字母开头,长度不超过64,如instance_host_info。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_metric_data_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_metric_data_request.go
index da10cece..8dd76ee6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_metric_data_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v1/model/model_show_metric_data_request.go
@@ -21,16 +21,16 @@ type ShowMetricDataRequest struct {
// 资源的监控指标名称,如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
MetricName string `json:"metric_name"`
- // 指标的第一层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.0=key,value,如dim.0=mongodb_cluster_id,4270ff17-aba3-4138-89fa-820594c39755;key为指标的维度信息,如:文档数据库服务,则第一层维度为mongodb_cluster_id,value为文档数据库实例ID;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第一层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.0=key,value,如mongodb_cluster_id,4270ff17-aba3-4138-89fa-820594c39755;key为指标的维度信息,如:文档数据库服务,则第一层维度为mongodb_cluster_id,value为文档数据库实例ID;各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim0 string `json:"dim.0"`
- // 指标的第二层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.1=key,value,如dim.1=mongos_instance_id,c65d39d7-185c-4616-9aca-ad65703b15f9;key为指标的维度信息,如:文档数据库服务,则第二层维度为mongos_instance_id,value为文档数据库集群实例下的mongos节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第二层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.1=key,value,如mongos_instance_id,c65d39d7-185c-4616-9aca-ad65703b15f9;key为指标的维度信息,如:文档数据库服务,则第二层维度为mongos_instance_id,value为文档数据库集群实例下的mongos节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim1 *string `json:"dim.1,omitempty"`
- // 指标的第三层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.2=key,value,如dim.2=mongod_primary_instance_id,5f9498e9-36f8-4317-9ea1-ebe28cba99b4;key为指标的维度信息,如:文档数据库服务,则第三层维度为mongod_primary_instance_id,value为文档数据库实例下的主节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第三层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.2=key,value,如mongod_primary_instance_id,5f9498e9-36f8-4317-9ea1-ebe28cba99b4;key为指标的维度信息,如:文档数据库服务,则第三层维度为mongod_primary_instance_id,value为文档数据库实例下的主节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim2 *string `json:"dim.2,omitempty"`
- // 指标的第四层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.3=key,value,如dim.3=mongod_secondary_instance_id,b46fa2c7-aac6-4ae3-9337-f4ea97f885cb;key为指标的维度信息,如:文档数据库服务,则第四层维度为mongod_secondary_instance_id,value为文档数据库实例下的备节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ // 指标的第四层维度,目前最大支持4个维度,维度编号从0开始;维度格式为dim.3=key,value,如mongod_secondary_instance_id,b46fa2c7-aac6-4ae3-9337-f4ea97f885cb;key为指标的维度信息,如:文档数据库服务,则第四层维度为mongod_secondary_instance_id,value为文档数据库实例下的备节点ID;各资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
Dim3 *string `json:"dim.3,omitempty"`
// 数据聚合方式。支持的值为max, min, average, sum, variance。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_client.go
new file mode 100644
index 00000000..9f94f85a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_client.go
@@ -0,0 +1,545 @@
+package v2
+
+import (
+ http_client "github.com/huaweicloud/huaweicloud-sdk-go-v3/core"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model"
+)
+
+type CesClient struct {
+ HcClient *http_client.HcHttpClient
+}
+
+func NewCesClient(hcClient *http_client.HcHttpClient) *CesClient {
+ return &CesClient{HcClient: hcClient}
+}
+
+func CesClientBuilder() *http_client.HcHttpClientBuilder {
+ builder := http_client.NewHcHttpClientBuilder()
+ return builder
+}
+
+// AddAlarmRuleResources 批量增加告警规则资源
+//
+// 批量增加告警规则资源(资源分组类型的告警规则不支持),资源分组类型的修改请使用资源分组管理相关接口
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) AddAlarmRuleResources(request *model.AddAlarmRuleResourcesRequest) (*model.AddAlarmRuleResourcesResponse, error) {
+ requestDef := GenReqDefForAddAlarmRuleResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AddAlarmRuleResourcesResponse), nil
+ }
+}
+
+// AddAlarmRuleResourcesInvoker 批量增加告警规则资源
+func (c *CesClient) AddAlarmRuleResourcesInvoker(request *model.AddAlarmRuleResourcesRequest) *AddAlarmRuleResourcesInvoker {
+ requestDef := GenReqDefForAddAlarmRuleResources()
+ return &AddAlarmRuleResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchCreateResources 自定义资源分组批量增加关联资源
+//
+// 给自定义资源分组,即类型为手动添加的资源分组,批量增加关联资源
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchCreateResources(request *model.BatchCreateResourcesRequest) (*model.BatchCreateResourcesResponse, error) {
+ requestDef := GenReqDefForBatchCreateResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateResourcesResponse), nil
+ }
+}
+
+// BatchCreateResourcesInvoker 自定义资源分组批量增加关联资源
+func (c *CesClient) BatchCreateResourcesInvoker(request *model.BatchCreateResourcesRequest) *BatchCreateResourcesInvoker {
+ requestDef := GenReqDefForBatchCreateResources()
+ return &BatchCreateResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteAlarmRules 批量删除告警规则
+//
+// 批量删除告警规则V2接口
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchDeleteAlarmRules(request *model.BatchDeleteAlarmRulesRequest) (*model.BatchDeleteAlarmRulesResponse, error) {
+ requestDef := GenReqDefForBatchDeleteAlarmRules()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteAlarmRulesResponse), nil
+ }
+}
+
+// BatchDeleteAlarmRulesInvoker 批量删除告警规则
+func (c *CesClient) BatchDeleteAlarmRulesInvoker(request *model.BatchDeleteAlarmRulesRequest) *BatchDeleteAlarmRulesInvoker {
+ requestDef := GenReqDefForBatchDeleteAlarmRules()
+ return &BatchDeleteAlarmRulesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteAlarmTemplates 批量删除自定义告警模板
+//
+// 批量删除自定义告警模板
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchDeleteAlarmTemplates(request *model.BatchDeleteAlarmTemplatesRequest) (*model.BatchDeleteAlarmTemplatesResponse, error) {
+ requestDef := GenReqDefForBatchDeleteAlarmTemplates()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteAlarmTemplatesResponse), nil
+ }
+}
+
+// BatchDeleteAlarmTemplatesInvoker 批量删除自定义告警模板
+func (c *CesClient) BatchDeleteAlarmTemplatesInvoker(request *model.BatchDeleteAlarmTemplatesRequest) *BatchDeleteAlarmTemplatesInvoker {
+ requestDef := GenReqDefForBatchDeleteAlarmTemplates()
+ return &BatchDeleteAlarmTemplatesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteResourceGroups 批量删除资源分组
+//
+// 批量删除资源分组
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchDeleteResourceGroups(request *model.BatchDeleteResourceGroupsRequest) (*model.BatchDeleteResourceGroupsResponse, error) {
+ requestDef := GenReqDefForBatchDeleteResourceGroups()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteResourceGroupsResponse), nil
+ }
+}
+
+// BatchDeleteResourceGroupsInvoker 批量删除资源分组
+func (c *CesClient) BatchDeleteResourceGroupsInvoker(request *model.BatchDeleteResourceGroupsRequest) *BatchDeleteResourceGroupsInvoker {
+ requestDef := GenReqDefForBatchDeleteResourceGroups()
+ return &BatchDeleteResourceGroupsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteResources 自定义资源分组批量删除关联资源
+//
+// 给自定义资源分组,即类型为手动添加的资源分组,批量删除关联资源
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchDeleteResources(request *model.BatchDeleteResourcesRequest) (*model.BatchDeleteResourcesResponse, error) {
+ requestDef := GenReqDefForBatchDeleteResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteResourcesResponse), nil
+ }
+}
+
+// BatchDeleteResourcesInvoker 自定义资源分组批量删除关联资源
+func (c *CesClient) BatchDeleteResourcesInvoker(request *model.BatchDeleteResourcesRequest) *BatchDeleteResourcesInvoker {
+ requestDef := GenReqDefForBatchDeleteResources()
+ return &BatchDeleteResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchEnableAlarmRules 批量启停告警规则
+//
+// 批量启停告警规则
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) BatchEnableAlarmRules(request *model.BatchEnableAlarmRulesRequest) (*model.BatchEnableAlarmRulesResponse, error) {
+ requestDef := GenReqDefForBatchEnableAlarmRules()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchEnableAlarmRulesResponse), nil
+ }
+}
+
+// BatchEnableAlarmRulesInvoker 批量启停告警规则
+func (c *CesClient) BatchEnableAlarmRulesInvoker(request *model.BatchEnableAlarmRulesRequest) *BatchEnableAlarmRulesInvoker {
+ requestDef := GenReqDefForBatchEnableAlarmRules()
+ return &BatchEnableAlarmRulesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateAlarmRules 创建告警规则
+//
+// 创建告警规则
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) CreateAlarmRules(request *model.CreateAlarmRulesRequest) (*model.CreateAlarmRulesResponse, error) {
+ requestDef := GenReqDefForCreateAlarmRules()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateAlarmRulesResponse), nil
+ }
+}
+
+// CreateAlarmRulesInvoker 创建告警规则
+func (c *CesClient) CreateAlarmRulesInvoker(request *model.CreateAlarmRulesRequest) *CreateAlarmRulesInvoker {
+ requestDef := GenReqDefForCreateAlarmRules()
+ return &CreateAlarmRulesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateAlarmTemplate 创建自定义告警模板
+//
+// 创建自定义告警模板
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) CreateAlarmTemplate(request *model.CreateAlarmTemplateRequest) (*model.CreateAlarmTemplateResponse, error) {
+ requestDef := GenReqDefForCreateAlarmTemplate()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateAlarmTemplateResponse), nil
+ }
+}
+
+// CreateAlarmTemplateInvoker 创建自定义告警模板
+func (c *CesClient) CreateAlarmTemplateInvoker(request *model.CreateAlarmTemplateRequest) *CreateAlarmTemplateInvoker {
+ requestDef := GenReqDefForCreateAlarmTemplate()
+ return &CreateAlarmTemplateInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateResourceGroup 创建资源分组
+//
+// 创建资源分组
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) CreateResourceGroup(request *model.CreateResourceGroupRequest) (*model.CreateResourceGroupResponse, error) {
+ requestDef := GenReqDefForCreateResourceGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateResourceGroupResponse), nil
+ }
+}
+
+// CreateResourceGroupInvoker 创建资源分组
+func (c *CesClient) CreateResourceGroupInvoker(request *model.CreateResourceGroupRequest) *CreateResourceGroupInvoker {
+ requestDef := GenReqDefForCreateResourceGroup()
+ return &CreateResourceGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteAlarmRuleResources 批量删除告警规则资源
+//
+// 批量删除告警规则资源(资源分组类型的告警规则不支持),资源分组类型的修改请使用资源分组管理相关接口
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) DeleteAlarmRuleResources(request *model.DeleteAlarmRuleResourcesRequest) (*model.DeleteAlarmRuleResourcesResponse, error) {
+ requestDef := GenReqDefForDeleteAlarmRuleResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteAlarmRuleResourcesResponse), nil
+ }
+}
+
+// DeleteAlarmRuleResourcesInvoker 批量删除告警规则资源
+func (c *CesClient) DeleteAlarmRuleResourcesInvoker(request *model.DeleteAlarmRuleResourcesRequest) *DeleteAlarmRuleResourcesInvoker {
+ requestDef := GenReqDefForDeleteAlarmRuleResources()
+ return &DeleteAlarmRuleResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAgentDimensionInfo 查询主机监控维度指标信息
+//
+// 根据ECS/BMS资源ID查询磁盘、挂载点、进程、显卡、RAID控制器维度指标信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAgentDimensionInfo(request *model.ListAgentDimensionInfoRequest) (*model.ListAgentDimensionInfoResponse, error) {
+ requestDef := GenReqDefForListAgentDimensionInfo()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAgentDimensionInfoResponse), nil
+ }
+}
+
+// ListAgentDimensionInfoInvoker 查询主机监控维度指标信息
+func (c *CesClient) ListAgentDimensionInfoInvoker(request *model.ListAgentDimensionInfoRequest) *ListAgentDimensionInfoInvoker {
+ requestDef := GenReqDefForListAgentDimensionInfo()
+ return &ListAgentDimensionInfoInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmHistories 查询告警记录列表
+//
+// 查询告警记录列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmHistories(request *model.ListAlarmHistoriesRequest) (*model.ListAlarmHistoriesResponse, error) {
+ requestDef := GenReqDefForListAlarmHistories()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmHistoriesResponse), nil
+ }
+}
+
+// ListAlarmHistoriesInvoker 查询告警记录列表
+func (c *CesClient) ListAlarmHistoriesInvoker(request *model.ListAlarmHistoriesRequest) *ListAlarmHistoriesInvoker {
+ requestDef := GenReqDefForListAlarmHistories()
+ return &ListAlarmHistoriesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmRulePolicies 查询告警规则策略列表
+//
+// 根据告警规则ID查询策略列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmRulePolicies(request *model.ListAlarmRulePoliciesRequest) (*model.ListAlarmRulePoliciesResponse, error) {
+ requestDef := GenReqDefForListAlarmRulePolicies()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmRulePoliciesResponse), nil
+ }
+}
+
+// ListAlarmRulePoliciesInvoker 查询告警规则策略列表
+func (c *CesClient) ListAlarmRulePoliciesInvoker(request *model.ListAlarmRulePoliciesRequest) *ListAlarmRulePoliciesInvoker {
+ requestDef := GenReqDefForListAlarmRulePolicies()
+ return &ListAlarmRulePoliciesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmRuleResources 查询告警规则资源列表
+//
+// 根据告警规则ID查询告警规则资源列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmRuleResources(request *model.ListAlarmRuleResourcesRequest) (*model.ListAlarmRuleResourcesResponse, error) {
+ requestDef := GenReqDefForListAlarmRuleResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmRuleResourcesResponse), nil
+ }
+}
+
+// ListAlarmRuleResourcesInvoker 查询告警规则资源列表
+func (c *CesClient) ListAlarmRuleResourcesInvoker(request *model.ListAlarmRuleResourcesRequest) *ListAlarmRuleResourcesInvoker {
+ requestDef := GenReqDefForListAlarmRuleResources()
+ return &ListAlarmRuleResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmRules 查询告警规则列表
+//
+// 查询告警规则列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmRules(request *model.ListAlarmRulesRequest) (*model.ListAlarmRulesResponse, error) {
+ requestDef := GenReqDefForListAlarmRules()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmRulesResponse), nil
+ }
+}
+
+// ListAlarmRulesInvoker 查询告警规则列表
+func (c *CesClient) ListAlarmRulesInvoker(request *model.ListAlarmRulesRequest) *ListAlarmRulesInvoker {
+ requestDef := GenReqDefForListAlarmRules()
+ return &ListAlarmRulesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmTemplateAssociationAlarms 查询告警模板关联的告警规则列表
+//
+// 查询告警模板关联的告警规则列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmTemplateAssociationAlarms(request *model.ListAlarmTemplateAssociationAlarmsRequest) (*model.ListAlarmTemplateAssociationAlarmsResponse, error) {
+ requestDef := GenReqDefForListAlarmTemplateAssociationAlarms()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmTemplateAssociationAlarmsResponse), nil
+ }
+}
+
+// ListAlarmTemplateAssociationAlarmsInvoker 查询告警模板关联的告警规则列表
+func (c *CesClient) ListAlarmTemplateAssociationAlarmsInvoker(request *model.ListAlarmTemplateAssociationAlarmsRequest) *ListAlarmTemplateAssociationAlarmsInvoker {
+ requestDef := GenReqDefForListAlarmTemplateAssociationAlarms()
+ return &ListAlarmTemplateAssociationAlarmsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmTemplates 查询告警模板列表
+//
+// 查询告警模板列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListAlarmTemplates(request *model.ListAlarmTemplatesRequest) (*model.ListAlarmTemplatesResponse, error) {
+ requestDef := GenReqDefForListAlarmTemplates()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmTemplatesResponse), nil
+ }
+}
+
+// ListAlarmTemplatesInvoker 查询告警模板列表
+func (c *CesClient) ListAlarmTemplatesInvoker(request *model.ListAlarmTemplatesRequest) *ListAlarmTemplatesInvoker {
+ requestDef := GenReqDefForListAlarmTemplates()
+ return &ListAlarmTemplatesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListResourceGroups 查询资源分组列表
+//
+// 查询资源分组列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListResourceGroups(request *model.ListResourceGroupsRequest) (*model.ListResourceGroupsResponse, error) {
+ requestDef := GenReqDefForListResourceGroups()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListResourceGroupsResponse), nil
+ }
+}
+
+// ListResourceGroupsInvoker 查询资源分组列表
+func (c *CesClient) ListResourceGroupsInvoker(request *model.ListResourceGroupsRequest) *ListResourceGroupsInvoker {
+ requestDef := GenReqDefForListResourceGroups()
+ return &ListResourceGroupsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListResourceGroupsServicesResources 查询资源分组下指定服务类别特定维度的资源列表
+//
+// 查询资源分组下指定服务类别特定维度的资源列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ListResourceGroupsServicesResources(request *model.ListResourceGroupsServicesResourcesRequest) (*model.ListResourceGroupsServicesResourcesResponse, error) {
+ requestDef := GenReqDefForListResourceGroupsServicesResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListResourceGroupsServicesResourcesResponse), nil
+ }
+}
+
+// ListResourceGroupsServicesResourcesInvoker 查询资源分组下指定服务类别特定维度的资源列表
+func (c *CesClient) ListResourceGroupsServicesResourcesInvoker(request *model.ListResourceGroupsServicesResourcesRequest) *ListResourceGroupsServicesResourcesInvoker {
+ requestDef := GenReqDefForListResourceGroupsServicesResources()
+ return &ListResourceGroupsServicesResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowAlarmTemplate 查询告警模板详情
+//
+// 查询告警模板详情
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ShowAlarmTemplate(request *model.ShowAlarmTemplateRequest) (*model.ShowAlarmTemplateResponse, error) {
+ requestDef := GenReqDefForShowAlarmTemplate()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowAlarmTemplateResponse), nil
+ }
+}
+
+// ShowAlarmTemplateInvoker 查询告警模板详情
+func (c *CesClient) ShowAlarmTemplateInvoker(request *model.ShowAlarmTemplateRequest) *ShowAlarmTemplateInvoker {
+ requestDef := GenReqDefForShowAlarmTemplate()
+ return &ShowAlarmTemplateInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowResourceGroup 查询指定资源分组详情
+//
+// 查询指定资源分组详情
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) ShowResourceGroup(request *model.ShowResourceGroupRequest) (*model.ShowResourceGroupResponse, error) {
+ requestDef := GenReqDefForShowResourceGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowResourceGroupResponse), nil
+ }
+}
+
+// ShowResourceGroupInvoker 查询指定资源分组详情
+func (c *CesClient) ShowResourceGroupInvoker(request *model.ShowResourceGroupRequest) *ShowResourceGroupInvoker {
+ requestDef := GenReqDefForShowResourceGroup()
+ return &ShowResourceGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateAlarmRulePolicies 修改告警规则策略(全量修改)
+//
+// 修改告警规则策略(全量修改)
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) UpdateAlarmRulePolicies(request *model.UpdateAlarmRulePoliciesRequest) (*model.UpdateAlarmRulePoliciesResponse, error) {
+ requestDef := GenReqDefForUpdateAlarmRulePolicies()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateAlarmRulePoliciesResponse), nil
+ }
+}
+
+// UpdateAlarmRulePoliciesInvoker 修改告警规则策略(全量修改)
+func (c *CesClient) UpdateAlarmRulePoliciesInvoker(request *model.UpdateAlarmRulePoliciesRequest) *UpdateAlarmRulePoliciesInvoker {
+ requestDef := GenReqDefForUpdateAlarmRulePolicies()
+ return &UpdateAlarmRulePoliciesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateAlarmTemplate 修改自定义告警模板
+//
+// 修改自定义告警模板
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) UpdateAlarmTemplate(request *model.UpdateAlarmTemplateRequest) (*model.UpdateAlarmTemplateResponse, error) {
+ requestDef := GenReqDefForUpdateAlarmTemplate()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateAlarmTemplateResponse), nil
+ }
+}
+
+// UpdateAlarmTemplateInvoker 修改自定义告警模板
+func (c *CesClient) UpdateAlarmTemplateInvoker(request *model.UpdateAlarmTemplateRequest) *UpdateAlarmTemplateInvoker {
+ requestDef := GenReqDefForUpdateAlarmTemplate()
+ return &UpdateAlarmTemplateInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateResourceGroup 修改资源分组
+//
+// 修改资源分组
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *CesClient) UpdateResourceGroup(request *model.UpdateResourceGroupRequest) (*model.UpdateResourceGroupResponse, error) {
+ requestDef := GenReqDefForUpdateResourceGroup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateResourceGroupResponse), nil
+ }
+}
+
+// UpdateResourceGroupInvoker 修改资源分组
+func (c *CesClient) UpdateResourceGroupInvoker(request *model.UpdateResourceGroupRequest) *UpdateResourceGroupInvoker {
+ requestDef := GenReqDefForUpdateResourceGroup()
+ return &UpdateResourceGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_invoker.go
new file mode 100644
index 00000000..e5a2bb6f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_invoker.go
@@ -0,0 +1,306 @@
+package v2
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/invoker"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model"
+)
+
+type AddAlarmRuleResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AddAlarmRuleResourcesInvoker) Invoke() (*model.AddAlarmRuleResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AddAlarmRuleResourcesResponse), nil
+ }
+}
+
+type BatchCreateResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateResourcesInvoker) Invoke() (*model.BatchCreateResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateResourcesResponse), nil
+ }
+}
+
+type BatchDeleteAlarmRulesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteAlarmRulesInvoker) Invoke() (*model.BatchDeleteAlarmRulesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteAlarmRulesResponse), nil
+ }
+}
+
+type BatchDeleteAlarmTemplatesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteAlarmTemplatesInvoker) Invoke() (*model.BatchDeleteAlarmTemplatesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteAlarmTemplatesResponse), nil
+ }
+}
+
+type BatchDeleteResourceGroupsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteResourceGroupsInvoker) Invoke() (*model.BatchDeleteResourceGroupsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteResourceGroupsResponse), nil
+ }
+}
+
+type BatchDeleteResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteResourcesInvoker) Invoke() (*model.BatchDeleteResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteResourcesResponse), nil
+ }
+}
+
+type BatchEnableAlarmRulesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchEnableAlarmRulesInvoker) Invoke() (*model.BatchEnableAlarmRulesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchEnableAlarmRulesResponse), nil
+ }
+}
+
+type CreateAlarmRulesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateAlarmRulesInvoker) Invoke() (*model.CreateAlarmRulesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateAlarmRulesResponse), nil
+ }
+}
+
+type CreateAlarmTemplateInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateAlarmTemplateInvoker) Invoke() (*model.CreateAlarmTemplateResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateAlarmTemplateResponse), nil
+ }
+}
+
+type CreateResourceGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateResourceGroupInvoker) Invoke() (*model.CreateResourceGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateResourceGroupResponse), nil
+ }
+}
+
+type DeleteAlarmRuleResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteAlarmRuleResourcesInvoker) Invoke() (*model.DeleteAlarmRuleResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteAlarmRuleResourcesResponse), nil
+ }
+}
+
+type ListAgentDimensionInfoInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAgentDimensionInfoInvoker) Invoke() (*model.ListAgentDimensionInfoResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAgentDimensionInfoResponse), nil
+ }
+}
+
+type ListAlarmHistoriesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmHistoriesInvoker) Invoke() (*model.ListAlarmHistoriesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmHistoriesResponse), nil
+ }
+}
+
+type ListAlarmRulePoliciesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmRulePoliciesInvoker) Invoke() (*model.ListAlarmRulePoliciesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmRulePoliciesResponse), nil
+ }
+}
+
+type ListAlarmRuleResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmRuleResourcesInvoker) Invoke() (*model.ListAlarmRuleResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmRuleResourcesResponse), nil
+ }
+}
+
+type ListAlarmRulesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmRulesInvoker) Invoke() (*model.ListAlarmRulesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmRulesResponse), nil
+ }
+}
+
+type ListAlarmTemplateAssociationAlarmsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmTemplateAssociationAlarmsInvoker) Invoke() (*model.ListAlarmTemplateAssociationAlarmsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmTemplateAssociationAlarmsResponse), nil
+ }
+}
+
+type ListAlarmTemplatesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmTemplatesInvoker) Invoke() (*model.ListAlarmTemplatesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmTemplatesResponse), nil
+ }
+}
+
+type ListResourceGroupsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListResourceGroupsInvoker) Invoke() (*model.ListResourceGroupsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListResourceGroupsResponse), nil
+ }
+}
+
+type ListResourceGroupsServicesResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListResourceGroupsServicesResourcesInvoker) Invoke() (*model.ListResourceGroupsServicesResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListResourceGroupsServicesResourcesResponse), nil
+ }
+}
+
+type ShowAlarmTemplateInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowAlarmTemplateInvoker) Invoke() (*model.ShowAlarmTemplateResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowAlarmTemplateResponse), nil
+ }
+}
+
+type ShowResourceGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowResourceGroupInvoker) Invoke() (*model.ShowResourceGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowResourceGroupResponse), nil
+ }
+}
+
+type UpdateAlarmRulePoliciesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateAlarmRulePoliciesInvoker) Invoke() (*model.UpdateAlarmRulePoliciesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateAlarmRulePoliciesResponse), nil
+ }
+}
+
+type UpdateAlarmTemplateInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateAlarmTemplateInvoker) Invoke() (*model.UpdateAlarmTemplateResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateAlarmTemplateResponse), nil
+ }
+}
+
+type UpdateResourceGroupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateResourceGroupInvoker) Invoke() (*model.UpdateResourceGroupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateResourceGroupResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_meta.go
new file mode 100644
index 00000000..c1b675c0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/ces_meta.go
@@ -0,0 +1,653 @@
+package v2
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/def"
+
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model"
+ "net/http"
+)
+
+func GenReqDefForAddAlarmRuleResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarms/{alarm_id}/resources/batch-create").
+ WithResponse(new(model.AddAlarmRuleResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchCreateResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/resource-groups/{group_id}/resources/batch-create").
+ WithResponse(new(model.BatchCreateResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteAlarmRules() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarms/batch-delete").
+ WithResponse(new(model.BatchDeleteAlarmRulesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteAlarmTemplates() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarm-templates/batch-delete").
+ WithResponse(new(model.BatchDeleteAlarmTemplatesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteResourceGroups() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/resource-groups/batch-delete").
+ WithResponse(new(model.BatchDeleteResourceGroupsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/resource-groups/{group_id}/resources/batch-delete").
+ WithResponse(new(model.BatchDeleteResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchEnableAlarmRules() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarms/action").
+ WithResponse(new(model.BatchEnableAlarmRulesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateAlarmRules() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarms").
+ WithResponse(new(model.CreateAlarmRulesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateAlarmTemplate() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarm-templates").
+ WithResponse(new(model.CreateAlarmTemplateResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateResourceGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/resource-groups").
+ WithResponse(new(model.CreateResourceGroupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteAlarmRuleResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarms/{alarm_id}/resources/batch-delete").
+ WithResponse(new(model.DeleteAlarmRuleResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAgentDimensionInfo() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/instances/{instance_id}/agent-dimensions").
+ WithResponse(new(model.ListAgentDimensionInfoResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DimName").
+ WithJsonTag("dim_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DimValue").
+ WithJsonTag("dim_value").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmHistories() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-histories").
+ WithResponse(new(model.ListAlarmHistoriesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Level").
+ WithJsonTag("level").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Namespace").
+ WithJsonTag("namespace").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("From").
+ WithJsonTag("from").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("To").
+ WithJsonTag("to").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmRulePolicies() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarms/{alarm_id}/policies").
+ WithResponse(new(model.ListAlarmRulePoliciesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmRuleResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarms/{alarm_id}/resources").
+ WithResponse(new(model.ListAlarmRuleResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmRules() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarms").
+ WithResponse(new(model.ListAlarmRulesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Namespace").
+ WithJsonTag("namespace").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmTemplateAssociationAlarms() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-templates/{template_id}/association-alarms").
+ WithResponse(new(model.ListAlarmTemplateAssociationAlarmsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TemplateId").
+ WithJsonTag("template_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmTemplates() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-templates").
+ WithResponse(new(model.ListAlarmTemplatesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Namespace").
+ WithJsonTag("namespace").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DimName").
+ WithJsonTag("dim_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TemplateType").
+ WithJsonTag("template_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TemplateName").
+ WithJsonTag("template_name").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListResourceGroups() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/resource-groups").
+ WithResponse(new(model.ListResourceGroupsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupName").
+ WithJsonTag("group_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListResourceGroupsServicesResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/resource-groups/{group_id}/services/{service}/resources").
+ WithResponse(new(model.ListResourceGroupsServicesResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Service").
+ WithJsonTag("service").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DimName").
+ WithJsonTag("dim_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DimValue").
+ WithJsonTag("dim_value").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowAlarmTemplate() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-templates/{template_id}").
+ WithResponse(new(model.ShowAlarmTemplateResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TemplateId").
+ WithJsonTag("template_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowResourceGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/resource-groups/{group_id}").
+ WithResponse(new(model.ShowResourceGroupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateAlarmRulePolicies() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/alarms/{alarm_id}/policies").
+ WithResponse(new(model.UpdateAlarmRulePoliciesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmId").
+ WithJsonTag("alarm_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ContentType").
+ WithJsonTag("Content-Type").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateAlarmTemplate() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/alarm-templates/{template_id}").
+ WithResponse(new(model.UpdateAlarmTemplateResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TemplateId").
+ WithJsonTag("template_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateResourceGroup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/resource-groups/{group_id}").
+ WithResponse(new(model.UpdateResourceGroupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("GroupId").
+ WithJsonTag("group_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_request.go
new file mode 100644
index 00000000..2f5565c8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AddAlarmRuleResourcesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // Alarm实例ID
+ AlarmId string `json:"alarm_id"`
+
+ Body *ResourcesReqV2 `json:"body,omitempty"`
+}
+
+func (o AddAlarmRuleResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddAlarmRuleResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"AddAlarmRuleResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_response.go
new file mode 100644
index 00000000..d954d83f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_add_alarm_rule_resources_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AddAlarmRuleResourcesResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AddAlarmRuleResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddAlarmRuleResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"AddAlarmRuleResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_additional_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_additional_info.go
new file mode 100644
index 00000000..24ac4ffe
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_additional_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警记录额外字段,仅针对事件监控告警场景所产生的告警记录信息。
+type AdditionalInfo struct {
+
+ // 该条告警记录对应的资源ID;如:22d98f6c-16d2-4c2d-b424-50e79d82838f。
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 该条告警记录对应的资源名称;如:ECS-Test01。
+ ResourceName *string `json:"resource_name,omitempty"`
+
+ // 该条告警记录对应的事件监控ID,资源所产生的事件;如:ev16031292300990kKN8p17J。
+ EventId *string `json:"event_id,omitempty"`
+}
+
+func (o AdditionalInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AdditionalInfo struct{}"
+ }
+
+ return strings.Join([]string{"AdditionalInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_agent_dimension.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_agent_dimension.go
new file mode 100644
index 00000000..4ebf01a5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_agent_dimension.go
@@ -0,0 +1,85 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type AgentDimension struct {
+
+ // 维度名称,枚举类型,类型有: mount_point:挂载点, disk:磁盘, proc:进程, gpu:显卡, raid: RAID控制器
+ Name *AgentDimensionName `json:"name,omitempty"`
+
+ // 维度值,32位字符串,如:2e84018fc8b4484b94e89aae212fe615
+ Value *string `json:"value,omitempty"`
+
+ // 实际维度信息,字符串,如:vda。
+ OriginValue *string `json:"origin_value,omitempty"`
+}
+
+func (o AgentDimension) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AgentDimension struct{}"
+ }
+
+ return strings.Join([]string{"AgentDimension", string(data)}, " ")
+}
+
+type AgentDimensionName struct {
+ value string
+}
+
+type AgentDimensionNameEnum struct {
+ MOUNT_POINT AgentDimensionName
+ DISK AgentDimensionName
+ PROC AgentDimensionName
+ GPU AgentDimensionName
+ RAID AgentDimensionName
+}
+
+func GetAgentDimensionNameEnum() AgentDimensionNameEnum {
+ return AgentDimensionNameEnum{
+ MOUNT_POINT: AgentDimensionName{
+ value: "mount_point",
+ },
+ DISK: AgentDimensionName{
+ value: "disk",
+ },
+ PROC: AgentDimensionName{
+ value: "proc",
+ },
+ GPU: AgentDimensionName{
+ value: "gpu",
+ },
+ RAID: AgentDimensionName{
+ value: "raid",
+ },
+ }
+}
+
+func (c AgentDimensionName) Value() string {
+ return c.value
+}
+
+func (c AgentDimensionName) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AgentDimensionName) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_condition.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_condition.go
new file mode 100644
index 00000000..c7d4c77d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_condition.go
@@ -0,0 +1,162 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 告警触发条件
+type AlarmCondition struct {
+
+ // 指标周期,单位是秒; 0是默认值,例如事件类告警该字段就用0即可; 1代表指标的原始周期,比如RDS监控指标原始周期是60s,表示该RDS指标按60s周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html), 300代表指标按5分钟聚合周期为一个数据点参与告警计算。
+ Period AlarmConditionPeriod `json:"period"`
+
+ // 聚合方式, 支持的值为(average|min|max|sum)
+ Filter string `json:"filter"`
+
+ // 阈值符号
+ ComparisonOperator string `json:"comparison_operator"`
+
+ // 告警阈值,取值范围[0, Number.MAX_VALUE],Number.MAX_VALUE值为1.7976931348623157e+108。具体阈值取值请参见附录中各服务监控指标中取值范围,如支持监控的服务列表中ECS的CPU使用率cpu_util取值范围可配置80。
+ Value float64 `json:"value"`
+
+ // 数据的单位,最大长度为32位。
+ Unit *string `json:"unit,omitempty"`
+
+ // 次数
+ Count int32 `json:"count"`
+
+ // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次;
+ SuppressDuration *AlarmConditionSuppressDuration `json:"suppress_duration,omitempty"`
+}
+
+func (o AlarmCondition) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmCondition struct{}"
+ }
+
+ return strings.Join([]string{"AlarmCondition", string(data)}, " ")
+}
+
+type AlarmConditionPeriod struct {
+ value int32
+}
+
+type AlarmConditionPeriodEnum struct {
+ E_0 AlarmConditionPeriod
+ E_1 AlarmConditionPeriod
+ E_300 AlarmConditionPeriod
+ E_1200 AlarmConditionPeriod
+ E_3600 AlarmConditionPeriod
+ E_14400 AlarmConditionPeriod
+ E_86400 AlarmConditionPeriod
+}
+
+func GetAlarmConditionPeriodEnum() AlarmConditionPeriodEnum {
+ return AlarmConditionPeriodEnum{
+ E_0: AlarmConditionPeriod{
+ value: 0,
+ }, E_1: AlarmConditionPeriod{
+ value: 1,
+ }, E_300: AlarmConditionPeriod{
+ value: 300,
+ }, E_1200: AlarmConditionPeriod{
+ value: 1200,
+ }, E_3600: AlarmConditionPeriod{
+ value: 3600,
+ }, E_14400: AlarmConditionPeriod{
+ value: 14400,
+ }, E_86400: AlarmConditionPeriod{
+ value: 86400,
+ },
+ }
+}
+
+func (c AlarmConditionPeriod) Value() int32 {
+ return c.value
+}
+
+func (c AlarmConditionPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmConditionPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
+
+type AlarmConditionSuppressDuration struct {
+ value int32
+}
+
+type AlarmConditionSuppressDurationEnum struct {
+ E_0 AlarmConditionSuppressDuration
+ E_300 AlarmConditionSuppressDuration
+ E_600 AlarmConditionSuppressDuration
+ E_900 AlarmConditionSuppressDuration
+ E_1800 AlarmConditionSuppressDuration
+ E_3600 AlarmConditionSuppressDuration
+ E_10800 AlarmConditionSuppressDuration
+ E_21600 AlarmConditionSuppressDuration
+ E_43200 AlarmConditionSuppressDuration
+}
+
+func GetAlarmConditionSuppressDurationEnum() AlarmConditionSuppressDurationEnum {
+ return AlarmConditionSuppressDurationEnum{
+ E_0: AlarmConditionSuppressDuration{
+ value: 0,
+ }, E_300: AlarmConditionSuppressDuration{
+ value: 300,
+ }, E_600: AlarmConditionSuppressDuration{
+ value: 600,
+ }, E_900: AlarmConditionSuppressDuration{
+ value: 900,
+ }, E_1800: AlarmConditionSuppressDuration{
+ value: 1800,
+ }, E_3600: AlarmConditionSuppressDuration{
+ value: 3600,
+ }, E_10800: AlarmConditionSuppressDuration{
+ value: 10800,
+ }, E_21600: AlarmConditionSuppressDuration{
+ value: 21600,
+ }, E_43200: AlarmConditionSuppressDuration{
+ value: 43200,
+ },
+ }
+}
+
+func (c AlarmConditionSuppressDuration) Value() int32 {
+ return c.value
+}
+
+func (c AlarmConditionSuppressDuration) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmConditionSuppressDuration) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_description.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_description.go
new file mode 100644
index 00000000..a2f0255e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_description.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警描述,长度0-256
+type AlarmDescription struct {
+}
+
+func (o AlarmDescription) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmDescription struct{}"
+ }
+
+ return strings.Join([]string{"AlarmDescription", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_enabled.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_enabled.go
new file mode 100644
index 00000000..80de2b03
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_enabled.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警开关
+type AlarmEnabled struct {
+}
+
+func (o AlarmEnabled) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmEnabled struct{}"
+ }
+
+ return strings.Join([]string{"AlarmEnabled", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_history_item_v2.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_history_item_v2.go
new file mode 100644
index 00000000..eade32bf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_history_item_v2.go
@@ -0,0 +1,156 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// 告警记录详细信息
+type AlarmHistoryItemV2 struct {
+
+ // 告警记录ID
+ RecordId *string `json:"record_id,omitempty"`
+
+ // 告警规则的ID,如:al1603131199286dzxpqK3Ez。
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警规则的名称,如:alarm-test01。
+ Name *string `json:"name,omitempty"`
+
+ // 告警记录的状态,取值为ok,alarm,invalid; ok为正常,alarm为告警,invalid为已失效。
+ Status *AlarmHistoryItemV2Status `json:"status,omitempty"`
+
+ // 告警记录的告警级别,值为1,2,3,4;1为紧急,2为重要,3为次要,4为提示。
+ Level *AlarmHistoryItemV2Level `json:"level,omitempty"`
+
+ Type *AlarmType `json:"type,omitempty"`
+
+ // 是否发送通知,值为true或者false。
+ ActionEnabled *bool `json:"action_enabled,omitempty"`
+
+ // 产生时间,UTC时间
+ BeginTime *sdktime.SdkTime `json:"begin_time,omitempty"`
+
+ // 结束时间,UTC时间
+ EndTime *sdktime.SdkTime `json:"end_time,omitempty"`
+
+ Metric *Metric `json:"metric,omitempty"`
+
+ Condition *AlarmCondition `json:"condition,omitempty"`
+
+ AdditionalInfo *AdditionalInfo `json:"additional_info,omitempty"`
+
+ // 告警触发的动作。 结构如下: { \"type\": \"notification\", \"notification_list\": [\"urn:smn:southchina:68438a86d98e427e907e0097b7e35d47:sd\"] } type取值: notification:通知。 autoscaling:弹性伸缩。 notification_list:告警状态发生变化时,被通知对象的列表。
+ AlarmActions *[]Notification `json:"alarm_actions,omitempty"`
+
+ // 告警恢复触发的动作。 结构如下: { \"type\": \"notification\", \"notification_list\": [\"urn:smn:southchina:68438a86d98e427e907e0097b7e35d47:sd\"] } type取值: notification:通知。 notification_list:告警状态发生变化时,被通知对象的列表。
+ OkActions *[]Notification `json:"ok_actions,omitempty"`
+
+ // 计算出该条告警记录的资源监控数据上报时间和监控数值。
+ DataPoints *[]DataPointInfo `json:"data_points,omitempty"`
+}
+
+func (o AlarmHistoryItemV2) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmHistoryItemV2 struct{}"
+ }
+
+ return strings.Join([]string{"AlarmHistoryItemV2", string(data)}, " ")
+}
+
+type AlarmHistoryItemV2Status struct {
+ value string
+}
+
+type AlarmHistoryItemV2StatusEnum struct {
+ OK AlarmHistoryItemV2Status
+ ALARM AlarmHistoryItemV2Status
+ INVALID AlarmHistoryItemV2Status
+}
+
+func GetAlarmHistoryItemV2StatusEnum() AlarmHistoryItemV2StatusEnum {
+ return AlarmHistoryItemV2StatusEnum{
+ OK: AlarmHistoryItemV2Status{
+ value: "ok",
+ },
+ ALARM: AlarmHistoryItemV2Status{
+ value: "alarm",
+ },
+ INVALID: AlarmHistoryItemV2Status{
+ value: "invalid",
+ },
+ }
+}
+
+func (c AlarmHistoryItemV2Status) Value() string {
+ return c.value
+}
+
+func (c AlarmHistoryItemV2Status) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmHistoryItemV2Status) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type AlarmHistoryItemV2Level struct {
+ value int32
+}
+
+type AlarmHistoryItemV2LevelEnum struct {
+ E_1 AlarmHistoryItemV2Level
+ E_2 AlarmHistoryItemV2Level
+ E_3 AlarmHistoryItemV2Level
+ E_4 AlarmHistoryItemV2Level
+}
+
+func GetAlarmHistoryItemV2LevelEnum() AlarmHistoryItemV2LevelEnum {
+ return AlarmHistoryItemV2LevelEnum{
+ E_1: AlarmHistoryItemV2Level{
+ value: 1,
+ }, E_2: AlarmHistoryItemV2Level{
+ value: 2,
+ }, E_3: AlarmHistoryItemV2Level{
+ value: 3,
+ }, E_4: AlarmHistoryItemV2Level{
+ value: 4,
+ },
+ }
+}
+
+func (c AlarmHistoryItemV2Level) Value() int32 {
+ return c.value
+}
+
+func (c AlarmHistoryItemV2Level) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmHistoryItemV2Level) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_id.go
new file mode 100644
index 00000000..c19125e1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警规则id,以al开头,包含22个数字或字母
+type AlarmId struct {
+}
+
+func (o AlarmId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmId struct{}"
+ }
+
+ return strings.Join([]string{"AlarmId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_level.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_level.go
new file mode 100644
index 00000000..59b6d6ab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_level.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警级别,1为紧急,2为重要,3为次要,4为提示
+type AlarmLevel struct {
+}
+
+func (o AlarmLevel) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmLevel struct{}"
+ }
+
+ return strings.Join([]string{"AlarmLevel", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_name.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_name.go
new file mode 100644
index 00000000..06e8d0ee
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_name.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
+type AlarmName struct {
+}
+
+func (o AlarmName) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmName struct{}"
+ }
+
+ return strings.Join([]string{"AlarmName", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_id.go
new file mode 100644
index 00000000..793fca4a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化
+type AlarmTemplateId struct {
+}
+
+func (o AlarmTemplateId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmTemplateId struct{}"
+ }
+
+ return strings.Join([]string{"AlarmTemplateId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_policies.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_policies.go
new file mode 100644
index 00000000..b904a27f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_template_policies.go
@@ -0,0 +1,173 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type AlarmTemplatePolicies struct {
+
+ // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+ Namespace string `json:"namespace"`
+
+ // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
+ DimensionName string `json:"dimension_name"`
+
+ // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ MetricName string `json:"metric_name"`
+
+ // 告警条件判断周期,单位为秒
+ Period AlarmTemplatePoliciesPeriod `json:"period"`
+
+ // 数据聚合方式
+ Filter string `json:"filter"`
+
+ // 告警阈值的比较条件
+ ComparisonOperator string `json:"comparison_operator"`
+
+ // 告警阈值
+ Value float32 `json:"value"`
+
+ // 数据的单位字符串,长度不超过32
+ Unit string `json:"unit"`
+
+ // 告警连续触发次数,正整数[1, 5]
+ Count int32 `json:"count"`
+
+ // 告警级别,1为紧急,2为重要,3为次要,4为提示
+ AlarmLevel int32 `json:"alarm_level"`
+
+ // 告警抑制周期,单位为秒,当告警抑制周期为0时,仅发送一次告警
+ SuppressDuration AlarmTemplatePoliciesSuppressDuration `json:"suppress_duration"`
+}
+
+func (o AlarmTemplatePolicies) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmTemplatePolicies struct{}"
+ }
+
+ return strings.Join([]string{"AlarmTemplatePolicies", string(data)}, " ")
+}
+
+type AlarmTemplatePoliciesPeriod struct {
+ value int32
+}
+
+type AlarmTemplatePoliciesPeriodEnum struct {
+ E_1 AlarmTemplatePoliciesPeriod
+ E_300 AlarmTemplatePoliciesPeriod
+ E_1200 AlarmTemplatePoliciesPeriod
+ E_3600 AlarmTemplatePoliciesPeriod
+ E_14400 AlarmTemplatePoliciesPeriod
+ E_86400 AlarmTemplatePoliciesPeriod
+}
+
+func GetAlarmTemplatePoliciesPeriodEnum() AlarmTemplatePoliciesPeriodEnum {
+ return AlarmTemplatePoliciesPeriodEnum{
+ E_1: AlarmTemplatePoliciesPeriod{
+ value: 1,
+ }, E_300: AlarmTemplatePoliciesPeriod{
+ value: 300,
+ }, E_1200: AlarmTemplatePoliciesPeriod{
+ value: 1200,
+ }, E_3600: AlarmTemplatePoliciesPeriod{
+ value: 3600,
+ }, E_14400: AlarmTemplatePoliciesPeriod{
+ value: 14400,
+ }, E_86400: AlarmTemplatePoliciesPeriod{
+ value: 86400,
+ },
+ }
+}
+
+func (c AlarmTemplatePoliciesPeriod) Value() int32 {
+ return c.value
+}
+
+func (c AlarmTemplatePoliciesPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmTemplatePoliciesPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
+
+type AlarmTemplatePoliciesSuppressDuration struct {
+ value int32
+}
+
+type AlarmTemplatePoliciesSuppressDurationEnum struct {
+ E_0 AlarmTemplatePoliciesSuppressDuration
+ E_300 AlarmTemplatePoliciesSuppressDuration
+ E_600 AlarmTemplatePoliciesSuppressDuration
+ E_900 AlarmTemplatePoliciesSuppressDuration
+ E_1800 AlarmTemplatePoliciesSuppressDuration
+ E_3600 AlarmTemplatePoliciesSuppressDuration
+ E_10800 AlarmTemplatePoliciesSuppressDuration
+ E_21600 AlarmTemplatePoliciesSuppressDuration
+ E_43200 AlarmTemplatePoliciesSuppressDuration
+ E_86400 AlarmTemplatePoliciesSuppressDuration
+}
+
+func GetAlarmTemplatePoliciesSuppressDurationEnum() AlarmTemplatePoliciesSuppressDurationEnum {
+ return AlarmTemplatePoliciesSuppressDurationEnum{
+ E_0: AlarmTemplatePoliciesSuppressDuration{
+ value: 0,
+ }, E_300: AlarmTemplatePoliciesSuppressDuration{
+ value: 300,
+ }, E_600: AlarmTemplatePoliciesSuppressDuration{
+ value: 600,
+ }, E_900: AlarmTemplatePoliciesSuppressDuration{
+ value: 900,
+ }, E_1800: AlarmTemplatePoliciesSuppressDuration{
+ value: 1800,
+ }, E_3600: AlarmTemplatePoliciesSuppressDuration{
+ value: 3600,
+ }, E_10800: AlarmTemplatePoliciesSuppressDuration{
+ value: 10800,
+ }, E_21600: AlarmTemplatePoliciesSuppressDuration{
+ value: 21600,
+ }, E_43200: AlarmTemplatePoliciesSuppressDuration{
+ value: 43200,
+ }, E_86400: AlarmTemplatePoliciesSuppressDuration{
+ value: 86400,
+ },
+ }
+}
+
+func (c AlarmTemplatePoliciesSuppressDuration) Value() int32 {
+ return c.value
+}
+
+func (c AlarmTemplatePoliciesSuppressDuration) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmTemplatePoliciesSuppressDuration) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_templates.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_templates.go
new file mode 100644
index 00000000..c4abf389
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_templates.go
@@ -0,0 +1,46 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type AlarmTemplates struct {
+
+ // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+ TemplateId string `json:"template_id"`
+
+ // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
+ TemplateName string `json:"template_name"`
+
+ TemplateType *TemplateType `json:"template_type"`
+
+ // 告警模板的创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time"`
+
+ // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
+ TemplateDescription string `json:"template_description"`
+
+ // 告警模板关联的告警规则数目
+ AssociationAlarmTotal *int32 `json:"association_alarm_total,omitempty"`
+
+ // 告警模板的告警策略总数
+ PolicyTotal int32 `json:"policy_total"`
+
+ // 服务列表告警策略数目统计
+ PolicyStatistics []PolicyStatistics `json:"policy_statistics"`
+
+ // 关联的资源分组
+ AssociationResourceGroups *[]AssociationResourceGroup `json:"association_resource_groups,omitempty"`
+}
+
+func (o AlarmTemplates) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmTemplates struct{}"
+ }
+
+ return strings.Join([]string{"AlarmTemplates", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_type.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_type.go
new file mode 100644
index 00000000..f181f095
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_alarm_type.go
@@ -0,0 +1,69 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 告警规则类型,ALL_INSTANCE为全部资源指标告警,RESOURCE_GROUP为资源分组指标告警,MULTI_INSTANCE为指定资源指标告警,EVENT.SYS为系统事件告警,EVENT.CUSTOM自定义事件告警,DNSHealthCheck为健康检查告警;
+type AlarmType struct {
+ value string
+}
+
+type AlarmTypeEnum struct {
+ EVENT_SYS AlarmType
+ EVENT_CUSTOM AlarmType
+ DNS_HEALTH_CHECK AlarmType
+ RESOURCE_GROUP AlarmType
+ MULTI_INSTANCE AlarmType
+ ALL_INSTANCE AlarmType
+}
+
+func GetAlarmTypeEnum() AlarmTypeEnum {
+ return AlarmTypeEnum{
+ EVENT_SYS: AlarmType{
+ value: "EVENT.SYS",
+ },
+ EVENT_CUSTOM: AlarmType{
+ value: "EVENT.CUSTOM",
+ },
+ DNS_HEALTH_CHECK: AlarmType{
+ value: "DNSHealthCheck",
+ },
+ RESOURCE_GROUP: AlarmType{
+ value: "RESOURCE_GROUP",
+ },
+ MULTI_INSTANCE: AlarmType{
+ value: "MULTI_INSTANCE",
+ },
+ ALL_INSTANCE: AlarmType{
+ value: "ALL_INSTANCE",
+ },
+ }
+}
+
+func (c AlarmType) Value() string {
+ return c.value
+}
+
+func (c AlarmType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AlarmType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_alarm_total.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_alarm_total.go
new file mode 100644
index 00000000..510940a3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_alarm_total.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板关联的告警规则数目
+type AssociationAlarmTotal struct {
+}
+
+func (o AssociationAlarmTotal) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociationAlarmTotal struct{}"
+ }
+
+ return strings.Join([]string{"AssociationAlarmTotal", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_resource_group.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_resource_group.go
new file mode 100644
index 00000000..784a19cd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_association_resource_group.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 关联的资源分组
+type AssociationResourceGroup struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ // 资源分组名称
+ GroupName string `json:"group_name"`
+
+ TemplateApplicationType *TemplateApplicationType `json:"template_application_type"`
+}
+
+func (o AssociationResourceGroup) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociationResourceGroup struct{}"
+ }
+
+ return strings.Join([]string{"AssociationResourceGroup", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_request.go
new file mode 100644
index 00000000..2e72922a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateResourcesRequest struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ Body *ResourcesReq `json:"body,omitempty"`
+}
+
+func (o BatchCreateResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_response.go
new file mode 100644
index 00000000..4366fc63
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_create_resources_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateResourcesResponse struct {
+
+ // 成功添加的资源数目
+ SucceedCount *int32 `json:"succeed_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_request.go
new file mode 100644
index 00000000..19ecfa37
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteAlarmRulesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ Body *BatchDeleteAlarmsRequestBody `json:"body,omitempty"`
+}
+
+func (o BatchDeleteAlarmRulesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmRulesRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmRulesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_response.go
new file mode 100644
index 00000000..dfe3206b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_rules_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteAlarmRulesResponse struct {
+
+ // 成功删除的告警规则ID列表
+ AlarmIds *[]string `json:"alarm_ids,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteAlarmRulesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmRulesResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmRulesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request.go
new file mode 100644
index 00000000..7383c2d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteAlarmTemplatesRequest struct {
+ Body *BatchDeleteAlarmTemplatesRequestBody `json:"body,omitempty"`
+}
+
+func (o BatchDeleteAlarmTemplatesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmTemplatesRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmTemplatesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request_body.go
new file mode 100644
index 00000000..10905152
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type BatchDeleteAlarmTemplatesRequestBody struct {
+
+ // 需要批量删除的告警模板的ID列表。未关联告警规则的模板可以批量删除多个;已关联告警规则的告警模板模板单次只允许删除一个,若同时删除多个已关联告警规则的告警模板,将返回异常
+ TemplateIds []string `json:"template_ids"`
+
+ // 如果告警模板关联了告警规则,是否级联删除告警规则,true代表级联删除,false代表只删除告警模板
+ DeleteAssociateAlarm bool `json:"delete_associate_alarm"`
+}
+
+func (o BatchDeleteAlarmTemplatesRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmTemplatesRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmTemplatesRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_response.go
new file mode 100644
index 00000000..d6c1285d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarm_templates_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteAlarmTemplatesResponse struct {
+
+ // 成功删除的告警模板ID列表
+ TemplateIds *[]string `json:"template_ids,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteAlarmTemplatesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmTemplatesResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmTemplatesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarms_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarms_request_body.go
new file mode 100644
index 00000000..24d81cec
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_alarms_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type BatchDeleteAlarmsRequestBody struct {
+
+ // 需要批量删除的告警规则的ID列表
+ AlarmIds []string `json:"alarm_ids"`
+}
+
+func (o BatchDeleteAlarmsRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteAlarmsRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteAlarmsRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request.go
new file mode 100644
index 00000000..68b5eac1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteResourceGroupsRequest struct {
+ Body *BatchDeleteResourceGroupsRequestBody `json:"body,omitempty"`
+}
+
+func (o BatchDeleteResourceGroupsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceGroupsRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceGroupsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request_body.go
new file mode 100644
index 00000000..20c06f4b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type BatchDeleteResourceGroupsRequestBody struct {
+
+ // 需要批量删除的资源分组ID列表
+ GroupIds []string `json:"group_ids"`
+}
+
+func (o BatchDeleteResourceGroupsRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceGroupsRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceGroupsRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_response.go
new file mode 100644
index 00000000..e44ad125
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resource_groups_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteResourceGroupsResponse struct {
+
+ // 成功删除的资源分组ID列表
+ GroupIds *[]string `json:"group_ids,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteResourceGroupsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceGroupsResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceGroupsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_request.go
new file mode 100644
index 00000000..67856c59
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteResourcesRequest struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ Body *ResourcesReq `json:"body,omitempty"`
+}
+
+func (o BatchDeleteResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_response.go
new file mode 100644
index 00000000..7773f590
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_delete_resources_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteResourcesResponse struct {
+
+ // 成功删除的资源数目
+ SucceedCount *int32 `json:"succeed_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_request.go
new file mode 100644
index 00000000..233cc6cf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchEnableAlarmRulesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ Body *BatchEnableAlarmsRequestBody `json:"body,omitempty"`
+}
+
+func (o BatchEnableAlarmRulesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchEnableAlarmRulesRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchEnableAlarmRulesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_response.go
new file mode 100644
index 00000000..c59eb9a7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarm_rules_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchEnableAlarmRulesResponse struct {
+
+ // 成功启停的告警规则ID列表
+ AlarmIds *[]string `json:"alarm_ids,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchEnableAlarmRulesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchEnableAlarmRulesResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchEnableAlarmRulesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarms_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarms_request_body.go
new file mode 100644
index 00000000..6941c886
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_batch_enable_alarms_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type BatchEnableAlarmsRequestBody struct {
+
+ // 需要批量启停的告警规则的ID列表
+ AlarmIds []string `json:"alarm_ids"`
+
+ // 告警开关
+ AlarmEnabled bool `json:"alarm_enabled"`
+}
+
+func (o BatchEnableAlarmsRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchEnableAlarmsRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BatchEnableAlarmsRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_comparison_operator.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_comparison_operator.go
new file mode 100644
index 00000000..c37b249f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_comparison_operator.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 阈值符号, 支持的值为(>|<|>=|<=|=|><)
+type ComparisonOperator struct {
+}
+
+func (o ComparisonOperator) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ComparisonOperator struct{}"
+ }
+
+ return strings.Join([]string{"ComparisonOperator", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_count.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_count.go
new file mode 100644
index 00000000..60307202
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_count.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 次数
+type Count struct {
+}
+
+func (o Count) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Count struct{}"
+ }
+
+ return strings.Join([]string{"Count", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_request.go
new file mode 100644
index 00000000..cf0945fe
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateAlarmRulesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ Body *PostAlarmsReqV2 `json:"body,omitempty"`
+}
+
+func (o CreateAlarmRulesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmRulesRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmRulesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_response.go
new file mode 100644
index 00000000..faca6111
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_rules_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateAlarmRulesResponse struct {
+
+ // 告警规则id,以al开头,包含22个数字或字母
+ AlarmId *string `json:"alarm_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateAlarmRulesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmRulesResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmRulesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request.go
new file mode 100644
index 00000000..b837bc1d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateAlarmTemplateRequest struct {
+ Body *CreateAlarmTemplateRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateAlarmTemplateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmTemplateRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmTemplateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request_body.go
new file mode 100644
index 00000000..204009ad
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_request_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateAlarmTemplateRequestBody struct {
+
+ // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
+ TemplateName string `json:"template_name"`
+
+ // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
+ TemplateDescription *string `json:"template_description,omitempty"`
+
+ // 告警模板策略列表
+ Policies []Policies `json:"policies"`
+}
+
+func (o CreateAlarmTemplateRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmTemplateRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmTemplateRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_response.go
new file mode 100644
index 00000000..c1239ef8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_alarm_template_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateAlarmTemplateResponse struct {
+
+ // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+ TemplateId *string `json:"template_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateAlarmTemplateResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmTemplateResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmTemplateResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request.go
new file mode 100644
index 00000000..368223a3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateResourceGroupRequest struct {
+ Body *CreateResourceGroupRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateResourceGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateResourceGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateResourceGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request_body.go
new file mode 100644
index 00000000..a644bd65
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_request_body.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateResourceGroupRequestBody struct {
+
+ // 资源分组的名称,只能为字母、数字、汉字、-、_,最大长度为128
+ GroupName string `json:"group_name"`
+
+ // 资源分组归属企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 资源分组创建方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),不传为手动添加
+ Type *string `json:"type,omitempty"`
+
+ // 标签动态匹配时的关联标签,type为TAG时必传
+ Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"`
+
+ // 该资源分组内包含的资源来源的企业项目ID,type为EPS时必传
+ AssociationEpIds *[]string `json:"association_ep_ids,omitempty"`
+}
+
+func (o CreateResourceGroupRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateResourceGroupRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateResourceGroupRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_response.go
new file mode 100644
index 00000000..2ee15faa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_resource_group_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateResourceGroupResponse struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId *string `json:"group_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateResourceGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateResourceGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateResourceGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_time.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_time.go
new file mode 100644
index 00000000..cae6bcc0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_create_time.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板的创建时间
+type CreateTime struct {
+}
+
+func (o CreateTime) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateTime struct{}"
+ }
+
+ return strings.Join([]string{"CreateTime", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_data_point_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_data_point_info.go
new file mode 100644
index 00000000..e3f7ff91
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_data_point_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DataPointInfo struct {
+
+ // 计算出该条告警记录的资源监控数据上报的UTC时间
+ Time *string `json:"time,omitempty"`
+
+ // 计算出该条告警记录的资源监控数据在该时间点的监控数值,如:7.019。
+ Value *float64 `json:"value,omitempty"`
+}
+
+func (o DataPointInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DataPointInfo struct{}"
+ }
+
+ return strings.Join([]string{"DataPointInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_request.go
new file mode 100644
index 00000000..b5dd188c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteAlarmRuleResourcesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // Alarm实例ID
+ AlarmId string `json:"alarm_id"`
+
+ Body *ResourcesReqV2 `json:"body,omitempty"`
+}
+
+func (o DeleteAlarmRuleResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAlarmRuleResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAlarmRuleResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_response.go
new file mode 100644
index 00000000..fea76c17
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_delete_alarm_rule_resources_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteAlarmRuleResourcesResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteAlarmRuleResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAlarmRuleResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAlarmRuleResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension.go
new file mode 100644
index 00000000..34e48f57
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 指标维度
+type Dimension struct {
+
+ // 资源维度,如:弹性云服务器,则维度为instance_id;目前最大支持4个维度,各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ Name string `json:"name"`
+
+ // 资源维度值,为资源的实例ID,如:4270ff17-aba3-4138-89fa-820594c39755。
+ Value *string `json:"value,omitempty"`
+}
+
+func (o Dimension) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Dimension struct{}"
+ }
+
+ return strings.Join([]string{"Dimension", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension2.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension2.go
new file mode 100644
index 00000000..f040c152
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension2.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 指标维度
+type Dimension2 struct {
+
+ // 资源维度,如:弹性云服务器,则维度为instance_id;目前最大支持4个维度,各服务资源的指标维度名称可查看:“[服务指标维度](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ Name string `json:"name"`
+
+ // 资源维度值,为资源的实例ID,如:4270ff17-aba3-4138-89fa-820594c39755。
+ Value string `json:"value"`
+}
+
+func (o Dimension2) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Dimension2 struct{}"
+ }
+
+ return strings.Join([]string{"Dimension2", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension_name.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension_name.go
new file mode 100644
index 00000000..8b24fd37
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_dimension_name.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
+type DimensionName struct {
+}
+
+func (o DimensionName) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DimensionName struct{}"
+ }
+
+ return strings.Join([]string{"DimensionName", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_enterprise_project_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_enterprise_project_id.go
new file mode 100644
index 00000000..75f70448
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_enterprise_project_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 企业项目ID
+type EnterpriseProjectId struct {
+}
+
+func (o EnterpriseProjectId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EnterpriseProjectId struct{}"
+ }
+
+ return strings.Join([]string{"EnterpriseProjectId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_filter.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_filter.go
new file mode 100644
index 00000000..648038e4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_filter.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 聚合方式, 支持的值为(average|min|max|sum)
+type Filter struct {
+}
+
+func (o Filter) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Filter struct{}"
+ }
+
+ return strings.Join([]string{"Filter", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_get_resource_group_resources.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_get_resource_group_resources.go
new file mode 100644
index 00000000..676e5e95
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_get_resource_group_resources.go
@@ -0,0 +1,74 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type GetResourceGroupResources struct {
+
+ // 资源健康状态,取值为health(已设置告警规则且无告警触发的资源)、unhealthy(已设置告警规则且有告警触发的资源)、no_alarm_rule(未关联告警规则)
+ Status GetResourceGroupResourcesStatus `json:"status"`
+
+ // 资源的维度信息
+ Dimensions []Dimension2 `json:"dimensions"`
+}
+
+func (o GetResourceGroupResources) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "GetResourceGroupResources struct{}"
+ }
+
+ return strings.Join([]string{"GetResourceGroupResources", string(data)}, " ")
+}
+
+type GetResourceGroupResourcesStatus struct {
+ value string
+}
+
+type GetResourceGroupResourcesStatusEnum struct {
+ HEALTH GetResourceGroupResourcesStatus
+ UNHEALTHY GetResourceGroupResourcesStatus
+ NO_ALARM_RULE GetResourceGroupResourcesStatus
+}
+
+func GetGetResourceGroupResourcesStatusEnum() GetResourceGroupResourcesStatusEnum {
+ return GetResourceGroupResourcesStatusEnum{
+ HEALTH: GetResourceGroupResourcesStatus{
+ value: "health",
+ },
+ UNHEALTHY: GetResourceGroupResourcesStatus{
+ value: "unhealthy",
+ },
+ NO_ALARM_RULE: GetResourceGroupResourcesStatus{
+ value: "no_alarm_rule",
+ },
+ }
+}
+
+func (c GetResourceGroupResourcesStatus) Value() string {
+ return c.value
+}
+
+func (c GetResourceGroupResourcesStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *GetResourceGroupResourcesStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_id.go
new file mode 100644
index 00000000..c45eb3df
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+type GroupId struct {
+}
+
+func (o GroupId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "GroupId struct{}"
+ }
+
+ return strings.Join([]string{"GroupId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_name.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_name.go
new file mode 100644
index 00000000..5a28582b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_group_name.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源分组名称
+type GroupName struct {
+}
+
+func (o GroupName) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "GroupName struct{}"
+ }
+
+ return strings.Join([]string{"GroupName", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_level.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_level.go
new file mode 100644
index 00000000..d0b92b22
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_level.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警级别, 1为紧急,2为重要,3为次要,4为提示
+type Level struct {
+}
+
+func (o Level) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Level struct{}"
+ }
+
+ return strings.Join([]string{"Level", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_request.go
new file mode 100644
index 00000000..bb3a4588
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_request.go
@@ -0,0 +1,95 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListAgentDimensionInfoRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // 资源ID,如:4270ff17-aba3-4138-89fa-820594c39755。
+ InstanceId string `json:"instance_id"`
+
+ // 维度名称,枚举类型,类型有: mount_point:挂载点, disk:磁盘, proc:进程, gpu:显卡, raid: RAID控制器,
+ DimName ListAgentDimensionInfoRequestDimName `json:"dim_name"`
+
+ // 维度值,32位字符串,如:2e84018fc8b4484b94e89aae212fe615。
+ DimValue *string `json:"dim_value,omitempty"`
+
+ // 分页偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页大小
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAgentDimensionInfoRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAgentDimensionInfoRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAgentDimensionInfoRequest", string(data)}, " ")
+}
+
+type ListAgentDimensionInfoRequestDimName struct {
+ value string
+}
+
+type ListAgentDimensionInfoRequestDimNameEnum struct {
+ MOUNT_POINT ListAgentDimensionInfoRequestDimName
+ DISK ListAgentDimensionInfoRequestDimName
+ PROC ListAgentDimensionInfoRequestDimName
+ GPU ListAgentDimensionInfoRequestDimName
+ RAID ListAgentDimensionInfoRequestDimName
+}
+
+func GetListAgentDimensionInfoRequestDimNameEnum() ListAgentDimensionInfoRequestDimNameEnum {
+ return ListAgentDimensionInfoRequestDimNameEnum{
+ MOUNT_POINT: ListAgentDimensionInfoRequestDimName{
+ value: "mount_point",
+ },
+ DISK: ListAgentDimensionInfoRequestDimName{
+ value: "disk",
+ },
+ PROC: ListAgentDimensionInfoRequestDimName{
+ value: "proc",
+ },
+ GPU: ListAgentDimensionInfoRequestDimName{
+ value: "gpu",
+ },
+ RAID: ListAgentDimensionInfoRequestDimName{
+ value: "raid",
+ },
+ }
+}
+
+func (c ListAgentDimensionInfoRequestDimName) Value() string {
+ return c.value
+}
+
+func (c ListAgentDimensionInfoRequestDimName) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListAgentDimensionInfoRequestDimName) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_response.go
new file mode 100644
index 00000000..0129d9cf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_agent_dimension_info_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAgentDimensionInfoResponse struct {
+
+ // 维度信息
+ Dimensions *[]AgentDimension `json:"dimensions,omitempty"`
+
+ // 维度信息总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAgentDimensionInfoResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAgentDimensionInfoResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAgentDimensionInfoResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_request.go
new file mode 100644
index 00000000..546945fb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_request.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmHistoriesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // 告警ID,以al开头,后跟22位由字母或数字组成的字符串
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警规则名称
+ Name *string `json:"name,omitempty"`
+
+ // 告警规则状态, ok为正常,alarm为告警,invalid为已失效
+ Status *string `json:"status,omitempty"`
+
+ // 告警级别, 1为紧急,2为重要,3为次要,4为提示
+ Level *int32 `json:"level,omitempty"`
+
+ // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+ Namespace *string `json:"namespace,omitempty"`
+
+ // 告警资源ID,多维度情况按字母升序排列并使用逗号分隔
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 查询告警记录的起始时间,例如:2022-02-10T10:05:46+08:00
+ From *string `json:"from,omitempty"`
+
+ // 查询告警记录的截止时间,例如:2022-02-10T10:05:47+08:00
+ To *string `json:"to,omitempty"`
+
+ // 分页偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页大小
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAlarmHistoriesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmHistoriesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmHistoriesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_response.go
new file mode 100644
index 00000000..4a4b08e6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_histories_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmHistoriesResponse struct {
+
+ // alarmHistories列表
+ AlarmHistories *[]AlarmHistoryItemV2 `json:"alarm_histories,omitempty"`
+
+ // 告警记录列表总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmHistoriesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmHistoriesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmHistoriesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_response_alarms.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_response_alarms.go
new file mode 100644
index 00000000..f76649e3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_response_alarms.go
@@ -0,0 +1,63 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ListAlarmResponseAlarms struct {
+
+ // 告警规则id,以al开头,包含22个数字或字母
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
+ Name *string `json:"name,omitempty"`
+
+ // 告警描述,长度0-256
+ Description *string `json:"description,omitempty"`
+
+ // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+ Namespace *string `json:"namespace,omitempty"`
+
+ // 告警策略
+ Policies *[]Policy `json:"policies,omitempty"`
+
+ // 资源列表,关联资源需要使用查询告警规则资源接口获取
+ Resources *[]ResourcesInListResp `json:"resources,omitempty"`
+
+ Type *AlarmType `json:"type,omitempty"`
+
+ // 告警开关
+ Enabled *bool `json:"enabled,omitempty"`
+
+ // 是否开启告警通知
+ NotificationEnabled *bool `json:"notification_enabled,omitempty"`
+
+ // 告警触发的动作
+ AlarmNotifications *[]Notification `json:"alarm_notifications,omitempty"`
+
+ // 告警恢复触发的动作
+ OkNotifications *[]Notification `json:"ok_notifications,omitempty"`
+
+ // 告警通知开启时间
+ NotificationBeginTime *string `json:"notification_begin_time,omitempty"`
+
+ // 告警通知关闭时间
+ NotificationEndTime *string `json:"notification_end_time,omitempty"`
+
+ // 企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化
+ AlarmTemplateId *string `json:"alarm_template_id,omitempty"`
+}
+
+func (o ListAlarmResponseAlarms) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmResponseAlarms struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmResponseAlarms", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_request.go
new file mode 100644
index 00000000..5f2b1ef5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmRulePoliciesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // 告警规则ID
+ AlarmId string `json:"alarm_id"`
+
+ // 分页偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页大小
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAlarmRulePoliciesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRulePoliciesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRulePoliciesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_response.go
new file mode 100644
index 00000000..10cda567
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_policies_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmRulePoliciesResponse struct {
+
+ // 策略信息
+ Policies *[]Policy `json:"policies,omitempty"`
+
+ // 指定告警规则对应的策略总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmRulePoliciesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRulePoliciesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRulePoliciesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_request.go
new file mode 100644
index 00000000..68a922d4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmRuleResourcesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // Alarm实例ID
+ AlarmId string `json:"alarm_id"`
+
+ // 分页偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页大小
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAlarmRuleResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRuleResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRuleResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_response.go
new file mode 100644
index 00000000..85312db8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rule_resources_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmRuleResourcesResponse struct {
+
+ // 资源信息
+ Resources *[][]Dimension `json:"resources,omitempty"`
+
+ // 资源总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmRuleResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRuleResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRuleResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_request.go
new file mode 100644
index 00000000..17f620d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_request.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmRulesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // 告警规则ID
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
+ Name *string `json:"name,omitempty"`
+
+ // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+ Namespace *string `json:"namespace,omitempty"`
+
+ // 告警资源ID,多维度情况按字母升序排列并使用逗号分隔
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 分页偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页大小
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAlarmRulesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRulesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRulesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_response.go
new file mode 100644
index 00000000..4cebd811
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_rules_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmRulesResponse struct {
+
+ // 告警规则列表
+ Alarms *[]ListAlarmResponseAlarms `json:"alarms,omitempty"`
+
+ // 告警规则总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmRulesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmRulesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmRulesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_request.go
new file mode 100644
index 00000000..37f329ce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmTemplateAssociationAlarmsRequest struct {
+
+ // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+ TemplateId string `json:"template_id"`
+
+ // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询结果条数的限制值,取值范围为[1,100],默认值为100
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAlarmTemplateAssociationAlarmsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmTemplateAssociationAlarmsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmTemplateAssociationAlarmsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_response.go
new file mode 100644
index 00000000..1175f1b6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_template_association_alarms_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmTemplateAssociationAlarmsResponse struct {
+
+ // 告警规则列表
+ Alarms *[]ListAssociationAlarmsResponseAlarms `json:"alarms,omitempty"`
+
+ // 告警规则列表总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmTemplateAssociationAlarmsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmTemplateAssociationAlarmsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmTemplateAssociationAlarmsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_request.go
new file mode 100644
index 00000000..88dc7d71
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_request.go
@@ -0,0 +1,83 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmTemplatesRequest struct {
+
+ // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询结果条数的限制值,取值范围为[1,100],默认值为100
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+ Namespace *string `json:"namespace,omitempty"`
+
+ // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
+ DimName *string `json:"dim_name,omitempty"`
+
+ // 模板类型(system代表默认自定义模板,custom代表系统模板),不传自定义和系统均需返回
+ TemplateType *ListAlarmTemplatesRequestTemplateType `json:"template_type,omitempty"`
+
+ // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128],支持模糊匹配
+ TemplateName *string `json:"template_name,omitempty"`
+}
+
+func (o ListAlarmTemplatesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmTemplatesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmTemplatesRequest", string(data)}, " ")
+}
+
+type ListAlarmTemplatesRequestTemplateType struct {
+ value string
+}
+
+type ListAlarmTemplatesRequestTemplateTypeEnum struct {
+ SYSTEM ListAlarmTemplatesRequestTemplateType
+ CUSTOM ListAlarmTemplatesRequestTemplateType
+}
+
+func GetListAlarmTemplatesRequestTemplateTypeEnum() ListAlarmTemplatesRequestTemplateTypeEnum {
+ return ListAlarmTemplatesRequestTemplateTypeEnum{
+ SYSTEM: ListAlarmTemplatesRequestTemplateType{
+ value: "system",
+ },
+ CUSTOM: ListAlarmTemplatesRequestTemplateType{
+ value: "custom",
+ },
+ }
+}
+
+func (c ListAlarmTemplatesRequestTemplateType) Value() string {
+ return c.value
+}
+
+func (c ListAlarmTemplatesRequestTemplateType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListAlarmTemplatesRequestTemplateType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_response.go
new file mode 100644
index 00000000..95956242
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_alarm_templates_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmTemplatesResponse struct {
+
+ // 告警模板列表
+ AlarmTemplates *[]AlarmTemplates `json:"alarm_templates,omitempty"`
+
+ // 告警模板记录总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmTemplatesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmTemplatesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmTemplatesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_association_alarms_response_alarms.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_association_alarms_response_alarms.go
new file mode 100644
index 00000000..665f0eb3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_association_alarms_response_alarms.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ListAssociationAlarmsResponseAlarms struct {
+
+ // 告警规则ID
+ AlarmId string `json:"alarm_id"`
+
+ // 告警规则名称
+ Name string `json:"name"`
+
+ // 告警规则描述
+ Description string `json:"description"`
+}
+
+func (o ListAssociationAlarmsResponseAlarms) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAssociationAlarmsResponseAlarms struct{}"
+ }
+
+ return strings.Join([]string{"ListAssociationAlarmsResponseAlarms", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_request.go
new file mode 100644
index 00000000..fa13dd0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_request.go
@@ -0,0 +1,87 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListResourceGroupsRequest struct {
+
+ // 归属企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 资源分组名称,支持模糊查询
+ GroupName *string `json:"group_name,omitempty"`
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId *string `json:"group_id,omitempty"`
+
+ // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 分页查询时每页的条目数,取值[1,100],默认值为100
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 资源分组创建方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加),不传代表查询所有资源分组类型
+ Type *ListResourceGroupsRequestType `json:"type,omitempty"`
+}
+
+func (o ListResourceGroupsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceGroupsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceGroupsRequest", string(data)}, " ")
+}
+
+type ListResourceGroupsRequestType struct {
+ value string
+}
+
+type ListResourceGroupsRequestTypeEnum struct {
+ EPS ListResourceGroupsRequestType
+ TAG ListResourceGroupsRequestType
+ MANUAL ListResourceGroupsRequestType
+}
+
+func GetListResourceGroupsRequestTypeEnum() ListResourceGroupsRequestTypeEnum {
+ return ListResourceGroupsRequestTypeEnum{
+ EPS: ListResourceGroupsRequestType{
+ value: "EPS",
+ },
+ TAG: ListResourceGroupsRequestType{
+ value: "TAG",
+ },
+ MANUAL: ListResourceGroupsRequestType{
+ value: "Manual",
+ },
+ }
+}
+
+func (c ListResourceGroupsRequestType) Value() string {
+ return c.value
+}
+
+func (c ListResourceGroupsRequestType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListResourceGroupsRequestType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_response.go
new file mode 100644
index 00000000..453db943
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListResourceGroupsResponse struct {
+
+ // 资源分组总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 资源分组列表
+ ResourceGroups *[]OneResourceGroupResp `json:"resource_groups,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListResourceGroupsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceGroupsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceGroupsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_request.go
new file mode 100644
index 00000000..638eded2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_request.go
@@ -0,0 +1,90 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListResourceGroupsServicesResourcesRequest struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ // 服务类别,如SYS.ECS
+ Service string `json:"service"`
+
+ // 资源维度信息,多个维度按字母序使用逗号分割
+ DimName *string `json:"dim_name,omitempty"`
+
+ // 分页查询时每页的条目数,取值[1,100],默认值为100
+ Limit *string `json:"limit,omitempty"`
+
+ // 分页查询时查询的起始位置,表示从第几条数据开始,默认为0
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 按状态信息进行过滤,取值只能为health(已设置告警规则且无告警触发的资源)、unhealthy(已设置告警规则且有告警触发的资源)、no_alarm_rule(未设置告警规则的资源)
+ Status *ListResourceGroupsServicesResourcesRequestStatus `json:"status,omitempty"`
+
+ // 资源维度值,不支持模糊匹配,但是多维度资源可以只指定一个维度值
+ DimValue *string `json:"dim_value,omitempty"`
+}
+
+func (o ListResourceGroupsServicesResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceGroupsServicesResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceGroupsServicesResourcesRequest", string(data)}, " ")
+}
+
+type ListResourceGroupsServicesResourcesRequestStatus struct {
+ value string
+}
+
+type ListResourceGroupsServicesResourcesRequestStatusEnum struct {
+ HEALTH ListResourceGroupsServicesResourcesRequestStatus
+ UNHEALTHY ListResourceGroupsServicesResourcesRequestStatus
+ NO_ALARM_RULE ListResourceGroupsServicesResourcesRequestStatus
+}
+
+func GetListResourceGroupsServicesResourcesRequestStatusEnum() ListResourceGroupsServicesResourcesRequestStatusEnum {
+ return ListResourceGroupsServicesResourcesRequestStatusEnum{
+ HEALTH: ListResourceGroupsServicesResourcesRequestStatus{
+ value: "health",
+ },
+ UNHEALTHY: ListResourceGroupsServicesResourcesRequestStatus{
+ value: "unhealthy",
+ },
+ NO_ALARM_RULE: ListResourceGroupsServicesResourcesRequestStatus{
+ value: "no_alarm_rule",
+ },
+ }
+}
+
+func (c ListResourceGroupsServicesResourcesRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ListResourceGroupsServicesResourcesRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListResourceGroupsServicesResourcesRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_response.go
new file mode 100644
index 00000000..a114b85d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_list_resource_groups_services_resources_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListResourceGroupsServicesResourcesResponse struct {
+
+ // 资源总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 资源分组资源列表
+ Resources *[]GetResourceGroupResources `json:"resources,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListResourceGroupsServicesResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListResourceGroupsServicesResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListResourceGroupsServicesResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric.go
new file mode 100644
index 00000000..1d6975ae
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 指标信息
+type Metric struct {
+
+ // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+ Namespace *string `json:"namespace,omitempty"`
+
+ // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ MetricName *string `json:"metric_name,omitempty"`
+
+ // 指标维度,目前最大可添加4个维度。
+ Dimensions *[]Dimension `json:"dimensions,omitempty"`
+}
+
+func (o Metric) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Metric struct{}"
+ }
+
+ return strings.Join([]string{"Metric", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_dimension.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_dimension.go
new file mode 100644
index 00000000..0ddbe957
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_dimension.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 指标维度
+type MetricDimension struct {
+
+ // 指标维度名称
+ Name string `json:"name"`
+
+ // 指标维度值
+ Value *string `json:"value,omitempty"`
+}
+
+func (o MetricDimension) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MetricDimension struct{}"
+ }
+
+ return strings.Join([]string{"MetricDimension", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_name.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_name.go
new file mode 100644
index 00000000..4933d2f4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_metric_name.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+type MetricName struct {
+}
+
+func (o MetricName) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MetricName struct{}"
+ }
+
+ return strings.Join([]string{"MetricName", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace.go
new file mode 100644
index 00000000..f813f628
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+type Namespace struct {
+}
+
+func (o Namespace) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Namespace struct{}"
+ }
+
+ return strings.Join([]string{"Namespace", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace_allowed_empty.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace_allowed_empty.go
new file mode 100644
index 00000000..7b1db55f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_namespace_allowed_empty.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+type NamespaceAllowedEmpty struct {
+}
+
+func (o NamespaceAllowedEmpty) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NamespaceAllowedEmpty struct{}"
+ }
+
+ return strings.Join([]string{"NamespaceAllowedEmpty", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification.go
new file mode 100644
index 00000000..db255b60
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type Notification struct {
+
+ // 通知类型, notification代表通过SMN通知
+ Type string `json:"type"`
+
+ // 告警状态发生变化时,被通知对象的列表。topicUrn可从SMN获取,具体操作请参考查询Topic列表。当type为notification时,notification_list列表不能为空。 说明:若alarm_action_enabled为true,对应的alarm_actions、ok_actions至少有一个不能为空。若alarm_actions、ok_actions同时存在时,notification_list值保持一致。
+ NotificationList []string `json:"notification_list"`
+}
+
+func (o Notification) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Notification struct{}"
+ }
+
+ return strings.Join([]string{"Notification", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_begin_time.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_begin_time.go
new file mode 100644
index 00000000..a9ee2887
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_begin_time.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警通知开启时间
+type NotificationBeginTime struct {
+}
+
+func (o NotificationBeginTime) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NotificationBeginTime struct{}"
+ }
+
+ return strings.Join([]string{"NotificationBeginTime", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_enabled.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_enabled.go
new file mode 100644
index 00000000..3a8ffa00
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_enabled.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 是否开启告警通知
+type NotificationEnabled struct {
+}
+
+func (o NotificationEnabled) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NotificationEnabled struct{}"
+ }
+
+ return strings.Join([]string{"NotificationEnabled", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_end_time.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_end_time.go
new file mode 100644
index 00000000..eaa89b59
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_notification_end_time.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警通知关闭时间
+type NotificationEndTime struct {
+}
+
+func (o NotificationEndTime) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NotificationEndTime struct{}"
+ }
+
+ return strings.Join([]string{"NotificationEndTime", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_one_resource_group_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_one_resource_group_resp.go
new file mode 100644
index 00000000..a098fb2f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_one_resource_group_resp.go
@@ -0,0 +1,82 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type OneResourceGroupResp struct {
+
+ // 资源分组的名称
+ GroupName string `json:"group_name"`
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ // 资源分组的创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time"`
+
+ // 资源分组归属企业项目ID
+ EnterpriseProjectId string `json:"enterprise_project_id"`
+
+ // 资源分组创建方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加)
+ Type OneResourceGroupRespType `json:"type"`
+}
+
+func (o OneResourceGroupResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OneResourceGroupResp struct{}"
+ }
+
+ return strings.Join([]string{"OneResourceGroupResp", string(data)}, " ")
+}
+
+type OneResourceGroupRespType struct {
+ value string
+}
+
+type OneResourceGroupRespTypeEnum struct {
+ EPS OneResourceGroupRespType
+ TAG OneResourceGroupRespType
+ MANUAL OneResourceGroupRespType
+}
+
+func GetOneResourceGroupRespTypeEnum() OneResourceGroupRespTypeEnum {
+ return OneResourceGroupRespTypeEnum{
+ EPS: OneResourceGroupRespType{
+ value: "EPS",
+ },
+ TAG: OneResourceGroupRespType{
+ value: "TAG",
+ },
+ MANUAL: OneResourceGroupRespType{
+ value: "Manual",
+ },
+ }
+}
+
+func (c OneResourceGroupRespType) Value() string {
+ return c.value
+}
+
+func (c OneResourceGroupRespType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *OneResourceGroupRespType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies.go
new file mode 100644
index 00000000..4b827d45
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies.go
@@ -0,0 +1,173 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type Policies struct {
+
+ // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+ Namespace string `json:"namespace"`
+
+ // 资源维度,必须以字母开头,多维度用\",\"分割,只能包含0-9/a-z/A-Z/_/-,每个维度的最大长度为32
+ DimensionName string `json:"dimension_name"`
+
+ // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ MetricName string `json:"metric_name"`
+
+ // 告警条件判断周期,单位为秒
+ Period PoliciesPeriod `json:"period"`
+
+ // 数据聚合方式
+ Filter string `json:"filter"`
+
+ // 告警阈值的比较条件
+ ComparisonOperator string `json:"comparison_operator"`
+
+ // 告警阈值(Number.MAX_VALUE)
+ Value float32 `json:"value"`
+
+ // 数据的单位字符串,长度不超过32
+ Unit *string `json:"unit,omitempty"`
+
+ // 告警连续触发次数,正整数[1, 5]
+ Count int32 `json:"count"`
+
+ // 告警级别,1为紧急,2为重要,3为次要,4为提示
+ AlarmLevel *int32 `json:"alarm_level,omitempty"`
+
+ // 告警抑制周期,单位为秒,当告警抑制周期为0时,仅发送一次告警
+ SuppressDuration PoliciesSuppressDuration `json:"suppress_duration"`
+}
+
+func (o Policies) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Policies struct{}"
+ }
+
+ return strings.Join([]string{"Policies", string(data)}, " ")
+}
+
+type PoliciesPeriod struct {
+ value int32
+}
+
+type PoliciesPeriodEnum struct {
+ E_1 PoliciesPeriod
+ E_300 PoliciesPeriod
+ E_1200 PoliciesPeriod
+ E_3600 PoliciesPeriod
+ E_14400 PoliciesPeriod
+ E_86400 PoliciesPeriod
+}
+
+func GetPoliciesPeriodEnum() PoliciesPeriodEnum {
+ return PoliciesPeriodEnum{
+ E_1: PoliciesPeriod{
+ value: 1,
+ }, E_300: PoliciesPeriod{
+ value: 300,
+ }, E_1200: PoliciesPeriod{
+ value: 1200,
+ }, E_3600: PoliciesPeriod{
+ value: 3600,
+ }, E_14400: PoliciesPeriod{
+ value: 14400,
+ }, E_86400: PoliciesPeriod{
+ value: 86400,
+ },
+ }
+}
+
+func (c PoliciesPeriod) Value() int32 {
+ return c.value
+}
+
+func (c PoliciesPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PoliciesPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
+
+type PoliciesSuppressDuration struct {
+ value int32
+}
+
+type PoliciesSuppressDurationEnum struct {
+ E_0 PoliciesSuppressDuration
+ E_300 PoliciesSuppressDuration
+ E_600 PoliciesSuppressDuration
+ E_900 PoliciesSuppressDuration
+ E_1800 PoliciesSuppressDuration
+ E_3600 PoliciesSuppressDuration
+ E_10800 PoliciesSuppressDuration
+ E_21600 PoliciesSuppressDuration
+ E_43200 PoliciesSuppressDuration
+ E_86400 PoliciesSuppressDuration
+}
+
+func GetPoliciesSuppressDurationEnum() PoliciesSuppressDurationEnum {
+ return PoliciesSuppressDurationEnum{
+ E_0: PoliciesSuppressDuration{
+ value: 0,
+ }, E_300: PoliciesSuppressDuration{
+ value: 300,
+ }, E_600: PoliciesSuppressDuration{
+ value: 600,
+ }, E_900: PoliciesSuppressDuration{
+ value: 900,
+ }, E_1800: PoliciesSuppressDuration{
+ value: 1800,
+ }, E_3600: PoliciesSuppressDuration{
+ value: 3600,
+ }, E_10800: PoliciesSuppressDuration{
+ value: 10800,
+ }, E_21600: PoliciesSuppressDuration{
+ value: 21600,
+ }, E_43200: PoliciesSuppressDuration{
+ value: 43200,
+ }, E_86400: PoliciesSuppressDuration{
+ value: 86400,
+ },
+ }
+}
+
+func (c PoliciesSuppressDuration) Value() int32 {
+ return c.value
+}
+
+func (c PoliciesSuppressDuration) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PoliciesSuppressDuration) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("int32")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(int32)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to int32 error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies_req_v2.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies_req_v2.go
new file mode 100644
index 00000000..a18bad2b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policies_req_v2.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PoliciesReqV2 struct {
+
+ // 策略信息
+ Policies []Policy `json:"policies"`
+}
+
+func (o PoliciesReqV2) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PoliciesReqV2 struct{}"
+ }
+
+ return strings.Join([]string{"PoliciesReqV2", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy.go
new file mode 100644
index 00000000..6d0c4e31
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy.go
@@ -0,0 +1,46 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type Policy struct {
+
+ // 资源的监控指标名称,必须以字母开头,只能包含0-9/a-z/A-Z/_,字符长度最短为1,最大为64;如:弹性云服务器中的监控指标cpu_util,表示弹性服务器的CPU使用率;文档数据库中的指标mongo001_command_ps,表示command执行频率;各服务的指标名称可查看:“[服务指标名称](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)”。
+ MetricName string `json:"metric_name"`
+
+ // 指标周期,单位是秒; 0是默认值,例如事件类告警该字段就用0即可; 1代表指标的原始周期,比如RDS监控指标原始周期是60s,表示该RDS指标按60s周期为一个数据点参与告警计算;如想了解各个云服务的指标原始周期可以参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html), 300代表指标按5分钟聚合周期为一个数据点参与告警计算。
+ Period int32 `json:"period"`
+
+ // 聚合方式, 支持的值为(average|min|max|sum)
+ Filter string `json:"filter"`
+
+ // 阈值符号, 支持的值为(>|<|>=|<=|=|><)
+ ComparisonOperator string `json:"comparison_operator"`
+
+ // 阈值
+ Value float64 `json:"value"`
+
+ // 单位
+ Unit *string `json:"unit,omitempty"`
+
+ // 次数
+ Count int32 `json:"count"`
+
+ // 告警抑制时间,单位为秒,对应页面上创建告警规则时告警策略最后一个字段,该字段主要为解决告警频繁的问题,0代表不抑制,满足条件即告警;300代表满足告警触发条件后每5分钟告警一次;
+ SuppressDuration *int32 `json:"suppress_duration,omitempty"`
+
+ // 告警级别, 1为紧急,2为重要,3为次要,4为提示
+ Level *int32 `json:"level,omitempty"`
+}
+
+func (o Policy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Policy struct{}"
+ }
+
+ return strings.Join([]string{"Policy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_statistics.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_statistics.go
new file mode 100644
index 00000000..1370b076
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_statistics.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PolicyStatistics struct {
+
+ // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+ Namespace string `json:"namespace"`
+
+ // 对应命名空间的告警策略数目
+ PolicyNum int32 `json:"policy_num"`
+}
+
+func (o PolicyStatistics) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PolicyStatistics struct{}"
+ }
+
+ return strings.Join([]string{"PolicyStatistics", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_total.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_total.go
new file mode 100644
index 00000000..27729e60
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_policy_total.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板的告警策略总数
+type PolicyTotal struct {
+}
+
+func (o PolicyTotal) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PolicyTotal struct{}"
+ }
+
+ return strings.Join([]string{"PolicyTotal", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_post_alarms_req_v2.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_post_alarms_req_v2.go
new file mode 100644
index 00000000..31d980ab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_post_alarms_req_v2.go
@@ -0,0 +1,63 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PostAlarmsReqV2 struct {
+
+ // 告警名称, 只能包含0-9/a-z/A-Z/_/-或汉字,长度1-128
+ Name string `json:"name"`
+
+ // 告警描述,长度0-256
+ Description *string `json:"description,omitempty"`
+
+ // 查询服务的命名空间,各服务命名空间请参考[服务命名空间](https://support.huaweicloud.com/usermanual-ces/zh-cn_topic_0202622212.html)
+ Namespace string `json:"namespace"`
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ ResourceGroupId *string `json:"resource_group_id,omitempty"`
+
+ // 资源列表,监控范围为指定资源时必传
+ Resources [][]Dimension `json:"resources"`
+
+ // 告警策略
+ Policies []Policy `json:"policies"`
+
+ Type *AlarmType `json:"type"`
+
+ // 告警触发的动作
+ AlarmNotifications *[]Notification `json:"alarm_notifications,omitempty"`
+
+ // 告警恢复触发的动作
+ OkNotifications *[]Notification `json:"ok_notifications,omitempty"`
+
+ // 告警通知开启时间
+ NotificationBeginTime *string `json:"notification_begin_time,omitempty"`
+
+ // 告警通知关闭时间
+ NotificationEndTime *string `json:"notification_end_time,omitempty"`
+
+ // 企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 告警开关
+ Enabled bool `json:"enabled"`
+
+ // 是否开启告警通知
+ NotificationEnabled bool `json:"notification_enabled"`
+
+ // 告警规则关联告警模板ID,如果传了,告警规则关联的策略会和告警模板策略联动变化
+ AlarmTemplateId *string `json:"alarm_template_id,omitempty"`
+}
+
+func (o PostAlarmsReqV2) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PostAlarmsReqV2 struct{}"
+ }
+
+ return strings.Join([]string{"PostAlarmsReqV2", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_put_resource_group_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_put_resource_group_req.go
new file mode 100644
index 00000000..d8f37714
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_put_resource_group_req.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源分组修改请求体
+type PutResourceGroupReq struct {
+
+ // 资源分组名称,只能为字母、数字、汉字、-、_,最大长度为128
+ GroupName string `json:"group_name"`
+
+ // 标签动态匹配时的关联标签
+ Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"`
+}
+
+func (o PutResourceGroupReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PutResourceGroupReq struct{}"
+ }
+
+ return strings.Join([]string{"PutResourceGroupReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource.go
new file mode 100644
index 00000000..111b8da6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type Resource struct {
+
+ // 查询服务的命名空间,各服务命名空间请参考“[服务命名空间](ces_03_0059.xml)”
+ Namespace string `json:"namespace"`
+
+ // 资源的维度信息
+ Dimensions []Dimension2 `json:"dimensions"`
+}
+
+func (o Resource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Resource struct{}"
+ }
+
+ return strings.Join([]string{"Resource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_id.go
new file mode 100644
index 00000000..25dae5a3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+type ResourceGroupId struct {
+}
+
+func (o ResourceGroupId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceGroupId struct{}"
+ }
+
+ return strings.Join([]string{"ResourceGroupId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_tag_relation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_tag_relation.go
new file mode 100644
index 00000000..585a21b6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resource_group_tag_relation.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourceGroupTagRelation struct {
+
+ // 键
+ Key string `json:"key"`
+
+ // 值
+ Value *string `json:"value,omitempty"`
+}
+
+func (o ResourceGroupTagRelation) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceGroupTagRelation struct{}"
+ }
+
+ return strings.Join([]string{"ResourceGroupTagRelation", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_in_list_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_in_list_resp.go
new file mode 100644
index 00000000..7857e33d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_in_list_resp.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourcesInListResp struct {
+
+ // 资源分组ID,监控范围为资源分组时存在该值
+ ResourceGroupId *string `json:"resource_group_id,omitempty"`
+
+ // 资源分组名称,监控范围为资源分组时存在该值
+ ResourceGroupName *string `json:"resource_group_name,omitempty"`
+
+ // 维度信息
+ Dimensions *[]MetricDimension `json:"dimensions,omitempty"`
+}
+
+func (o ResourcesInListResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourcesInListResp struct{}"
+ }
+
+ return strings.Join([]string{"ResourcesInListResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req.go
new file mode 100644
index 00000000..b34772db
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourcesReq struct {
+
+ // 资源信息
+ Resources []Resource `json:"resources"`
+}
+
+func (o ResourcesReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourcesReq struct{}"
+ }
+
+ return strings.Join([]string{"ResourcesReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req_v2.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req_v2.go
new file mode 100644
index 00000000..83bdfbc5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_resources_req_v2.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourcesReqV2 struct {
+
+ // 资源信息
+ Resources [][]Dimension `json:"resources"`
+}
+
+func (o ResourcesReqV2) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourcesReqV2 struct{}"
+ }
+
+ return strings.Join([]string{"ResourcesReqV2", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_request.go
new file mode 100644
index 00000000..442878e6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowAlarmTemplateRequest struct {
+
+ // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+ TemplateId string `json:"template_id"`
+}
+
+func (o ShowAlarmTemplateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAlarmTemplateRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowAlarmTemplateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_response.go
new file mode 100644
index 00000000..ff2be958
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_alarm_template_response.go
@@ -0,0 +1,42 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowAlarmTemplateResponse struct {
+
+ // 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+ TemplateId *string `json:"template_id,omitempty"`
+
+ // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
+ TemplateName *string `json:"template_name,omitempty"`
+
+ TemplateType *TemplateType `json:"template_type,omitempty"`
+
+ // 告警模板的创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
+ TemplateDescription *string `json:"template_description,omitempty"`
+
+ // 告警模板关联的告警规则数目
+ AssociationAlarmTotal *int32 `json:"association_alarm_total,omitempty"`
+
+ // 告警模板策略列表
+ Policies *[]AlarmTemplatePolicies `json:"policies,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowAlarmTemplateResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAlarmTemplateResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowAlarmTemplateResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_request.go
new file mode 100644
index 00000000..f5a7bca1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowResourceGroupRequest struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+}
+
+func (o ShowResourceGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_response.go
new file mode 100644
index 00000000..33e81a6c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_show_resource_group_response.go
@@ -0,0 +1,90 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+// Response Object
+type ShowResourceGroupResponse struct {
+
+ // 资源分组的名称
+ GroupName *string `json:"group_name,omitempty"`
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId *string `json:"group_id,omitempty"`
+
+ // 资源分组的创建时间
+ CreateTime *sdktime.SdkTime `json:"create_time,omitempty"`
+
+ // 资源分组归属企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 资源分组创建方式,取值只能为EPS(同步企业项目),TAG(标签动态匹配),Manual(手动添加)
+ Type *ShowResourceGroupResponseType `json:"type,omitempty"`
+
+ // 该资源分组内包含的资源来源的企业项目ID,type为EPS时必传
+ AssociationEpIds *[]string `json:"association_ep_ids,omitempty"`
+
+ // 标签动态匹配时的关联标签,type为TAG时必传
+ Tags *[]ResourceGroupTagRelation `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowResourceGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceGroupResponse", string(data)}, " ")
+}
+
+type ShowResourceGroupResponseType struct {
+ value string
+}
+
+type ShowResourceGroupResponseTypeEnum struct {
+ EPS ShowResourceGroupResponseType
+ TAG ShowResourceGroupResponseType
+ MANUAL ShowResourceGroupResponseType
+}
+
+func GetShowResourceGroupResponseTypeEnum() ShowResourceGroupResponseTypeEnum {
+ return ShowResourceGroupResponseTypeEnum{
+ EPS: ShowResourceGroupResponseType{
+ value: "EPS",
+ },
+ TAG: ShowResourceGroupResponseType{
+ value: "TAG",
+ },
+ MANUAL: ShowResourceGroupResponseType{
+ value: "Manual",
+ },
+ }
+}
+
+func (c ShowResourceGroupResponseType) Value() string {
+ return c.value
+}
+
+func (c ShowResourceGroupResponseType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowResourceGroupResponseType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_smn_urn.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_smn_urn.go
new file mode 100644
index 00000000..e10fcfb8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_smn_urn.go
@@ -0,0 +1,19 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SmnUrn struct {
+}
+
+func (o SmnUrn) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SmnUrn struct{}"
+ }
+
+ return strings.Join([]string{"SmnUrn", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_application_type.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_application_type.go
new file mode 100644
index 00000000..5e88ff68
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_application_type.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 模板应用类型。ALL_DIMENSION:所有维度, ONE_DIMENSION:同一维度。
+type TemplateApplicationType struct {
+ value string
+}
+
+type TemplateApplicationTypeEnum struct {
+ ALL_DIMENSION TemplateApplicationType
+ ONE_DIMENSION TemplateApplicationType
+}
+
+func GetTemplateApplicationTypeEnum() TemplateApplicationTypeEnum {
+ return TemplateApplicationTypeEnum{
+ ALL_DIMENSION: TemplateApplicationType{
+ value: "ALL_DIMENSION",
+ },
+ ONE_DIMENSION: TemplateApplicationType{
+ value: "ONE_DIMENSION",
+ },
+ }
+}
+
+func (c TemplateApplicationType) Value() string {
+ return c.value
+}
+
+func (c TemplateApplicationType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *TemplateApplicationType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_description.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_description.go
new file mode 100644
index 00000000..c8ab2f6d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_description.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
+type TemplateDescription struct {
+}
+
+func (o TemplateDescription) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TemplateDescription struct{}"
+ }
+
+ return strings.Join([]string{"TemplateDescription", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_id.go
new file mode 100644
index 00000000..cd7e3411
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_id.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板的ID,以at开头,后跟字母、数字,长度最长为64
+type TemplateId struct {
+}
+
+func (o TemplateId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TemplateId struct{}"
+ }
+
+ return strings.Join([]string{"TemplateId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_name.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_name.go
new file mode 100644
index 00000000..8bb7a7ca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_name.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
+type TemplateName struct {
+}
+
+func (o TemplateName) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TemplateName struct{}"
+ }
+
+ return strings.Join([]string{"TemplateName", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_type.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_type.go
new file mode 100644
index 00000000..70a8b942
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_template_type.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 模板类型(custom代表默认自定义模板,system代表系统模板)
+type TemplateType struct {
+ value string
+}
+
+type TemplateTypeEnum struct {
+ SYSTEM TemplateType
+ CUSTOM TemplateType
+}
+
+func GetTemplateTypeEnum() TemplateTypeEnum {
+ return TemplateTypeEnum{
+ SYSTEM: TemplateType{
+ value: "system",
+ },
+ CUSTOM: TemplateType{
+ value: "custom",
+ },
+ }
+}
+
+func (c TemplateType) Value() string {
+ return c.value
+}
+
+func (c TemplateType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *TemplateType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_unit.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_unit.go
new file mode 100644
index 00000000..4cb43b87
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_unit.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 单位
+type Unit struct {
+}
+
+func (o Unit) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Unit struct{}"
+ }
+
+ return strings.Join([]string{"Unit", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_request.go
new file mode 100644
index 00000000..59741486
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateAlarmRulePoliciesRequest struct {
+
+ // 发送的实体的MIME类型。默认使用application/json; charset=UTF-8。
+ ContentType string `json:"Content-Type"`
+
+ // Alarm实例ID
+ AlarmId string `json:"alarm_id"`
+
+ Body *PoliciesReqV2 `json:"body,omitempty"`
+}
+
+func (o UpdateAlarmRulePoliciesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmRulePoliciesRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmRulePoliciesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_response.go
new file mode 100644
index 00000000..6b8a6814
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_rule_policies_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateAlarmRulePoliciesResponse struct {
+
+ // 策略信息
+ Policies *[]Policy `json:"policies,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateAlarmRulePoliciesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmRulePoliciesResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmRulePoliciesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request.go
new file mode 100644
index 00000000..e647652c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateAlarmTemplateRequest struct {
+
+ // 告警模板ID
+ TemplateId string `json:"template_id"`
+
+ Body *UpdateAlarmTemplateRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateAlarmTemplateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmTemplateRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmTemplateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request_body.go
new file mode 100644
index 00000000..c15430ae
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_request_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type UpdateAlarmTemplateRequestBody struct {
+
+ // 告警模板的名称,以字母或汉字开头,可包含字母、数字、汉字、_、-,长度范围[1,128]
+ TemplateName string `json:"template_name"`
+
+ // 告警模板的描述,长度范围[0,256],该字段默认值为空字符串
+ TemplateDescription *string `json:"template_description,omitempty"`
+
+ // 告警模板策略列表
+ Policies []Policies `json:"policies"`
+}
+
+func (o UpdateAlarmTemplateRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmTemplateRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmTemplateRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_response.go
new file mode 100644
index 00000000..34eb82e8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_alarm_template_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateAlarmTemplateResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateAlarmTemplateResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmTemplateResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmTemplateResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_request.go
new file mode 100644
index 00000000..90d528ec
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateResourceGroupRequest struct {
+
+ // 资源分组ID,以rg开头,后跟22位由字母或数字组成的字符串
+ GroupId string `json:"group_id"`
+
+ Body *PutResourceGroupReq `json:"body,omitempty"`
+}
+
+func (o UpdateResourceGroupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateResourceGroupRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateResourceGroupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_response.go
new file mode 100644
index 00000000..f054e9a1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_update_resource_group_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateResourceGroupResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateResourceGroupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateResourceGroupResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateResourceGroupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_value.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_value.go
new file mode 100644
index 00000000..8d556876
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ces/v2/model/model_value.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 阈值
+type Value struct {
+}
+
+func (o Value) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Value struct{}"
+ }
+
+ return strings.Join([]string{"Value", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_client.go
index d06a9d6f..8af2c35f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_client.go
@@ -23,8 +23,7 @@ func DdmClientBuilder() *http_client.HcHttpClientBuilder {
//
// 创建DDM逻辑库。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) CreateDatabase(request *model.CreateDatabaseRequest) (*model.CreateDatabaseResponse, error) {
requestDef := GenReqDefForCreateDatabase()
@@ -47,8 +46,7 @@ func (c *DdmClient) CreateDatabaseInvoker(request *model.CreateDatabaseRequest)
//
// DDM运行于虚拟私有云。申请DDM实例前,需保证有可用的虚拟私有云,并且已配置好子网与安全组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error) {
requestDef := GenReqDefForCreateInstance()
@@ -69,8 +67,7 @@ func (c *DdmClient) CreateInstanceInvoker(request *model.CreateInstanceRequest)
//
// DDM帐号用于连接和管理逻辑库。一个DDM实例最多能创建100个DDM帐号,一个DDM帐号可以关联多个逻辑库。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) CreateUsers(request *model.CreateUsersRequest) (*model.CreateUsersResponse, error) {
requestDef := GenReqDefForCreateUsers()
@@ -91,8 +88,7 @@ func (c *DdmClient) CreateUsersInvoker(request *model.CreateUsersRequest) *Creat
//
// 删除指定的逻辑库,释放该逻辑库的所有资源。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) DeleteDatabase(request *model.DeleteDatabaseRequest) (*model.DeleteDatabaseResponse, error) {
requestDef := GenReqDefForDeleteDatabase()
@@ -113,8 +109,7 @@ func (c *DdmClient) DeleteDatabaseInvoker(request *model.DeleteDatabaseRequest)
//
// 删除指定的DDM实例,释放该实例的所有资源。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error) {
requestDef := GenReqDefForDeleteInstance()
@@ -135,8 +130,7 @@ func (c *DdmClient) DeleteInstanceInvoker(request *model.DeleteInstanceRequest)
//
// 删除指定的DDM实例帐号,如果帐号关联了逻辑库,则对应的关联关系也会删除。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) DeleteUser(request *model.DeleteUserRequest) (*model.DeleteUserResponse, error) {
requestDef := GenReqDefForDeleteUser()
@@ -155,10 +149,9 @@ func (c *DdmClient) DeleteUserInvoker(request *model.DeleteUserRequest) *DeleteU
// ExpandInstanceNodes DDM实例节点扩容
//
-// 对指定的DDM实例的节点个数进行扩容。
+// 对指定的DDM实例的节点个数进行扩容,支持按需实例与包周期实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ExpandInstanceNodes(request *model.ExpandInstanceNodesRequest) (*model.ExpandInstanceNodesResponse, error) {
requestDef := GenReqDefForExpandInstanceNodes()
@@ -179,8 +172,7 @@ func (c *DdmClient) ExpandInstanceNodesInvoker(request *model.ExpandInstanceNode
//
// 查询创建逻辑库可选取的数据库实例列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListAvailableRdsList(request *model.ListAvailableRdsListRequest) (*model.ListAvailableRdsListResponse, error) {
requestDef := GenReqDefForListAvailableRdsList()
@@ -201,8 +193,7 @@ func (c *DdmClient) ListAvailableRdsListInvoker(request *model.ListAvailableRdsL
//
// 查询DDM逻辑库列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListDatabases(request *model.ListDatabasesRequest) (*model.ListDatabasesResponse, error) {
requestDef := GenReqDefForListDatabases()
@@ -223,8 +214,7 @@ func (c *DdmClient) ListDatabasesInvoker(request *model.ListDatabasesRequest) *L
//
// 查询DDM引擎信息详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListEngines(request *model.ListEnginesRequest) (*model.ListEnginesResponse, error) {
requestDef := GenReqDefForListEngines()
@@ -245,8 +235,7 @@ func (c *DdmClient) ListEnginesInvoker(request *model.ListEnginesRequest) *ListE
//
// 查询DDM可用区规格信息详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -267,8 +256,7 @@ func (c *DdmClient) ListFlavorsInvoker(request *model.ListFlavorsRequest) *ListF
//
// 查询DDM实例列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error) {
requestDef := GenReqDefForListInstances()
@@ -289,8 +277,7 @@ func (c *DdmClient) ListInstancesInvoker(request *model.ListInstancesRequest) *L
//
// 查询DDM实例节点列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListNodes(request *model.ListNodesRequest) (*model.ListNodesResponse, error) {
requestDef := GenReqDefForListNodes()
@@ -311,8 +298,7 @@ func (c *DdmClient) ListNodesInvoker(request *model.ListNodesRequest) *ListNodes
//
// 查询指定时间段内在DDM实例的读写次数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListReadWriteRatio(request *model.ListReadWriteRatioRequest) (*model.ListReadWriteRatioResponse, error) {
requestDef := GenReqDefForListReadWriteRatio()
@@ -333,8 +319,7 @@ func (c *DdmClient) ListReadWriteRatioInvoker(request *model.ListReadWriteRatioR
//
// 查询指定时间段内在DDM实例上执行过的慢sql相关信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListSlowLog(request *model.ListSlowLogRequest) (*model.ListSlowLogResponse, error) {
requestDef := GenReqDefForListSlowLog()
@@ -355,8 +340,7 @@ func (c *DdmClient) ListSlowLogInvoker(request *model.ListSlowLogRequest) *ListS
//
// 查询DDM帐号列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ListUsers(request *model.ListUsersRequest) (*model.ListUsersResponse, error) {
requestDef := GenReqDefForListUsers()
@@ -377,8 +361,7 @@ func (c *DdmClient) ListUsersInvoker(request *model.ListUsersRequest) *ListUsers
//
// DDM实例跨region容灾场景下,针对目标DDM实例实现表数据reload,使数据同步。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) RebuildConfig(request *model.RebuildConfigRequest) (*model.RebuildConfigResponse, error) {
requestDef := GenReqDefForRebuildConfig()
@@ -395,12 +378,32 @@ func (c *DdmClient) RebuildConfigInvoker(request *model.RebuildConfigRequest) *R
return &RebuildConfigInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ResetAdministrator DDM管理员账号密码管理
+//
+// 首次调用时新建DDM管理员帐号并设置密码。后续调用时仅更新管理员密码。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdmClient) ResetAdministrator(request *model.ResetAdministratorRequest) (*model.ResetAdministratorResponse, error) {
+ requestDef := GenReqDefForResetAdministrator()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResetAdministratorResponse), nil
+ }
+}
+
+// ResetAdministratorInvoker DDM管理员账号密码管理
+func (c *DdmClient) ResetAdministratorInvoker(request *model.ResetAdministratorRequest) *ResetAdministratorInvoker {
+ requestDef := GenReqDefForResetAdministrator()
+ return &ResetAdministratorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ResetUserPassword 重置DDM账号密码
//
// 重置现有DDM帐号的密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ResetUserPassword(request *model.ResetUserPasswordRequest) (*model.ResetUserPasswordResponse, error) {
requestDef := GenReqDefForResetUserPassword()
@@ -417,12 +420,32 @@ func (c *DdmClient) ResetUserPasswordInvoker(request *model.ResetUserPasswordReq
return &ResetUserPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ResizeFlavor 变更DDM实例规格
+//
+// 变更DDM实例规格。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdmClient) ResizeFlavor(request *model.ResizeFlavorRequest) (*model.ResizeFlavorResponse, error) {
+ requestDef := GenReqDefForResizeFlavor()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResizeFlavorResponse), nil
+ }
+}
+
+// ResizeFlavorInvoker 变更DDM实例规格
+func (c *DdmClient) ResizeFlavorInvoker(request *model.ResizeFlavorRequest) *ResizeFlavorInvoker {
+ requestDef := GenReqDefForResizeFlavor()
+ return &ResizeFlavorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// RestartInstance 重启DDM实例
//
// 重启指定的DDM实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error) {
requestDef := GenReqDefForRestartInstance()
@@ -443,8 +466,7 @@ func (c *DdmClient) RestartInstanceInvoker(request *model.RestartInstanceRequest
//
// 查询指定逻辑库的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ShowDatabase(request *model.ShowDatabaseRequest) (*model.ShowDatabaseResponse, error) {
requestDef := GenReqDefForShowDatabase()
@@ -465,8 +487,7 @@ func (c *DdmClient) ShowDatabaseInvoker(request *model.ShowDatabaseRequest) *Sho
//
// 查询指定DDM实例的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error) {
requestDef := GenReqDefForShowInstance()
@@ -487,8 +508,7 @@ func (c *DdmClient) ShowInstanceInvoker(request *model.ShowInstanceRequest) *Sho
//
// 查询DDM指定实例的参数详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ShowInstanceParam(request *model.ShowInstanceParamRequest) (*model.ShowInstanceParamResponse, error) {
requestDef := GenReqDefForShowInstanceParam()
@@ -509,8 +529,7 @@ func (c *DdmClient) ShowInstanceParamInvoker(request *model.ShowInstanceParamReq
//
// 查询DDM实例节点详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ShowNode(request *model.ShowNodeRequest) (*model.ShowNodeResponse, error) {
requestDef := GenReqDefForShowNode()
@@ -531,8 +550,7 @@ func (c *DdmClient) ShowNodeInvoker(request *model.ShowNodeRequest) *ShowNodeInv
//
// 对指定的DDM实例的节点个数进行缩容。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) ShrinkInstanceNodes(request *model.ShrinkInstanceNodesRequest) (*model.ShrinkInstanceNodesResponse, error) {
requestDef := GenReqDefForShrinkInstanceNodes()
@@ -553,8 +571,7 @@ func (c *DdmClient) ShrinkInstanceNodesInvoker(request *model.ShrinkInstanceNode
//
// 同步当前DDM实例已关联的所有DN实例配置信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateDatabaseInfo(request *model.UpdateDatabaseInfoRequest) (*model.UpdateDatabaseInfoResponse, error) {
requestDef := GenReqDefForUpdateDatabaseInfo()
@@ -575,8 +592,7 @@ func (c *DdmClient) UpdateDatabaseInfoInvoker(request *model.UpdateDatabaseInfoR
//
// 修改DDM实例名称。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error) {
requestDef := GenReqDefForUpdateInstanceName()
@@ -597,8 +613,7 @@ func (c *DdmClient) UpdateInstanceNameInvoker(request *model.UpdateInstanceNameR
//
// 修改DDM实例参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateInstanceParam(request *model.UpdateInstanceParamRequest) (*model.UpdateInstanceParamResponse, error) {
requestDef := GenReqDefForUpdateInstanceParam()
@@ -619,8 +634,7 @@ func (c *DdmClient) UpdateInstanceParamInvoker(request *model.UpdateInstancePara
//
// 修改DDM实例安全组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateInstanceSecurityGroup(request *model.UpdateInstanceSecurityGroupRequest) (*model.UpdateInstanceSecurityGroupResponse, error) {
requestDef := GenReqDefForUpdateInstanceSecurityGroup()
@@ -641,8 +655,7 @@ func (c *DdmClient) UpdateInstanceSecurityGroupInvoker(request *model.UpdateInst
//
// 修改DDM已关联的数据库实例的读策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateReadAndWriteStrategy(request *model.UpdateReadAndWriteStrategyRequest) (*model.UpdateReadAndWriteStrategyResponse, error) {
requestDef := GenReqDefForUpdateReadAndWriteStrategy()
@@ -663,8 +676,7 @@ func (c *DdmClient) UpdateReadAndWriteStrategyInvoker(request *model.UpdateReadA
//
// 修改现有DDM帐号的权限或者与逻辑库的管理关系。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdmClient) UpdateUser(request *model.UpdateUserRequest) (*model.UpdateUserResponse, error) {
requestDef := GenReqDefForUpdateUser()
@@ -680,3 +692,24 @@ func (c *DdmClient) UpdateUserInvoker(request *model.UpdateUserRequest) *UpdateU
requestDef := GenReqDefForUpdateUser()
return &UpdateUserInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+
+// ValidateWeakPassword 弱密码校验
+//
+// 弱密码校验
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdmClient) ValidateWeakPassword(request *model.ValidateWeakPasswordRequest) (*model.ValidateWeakPasswordResponse, error) {
+ requestDef := GenReqDefForValidateWeakPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ValidateWeakPasswordResponse), nil
+ }
+}
+
+// ValidateWeakPasswordInvoker 弱密码校验
+func (c *DdmClient) ValidateWeakPasswordInvoker(request *model.ValidateWeakPasswordRequest) *ValidateWeakPasswordInvoker {
+ requestDef := GenReqDefForValidateWeakPassword()
+ return &ValidateWeakPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_invoker.go
index 0fa04ef6..58733888 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_invoker.go
@@ -209,6 +209,18 @@ func (i *RebuildConfigInvoker) Invoke() (*model.RebuildConfigResponse, error) {
}
}
+type ResetAdministratorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResetAdministratorInvoker) Invoke() (*model.ResetAdministratorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResetAdministratorResponse), nil
+ }
+}
+
type ResetUserPasswordInvoker struct {
*invoker.BaseInvoker
}
@@ -221,6 +233,18 @@ func (i *ResetUserPasswordInvoker) Invoke() (*model.ResetUserPasswordResponse, e
}
}
+type ResizeFlavorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResizeFlavorInvoker) Invoke() (*model.ResizeFlavorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResizeFlavorResponse), nil
+ }
+}
+
type RestartInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -364,3 +388,15 @@ func (i *UpdateUserInvoker) Invoke() (*model.UpdateUserResponse, error) {
return result.(*model.UpdateUserResponse), nil
}
}
+
+type ValidateWeakPasswordInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ValidateWeakPasswordInvoker) Invoke() (*model.ValidateWeakPasswordResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ValidateWeakPasswordResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_meta.go
index 0fad2d97..fbcb2270 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/ddm_meta.go
@@ -402,6 +402,26 @@ func GenReqDefForRebuildConfig() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForResetAdministrator() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/admin-user").
+ WithResponse(new(model.ResetAdministratorResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForResetUserPassword() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -426,6 +446,26 @@ func GenReqDefForResetUserPassword() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForResizeFlavor() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/flavor").
+ WithResponse(new(model.ResizeFlavorResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForRestartInstance() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -676,3 +716,18 @@ func GenReqDefForUpdateUser() *def.HttpRequestDef {
requestDef := reqDefBuilder.Build()
return requestDef
}
+
+func GenReqDefForValidateWeakPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/weak-password-verification").
+ WithResponse(new(model.ValidateWeakPasswordResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_admin_user_info_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_admin_user_info_req.go
new file mode 100644
index 00000000..a5d5cd8a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_admin_user_info_req.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 管理员账号信息请求参数。
+type AdminUserInfoReq struct {
+
+ // 管理员账号用户名。 - 长度为1-32个字符。 - 必须以字母开头。 - 可以包含字母,数字、下划线,不能包含其它特殊字符。
+ Name string `json:"name"`
+
+ // 管理员账号密码。 - 长度为8~32位。 - 必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
+ Password string `json:"password"`
+}
+
+func (o AdminUserInfoReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AdminUserInfoReq struct{}"
+ }
+
+ return strings.Join([]string{"AdminUserInfoReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_create_instance_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_create_instance_detail.go
index cbdd2d1d..676f31c5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_create_instance_detail.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_create_instance_detail.go
@@ -41,6 +41,12 @@ type CreateInstanceDetail struct {
// UTC时区。默认为UTC。取值范围:\"UTC\",\"UTC-12:00\",\"UTC-11:00\",\"UTC-10:00\",\"UTC-09:00\", \"UTC-08:00\", \"UTC-07:00\", \"UTC-06:00\", \"UTC-05:00\", \"UTC-04:00\", \"UTC-03:00\", \"UTC-02:00\", \"UTC-01:00\", \"UTC+01:00\", \"UTC+02:00\", \"UTC+03:00\", \"UTC+04:00\", \"UTC+05:00\", \"UTC+06:00\", \"UTC+07:00\", \"UTC+08:00\", \"UTC+09:00\", \"UTC+10:00\", \"UTC+11:00\", \"UTC+12:00\"
TimeZone *string `json:"time_zone,omitempty"`
+
+ // 管理员账号用户名。 - 长度为1-32个字符。 - 必须以字母开头。 - 可以包含字母,数字、下划线,不能包含其它特殊字符。
+ AdminUserName *string `json:"admin_user_name,omitempty"`
+
+ // 管理员账号密码。 - 长度为8~32位。 - 必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。
+ AdminUserPassword *string `json:"admin_user_password,omitempty"`
}
func (o CreateInstanceDetail) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_enlarge_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_enlarge_request.go
index 795640bc..23ee0a58 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_enlarge_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_enlarge_request.go
@@ -17,6 +17,9 @@ type EnlargeRequest struct {
// 组id,指定当前进行节点扩容的组。当实例的组>1时,必填。
GroupId *string `json:"group_id,omitempty"`
+
+ // 变更包年包月实例规格时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。true,表示自动从账户中支付。false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}
func (o EnlargeRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_error_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_error_response.go
new file mode 100644
index 00000000..9849c1e8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_error_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ErrorResponse struct {
+
+ // 错误码。
+ ErrorCode string `json:"error_code"`
+
+ // 错误消息。
+ ErrorMsg string `json:"error_msg"`
+}
+
+func (o ErrorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ErrorResponse struct{}"
+ }
+
+ return strings.Join([]string{"ErrorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_list_available_rds_list_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_list_available_rds_list_request.go
index 95cb0cd9..a52bf189 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_list_available_rds_list_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_list_available_rds_list_request.go
@@ -15,7 +15,7 @@ type ListAvailableRdsListRequest struct {
// 分页参数:起始值 [大于等于0] 。默认值是0。
Offset *int32 `json:"offset,omitempty"`
- // 分页参数:每页多少条 [大于0且小于等于128]。默认值是128。
+ // 分页参数:每页多少条 [大于0且小于等于1000]。默认值是128。
Limit *int32 `json:"limit,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_request.go
new file mode 100644
index 00000000..aa6abf45
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ResetAdministratorRequest struct {
+
+ // DDM实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *AdminUserInfoReq `json:"body,omitempty"`
+}
+
+func (o ResetAdministratorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetAdministratorRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResetAdministratorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_response.go
new file mode 100644
index 00000000..65790dab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_reset_administrator_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResetAdministratorResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResetAdministratorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetAdministratorResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResetAdministratorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_req.go
new file mode 100644
index 00000000..715c0a77
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_req.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 变更至目标规格的请求信息。
+type ResizeFlavorReq struct {
+
+ // 变更至新规格的资源规格编码。
+ SpecCode string `json:"spec_code"`
+
+ // 实例默认一个组,此时不需要传入该参数。当使用组功能创建多个组时, 需要传入需要规格变更的对应组的group_id。
+ GroupId *string `json:"group_id,omitempty"`
+
+ // 变更包年包月实例规格时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。true,表示自动从账户中支付。false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
+}
+
+func (o ResizeFlavorReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeFlavorReq struct{}"
+ }
+
+ return strings.Join([]string{"ResizeFlavorReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_request.go
new file mode 100644
index 00000000..335e8f12
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ResizeFlavorRequest struct {
+
+ // DDM实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *ResizeFlavorReq `json:"body,omitempty"`
+}
+
+func (o ResizeFlavorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeFlavorRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResizeFlavorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_response.go
new file mode 100644
index 00000000..bce5f144
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_resize_flavor_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResizeFlavorResponse struct {
+
+ // 规格变更的任务id,仅变更按需实例时会返回该参数。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单id,仅变更包周期实例时会返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResizeFlavorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeFlavorResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResizeFlavorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_show_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_show_instance_response.go
index 50579467..e9fbcf2d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_show_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_show_instance_response.go
@@ -70,8 +70,11 @@ type ShowInstanceResponse struct {
EngineVersion *string `json:"engine_version,omitempty"`
// 节点信息。
- Nodes *[]GetDetailfNodesInfo `json:"nodes,omitempty"`
- HttpStatusCode int `json:"-"`
+ Nodes *[]GetDetailfNodesInfo `json:"nodes,omitempty"`
+
+ // 管理员账号用户名。 - 长度为1-32个字符。 - 必须以字母开头。 - 可以包含字母,数字、下划线,不能包含其它特殊字符。
+ AdminUserName *string `json:"admin_user_name,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ShowInstanceResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_slow_log_list.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_slow_log_list.go
index 0ac3ae5b..f9006601 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_slow_log_list.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_slow_log_list.go
@@ -28,6 +28,9 @@ type SlowLogList struct {
// 慢sql影响行数。
RowsExamined *string `json:"rowsExamined,omitempty"`
+
+ // 客户端ip,该IP地址可能涉及个人数据,建议用户依据实际IP地址的敏感性做查询后脱敏处理。
+ Host *string `json:"host,omitempty"`
}
func (o SlowLogList) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_request.go
new file mode 100644
index 00000000..c933600c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ValidateWeakPasswordRequest struct {
+ Body *WeakPasswordReq `json:"body,omitempty"`
+}
+
+func (o ValidateWeakPasswordRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateWeakPasswordRequest struct{}"
+ }
+
+ return strings.Join([]string{"ValidateWeakPasswordRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_response.go
new file mode 100644
index 00000000..815fe28c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_validate_weak_password_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ValidateWeakPasswordResponse struct {
+
+ // 是否是弱密码。true为弱密码,不建议使用。false为非弱密码,可以使用。
+ IsWeakPassword *bool `json:"is_weak_password,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ValidateWeakPasswordResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateWeakPasswordResponse struct{}"
+ }
+
+ return strings.Join([]string{"ValidateWeakPasswordResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_weak_password_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_weak_password_req.go
new file mode 100644
index 00000000..36a476a3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ddm/v1/model/model_weak_password_req.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 弱密码请求参数。
+type WeakPasswordReq struct {
+
+ // 待测试是否是弱密码的字符串。
+ Password string `json:"password"`
+}
+
+func (o WeakPasswordReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WeakPasswordReq struct{}"
+ }
+
+ return strings.Join([]string{"WeakPasswordReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_client.go
index c4719062..8756527d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_client.go
@@ -19,12 +19,32 @@ func DdsClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
+// AddReadonlyNode 实例新增只读节点
+//
+// DDS副本集实例新增只读节点。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) AddReadonlyNode(request *model.AddReadonlyNodeRequest) (*model.AddReadonlyNodeResponse, error) {
+ requestDef := GenReqDefForAddReadonlyNode()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AddReadonlyNodeResponse), nil
+ }
+}
+
+// AddReadonlyNodeInvoker 实例新增只读节点
+func (c *DdsClient) AddReadonlyNodeInvoker(request *model.AddReadonlyNodeRequest) *AddReadonlyNodeInvoker {
+ requestDef := GenReqDefForAddReadonlyNode()
+ return &AddReadonlyNodeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// AddShardingNode 扩容集群实例的节点数量
//
// 扩容指定集群实例的节点数量。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) AddShardingNode(request *model.AddShardingNodeRequest) (*model.AddShardingNodeResponse, error) {
requestDef := GenReqDefForAddShardingNode()
@@ -45,8 +65,7 @@ func (c *DdsClient) AddShardingNodeInvoker(request *model.AddShardingNodeRequest
//
// 为实例下的节点绑定弹性公网IP。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error) {
requestDef := GenReqDefForAttachEip()
@@ -67,8 +86,7 @@ func (c *DdsClient) AttachEipInvoker(request *model.AttachEipRequest) *AttachEip
//
// 修改实例的内网地址
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) AttachInternalIp(request *model.AttachInternalIpRequest) (*model.AttachInternalIpResponse, error) {
requestDef := GenReqDefForAttachInternalIp()
@@ -89,8 +107,7 @@ func (c *DdsClient) AttachInternalIpInvoker(request *model.AttachInternalIpReque
//
// 批量添加或删除指定实例的标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) BatchTagAction(request *model.BatchTagActionRequest) (*model.BatchTagActionResponse, error) {
requestDef := GenReqDefForBatchTagAction()
@@ -111,8 +128,7 @@ func (c *DdsClient) BatchTagActionInvoker(request *model.BatchTagActionRequest)
//
// 解绑实例下节点已经绑定的弹性公网IP。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CancelEip(request *model.CancelEipRequest) (*model.CancelEipResponse, error) {
requestDef := GenReqDefForCancelEip()
@@ -129,12 +145,32 @@ func (c *DdsClient) CancelEipInvoker(request *model.CancelEipRequest) *CancelEip
return &CancelEipInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ChangeOpsWindow 设置可维护时间段
+//
+// 修改用户允许启动某项对数据库实例运行有影响的任务的时间范围,例如操作系统升级和数据库软件版本升级的时间窗。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ChangeOpsWindow(request *model.ChangeOpsWindowRequest) (*model.ChangeOpsWindowResponse, error) {
+ requestDef := GenReqDefForChangeOpsWindow()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ChangeOpsWindowResponse), nil
+ }
+}
+
+// ChangeOpsWindowInvoker 设置可维护时间段
+func (c *DdsClient) ChangeOpsWindowInvoker(request *model.ChangeOpsWindowRequest) *ChangeOpsWindowInvoker {
+ requestDef := GenReqDefForChangeOpsWindow()
+ return &ChangeOpsWindowInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CheckPassword 检查数据库密码
//
// 检查数据库密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CheckPassword(request *model.CheckPasswordRequest) (*model.CheckPasswordResponse, error) {
requestDef := GenReqDefForCheckPassword()
@@ -151,12 +187,74 @@ func (c *DdsClient) CheckPasswordInvoker(request *model.CheckPasswordRequest) *C
return &CheckPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CheckWeakPassword 检查弱密码
+//
+// 检查弱密码
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) CheckWeakPassword(request *model.CheckWeakPasswordRequest) (*model.CheckWeakPasswordResponse, error) {
+ requestDef := GenReqDefForCheckWeakPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CheckWeakPasswordResponse), nil
+ }
+}
+
+// CheckWeakPasswordInvoker 检查弱密码
+func (c *DdsClient) CheckWeakPasswordInvoker(request *model.CheckWeakPasswordRequest) *CheckWeakPasswordInvoker {
+ requestDef := GenReqDefForCheckWeakPassword()
+ return &CheckWeakPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CompareConfiguration 参数模板比较
+//
+// 比较两个参数模板之间的差异。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) CompareConfiguration(request *model.CompareConfigurationRequest) (*model.CompareConfigurationResponse, error) {
+ requestDef := GenReqDefForCompareConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CompareConfigurationResponse), nil
+ }
+}
+
+// CompareConfigurationInvoker 参数模板比较
+func (c *DdsClient) CompareConfigurationInvoker(request *model.CompareConfigurationRequest) *CompareConfigurationInvoker {
+ requestDef := GenReqDefForCompareConfiguration()
+ return &CompareConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CopyConfiguration 复制参数模板
+//
+// 复制参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) CopyConfiguration(request *model.CopyConfigurationRequest) (*model.CopyConfigurationResponse, error) {
+ requestDef := GenReqDefForCopyConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CopyConfigurationResponse), nil
+ }
+}
+
+// CopyConfigurationInvoker 复制参数模板
+func (c *DdsClient) CopyConfigurationInvoker(request *model.CopyConfigurationRequest) *CopyConfigurationInvoker {
+ requestDef := GenReqDefForCopyConfiguration()
+ return &CopyConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateConfiguration 创建参数模板
//
// 创建参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateConfiguration(request *model.CreateConfigurationRequest) (*model.CreateConfigurationResponse, error) {
requestDef := GenReqDefForCreateConfiguration()
@@ -177,8 +275,7 @@ func (c *DdsClient) CreateConfigurationInvoker(request *model.CreateConfiguratio
//
// 创建数据库角色。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateDatabaseRole(request *model.CreateDatabaseRoleRequest) (*model.CreateDatabaseRoleResponse, error) {
requestDef := GenReqDefForCreateDatabaseRole()
@@ -199,8 +296,7 @@ func (c *DdsClient) CreateDatabaseRoleInvoker(request *model.CreateDatabaseRoleR
//
// 创建数据库用户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateDatabaseUser(request *model.CreateDatabaseUserRequest) (*model.CreateDatabaseUserResponse, error) {
requestDef := GenReqDefForCreateDatabaseUser()
@@ -221,8 +317,7 @@ func (c *DdsClient) CreateDatabaseUserInvoker(request *model.CreateDatabaseUserR
//
// 创建文档数据库实例,包括集群实例、副本集实例、以及单节点实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error) {
requestDef := GenReqDefForCreateInstance()
@@ -239,12 +334,11 @@ func (c *DdsClient) CreateInstanceInvoker(request *model.CreateInstanceRequest)
return &CreateInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// CreateIp 打开集群的Shard/Config IP开关
+// CreateIp 创建集群的Shard/Config IP
//
-// 打开集群的Shard/Config IP开关
+// 创建集群的Shard/Config IP
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateIp(request *model.CreateIpRequest) (*model.CreateIpResponse, error) {
requestDef := GenReqDefForCreateIp()
@@ -255,7 +349,7 @@ func (c *DdsClient) CreateIp(request *model.CreateIpRequest) (*model.CreateIpRes
}
}
-// CreateIpInvoker 打开集群的Shard/Config IP开关
+// CreateIpInvoker 创建集群的Shard/Config IP
func (c *DdsClient) CreateIpInvoker(request *model.CreateIpRequest) *CreateIpInvoker {
requestDef := GenReqDefForCreateIp()
return &CreateIpInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -265,8 +359,7 @@ func (c *DdsClient) CreateIpInvoker(request *model.CreateIpRequest) *CreateIpInv
//
// 创建数据库实例的手动备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error) {
requestDef := GenReqDefForCreateManualBackup()
@@ -283,12 +376,32 @@ func (c *DdsClient) CreateManualBackupInvoker(request *model.CreateManualBackupR
return &CreateManualBackupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteAuditLog 删除审计日志
+//
+// 删除审计日志
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) DeleteAuditLog(request *model.DeleteAuditLogRequest) (*model.DeleteAuditLogResponse, error) {
+ requestDef := GenReqDefForDeleteAuditLog()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteAuditLogResponse), nil
+ }
+}
+
+// DeleteAuditLogInvoker 删除审计日志
+func (c *DdsClient) DeleteAuditLogInvoker(request *model.DeleteAuditLogRequest) *DeleteAuditLogInvoker {
+ requestDef := GenReqDefForDeleteAuditLog()
+ return &DeleteAuditLogInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteConfiguration 删除参数模板
//
// 删除参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteConfiguration(request *model.DeleteConfigurationRequest) (*model.DeleteConfigurationResponse, error) {
requestDef := GenReqDefForDeleteConfiguration()
@@ -309,8 +422,7 @@ func (c *DdsClient) DeleteConfigurationInvoker(request *model.DeleteConfiguratio
//
// 删除数据库角色。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteDatabaseRole(request *model.DeleteDatabaseRoleRequest) (*model.DeleteDatabaseRoleResponse, error) {
requestDef := GenReqDefForDeleteDatabaseRole()
@@ -331,8 +443,7 @@ func (c *DdsClient) DeleteDatabaseRoleInvoker(request *model.DeleteDatabaseRoleR
//
// 删除数据库用户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteDatabaseUser(request *model.DeleteDatabaseUserRequest) (*model.DeleteDatabaseUserResponse, error) {
requestDef := GenReqDefForDeleteDatabaseUser()
@@ -353,8 +464,7 @@ func (c *DdsClient) DeleteDatabaseUserInvoker(request *model.DeleteDatabaseUserR
//
// 删除数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error) {
requestDef := GenReqDefForDeleteInstance()
@@ -375,8 +485,7 @@ func (c *DdsClient) DeleteInstanceInvoker(request *model.DeleteInstanceRequest)
//
// 删除数据库实例的手动备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error) {
requestDef := GenReqDefForDeleteManualBackup()
@@ -397,8 +506,7 @@ func (c *DdsClient) DeleteManualBackupInvoker(request *model.DeleteManualBackupR
//
// 终结实例节点会话。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DeleteSession(request *model.DeleteSessionRequest) (*model.DeleteSessionResponse, error) {
requestDef := GenReqDefForDeleteSession()
@@ -419,8 +527,7 @@ func (c *DdsClient) DeleteSessionInvoker(request *model.DeleteSessionRequest) *D
//
// 获取错误日志下载链接。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DownloadErrorlog(request *model.DownloadErrorlogRequest) (*model.DownloadErrorlogResponse, error) {
requestDef := GenReqDefForDownloadErrorlog()
@@ -441,8 +548,7 @@ func (c *DdsClient) DownloadErrorlogInvoker(request *model.DownloadErrorlogReque
//
// 获取慢日志下载链接。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) DownloadSlowlog(request *model.DownloadSlowlogRequest) (*model.DownloadSlowlogResponse, error) {
requestDef := GenReqDefForDownloadSlowlog()
@@ -459,12 +565,53 @@ func (c *DdsClient) DownloadSlowlogInvoker(request *model.DownloadSlowlogRequest
return &DownloadSlowlogInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ExpandReplicasetNode 扩容副本集实例的节点数量
+//
+// 扩容指定副本集实例的节点数量
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ExpandReplicasetNode(request *model.ExpandReplicasetNodeRequest) (*model.ExpandReplicasetNodeResponse, error) {
+ requestDef := GenReqDefForExpandReplicasetNode()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ExpandReplicasetNodeResponse), nil
+ }
+}
+
+// ExpandReplicasetNodeInvoker 扩容副本集实例的节点数量
+func (c *DdsClient) ExpandReplicasetNodeInvoker(request *model.ExpandReplicasetNodeRequest) *ExpandReplicasetNodeInvoker {
+ requestDef := GenReqDefForExpandReplicasetNode()
+ return &ExpandReplicasetNodeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAppliedInstances 查询可应用的实例
+//
+// 查询指定参数模板可被应用的实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ListAppliedInstances(request *model.ListAppliedInstancesRequest) (*model.ListAppliedInstancesResponse, error) {
+ requestDef := GenReqDefForListAppliedInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAppliedInstancesResponse), nil
+ }
+}
+
+// ListAppliedInstancesInvoker 查询可应用的实例
+func (c *DdsClient) ListAppliedInstancesInvoker(request *model.ListAppliedInstancesRequest) *ListAppliedInstancesInvoker {
+ requestDef := GenReqDefForListAppliedInstances()
+ return &ListAppliedInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListAuditlogLinks 获取审计日志下载链接
//
// 获取审计日志下载链接。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListAuditlogLinks(request *model.ListAuditlogLinksRequest) (*model.ListAuditlogLinksResponse, error) {
requestDef := GenReqDefForListAuditlogLinks()
@@ -485,8 +632,7 @@ func (c *DdsClient) ListAuditlogLinksInvoker(request *model.ListAuditlogLinksReq
//
// 获取审计日志列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListAuditlogs(request *model.ListAuditlogsRequest) (*model.ListAuditlogsResponse, error) {
requestDef := GenReqDefForListAuditlogs()
@@ -507,8 +653,7 @@ func (c *DdsClient) ListAuditlogsInvoker(request *model.ListAuditlogsRequest) *L
//
// 查询实例可迁移到的可用区。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListAz2Migrate(request *model.ListAz2MigrateRequest) (*model.ListAz2MigrateResponse, error) {
requestDef := GenReqDefForListAz2Migrate()
@@ -529,8 +674,7 @@ func (c *DdsClient) ListAz2MigrateInvoker(request *model.ListAz2MigrateRequest)
//
// 根据指定条件查询备份列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error) {
requestDef := GenReqDefForListBackups()
@@ -551,8 +695,7 @@ func (c *DdsClient) ListBackupsInvoker(request *model.ListBackupsRequest) *ListB
//
// 获取参数模板列表,包括DDS数据库的所有默认参数模板和用户创建的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error) {
requestDef := GenReqDefForListConfigurations()
@@ -573,8 +716,7 @@ func (c *DdsClient) ListConfigurationsInvoker(request *model.ListConfigurationsR
//
// 查询数据库角色列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListDatabaseRoles(request *model.ListDatabaseRolesRequest) (*model.ListDatabaseRolesResponse, error) {
requestDef := GenReqDefForListDatabaseRoles()
@@ -595,8 +737,7 @@ func (c *DdsClient) ListDatabaseRolesInvoker(request *model.ListDatabaseRolesReq
//
// 查询数据库用户列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListDatabaseUsers(request *model.ListDatabaseUsersRequest) (*model.ListDatabaseUsersResponse, error) {
requestDef := GenReqDefForListDatabaseUsers()
@@ -617,8 +758,7 @@ func (c *DdsClient) ListDatabaseUsersInvoker(request *model.ListDatabaseUsersReq
//
// 查询指定实例类型的数据库版本信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListDatastoreVersions(request *model.ListDatastoreVersionsRequest) (*model.ListDatastoreVersionsResponse, error) {
requestDef := GenReqDefForListDatastoreVersions()
@@ -639,8 +779,7 @@ func (c *DdsClient) ListDatastoreVersionsInvoker(request *model.ListDatastoreVer
//
// 查询数据库错误信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListErrorLogs(request *model.ListErrorLogsRequest) (*model.ListErrorLogsResponse, error) {
requestDef := GenReqDefForListErrorLogs()
@@ -661,8 +800,7 @@ func (c *DdsClient) ListErrorLogsInvoker(request *model.ListErrorLogsRequest) *L
//
// 查询指定条件下的实例规格信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListFlavorInfos(request *model.ListFlavorInfosRequest) (*model.ListFlavorInfosResponse, error) {
requestDef := GenReqDefForListFlavorInfos()
@@ -683,8 +821,7 @@ func (c *DdsClient) ListFlavorInfosInvoker(request *model.ListFlavorInfosRequest
//
// 查询指定条件下的所有实例规格信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -705,8 +842,7 @@ func (c *DdsClient) ListFlavorsInvoker(request *model.ListFlavorsRequest) *ListF
//
// 查询指定实例的标签信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error) {
requestDef := GenReqDefForListInstanceTags()
@@ -727,8 +863,7 @@ func (c *DdsClient) ListInstanceTagsInvoker(request *model.ListInstanceTagsReque
//
// 根据指定条件查询实例列表和详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error) {
requestDef := GenReqDefForListInstances()
@@ -749,8 +884,7 @@ func (c *DdsClient) ListInstancesInvoker(request *model.ListInstancesRequest) *L
//
// 根据标签查询指定的数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListInstancesByTags(request *model.ListInstancesByTagsRequest) (*model.ListInstancesByTagsResponse, error) {
requestDef := GenReqDefForListInstancesByTags()
@@ -767,12 +901,32 @@ func (c *DdsClient) ListInstancesByTagsInvoker(request *model.ListInstancesByTag
return &ListInstancesByTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListLtsSlowLogs 查询数据库慢日志
+//
+// 查询数据库慢日志信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ListLtsSlowLogs(request *model.ListLtsSlowLogsRequest) (*model.ListLtsSlowLogsResponse, error) {
+ requestDef := GenReqDefForListLtsSlowLogs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListLtsSlowLogsResponse), nil
+ }
+}
+
+// ListLtsSlowLogsInvoker 查询数据库慢日志
+func (c *DdsClient) ListLtsSlowLogsInvoker(request *model.ListLtsSlowLogsRequest) *ListLtsSlowLogsInvoker {
+ requestDef := GenReqDefForListLtsSlowLogs()
+ return &ListLtsSlowLogsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListProjectTags 查询项目标签
//
// 查询指定project ID下实例的所有标签集合。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error) {
requestDef := GenReqDefForListProjectTags()
@@ -789,12 +943,32 @@ func (c *DdsClient) ListProjectTagsInvoker(request *model.ListProjectTagsRequest
return &ListProjectTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListRecycleInstances 查询回收站实例列表
+//
+// 查询回收站实例列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ListRecycleInstances(request *model.ListRecycleInstancesRequest) (*model.ListRecycleInstancesResponse, error) {
+ requestDef := GenReqDefForListRecycleInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListRecycleInstancesResponse), nil
+ }
+}
+
+// ListRecycleInstancesInvoker 查询回收站实例列表
+func (c *DdsClient) ListRecycleInstancesInvoker(request *model.ListRecycleInstancesRequest) *ListRecycleInstancesInvoker {
+ requestDef := GenReqDefForListRecycleInstances()
+ return &ListRecycleInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListRestoreCollections 获取可恢复的数据库集合列表
//
// 获取可恢复的数据库集合列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListRestoreCollections(request *model.ListRestoreCollectionsRequest) (*model.ListRestoreCollectionsResponse, error) {
requestDef := GenReqDefForListRestoreCollections()
@@ -815,8 +989,7 @@ func (c *DdsClient) ListRestoreCollectionsInvoker(request *model.ListRestoreColl
//
// 获取可恢复的数据库列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListRestoreDatabases(request *model.ListRestoreDatabasesRequest) (*model.ListRestoreDatabasesResponse, error) {
requestDef := GenReqDefForListRestoreDatabases()
@@ -837,8 +1010,7 @@ func (c *DdsClient) ListRestoreDatabasesInvoker(request *model.ListRestoreDataba
//
// 查询实例的可恢复时间段。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListRestoreTimes(request *model.ListRestoreTimesRequest) (*model.ListRestoreTimesResponse, error) {
requestDef := GenReqDefForListRestoreTimes()
@@ -859,8 +1031,7 @@ func (c *DdsClient) ListRestoreTimesInvoker(request *model.ListRestoreTimesReque
//
// 查询实例节点会话。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListSessions(request *model.ListSessionsRequest) (*model.ListSessionsResponse, error) {
requestDef := GenReqDefForListSessions()
@@ -881,8 +1052,7 @@ func (c *DdsClient) ListSessionsInvoker(request *model.ListSessionsRequest) *Lis
//
// 查询数据库慢日志信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListSlowLogs(request *model.ListSlowLogsRequest) (*model.ListSlowLogsResponse, error) {
requestDef := GenReqDefForListSlowLogs()
@@ -899,12 +1069,32 @@ func (c *DdsClient) ListSlowLogsInvoker(request *model.ListSlowLogsRequest) *Lis
return &ListSlowLogsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListSslCertDownloadAddress 获取SSL证书下载地址
+//
+// 获取SSL证书下载地址
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ListSslCertDownloadAddress(request *model.ListSslCertDownloadAddressRequest) (*model.ListSslCertDownloadAddressResponse, error) {
+ requestDef := GenReqDefForListSslCertDownloadAddress()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListSslCertDownloadAddressResponse), nil
+ }
+}
+
+// ListSslCertDownloadAddressInvoker 获取SSL证书下载地址
+func (c *DdsClient) ListSslCertDownloadAddressInvoker(request *model.ListSslCertDownloadAddressRequest) *ListSslCertDownloadAddressInvoker {
+ requestDef := GenReqDefForListSslCertDownloadAddress()
+ return &ListSslCertDownloadAddressInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListStorageType 查询数据库磁盘类型
//
// 查询当前区域下的数据库磁盘类型。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListStorageType(request *model.ListStorageTypeRequest) (*model.ListStorageTypeResponse, error) {
requestDef := GenReqDefForListStorageType()
@@ -921,12 +1111,32 @@ func (c *DdsClient) ListStorageTypeInvoker(request *model.ListStorageTypeRequest
return &ListStorageTypeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListTasks 查询任务列表和详情
+//
+// 根据指定条件查询任务中心中的任务列表和详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error) {
+ requestDef := GenReqDefForListTasks()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListTasksResponse), nil
+ }
+}
+
+// ListTasksInvoker 查询任务列表和详情
+func (c *DdsClient) ListTasksInvoker(request *model.ListTasksRequest) *ListTasksInvoker {
+ requestDef := GenReqDefForListTasks()
+ return &ListTasksInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// MigrateAz 实例可用区迁移
//
// 实例可用区迁移。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) MigrateAz(request *model.MigrateAzRequest) (*model.MigrateAzResponse, error) {
requestDef := GenReqDefForMigrateAz()
@@ -943,12 +1153,32 @@ func (c *DdsClient) MigrateAzInvoker(request *model.MigrateAzRequest) *MigrateAz
return &MigrateAzInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ResetConfiguration 重置参数模板
+//
+// 重置参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ResetConfiguration(request *model.ResetConfigurationRequest) (*model.ResetConfigurationResponse, error) {
+ requestDef := GenReqDefForResetConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResetConfigurationResponse), nil
+ }
+}
+
+// ResetConfigurationInvoker 重置参数模板
+func (c *DdsClient) ResetConfigurationInvoker(request *model.ResetConfigurationRequest) *ResetConfigurationInvoker {
+ requestDef := GenReqDefForResetConfiguration()
+ return &ResetConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ResetPassword 修改数据库用户密码
//
// 修改数据库用户密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error) {
requestDef := GenReqDefForResetPassword()
@@ -969,8 +1199,7 @@ func (c *DdsClient) ResetPasswordInvoker(request *model.ResetPasswordRequest) *R
//
// 变更实例的规格。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error) {
requestDef := GenReqDefForResizeInstance()
@@ -991,8 +1220,7 @@ func (c *DdsClient) ResizeInstanceInvoker(request *model.ResizeInstanceRequest)
//
// 扩容实例相关的存储容量大小。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ResizeInstanceVolume(request *model.ResizeInstanceVolumeRequest) (*model.ResizeInstanceVolumeResponse, error) {
requestDef := GenReqDefForResizeInstanceVolume()
@@ -1013,8 +1241,7 @@ func (c *DdsClient) ResizeInstanceVolumeInvoker(request *model.ResizeInstanceVol
//
// 重启实例的数据库服务。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error) {
requestDef := GenReqDefForRestartInstance()
@@ -1035,8 +1262,7 @@ func (c *DdsClient) RestartInstanceInvoker(request *model.RestartInstanceRequest
//
// 恢复到当前实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) RestoreInstance(request *model.RestoreInstanceRequest) (*model.RestoreInstanceResponse, error) {
requestDef := GenReqDefForRestoreInstance()
@@ -1057,8 +1283,7 @@ func (c *DdsClient) RestoreInstanceInvoker(request *model.RestoreInstanceRequest
//
// 库表级时间点恢复。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) RestoreInstanceFromCollection(request *model.RestoreInstanceFromCollectionRequest) (*model.RestoreInstanceFromCollectionResponse, error) {
requestDef := GenReqDefForRestoreInstanceFromCollection()
@@ -1079,8 +1304,7 @@ func (c *DdsClient) RestoreInstanceFromCollectionInvoker(request *model.RestoreI
//
// 根据备份恢复新实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) RestoreNewInstance(request *model.RestoreNewInstanceRequest) (*model.RestoreNewInstanceResponse, error) {
requestDef := GenReqDefForRestoreNewInstance()
@@ -1101,8 +1325,7 @@ func (c *DdsClient) RestoreNewInstanceInvoker(request *model.RestoreNewInstanceR
//
// 设置审计日志策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SetAuditlogPolicy(request *model.SetAuditlogPolicyRequest) (*model.SetAuditlogPolicyResponse, error) {
requestDef := GenReqDefForSetAuditlogPolicy()
@@ -1123,8 +1346,7 @@ func (c *DdsClient) SetAuditlogPolicyInvoker(request *model.SetAuditlogPolicyReq
//
// 设置自动备份策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error) {
requestDef := GenReqDefForSetBackupPolicy()
@@ -1145,8 +1367,7 @@ func (c *DdsClient) SetBackupPolicyInvoker(request *model.SetBackupPolicyRequest
//
// 设置集群均衡开关。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SetBalancerSwitch(request *model.SetBalancerSwitchRequest) (*model.SetBalancerSwitchResponse, error) {
requestDef := GenReqDefForSetBalancerSwitch()
@@ -1167,8 +1388,7 @@ func (c *DdsClient) SetBalancerSwitchInvoker(request *model.SetBalancerSwitchReq
//
// 设置集群均衡活动时间窗。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SetBalancerWindow(request *model.SetBalancerWindowRequest) (*model.SetBalancerWindowResponse, error) {
requestDef := GenReqDefForSetBalancerWindow()
@@ -1185,12 +1405,32 @@ func (c *DdsClient) SetBalancerWindowInvoker(request *model.SetBalancerWindowReq
return &SetBalancerWindowInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// SetRecyclePolicy 设置实例回收站策略
+//
+// 设置实例回收站策略
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) SetRecyclePolicy(request *model.SetRecyclePolicyRequest) (*model.SetRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForSetRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
+// SetRecyclePolicyInvoker 设置实例回收站策略
+func (c *DdsClient) SetRecyclePolicyInvoker(request *model.SetRecyclePolicyRequest) *SetRecyclePolicyInvoker {
+ requestDef := GenReqDefForSetRecyclePolicy()
+ return &SetRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowAuditlogPolicy 查询审计日志策略
//
// 查询审计日志策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowAuditlogPolicy(request *model.ShowAuditlogPolicyRequest) (*model.ShowAuditlogPolicyResponse, error) {
requestDef := GenReqDefForShowAuditlogPolicy()
@@ -1211,8 +1451,7 @@ func (c *DdsClient) ShowAuditlogPolicyInvoker(request *model.ShowAuditlogPolicyR
//
// 获取备份下载链接。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowBackupDownloadLink(request *model.ShowBackupDownloadLinkRequest) (*model.ShowBackupDownloadLinkResponse, error) {
requestDef := GenReqDefForShowBackupDownloadLink()
@@ -1233,8 +1472,7 @@ func (c *DdsClient) ShowBackupDownloadLinkInvoker(request *model.ShowBackupDownl
//
// 查询自动备份策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error) {
requestDef := GenReqDefForShowBackupPolicy()
@@ -1251,12 +1489,53 @@ func (c *DdsClient) ShowBackupPolicyInvoker(request *model.ShowBackupPolicyReque
return &ShowBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowConfigurationAppliedHistory 查询参数模板被应用历史
+//
+// 查询参数模板应用历史
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowConfigurationAppliedHistory(request *model.ShowConfigurationAppliedHistoryRequest) (*model.ShowConfigurationAppliedHistoryResponse, error) {
+ requestDef := GenReqDefForShowConfigurationAppliedHistory()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationAppliedHistoryResponse), nil
+ }
+}
+
+// ShowConfigurationAppliedHistoryInvoker 查询参数模板被应用历史
+func (c *DdsClient) ShowConfigurationAppliedHistoryInvoker(request *model.ShowConfigurationAppliedHistoryRequest) *ShowConfigurationAppliedHistoryInvoker {
+ requestDef := GenReqDefForShowConfigurationAppliedHistory()
+ return &ShowConfigurationAppliedHistoryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowConfigurationModifyHistory 查询参数模板修改历史
+//
+// 查询参数模板修改历史。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowConfigurationModifyHistory(request *model.ShowConfigurationModifyHistoryRequest) (*model.ShowConfigurationModifyHistoryResponse, error) {
+ requestDef := GenReqDefForShowConfigurationModifyHistory()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationModifyHistoryResponse), nil
+ }
+}
+
+// ShowConfigurationModifyHistoryInvoker 查询参数模板修改历史
+func (c *DdsClient) ShowConfigurationModifyHistoryInvoker(request *model.ShowConfigurationModifyHistoryRequest) *ShowConfigurationModifyHistoryInvoker {
+ requestDef := GenReqDefForShowConfigurationModifyHistory()
+ return &ShowConfigurationModifyHistoryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowConfigurationParameter 获取参数模板的详情
//
// 获取参数模板的详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowConfigurationParameter(request *model.ShowConfigurationParameterRequest) (*model.ShowConfigurationParameterResponse, error) {
requestDef := GenReqDefForShowConfigurationParameter()
@@ -1277,8 +1556,7 @@ func (c *DdsClient) ShowConfigurationParameterInvoker(request *model.ShowConfigu
//
// 查询客户端IP访问至DDS数据库实例的连接数统计信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowConnectionStatistics(request *model.ShowConnectionStatisticsRequest) (*model.ShowConnectionStatisticsResponse, error) {
requestDef := GenReqDefForShowConnectionStatistics()
@@ -1295,12 +1573,32 @@ func (c *DdsClient) ShowConnectionStatisticsInvoker(request *model.ShowConnectio
return &ShowConnectionStatisticsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowDiskUsage 查询实例磁盘信息
+//
+// 查询实例磁盘信息
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowDiskUsage(request *model.ShowDiskUsageRequest) (*model.ShowDiskUsageResponse, error) {
+ requestDef := GenReqDefForShowDiskUsage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowDiskUsageResponse), nil
+ }
+}
+
+// ShowDiskUsageInvoker 查询实例磁盘信息
+func (c *DdsClient) ShowDiskUsageInvoker(request *model.ShowDiskUsageRequest) *ShowDiskUsageInvoker {
+ requestDef := GenReqDefForShowDiskUsage()
+ return &ShowDiskUsageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowEntityConfiguration 获取指定实例的参数信息
//
// 获取指定实例的参数,可以是实例,组,节点的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowEntityConfiguration(request *model.ShowEntityConfigurationRequest) (*model.ShowEntityConfigurationResponse, error) {
requestDef := GenReqDefForShowEntityConfiguration()
@@ -1321,8 +1619,7 @@ func (c *DdsClient) ShowEntityConfigurationInvoker(request *model.ShowEntityConf
//
// 获取DDS任务中心指定ID的任务信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error) {
requestDef := GenReqDefForShowJobDetail()
@@ -1343,8 +1640,7 @@ func (c *DdsClient) ShowJobDetailInvoker(request *model.ShowJobDetailRequest) *S
//
// 查询单租户在DDS服务下的资源配额,包括单节点实例配额、副本集实例配额、集群实例配额等。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error) {
requestDef := GenReqDefForShowQuotas()
@@ -1361,12 +1657,74 @@ func (c *DdsClient) ShowQuotasInvoker(request *model.ShowQuotasRequest) *ShowQuo
return &ShowQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowRecyclePolicy 查询实例回收站策略
+//
+// 查询实例回收站策略
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowRecyclePolicy(request *model.ShowRecyclePolicyRequest) (*model.ShowRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForShowRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+// ShowRecyclePolicyInvoker 查询实例回收站策略
+func (c *DdsClient) ShowRecyclePolicyInvoker(request *model.ShowRecyclePolicyRequest) *ShowRecyclePolicyInvoker {
+ requestDef := GenReqDefForShowRecyclePolicy()
+ return &ShowRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowReplSetName 查询数据库复制集名称
+//
+// 查询数据库复制集名称
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowReplSetName(request *model.ShowReplSetNameRequest) (*model.ShowReplSetNameResponse, error) {
+ requestDef := GenReqDefForShowReplSetName()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowReplSetNameResponse), nil
+ }
+}
+
+// ShowReplSetNameInvoker 查询数据库复制集名称
+func (c *DdsClient) ShowReplSetNameInvoker(request *model.ShowReplSetNameRequest) *ShowReplSetNameInvoker {
+ requestDef := GenReqDefForShowReplSetName()
+ return &ShowReplSetNameInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowSecondLevelMonitoringStatus 查询秒级监控配置
+//
+// 查询秒级监控配置。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowSecondLevelMonitoringStatus(request *model.ShowSecondLevelMonitoringStatusRequest) (*model.ShowSecondLevelMonitoringStatusResponse, error) {
+ requestDef := GenReqDefForShowSecondLevelMonitoringStatus()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowSecondLevelMonitoringStatusResponse), nil
+ }
+}
+
+// ShowSecondLevelMonitoringStatusInvoker 查询秒级监控配置
+func (c *DdsClient) ShowSecondLevelMonitoringStatusInvoker(request *model.ShowSecondLevelMonitoringStatusRequest) *ShowSecondLevelMonitoringStatusInvoker {
+ requestDef := GenReqDefForShowSecondLevelMonitoringStatus()
+ return &ShowSecondLevelMonitoringStatusInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowShardingBalancer 查询集群均衡设置
//
// 查询集群均衡设置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowShardingBalancer(request *model.ShowShardingBalancerRequest) (*model.ShowShardingBalancerResponse, error) {
requestDef := GenReqDefForShowShardingBalancer()
@@ -1383,12 +1741,74 @@ func (c *DdsClient) ShowShardingBalancerInvoker(request *model.ShowShardingBalan
return &ShowShardingBalancerInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowSlowlogDesensitizationSwitch 查询慢日志明文开关
+//
+// 查询慢日志明文开关
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowSlowlogDesensitizationSwitch(request *model.ShowSlowlogDesensitizationSwitchRequest) (*model.ShowSlowlogDesensitizationSwitchResponse, error) {
+ requestDef := GenReqDefForShowSlowlogDesensitizationSwitch()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowSlowlogDesensitizationSwitchResponse), nil
+ }
+}
+
+// ShowSlowlogDesensitizationSwitchInvoker 查询慢日志明文开关
+func (c *DdsClient) ShowSlowlogDesensitizationSwitchInvoker(request *model.ShowSlowlogDesensitizationSwitchRequest) *ShowSlowlogDesensitizationSwitchInvoker {
+ requestDef := GenReqDefForShowSlowlogDesensitizationSwitch()
+ return &ShowSlowlogDesensitizationSwitchInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowUpgradeDuration 查询数据库补丁升级预估时长
+//
+// 查询数据库补丁升级预估时长
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShowUpgradeDuration(request *model.ShowUpgradeDurationRequest) (*model.ShowUpgradeDurationResponse, error) {
+ requestDef := GenReqDefForShowUpgradeDuration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowUpgradeDurationResponse), nil
+ }
+}
+
+// ShowUpgradeDurationInvoker 查询数据库补丁升级预估时长
+func (c *DdsClient) ShowUpgradeDurationInvoker(request *model.ShowUpgradeDurationRequest) *ShowUpgradeDurationInvoker {
+ requestDef := GenReqDefForShowUpgradeDuration()
+ return &ShowUpgradeDurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShrinkInstanceNodes 删除实例的节点
+//
+// 删除实例的节点。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) ShrinkInstanceNodes(request *model.ShrinkInstanceNodesRequest) (*model.ShrinkInstanceNodesResponse, error) {
+ requestDef := GenReqDefForShrinkInstanceNodes()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShrinkInstanceNodesResponse), nil
+ }
+}
+
+// ShrinkInstanceNodesInvoker 删除实例的节点
+func (c *DdsClient) ShrinkInstanceNodesInvoker(request *model.ShrinkInstanceNodesRequest) *ShrinkInstanceNodesInvoker {
+ requestDef := GenReqDefForShrinkInstanceNodes()
+ return &ShrinkInstanceNodesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// SwitchConfiguration 应用参数模板
//
// 指定实例变更参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SwitchConfiguration(request *model.SwitchConfigurationRequest) (*model.SwitchConfigurationResponse, error) {
requestDef := GenReqDefForSwitchConfiguration()
@@ -1405,12 +1825,32 @@ func (c *DdsClient) SwitchConfigurationInvoker(request *model.SwitchConfiguratio
return &SwitchConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// SwitchSecondLevelMonitoring 开启/关闭秒级监控
+//
+// 开启或关闭指定实例的秒级监控。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) SwitchSecondLevelMonitoring(request *model.SwitchSecondLevelMonitoringRequest) (*model.SwitchSecondLevelMonitoringResponse, error) {
+ requestDef := GenReqDefForSwitchSecondLevelMonitoring()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchSecondLevelMonitoringResponse), nil
+ }
+}
+
+// SwitchSecondLevelMonitoringInvoker 开启/关闭秒级监控
+func (c *DdsClient) SwitchSecondLevelMonitoringInvoker(request *model.SwitchSecondLevelMonitoringRequest) *SwitchSecondLevelMonitoringInvoker {
+ requestDef := GenReqDefForSwitchSecondLevelMonitoring()
+ return &SwitchSecondLevelMonitoringInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// SwitchSlowlogDesensitization 设置慢日志明文开关
//
// 设置实例的慢日志明文开关。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SwitchSlowlogDesensitization(request *model.SwitchSlowlogDesensitizationRequest) (*model.SwitchSlowlogDesensitizationResponse, error) {
requestDef := GenReqDefForSwitchSlowlogDesensitization()
@@ -1431,8 +1871,7 @@ func (c *DdsClient) SwitchSlowlogDesensitizationInvoker(request *model.SwitchSlo
//
// 切换实例的SSL开关
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SwitchSsl(request *model.SwitchSslRequest) (*model.SwitchSslResponse, error) {
requestDef := GenReqDefForSwitchSsl()
@@ -1453,8 +1892,7 @@ func (c *DdsClient) SwitchSslInvoker(request *model.SwitchSslRequest) *SwitchSsl
//
// 切换副本集实例下的主备节点
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) SwitchoverReplicaSet(request *model.SwitchoverReplicaSetRequest) (*model.SwitchoverReplicaSetResponse, error) {
requestDef := GenReqDefForSwitchoverReplicaSet()
@@ -1475,8 +1913,7 @@ func (c *DdsClient) SwitchoverReplicaSetInvoker(request *model.SwitchoverReplica
//
// 副本集跨网段访问配置。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateClientNetwork(request *model.UpdateClientNetworkRequest) (*model.UpdateClientNetworkResponse, error) {
requestDef := GenReqDefForUpdateClientNetwork()
@@ -1497,8 +1934,7 @@ func (c *DdsClient) UpdateClientNetworkInvoker(request *model.UpdateClientNetwor
//
// 修改指定参数模板的参数信息,包括名称、描述、指定参数的值。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateConfigurationParameter(request *model.UpdateConfigurationParameterRequest) (*model.UpdateConfigurationParameterResponse, error) {
requestDef := GenReqDefForUpdateConfigurationParameter()
@@ -1519,8 +1955,7 @@ func (c *DdsClient) UpdateConfigurationParameterInvoker(request *model.UpdateCon
//
// 修改指定实例的参数,可以是实例,组,节点的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateEntityConfiguration(request *model.UpdateEntityConfigurationRequest) (*model.UpdateEntityConfigurationResponse, error) {
requestDef := GenReqDefForUpdateEntityConfiguration()
@@ -1541,8 +1976,7 @@ func (c *DdsClient) UpdateEntityConfigurationInvoker(request *model.UpdateEntity
//
// 修改实例名称
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error) {
requestDef := GenReqDefForUpdateInstanceName()
@@ -1563,8 +1997,7 @@ func (c *DdsClient) UpdateInstanceNameInvoker(request *model.UpdateInstanceNameR
//
// 修改数据库实例的端口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateInstancePort(request *model.UpdateInstancePortRequest) (*model.UpdateInstancePortResponse, error) {
requestDef := GenReqDefForUpdateInstancePort()
@@ -1585,8 +2018,7 @@ func (c *DdsClient) UpdateInstancePortInvoker(request *model.UpdateInstancePortR
//
// 修改实例备注。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateInstanceRemark(request *model.UpdateInstanceRemarkRequest) (*model.UpdateInstanceRemarkResponse, error) {
requestDef := GenReqDefForUpdateInstanceRemark()
@@ -1603,12 +2035,32 @@ func (c *DdsClient) UpdateInstanceRemarkInvoker(request *model.UpdateInstanceRem
return &UpdateInstanceRemarkInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdateReplSetName 修改数据库复制集名称
+//
+// 修改数据库复制集名称
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) UpdateReplSetName(request *model.UpdateReplSetNameRequest) (*model.UpdateReplSetNameResponse, error) {
+ requestDef := GenReqDefForUpdateReplSetName()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateReplSetNameResponse), nil
+ }
+}
+
+// UpdateReplSetNameInvoker 修改数据库复制集名称
+func (c *DdsClient) UpdateReplSetNameInvoker(request *model.UpdateReplSetNameRequest) *UpdateReplSetNameInvoker {
+ requestDef := GenReqDefForUpdateReplSetName()
+ return &UpdateReplSetNameInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateSecurityGroup 变更实例安全组
//
// 变更实例关联的安全组
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) UpdateSecurityGroup(request *model.UpdateSecurityGroupRequest) (*model.UpdateSecurityGroupResponse, error) {
requestDef := GenReqDefForUpdateSecurityGroup()
@@ -1625,12 +2077,32 @@ func (c *DdsClient) UpdateSecurityGroupInvoker(request *model.UpdateSecurityGrou
return &UpdateSecurityGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpgradeDatabaseVersion 数据库补丁升级
+//
+// 升级数据库补丁版本。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DdsClient) UpgradeDatabaseVersion(request *model.UpgradeDatabaseVersionRequest) (*model.UpgradeDatabaseVersionResponse, error) {
+ requestDef := GenReqDefForUpgradeDatabaseVersion()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpgradeDatabaseVersionResponse), nil
+ }
+}
+
+// UpgradeDatabaseVersionInvoker 数据库补丁升级
+func (c *DdsClient) UpgradeDatabaseVersionInvoker(request *model.UpgradeDatabaseVersionRequest) *UpgradeDatabaseVersionInvoker {
+ requestDef := GenReqDefForUpgradeDatabaseVersion()
+ return &UpgradeDatabaseVersionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListApiVersion 查询当前支持的API版本信息列表
//
// 查询当前支持的API版本信息列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ListApiVersion(request *model.ListApiVersionRequest) (*model.ListApiVersionResponse, error) {
requestDef := GenReqDefForListApiVersion()
@@ -1651,8 +2123,7 @@ func (c *DdsClient) ListApiVersionInvoker(request *model.ListApiVersionRequest)
//
// 查询指定API版本信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DdsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error) {
requestDef := GenReqDefForShowApiVersion()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_invoker.go
index 2ad0a743..90e3c452 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_invoker.go
@@ -5,6 +5,18 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model"
)
+type AddReadonlyNodeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AddReadonlyNodeInvoker) Invoke() (*model.AddReadonlyNodeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AddReadonlyNodeResponse), nil
+ }
+}
+
type AddShardingNodeInvoker struct {
*invoker.BaseInvoker
}
@@ -65,6 +77,18 @@ func (i *CancelEipInvoker) Invoke() (*model.CancelEipResponse, error) {
}
}
+type ChangeOpsWindowInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ChangeOpsWindowInvoker) Invoke() (*model.ChangeOpsWindowResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ChangeOpsWindowResponse), nil
+ }
+}
+
type CheckPasswordInvoker struct {
*invoker.BaseInvoker
}
@@ -77,6 +101,42 @@ func (i *CheckPasswordInvoker) Invoke() (*model.CheckPasswordResponse, error) {
}
}
+type CheckWeakPasswordInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CheckWeakPasswordInvoker) Invoke() (*model.CheckWeakPasswordResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CheckWeakPasswordResponse), nil
+ }
+}
+
+type CompareConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CompareConfigurationInvoker) Invoke() (*model.CompareConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CompareConfigurationResponse), nil
+ }
+}
+
+type CopyConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CopyConfigurationInvoker) Invoke() (*model.CopyConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CopyConfigurationResponse), nil
+ }
+}
+
type CreateConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -149,6 +209,18 @@ func (i *CreateManualBackupInvoker) Invoke() (*model.CreateManualBackupResponse,
}
}
+type DeleteAuditLogInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteAuditLogInvoker) Invoke() (*model.DeleteAuditLogResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteAuditLogResponse), nil
+ }
+}
+
type DeleteConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -245,6 +317,30 @@ func (i *DownloadSlowlogInvoker) Invoke() (*model.DownloadSlowlogResponse, error
}
}
+type ExpandReplicasetNodeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ExpandReplicasetNodeInvoker) Invoke() (*model.ExpandReplicasetNodeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ExpandReplicasetNodeResponse), nil
+ }
+}
+
+type ListAppliedInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAppliedInstancesInvoker) Invoke() (*model.ListAppliedInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAppliedInstancesResponse), nil
+ }
+}
+
type ListAuditlogLinksInvoker struct {
*invoker.BaseInvoker
}
@@ -413,6 +509,18 @@ func (i *ListInstancesByTagsInvoker) Invoke() (*model.ListInstancesByTagsRespons
}
}
+type ListLtsSlowLogsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListLtsSlowLogsInvoker) Invoke() (*model.ListLtsSlowLogsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListLtsSlowLogsResponse), nil
+ }
+}
+
type ListProjectTagsInvoker struct {
*invoker.BaseInvoker
}
@@ -425,6 +533,18 @@ func (i *ListProjectTagsInvoker) Invoke() (*model.ListProjectTagsResponse, error
}
}
+type ListRecycleInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRecycleInstancesInvoker) Invoke() (*model.ListRecycleInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRecycleInstancesResponse), nil
+ }
+}
+
type ListRestoreCollectionsInvoker struct {
*invoker.BaseInvoker
}
@@ -485,6 +605,18 @@ func (i *ListSlowLogsInvoker) Invoke() (*model.ListSlowLogsResponse, error) {
}
}
+type ListSslCertDownloadAddressInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListSslCertDownloadAddressInvoker) Invoke() (*model.ListSslCertDownloadAddressResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListSslCertDownloadAddressResponse), nil
+ }
+}
+
type ListStorageTypeInvoker struct {
*invoker.BaseInvoker
}
@@ -497,6 +629,18 @@ func (i *ListStorageTypeInvoker) Invoke() (*model.ListStorageTypeResponse, error
}
}
+type ListTasksInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListTasksInvoker) Invoke() (*model.ListTasksResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListTasksResponse), nil
+ }
+}
+
type MigrateAzInvoker struct {
*invoker.BaseInvoker
}
@@ -509,6 +653,18 @@ func (i *MigrateAzInvoker) Invoke() (*model.MigrateAzResponse, error) {
}
}
+type ResetConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResetConfigurationInvoker) Invoke() (*model.ResetConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResetConfigurationResponse), nil
+ }
+}
+
type ResetPasswordInvoker struct {
*invoker.BaseInvoker
}
@@ -641,6 +797,18 @@ func (i *SetBalancerWindowInvoker) Invoke() (*model.SetBalancerWindowResponse, e
}
}
+type SetRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SetRecyclePolicyInvoker) Invoke() (*model.SetRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
type ShowAuditlogPolicyInvoker struct {
*invoker.BaseInvoker
}
@@ -677,6 +845,30 @@ func (i *ShowBackupPolicyInvoker) Invoke() (*model.ShowBackupPolicyResponse, err
}
}
+type ShowConfigurationAppliedHistoryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowConfigurationAppliedHistoryInvoker) Invoke() (*model.ShowConfigurationAppliedHistoryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowConfigurationAppliedHistoryResponse), nil
+ }
+}
+
+type ShowConfigurationModifyHistoryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowConfigurationModifyHistoryInvoker) Invoke() (*model.ShowConfigurationModifyHistoryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowConfigurationModifyHistoryResponse), nil
+ }
+}
+
type ShowConfigurationParameterInvoker struct {
*invoker.BaseInvoker
}
@@ -701,6 +893,18 @@ func (i *ShowConnectionStatisticsInvoker) Invoke() (*model.ShowConnectionStatist
}
}
+type ShowDiskUsageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowDiskUsageInvoker) Invoke() (*model.ShowDiskUsageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowDiskUsageResponse), nil
+ }
+}
+
type ShowEntityConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -737,6 +941,42 @@ func (i *ShowQuotasInvoker) Invoke() (*model.ShowQuotasResponse, error) {
}
}
+type ShowRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRecyclePolicyInvoker) Invoke() (*model.ShowRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+type ShowReplSetNameInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowReplSetNameInvoker) Invoke() (*model.ShowReplSetNameResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowReplSetNameResponse), nil
+ }
+}
+
+type ShowSecondLevelMonitoringStatusInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowSecondLevelMonitoringStatusInvoker) Invoke() (*model.ShowSecondLevelMonitoringStatusResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowSecondLevelMonitoringStatusResponse), nil
+ }
+}
+
type ShowShardingBalancerInvoker struct {
*invoker.BaseInvoker
}
@@ -749,6 +989,42 @@ func (i *ShowShardingBalancerInvoker) Invoke() (*model.ShowShardingBalancerRespo
}
}
+type ShowSlowlogDesensitizationSwitchInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowSlowlogDesensitizationSwitchInvoker) Invoke() (*model.ShowSlowlogDesensitizationSwitchResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowSlowlogDesensitizationSwitchResponse), nil
+ }
+}
+
+type ShowUpgradeDurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowUpgradeDurationInvoker) Invoke() (*model.ShowUpgradeDurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowUpgradeDurationResponse), nil
+ }
+}
+
+type ShrinkInstanceNodesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShrinkInstanceNodesInvoker) Invoke() (*model.ShrinkInstanceNodesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShrinkInstanceNodesResponse), nil
+ }
+}
+
type SwitchConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -761,6 +1037,18 @@ func (i *SwitchConfigurationInvoker) Invoke() (*model.SwitchConfigurationRespons
}
}
+type SwitchSecondLevelMonitoringInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchSecondLevelMonitoringInvoker) Invoke() (*model.SwitchSecondLevelMonitoringResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchSecondLevelMonitoringResponse), nil
+ }
+}
+
type SwitchSlowlogDesensitizationInvoker struct {
*invoker.BaseInvoker
}
@@ -869,6 +1157,18 @@ func (i *UpdateInstanceRemarkInvoker) Invoke() (*model.UpdateInstanceRemarkRespo
}
}
+type UpdateReplSetNameInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateReplSetNameInvoker) Invoke() (*model.UpdateReplSetNameResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateReplSetNameResponse), nil
+ }
+}
+
type UpdateSecurityGroupInvoker struct {
*invoker.BaseInvoker
}
@@ -881,6 +1181,18 @@ func (i *UpdateSecurityGroupInvoker) Invoke() (*model.UpdateSecurityGroupRespons
}
}
+type UpgradeDatabaseVersionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpgradeDatabaseVersionInvoker) Invoke() (*model.UpgradeDatabaseVersionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpgradeDatabaseVersionResponse), nil
+ }
+}
+
type ListApiVersionInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_meta.go
index 4d77a695..66bf2fbf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/dds_meta.go
@@ -7,6 +7,26 @@ import (
"net/http"
)
+func GenReqDefForAddReadonlyNode() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/readonly-node").
+ WithResponse(new(model.AddReadonlyNodeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForAddShardingNode() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -103,6 +123,26 @@ func GenReqDefForCancelEip() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForChangeOpsWindow() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/maintenance-window").
+ WithResponse(new(model.ChangeOpsWindowResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCheckPassword() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -123,6 +163,61 @@ func GenReqDefForCheckPassword() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCheckWeakPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/weak-password-verification").
+ WithResponse(new(model.CheckWeakPasswordResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCompareConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/comparison").
+ WithResponse(new(model.CompareConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCopyConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/{config_id}/copy").
+ WithResponse(new(model.CopyConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -228,6 +323,31 @@ func GenReqDefForCreateManualBackup() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteAuditLog() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/instances/{instance_id}/auditlog").
+ WithResponse(new(model.DeleteAuditLogResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -376,6 +496,51 @@ func GenReqDefForDownloadSlowlog() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForExpandReplicasetNode() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/replicaset-node").
+ WithResponse(new(model.ExpandReplicasetNodeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAppliedInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applicable-instances").
+ WithResponse(new(model.ListAppliedInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListAuditlogLinks() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -768,6 +933,26 @@ func GenReqDefForListInstancesByTags() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListLtsSlowLogs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3.1/{project_id}/instances/{instance_id}/slow-logs").
+ WithResponse(new(model.ListLtsSlowLogsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListProjectTags() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -779,6 +964,31 @@ func GenReqDefForListProjectTags() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListRecycleInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/recycle-instances").
+ WithResponse(new(model.ListRecycleInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListRestoreCollections() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -959,6 +1169,27 @@ func GenReqDefForListSlowLogs() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListSslCertDownloadAddress() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/ssl-cert/download-link").
+ WithResponse(new(model.ListSslCertDownloadAddressResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListStorageType() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -975,6 +1206,42 @@ func GenReqDefForListStorageType() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListTasks() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3.1/{project_id}/jobs").
+ WithResponse(new(model.ListTasksResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("StartTime").
+ WithJsonTag("start_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndTime").
+ WithJsonTag("end_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForMigrateAz() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -995,6 +1262,26 @@ func GenReqDefForMigrateAz() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForResetConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/{config_id}/reset").
+ WithResponse(new(model.ResetConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForResetPassword() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -1215,6 +1502,21 @@ func GenReqDefForSetBalancerWindow() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForSetRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/recycle-policy").
+ WithResponse(new(model.SetRecyclePolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowAuditlogPolicy() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1277,6 +1579,56 @@ func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowConfigurationAppliedHistory() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applied-histories").
+ WithResponse(new(model.ShowConfigurationAppliedHistoryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowConfigurationModifyHistory() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/histories").
+ WithResponse(new(model.ShowConfigurationModifyHistoryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowConfigurationParameter() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1314,6 +1666,27 @@ func GenReqDefForShowConnectionStatistics() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowDiskUsage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disk-usage").
+ WithResponse(new(model.ShowDiskUsageResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowEntityConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1362,6 +1735,54 @@ func GenReqDefForShowQuotas() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/recycle-policy").
+ WithResponse(new(model.ShowRecyclePolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowReplSetName() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/replica-set/name").
+ WithResponse(new(model.ShowReplSetNameResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowSecondLevelMonitoringStatus() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch").
+ WithResponse(new(model.ShowSecondLevelMonitoringStatusResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowShardingBalancer() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1378,6 +1799,68 @@ func GenReqDefForShowShardingBalancer() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowSlowlogDesensitizationSwitch() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/slowlog-desensitization/status").
+ WithResponse(new(model.ShowSlowlogDesensitizationSwitchResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowUpgradeDuration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/db-upgrade-duration").
+ WithResponse(new(model.ShowUpgradeDurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShrinkInstanceNodes() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/instances/{instance_id}/nodes").
+ WithResponse(new(model.ShrinkInstanceNodesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForSwitchConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -1398,6 +1881,26 @@ func GenReqDefForSwitchConfiguration() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForSwitchSecondLevelMonitoring() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/monitoring-by-seconds/switch").
+ WithResponse(new(model.SwitchSecondLevelMonitoringResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForSwitchSlowlogDesensitization() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -1414,6 +1917,11 @@ func GenReqDefForSwitchSlowlogDesensitization() *def.HttpRequestDef {
WithJsonTag("status").
WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
requestDef := reqDefBuilder.Build()
return requestDef
}
@@ -1574,6 +2082,26 @@ func GenReqDefForUpdateInstanceRemark() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdateReplSetName() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/replica-set/name").
+ WithResponse(new(model.UpdateReplSetNameResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateSecurityGroup() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -1594,6 +2122,26 @@ func GenReqDefForUpdateSecurityGroup() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpgradeDatabaseVersion() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/db-upgrade").
+ WithResponse(new(model.UpgradeDatabaseVersionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListApiVersion() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request.go
new file mode 100644
index 00000000..4653b683
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AddReadonlyNodeRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *AddReadonlyNodeRequestBody `json:"body,omitempty"`
+}
+
+func (o AddReadonlyNodeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddReadonlyNodeRequest struct{}"
+ }
+
+ return strings.Join([]string{"AddReadonlyNodeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request_body.go
new file mode 100644
index 00000000..06abf9fe
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_request_body.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type AddReadonlyNodeRequestBody struct {
+
+ // 资源规格编码。获取方法请参见[查询数据库规格](x-wc://file=zh-cn_topic_0000001321087266.xml)中参数“spec_code”的值。 示例:dds.mongodb.c6.xlarge.2.shard
+ SpecCode string `json:"spec_code"`
+
+ // 待新增只读节点个数。 取值范围:1-5。
+ Num int32 `json:"num"`
+
+ // 同步延迟时间。取值范围:0~1200毫秒。默认取值为0。
+ Delay *int32 `json:"delay,omitempty"`
+
+ // 扩容包年包月实例的存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
+}
+
+func (o AddReadonlyNodeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddReadonlyNodeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"AddReadonlyNodeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_response.go
new file mode 100644
index 00000000..0d674f71
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_add_readonly_node_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AddReadonlyNodeResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅扩容包年包月实例的节点数量时返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AddReadonlyNodeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddReadonlyNodeResponse struct{}"
+ }
+
+ return strings.Join([]string{"AddReadonlyNodeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_applicable_instances_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_applicable_instances_info.go
new file mode 100644
index 00000000..295c02e2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_applicable_instances_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 可被参数模板应用的实例信息
+type ApplicableInstancesInfo struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称。
+ InstanceName string `json:"instance_name"`
+
+ // 节点组信息或节点信息的列表对象。 当参数模板是集群类型时,如果是shard组或者config组的参数模板,则可应用到的是对应类型的节点组,如果是mongos组的参数模板,则可应用到的是对应类型的的节点。 当参数模板是副本集或单节点类型时,直接应用到对应实例。 例如:一个mongos参数模板可应用到一个或多个mongos节点。
+ Entities []EntityInfo `json:"entities"`
+}
+
+func (o ApplicableInstancesInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApplicableInstancesInfo struct{}"
+ }
+
+ return strings.Join([]string{"ApplicableInstancesInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_apply_history_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_apply_history_info.go
new file mode 100644
index 00000000..87f5d56a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_apply_history_info.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ApplyHistoryInfo struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称。
+ InstanceName string `json:"instance_name"`
+
+ // 应用时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ AppliedAt string `json:"applied_at"`
+
+ // 应用结果。 SUCCESS:应用成功,FAILED:应用失败。
+ ApplyResult string `json:"apply_result"`
+
+ // 失败原因。
+ FailureReason *string `json:"failure_reason,omitempty"`
+}
+
+func (o ApplyHistoryInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApplyHistoryInfo struct{}"
+ }
+
+ return strings.Join([]string{"ApplyHistoryInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_cert_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_cert_info.go
new file mode 100644
index 00000000..c2a34091
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_cert_info.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type CertInfo struct {
+
+ // 证书种类
+ Category CertInfoCategory `json:"category"`
+
+ // 证书下载链接
+ DownloadLink string `json:"download_link"`
+}
+
+func (o CertInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CertInfo struct{}"
+ }
+
+ return strings.Join([]string{"CertInfo", string(data)}, " ")
+}
+
+type CertInfoCategory struct {
+ value string
+}
+
+type CertInfoCategoryEnum struct {
+ INTERNATIONAL CertInfoCategory
+ NATIONAL CertInfoCategory
+}
+
+func GetCertInfoCategoryEnum() CertInfoCategoryEnum {
+ return CertInfoCategoryEnum{
+ INTERNATIONAL: CertInfoCategory{
+ value: "international",
+ },
+ NATIONAL: CertInfoCategory{
+ value: "national",
+ },
+ }
+}
+
+func (c CertInfoCategory) Value() string {
+ return c.value
+}
+
+func (c CertInfoCategory) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CertInfoCategory) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_request.go
new file mode 100644
index 00000000..7892f4a8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ChangeOpsWindowRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *OpsWindowRequestBody `json:"body,omitempty"`
+}
+
+func (o ChangeOpsWindowRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ChangeOpsWindowRequest struct{}"
+ }
+
+ return strings.Join([]string{"ChangeOpsWindowRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_response.go
new file mode 100644
index 00000000..de00551d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_change_ops_window_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ChangeOpsWindowResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ChangeOpsWindowResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ChangeOpsWindowResponse struct{}"
+ }
+
+ return strings.Join([]string{"ChangeOpsWindowResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_request.go
new file mode 100644
index 00000000..27166de5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CheckWeakPasswordRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ Body *WeakPasswordCheckRequestBody `json:"body,omitempty"`
+}
+
+func (o CheckWeakPasswordRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckWeakPasswordRequest struct{}"
+ }
+
+ return strings.Join([]string{"CheckWeakPasswordRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_response.go
new file mode 100644
index 00000000..367e2ddd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_check_weak_password_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CheckWeakPasswordResponse struct {
+
+ // 是否弱密码,true:是弱密码 false:不是弱密码
+ Weak *bool `json:"weak,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CheckWeakPasswordResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckWeakPasswordResponse struct{}"
+ }
+
+ return strings.Join([]string{"CheckWeakPasswordResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_request.go
new file mode 100644
index 00000000..9b31c050
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CompareConfigurationRequest struct {
+ Body *DiffConfigurationRequest `json:"body,omitempty"`
+}
+
+func (o CompareConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CompareConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CompareConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_response.go
new file mode 100644
index 00000000..cfae9821
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_compare_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CompareConfigurationResponse struct {
+
+ // 参数模板之间的区别集合。
+ Differences *[]DiffDetails `json:"differences,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CompareConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CompareConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CompareConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request.go
new file mode 100644
index 00000000..0c104645
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CopyConfigurationRequest struct {
+
+ // 被复制的参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ Body *CopyConfigurationRequestBody `json:"body,omitempty"`
+}
+
+func (o CopyConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request_body.go
new file mode 100644
index 00000000..f37e2c4e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CopyConfigurationRequestBody struct {
+
+ // 复制后的参数模板模板名称
+ Name string `json:"name"`
+
+ // 参数模板模板描述。
+ Description *string `json:"description,omitempty"`
+}
+
+func (o CopyConfigurationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_response.go
new file mode 100644
index 00000000..71c13455
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_copy_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CopyConfigurationResponse struct {
+
+ // 复制后的参数模板ID。
+ ConfigurationId *string `json:"configuration_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CopyConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_instance_flavor_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_instance_flavor_option.go
index 92c1a97c..4099dd77 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_instance_flavor_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_instance_flavor_option.go
@@ -15,7 +15,7 @@ type CreateInstanceFlavorOption struct {
// 节点类型。 取值: - 集群实例包含mongos、shard和config节点,各节点下该参数取值分别为“mongos”、“shard”和“config”。 - 副本集实例下该参数取值为“replica”。 - 单节点实例下该参数取值为“single”。
Type CreateInstanceFlavorOptionType `json:"type"`
- // 节点数量。 取值: - 集群实例下“mongos”类型的节点数量可取2~16。 - 集群实例下“shard”类型的组数量可取2~16。 - “shard”类型的组数量可取2~16。 - “config”类型的组数量只能取1。 - “replica”类型的组数量只能取1。 - “single”类型的节点数量只能取1。
+ // 节点数量。 取值: - 集群实例下“mongos”类型的节点数量可取2~16。 - 集群实例下“shard”类型的组数量可取2~16。 - “shard”类型的组数量可取2~16。 - “config”类型的组数量只能取1。 - “replica”类型的组数量可取3,5,7。 - “single”类型的节点数量只能取1。
Num string `json:"num"`
// 磁盘类型。 取值:ULTRAHIGH,表示SSD。 - 对于集群实例的shard和config节点、副本集、以及单节点实例,该参数有效。mongos节点不涉及选择磁盘,该参数无意义。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_ip_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_ip_request_body.go
index 6578a746..959adfae 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_ip_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_create_ip_request_body.go
@@ -11,10 +11,10 @@ type CreateIpRequestBody struct {
// 待打开IP开关的对象类型。 - 扩容shard组时,取值为“shard”。 - 扩容config组时,取值为“config”。
Type string `json:"type"`
- // 待打开IP开关的组ID。 - 对于shard组,取值为shard组ID。 - 对于config组,取值为config组ID。 - 如果为空,则打开该实例下同group类型的所有开关。 注意: 1. 第一次打开实例开关, 该参数需要传空。 2. 针对已开启开关的组, 开关不允许重复下发。
+ // Shard组ID 注意: 1. 第一次添加Shard/Config IP时,该参数不传。 2. 对于已经添加过Shard IP的实例,需要传入该参数为新扩容的Shard组添加IP。
TargetId *string `json:"target_id,omitempty"`
- // 打开集群开关设置的密码。 注意:该密码暂不支持修改,请谨慎操作。
+ // 打开集群开关设置的密码。 注意:该密码暂不支持修改,请谨慎操作。
Password string `json:"password"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_datastore_item.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_datastore_item.go
index e4f0c6a0..8d91a136 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_datastore_item.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_datastore_item.go
@@ -14,6 +14,9 @@ type DatastoreItem struct {
// 数据库版本号。
Version string `json:"version"`
+
+ // 是否有补丁版本的数据库支持升级,返回true时可以通过升级补丁接口进行数据库升级,否则不允许升级补丁。
+ PatchAvailable bool `json:"patch_available"`
}
func (o DatastoreItem) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request.go
new file mode 100644
index 00000000..c5630935
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteAuditLogRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建
+ InstanceId string `json:"instance_id"`
+
+ Body *DeleteAuditLogRequestBody `json:"body,omitempty"`
+}
+
+func (o DeleteAuditLogRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAuditLogRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAuditLogRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request_body.go
new file mode 100644
index 00000000..37363e97
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DeleteAuditLogRequestBody struct {
+
+ // 文件名列表
+ FileNames []string `json:"file_names"`
+}
+
+func (o DeleteAuditLogRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAuditLogRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAuditLogRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_response.go
new file mode 100644
index 00000000..550ed4fc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_delete_audit_log_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteAuditLogResponse struct {
+
+ // 任务ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteAuditLogResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAuditLogResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAuditLogResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_configuration_request.go
new file mode 100644
index 00000000..23e40c0e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_configuration_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DiffConfigurationRequest struct {
+
+ // 需要进行比较的参数模板ID。
+ SourceConfigurationId string `json:"source_configuration_id"`
+
+ // 需要进行比较的参数模板ID。
+ TargetConfigurationId string `json:"target_configuration_id"`
+}
+
+func (o DiffConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DiffConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"DiffConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_details.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_details.go
new file mode 100644
index 00000000..8c38608d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_diff_details.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DiffDetails struct {
+
+ // 参数名称
+ ParameterName string `json:"parameter_name"`
+
+ // 比较参数模板的参数值。
+ SourceValue string `json:"source_value"`
+
+ // 目标参数模板的参数值。
+ TargetValue string `json:"target_value"`
+}
+
+func (o DiffDetails) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DiffDetails struct{}"
+ }
+
+ return strings.Join([]string{"DiffDetails", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_disk_volumes.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_disk_volumes.go
new file mode 100644
index 00000000..a7b0b4f1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_disk_volumes.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DiskVolumes struct {
+
+ // 实例ID或组ID或节点ID。可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。 - 当变更的实例类型是集群,如果变更的是shard组或者config组的参数模板,传值为组ID。如果变更的是mongos节点的参数模板,传值为节点ID。 - 当变更的实例类型是副本集或单节点,传值为实例ID。
+ EntityId string `json:"entity_id"`
+
+ // 实例名称或组名称或节点名称
+ EntityName string `json:"entity_name"`
+
+ // group_type。取值范围: - mongos,表示集群mongos节点类型。 - shard,表示集群shard节点类型。 - config,表示集群config节点类型。 - replica,表示副本集类型。 - single,表示单节点类型。 - readonly,表示只读节点类型。
+ GroupType string `json:"group_type"`
+
+ // 使用量,保留两位小数,单位(GB)
+ Used string `json:"used"`
+
+ // 总大小,单位(GB)
+ Size string `json:"size"`
+}
+
+func (o DiskVolumes) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DiskVolumes struct{}"
+ }
+
+ return strings.Join([]string{"DiskVolumes", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_duration_strategies.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_duration_strategies.go
new file mode 100644
index 00000000..2274c98f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_duration_strategies.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DurationStrategies struct {
+
+ // 升级策略 - minimized_interrupt_time,表示最短中断时间 - minimized_upgrade_time,最短升级时长
+ Strategy string `json:"strategy"`
+
+ // 升级时长,单位为分钟
+ EstimatedUpgradeDuration int32 `json:"estimated_upgrade_duration"`
+}
+
+func (o DurationStrategies) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DurationStrategies struct{}"
+ }
+
+ return strings.Join([]string{"DurationStrategies", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_enlarge_replicaset_node_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_enlarge_replicaset_node_request_body.go
new file mode 100644
index 00000000..7481bc2e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_enlarge_replicaset_node_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type EnlargeReplicasetNodeRequestBody struct {
+
+ // 副本集节点扩容个数,副本集有3个节点时,可以扩容2/4个节点,副本集有5个节点时,只能扩容2个
+ Num int32 `json:"num"`
+
+ // 变更包年包月实例规格时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - 对于降低规格场景,该字段无效。 - 对于扩大规格场景: - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
+}
+
+func (o EnlargeReplicasetNodeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EnlargeReplicasetNodeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"EnlargeReplicasetNodeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_entity_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_entity_info.go
new file mode 100644
index 00000000..9f3a102c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_entity_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type EntityInfo struct {
+
+ // 组ID或节点ID。
+ EntityId string `json:"entity_id"`
+
+ // 组名称或节点名称。
+ EntityName string `json:"entity_name"`
+}
+
+func (o EntityInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EntityInfo struct{}"
+ }
+
+ return strings.Join([]string{"EntityInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_request.go
new file mode 100644
index 00000000..2655245e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ExpandReplicasetNodeRequest struct {
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *EnlargeReplicasetNodeRequestBody `json:"body,omitempty"`
+}
+
+func (o ExpandReplicasetNodeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExpandReplicasetNodeRequest struct{}"
+ }
+
+ return strings.Join([]string{"ExpandReplicasetNodeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_response.go
new file mode 100644
index 00000000..69eaaf53
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_expand_replicaset_node_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ExpandReplicasetNodeResponse struct {
+
+ // 任务ID,仅按需实例返回该参数。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅包周期实例返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ExpandReplicasetNodeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExpandReplicasetNodeResponse struct{}"
+ }
+
+ return strings.Join([]string{"ExpandReplicasetNodeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_flavor_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_flavor_info.go
index 8f6a2bf1..4af9060c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_flavor_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_flavor_info.go
@@ -12,7 +12,7 @@ type FlavorInfo struct {
// 引擎名称。
EngineName string `json:"engine_name"`
- // 节点类型。文档数据库包含以下几种节点类型: - mongos - shard - config - replica - single
+ // 节点类型。文档数据库包含以下几种节点类型: - mongos - shard - config - replica - single - readonly
Type string `json:"type"`
// CPU核数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_history_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_history_info.go
new file mode 100644
index 00000000..062568ad
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_history_info.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type HistoryInfo struct {
+
+ // 参数名称
+ ParameterName string `json:"parameter_name"`
+
+ // 修改前的值。
+ OldValue string `json:"old_value"`
+
+ // 修改后的值。
+ NewValue string `json:"new_value"`
+
+ // 修改时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ UpdatedAt string `json:"updated_at"`
+}
+
+func (o HistoryInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "HistoryInfo struct{}"
+ }
+
+ return strings.Join([]string{"HistoryInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_job_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_job_info.go
new file mode 100644
index 00000000..a6906750
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_job_info.go
@@ -0,0 +1,46 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type JobInfo struct {
+
+ // 任务ID。
+ Id string `json:"id"`
+
+ // 任务名称。
+ Name string `json:"name"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称。
+ InstanceName string `json:"instance_name"`
+
+ // 任务状态。取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。
+ Status string `json:"status"`
+
+ // 任务执行进度。 说明 执行中状态才返回执行进度,例如“60%”,表示任务执行进度为60%,否则返回“”。 任务执行进度。
+ Progress string `json:"progress"`
+
+ // 任务执行失败时的错误信息。
+ FailReason string `json:"fail_reason"`
+
+ // 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ CreatedAt string `json:"created_at"`
+
+ // 结束时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ EndedAt string `json:"ended_at"`
+}
+
+func (o JobInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "JobInfo struct{}"
+ }
+
+ return strings.Join([]string{"JobInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_request.go
new file mode 100644
index 00000000..1e74be4d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAppliedInstancesRequest struct {
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAppliedInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAppliedInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAppliedInstancesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_response.go
new file mode 100644
index 00000000..de28f727
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_applied_instances_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAppliedInstancesResponse struct {
+
+ // 可以应用的实例列表。
+ Instances *[]ApplicableInstancesInfo `json:"instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAppliedInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAppliedInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAppliedInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_configurations_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_configurations_result.go
index e2c724d7..643863c8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_configurations_result.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_configurations_result.go
@@ -23,6 +23,9 @@ type ListConfigurationsResult struct {
// 数据库类型。
DatastoreName string `json:"datastore_name"`
+ // 参数模板节点类型。 - mongos,表示集群mongos节点类型。 - shard,表示集群shard节点类型。 - config,表示集群config节点类型。 - replica,表示副本集类型。 - single,表示单节点类型。
+ NodeType string `json:"node_type"`
+
// 创建时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
Created string `json:"created"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request.go
new file mode 100644
index 00000000..54fccddb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListLtsSlowLogsRequest struct {
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *ListLtsSlowLogsRequestBody `json:"body,omitempty"`
+}
+
+func (o ListLtsSlowLogsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListLtsSlowLogsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListLtsSlowLogsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request_body.go
new file mode 100644
index 00000000..45e98f16
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_request_body.go
@@ -0,0 +1,117 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type ListLtsSlowLogsRequestBody struct {
+
+ // 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。注:开始时间不得早于当前时间30天。
+ StartTime string `json:"start_time"`
+
+ // 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。注:结束时间不能晚于当前时间。
+ EndTime string `json:"end_time"`
+
+ // 表示每次查询的日志条数,最大限制100条。
+ Limit int32 `json:"limit"`
+
+ // 日志单行序列号,第一次查询时不需要此参数,下一次查询时需要使用,可从上一次查询的返回信息中获取。 说明:当次查询从line_num的下一条日志开始查询,不包含当前line_num日志。
+ LineNum *string `json:"line_num,omitempty"`
+
+ // 语句类型,取空值,表示查询所有语句类型。
+ OperateType *ListLtsSlowLogsRequestBodyOperateType `json:"operate_type,omitempty"`
+
+ // 节点ID,取空值,表示查询实例下所有允许查询的节点。 使用请参考《DDS API参考》的“查询实例列表和详情”响应消息表“nodes 数据结构说明”的“id”。允许查询的节点如下: - 集群实例下面的 shard节点 - 副本集、单节点实例下面的所有节点
+ NodeId *string `json:"node_id,omitempty"`
+
+ // 根据多个关键字搜索日志全文,表示同时匹配所有关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过512个字符。
+ Keywords *[]string `json:"keywords,omitempty"`
+
+ // 根据多个数据库表名关键字模糊搜索日志,表示匹配至少一个关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过64个字符。
+ DatabaseKeywords *[]string `json:"database_keywords,omitempty"`
+
+ // 根据多个数据库表名关键字模糊搜索日志,表示匹配至少一个关键字。 - 最多支持10个关键字。 - 每个关键字最大长度不超过128个字符。
+ CollectionKeywords *[]string `json:"collection_keywords,omitempty"`
+
+ // 支持根据最大执行时间范围查找日志。单位:ms
+ MaxCostTime *int32 `json:"max_cost_time,omitempty"`
+
+ // 支持根据最小执行时间范围查找日志。单位:ms
+ MinCostTime *int32 `json:"min_cost_time,omitempty"`
+}
+
+func (o ListLtsSlowLogsRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListLtsSlowLogsRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ListLtsSlowLogsRequestBody", string(data)}, " ")
+}
+
+type ListLtsSlowLogsRequestBodyOperateType struct {
+ value string
+}
+
+type ListLtsSlowLogsRequestBodyOperateTypeEnum struct {
+ INSERT ListLtsSlowLogsRequestBodyOperateType
+ QUERY ListLtsSlowLogsRequestBodyOperateType
+ UPDATE ListLtsSlowLogsRequestBodyOperateType
+ REMOVE ListLtsSlowLogsRequestBodyOperateType
+ GETMORE ListLtsSlowLogsRequestBodyOperateType
+ COMMAND ListLtsSlowLogsRequestBodyOperateType
+ KILLCURSORS ListLtsSlowLogsRequestBodyOperateType
+}
+
+func GetListLtsSlowLogsRequestBodyOperateTypeEnum() ListLtsSlowLogsRequestBodyOperateTypeEnum {
+ return ListLtsSlowLogsRequestBodyOperateTypeEnum{
+ INSERT: ListLtsSlowLogsRequestBodyOperateType{
+ value: "insert",
+ },
+ QUERY: ListLtsSlowLogsRequestBodyOperateType{
+ value: "query",
+ },
+ UPDATE: ListLtsSlowLogsRequestBodyOperateType{
+ value: "update",
+ },
+ REMOVE: ListLtsSlowLogsRequestBodyOperateType{
+ value: "remove",
+ },
+ GETMORE: ListLtsSlowLogsRequestBodyOperateType{
+ value: "getmore",
+ },
+ COMMAND: ListLtsSlowLogsRequestBodyOperateType{
+ value: "command",
+ },
+ KILLCURSORS: ListLtsSlowLogsRequestBodyOperateType{
+ value: "killcursors",
+ },
+ }
+}
+
+func (c ListLtsSlowLogsRequestBodyOperateType) Value() string {
+ return c.value
+}
+
+func (c ListLtsSlowLogsRequestBodyOperateType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListLtsSlowLogsRequestBodyOperateType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_response.go
new file mode 100644
index 00000000..cb9545b8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_lts_slow_logs_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListLtsSlowLogsResponse struct {
+
+ // 慢日志具体信息。
+ SlowLogs *[]SlowLogDetail `json:"slow_logs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListLtsSlowLogsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListLtsSlowLogsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListLtsSlowLogsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_request.go
new file mode 100644
index 00000000..dff38808
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListRecycleInstancesRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 每页显示的数量,默认是100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListRecycleInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_response.go
new file mode 100644
index 00000000..7721f74f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_recycle_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRecycleInstancesResponse struct {
+
+ // 总记录数
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 实例信息
+ Instances *[]RecycleInstance `json:"instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRecycleInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_request.go
new file mode 100644
index 00000000..dfd92974
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListSslCertDownloadAddressRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ListSslCertDownloadAddressRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSslCertDownloadAddressRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListSslCertDownloadAddressRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_response.go
new file mode 100644
index 00000000..2d42e859
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_ssl_cert_download_address_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListSslCertDownloadAddressResponse struct {
+
+ // 证书列表
+ Certs *[]CertInfo `json:"certs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListSslCertDownloadAddressResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSslCertDownloadAddressResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListSslCertDownloadAddressResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_request.go
new file mode 100644
index 00000000..fc21c2fb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_request.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListTasksRequest struct {
+
+ // 查询开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始,Z指时区偏移量
+ StartTime string `json:"start_time"`
+
+ // 查询结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”,且大于查询开始时间,时间跨度不超过30天。 其中,T指某个时间的开始,Z指时区偏移量。
+ EndTime string `json:"end_time"`
+
+ // 任务状态: 取值为“Running”为执行中; 取值为“Completed”为完成; 取值为“Failed” 为失败。
+ Status *string `json:"status,omitempty"`
+
+ // 任务名称。对应取值如下: - \"CreateMongoDB\":创建集群实例 - \"CreateMongoDBReplica\":创建副本集实例 - \"CreateMongoDBReplicaSingle\":创建单节点实例 - \"EnlargeMongoDBVolume\":磁盘扩容 - \"ResizeMongoDBInstance\":社区版实例规格变更 - \"ResizeDfvMongoDBInstance\":社区增强版实例规格变更 - \"EnlargeMongoDBGroup\":添加节点 - \"ReplicaSetEnlargeNode\":副本集添加备节点 - \"AddReadonlyNode\":添加只读节点 - \"RestartInstance\":重启集群实例 - \"RestartGroup\":重启集群节点组 - \"RestartNode\":重启集群节点 - \"RestartReplicaSetInstance\":重启副本集实例 - \"RestartReplicaSingleInstance\":重启单节点实例 - \"SwitchPrimary\":主备切换 - \"ModifyIp\":修改内网地址 - \"ModifySecurityGroup\":修改安全组 - \"ModifyPort\":修改数据库端口 - \"BindPublicIP\":绑定弹性IP - \"UnbindPublicIP\":解绑弹性IP - \"SwitchInstanceSSL\":切换SSL - \"AzMigrate\":迁移可用区 - \"CreateIp\":显示shard/config IP - \"ModifyOpLogSize\":修改oplog大小 - \"RestoreMongoDB\":集群恢复到新实例 - \"RestoreMongoDB_Replica\":副本集恢复到新实例 - \"RestoreMongoDB_Replica_Single\":单节点恢复到新实例 - \"RestoreMongoDB_Replica_PITR\":副本集恢复到指定时间点 - \"MongodbSnapshotBackup\":创建物理备份 - \"MongodbSnapshotEBackup\":创建快照备份 - \"MongodbRestoreData2CurrentInstance\":备份恢复到当前实例 - \"MongodbRestoreData2NewInstance\":备份恢复到新实例 - \"MongodbPitr2CurrentInstance\":备份恢复到当前实例指定时间点 - \"MongodbPitr2NewInstance\":备份恢复到新实例指定时间点 - \"MongodbRecycleBackup\":备份回收 - \"MongodbRestoreTable\":库表级时间点恢复 - \"UpgradeDatabaseVersion\":升级数据库补丁
+ Name *string `json:"name,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListTasksRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTasksRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListTasksRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_response.go
new file mode 100644
index 00000000..e286f6fa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_list_tasks_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListTasksResponse struct {
+
+ // 任务列表。
+ Jobs *[]JobInfo `json:"jobs,omitempty"`
+
+ // 任务列表总数
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListTasksResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTasksResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListTasksResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_mongo_update_repl_set_v3_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_mongo_update_repl_set_v3_request_body.go
new file mode 100644
index 00000000..fa839306
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_mongo_update_repl_set_v3_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type MongoUpdateReplSetV3RequestBody struct {
+
+ // 连接地址复制集名称:实例高可用连接地址的唯一标识。该参数可以将读请求发送到副本集实例的所有节点。副本集中的所有主机必须具有相同的集名称。字符限制:大小写字母,数字,下划线组合,字母为首,长度限制在3-128
+ Name string `json:"name"`
+}
+
+func (o MongoUpdateReplSetV3RequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MongoUpdateReplSetV3RequestBody struct{}"
+ }
+
+ return strings.Join([]string{"MongoUpdateReplSetV3RequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_ops_window_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_ops_window_request_body.go
new file mode 100644
index 00000000..6fc2887c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_ops_window_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type OpsWindowRequestBody struct {
+
+ // 开始时间,格式必须为HH:MM且有效,当前时间指UTC时间。不能与结束时间相同,只能为整点。
+ StartTime string `json:"start_time"`
+
+ // 结束时间,格式必须为HH:MM且有效,当前时间指UTC时间。不能与开始时间相同,只能为整点。
+ EndTime string `json:"end_time"`
+}
+
+func (o OpsWindowRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OpsWindowRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"OpsWindowRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_datastore.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_datastore.go
new file mode 100644
index 00000000..291c52e9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_datastore.go
@@ -0,0 +1,67 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 数据库信息。
+type RecycleDatastore struct {
+
+ // 数据库版本类型。取值“DDS-Community”。
+ Type RecycleDatastoreType `json:"type"`
+
+ // 数据库版本。支持3.4、3.2和4.0版本。取值为“3.4”、“3.2”或“4.0”。
+ Version string `json:"version"`
+}
+
+func (o RecycleDatastore) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecycleDatastore struct{}"
+ }
+
+ return strings.Join([]string{"RecycleDatastore", string(data)}, " ")
+}
+
+type RecycleDatastoreType struct {
+ value string
+}
+
+type RecycleDatastoreTypeEnum struct {
+ DDS_COMMUNITY RecycleDatastoreType
+}
+
+func GetRecycleDatastoreTypeEnum() RecycleDatastoreTypeEnum {
+ return RecycleDatastoreTypeEnum{
+ DDS_COMMUNITY: RecycleDatastoreType{
+ value: "DDS-Community",
+ },
+ }
+}
+
+func (c RecycleDatastoreType) Value() string {
+ return c.value
+}
+
+func (c RecycleDatastoreType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleDatastoreType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_instance.go
new file mode 100644
index 00000000..7eeb75b0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_instance.go
@@ -0,0 +1,48 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecycleInstance struct {
+
+ // 实例ID
+ Id *string `json:"id,omitempty"`
+
+ // 实例名称
+ Name *string `json:"name,omitempty"`
+
+ // 实例类型。支持集群、副本集、以及单节点。 取值 - Sharding - ReplicaSet - Single
+ Mode *string `json:"mode,omitempty"`
+
+ Datastore *RecycleDatastore `json:"datastore,omitempty"`
+
+ // 计费方式。 - 取值为“0”,表示按需计费。 - 取值为“1”,表示包年/包月计费。
+ PayMode *string `json:"pay_mode,omitempty"`
+
+ // 企业项目ID,取值为“0”,表示为default企业项目
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 备份ID
+ BackupId *string `json:"backup_id,omitempty"`
+
+ // 创建时间
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 删除时间
+ DeletedAt *string `json:"deleted_at,omitempty"`
+
+ // 保留截止时间
+ RetainedUntil *string `json:"retained_until,omitempty"`
+}
+
+func (o RecycleInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecycleInstance struct{}"
+ }
+
+ return strings.Join([]string{"RecycleInstance", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy.go
new file mode 100644
index 00000000..c985c36f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecyclePolicy struct {
+
+ // 打开回收策略,不可关闭 - true 打开回收策略
+ Enabled bool `json:"enabled"`
+
+ // 策略保持时长(1-7天),天数为正整数,不填默认保留7天
+ RetentionPeriodInDays *int32 `json:"retention_period_in_days,omitempty"`
+}
+
+func (o RecyclePolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicy struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy_request_body.go
new file mode 100644
index 00000000..050b05a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_recycle_policy_request_body.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecyclePolicyRequestBody struct {
+ RecyclePolicy *RecyclePolicy `json:"recycle_policy"`
+}
+
+func (o RecyclePolicyRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicyRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicyRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reduce_instance_node_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reduce_instance_node_request_body.go
new file mode 100644
index 00000000..70a12a3a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reduce_instance_node_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ReduceInstanceNodeRequestBody struct {
+
+ // 删除的节点数量。
+ Num *int32 `json:"num,omitempty"`
+
+ // 指定删除节点的ID列表。 - num与node_list必须有一个字段传值 - 如果num与node_list同时传值时,则以node_list的值为主 - 删除的节点角色不能是Primary - 如果是多AZ实例,请确保删除节点后,每个AZ至少保留一个节点
+ NodeList *[]string `json:"node_list,omitempty"`
+}
+
+func (o ReduceInstanceNodeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ReduceInstanceNodeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ReduceInstanceNodeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_request.go
new file mode 100644
index 00000000..91590f98
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ResetConfigurationRequest struct {
+
+ // 需重置的参数模板ID。
+ ConfigId string `json:"config_id"`
+}
+
+func (o ResetConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResetConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_response.go
new file mode 100644
index 00000000..93c94a0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_reset_configuration_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResetConfigurationResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResetConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResetConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_resize_instance_volume_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_resize_instance_volume_option.go
index 0c84225f..d2b461a7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_resize_instance_volume_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_resize_instance_volume_option.go
@@ -8,11 +8,14 @@ import (
type ResizeInstanceVolumeOption struct {
+ // 待扩容到的磁盘容量。取值为10的整数倍,并且大于当前磁盘容量。 - 对于集群实例,表示扩容到的单个shard组的磁盘容量。取值范围:10GB~2000GB。 - 对于副本集实例,表示扩容到的实例的磁盘容量,取值范围:10GB~2000GB。 - 对于单节点实例,表示扩容到的实例的磁盘容量,取值范围:10GB~1000GB。
+ Size string `json:"size"`
+
// 角色组ID。 - 对于集群实例,该参数为shard组ID。 - 对于副本集和单节点实例,不传该参数。
GroupId *string `json:"group_id,omitempty"`
- // 待扩容到的磁盘容量。取值为10的整数倍,并且大于当前磁盘容量。 - 对于集群实例,表示扩容到的单个shard组的磁盘容量。取值范围:10GB~2000GB。 - 对于副本集实例,表示扩容到的实例的磁盘容量,取值范围:10GB~2000GB。 - 对于单节点实例,表示扩容到的实例的磁盘容量,取值范围:10GB~1000GB。
- Size string `json:"size"`
+ // 副本集只读节点磁盘扩容时,需要传入该参数,当前list只支持传入一个元素。
+ NodeIds *[]string `json:"node_ids,omitempty"`
}
func (o ResizeInstanceVolumeOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_request.go
new file mode 100644
index 00000000..e1bfb89d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SetRecyclePolicyRequest struct {
+ Body *RecyclePolicyRequestBody `json:"body,omitempty"`
+}
+
+func (o SetRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_response.go
new file mode 100644
index 00000000..5d588de8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_set_recycle_policy_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SetRecyclePolicyResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SetRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_request.go
new file mode 100644
index 00000000..f526450d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowConfigurationAppliedHistoryRequest struct {
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowConfigurationAppliedHistoryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAppliedHistoryRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAppliedHistoryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_response.go
new file mode 100644
index 00000000..d2e2e9fc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_applied_history_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowConfigurationAppliedHistoryResponse struct {
+
+ // 参数模板应用历史列表
+ Histories *[]ApplyHistoryInfo `json:"histories,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowConfigurationAppliedHistoryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAppliedHistoryResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAppliedHistoryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_request.go
new file mode 100644
index 00000000..e086bdea
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowConfigurationModifyHistoryRequest struct {
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowConfigurationModifyHistoryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationModifyHistoryRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationModifyHistoryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_response.go
new file mode 100644
index 00000000..e0d4e9ef
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_configuration_modify_history_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowConfigurationModifyHistoryResponse struct {
+
+ // 参数模板的修改历史列表。
+ Histories *[]HistoryInfo `json:"histories,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowConfigurationModifyHistoryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationModifyHistoryResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationModifyHistoryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_request.go
new file mode 100644
index 00000000..464f5d84
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowDiskUsageRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowDiskUsageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDiskUsageRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowDiskUsageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_response.go
new file mode 100644
index 00000000..f78cb21f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_disk_usage_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowDiskUsageResponse struct {
+
+ // 磁盘信息列表
+ Volumes *[]DiskVolumes `json:"volumes,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowDiskUsageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDiskUsageResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowDiskUsageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_request.go
new file mode 100644
index 00000000..8f033236
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowRecyclePolicyRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+}
+
+func (o ShowRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_response.go
new file mode 100644
index 00000000..1f17b5e4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_recycle_policy_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRecyclePolicyResponse struct {
+ RecyclePolicy *RecyclePolicy `json:"recycle_policy,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_request.go
new file mode 100644
index 00000000..ef04f21a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowReplSetNameRequest struct {
+
+ // 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowReplSetNameRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowReplSetNameRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowReplSetNameRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_response.go
new file mode 100644
index 00000000..b552581f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_repl_set_name_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowReplSetNameResponse struct {
+
+ // 连接地址复制集名称:实例高可用连接地址的唯一标识。该参数可以将读请求发送到副本集实例的所有节点。副本集中的所有主机必须具有相同的集名称。字符限制:大小写字母,数字,下划线组合,字母为首,长度限制在3-128
+ Name *string `json:"name,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowReplSetNameResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowReplSetNameResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowReplSetNameResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_request.go
new file mode 100644
index 00000000..75b06f6d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowSecondLevelMonitoringStatusRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowSecondLevelMonitoringStatusRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSecondLevelMonitoringStatusRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowSecondLevelMonitoringStatusRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_response.go
new file mode 100644
index 00000000..985a5dfa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_second_level_monitoring_status_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowSecondLevelMonitoringStatusResponse struct {
+
+ // 秒级监控开启状态。 取值为true,开启,取值为false,关闭。
+ Enabled *bool `json:"enabled,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowSecondLevelMonitoringStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSecondLevelMonitoringStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowSecondLevelMonitoringStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_request.go
new file mode 100644
index 00000000..c103abab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowSlowlogDesensitizationSwitchRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowSlowlogDesensitizationSwitchRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSlowlogDesensitizationSwitchRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowSlowlogDesensitizationSwitchRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_response.go
new file mode 100644
index 00000000..d146755d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_slowlog_desensitization_switch_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowSlowlogDesensitizationSwitchResponse struct {
+
+ // 开启或关闭慢日志脱敏,取值为on或off。
+ Status *string `json:"status,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowSlowlogDesensitizationSwitchResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSlowlogDesensitizationSwitchResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowSlowlogDesensitizationSwitchResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_request.go
new file mode 100644
index 00000000..ae5cab16
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowUpgradeDurationRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowUpgradeDurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowUpgradeDurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowUpgradeDurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_response.go
new file mode 100644
index 00000000..dd68dd4d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_show_upgrade_duration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowUpgradeDurationResponse struct {
+
+ // 升级策略列表
+ Strategies *[]DurationStrategies `json:"strategies,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowUpgradeDurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowUpgradeDurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowUpgradeDurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_request.go
new file mode 100644
index 00000000..8e3ba109
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShrinkInstanceNodesRequest struct {
+
+ // 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *ReduceInstanceNodeRequestBody `json:"body,omitempty"`
+}
+
+func (o ShrinkInstanceNodesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShrinkInstanceNodesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShrinkInstanceNodesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_response.go
new file mode 100644
index 00000000..8129a6d3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_shrink_instance_nodes_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShrinkInstanceNodesResponse struct {
+
+ // 任务ID,仅按需实例返回该参数。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅包周期实例返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShrinkInstanceNodesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShrinkInstanceNodesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShrinkInstanceNodesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_slow_log_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_slow_log_detail.go
new file mode 100644
index 00000000..0bfe2ab9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_slow_log_detail.go
@@ -0,0 +1,55 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SlowLogDetail struct {
+
+ // 节点名称。
+ NodeName string `json:"node_name"`
+
+ // 节点ID。
+ NodeId string `json:"node_id"`
+
+ // 执行语句。
+ WholeMessage string `json:"whole_message"`
+
+ // 语句类型。
+ OperateType string `json:"operate_type"`
+
+ // 执行时间。单位:ms
+ CostTime int32 `json:"cost_time"`
+
+ // 等待锁时间。单位:us
+ LockTime int32 `json:"lock_time"`
+
+ // 返回的文档数。
+ DocsReturned int32 `json:"docs_returned"`
+
+ // 扫描的文档数。
+ DocsScanned int32 `json:"docs_scanned"`
+
+ // 日志所属的数据库库名。
+ Database string `json:"database"`
+
+ // 日志所属的数据库表名。
+ Collection string `json:"collection"`
+
+ // 日志产生时间,UTC时间。 格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ LogTime string `json:"log_time"`
+
+ // 日志单行序列号
+ LineNum string `json:"line_num"`
+}
+
+func (o SlowLogDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SlowLogDetail struct{}"
+ }
+
+ return strings.Join([]string{"SlowLogDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request.go
new file mode 100644
index 00000000..fd82967d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchSecondLevelMonitoringRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *SwitchSecondLevelMonitoringRequestBody `json:"body,omitempty"`
+}
+
+func (o SwitchSecondLevelMonitoringRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSecondLevelMonitoringRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSecondLevelMonitoringRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request_body.go
new file mode 100644
index 00000000..36af41a5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SwitchSecondLevelMonitoringRequestBody struct {
+
+ // 是否开启秒级监控。 取值为true为开启,取值为false为关闭。
+ Enabled bool `json:"enabled"`
+}
+
+func (o SwitchSecondLevelMonitoringRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSecondLevelMonitoringRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSecondLevelMonitoringRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_response.go
new file mode 100644
index 00000000..d9a0b8b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_second_level_monitoring_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchSecondLevelMonitoringResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchSecondLevelMonitoringResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSecondLevelMonitoringResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSecondLevelMonitoringResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_slowlog_desensitization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_slowlog_desensitization_request.go
index a512a943..56ee9630 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_slowlog_desensitization_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_switch_slowlog_desensitization_request.go
@@ -9,6 +9,9 @@ import (
// Request Object
type SwitchSlowlogDesensitizationRequest struct {
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
// 实例ID,可以调用“查询实例列表和详情”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
InstanceId string `json:"instance_id"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_request.go
new file mode 100644
index 00000000..128f1f60
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateReplSetNameRequest struct {
+
+ // 实例ID,可以调用“[查询实例列表和详情](x-wc://file=zh-cn_topic_0000001369935045.xml)”接口获取。如果未申请实例,可以调用“[创建实例](x-wc://file=zh-cn_topic_0000001369734929.xml)”接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *MongoUpdateReplSetV3RequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateReplSetNameRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateReplSetNameRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateReplSetNameRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_response.go
new file mode 100644
index 00000000..9afb2c70
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_update_repl_set_name_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateReplSetNameResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateReplSetNameResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateReplSetNameResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateReplSetNameResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request.go
new file mode 100644
index 00000000..25bcf482
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpgradeDatabaseVersionRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *UpgradeDatabaseVersionRequestBody `json:"body,omitempty"`
+}
+
+func (o UpgradeDatabaseVersionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpgradeDatabaseVersionRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpgradeDatabaseVersionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request_body.go
new file mode 100644
index 00000000..0208e139
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type UpgradeDatabaseVersionRequestBody struct {
+
+ // 升级模式。 取值为“minimized_interrupt_time”为中断时间最短优先模式:升级过程对业务影响相对较小的升级方式 取值为“minimized_upgrade_time”为升级时长最短优先模式:升级过程时长相对较快的升级方式。 默认取值为“minimized_interrupt_time”。
+ UpgradeMode *string `json:"upgrade_mode,omitempty"`
+}
+
+func (o UpgradeDatabaseVersionRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpgradeDatabaseVersionRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpgradeDatabaseVersionRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_response.go
new file mode 100644
index 00000000..ac5dd5b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_upgrade_database_version_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpgradeDatabaseVersionResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpgradeDatabaseVersionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpgradeDatabaseVersionResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpgradeDatabaseVersionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_weak_password_check_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_weak_password_check_request_body.go
new file mode 100644
index 00000000..677d2479
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dds/v3/model/model_weak_password_check_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type WeakPasswordCheckRequestBody struct {
+
+ // 密码
+ Password string `json:"password"`
+}
+
+func (o WeakPasswordCheckRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WeakPasswordCheckRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"WeakPasswordCheckRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_client.go
index 998f01b8..12dac6c9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_client.go
@@ -19,14 +19,251 @@ func DwsClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
+// AddWorkloadQueue 添加工作负载队列
+//
+// 添加工作负载队列
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) AddWorkloadQueue(request *model.AddWorkloadQueueRequest) (*model.AddWorkloadQueueResponse, error) {
+ requestDef := GenReqDefForAddWorkloadQueue()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AddWorkloadQueueResponse), nil
+ }
+}
+
+// AddWorkloadQueueInvoker 添加工作负载队列
+func (c *DwsClient) AddWorkloadQueueInvoker(request *model.AddWorkloadQueueRequest) *AddWorkloadQueueInvoker {
+ requestDef := GenReqDefForAddWorkloadQueue()
+ return &AddWorkloadQueueInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// AssociateEip 集群绑定EIP
+//
+// 集群绑定Eip
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) AssociateEip(request *model.AssociateEipRequest) (*model.AssociateEipResponse, error) {
+ requestDef := GenReqDefForAssociateEip()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AssociateEipResponse), nil
+ }
+}
+
+// AssociateEipInvoker 集群绑定EIP
+func (c *DwsClient) AssociateEipInvoker(request *model.AssociateEipRequest) *AssociateEipInvoker {
+ requestDef := GenReqDefForAssociateEip()
+ return &AssociateEipInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// AssociateElb 集群绑定ELB
+//
+// 集群绑定Elb接口
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) AssociateElb(request *model.AssociateElbRequest) (*model.AssociateElbResponse, error) {
+ requestDef := GenReqDefForAssociateElb()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AssociateElbResponse), nil
+ }
+}
+
+// AssociateElbInvoker 集群绑定ELB
+func (c *DwsClient) AssociateElbInvoker(request *model.AssociateElbRequest) *AssociateElbInvoker {
+ requestDef := GenReqDefForAssociateElb()
+ return &AssociateElbInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchCreateClusterCn 批量增加CN节点
+//
+// 当用户集群创建后,实际需要的CN数量会随着业务需求而发生变化,因此管理CN节点功能的实现使用户可以根据实际需求动态调整集群CN数量。
+// - 增删CN节点过程中不允许执行其他运维操作。
+// - 增删CN节点过程中需要停止业务操作,建议在业务低峰期或业务中断情况下进行操作。
+// - 增删CN节点时发生故障且回滚失败,需要用户登录后台进行处理,处理方案请参见《故障排除》中的“集群使用>增删CN回滚失败”章节。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) BatchCreateClusterCn(request *model.BatchCreateClusterCnRequest) (*model.BatchCreateClusterCnResponse, error) {
+ requestDef := GenReqDefForBatchCreateClusterCn()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateClusterCnResponse), nil
+ }
+}
+
+// BatchCreateClusterCnInvoker 批量增加CN节点
+func (c *DwsClient) BatchCreateClusterCnInvoker(request *model.BatchCreateClusterCnRequest) *BatchCreateClusterCnInvoker {
+ requestDef := GenReqDefForBatchCreateClusterCn()
+ return &BatchCreateClusterCnInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchCreateResourceTag 批量添加标签
+//
+// 为指定集群批量添加标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) BatchCreateResourceTag(request *model.BatchCreateResourceTagRequest) (*model.BatchCreateResourceTagResponse, error) {
+ requestDef := GenReqDefForBatchCreateResourceTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateResourceTagResponse), nil
+ }
+}
+
+// BatchCreateResourceTagInvoker 批量添加标签
+func (c *DwsClient) BatchCreateResourceTagInvoker(request *model.BatchCreateResourceTagRequest) *BatchCreateResourceTagInvoker {
+ requestDef := GenReqDefForBatchCreateResourceTag()
+ return &BatchCreateResourceTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteClusterCn 批量删除CN节点
+//
+// 当用户集群创建后,实际需要的CN数量会随着业务需求而发生变化,因此管理CN节点功能的实现使用户可以根据实际需求动态调整集群CN数量。
+// - 增删CN节点过程中不允许执行其他运维操作。
+// - 增删CN节点过程中需要停止业务操作,建议在业务低峰期或业务中断情况下进行操作。
+// - 增删CN节点时发生故障且回滚失败,需要用户登录后台进行处理,处理方案请参见《故障排除》中的“集群使用>增删CN回滚失败”章节。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) BatchDeleteClusterCn(request *model.BatchDeleteClusterCnRequest) (*model.BatchDeleteClusterCnResponse, error) {
+ requestDef := GenReqDefForBatchDeleteClusterCn()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteClusterCnResponse), nil
+ }
+}
+
+// BatchDeleteClusterCnInvoker 批量删除CN节点
+func (c *DwsClient) BatchDeleteClusterCnInvoker(request *model.BatchDeleteClusterCnRequest) *BatchDeleteClusterCnInvoker {
+ requestDef := GenReqDefForBatchDeleteClusterCn()
+ return &BatchDeleteClusterCnInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// BatchDeleteResourceTag 批量删除标签
+//
+// 为指定集群批量删除标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) BatchDeleteResourceTag(request *model.BatchDeleteResourceTagRequest) (*model.BatchDeleteResourceTagResponse, error) {
+ requestDef := GenReqDefForBatchDeleteResourceTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchDeleteResourceTagResponse), nil
+ }
+}
+
+// BatchDeleteResourceTagInvoker 批量删除标签
+func (c *DwsClient) BatchDeleteResourceTagInvoker(request *model.BatchDeleteResourceTagRequest) *BatchDeleteResourceTagInvoker {
+ requestDef := GenReqDefForBatchDeleteResourceTag()
+ return &BatchDeleteResourceTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CancelReadonlyCluster 解除只读
+//
+// 当集群进入只读状态时,无法进行数据库相关操作,用户可以在管理控制台解除集群的只读状态。触发只读状态可能是由于磁盘使用率过高,因此需要对集群数据进行清理或扩容。
+// - 解除只读支持1.7.2及以上版本。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CancelReadonlyCluster(request *model.CancelReadonlyClusterRequest) (*model.CancelReadonlyClusterResponse, error) {
+ requestDef := GenReqDefForCancelReadonlyCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CancelReadonlyClusterResponse), nil
+ }
+}
+
+// CancelReadonlyClusterInvoker 解除只读
+func (c *DwsClient) CancelReadonlyClusterInvoker(request *model.CancelReadonlyClusterRequest) *CancelReadonlyClusterInvoker {
+ requestDef := GenReqDefForCancelReadonlyCluster()
+ return &CancelReadonlyClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CheckCluster 创建集群前检查
+//
+// 创建集群前预检查
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CheckCluster(request *model.CheckClusterRequest) (*model.CheckClusterResponse, error) {
+ requestDef := GenReqDefForCheckCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CheckClusterResponse), nil
+ }
+}
+
+// CheckClusterInvoker 创建集群前检查
+func (c *DwsClient) CheckClusterInvoker(request *model.CheckClusterRequest) *CheckClusterInvoker {
+ requestDef := GenReqDefForCheckCluster()
+ return &CheckClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CopySnapshot 复制快照
+//
+// 该接口用于复制一个自动快照。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CopySnapshot(request *model.CopySnapshotRequest) (*model.CopySnapshotResponse, error) {
+ requestDef := GenReqDefForCopySnapshot()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CopySnapshotResponse), nil
+ }
+}
+
+// CopySnapshotInvoker 复制快照
+func (c *DwsClient) CopySnapshotInvoker(request *model.CopySnapshotRequest) *CopySnapshotInvoker {
+ requestDef := GenReqDefForCopySnapshot()
+ return &CopySnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateAlarmSub 创建告警订阅
+//
+// 创建告警订阅
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateAlarmSub(request *model.CreateAlarmSubRequest) (*model.CreateAlarmSubResponse, error) {
+ requestDef := GenReqDefForCreateAlarmSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateAlarmSubResponse), nil
+ }
+}
+
+// CreateAlarmSubInvoker 创建告警订阅
+func (c *DwsClient) CreateAlarmSubInvoker(request *model.CreateAlarmSubRequest) *CreateAlarmSubInvoker {
+ requestDef := GenReqDefForCreateAlarmSub()
+ return &CreateAlarmSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateCluster 创建集群
//
// 该接口用于创建集群。
// 集群必须要运行在VPC之内,创建集群前,您需要先创建VPC,并获取VPC和子网的id。
// 该接口为异步接口,创建集群需要10~15分钟。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) CreateCluster(request *model.CreateClusterRequest) (*model.CreateClusterResponse, error) {
requestDef := GenReqDefForCreateCluster()
@@ -43,122 +280,1065 @@ func (c *DwsClient) CreateClusterInvoker(request *model.CreateClusterRequest) *C
return &CreateClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// CreateSnapshot 创建快照
+// CreateClusterDns 申请域名
+//
+// 为指定集群申请域名。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateClusterDns(request *model.CreateClusterDnsRequest) (*model.CreateClusterDnsResponse, error) {
+ requestDef := GenReqDefForCreateClusterDns()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateClusterDnsResponse), nil
+ }
+}
+
+// CreateClusterDnsInvoker 申请域名
+func (c *DwsClient) CreateClusterDnsInvoker(request *model.CreateClusterDnsRequest) *CreateClusterDnsInvoker {
+ requestDef := GenReqDefForCreateClusterDns()
+ return &CreateClusterDnsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateClusterV2 V2创建集群
+//
+// 该接口用于创建集群。
+// 集群必须要运行在VPC之内,创建集群前,您需要先创建VPC,并获取VPC和子网的id。
+// 该接口为异步接口,创建集群需要10~15分钟。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateClusterV2(request *model.CreateClusterV2Request) (*model.CreateClusterV2Response, error) {
+ requestDef := GenReqDefForCreateClusterV2()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateClusterV2Response), nil
+ }
+}
+
+// CreateClusterV2Invoker V2创建集群
+func (c *DwsClient) CreateClusterV2Invoker(request *model.CreateClusterV2Request) *CreateClusterV2Invoker {
+ requestDef := GenReqDefForCreateClusterV2()
+ return &CreateClusterV2Invoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateClusterWorkload 设置资源管理
+//
+// 设置资源管理。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateClusterWorkload(request *model.CreateClusterWorkloadRequest) (*model.CreateClusterWorkloadResponse, error) {
+ requestDef := GenReqDefForCreateClusterWorkload()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateClusterWorkloadResponse), nil
+ }
+}
+
+// CreateClusterWorkloadInvoker 设置资源管理
+func (c *DwsClient) CreateClusterWorkloadInvoker(request *model.CreateClusterWorkloadRequest) *CreateClusterWorkloadInvoker {
+ requestDef := GenReqDefForCreateClusterWorkload()
+ return &CreateClusterWorkloadInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateDataSource 创建数据源
+//
+// 该接口用于创建一个数据源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateDataSource(request *model.CreateDataSourceRequest) (*model.CreateDataSourceResponse, error) {
+ requestDef := GenReqDefForCreateDataSource()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateDataSourceResponse), nil
+ }
+}
+
+// CreateDataSourceInvoker 创建数据源
+func (c *DwsClient) CreateDataSourceInvoker(request *model.CreateDataSourceRequest) *CreateDataSourceInvoker {
+ requestDef := GenReqDefForCreateDataSource()
+ return &CreateDataSourceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateDisasterRecovery 创建容灾
+//
+// 创建容灾
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateDisasterRecovery(request *model.CreateDisasterRecoveryRequest) (*model.CreateDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForCreateDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateDisasterRecoveryResponse), nil
+ }
+}
+
+// CreateDisasterRecoveryInvoker 创建容灾
+func (c *DwsClient) CreateDisasterRecoveryInvoker(request *model.CreateDisasterRecoveryRequest) *CreateDisasterRecoveryInvoker {
+ requestDef := GenReqDefForCreateDisasterRecovery()
+ return &CreateDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateEventSub 创建订阅事件
+//
+// 添加订阅的事件
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateEventSub(request *model.CreateEventSubRequest) (*model.CreateEventSubResponse, error) {
+ requestDef := GenReqDefForCreateEventSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateEventSubResponse), nil
+ }
+}
+
+// CreateEventSubInvoker 创建订阅事件
+func (c *DwsClient) CreateEventSubInvoker(request *model.CreateEventSubRequest) *CreateEventSubInvoker {
+ requestDef := GenReqDefForCreateEventSub()
+ return &CreateEventSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateSnapshot 创建快照
+//
+// 该接口用于为指定集群创建快照。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error) {
+ requestDef := GenReqDefForCreateSnapshot()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateSnapshotResponse), nil
+ }
+}
+
+// CreateSnapshotInvoker 创建快照
+func (c *DwsClient) CreateSnapshotInvoker(request *model.CreateSnapshotRequest) *CreateSnapshotInvoker {
+ requestDef := GenReqDefForCreateSnapshot()
+ return &CreateSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateSnapshotPolicy 添加快照策略
+//
+// 该接口用于设置快照策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateSnapshotPolicy(request *model.CreateSnapshotPolicyRequest) (*model.CreateSnapshotPolicyResponse, error) {
+ requestDef := GenReqDefForCreateSnapshotPolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateSnapshotPolicyResponse), nil
+ }
+}
+
+// CreateSnapshotPolicyInvoker 添加快照策略
+func (c *DwsClient) CreateSnapshotPolicyInvoker(request *model.CreateSnapshotPolicyRequest) *CreateSnapshotPolicyInvoker {
+ requestDef := GenReqDefForCreateSnapshotPolicy()
+ return &CreateSnapshotPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateWorkloadPlan 添加工作负载计划
+//
+// 添加工作负载计划
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) CreateWorkloadPlan(request *model.CreateWorkloadPlanRequest) (*model.CreateWorkloadPlanResponse, error) {
+ requestDef := GenReqDefForCreateWorkloadPlan()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateWorkloadPlanResponse), nil
+ }
+}
+
+// CreateWorkloadPlanInvoker 添加工作负载计划
+func (c *DwsClient) CreateWorkloadPlanInvoker(request *model.CreateWorkloadPlanRequest) *CreateWorkloadPlanInvoker {
+ requestDef := GenReqDefForCreateWorkloadPlan()
+ return &CreateWorkloadPlanInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteAlarmSub 删除告警订阅
+//
+// 删除订阅的告警
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteAlarmSub(request *model.DeleteAlarmSubRequest) (*model.DeleteAlarmSubResponse, error) {
+ requestDef := GenReqDefForDeleteAlarmSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteAlarmSubResponse), nil
+ }
+}
+
+// DeleteAlarmSubInvoker 删除告警订阅
+func (c *DwsClient) DeleteAlarmSubInvoker(request *model.DeleteAlarmSubRequest) *DeleteAlarmSubInvoker {
+ requestDef := GenReqDefForDeleteAlarmSub()
+ return &DeleteAlarmSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteCluster 删除集群
+//
+// 此接口用于删除集群。集群删除后将释放此集群的所有资源,包括客户数据。为了安全起见,请在删除集群前为这个集群创建快照。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error) {
+ requestDef := GenReqDefForDeleteCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteClusterResponse), nil
+ }
+}
+
+// DeleteClusterInvoker 删除集群
+func (c *DwsClient) DeleteClusterInvoker(request *model.DeleteClusterRequest) *DeleteClusterInvoker {
+ requestDef := GenReqDefForDeleteCluster()
+ return &DeleteClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteClusterDns 删除集群域名
+//
+// 删除指定集群域名。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteClusterDns(request *model.DeleteClusterDnsRequest) (*model.DeleteClusterDnsResponse, error) {
+ requestDef := GenReqDefForDeleteClusterDns()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteClusterDnsResponse), nil
+ }
+}
+
+// DeleteClusterDnsInvoker 删除集群域名
+func (c *DwsClient) DeleteClusterDnsInvoker(request *model.DeleteClusterDnsRequest) *DeleteClusterDnsInvoker {
+ requestDef := GenReqDefForDeleteClusterDns()
+ return &DeleteClusterDnsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteDataSource 删除数据源
+//
+// 该接口用于删除一个数据源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteDataSource(request *model.DeleteDataSourceRequest) (*model.DeleteDataSourceResponse, error) {
+ requestDef := GenReqDefForDeleteDataSource()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteDataSourceResponse), nil
+ }
+}
+
+// DeleteDataSourceInvoker 删除数据源
+func (c *DwsClient) DeleteDataSourceInvoker(request *model.DeleteDataSourceRequest) *DeleteDataSourceInvoker {
+ requestDef := GenReqDefForDeleteDataSource()
+ return &DeleteDataSourceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteDisasterRecovery 删除容灾
+//
+// 删除容灾。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteDisasterRecovery(request *model.DeleteDisasterRecoveryRequest) (*model.DeleteDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForDeleteDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteDisasterRecoveryResponse), nil
+ }
+}
+
+// DeleteDisasterRecoveryInvoker 删除容灾
+func (c *DwsClient) DeleteDisasterRecoveryInvoker(request *model.DeleteDisasterRecoveryRequest) *DeleteDisasterRecoveryInvoker {
+ requestDef := GenReqDefForDeleteDisasterRecovery()
+ return &DeleteDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteEventSub 删除订阅事件
+//
+// 删除订阅的事件
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteEventSub(request *model.DeleteEventSubRequest) (*model.DeleteEventSubResponse, error) {
+ requestDef := GenReqDefForDeleteEventSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteEventSubResponse), nil
+ }
+}
+
+// DeleteEventSubInvoker 删除订阅事件
+func (c *DwsClient) DeleteEventSubInvoker(request *model.DeleteEventSubRequest) *DeleteEventSubInvoker {
+ requestDef := GenReqDefForDeleteEventSub()
+ return &DeleteEventSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteSnapshot 删除快照
+//
+// 该接口用于删除一个指定手动快照。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error) {
+ requestDef := GenReqDefForDeleteSnapshot()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteSnapshotResponse), nil
+ }
+}
+
+// DeleteSnapshotInvoker 删除快照
+func (c *DwsClient) DeleteSnapshotInvoker(request *model.DeleteSnapshotRequest) *DeleteSnapshotInvoker {
+ requestDef := GenReqDefForDeleteSnapshot()
+ return &DeleteSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteSnapshotPolicy 删除快照策略
+//
+// 该接口用于删除一个快照策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteSnapshotPolicy(request *model.DeleteSnapshotPolicyRequest) (*model.DeleteSnapshotPolicyResponse, error) {
+ requestDef := GenReqDefForDeleteSnapshotPolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteSnapshotPolicyResponse), nil
+ }
+}
+
+// DeleteSnapshotPolicyInvoker 删除快照策略
+func (c *DwsClient) DeleteSnapshotPolicyInvoker(request *model.DeleteSnapshotPolicyRequest) *DeleteSnapshotPolicyInvoker {
+ requestDef := GenReqDefForDeleteSnapshotPolicy()
+ return &DeleteSnapshotPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteWorkloadQueue 删除工作负载队列
+//
+// 该接口用于删除工作负载队列。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DeleteWorkloadQueue(request *model.DeleteWorkloadQueueRequest) (*model.DeleteWorkloadQueueResponse, error) {
+ requestDef := GenReqDefForDeleteWorkloadQueue()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteWorkloadQueueResponse), nil
+ }
+}
+
+// DeleteWorkloadQueueInvoker 删除工作负载队列
+func (c *DwsClient) DeleteWorkloadQueueInvoker(request *model.DeleteWorkloadQueueRequest) *DeleteWorkloadQueueInvoker {
+ requestDef := GenReqDefForDeleteWorkloadQueue()
+ return &DeleteWorkloadQueueInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DisassociateEip 集群解绑EIP
+//
+// 集群解绑Eip
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DisassociateEip(request *model.DisassociateEipRequest) (*model.DisassociateEipResponse, error) {
+ requestDef := GenReqDefForDisassociateEip()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DisassociateEipResponse), nil
+ }
+}
+
+// DisassociateEipInvoker 集群解绑EIP
+func (c *DwsClient) DisassociateEipInvoker(request *model.DisassociateEipRequest) *DisassociateEipInvoker {
+ requestDef := GenReqDefForDisassociateEip()
+ return &DisassociateEipInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DisassociateElb 集群解绑ELB
+//
+// 集群解绑Elb接口
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) DisassociateElb(request *model.DisassociateElbRequest) (*model.DisassociateElbResponse, error) {
+ requestDef := GenReqDefForDisassociateElb()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DisassociateElbResponse), nil
+ }
+}
+
+// DisassociateElbInvoker 集群解绑ELB
+func (c *DwsClient) DisassociateElbInvoker(request *model.DisassociateElbRequest) *DisassociateElbInvoker {
+ requestDef := GenReqDefForDisassociateElb()
+ return &DisassociateElbInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ExecuteRedistributionCluster 下发重分布
+//
+// 下发重分布
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ExecuteRedistributionCluster(request *model.ExecuteRedistributionClusterRequest) (*model.ExecuteRedistributionClusterResponse, error) {
+ requestDef := GenReqDefForExecuteRedistributionCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ExecuteRedistributionClusterResponse), nil
+ }
+}
+
+// ExecuteRedistributionClusterInvoker 下发重分布
+func (c *DwsClient) ExecuteRedistributionClusterInvoker(request *model.ExecuteRedistributionClusterRequest) *ExecuteRedistributionClusterInvoker {
+ requestDef := GenReqDefForExecuteRedistributionCluster()
+ return &ExecuteRedistributionClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ExpandInstanceStorage 磁盘扩容
+//
+// 随着客户业务的发展,磁盘空间往往最先出现资源瓶颈,在其他资源尚且充足的情况下,通过磁盘扩容可快速缓解存储资源瓶颈现象,操作过程中无需暂停业务,并且不会造成CPU、内存等资源浪费。
+// - 磁盘扩容功能仅8.1.1.203及以上版本支持,并且创建集群规格需要为云数仓SSD云盘或实时数仓类型。
+// - 按需+折扣套餐包消费模式下,存储扩容后超出折扣套餐包部分将按需收费。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ExpandInstanceStorage(request *model.ExpandInstanceStorageRequest) (*model.ExpandInstanceStorageResponse, error) {
+ requestDef := GenReqDefForExpandInstanceStorage()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ExpandInstanceStorageResponse), nil
+ }
+}
+
+// ExpandInstanceStorageInvoker 磁盘扩容
+func (c *DwsClient) ExpandInstanceStorageInvoker(request *model.ExpandInstanceStorageRequest) *ExpandInstanceStorageInvoker {
+ requestDef := GenReqDefForExpandInstanceStorage()
+ return &ExpandInstanceStorageInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmConfigs 查询告警配置
+//
+// 查询告警配置
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAlarmConfigs(request *model.ListAlarmConfigsRequest) (*model.ListAlarmConfigsResponse, error) {
+ requestDef := GenReqDefForListAlarmConfigs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmConfigsResponse), nil
+ }
+}
+
+// ListAlarmConfigsInvoker 查询告警配置
+func (c *DwsClient) ListAlarmConfigsInvoker(request *model.ListAlarmConfigsRequest) *ListAlarmConfigsInvoker {
+ requestDef := GenReqDefForListAlarmConfigs()
+ return &ListAlarmConfigsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmDetail 查询告警详情列表
+//
+// 查询告警详情列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAlarmDetail(request *model.ListAlarmDetailRequest) (*model.ListAlarmDetailResponse, error) {
+ requestDef := GenReqDefForListAlarmDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmDetailResponse), nil
+ }
+}
+
+// ListAlarmDetailInvoker 查询告警详情列表
+func (c *DwsClient) ListAlarmDetailInvoker(request *model.ListAlarmDetailRequest) *ListAlarmDetailInvoker {
+ requestDef := GenReqDefForListAlarmDetail()
+ return &ListAlarmDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmStatistic 查询告警统计列表
+//
+// 查询告警统计
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAlarmStatistic(request *model.ListAlarmStatisticRequest) (*model.ListAlarmStatisticResponse, error) {
+ requestDef := GenReqDefForListAlarmStatistic()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmStatisticResponse), nil
+ }
+}
+
+// ListAlarmStatisticInvoker 查询告警统计列表
+func (c *DwsClient) ListAlarmStatisticInvoker(request *model.ListAlarmStatisticRequest) *ListAlarmStatisticInvoker {
+ requestDef := GenReqDefForListAlarmStatistic()
+ return &ListAlarmStatisticInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAlarmSubs 查询告警订阅列表
+//
+// 查询订阅告警
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAlarmSubs(request *model.ListAlarmSubsRequest) (*model.ListAlarmSubsResponse, error) {
+ requestDef := GenReqDefForListAlarmSubs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAlarmSubsResponse), nil
+ }
+}
+
+// ListAlarmSubsInvoker 查询告警订阅列表
+func (c *DwsClient) ListAlarmSubsInvoker(request *model.ListAlarmSubsRequest) *ListAlarmSubsInvoker {
+ requestDef := GenReqDefForListAlarmSubs()
+ return &ListAlarmSubsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAuditLog 查询日志记录
+//
+// 查询审计日志记录。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAuditLog(request *model.ListAuditLogRequest) (*model.ListAuditLogResponse, error) {
+ requestDef := GenReqDefForListAuditLog()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAuditLogResponse), nil
+ }
+}
+
+// ListAuditLogInvoker 查询日志记录
+func (c *DwsClient) ListAuditLogInvoker(request *model.ListAuditLogRequest) *ListAuditLogInvoker {
+ requestDef := GenReqDefForListAuditLog()
+ return &ListAuditLogInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAvailabilityZones 查询可用区列表
+//
+// 在创建实例时,需要配置实例所在的可用区ID,可通过该接口查询可用区的ID。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListAvailabilityZones(request *model.ListAvailabilityZonesRequest) (*model.ListAvailabilityZonesResponse, error) {
+ requestDef := GenReqDefForListAvailabilityZones()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAvailabilityZonesResponse), nil
+ }
+}
+
+// ListAvailabilityZonesInvoker 查询可用区列表
+func (c *DwsClient) ListAvailabilityZonesInvoker(request *model.ListAvailabilityZonesRequest) *ListAvailabilityZonesInvoker {
+ requestDef := GenReqDefForListAvailabilityZones()
+ return &ListAvailabilityZonesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterCn 查询集群CN节点
+//
+// 查询集群的CN节点列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterCn(request *model.ListClusterCnRequest) (*model.ListClusterCnResponse, error) {
+ requestDef := GenReqDefForListClusterCn()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterCnResponse), nil
+ }
+}
+
+// ListClusterCnInvoker 查询集群CN节点
+func (c *DwsClient) ListClusterCnInvoker(request *model.ListClusterCnRequest) *ListClusterCnInvoker {
+ requestDef := GenReqDefForListClusterCn()
+ return &ListClusterCnInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterConfigurations 查询集群参数组
+//
+// 查询集群所关联的参数组。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterConfigurations(request *model.ListClusterConfigurationsRequest) (*model.ListClusterConfigurationsResponse, error) {
+ requestDef := GenReqDefForListClusterConfigurations()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterConfigurationsResponse), nil
+ }
+}
+
+// ListClusterConfigurationsInvoker 查询集群参数组
+func (c *DwsClient) ListClusterConfigurationsInvoker(request *model.ListClusterConfigurationsRequest) *ListClusterConfigurationsInvoker {
+ requestDef := GenReqDefForListClusterConfigurations()
+ return &ListClusterConfigurationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterConfigurationsParameter 查询集群参数配置
+//
+// 查询集群所关联的参数组。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterConfigurationsParameter(request *model.ListClusterConfigurationsParameterRequest) (*model.ListClusterConfigurationsParameterResponse, error) {
+ requestDef := GenReqDefForListClusterConfigurationsParameter()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterConfigurationsParameterResponse), nil
+ }
+}
+
+// ListClusterConfigurationsParameterInvoker 查询集群参数配置
+func (c *DwsClient) ListClusterConfigurationsParameterInvoker(request *model.ListClusterConfigurationsParameterRequest) *ListClusterConfigurationsParameterInvoker {
+ requestDef := GenReqDefForListClusterConfigurationsParameter()
+ return &ListClusterConfigurationsParameterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterDetails 查询集群详情
+//
+// 该接口用于查询集群详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterDetails(request *model.ListClusterDetailsRequest) (*model.ListClusterDetailsResponse, error) {
+ requestDef := GenReqDefForListClusterDetails()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterDetailsResponse), nil
+ }
+}
+
+// ListClusterDetailsInvoker 查询集群详情
+func (c *DwsClient) ListClusterDetailsInvoker(request *model.ListClusterDetailsRequest) *ListClusterDetailsInvoker {
+ requestDef := GenReqDefForListClusterDetails()
+ return &ListClusterDetailsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterScaleInNumbers 查询合适的缩容数
+//
+// 查询合适的缩容数
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterScaleInNumbers(request *model.ListClusterScaleInNumbersRequest) (*model.ListClusterScaleInNumbersResponse, error) {
+ requestDef := GenReqDefForListClusterScaleInNumbers()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterScaleInNumbersResponse), nil
+ }
+}
+
+// ListClusterScaleInNumbersInvoker 查询合适的缩容数
+func (c *DwsClient) ListClusterScaleInNumbersInvoker(request *model.ListClusterScaleInNumbersRequest) *ListClusterScaleInNumbersInvoker {
+ requestDef := GenReqDefForListClusterScaleInNumbers()
+ return &ListClusterScaleInNumbersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterSnapshots 查询集群快照列表
+//
+// 该接口用于查询集群快照列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterSnapshots(request *model.ListClusterSnapshotsRequest) (*model.ListClusterSnapshotsResponse, error) {
+ requestDef := GenReqDefForListClusterSnapshots()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterSnapshotsResponse), nil
+ }
+}
+
+// ListClusterSnapshotsInvoker 查询集群快照列表
+func (c *DwsClient) ListClusterSnapshotsInvoker(request *model.ListClusterSnapshotsRequest) *ListClusterSnapshotsInvoker {
+ requestDef := GenReqDefForListClusterSnapshots()
+ return &ListClusterSnapshotsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterTags 查询集群标签
+//
+// 查询指定集群的标签信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterTags(request *model.ListClusterTagsRequest) (*model.ListClusterTagsResponse, error) {
+ requestDef := GenReqDefForListClusterTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterTagsResponse), nil
+ }
+}
+
+// ListClusterTagsInvoker 查询集群标签
+func (c *DwsClient) ListClusterTagsInvoker(request *model.ListClusterTagsRequest) *ListClusterTagsInvoker {
+ requestDef := GenReqDefForListClusterTags()
+ return &ListClusterTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusterWorkload 查询资源管理
+//
+// 查询资管管理开关。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusterWorkload(request *model.ListClusterWorkloadRequest) (*model.ListClusterWorkloadResponse, error) {
+ requestDef := GenReqDefForListClusterWorkload()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClusterWorkloadResponse), nil
+ }
+}
+
+// ListClusterWorkloadInvoker 查询资源管理
+func (c *DwsClient) ListClusterWorkloadInvoker(request *model.ListClusterWorkloadRequest) *ListClusterWorkloadInvoker {
+ requestDef := GenReqDefForListClusterWorkload()
+ return &ListClusterWorkloadInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListClusters 查询集群列表
+//
+// 该接口用于查询并显示集群列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error) {
+ requestDef := GenReqDefForListClusters()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListClustersResponse), nil
+ }
+}
+
+// ListClustersInvoker 查询集群列表
+func (c *DwsClient) ListClustersInvoker(request *model.ListClustersRequest) *ListClustersInvoker {
+ requestDef := GenReqDefForListClusters()
+ return &ListClustersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListDataSource 查询数据源
+//
+// 该接口用于查询数据源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListDataSource(request *model.ListDataSourceRequest) (*model.ListDataSourceResponse, error) {
+ requestDef := GenReqDefForListDataSource()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListDataSourceResponse), nil
+ }
+}
+
+// ListDataSourceInvoker 查询数据源
+func (c *DwsClient) ListDataSourceInvoker(request *model.ListDataSourceRequest) *ListDataSourceInvoker {
+ requestDef := GenReqDefForListDataSource()
+ return &ListDataSourceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListDisasterRecover 查询容灾列表
+//
+// 查询容灾列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListDisasterRecover(request *model.ListDisasterRecoverRequest) (*model.ListDisasterRecoverResponse, error) {
+ requestDef := GenReqDefForListDisasterRecover()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListDisasterRecoverResponse), nil
+ }
+}
+
+// ListDisasterRecoverInvoker 查询容灾列表
+func (c *DwsClient) ListDisasterRecoverInvoker(request *model.ListDisasterRecoverRequest) *ListDisasterRecoverInvoker {
+ requestDef := GenReqDefForListDisasterRecover()
+ return &ListDisasterRecoverInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListDssPools 查询专属分布式存储池列表
+//
+// 获取专属分布式存储池列表,只包括用户开通的SSD专属资源池信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListDssPools(request *model.ListDssPoolsRequest) (*model.ListDssPoolsResponse, error) {
+ requestDef := GenReqDefForListDssPools()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListDssPoolsResponse), nil
+ }
+}
+
+// ListDssPoolsInvoker 查询专属分布式存储池列表
+func (c *DwsClient) ListDssPoolsInvoker(request *model.ListDssPoolsRequest) *ListDssPoolsInvoker {
+ requestDef := GenReqDefForListDssPools()
+ return &ListDssPoolsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListElbs 获取集群可绑定的ELB列表
+//
+// 查询集群可以关联的Elb列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListElbs(request *model.ListElbsRequest) (*model.ListElbsResponse, error) {
+ requestDef := GenReqDefForListElbs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListElbsResponse), nil
+ }
+}
+
+// ListElbsInvoker 获取集群可绑定的ELB列表
+func (c *DwsClient) ListElbsInvoker(request *model.ListElbsRequest) *ListElbsInvoker {
+ requestDef := GenReqDefForListElbs()
+ return &ListElbsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListEventSpecs 查询事件配置
+//
+// 查询事件配置
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListEventSpecs(request *model.ListEventSpecsRequest) (*model.ListEventSpecsResponse, error) {
+ requestDef := GenReqDefForListEventSpecs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListEventSpecsResponse), nil
+ }
+}
+
+// ListEventSpecsInvoker 查询事件配置
+func (c *DwsClient) ListEventSpecsInvoker(request *model.ListEventSpecsRequest) *ListEventSpecsInvoker {
+ requestDef := GenReqDefForListEventSpecs()
+ return &ListEventSpecsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListEventSubs 查询订阅事件
+//
+// 查询订阅的事件
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListEventSubs(request *model.ListEventSubsRequest) (*model.ListEventSubsResponse, error) {
+ requestDef := GenReqDefForListEventSubs()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListEventSubsResponse), nil
+ }
+}
+
+// ListEventSubsInvoker 查询订阅事件
+func (c *DwsClient) ListEventSubsInvoker(request *model.ListEventSubsRequest) *ListEventSubsInvoker {
+ requestDef := GenReqDefForListEventSubs()
+ return &ListEventSubsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListEvents 查询事件列表
+//
+// 查询事件列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListEvents(request *model.ListEventsRequest) (*model.ListEventsResponse, error) {
+ requestDef := GenReqDefForListEvents()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListEventsResponse), nil
+ }
+}
+
+// ListEventsInvoker 查询事件列表
+func (c *DwsClient) ListEventsInvoker(request *model.ListEventsRequest) *ListEventsInvoker {
+ requestDef := GenReqDefForListEvents()
+ return &ListEventsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListHostDisk openApi查询磁盘信息
+//
+// openApi查询磁盘信息
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListHostDisk(request *model.ListHostDiskRequest) (*model.ListHostDiskResponse, error) {
+ requestDef := GenReqDefForListHostDisk()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListHostDiskResponse), nil
+ }
+}
+
+// ListHostDiskInvoker openApi查询磁盘信息
+func (c *DwsClient) ListHostDiskInvoker(request *model.ListHostDiskRequest) *ListHostDiskInvoker {
+ requestDef := GenReqDefForListHostDisk()
+ return &ListHostDiskInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListHostNet openapi获取网卡状态
//
-// 该接口用于为指定集群创建快照。
+// openapi获取网卡状态
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *DwsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error) {
- requestDef := GenReqDefForCreateSnapshot()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListHostNet(request *model.ListHostNetRequest) (*model.ListHostNetResponse, error) {
+ requestDef := GenReqDefForListHostNet()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.CreateSnapshotResponse), nil
+ return resp.(*model.ListHostNetResponse), nil
}
}
-// CreateSnapshotInvoker 创建快照
-func (c *DwsClient) CreateSnapshotInvoker(request *model.CreateSnapshotRequest) *CreateSnapshotInvoker {
- requestDef := GenReqDefForCreateSnapshot()
- return &CreateSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListHostNetInvoker openapi获取网卡状态
+func (c *DwsClient) ListHostNetInvoker(request *model.ListHostNetRequest) *ListHostNetInvoker {
+ requestDef := GenReqDefForListHostNet()
+ return &ListHostNetInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// DeleteCluster 删除集群
+// ListHostOverview openApi查询主机概览
//
-// 此接口用于删除集群。集群删除后将释放此集群的所有资源,包括客户数据。为了安全起见,请在删除集群前为这个集群创建快照。
+// openApi查询主机概览
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *DwsClient) DeleteCluster(request *model.DeleteClusterRequest) (*model.DeleteClusterResponse, error) {
- requestDef := GenReqDefForDeleteCluster()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListHostOverview(request *model.ListHostOverviewRequest) (*model.ListHostOverviewResponse, error) {
+ requestDef := GenReqDefForListHostOverview()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.DeleteClusterResponse), nil
+ return resp.(*model.ListHostOverviewResponse), nil
}
}
-// DeleteClusterInvoker 删除集群
-func (c *DwsClient) DeleteClusterInvoker(request *model.DeleteClusterRequest) *DeleteClusterInvoker {
- requestDef := GenReqDefForDeleteCluster()
- return &DeleteClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListHostOverviewInvoker openApi查询主机概览
+func (c *DwsClient) ListHostOverviewInvoker(request *model.ListHostOverviewRequest) *ListHostOverviewInvoker {
+ requestDef := GenReqDefForListHostOverview()
+ return &ListHostOverviewInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// DeleteSnapshot 删除快照
+// ListJobDetails 查询job进度
//
-// 该接口用于删除一个指定手动快照。
+// 查询job进度信息
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *DwsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error) {
- requestDef := GenReqDefForDeleteSnapshot()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListJobDetails(request *model.ListJobDetailsRequest) (*model.ListJobDetailsResponse, error) {
+ requestDef := GenReqDefForListJobDetails()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.DeleteSnapshotResponse), nil
+ return resp.(*model.ListJobDetailsResponse), nil
}
}
-// DeleteSnapshotInvoker 删除快照
-func (c *DwsClient) DeleteSnapshotInvoker(request *model.DeleteSnapshotRequest) *DeleteSnapshotInvoker {
- requestDef := GenReqDefForDeleteSnapshot()
- return &DeleteSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListJobDetailsInvoker 查询job进度
+func (c *DwsClient) ListJobDetailsInvoker(request *model.ListJobDetailsRequest) *ListJobDetailsInvoker {
+ requestDef := GenReqDefForListJobDetails()
+ return &ListJobDetailsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ListClusterDetails 查询集群详情
+// ListMonitorIndicatorData openApi查询历史监控数据
//
-// 该接口用于查询集群详情。
+// openApi查询历史监控数据
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *DwsClient) ListClusterDetails(request *model.ListClusterDetailsRequest) (*model.ListClusterDetailsResponse, error) {
- requestDef := GenReqDefForListClusterDetails()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListMonitorIndicatorData(request *model.ListMonitorIndicatorDataRequest) (*model.ListMonitorIndicatorDataResponse, error) {
+ requestDef := GenReqDefForListMonitorIndicatorData()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ListClusterDetailsResponse), nil
+ return resp.(*model.ListMonitorIndicatorDataResponse), nil
}
}
-// ListClusterDetailsInvoker 查询集群详情
-func (c *DwsClient) ListClusterDetailsInvoker(request *model.ListClusterDetailsRequest) *ListClusterDetailsInvoker {
- requestDef := GenReqDefForListClusterDetails()
- return &ListClusterDetailsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListMonitorIndicatorDataInvoker openApi查询历史监控数据
+func (c *DwsClient) ListMonitorIndicatorDataInvoker(request *model.ListMonitorIndicatorDataRequest) *ListMonitorIndicatorDataInvoker {
+ requestDef := GenReqDefForListMonitorIndicatorData()
+ return &ListMonitorIndicatorDataInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ListClusters 查询集群列表
+// ListMonitorIndicators openApi查询性能监控指标
//
-// 该接口用于查询并显示集群列表
+// openApi查询性能监控指标
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *DwsClient) ListClusters(request *model.ListClustersRequest) (*model.ListClustersResponse, error) {
- requestDef := GenReqDefForListClusters()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListMonitorIndicators(request *model.ListMonitorIndicatorsRequest) (*model.ListMonitorIndicatorsResponse, error) {
+ requestDef := GenReqDefForListMonitorIndicators()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ListClustersResponse), nil
+ return resp.(*model.ListMonitorIndicatorsResponse), nil
}
}
-// ListClustersInvoker 查询集群列表
-func (c *DwsClient) ListClustersInvoker(request *model.ListClustersRequest) *ListClustersInvoker {
- requestDef := GenReqDefForListClusters()
- return &ListClustersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListMonitorIndicatorsInvoker openApi查询性能监控指标
+func (c *DwsClient) ListMonitorIndicatorsInvoker(request *model.ListMonitorIndicatorsRequest) *ListMonitorIndicatorsInvoker {
+ requestDef := GenReqDefForListMonitorIndicators()
+ return &ListMonitorIndicatorsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
// ListNodeTypes 查询节点类型
//
// 该接口用于查询所有GaussDB(DWS)服务支持的节点类型。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) ListNodeTypes(request *model.ListNodeTypesRequest) (*model.ListNodeTypesResponse, error) {
requestDef := GenReqDefForListNodeTypes()
@@ -175,12 +1355,32 @@ func (c *DwsClient) ListNodeTypesInvoker(request *model.ListNodeTypesRequest) *L
return &ListNodeTypesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListQuotas 查询配额
+//
+// 查询单租户在GaussDB(DWS)服务下的配额信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListQuotas(request *model.ListQuotasRequest) (*model.ListQuotasResponse, error) {
+ requestDef := GenReqDefForListQuotas()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListQuotasResponse), nil
+ }
+}
+
+// ListQuotasInvoker 查询配额
+func (c *DwsClient) ListQuotasInvoker(request *model.ListQuotasRequest) *ListQuotasInvoker {
+ requestDef := GenReqDefForListQuotas()
+ return &ListQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListSnapshotDetails 查询快照详情
//
// 该接口用于使用快照ID查询快照详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) ListSnapshotDetails(request *model.ListSnapshotDetailsRequest) (*model.ListSnapshotDetailsResponse, error) {
requestDef := GenReqDefForListSnapshotDetails()
@@ -197,12 +1397,53 @@ func (c *DwsClient) ListSnapshotDetailsInvoker(request *model.ListSnapshotDetail
return &ListSnapshotDetailsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListSnapshotPolicy 查询快照策略
+//
+// 查询快照策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListSnapshotPolicy(request *model.ListSnapshotPolicyRequest) (*model.ListSnapshotPolicyResponse, error) {
+ requestDef := GenReqDefForListSnapshotPolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListSnapshotPolicyResponse), nil
+ }
+}
+
+// ListSnapshotPolicyInvoker 查询快照策略
+func (c *DwsClient) ListSnapshotPolicyInvoker(request *model.ListSnapshotPolicyRequest) *ListSnapshotPolicyInvoker {
+ requestDef := GenReqDefForListSnapshotPolicy()
+ return &ListSnapshotPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListSnapshotStatistics 快照统计信息
+//
+// 快照统计信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListSnapshotStatistics(request *model.ListSnapshotStatisticsRequest) (*model.ListSnapshotStatisticsResponse, error) {
+ requestDef := GenReqDefForListSnapshotStatistics()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListSnapshotStatisticsResponse), nil
+ }
+}
+
+// ListSnapshotStatisticsInvoker 快照统计信息
+func (c *DwsClient) ListSnapshotStatisticsInvoker(request *model.ListSnapshotStatisticsRequest) *ListSnapshotStatisticsInvoker {
+ requestDef := GenReqDefForListSnapshotStatistics()
+ return &ListSnapshotStatisticsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListSnapshots 查询快照列表
//
// 该接口用于查询快照列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error) {
requestDef := GenReqDefForListSnapshots()
@@ -219,12 +1460,95 @@ func (c *DwsClient) ListSnapshotsInvoker(request *model.ListSnapshotsRequest) *L
return &ListSnapshotsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListStatistics 查询资源统计信息列表
+//
+// 查询当前可用资源数量,其中包括“可用集群和总集群(个)”、“可用节点和总节点(个)”、“总容量(GB)”。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListStatistics(request *model.ListStatisticsRequest) (*model.ListStatisticsResponse, error) {
+ requestDef := GenReqDefForListStatistics()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListStatisticsResponse), nil
+ }
+}
+
+// ListStatisticsInvoker 查询资源统计信息列表
+func (c *DwsClient) ListStatisticsInvoker(request *model.ListStatisticsRequest) *ListStatisticsInvoker {
+ requestDef := GenReqDefForListStatistics()
+ return &ListStatisticsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListTags 查询项目标签
+//
+// 查询项目标签列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListTags(request *model.ListTagsRequest) (*model.ListTagsResponse, error) {
+ requestDef := GenReqDefForListTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListTagsResponse), nil
+ }
+}
+
+// ListTagsInvoker 查询项目标签
+func (c *DwsClient) ListTagsInvoker(request *model.ListTagsRequest) *ListTagsInvoker {
+ requestDef := GenReqDefForListTags()
+ return &ListTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListWorkloadQueue 查询工作负载队列
+//
+// 查询工作负载队列
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ListWorkloadQueue(request *model.ListWorkloadQueueRequest) (*model.ListWorkloadQueueResponse, error) {
+ requestDef := GenReqDefForListWorkloadQueue()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListWorkloadQueueResponse), nil
+ }
+}
+
+// ListWorkloadQueueInvoker 查询工作负载队列
+func (c *DwsClient) ListWorkloadQueueInvoker(request *model.ListWorkloadQueueRequest) *ListWorkloadQueueInvoker {
+ requestDef := GenReqDefForListWorkloadQueue()
+ return &ListWorkloadQueueInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// PauseDisasterRecovery 停止容灾
+//
+// 停止容灾
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) PauseDisasterRecovery(request *model.PauseDisasterRecoveryRequest) (*model.PauseDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForPauseDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.PauseDisasterRecoveryResponse), nil
+ }
+}
+
+// PauseDisasterRecoveryInvoker 停止容灾
+func (c *DwsClient) PauseDisasterRecoveryInvoker(request *model.PauseDisasterRecoveryRequest) *PauseDisasterRecoveryInvoker {
+ requestDef := GenReqDefForPauseDisasterRecovery()
+ return &PauseDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ResetPassword 重置密码
//
// 此接口用于重置集群管理员密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error) {
requestDef := GenReqDefForResetPassword()
@@ -245,8 +1569,7 @@ func (c *DwsClient) ResetPasswordInvoker(request *model.ResetPasswordRequest) *R
//
// 此接口用于扩容集群。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) ResizeCluster(request *model.ResizeClusterRequest) (*model.ResizeClusterResponse, error) {
requestDef := GenReqDefForResizeCluster()
@@ -267,8 +1590,7 @@ func (c *DwsClient) ResizeClusterInvoker(request *model.ResizeClusterRequest) *R
//
// 此接口用于重启集群。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) RestartCluster(request *model.RestartClusterRequest) (*model.RestartClusterResponse, error) {
requestDef := GenReqDefForRestartCluster()
@@ -289,8 +1611,7 @@ func (c *DwsClient) RestartClusterInvoker(request *model.RestartClusterRequest)
//
// 该接口用于使用快照恢复集群。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *DwsClient) RestoreCluster(request *model.RestoreClusterRequest) (*model.RestoreClusterResponse, error) {
requestDef := GenReqDefForRestoreCluster()
@@ -306,3 +1627,257 @@ func (c *DwsClient) RestoreClusterInvoker(request *model.RestoreClusterRequest)
requestDef := GenReqDefForRestoreCluster()
return &RestoreClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+
+// RestoreDisaster 恢复容灾
+//
+// 恢复容灾
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) RestoreDisaster(request *model.RestoreDisasterRequest) (*model.RestoreDisasterResponse, error) {
+ requestDef := GenReqDefForRestoreDisaster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RestoreDisasterResponse), nil
+ }
+}
+
+// RestoreDisasterInvoker 恢复容灾
+func (c *DwsClient) RestoreDisasterInvoker(request *model.RestoreDisasterRequest) *RestoreDisasterInvoker {
+ requestDef := GenReqDefForRestoreDisaster()
+ return &RestoreDisasterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShrinkCluster 集群缩容
+//
+// 该接口用于缩容集群。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) ShrinkCluster(request *model.ShrinkClusterRequest) (*model.ShrinkClusterResponse, error) {
+ requestDef := GenReqDefForShrinkCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShrinkClusterResponse), nil
+ }
+}
+
+// ShrinkClusterInvoker 集群缩容
+func (c *DwsClient) ShrinkClusterInvoker(request *model.ShrinkClusterRequest) *ShrinkClusterInvoker {
+ requestDef := GenReqDefForShrinkCluster()
+ return &ShrinkClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// StartDisasterRecovery 启动容灾
+//
+// 启动容灾
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) StartDisasterRecovery(request *model.StartDisasterRecoveryRequest) (*model.StartDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForStartDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.StartDisasterRecoveryResponse), nil
+ }
+}
+
+// StartDisasterRecoveryInvoker 启动容灾
+func (c *DwsClient) StartDisasterRecoveryInvoker(request *model.StartDisasterRecoveryRequest) *StartDisasterRecoveryInvoker {
+ requestDef := GenReqDefForStartDisasterRecovery()
+ return &StartDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchFailoverDisaster 容灾异常切换
+//
+// 容灾-异常切换
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) SwitchFailoverDisaster(request *model.SwitchFailoverDisasterRequest) (*model.SwitchFailoverDisasterResponse, error) {
+ requestDef := GenReqDefForSwitchFailoverDisaster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchFailoverDisasterResponse), nil
+ }
+}
+
+// SwitchFailoverDisasterInvoker 容灾异常切换
+func (c *DwsClient) SwitchFailoverDisasterInvoker(request *model.SwitchFailoverDisasterRequest) *SwitchFailoverDisasterInvoker {
+ requestDef := GenReqDefForSwitchFailoverDisaster()
+ return &SwitchFailoverDisasterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchOverCluster 主备恢复
+//
+// 当集群状态为“非均衡”时会出现某些节点主实例增多,从而负载压力较大。这种情况下集群状态是正常的,但整体性能要低于均衡状态。可进行集群主备恢复操作将集群状态切换为“可用“状态。
+// - 集群主备恢复仅8.1.1.202及以上版本支持。
+// - 集群主备恢复将会短暂中断业务,中断时间根据用户自身业务量所决定,建议用户在业务低峰期执行此操作。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) SwitchOverCluster(request *model.SwitchOverClusterRequest) (*model.SwitchOverClusterResponse, error) {
+ requestDef := GenReqDefForSwitchOverCluster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchOverClusterResponse), nil
+ }
+}
+
+// SwitchOverClusterInvoker 主备恢复
+func (c *DwsClient) SwitchOverClusterInvoker(request *model.SwitchOverClusterRequest) *SwitchOverClusterInvoker {
+ requestDef := GenReqDefForSwitchOverCluster()
+ return &SwitchOverClusterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchoverDisasterRecovery 灾备切换
+//
+// 容灾-灾备切换
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) SwitchoverDisasterRecovery(request *model.SwitchoverDisasterRecoveryRequest) (*model.SwitchoverDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForSwitchoverDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchoverDisasterRecoveryResponse), nil
+ }
+}
+
+// SwitchoverDisasterRecoveryInvoker 灾备切换
+func (c *DwsClient) SwitchoverDisasterRecoveryInvoker(request *model.SwitchoverDisasterRecoveryRequest) *SwitchoverDisasterRecoveryInvoker {
+ requestDef := GenReqDefForSwitchoverDisasterRecovery()
+ return &SwitchoverDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateAlarmSub 更新告警订阅
+//
+// 更新订阅的告警
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateAlarmSub(request *model.UpdateAlarmSubRequest) (*model.UpdateAlarmSubResponse, error) {
+ requestDef := GenReqDefForUpdateAlarmSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateAlarmSubResponse), nil
+ }
+}
+
+// UpdateAlarmSubInvoker 更新告警订阅
+func (c *DwsClient) UpdateAlarmSubInvoker(request *model.UpdateAlarmSubRequest) *UpdateAlarmSubInvoker {
+ requestDef := GenReqDefForUpdateAlarmSub()
+ return &UpdateAlarmSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateClusterDns 修改集群域名
+//
+// 为指定集群修改域名。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateClusterDns(request *model.UpdateClusterDnsRequest) (*model.UpdateClusterDnsResponse, error) {
+ requestDef := GenReqDefForUpdateClusterDns()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateClusterDnsResponse), nil
+ }
+}
+
+// UpdateClusterDnsInvoker 修改集群域名
+func (c *DwsClient) UpdateClusterDnsInvoker(request *model.UpdateClusterDnsRequest) *UpdateClusterDnsInvoker {
+ requestDef := GenReqDefForUpdateClusterDns()
+ return &UpdateClusterDnsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateConfiguration 修改集群参数配置
+//
+// 修改集群使用的参数配置信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateConfiguration(request *model.UpdateConfigurationRequest) (*model.UpdateConfigurationResponse, error) {
+ requestDef := GenReqDefForUpdateConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateConfigurationResponse), nil
+ }
+}
+
+// UpdateConfigurationInvoker 修改集群参数配置
+func (c *DwsClient) UpdateConfigurationInvoker(request *model.UpdateConfigurationRequest) *UpdateConfigurationInvoker {
+ requestDef := GenReqDefForUpdateConfiguration()
+ return &UpdateConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateDataSource 更新数据源
+//
+// 该接口用于更新一个数据源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateDataSource(request *model.UpdateDataSourceRequest) (*model.UpdateDataSourceResponse, error) {
+ requestDef := GenReqDefForUpdateDataSource()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateDataSourceResponse), nil
+ }
+}
+
+// UpdateDataSourceInvoker 更新数据源
+func (c *DwsClient) UpdateDataSourceInvoker(request *model.UpdateDataSourceRequest) *UpdateDataSourceInvoker {
+ requestDef := GenReqDefForUpdateDataSource()
+ return &UpdateDataSourceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateEventSub 更新订阅事件
+//
+// 更新订阅事件
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateEventSub(request *model.UpdateEventSubRequest) (*model.UpdateEventSubResponse, error) {
+ requestDef := GenReqDefForUpdateEventSub()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateEventSubResponse), nil
+ }
+}
+
+// UpdateEventSubInvoker 更新订阅事件
+func (c *DwsClient) UpdateEventSubInvoker(request *model.UpdateEventSubRequest) *UpdateEventSubInvoker {
+ requestDef := GenReqDefForUpdateEventSub()
+ return &UpdateEventSubInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateMaintenanceWindow 修改运维时间窗
+//
+// 您可以根据业务需求,设置可维护时间段。建议将可维护时间段设置在业务低峰期,避免业务在维护过程中异常中断。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *DwsClient) UpdateMaintenanceWindow(request *model.UpdateMaintenanceWindowRequest) (*model.UpdateMaintenanceWindowResponse, error) {
+ requestDef := GenReqDefForUpdateMaintenanceWindow()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateMaintenanceWindowResponse), nil
+ }
+}
+
+// UpdateMaintenanceWindowInvoker 修改运维时间窗
+func (c *DwsClient) UpdateMaintenanceWindowInvoker(request *model.UpdateMaintenanceWindowRequest) *UpdateMaintenanceWindowInvoker {
+ requestDef := GenReqDefForUpdateMaintenanceWindow()
+ return &UpdateMaintenanceWindowInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_invoker.go
index 6ea7467a..d6e78350 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_invoker.go
@@ -5,75 +5,747 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model"
)
+type AddWorkloadQueueInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AddWorkloadQueueInvoker) Invoke() (*model.AddWorkloadQueueResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AddWorkloadQueueResponse), nil
+ }
+}
+
+type AssociateEipInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AssociateEipInvoker) Invoke() (*model.AssociateEipResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AssociateEipResponse), nil
+ }
+}
+
+type AssociateElbInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AssociateElbInvoker) Invoke() (*model.AssociateElbResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AssociateElbResponse), nil
+ }
+}
+
+type BatchCreateClusterCnInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateClusterCnInvoker) Invoke() (*model.BatchCreateClusterCnResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateClusterCnResponse), nil
+ }
+}
+
+type BatchCreateResourceTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateResourceTagInvoker) Invoke() (*model.BatchCreateResourceTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateResourceTagResponse), nil
+ }
+}
+
+type BatchDeleteClusterCnInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteClusterCnInvoker) Invoke() (*model.BatchDeleteClusterCnResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteClusterCnResponse), nil
+ }
+}
+
+type BatchDeleteResourceTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchDeleteResourceTagInvoker) Invoke() (*model.BatchDeleteResourceTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchDeleteResourceTagResponse), nil
+ }
+}
+
+type CancelReadonlyClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CancelReadonlyClusterInvoker) Invoke() (*model.CancelReadonlyClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CancelReadonlyClusterResponse), nil
+ }
+}
+
+type CheckClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CheckClusterInvoker) Invoke() (*model.CheckClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CheckClusterResponse), nil
+ }
+}
+
+type CopySnapshotInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CopySnapshotInvoker) Invoke() (*model.CopySnapshotResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CopySnapshotResponse), nil
+ }
+}
+
+type CreateAlarmSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateAlarmSubInvoker) Invoke() (*model.CreateAlarmSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateAlarmSubResponse), nil
+ }
+}
+
type CreateClusterInvoker struct {
*invoker.BaseInvoker
}
-func (i *CreateClusterInvoker) Invoke() (*model.CreateClusterResponse, error) {
+func (i *CreateClusterInvoker) Invoke() (*model.CreateClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateClusterResponse), nil
+ }
+}
+
+type CreateClusterDnsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateClusterDnsInvoker) Invoke() (*model.CreateClusterDnsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateClusterDnsResponse), nil
+ }
+}
+
+type CreateClusterV2Invoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateClusterV2Invoker) Invoke() (*model.CreateClusterV2Response, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateClusterV2Response), nil
+ }
+}
+
+type CreateClusterWorkloadInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateClusterWorkloadInvoker) Invoke() (*model.CreateClusterWorkloadResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateClusterWorkloadResponse), nil
+ }
+}
+
+type CreateDataSourceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateDataSourceInvoker) Invoke() (*model.CreateDataSourceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateDataSourceResponse), nil
+ }
+}
+
+type CreateDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateDisasterRecoveryInvoker) Invoke() (*model.CreateDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateDisasterRecoveryResponse), nil
+ }
+}
+
+type CreateEventSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateEventSubInvoker) Invoke() (*model.CreateEventSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateEventSubResponse), nil
+ }
+}
+
+type CreateSnapshotInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateSnapshotInvoker) Invoke() (*model.CreateSnapshotResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateSnapshotResponse), nil
+ }
+}
+
+type CreateSnapshotPolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateSnapshotPolicyInvoker) Invoke() (*model.CreateSnapshotPolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateSnapshotPolicyResponse), nil
+ }
+}
+
+type CreateWorkloadPlanInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateWorkloadPlanInvoker) Invoke() (*model.CreateWorkloadPlanResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateWorkloadPlanResponse), nil
+ }
+}
+
+type DeleteAlarmSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteAlarmSubInvoker) Invoke() (*model.DeleteAlarmSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteAlarmSubResponse), nil
+ }
+}
+
+type DeleteClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteClusterInvoker) Invoke() (*model.DeleteClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteClusterResponse), nil
+ }
+}
+
+type DeleteClusterDnsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteClusterDnsInvoker) Invoke() (*model.DeleteClusterDnsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteClusterDnsResponse), nil
+ }
+}
+
+type DeleteDataSourceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteDataSourceInvoker) Invoke() (*model.DeleteDataSourceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteDataSourceResponse), nil
+ }
+}
+
+type DeleteDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteDisasterRecoveryInvoker) Invoke() (*model.DeleteDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteDisasterRecoveryResponse), nil
+ }
+}
+
+type DeleteEventSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteEventSubInvoker) Invoke() (*model.DeleteEventSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteEventSubResponse), nil
+ }
+}
+
+type DeleteSnapshotInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteSnapshotInvoker) Invoke() (*model.DeleteSnapshotResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteSnapshotResponse), nil
+ }
+}
+
+type DeleteSnapshotPolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteSnapshotPolicyInvoker) Invoke() (*model.DeleteSnapshotPolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteSnapshotPolicyResponse), nil
+ }
+}
+
+type DeleteWorkloadQueueInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteWorkloadQueueInvoker) Invoke() (*model.DeleteWorkloadQueueResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteWorkloadQueueResponse), nil
+ }
+}
+
+type DisassociateEipInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DisassociateEipInvoker) Invoke() (*model.DisassociateEipResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DisassociateEipResponse), nil
+ }
+}
+
+type DisassociateElbInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DisassociateElbInvoker) Invoke() (*model.DisassociateElbResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DisassociateElbResponse), nil
+ }
+}
+
+type ExecuteRedistributionClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ExecuteRedistributionClusterInvoker) Invoke() (*model.ExecuteRedistributionClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ExecuteRedistributionClusterResponse), nil
+ }
+}
+
+type ExpandInstanceStorageInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ExpandInstanceStorageInvoker) Invoke() (*model.ExpandInstanceStorageResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ExpandInstanceStorageResponse), nil
+ }
+}
+
+type ListAlarmConfigsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmConfigsInvoker) Invoke() (*model.ListAlarmConfigsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmConfigsResponse), nil
+ }
+}
+
+type ListAlarmDetailInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmDetailInvoker) Invoke() (*model.ListAlarmDetailResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmDetailResponse), nil
+ }
+}
+
+type ListAlarmStatisticInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmStatisticInvoker) Invoke() (*model.ListAlarmStatisticResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmStatisticResponse), nil
+ }
+}
+
+type ListAlarmSubsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAlarmSubsInvoker) Invoke() (*model.ListAlarmSubsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAlarmSubsResponse), nil
+ }
+}
+
+type ListAuditLogInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAuditLogInvoker) Invoke() (*model.ListAuditLogResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAuditLogResponse), nil
+ }
+}
+
+type ListAvailabilityZonesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAvailabilityZonesInvoker) Invoke() (*model.ListAvailabilityZonesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAvailabilityZonesResponse), nil
+ }
+}
+
+type ListClusterCnInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterCnInvoker) Invoke() (*model.ListClusterCnResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterCnResponse), nil
+ }
+}
+
+type ListClusterConfigurationsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterConfigurationsInvoker) Invoke() (*model.ListClusterConfigurationsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterConfigurationsResponse), nil
+ }
+}
+
+type ListClusterConfigurationsParameterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterConfigurationsParameterInvoker) Invoke() (*model.ListClusterConfigurationsParameterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterConfigurationsParameterResponse), nil
+ }
+}
+
+type ListClusterDetailsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterDetailsInvoker) Invoke() (*model.ListClusterDetailsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterDetailsResponse), nil
+ }
+}
+
+type ListClusterScaleInNumbersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterScaleInNumbersInvoker) Invoke() (*model.ListClusterScaleInNumbersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterScaleInNumbersResponse), nil
+ }
+}
+
+type ListClusterSnapshotsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterSnapshotsInvoker) Invoke() (*model.ListClusterSnapshotsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterSnapshotsResponse), nil
+ }
+}
+
+type ListClusterTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterTagsInvoker) Invoke() (*model.ListClusterTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterTagsResponse), nil
+ }
+}
+
+type ListClusterWorkloadInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClusterWorkloadInvoker) Invoke() (*model.ListClusterWorkloadResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClusterWorkloadResponse), nil
+ }
+}
+
+type ListClustersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListClustersInvoker) Invoke() (*model.ListClustersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListClustersResponse), nil
+ }
+}
+
+type ListDataSourceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListDataSourceInvoker) Invoke() (*model.ListDataSourceResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.CreateClusterResponse), nil
+ return result.(*model.ListDataSourceResponse), nil
}
}
-type CreateSnapshotInvoker struct {
+type ListDisasterRecoverInvoker struct {
*invoker.BaseInvoker
}
-func (i *CreateSnapshotInvoker) Invoke() (*model.CreateSnapshotResponse, error) {
+func (i *ListDisasterRecoverInvoker) Invoke() (*model.ListDisasterRecoverResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.CreateSnapshotResponse), nil
+ return result.(*model.ListDisasterRecoverResponse), nil
}
}
-type DeleteClusterInvoker struct {
+type ListDssPoolsInvoker struct {
*invoker.BaseInvoker
}
-func (i *DeleteClusterInvoker) Invoke() (*model.DeleteClusterResponse, error) {
+func (i *ListDssPoolsInvoker) Invoke() (*model.ListDssPoolsResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.DeleteClusterResponse), nil
+ return result.(*model.ListDssPoolsResponse), nil
}
}
-type DeleteSnapshotInvoker struct {
+type ListElbsInvoker struct {
*invoker.BaseInvoker
}
-func (i *DeleteSnapshotInvoker) Invoke() (*model.DeleteSnapshotResponse, error) {
+func (i *ListElbsInvoker) Invoke() (*model.ListElbsResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.DeleteSnapshotResponse), nil
+ return result.(*model.ListElbsResponse), nil
}
}
-type ListClusterDetailsInvoker struct {
+type ListEventSpecsInvoker struct {
*invoker.BaseInvoker
}
-func (i *ListClusterDetailsInvoker) Invoke() (*model.ListClusterDetailsResponse, error) {
+func (i *ListEventSpecsInvoker) Invoke() (*model.ListEventSpecsResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.ListClusterDetailsResponse), nil
+ return result.(*model.ListEventSpecsResponse), nil
}
}
-type ListClustersInvoker struct {
+type ListEventSubsInvoker struct {
*invoker.BaseInvoker
}
-func (i *ListClustersInvoker) Invoke() (*model.ListClustersResponse, error) {
+func (i *ListEventSubsInvoker) Invoke() (*model.ListEventSubsResponse, error) {
if result, err := i.BaseInvoker.Invoke(); err != nil {
return nil, err
} else {
- return result.(*model.ListClustersResponse), nil
+ return result.(*model.ListEventSubsResponse), nil
+ }
+}
+
+type ListEventsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListEventsInvoker) Invoke() (*model.ListEventsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListEventsResponse), nil
+ }
+}
+
+type ListHostDiskInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListHostDiskInvoker) Invoke() (*model.ListHostDiskResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListHostDiskResponse), nil
+ }
+}
+
+type ListHostNetInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListHostNetInvoker) Invoke() (*model.ListHostNetResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListHostNetResponse), nil
+ }
+}
+
+type ListHostOverviewInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListHostOverviewInvoker) Invoke() (*model.ListHostOverviewResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListHostOverviewResponse), nil
+ }
+}
+
+type ListJobDetailsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListJobDetailsInvoker) Invoke() (*model.ListJobDetailsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListJobDetailsResponse), nil
+ }
+}
+
+type ListMonitorIndicatorDataInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListMonitorIndicatorDataInvoker) Invoke() (*model.ListMonitorIndicatorDataResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListMonitorIndicatorDataResponse), nil
+ }
+}
+
+type ListMonitorIndicatorsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListMonitorIndicatorsInvoker) Invoke() (*model.ListMonitorIndicatorsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListMonitorIndicatorsResponse), nil
}
}
@@ -89,6 +761,18 @@ func (i *ListNodeTypesInvoker) Invoke() (*model.ListNodeTypesResponse, error) {
}
}
+type ListQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListQuotasInvoker) Invoke() (*model.ListQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListQuotasResponse), nil
+ }
+}
+
type ListSnapshotDetailsInvoker struct {
*invoker.BaseInvoker
}
@@ -101,6 +785,30 @@ func (i *ListSnapshotDetailsInvoker) Invoke() (*model.ListSnapshotDetailsRespons
}
}
+type ListSnapshotPolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListSnapshotPolicyInvoker) Invoke() (*model.ListSnapshotPolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListSnapshotPolicyResponse), nil
+ }
+}
+
+type ListSnapshotStatisticsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListSnapshotStatisticsInvoker) Invoke() (*model.ListSnapshotStatisticsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListSnapshotStatisticsResponse), nil
+ }
+}
+
type ListSnapshotsInvoker struct {
*invoker.BaseInvoker
}
@@ -113,6 +821,54 @@ func (i *ListSnapshotsInvoker) Invoke() (*model.ListSnapshotsResponse, error) {
}
}
+type ListStatisticsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListStatisticsInvoker) Invoke() (*model.ListStatisticsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListStatisticsResponse), nil
+ }
+}
+
+type ListTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListTagsInvoker) Invoke() (*model.ListTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListTagsResponse), nil
+ }
+}
+
+type ListWorkloadQueueInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListWorkloadQueueInvoker) Invoke() (*model.ListWorkloadQueueResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListWorkloadQueueResponse), nil
+ }
+}
+
+type PauseDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *PauseDisasterRecoveryInvoker) Invoke() (*model.PauseDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.PauseDisasterRecoveryResponse), nil
+ }
+}
+
type ResetPasswordInvoker struct {
*invoker.BaseInvoker
}
@@ -160,3 +916,147 @@ func (i *RestoreClusterInvoker) Invoke() (*model.RestoreClusterResponse, error)
return result.(*model.RestoreClusterResponse), nil
}
}
+
+type RestoreDisasterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RestoreDisasterInvoker) Invoke() (*model.RestoreDisasterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RestoreDisasterResponse), nil
+ }
+}
+
+type ShrinkClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShrinkClusterInvoker) Invoke() (*model.ShrinkClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShrinkClusterResponse), nil
+ }
+}
+
+type StartDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *StartDisasterRecoveryInvoker) Invoke() (*model.StartDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.StartDisasterRecoveryResponse), nil
+ }
+}
+
+type SwitchFailoverDisasterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchFailoverDisasterInvoker) Invoke() (*model.SwitchFailoverDisasterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchFailoverDisasterResponse), nil
+ }
+}
+
+type SwitchOverClusterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchOverClusterInvoker) Invoke() (*model.SwitchOverClusterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchOverClusterResponse), nil
+ }
+}
+
+type SwitchoverDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchoverDisasterRecoveryInvoker) Invoke() (*model.SwitchoverDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchoverDisasterRecoveryResponse), nil
+ }
+}
+
+type UpdateAlarmSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateAlarmSubInvoker) Invoke() (*model.UpdateAlarmSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateAlarmSubResponse), nil
+ }
+}
+
+type UpdateClusterDnsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateClusterDnsInvoker) Invoke() (*model.UpdateClusterDnsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateClusterDnsResponse), nil
+ }
+}
+
+type UpdateConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateConfigurationInvoker) Invoke() (*model.UpdateConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateConfigurationResponse), nil
+ }
+}
+
+type UpdateDataSourceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateDataSourceInvoker) Invoke() (*model.UpdateDataSourceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateDataSourceResponse), nil
+ }
+}
+
+type UpdateEventSubInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateEventSubInvoker) Invoke() (*model.UpdateEventSubResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateEventSubResponse), nil
+ }
+}
+
+type UpdateMaintenanceWindowInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateMaintenanceWindowInvoker) Invoke() (*model.UpdateMaintenanceWindowResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateMaintenanceWindowResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_meta.go
index b613480e..708282bf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/dws_meta.go
@@ -7,6 +7,212 @@ import (
"net/http"
)
+func GenReqDefForAddWorkloadQueue() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload/queues").
+ WithResponse(new(model.AddWorkloadQueueResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForAssociateEip() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}").
+ WithResponse(new(model.AssociateEipResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EipId").
+ WithJsonTag("eip_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForAssociateElb() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}").
+ WithResponse(new(model.AssociateElbResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ElbId").
+ WithJsonTag("elb_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchCreateClusterCn() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/cns/batch-create").
+ WithResponse(new(model.BatchCreateClusterCnResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchCreateResourceTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/tags/batch-create").
+ WithResponse(new(model.BatchCreateResourceTagResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteClusterCn() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/cns/batch-delete").
+ WithResponse(new(model.BatchDeleteClusterCnResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForBatchDeleteResourceTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/tags/batch-delete").
+ WithResponse(new(model.BatchDeleteResourceTagResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCancelReadonlyCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/cancel-readonly").
+ WithResponse(new(model.CancelReadonlyClusterResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCheckCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/cluster-precheck").
+ WithResponse(new(model.CheckClusterResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCopySnapshot() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/snapshots/{snapshot_id}/linked-copy").
+ WithResponse(new(model.CopySnapshotResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SnapshotId").
+ WithJsonTag("snapshot_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateAlarmSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/alarm-subs").
+ WithResponse(new(model.CreateAlarmSubResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateCluster() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -22,14 +228,993 @@ func GenReqDefForCreateCluster() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForCreateSnapshot() *def.HttpRequestDef {
+func GenReqDefForCreateClusterDns() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/dns").
+ WithResponse(new(model.CreateClusterDnsResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateClusterV2() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters").
+ WithResponse(new(model.CreateClusterV2Response)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateClusterWorkload() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload").
+ WithResponse(new(model.CreateClusterWorkloadResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateDataSource() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/ext-data-sources").
+ WithResponse(new(model.CreateDataSourceResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recoveries").
+ WithResponse(new(model.CreateDisasterRecoveryResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateEventSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/event-subs").
+ WithResponse(new(model.CreateEventSubResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateSnapshot() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/snapshots").
+ WithResponse(new(model.CreateSnapshotResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateSnapshotPolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/snapshot-policies").
+ WithResponse(new(model.CreateSnapshotPolicyResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateWorkloadPlan() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload/plans").
+ WithResponse(new(model.CreateWorkloadPlanResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteAlarmSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/alarm-subs/{alarm_sub_id}").
+ WithResponse(new(model.DeleteAlarmSubResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmSubId").
+ WithJsonTag("alarm_sub_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}").
+ WithResponse(new(model.DeleteClusterResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteClusterDns() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/dns").
+ WithResponse(new(model.DeleteClusterDnsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteDataSource() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/ext-data-sources/{ext_data_source_id}").
+ WithResponse(new(model.DeleteDataSourceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ExtDataSourceId").
+ WithJsonTag("ext_data_source_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}").
+ WithResponse(new(model.DeleteDisasterRecoveryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteEventSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/event-subs/{event_sub_id}").
+ WithResponse(new(model.DeleteEventSubResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EventSubId").
+ WithJsonTag("event_sub_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteSnapshot() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1.0/{project_id}/snapshots/{snapshot_id}").
+ WithResponse(new(model.DeleteSnapshotResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SnapshotId").
+ WithJsonTag("snapshot_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteSnapshotPolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/snapshot-policies/{id}").
+ WithResponse(new(model.DeleteSnapshotPolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteWorkloadQueue() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload/queues").
+ WithResponse(new(model.DeleteWorkloadQueueResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("LogicalClusterName").
+ WithJsonTag("logical_cluster_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("WorkloadQueueName").
+ WithJsonTag("workload_queue_name").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDisassociateEip() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/eips/{eip_id}").
+ WithResponse(new(model.DisassociateEipResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EipId").
+ WithJsonTag("eip_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDisassociateElb() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/elbs/{elb_id}").
+ WithResponse(new(model.DisassociateElbResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ElbId").
+ WithJsonTag("elb_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForExecuteRedistributionCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/redistribution").
+ WithResponse(new(model.ExecuteRedistributionClusterResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForExpandInstanceStorage() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/expand-instance-storage").
+ WithResponse(new(model.ExpandInstanceStorageResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmConfigs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-configs").
+ WithResponse(new(model.ListAlarmConfigsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmDetail() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarms").
+ WithResponse(new(model.ListAlarmDetailResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TimeZone").
+ WithJsonTag("time_zone").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmStatistic() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-statistic").
+ WithResponse(new(model.ListAlarmStatisticResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TimeZone").
+ WithJsonTag("time_zone").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAlarmSubs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/alarm-subs").
+ WithResponse(new(model.ListAlarmSubsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAuditLog() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/audit-log-records").
+ WithResponse(new(model.ListAuditLogResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAvailabilityZones() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/availability-zones").
+ WithResponse(new(model.ListAvailabilityZonesResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterCn() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/cns").
+ WithResponse(new(model.ListClusterCnResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterConfigurations() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/configurations").
+ WithResponse(new(model.ListClusterConfigurationsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterConfigurationsParameter() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/configurations/{configuration_id}").
+ WithResponse(new(model.ListClusterConfigurationsParameterResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigurationId").
+ WithJsonTag("configuration_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterDetails() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}").
+ WithResponse(new(model.ListClusterDetailsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterScaleInNumbers() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/shrink-numbers").
+ WithResponse(new(model.ListClusterScaleInNumbersResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterSnapshots() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/snapshots").
+ WithResponse(new(model.ListClusterSnapshotsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SortKey").
+ WithJsonTag("sort_key").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SortDir").
+ WithJsonTag("sort_dir").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/tags").
+ WithResponse(new(model.ListClusterTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusterWorkload() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload").
+ WithResponse(new(model.ListClusterWorkloadResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListClusters() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters").
+ WithResponse(new(model.ListClustersResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDataSource() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/ext-data-sources").
+ WithResponse(new(model.ListDataSourceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDisasterRecover() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/disaster-recoveries").
+ WithResponse(new(model.ListDisasterRecoverResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDssPools() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dss-pools").
+ WithResponse(new(model.ListDssPoolsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListElbs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/elbs").
+ WithResponse(new(model.ListElbsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListEventSpecs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/event-specs").
+ WithResponse(new(model.ListEventSpecsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SpecName").
+ WithJsonTag("spec_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Category").
+ WithJsonTag("category").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Severity").
+ WithJsonTag("severity").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SourceType").
+ WithJsonTag("source_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Tag").
+ WithJsonTag("tag").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListEventSubs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/event-subs").
+ WithResponse(new(model.ListEventSubsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListEvents() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/events").
+ WithResponse(new(model.ListEventsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListHostDisk() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dms/disk").
+ WithResponse(new(model.ListHostDiskResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceName").
+ WithJsonTag("instance_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListHostNet() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dms/net").
+ WithResponse(new(model.ListHostNetResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceName").
+ WithJsonTag("instance_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListHostOverview() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dms/host-overview").
+ WithResponse(new(model.ListHostOverviewResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceName").
+ WithJsonTag("instance_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListJobDetails() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/job/{job_id}").
+ WithResponse(new(model.ListJobDetailsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("JobId").
+ WithJsonTag("job_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListMonitorIndicatorData() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dms/metric-data").
+ WithResponse(new(model.ListMonitorIndicatorDataResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("From").
+ WithJsonTag("from").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("To").
+ WithJsonTag("to").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Function").
+ WithJsonTag("function").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Period").
+ WithJsonTag("period").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("IndicatorName").
+ WithJsonTag("indicator_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Dim0").
+ WithJsonTag("dim0").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Dim1").
+ WithJsonTag("dim1").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListMonitorIndicators() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPost).
- WithPath("/v1.0/{project_id}/snapshots").
- WithResponse(new(model.CreateSnapshotResponse)).
- WithContentType("application/json;charset=UTF-8")
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/dms/metric-data/indicators").
+ WithResponse(new(model.ListMonitorIndicatorsResponse)).
+ WithContentType("application/json")
- reqDefBuilder.WithRequestField(def.NewFieldDef().
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
WithName("Body").
WithLocationType(def.Body))
@@ -37,31 +1222,33 @@ func GenReqDefForCreateSnapshot() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForDeleteCluster() *def.HttpRequestDef {
+func GenReqDefForListNodeTypes() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodDelete).
- WithPath("/v1.0/{project_id}/clusters/{cluster_id}").
- WithResponse(new(model.DeleteClusterResponse)).
- WithContentType("application/json;charset=UTF-8")
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/node-types").
+ WithResponse(new(model.ListNodeTypesResponse)).
+ WithContentType("application/json")
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("ClusterId").
- WithJsonTag("cluster_id").
- WithLocationType(def.Path))
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
+func GenReqDefForListQuotas() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/quotas").
+ WithResponse(new(model.ListQuotasResponse)).
+ WithContentType("application/json")
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForDeleteSnapshot() *def.HttpRequestDef {
+func GenReqDefForListSnapshotDetails() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodDelete).
+ WithMethod(http.MethodGet).
WithPath("/v1.0/{project_id}/snapshots/{snapshot_id}").
- WithResponse(new(model.DeleteSnapshotResponse)).
+ WithResponse(new(model.ListSnapshotDetailsResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -73,11 +1260,11 @@ func GenReqDefForDeleteSnapshot() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListClusterDetails() *def.HttpRequestDef {
+func GenReqDefForListSnapshotPolicy() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v1.0/{project_id}/clusters/{cluster_id}").
- WithResponse(new(model.ListClusterDetailsResponse)).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/snapshot-policies").
+ WithResponse(new(model.ListSnapshotPolicyResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -89,51 +1276,83 @@ func GenReqDefForListClusterDetails() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListClusters() *def.HttpRequestDef {
+func GenReqDefForListSnapshotStatistics() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v1.0/{project_id}/clusters").
- WithResponse(new(model.ListClustersResponse)).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/snapshots/statistics").
+ WithResponse(new(model.ListSnapshotStatisticsResponse)).
WithContentType("application/json")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListNodeTypes() *def.HttpRequestDef {
+func GenReqDefForListSnapshots() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v2/{project_id}/node-types").
- WithResponse(new(model.ListNodeTypesResponse)).
+ WithPath("/v1.0/{project_id}/snapshots").
+ WithResponse(new(model.ListSnapshotsResponse)).
WithContentType("application/json")
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListSnapshotDetails() *def.HttpRequestDef {
+func GenReqDefForListStatistics() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v1.0/{project_id}/snapshots/{snapshot_id}").
- WithResponse(new(model.ListSnapshotDetailsResponse)).
+ WithPath("/v1.0/{project_id}/statistics").
+ WithResponse(new(model.ListStatisticsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/{project_id}/tags").
+ WithResponse(new(model.ListTagsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListWorkloadQueue() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/workload/queues").
+ WithResponse(new(model.ListWorkloadQueueResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("SnapshotId").
- WithJsonTag("snapshot_id").
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListSnapshots() *def.HttpRequestDef {
+func GenReqDefForPauseDisasterRecovery() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v1.0/{project_id}/snapshots").
- WithResponse(new(model.ListSnapshotsResponse)).
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}/pause").
+ WithResponse(new(model.PauseDisasterRecoveryResponse)).
WithContentType("application/json")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
requestDef := reqDefBuilder.Build()
return requestDef
}
@@ -217,3 +1436,231 @@ func GenReqDefForRestoreCluster() *def.HttpRequestDef {
requestDef := reqDefBuilder.Build()
return requestDef
}
+
+func GenReqDefForRestoreDisaster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}/recovery").
+ WithResponse(new(model.RestoreDisasterResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShrinkCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/cluster-shrink").
+ WithResponse(new(model.ShrinkClusterResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForStartDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}/start").
+ WithResponse(new(model.StartDisasterRecoveryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSwitchFailoverDisaster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}/failover").
+ WithResponse(new(model.SwitchFailoverDisasterResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSwitchOverCluster() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/switchover").
+ WithResponse(new(model.SwitchOverClusterResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSwitchoverDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/disaster-recovery/{disaster_recovery_id}/switchover").
+ WithResponse(new(model.SwitchoverDisasterRecoveryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DisasterRecoveryId").
+ WithJsonTag("disaster_recovery_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateAlarmSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/alarm-subs/{alarm_sub_id}").
+ WithResponse(new(model.UpdateAlarmSubResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AlarmSubId").
+ WithJsonTag("alarm_sub_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateClusterDns() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/dns").
+ WithResponse(new(model.UpdateClusterDnsResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/clusters/{cluster_id}/configurations/{configuration_id}").
+ WithResponse(new(model.UpdateConfigurationResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigurationId").
+ WithJsonTag("configuration_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateDataSource() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/ext-data-sources/{ext_data_source_id}").
+ WithResponse(new(model.UpdateDataSourceResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ExtDataSourceId").
+ WithJsonTag("ext_data_source_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateEventSub() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v2/{project_id}/event-subs/{event_sub_id}").
+ WithResponse(new(model.UpdateEventSubResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EventSubId").
+ WithJsonTag("event_sub_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateMaintenanceWindow() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1.0/{project_id}/clusters/{cluster_id}/maintenance-window").
+ WithResponse(new(model.UpdateMaintenanceWindowResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ClusterId").
+ WithJsonTag("cluster_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_request.go
new file mode 100644
index 00000000..fc0ab283
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AddWorkloadQueueRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *WorkloadQueueReq `json:"body,omitempty"`
+}
+
+func (o AddWorkloadQueueRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddWorkloadQueueRequest struct{}"
+ }
+
+ return strings.Join([]string{"AddWorkloadQueueRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_response.go
new file mode 100644
index 00000000..f6b8d202
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_add_workload_queue_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AddWorkloadQueueResponse struct {
+
+ // 响应编码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 响应信息。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AddWorkloadQueueResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddWorkloadQueueResponse struct{}"
+ }
+
+ return strings.Join([]string{"AddWorkloadQueueResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_config_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_config_response.go
new file mode 100644
index 00000000..79ac28ca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_config_response.go
@@ -0,0 +1,47 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警配置详情
+type AlarmConfigResponse struct {
+
+ // 告警配置ID
+ Id *string `json:"id,omitempty"`
+
+ // 告警ID
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警名称
+ AlarmName *string `json:"alarm_name,omitempty"`
+
+ // 所属服务,支持DWS,DLI,DGC,CloudTable,CDM,GES,CSS
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 用户是否可见
+ IsUserVisible *string `json:"is_user_visible,omitempty"`
+
+ // 是否覆盖
+ IsConverge *string `json:"is_converge,omitempty"`
+
+ // 覆盖时间
+ ConvergeTime *int32 `json:"converge_time,omitempty"`
+
+ // 运维是否可见
+ IsMaintainVisible *string `json:"is_maintain_visible,omitempty"`
+}
+
+func (o AlarmConfigResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmConfigResponse struct{}"
+ }
+
+ return strings.Join([]string{"AlarmConfigResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_detail_response.go
new file mode 100644
index 00000000..06ece5b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_detail_response.go
@@ -0,0 +1,50 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警详情
+type AlarmDetailResponse struct {
+
+ // 告警定义ID
+ AlarmId *string `json:"alarm_id,omitempty"`
+
+ // 告警名称
+ AlarmName *string `json:"alarm_name,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 告警服务
+ AlarmSource *string `json:"alarm_source,omitempty"`
+
+ // 告警消息
+ AlarmMessage *string `json:"alarm_message,omitempty"`
+
+ // 告警定位信息
+ AlarmLocation *string `json:"alarm_location,omitempty"`
+
+ // 告警源ID
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 告警源名称
+ ResourceIdName *string `json:"resource_id_name,omitempty"`
+
+ // 告警日期
+ AlarmGenerateDate *string `json:"alarm_generate_date,omitempty"`
+
+ // 告警状态
+ AlarmStatus *string `json:"alarm_status,omitempty"`
+}
+
+func (o AlarmDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"AlarmDetailResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_statistic_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_statistic_response.go
new file mode 100644
index 00000000..4c96d66b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_statistic_response.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警统计
+type AlarmStatisticResponse struct {
+
+ // 日期
+ Date *string `json:"date,omitempty"`
+
+ // 紧急
+ Urgent *string `json:"urgent,omitempty"`
+
+ // 重要
+ Important *string `json:"important,omitempty"`
+
+ // 次要
+ Minor *string `json:"minor,omitempty"`
+
+ // 提示
+ Prompt *string `json:"prompt,omitempty"`
+}
+
+func (o AlarmStatisticResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmStatisticResponse struct{}"
+ }
+
+ return strings.Join([]string{"AlarmStatisticResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_request.go
new file mode 100644
index 00000000..fc88b455
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建订阅告警请求体
+type AlarmSubRequest struct {
+
+ // 告警订阅名称
+ Name string `json:"name"`
+
+ // 是否开启订阅
+ Enable string `json:"enable"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget string `json:"notification_target"`
+
+ // 消息主题名称
+ NotificationTargetName string `json:"notification_target_name"`
+
+ // 消息主题类型,支持SMN
+ NotificationTargetType string `json:"notification_target_type"`
+
+ // 时区
+ TimeZone string `json:"time_zone"`
+}
+
+func (o AlarmSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"AlarmSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_update_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_update_request.go
new file mode 100644
index 00000000..6dce4f0e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_sub_update_request.go
@@ -0,0 +1,37 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type AlarmSubUpdateRequest struct {
+
+ // 告警订阅名称
+ Name string `json:"name"`
+
+ // 是否开启订阅
+ Enable string `json:"enable"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget string `json:"notification_target"`
+
+ // 消息主题名称
+ NotificationTargetName string `json:"notification_target_name"`
+
+ // 消息主题类型,支持SMN
+ NotificationTargetType string `json:"notification_target_type"`
+}
+
+func (o AlarmSubUpdateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmSubUpdateRequest struct{}"
+ }
+
+ return strings.Join([]string{"AlarmSubUpdateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_subscription_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_subscription_response.go
new file mode 100644
index 00000000..ff05320e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_alarm_subscription_response.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 告警订阅详情
+type AlarmSubscriptionResponse struct {
+
+ // 告警订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 告警订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 是否开启订阅
+ Enable *string `json:"enable,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务,支持DWS,DLI,DGC,CloudTable,CDM,GES,CSS
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息主题类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+}
+
+func (o AlarmSubscriptionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AlarmSubscriptionResponse struct{}"
+ }
+
+ return strings.Join([]string{"AlarmSubscriptionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_request.go
new file mode 100644
index 00000000..8b827ef7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AssociateEipRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 未绑定的弹性IP的ID
+ EipId string `json:"eip_id"`
+}
+
+func (o AssociateEipRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateEipRequest struct{}"
+ }
+
+ return strings.Join([]string{"AssociateEipRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_response.go
new file mode 100644
index 00000000..7fc7f0ec
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_eip_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AssociateEipResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AssociateEipResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateEipResponse struct{}"
+ }
+
+ return strings.Join([]string{"AssociateEipResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_request.go
new file mode 100644
index 00000000..bfba90ce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type AssociateElbRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 未绑定的弹性负载均衡ID
+ ElbId string `json:"elb_id"`
+}
+
+func (o AssociateElbRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateElbRequest struct{}"
+ }
+
+ return strings.Join([]string{"AssociateElbRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_response.go
new file mode 100644
index 00000000..847775f0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_associate_elb_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AssociateElbResponse struct {
+
+ // 任务ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AssociateElbResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AssociateElbResponse struct{}"
+ }
+
+ return strings.Join([]string{"AssociateElbResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_audit_dump_record.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_audit_dump_record.go
new file mode 100644
index 00000000..209a1386
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_audit_dump_record.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 审计日志
+type AuditDumpRecord struct {
+
+ // 集群id。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 执行时间。
+ ExectorTime *string `json:"exector_time,omitempty"`
+
+ // 开始时间。
+ BeginTime *string `json:"begin_time,omitempty"`
+
+ // 结束时间。
+ EndTime *string `json:"end_time,omitempty"`
+
+ // 桶名。
+ BucketName *string `json:"bucket_name,omitempty"`
+
+ // 前缀。
+ LocationPrefix *string `json:"location_prefix,omitempty"`
+
+ // 结果。
+ Result *string `json:"result,omitempty"`
+
+ // 失败原因。
+ FailedReason *string `json:"failed_reason,omitempty"`
+}
+
+func (o AuditDumpRecord) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AuditDumpRecord struct{}"
+ }
+
+ return strings.Join([]string{"AuditDumpRecord", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_availability_zone.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_availability_zone.go
new file mode 100644
index 00000000..a786646e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_availability_zone.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 可用区详情。
+type AvailabilityZone struct {
+
+ // 可用区唯一编码。
+ Code string `json:"code"`
+
+ // 可用区名称。
+ Name string `json:"name"`
+
+ // 可用区状态。 - available:可用。 - unavailable:不可用。
+ Status string `json:"status"`
+
+ // 可用区组,如:center。
+ PublicBorderGroup string `json:"public_border_group"`
+}
+
+func (o AvailabilityZone) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AvailabilityZone struct{}"
+ }
+
+ return strings.Join([]string{"AvailabilityZone", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_policy.go
new file mode 100644
index 00000000..e451d832
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_policy.go
@@ -0,0 +1,37 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 备份策略
+type BackupPolicy struct {
+
+ // 保留天数。
+ KeepDay *int32 `json:"keep_day,omitempty"`
+
+ BackupStrategies *BackupStrategyDetail `json:"backup_strategies,omitempty"`
+
+ // 备份设备。
+ DeviceName *string `json:"device_name,omitempty"`
+
+ // 端口。
+ ServerPort *string `json:"server_port,omitempty"`
+
+ // 参数。
+ BackupParam *string `json:"backup_param,omitempty"`
+
+ // 备份介质服务IP。
+ ServerIps *[]string `json:"server_ips,omitempty"`
+}
+
+func (o BackupPolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BackupPolicy struct{}"
+ }
+
+ return strings.Join([]string{"BackupPolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_strategy_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_strategy_detail.go
new file mode 100644
index 00000000..b7d743ac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_backup_strategy_detail.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 备份策略
+type BackupStrategyDetail struct {
+
+ // 策略ID。
+ PolicyId *string `json:"policy_id,omitempty"`
+
+ // 策略名称。
+ PolicyName *string `json:"policy_name,omitempty"`
+
+ // 执行策略。
+ BackupStrategy *string `json:"backup_strategy,omitempty"`
+
+ // 备份类型。
+ BackupType *string `json:"backup_type,omitempty"`
+
+ // 备份级别。
+ BackupLevel *string `json:"backup_level,omitempty"`
+
+ // 下次触发时间。
+ NextFireTime *string `json:"next_fire_time,omitempty"`
+
+ // 更新时间。
+ UpdateTime *string `json:"update_time,omitempty"`
+}
+
+func (o BackupStrategyDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BackupStrategyDetail struct{}"
+ }
+
+ return strings.Join([]string{"BackupStrategyDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_request.go
new file mode 100644
index 00000000..40e347f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateClusterCnRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ Body *BatchCreateCn `json:"body,omitempty"`
+}
+
+func (o BatchCreateClusterCnRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateClusterCnRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateClusterCnRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_response.go
new file mode 100644
index 00000000..2faece79
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cluster_cn_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateClusterCnResponse struct {
+
+ // 批量增加CN节点任务ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateClusterCnResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateClusterCnResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateClusterCnResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cn.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cn.go
new file mode 100644
index 00000000..0ffc8ff8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_cn.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 批量增加CN节点任务完成,集群总CN数量。
+type BatchCreateCn struct {
+
+ // 批量增加CN节点任务完成,集群总CN数量。集群支持的CN节点数量与集群当前版本和节点数量相关,具体支持范围可根据“查询集群CN节点”查询,“min_num”为支持的最小数量,max_num为支持的最大数量。
+ Num int32 `json:"num"`
+}
+
+func (o BatchCreateCn) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateCn struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateCn", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag.go
new file mode 100644
index 00000000..f00eb8f8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签详情。
+type BatchCreateResourceTag struct {
+
+ // 标签键。
+ Key string `json:"key"`
+
+ // 标签值。
+ Value string `json:"value"`
+}
+
+func (o BatchCreateResourceTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourceTag struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourceTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_request.go
new file mode 100644
index 00000000..9cc692f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateResourceTagRequest struct {
+
+ // 集群的ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *BatchCreateResourceTags `json:"body,omitempty"`
+}
+
+func (o BatchCreateResourceTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourceTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourceTagRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_response.go
new file mode 100644
index 00000000..a7620876
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tag_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateResourceTagResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateResourceTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourceTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourceTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tags.go
new file mode 100644
index 00000000..8a195fe2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_create_resource_tags.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签列表信息
+type BatchCreateResourceTags struct {
+
+ // 标签列表
+ Tags []BatchCreateResourceTag `json:"tags"`
+}
+
+func (o BatchCreateResourceTags) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateResourceTags struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateResourceTags", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_request.go
new file mode 100644
index 00000000..e8b5c00c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteClusterCnRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ Body *BatchDeleteCn `json:"body,omitempty"`
+}
+
+func (o BatchDeleteClusterCnRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteClusterCnRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteClusterCnRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_response.go
new file mode 100644
index 00000000..ca09b82f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cluster_cn_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteClusterCnResponse struct {
+
+ // 批量删除CN节点任务ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteClusterCnResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteClusterCnResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteClusterCnResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cn.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cn.go
new file mode 100644
index 00000000..f2f6c40d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_cn.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 批量删除CN节点ID信息
+type BatchDeleteCn struct {
+
+ // 批量删除CN节点ID
+ Instances *[]string `json:"instances,omitempty"`
+}
+
+func (o BatchDeleteCn) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteCn struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteCn", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag.go
new file mode 100644
index 00000000..3d80b0c0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签详情。
+type BatchDeleteResourceTag struct {
+
+ // 标签键。
+ Key string `json:"key"`
+
+ // 标签值。
+ Value string `json:"value"`
+}
+
+func (o BatchDeleteResourceTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceTag struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_request.go
new file mode 100644
index 00000000..b6b05544
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchDeleteResourceTagRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ Body *BatchDeleteResourceTags `json:"body,omitempty"`
+}
+
+func (o BatchDeleteResourceTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceTagRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_response.go
new file mode 100644
index 00000000..27b0b819
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tag_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchDeleteResourceTagResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchDeleteResourceTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tags.go
new file mode 100644
index 00000000..8e3bf655
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_batch_delete_resource_tags.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签列表信息
+type BatchDeleteResourceTags struct {
+
+ // 标签列表
+ Tags []BatchDeleteResourceTag `json:"tags"`
+}
+
+func (o BatchDeleteResourceTags) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteResourceTags struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteResourceTags", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_request.go
new file mode 100644
index 00000000..5a8e75b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CancelReadonlyClusterRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o CancelReadonlyClusterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CancelReadonlyClusterRequest struct{}"
+ }
+
+ return strings.Join([]string{"CancelReadonlyClusterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_response.go
new file mode 100644
index 00000000..10805a8a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cancel_readonly_cluster_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CancelReadonlyClusterResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CancelReadonlyClusterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CancelReadonlyClusterResponse struct{}"
+ }
+
+ return strings.Join([]string{"CancelReadonlyClusterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_request.go
new file mode 100644
index 00000000..3184496e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CheckClusterRequest struct {
+ Body *ClusterCheckRequestBody `json:"body,omitempty"`
+}
+
+func (o CheckClusterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckClusterRequest struct{}"
+ }
+
+ return strings.Join([]string{"CheckClusterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_response.go
new file mode 100644
index 00000000..80316500
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_check_cluster_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CheckClusterResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CheckClusterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckClusterResponse struct{}"
+ }
+
+ return strings.Join([]string{"CheckClusterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_body.go
new file mode 100644
index 00000000..fb1e757a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_body.go
@@ -0,0 +1,76 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ClusterCheckBody struct {
+
+ // 企业项目ID
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 集群规格名称
+ Flavor string `json:"flavor"`
+
+ // 可用区列表
+ AvailabilityZones []string `json:"availability_zones"`
+
+ // 实例节点个数
+ NumNode int32 `json:"num_node"`
+
+ // 集群安全组ID
+ SecurityGroupId *string `json:"security_group_id,omitempty"`
+
+ // 集群版本
+ DatastoreVersion string `json:"datastore_version"`
+
+ // 集群虚拟私有云ID
+ VpcId string `json:"vpc_id"`
+
+ // 集群子网ID
+ SubnetId string `json:"subnet_id"`
+
+ PublicIp *OpenPublicIp `json:"public_ip,omitempty"`
+
+ // 跨规格恢复
+ CrossSpecRestore *string `json:"cross_spec_restore,omitempty"`
+
+ Volume *Volume `json:"volume,omitempty"`
+
+ // 旧主机名
+ OldClusterHostname *string `json:"old_cluster_hostname,omitempty"`
+
+ RestorePoint *RestorePoint `json:"restore_point,omitempty"`
+
+ // 标签列表
+ TagList *[]Tag `json:"tag_list,omitempty"`
+
+ // 存储池ID
+ DssPoolId *string `json:"dss_pool_id,omitempty"`
+
+ // 数据库端口
+ DbPort *string `json:"db_port,omitempty"`
+
+ // 管理员密码
+ DbPassword *string `json:"db_password,omitempty"`
+
+ // 管理员用户
+ DbName *string `json:"db_name,omitempty"`
+
+ // cn节点数量
+ NumCn *int32 `json:"num_cn,omitempty"`
+
+ // 集群名称
+ Name *string `json:"name,omitempty"`
+}
+
+func (o ClusterCheckBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterCheckBody struct{}"
+ }
+
+ return strings.Join([]string{"ClusterCheckBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_request_body.go
new file mode 100644
index 00000000..0513186d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_check_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建集群校验请求体
+type ClusterCheckRequestBody struct {
+ Cluster *ClusterCheckBody `json:"cluster"`
+}
+
+func (o ClusterCheckRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterCheckRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ClusterCheckRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_configuration.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_configuration.go
new file mode 100644
index 00000000..8219e058
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_configuration.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群所关联的参数组详情。
+type ClusterConfiguration struct {
+
+ // 参数组ID。
+ Id string `json:"id"`
+
+ // 参数组名称。
+ Name string `json:"name"`
+
+ // 参数组类型。
+ Type string `json:"type"`
+
+ // 集群参数状态。 - In-Sync:已同步。 - Applying:应用中。 - Pending-Reboot:需重启生效。 - Sync-Failure:应用失败。
+ Status string `json:"status"`
+
+ // 参数应用失败原因。
+ FailReason string `json:"fail_reason"`
+}
+
+func (o ClusterConfiguration) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterConfiguration struct{}"
+ }
+
+ return strings.Join([]string{"ClusterConfiguration", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_detail.go
index 016fb619..8230689b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_detail.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_detail.go
@@ -15,7 +15,7 @@ type ClusterDetail struct {
// 集群名称
Name string `json:"name"`
- // 集群状态,有效值包括: - CREATING:创建中 - AVAILABLE:可用 - UNAVAILABLE:不可用 - CREATION FAILED:创建失败 - FROZEN:已冻结
+ // 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:已冻结
Status string `json:"status"`
// 数据仓库版本
@@ -27,7 +27,7 @@ type ClusterDetail struct {
// 集群创建时间,格式为ISO8601:YYYY-MM-DDThh:mm:ssZ
Created string `json:"created"`
- // 集群服务端口(8000~30000),默认值:8000
+ // 集群服务端口。
Port int32 `json:"port"`
// 集群的内网连接信息。
@@ -68,13 +68,13 @@ type ClusterDetail struct {
// 集群的公网连接信息,如果未指定,则默认不使用公网连接信息。
PublicEndpoints []PublicEndpoints `json:"public_endpoints"`
- // Key值为正在进行的任务,有效值包括: - GROWING:扩容中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - REPAIRING: 修复中 - CREATING: 创建中\\nvalue值为正在进行任务的进度。
+ // 任务信息,由key、value组成。key值为正在进行的任务,value值为正在进行任务的进度。key值的有效值包括: - CREATING:创建中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - ADD_CN_ING:增加CN中 - DEL_CN_ING:删除CN中 - REDISTRIBUTING:重分布中 - ELB_BINDING:弹性负载均衡绑定中 - ELB_UNBINDING:弹性负载均衡解绑中 - ELB_SWITCHING:弹性负载均衡切换中 - NETWORK_CONFIGURING:网络配置中 - DISK_EXPANDING:磁盘扩容中 - ACTIVE_STANDY_SWITCHOVER:主备恢复中 - CLUSTER_SHRINKING:缩容中 - SHRINK_CHECKING:缩容检测中 - FLAVOR_RESIZING:规格变更中 - MANAGE_IP_BINDING:登录开通中 - FINE_GRAINED_RESTORING:细粒度恢复中 - DR_RECOVERING:容灾恢复中 - REPAIRING:修复中
ActionProgress map[string]string `json:"action_progress"`
// “可用”集群状态的子状态,有效值包括: - NORMAL:正常 - READONLY:只读 - REDISTRIBUTING:重分布中 - REDISTRIBUTION-FAILURE:重分布失败 - UNBALANCED:非均衡 - UNBALANCED | READONLY:非均衡,只读 - DEGRADED:节点故障 - DEGRADED | READONLY:节点故障,只读 - DEGRADED | UNBALANCED:节点故障,非均衡 - UNBALANCED | REDISTRIBUTING:非均衡,重分布中 - UNBALANCED | REDISTRIBUTION-FAILURE:非均衡,重分布失败 - READONLY | REDISTRIBUTION-FAILURE:只读,重分布失败 - UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:非均衡,只读,重分布失败 - DEGRADED | REDISTRIBUTION-FAILURE:节点故障,重分布失败 - DEGRADED | UNBALANCED | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY:节点故障,非均衡,只读
SubStatus string `json:"sub_status"`
- // 集群管理任务,有效值包括: - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败
+ // 集群管理任务,有效值包括: - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败 - ADD_CN_ING:增加CN中 - DEL_CN_ING:删除CN中 - CREATING_NODE:添加节点 - CREATE_NODE_FAILED:添加节点失败 - DELETING_NODE:删除节点 - DELETE_NODE_FAILED:删除节点失败 - REDISTRIBUTING:重分布中 - REDISTRIBUTE_FAILURE:重分布失败 - WAITING_REDISTRIBUTION:待重分布 - REDISTRIBUTION_PAUSED:重分布暂停 - ELB_BINDING:弹性负载均衡绑定中 - ELB_BIND_FAILED:弹性负载均衡绑定失败 - ELB_UNBINDING:弹性负载均衡解绑中 - ELB_UNBIND_FAILED:弹性负载均衡解绑失败 - ELB_SWITCHING:弹性负载均衡切换中 - ELB_SWITCHING_FAILED:弹性负载均衡切换失败 - NETWORK_CONFIGURING:网络配置中 - NETWORK_CONFIG_FAILED:网络配置失败 - DISK_EXPAND_FAILED:磁盘扩容失败 - DISK_EXPANDING:磁盘扩容中 - ACTIVE_STANDY_SWITCHOVER:主备恢复中 - ACTIVE_STANDY_SWITCHOVER_FAILURE:主备恢复失败 - CLUSTER_SHRINK_FAILED:缩容失败 - CLUSTER_SHRINKING:缩容中 - SHRINK_CHECK_FAILED:缩容检测失败 - SHRINK_CHECKING:缩容检测中 - FLAVOR_RESIZING_FAILED:规格变更失败 - FLAVOR_RESIZING:规格变更中 - MANAGE_IP_BIND_FAILED:登录开通失败 - MANAGE_IP_BINDING:登录开通中 - ORDER_PENDING:订单待支付 - FINE_GRAINED_RESTORING:细粒度恢复中 - DR_RECOVERING:容灾恢复中
TaskStatus string `json:"task_status"`
ParameterGroup *ParameterGroup `json:"parameter_group,omitempty"`
@@ -93,6 +93,8 @@ type ClusterDetail struct {
ResizeInfo *ResizeInfo `json:"resize_info,omitempty"`
FailedReasons *FailedReason `json:"failed_reasons,omitempty"`
+
+ Elb *ElbResp `json:"elb,omitempty"`
}
func (o ClusterDetail) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_elb_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_elb_info.go
new file mode 100644
index 00000000..0277a6ba
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_elb_info.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Elb返回体
+type ClusterElbInfo struct {
+
+ // 弹性负载均衡ID
+ Id *string `json:"id,omitempty"`
+
+ // 集群ID
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 弹性负载均衡名称
+ Name *string `json:"name,omitempty"`
+
+ // 弹性负载均衡描述
+ Description *string `json:"description,omitempty"`
+
+ // 弹性负载均衡地址
+ VipAddress *string `json:"vip_address,omitempty"`
+
+ // 子网ID
+ VipSubnetId *string `json:"vip_subnet_id,omitempty"`
+
+ // 租户ID
+ TenantId *string `json:"tenant_id,omitempty"`
+
+ // 弹性负载均衡类型。枚举值:Internal,External
+ Type *string `json:"type,omitempty"`
+
+ // 弹性负载均衡的管理状态。枚举值:ACTIVE,PENDING_CREATE,ERROR
+ AdminStateUp *bool `json:"admin_state_up,omitempty"`
+
+ // 绑定状态: 0为未绑定,1为已绑定
+ Bandwidth *int32 `json:"bandwidth,omitempty"`
+
+ // 虚拟私有云ID
+ VpcId *string `json:"vpc_id,omitempty"`
+}
+
+func (o ClusterElbInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterElbInfo struct{}"
+ }
+
+ return strings.Join([]string{"ClusterElbInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_info.go
index 5ca1dd80..86e474bf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_info.go
@@ -15,7 +15,7 @@ type ClusterInfo struct {
// 集群名称
Name string `json:"name"`
- // 集群状态,有效值包括: - CREATING:创建中 - AVAILABLE:可用 - UNAVAILABLE:不可用 - CREATION FAILED:创建失败 - FROZEN:已冻结
+ // 集群状态,有效值包括: - CREATING:创建中 - ACTIVE:可用 - FAILED:不可用 - CREATE_FAILED:创建失败 - DELETING:删除中 - DELETE_FAILED:删除失败 - DELETED:已删除 - FROZEN:已冻结
Status string `json:"status"`
// 数据仓库版本
@@ -27,7 +27,7 @@ type ClusterInfo struct {
// 集群创建时间,格式为 ISO8601:YYYY-MM-DDThh:mm:ssZ。
Created string `json:"created"`
- // 集群服务端口,取值范围8000~30000,默认值:8000
+ // 集群服务端口。
Port int32 `json:"port"`
// 集群的内网连接信息
@@ -68,13 +68,13 @@ type ClusterInfo struct {
// 集群的公网连接信息,如果未指定,则默认不使用公网连接信息。
PublicEndpoints []PublicEndpoints `json:"public_endpoints"`
- // 任务信息,由key、value组成。key值为正在进行的任务,value值为正在进行任务的进度。key值的有效值包括: - GROWING:扩容中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - REPAIRING: 修复中 - CREATING: 创建中
+ // 任务信息,由key、value组成。key值为正在进行的任务,value值为正在进行任务的进度。key值的有效值包括: - CREATING:创建中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - ADD_CN_ING:增加CN中 - DEL_CN_ING:删除CN中 - REDISTRIBUTING:重分布中 - ELB_BINDING:弹性负载均衡绑定中 - ELB_UNBINDING:弹性负载均衡解绑中 - ELB_SWITCHING:弹性负载均衡切换中 - NETWORK_CONFIGURING:网络配置中 - DISK_EXPANDING:磁盘扩容中 - ACTIVE_STANDY_SWITCHOVER:主备恢复中 - CLUSTER_SHRINKING:缩容中 - SHRINK_CHECKING:缩容检测中 - FLAVOR_RESIZING:规格变更中 - MANAGE_IP_BINDING:登录开通中 - FINE_GRAINED_RESTORING:细粒度恢复中 - DR_RECOVERING:容灾恢复中 - REPAIRING:修复中
ActionProgress map[string]string `json:"action_progress"`
// “可用”集群状态的子状态,有效值包括: - NORMAL:正常 - READONLY:只读 - REDISTRIBUTING:重分布中 - REDISTRIBUTION-FAILURE:重分布失败 - UNBALANCED:非均衡 - UNBALANCED | READONLY:非均衡,只读 - DEGRADED:节点故障 - DEGRADED | READONLY:节点故障,只读 - DEGRADED | UNBALANCED:节点故障,非均衡 - UNBALANCED | REDISTRIBUTING:非均衡,重分布中 - UNBALANCED | REDISTRIBUTION-FAILURE:非均衡,重分布失败 - READONLY | REDISTRIBUTION-FAILURE:只读,重分布失败 - UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:非均衡,只读,重分布失败 - DEGRADED | REDISTRIBUTION-FAILURE:节点故障,重分布失败 - DEGRADED | UNBALANCED | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY | REDISTRIBUTION-FAILURE:节点故障,非均衡,只读,重分布失败 - DEGRADED | UNBALANCED | READONLY:节点故障,非均衡,只读
SubStatus string `json:"sub_status"`
- // 集群管理任务,有效值包括: - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败
+ // 集群管理任务,有效值包括: - UNFREEZING:解冻中 - FREEZING:冻结中 - RESTORING:恢复中 - SNAPSHOTTING:快照中 - GROWING:扩容中 - REBOOTING:重启中 - SETTING_CONFIGURATION:安全设置配置中 - CONFIGURING_EXT_DATASOURCE:MRS连接配置中 - DELETING_EXT_DATASOURCE:删除MRS连接 - REBOOT_FAILURE:重启失败 - RESIZE_FAILURE:扩容失败 - ADD_CN_ING:增加CN中 - DEL_CN_ING:删除CN中 - CREATING_NODE:添加节点 - CREATE_NODE_FAILED:添加节点失败 - DELETING_NODE:删除节点 - DELETE_NODE_FAILED:删除节点失败 - REDISTRIBUTING:重分布中 - REDISTRIBUTE_FAILURE:重分布失败 - WAITING_REDISTRIBUTION:待重分布 - REDISTRIBUTION_PAUSED:重分布暂停 - ELB_BINDING:弹性负载均衡绑定中 - ELB_BIND_FAILED:弹性负载均衡绑定失败 - ELB_UNBINDING:弹性负载均衡解绑中 - ELB_UNBIND_FAILED:弹性负载均衡解绑失败 - ELB_SWITCHING:弹性负载均衡切换中 - ELB_SWITCHING_FAILED:弹性负载均衡切换失败 - NETWORK_CONFIGURING:网络配置中 - NETWORK_CONFIG_FAILED:网络配置失败 - DISK_EXPAND_FAILED:磁盘扩容失败 - DISK_EXPANDING:磁盘扩容中 - ACTIVE_STANDY_SWITCHOVER:主备恢复中 - ACTIVE_STANDY_SWITCHOVER_FAILURE:主备恢复失败 - CLUSTER_SHRINK_FAILED:缩容失败 - CLUSTER_SHRINKING:缩容中 - SHRINK_CHECK_FAILED:缩容检测失败 - SHRINK_CHECKING:缩容检测中 - FLAVOR_RESIZING_FAILED:规格变更失败 - FLAVOR_RESIZING:规格变更中 - MANAGE_IP_BIND_FAILED:登录开通失败 - MANAGE_IP_BINDING:登录开通中 - ORDER_PENDING:订单待支付 - FINE_GRAINED_RESTORING:细粒度恢复中 - DR_RECOVERING:容灾恢复中
TaskStatus string `json:"task_status"`
// 安全组ID
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_shrink_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_shrink_req.go
new file mode 100644
index 00000000..e547cb65
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_shrink_req.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群缩容请求
+type ClusterShrinkReq struct {
+
+ // 缩容数
+ ShrinkNumber int32 `json:"shrink_number"`
+
+ // 在线
+ Online bool `json:"online"`
+
+ // 数据库类型
+ Type string `json:"type"`
+
+ // 重试
+ Retry *bool `json:"retry,omitempty"`
+
+ // 执行备份
+ ForceBackup bool `json:"force_backup"`
+
+ // 是否需要委托
+ NeedAgency bool `json:"need_agency"`
+}
+
+func (o ClusterShrinkReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterShrinkReq struct{}"
+ }
+
+ return strings.Join([]string{"ClusterShrinkReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_snapshots.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_snapshots.go
new file mode 100644
index 00000000..21afa613
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_cluster_snapshots.go
@@ -0,0 +1,102 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群快照对象列表
+type ClusterSnapshots struct {
+
+ // 快照ID。
+ Id *string `json:"id,omitempty"`
+
+ // 快照名称。
+ Name *string `json:"name,omitempty"`
+
+ // 快照描述。
+ Description *string `json:"description,omitempty"`
+
+ // 快照创建的日期时间,格式为 ISO8601: YYYY-MM-DDThh:mm:ssZ。
+ Started *string `json:"started,omitempty"`
+
+ // 快照大小,单位 GB。
+ Size *float64 `json:"size,omitempty"`
+
+ // 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。 - RESTORING:恢复中。
+ Status *string `json:"status,omitempty"`
+
+ // 快照对应的集群ID
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ Datastore *Datastore `json:"datastore,omitempty"`
+
+ // 快照对应的集群名称。
+ ClusterName *string `json:"cluster_name,omitempty"`
+
+ // 快照更新时间。
+ Updated *string `json:"updated,omitempty"`
+
+ // 快照类型: - MANUAL :手动快照, - AUTO :自动快照。
+ Type *string `json:"type,omitempty"`
+
+ // 快照预计开始时间。
+ BakExpectedStartTime *string `json:"bak_expected_start_time,omitempty"`
+
+ // 快照保留天数。
+ BakKeepDay *int32 `json:"bak_keep_day,omitempty"`
+
+ // 快照策略。
+ BakPeriod *string `json:"bak_period,omitempty"`
+
+ // 数据库用户。
+ DbUser *string `json:"db_user,omitempty"`
+
+ // 快照进度。
+ Progress *string `json:"progress,omitempty"`
+
+ // 快照BakcupKey。
+ BackupKey *string `json:"backup_key,omitempty"`
+
+ // 增量快照,使用的前一个快照BakcupKey。
+ PriorBackupKey *string `json:"prior_backup_key,omitempty"`
+
+ // 对应全量快照BakcupKey。
+ BaseBackupKey *string `json:"base_backup_key,omitempty"`
+
+ // 备份介质。
+ BackupDevice *string `json:"backup_device,omitempty"`
+
+ // 累计快照大小。
+ TotalBackupSize *int32 `json:"total_backup_size,omitempty"`
+
+ // 对应全量快照名称。
+ BaseBackupName *string `json:"base_backup_name,omitempty"`
+
+ // 是否支持就地恢复。
+ SupportInplaceRestore *bool `json:"support_inplace_restore,omitempty"`
+
+ // 是否是细粒度备份。
+ FineGrainedBackup *bool `json:"fine_grained_backup,omitempty"`
+
+ // 备份级别。
+ BackupLevel *string `json:"backup_level,omitempty"`
+
+ FineGrainedBackupDetail *FineGrainedSnapshotDetail `json:"fine_grained_backup_detail,omitempty"`
+
+ // guestAgent版本。
+ GuestAgentVersion *string `json:"guest_agent_version,omitempty"`
+
+ // 集群状态。
+ ClusterStatus *string `json:"cluster_status,omitempty"`
+}
+
+func (o ClusterSnapshots) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ClusterSnapshots struct{}"
+ }
+
+ return strings.Join([]string{"ClusterSnapshots", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter.go
new file mode 100644
index 00000000..fb29498e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群使用的参数配置项详情。
+type ConfigurationParameter struct {
+
+ // 参数名称。
+ Name string `json:"name"`
+
+ // 参数值。
+ Values []ConfigurationParameterUnit `json:"values"`
+
+ // 参数单位。
+ Unit string `json:"unit"`
+
+ // 参数类型,包括boolean、string、integer、float、list。
+ Type string `json:"type"`
+
+ // 是否只读。
+ Readonly bool `json:"readonly"`
+
+ // 参数值范围。
+ ValueRange string `json:"value_range"`
+
+ // 是否需要重启。
+ RestartRequired bool `json:"restart_required"`
+
+ // 参数描述。
+ Description string `json:"description"`
+}
+
+func (o ConfigurationParameter) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationParameter struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationParameter", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_unit.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_unit.go
new file mode 100644
index 00000000..4bb3f81a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_unit.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群使用的参数配置值。
+type ConfigurationParameterUnit struct {
+
+ // 参数类型,包括:cn、dn。
+ Type string `json:"type"`
+
+ // 参数值。
+ Value string `json:"value"`
+
+ // 参数默认值。
+ DefaultValue string `json:"default_value"`
+}
+
+func (o ConfigurationParameterUnit) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationParameterUnit struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationParameterUnit", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_value.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_value.go
new file mode 100644
index 00000000..a7c3ef18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_value.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群参数配置详情。
+type ConfigurationParameterValue struct {
+
+ // 参数类型,包括:cn、dn。
+ Type string `json:"type"`
+
+ // 参数名称。
+ Name string `json:"name"`
+
+ // 参数值。
+ Value string `json:"value"`
+}
+
+func (o ConfigurationParameterValue) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationParameterValue struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationParameterValue", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_values.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_values.go
new file mode 100644
index 00000000..fc5909e9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_configuration_parameter_values.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群参数配置列表信息
+type ConfigurationParameterValues struct {
+
+ // 集群参数配置列表
+ Configurations []ConfigurationParameterValue `json:"configurations"`
+}
+
+func (o ConfigurationParameterValues) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationParameterValues struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationParameterValues", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_coordinator_node.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_coordinator_node.go
new file mode 100644
index 00000000..ac5209d7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_coordinator_node.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// CN节点详情。
+type CoordinatorNode struct {
+
+ // 节点ID。
+ Id string `json:"id"`
+
+ // 节点名称。
+ Name string `json:"name"`
+
+ // 内网IP。
+ PrivateIp string `json:"private_ip"`
+}
+
+func (o CoordinatorNode) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CoordinatorNode struct{}"
+ }
+
+ return strings.Join([]string{"CoordinatorNode", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_request.go
new file mode 100644
index 00000000..62972c75
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CopySnapshotRequest struct {
+
+ // 快照ID
+ SnapshotId string `json:"snapshot_id"`
+
+ Body *LinkCopyReq `json:"body,omitempty"`
+}
+
+func (o CopySnapshotRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopySnapshotRequest struct{}"
+ }
+
+ return strings.Join([]string{"CopySnapshotRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_response.go
new file mode 100644
index 00000000..f40c5f09
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_copy_snapshot_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CopySnapshotResponse struct {
+
+ // 快照id。
+ SnapshotId *string `json:"snapshot_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CopySnapshotResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopySnapshotResponse struct{}"
+ }
+
+ return strings.Join([]string{"CopySnapshotResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_request.go
new file mode 100644
index 00000000..c98d5ca7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateAlarmSubRequest struct {
+ Body *AlarmSubRequest `json:"body,omitempty"`
+}
+
+func (o CreateAlarmSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_response.go
new file mode 100644
index 00000000..55baa9e5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_alarm_sub_response.go
@@ -0,0 +1,54 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateAlarmSubResponse struct {
+
+ // 告警订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 告警订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 是否开启订阅
+ Enable *string `json:"enable,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务,支持DWS,DLI,DGC,CloudTable,CDM,GES,CSS
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息主题类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateAlarmSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAlarmSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateAlarmSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns.go
new file mode 100644
index 00000000..8e0302f6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 申请的域名信息。
+type CreateClusterDns struct {
+
+ // 待创建的域名。
+ Name string `json:"name"`
+
+ // 域名类型。 - public:公网域名。 - private:内网域名。
+ Type string `json:"type"`
+
+ // 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。 - 取值范围:300~2147483647。 - 默认值为300s。
+ Ttl int32 `json:"ttl"`
+}
+
+func (o CreateClusterDns) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterDns struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterDns", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_request.go
new file mode 100644
index 00000000..69a47b4a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateClusterDnsRequest struct {
+
+ // 集群的ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *CreateClusterDns `json:"body,omitempty"`
+}
+
+func (o CreateClusterDnsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterDnsRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterDnsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_response.go
new file mode 100644
index 00000000..15c073c6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_dns_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateClusterDnsResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateClusterDnsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterDnsResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterDnsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_info.go
index 1c77835c..d236779c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_info.go
@@ -12,7 +12,7 @@ type CreateClusterInfo struct {
// 节点类型
NodeType string `json:"node_type"`
- // 集群节点数量,取值范围为2~256。
+ // 集群节点数量,集群模式取值范围为3~256,实时数仓(单机模式)取值为1。
NumberOfNode int32 `json:"number_of_node"`
// 指定子网ID,用于集群网络配置。
@@ -41,7 +41,7 @@ type CreateClusterInfo struct {
PublicIp *PublicIp `json:"public_ip,omitempty"`
- // CN部署量,取值范围为2~集群节点数-1,最大值为20,默认值为3。
+ // CN部署量,取值范围为2~集群节点数,最大值为20,默认值为3。
NumberOfCn *int32 `json:"number_of_cn,omitempty"`
// 企业项目ID,对集群指定企业项目,如果未指定,则使用默认企业项目“default”的ID,即0。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_request.go
new file mode 100644
index 00000000..f7aa34a9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateClusterV2Request struct {
+ Body *V2CreateClusterReq `json:"body,omitempty"`
+}
+
+func (o CreateClusterV2Request) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterV2Request struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterV2Request", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_response.go
new file mode 100644
index 00000000..2b123b5a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_v2_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateClusterV2Response struct {
+ Cluster *Cluster `json:"cluster,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateClusterV2Response) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterV2Response struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterV2Response", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_request.go
new file mode 100644
index 00000000..4ad4cdf8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateClusterWorkloadRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *WorkloadStatusReq `json:"body,omitempty"`
+}
+
+func (o CreateClusterWorkloadRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterWorkloadRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterWorkloadRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_response.go
new file mode 100644
index 00000000..5197c40c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_cluster_workload_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateClusterWorkloadResponse struct {
+
+ // 响应编码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 响应信息。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateClusterWorkloadResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateClusterWorkloadResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateClusterWorkloadResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_request.go
new file mode 100644
index 00000000..8fe696d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateDataSourceRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *ExtDataSourceReq `json:"body,omitempty"`
+}
+
+func (o CreateDataSourceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDataSourceRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateDataSourceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_response.go
new file mode 100644
index 00000000..1c091913
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_data_source_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateDataSourceResponse struct {
+
+ // 数据源id。
+ Id *string `json:"id,omitempty"`
+
+ // 创建数据源job_id。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateDataSourceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDataSourceResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateDataSourceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery.go
new file mode 100644
index 00000000..05c58e17
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery.go
@@ -0,0 +1,40 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateDisasterRecovery struct {
+
+ // 名称
+ Name string `json:"name"`
+
+ // 容灾类型
+ DrType string `json:"dr_type"`
+
+ // 主集群ID
+ PrimaryClusterId string `json:"primary_cluster_id"`
+
+ // 备集群ID
+ StandbyClusterId string `json:"standby_cluster_id"`
+
+ // 同步周期
+ DrSyncPeriod string `json:"dr_sync_period"`
+
+ // 主集群OBS桶
+ PrimaryObsBucket *string `json:"primary_obs_bucket,omitempty"`
+
+ // 备集群obs桶
+ StandbyObsBucket *string `json:"standby_obs_bucket,omitempty"`
+}
+
+func (o CreateDisasterRecovery) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecovery struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecovery", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_req.go
new file mode 100644
index 00000000..ef2a49a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_req.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateDisasterRecoveryReq struct {
+ DisasterRecovery *CreateDisasterRecovery `json:"disaster_recovery"`
+}
+
+func (o CreateDisasterRecoveryReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecoveryReq struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecoveryReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_request.go
new file mode 100644
index 00000000..b9fdf12d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateDisasterRecoveryRequest struct {
+ Body *CreateDisasterRecoveryReq `json:"body,omitempty"`
+}
+
+func (o CreateDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_response.go
new file mode 100644
index 00000000..8f73bf91
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_disaster_recovery_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateDisasterRecoveryResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_request.go
new file mode 100644
index 00000000..6691f883
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateEventSubRequest struct {
+ Body *EventSubRequest `json:"body,omitempty"`
+}
+
+func (o CreateEventSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateEventSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateEventSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_response.go
new file mode 100644
index 00000000..062e9963
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_event_sub_response.go
@@ -0,0 +1,66 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateEventSubResponse struct {
+
+ // 订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件源类型
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable *int32 `json:"enable,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息通知主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息通知主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息通知类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateEventSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateEventSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateEventSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_request.go
new file mode 100644
index 00000000..e24a8b93
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateSnapshotPolicyRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *BackupPolicy `json:"body,omitempty"`
+}
+
+func (o CreateSnapshotPolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateSnapshotPolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateSnapshotPolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_response.go
new file mode 100644
index 00000000..fc8c8afd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_snapshot_policy_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateSnapshotPolicyResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateSnapshotPolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateSnapshotPolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateSnapshotPolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_request.go
new file mode 100644
index 00000000..2db748d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateWorkloadPlanRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *WorkloadPlanReq `json:"body,omitempty"`
+}
+
+func (o CreateWorkloadPlanRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateWorkloadPlanRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateWorkloadPlanRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_response.go
new file mode 100644
index 00000000..a57bcd02
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_create_workload_plan_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateWorkloadPlanResponse struct {
+
+ // 响应编码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 响应信息。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateWorkloadPlanResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateWorkloadPlanResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateWorkloadPlanResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_datastore.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_datastore.go
new file mode 100644
index 00000000..1b42eb8c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_datastore.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群版本
+type Datastore struct {
+
+ // 集群类型。
+ Type *string `json:"type,omitempty"`
+
+ // 集群版本。
+ Version *string `json:"version,omitempty"`
+}
+
+func (o Datastore) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Datastore struct{}"
+ }
+
+ return strings.Join([]string{"Datastore", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_request.go
new file mode 100644
index 00000000..ded47cc5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteAlarmSubRequest struct {
+
+ // 告警订阅ID
+ AlarmSubId string `json:"alarm_sub_id"`
+}
+
+func (o DeleteAlarmSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAlarmSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAlarmSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_response.go
new file mode 100644
index 00000000..ffd76013
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_alarm_sub_response.go
@@ -0,0 +1,54 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteAlarmSubResponse struct {
+
+ // 告警订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 告警订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 是否开启订阅
+ Enable *string `json:"enable,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务,支持DWS,DLI,DGC,CloudTable,CDM,GES,CSS
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息主题类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteAlarmSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAlarmSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAlarmSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_request.go
new file mode 100644
index 00000000..37b9abf1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteClusterDnsRequest struct {
+
+ // 集群的ID
+ ClusterId string `json:"cluster_id"`
+
+ // 域名类型,支持删除公网域名。
+ Type string `json:"type"`
+}
+
+func (o DeleteClusterDnsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteClusterDnsRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteClusterDnsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_response.go
new file mode 100644
index 00000000..5d3a30ca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_cluster_dns_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteClusterDnsResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteClusterDnsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteClusterDnsResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteClusterDnsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_request.go
new file mode 100644
index 00000000..7f2d1939
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteDataSourceRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 数据源id
+ ExtDataSourceId string `json:"ext_data_source_id"`
+}
+
+func (o DeleteDataSourceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDataSourceRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDataSourceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_response.go
new file mode 100644
index 00000000..6a5ad395
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_data_source_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteDataSourceResponse struct {
+
+ // 删除数据源job_id。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteDataSourceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDataSourceResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDataSourceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_request.go
new file mode 100644
index 00000000..646cb6fa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteDisasterRecoveryRequest struct {
+
+ // 集群的ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o DeleteDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_response.go
new file mode 100644
index 00000000..dfa67659
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_disaster_recovery_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteDisasterRecoveryResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_request.go
new file mode 100644
index 00000000..edf427c5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteEventSubRequest struct {
+
+ // 事件订阅ID
+ EventSubId string `json:"event_sub_id"`
+}
+
+func (o DeleteEventSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteEventSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteEventSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_response.go
new file mode 100644
index 00000000..081a1098
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_event_sub_response.go
@@ -0,0 +1,66 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteEventSubResponse struct {
+
+ // 订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件源类型
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable *int32 `json:"enable,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息通知主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息通知主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息通知类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteEventSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteEventSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteEventSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_request.go
new file mode 100644
index 00000000..67efec00
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteSnapshotPolicyRequest struct {
+
+ // 集群ID。
+ ClusterId string `json:"cluster_id"`
+
+ // 快照策略ID。
+ Id string `json:"id"`
+}
+
+func (o DeleteSnapshotPolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteSnapshotPolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteSnapshotPolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_response.go
new file mode 100644
index 00000000..ce9464db
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_snapshot_policy_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteSnapshotPolicyResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteSnapshotPolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteSnapshotPolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteSnapshotPolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_request.go
new file mode 100644
index 00000000..ed06868b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteWorkloadQueueRequest struct {
+
+ // 集群ID。
+ ClusterId string `json:"cluster_id"`
+
+ // 逻辑集群名称。
+ LogicalClusterName *string `json:"logical_cluster_name,omitempty"`
+
+ // 工作负载队列名称。
+ WorkloadQueueName string `json:"workload_queue_name"`
+}
+
+func (o DeleteWorkloadQueueRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteWorkloadQueueRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteWorkloadQueueRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_response.go
new file mode 100644
index 00000000..397e7cac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_delete_workload_queue_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteWorkloadQueueResponse struct {
+
+ // 响应编码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 响应信息。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteWorkloadQueueResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteWorkloadQueueResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteWorkloadQueueResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_request.go
new file mode 100644
index 00000000..e4dcc05b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DisassociateEipRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 集群绑定的弹性IP
+ EipId string `json:"eip_id"`
+}
+
+func (o DisassociateEipRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateEipRequest struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateEipRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_response.go
new file mode 100644
index 00000000..cf11ae39
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_eip_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DisassociateEipResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DisassociateEipResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateEipResponse struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateEipResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_request.go
new file mode 100644
index 00000000..a6a5285c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DisassociateElbRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 集群已绑定的弹性负载均衡ID
+ ElbId string `json:"elb_id"`
+}
+
+func (o DisassociateElbRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateElbRequest struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateElbRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_response.go
new file mode 100644
index 00000000..3016c94c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disassociate_elb_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DisassociateElbResponse struct {
+
+ // 任务ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DisassociateElbResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisassociateElbResponse struct{}"
+ }
+
+ return strings.Join([]string{"DisassociateElbResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery.go
new file mode 100644
index 00000000..beadfc00
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery.go
@@ -0,0 +1,76 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DisasterRecovery struct {
+
+ // ID
+ Id *string `json:"id,omitempty"`
+
+ // 状态
+ Status *string `json:"status,omitempty"`
+
+ // 名称
+ Name *string `json:"name,omitempty"`
+
+ // 容灾类型
+ DrType *string `json:"dr_type,omitempty"`
+
+ // 主集群ID
+ PrimaryClusterId *string `json:"primary_cluster_id,omitempty"`
+
+ // 主集群名称
+ PrimaryClusterName *string `json:"primary_cluster_name,omitempty"`
+
+ // 备集群ID
+ StandbyClusterId *string `json:"standby_cluster_id,omitempty"`
+
+ // 备集群名称
+ StandbyClusterName *string `json:"standby_cluster_name,omitempty"`
+
+ // 主集群角色
+ PrimaryClusterRole *string `json:"primary_cluster_role,omitempty"`
+
+ // 备集群角色
+ StandbyClusterRole *string `json:"standby_cluster_role,omitempty"`
+
+ // 主集群状态
+ PrimaryClusterStatus *string `json:"primary_cluster_status,omitempty"`
+
+ // 备集群状态
+ StandbyClusterStatus *string `json:"standby_cluster_status,omitempty"`
+
+ // 主集群region
+ PrimaryClusterRegion *string `json:"primary_cluster_region,omitempty"`
+
+ // 备集群region
+ StandbyClusterRegion *string `json:"standby_cluster_region,omitempty"`
+
+ // 主集群project_id
+ PrimaryClusterProjectId *string `json:"primary_cluster_project_id,omitempty"`
+
+ // 备集群project_id
+ StandbyClusterProjectId *string `json:"standby_cluster_project_id,omitempty"`
+
+ // 最近同步时间
+ LastDisasterTime *string `json:"last_disaster_time,omitempty"`
+
+ // 启动时间
+ StartTime *string `json:"start_time,omitempty"`
+
+ // 创建时间
+ CreateTime *string `json:"create_time,omitempty"`
+}
+
+func (o DisasterRecovery) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisasterRecovery struct{}"
+ }
+
+ return strings.Join([]string{"DisasterRecovery", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery_id.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery_id.go
new file mode 100644
index 00000000..07864820
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disaster_recovery_id.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DisasterRecoveryId struct {
+
+ // 容灾ID
+ Id *string `json:"id,omitempty"`
+}
+
+func (o DisasterRecoveryId) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DisasterRecoveryId struct{}"
+ }
+
+ return strings.Join([]string{"DisasterRecoveryId", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disk_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disk_resp.go
new file mode 100644
index 00000000..28e23c9b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_disk_resp.go
@@ -0,0 +1,58 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DiskResp struct {
+
+ // 实例名称
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 主机名称
+ HostName *string `json:"host_name,omitempty"`
+
+ // 磁盘名称
+ DiskName *string `json:"disk_name,omitempty"`
+
+ // 磁盘类型(系统盘、数据盘、日志盘)。
+ DiskType *string `json:"disk_type,omitempty"`
+
+ // 磁盘总容量(GB)。
+ Total *float64 `json:"total,omitempty"`
+
+ // 磁盘已使用容量(GB)。
+ Used *float64 `json:"used,omitempty"`
+
+ // 磁盘可用容量(GB)。
+ Available *float64 `json:"available,omitempty"`
+
+ // 磁盘使用率(%)。
+ UsedPercentage *float64 `json:"used_percentage,omitempty"`
+
+ // IO等待时间(ms)。
+ Await *float64 `json:"await,omitempty"`
+
+ // IO服务时间(ms)。
+ Svctm *float64 `json:"svctm,omitempty"`
+
+ // IO使用率(%)。
+ Util *float64 `json:"util,omitempty"`
+
+ // 磁盘读速率(KB/s)。
+ ReadRate *float64 `json:"read_rate,omitempty"`
+
+ // 磁盘写速率(KB/s)。
+ WriteRate *float64 `json:"write_rate,omitempty"`
+}
+
+func (o DiskResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DiskResp struct{}"
+ }
+
+ return strings.Join([]string{"DiskResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_dss_pool.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_dss_pool.go
new file mode 100644
index 00000000..236f7724
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_dss_pool.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 专属分布式存储池详情。
+type DssPool struct {
+
+ // 专属分布式存储池名称。
+ Id string `json:"id"`
+
+ // 专属分布式存储池ID。
+ Name string `json:"name"`
+
+ // 专属分布式存储池的存储类型。 - SSD:超高IO专属分布式存储池。
+ Type string `json:"type"`
+
+ // 专属分布式存储池归属的project_id。
+ ProjectId string `json:"project_id"`
+
+ // 专属分布式存储池所属可用区。
+ AvailabilityZone string `json:"availability_zone"`
+
+ // 申请的专属分布式存储容量,单位TB。
+ Capacity int32 `json:"capacity"`
+
+ // 专属分布式存储池的状态。 - available:专属分布式存储池处于可用状态。 - deploying:专属分布式存储池处于正在部署的过程中,不可使用。 - extending:专属分布式存储池处于正在扩容的过程中,可使用。
+ Status string `json:"status"`
+
+ // 专属分布式存储池的创建时间。 - 时间格式:UTC YYYY-MM-DDTHH:MM:SS
+ CreatedAt string `json:"created_at"`
+}
+
+func (o DssPool) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DssPool struct{}"
+ }
+
+ return strings.Join([]string{"DssPool", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_elb_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_elb_resp.go
new file mode 100644
index 00000000..a14bceef
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_elb_resp.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 集群ELB的相关信息
+type ElbResp struct {
+
+ // 公网ip
+ PublicIp *string `json:"public_ip,omitempty"`
+
+ // 内网ip
+ PrivateIp *string `json:"private_ip,omitempty"`
+
+ // Elb终端地址
+ PrivateEndpoint *string `json:"private_endpoint,omitempty"`
+
+ // Elb名称
+ Name *string `json:"name,omitempty"`
+
+ // Elb的ID
+ Id *string `json:"id,omitempty"`
+
+ // Elb所属VPC的ID
+ VpcId *string `json:"vpc_id,omitempty"`
+}
+
+func (o ElbResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ElbResp struct{}"
+ }
+
+ return strings.Join([]string{"ElbResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_response.go
new file mode 100644
index 00000000..a730843d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_response.go
@@ -0,0 +1,65 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 事件返回体
+type EventResponse struct {
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件描述
+ Description *string `json:"description,omitempty"`
+
+ // 事件ID
+ EventId *string `json:"event_id,omitempty"`
+
+ // 事件定义名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件显示名称
+ DisplayName *string `json:"display_name,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件源类别
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 时间
+ OccurTime *int64 `json:"occur_time,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件源名称
+ SourceName *string `json:"source_name,omitempty"`
+
+ // 状态
+ Status *int32 `json:"status,omitempty"`
+
+ // 事件主题
+ Subject *string `json:"subject,omitempty"`
+
+ // 事件信息
+ Context *string `json:"context,omitempty"`
+}
+
+func (o EventResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EventResponse struct{}"
+ }
+
+ return strings.Join([]string{"EventResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_spec_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_spec_response.go
new file mode 100644
index 00000000..a1825348
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_spec_response.go
@@ -0,0 +1,47 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 事件配置对象
+type EventSpecResponse struct {
+
+ // 事件配置ID
+ Id *string `json:"id,omitempty"`
+
+ // 事件配置定义名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件配置显示名称
+ DisplayName *string `json:"display_name,omitempty"`
+
+ // 事件配置描述
+ Description *string `json:"description,omitempty"`
+
+ // 事件主题
+ Subject *string `json:"subject,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件源类型
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+}
+
+func (o EventSpecResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EventSpecResponse struct{}"
+ }
+
+ return strings.Join([]string{"EventSpecResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_request.go
new file mode 100644
index 00000000..debe7a05
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_request.go
@@ -0,0 +1,53 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建事件订阅请求体
+type EventSubRequest struct {
+
+ // 事件订阅名称
+ Name string `json:"name"`
+
+ // 事件源类型支持cluster,backup,disaster-recovery
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别支持management,monitor,security,system alarm
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别支持normal,warning
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable int32 `json:"enable"`
+
+ // 消息通知地址
+ NotificationTarget string `json:"notification_target"`
+
+ // 消息主题名称
+ NotificationTargetName string `json:"notification_target_name"`
+
+ // 消息通知类型只支持SMN
+ NotificationTargetType string `json:"notification_target_type"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+}
+
+func (o EventSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EventSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"EventSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_update_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_update_request.go
new file mode 100644
index 00000000..c19bb857
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_sub_update_request.go
@@ -0,0 +1,50 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新订阅事件请求体
+type EventSubUpdateRequest struct {
+
+ // 事件订阅名称
+ Name string `json:"name"`
+
+ // 事件源类型支持cluster,backup,disaster-recovery
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别支持management,monitor,security,system alarm
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别支持normal,warning
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable int32 `json:"enable"`
+
+ // 消息通知地址
+ NotificationTarget string `json:"notification_target"`
+
+ // 消息主题名称
+ NotificationTargetName string `json:"notification_target_name"`
+
+ // 消息通知类型只支持SMN
+ NotificationTargetType string `json:"notification_target_type"`
+}
+
+func (o EventSubUpdateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EventSubUpdateRequest struct{}"
+ }
+
+ return strings.Join([]string{"EventSubUpdateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_subscription_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_subscription_response.go
new file mode 100644
index 00000000..117dfdc6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_event_subscription_response.go
@@ -0,0 +1,65 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 事件订阅详情
+type EventSubscriptionResponse struct {
+
+ // 订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件源类型
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable *int32 `json:"enable,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息通知主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息通知主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息通知类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+}
+
+func (o EventSubscriptionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EventSubscriptionResponse struct{}"
+ }
+
+ return strings.Join([]string{"EventSubscriptionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_request.go
new file mode 100644
index 00000000..bc1f2283
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ExecuteRedistributionClusterRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *RedistributionReq `json:"body,omitempty"`
+}
+
+func (o ExecuteRedistributionClusterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExecuteRedistributionClusterRequest struct{}"
+ }
+
+ return strings.Join([]string{"ExecuteRedistributionClusterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_response.go
new file mode 100644
index 00000000..1e036c65
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_execute_redistribution_cluster_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ExecuteRedistributionClusterResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ExecuteRedistributionClusterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExecuteRedistributionClusterResponse struct{}"
+ }
+
+ return strings.Join([]string{"ExecuteRedistributionClusterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage.go
new file mode 100644
index 00000000..80c5be7b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 磁盘扩容后单节点有效存储容量(GB / 节点),集群总容量 = 单节点容量 x 节点数量。
+type ExpandInstanceStorage struct {
+
+ // 磁盘扩容后单节点有效存储容量(GB / 节点)。该容量必须大于当前单节点有效容量,小于等于集群规格支持的单节点最大容量,扩容容量为规格支持的步长倍数。集群规格配置详情可根据“查询节点类型”查询。
+ NewSize int32 `json:"new_size"`
+}
+
+func (o ExpandInstanceStorage) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExpandInstanceStorage struct{}"
+ }
+
+ return strings.Join([]string{"ExpandInstanceStorage", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_request.go
new file mode 100644
index 00000000..3f1277d1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ExpandInstanceStorageRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ Body *ExpandInstanceStorage `json:"body,omitempty"`
+}
+
+func (o ExpandInstanceStorageRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExpandInstanceStorageRequest struct{}"
+ }
+
+ return strings.Join([]string{"ExpandInstanceStorageRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_response.go
new file mode 100644
index 00000000..5703d595
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_expand_instance_storage_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ExpandInstanceStorageResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ExpandInstanceStorageResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExpandInstanceStorageResponse struct{}"
+ }
+
+ return strings.Join([]string{"ExpandInstanceStorageResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source.go
new file mode 100644
index 00000000..fd736933
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source.go
@@ -0,0 +1,65 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 数据源信息
+type ExtDataSource struct {
+
+ // id。
+ Id *string `json:"id,omitempty"`
+
+ // 数据源名称。
+ Name *string `json:"name,omitempty"`
+
+ // 类型。
+ Type *string `json:"type,omitempty"`
+
+ // 数据库。
+ ConnectInfo *string `json:"connect_info,omitempty"`
+
+ // 用户名。
+ UserName *string `json:"user_name,omitempty"`
+
+ // 版本。
+ Version *string `json:"version,omitempty"`
+
+ // 配置状态。
+ ConfigureStatus *string `json:"configure_status,omitempty"`
+
+ // 状态。
+ Status *string `json:"status,omitempty"`
+
+ // 数据源id。
+ DataSourceId *string `json:"data_source_id,omitempty"`
+
+ // 创建时间。
+ Created *string `json:"created,omitempty"`
+
+ // 更新时间。
+ Updated *string `json:"updated,omitempty"`
+
+ // 数据源更新时间。
+ DataSourceUpdated *string `json:"data_source_updated,omitempty"`
+
+ // 扩展信息。
+ ExtendProperties *interface{} `json:"extend_properties,omitempty"`
+
+ // 描述。
+ Description *string `json:"description,omitempty"`
+
+ // 失败原因。
+ FailReason *string `json:"fail_reason,omitempty"`
+}
+
+func (o ExtDataSource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExtDataSource struct{}"
+ }
+
+ return strings.Join([]string{"ExtDataSource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source_req.go
new file mode 100644
index 00000000..c3f52a02
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_ext_data_source_req.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 数据源请求
+type ExtDataSourceReq struct {
+
+ // 数据源id
+ DataSourceId *string `json:"data_source_id,omitempty"`
+
+ // 类型
+ Type string `json:"type"`
+
+ // 数据源名称
+ DataSourceName string `json:"data_source_name"`
+
+ // 用户名
+ UserName string `json:"user_name"`
+
+ // 密码
+ UserPwd *string `json:"user_pwd,omitempty"`
+
+ // 描述
+ Description *string `json:"description,omitempty"`
+
+ // 重启
+ Reboot *bool `json:"reboot,omitempty"`
+
+ // 数据库
+ ConnectInfo *string `json:"connect_info,omitempty"`
+}
+
+func (o ExtDataSourceReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ExtDataSourceReq struct{}"
+ }
+
+ return strings.Join([]string{"ExtDataSourceReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_fine_grained_snapshot_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_fine_grained_snapshot_detail.go
new file mode 100644
index 00000000..7087a69e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_fine_grained_snapshot_detail.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 细粒度备份信息
+type FineGrainedSnapshotDetail struct {
+
+ // 数据库。
+ Database *string `json:"database,omitempty"`
+
+ // 模式列表。
+ SchemaList *[]string `json:"schema_list,omitempty"`
+
+ // 表集合。
+ TableList *[]string `json:"table_list,omitempty"`
+}
+
+func (o FineGrainedSnapshotDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "FineGrainedSnapshotDetail struct{}"
+ }
+
+ return strings.Join([]string{"FineGrainedSnapshotDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_host_overview_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_host_overview_response.go
new file mode 100644
index 00000000..2d6331bc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_host_overview_response.go
@@ -0,0 +1,94 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type HostOverviewResponse struct {
+
+ // 实例名称
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 主机名称
+ HostName *string `json:"host_name,omitempty"`
+
+ // 主机状态
+ HostStat *string `json:"host_stat,omitempty"`
+
+ // IP地址
+ WorkIp *string `json:"work_ip,omitempty"`
+
+ // 系统中未使用的内存(GB)。
+ MemFree *float64 `json:"mem_free,omitempty"`
+
+ // 总内存(GB)。
+ MemTotal *float64 `json:"mem_total,omitempty"`
+
+ // 内存使用率(GB)。
+ MemUsage *float64 `json:"mem_usage,omitempty"`
+
+ // 缓存内存(GB)。
+ MemCached *float64 `json:"mem_cached,omitempty"`
+
+ // 缓冲内存(MB)。
+ MemBuffer *float64 `json:"mem_buffer,omitempty"`
+
+ // ram暂存在swap中的大小(GB)。
+ SwapFree *float64 `json:"swap_free,omitempty"`
+
+ // 交换空间总和(GB)。
+ SwapTotal *float64 `json:"swap_total,omitempty"`
+
+ // CPU使用率(%)。
+ CpuUsage *float64 `json:"cpu_usage,omitempty"`
+
+ // 系统CPU占用率(%)。
+ CpuUsageSys *float64 `json:"cpu_usage_sys,omitempty"`
+
+ // 用户CPU占用率(%)。
+ CpuUsageUsr *float64 `json:"cpu_usage_usr,omitempty"`
+
+ // 空闲CPU占用率(%)。
+ CpuIdle *float64 `json:"cpu_idle,omitempty"`
+
+ // IO等待(%)。
+ CpuIowait *float64 `json:"cpu_iowait,omitempty"`
+
+ // 磁盘平均使用率(%)。
+ DiskUsageAvg *float64 `json:"disk_usage_avg,omitempty"`
+
+ // 磁盘总容量(GB)。
+ DiskTotal *float64 `json:"disk_total,omitempty"`
+
+ // 磁盘使用容量(GB)。
+ DiskUsed *float64 `json:"disk_used,omitempty"`
+
+ // 磁盘可用容量(GB)。
+ DiskAvailable *float64 `json:"disk_available,omitempty"`
+
+ // 磁盘IO(KB/s)。
+ DiskIo *float64 `json:"disk_io,omitempty"`
+
+ // 磁盘读速率(KB/s)。
+ DiskIoRead *float64 `json:"disk_io_read,omitempty"`
+
+ // 磁盘写速率(KB/s)。
+ DiskIoWrite *float64 `json:"disk_io_write,omitempty"`
+
+ // TCP协议栈重传率(%)。
+ TcpResendRate *float64 `json:"tcp_resend_rate,omitempty"`
+
+ // 网络IO(KB/s)。
+ NetIo *float64 `json:"net_io,omitempty"`
+}
+
+func (o HostOverviewResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "HostOverviewResponse struct{}"
+ }
+
+ return strings.Join([]string{"HostOverviewResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_indicator_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_indicator_info.go
new file mode 100644
index 00000000..7e9a43ce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_indicator_info.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type IndicatorInfo struct {
+
+ // 监控指标名称。
+ IndicatorName *string `json:"indicator_name,omitempty"`
+
+ // 采集模块名称。
+ PluginName *string `json:"plugin_name,omitempty"`
+
+ // 默认采集频率。
+ DefaultCollectRate *string `json:"default_collect_rate,omitempty"`
+
+ // 支持的集群版本。
+ SupportDatastoreVersion *string `json:"support_datastore_version,omitempty"`
+}
+
+func (o IndicatorInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "IndicatorInfo struct{}"
+ }
+
+ return strings.Join([]string{"IndicatorInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_link_copy_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_link_copy_req.go
new file mode 100644
index 00000000..3a816082
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_link_copy_req.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 快照复制请求
+type LinkCopyReq struct {
+
+ // 快照名称
+ BackupName string `json:"backup_name"`
+
+ // 描述
+ Description *string `json:"description,omitempty"`
+}
+
+func (o LinkCopyReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "LinkCopyReq struct{}"
+ }
+
+ return strings.Join([]string{"LinkCopyReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_request.go
new file mode 100644
index 00000000..2e3ac039
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmConfigsRequest struct {
+
+ // 偏移量
+ Offset *string `json:"offset,omitempty"`
+
+ // 限制条目数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListAlarmConfigsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmConfigsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmConfigsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_response.go
new file mode 100644
index 00000000..94dcb76b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_configs_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmConfigsResponse struct {
+
+ // 告警配置总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 告警配置列表
+ AlarmConfigs *[]AlarmConfigResponse `json:"alarm_configs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmConfigsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmConfigsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmConfigsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_request.go
new file mode 100644
index 00000000..66eae5d3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmDetailRequest struct {
+
+ // 时区
+ TimeZone string `json:"time_zone"`
+
+ // 当前页
+ Offset *string `json:"offset,omitempty"`
+
+ // 总页数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListAlarmDetailRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmDetailRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmDetailRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_response.go
new file mode 100644
index 00000000..7f182ca8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_detail_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmDetailResponse struct {
+
+ // 告警详情总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 告警列表
+ AlarmDetails *[]AlarmDetailResponse `json:"alarm_details,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmDetailResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_request.go
new file mode 100644
index 00000000..a75e5e77
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmStatisticRequest struct {
+
+ // 时区
+ TimeZone string `json:"time_zone"`
+}
+
+func (o ListAlarmStatisticRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmStatisticRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmStatisticRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_response.go
new file mode 100644
index 00000000..703a2b45
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_statistic_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmStatisticResponse struct {
+
+ // 告警统计列表
+ AlarmStatistics *[]AlarmStatisticResponse `json:"alarm_statistics,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmStatisticResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmStatisticResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmStatisticResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_request.go
new file mode 100644
index 00000000..bad6b7cb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAlarmSubsRequest struct {
+
+ // 偏移量
+ Offset *string `json:"offset,omitempty"`
+
+ // 限制条目数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListAlarmSubsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmSubsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmSubsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_response.go
new file mode 100644
index 00000000..6a08bf55
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_alarm_subs_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAlarmSubsResponse struct {
+
+ // 告警订阅总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 告警订阅列表
+ AlarmSubscriptions *[]AlarmSubscriptionResponse `json:"alarm_subscriptions,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAlarmSubsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAlarmSubsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAlarmSubsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_request.go
new file mode 100644
index 00000000..a674321f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAuditLogRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListAuditLogRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAuditLogRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAuditLogRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_response.go
new file mode 100644
index 00000000..be8452ec
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_audit_log_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAuditLogResponse struct {
+
+ // 审计日志列表。
+ Records *[]AuditDumpRecord `json:"records,omitempty"`
+
+ // 集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 总数。
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAuditLogResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAuditLogResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAuditLogResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_request.go
new file mode 100644
index 00000000..ff4f4e1a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAvailabilityZonesRequest struct {
+}
+
+func (o ListAvailabilityZonesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailabilityZonesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailabilityZonesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_response.go
new file mode 100644
index 00000000..476b0b18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_availability_zones_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAvailabilityZonesResponse struct {
+
+ // 可用区列表对象。
+ AvailabilityZones *[]AvailabilityZone `json:"availability_zones,omitempty"`
+
+ // 可用区数量。
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAvailabilityZonesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailabilityZonesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailabilityZonesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_request.go
new file mode 100644
index 00000000..588af03d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterCnRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListClusterCnRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterCnRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterCnRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_response.go
new file mode 100644
index 00000000..98f07d26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_cn_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterCnResponse struct {
+
+ // 集群支持的最小CN节点数量。
+ MinNum *int32 `json:"min_num,omitempty"`
+
+ // 集群支持的最大CN节点数量。
+ MaxNum *int32 `json:"max_num,omitempty"`
+
+ // CN节点详情列表。
+ Instances *[]CoordinatorNode `json:"instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterCnResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterCnResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterCnResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_request.go
new file mode 100644
index 00000000..685c7564
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterConfigurationsParameterRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ // 参数组ID。
+ ConfigurationId string `json:"configuration_id"`
+}
+
+func (o ListClusterConfigurationsParameterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterConfigurationsParameterRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterConfigurationsParameterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_response.go
new file mode 100644
index 00000000..b4792089
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_parameter_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterConfigurationsParameterResponse struct {
+
+ // 集群使用的参数配置信息。
+ Configurations *[]ConfigurationParameter `json:"configurations,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterConfigurationsParameterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterConfigurationsParameterResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterConfigurationsParameterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_request.go
new file mode 100644
index 00000000..6f4692ef
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterConfigurationsRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListClusterConfigurationsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterConfigurationsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterConfigurationsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_response.go
new file mode 100644
index 00000000..138f0df2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_configurations_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterConfigurationsResponse struct {
+
+ // 集群所关联的参数组信息。
+ Configurations *[]ClusterConfiguration `json:"configurations,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterConfigurationsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterConfigurationsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterConfigurationsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_request.go
new file mode 100644
index 00000000..97515a3d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterScaleInNumbersRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListClusterScaleInNumbersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterScaleInNumbersRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterScaleInNumbersRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_response.go
new file mode 100644
index 00000000..6eab4363
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_scale_in_numbers_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterScaleInNumbersResponse struct {
+
+ // 合适的缩容数
+ ShrinkSequence *[]string `json:"shrink_sequence,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterScaleInNumbersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterScaleInNumbersResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterScaleInNumbersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_request.go
new file mode 100644
index 00000000..14caa564
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_request.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterSnapshotsRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 查询条数
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 排序字段
+ SortKey *string `json:"sort_key,omitempty"`
+
+ // 排序规则
+ SortDir *string `json:"sort_dir,omitempty"`
+}
+
+func (o ListClusterSnapshotsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterSnapshotsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterSnapshotsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_response.go
new file mode 100644
index 00000000..33506489
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_snapshots_response.go
@@ -0,0 +1,33 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterSnapshotsResponse struct {
+
+ // 快照对象列表。
+ Snapshots *[]ClusterSnapshots `json:"snapshots,omitempty"`
+
+ // 项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 快照对象列表总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterSnapshotsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterSnapshotsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterSnapshotsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_request.go
new file mode 100644
index 00000000..04f63e92
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterTagsRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListClusterTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_response.go
new file mode 100644
index 00000000..f968442f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterTagsResponse struct {
+
+ // 标签列表。
+ Tags *[]ResourceTag `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_request.go
new file mode 100644
index 00000000..b7237e77
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListClusterWorkloadRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListClusterWorkloadRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterWorkloadRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterWorkloadRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_response.go
new file mode 100644
index 00000000..34f0f4a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_cluster_workload_response.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListClusterWorkloadResponse struct {
+
+ // 结果状态码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 结果描述。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+
+ WorkloadStatus *WorkloadStatus `json:"workload_status,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListClusterWorkloadResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListClusterWorkloadResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListClusterWorkloadResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_request.go
new file mode 100644
index 00000000..31bbdd71
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListDataSourceRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListDataSourceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDataSourceRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListDataSourceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_response.go
new file mode 100644
index 00000000..20a54020
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_data_source_response.go
@@ -0,0 +1,36 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListDataSourceResponse struct {
+
+ // 数据源列表。
+ DataSources *[]ExtDataSource `json:"data_sources,omitempty"`
+
+ // 项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 数据源类型。
+ Type *string `json:"type,omitempty"`
+
+ // 总数。
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListDataSourceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDataSourceResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListDataSourceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_request.go
new file mode 100644
index 00000000..09c320fd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListDisasterRecoverRequest struct {
+}
+
+func (o ListDisasterRecoverRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDisasterRecoverRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListDisasterRecoverRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_response.go
new file mode 100644
index 00000000..86503a18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_disaster_recover_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListDisasterRecoverResponse struct {
+
+ // 容灾对象
+ DisasterRecovery *[]DisasterRecovery `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListDisasterRecoverResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDisasterRecoverResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListDisasterRecoverResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_request.go
new file mode 100644
index 00000000..33eff7ad
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListDssPoolsRequest struct {
+}
+
+func (o ListDssPoolsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDssPoolsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListDssPoolsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_response.go
new file mode 100644
index 00000000..118469d0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_dss_pools_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListDssPoolsResponse struct {
+
+ // 专属分布式存储池详情列表。
+ Pools *[]DssPool `json:"pools,omitempty"`
+
+ // 专属分布式存储池个数。
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListDssPoolsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDssPoolsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListDssPoolsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_request.go
new file mode 100644
index 00000000..cb93d43a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListElbsRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListElbsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListElbsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListElbsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_response.go
new file mode 100644
index 00000000..775d25b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_elbs_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListElbsResponse struct {
+
+ // 弹性负载均衡列表
+ Elbs *[]ClusterElbInfo `json:"elbs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListElbsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListElbsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListElbsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_request.go
new file mode 100644
index 00000000..24e6c2a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListEventSpecsRequest struct {
+
+ // 事件配置名称
+ SpecName *string `json:"spec_name,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件源类别
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 偏移量
+ Offset *string `json:"offset,omitempty"`
+
+ // 限制条目数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListEventSpecsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventSpecsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListEventSpecsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_response.go
new file mode 100644
index 00000000..e0cb089e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_specs_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListEventSpecsResponse struct {
+
+ // 事件配置总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 事件配置列表
+ EventSpecs *[]EventSpecResponse `json:"event_specs,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListEventSpecsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventSpecsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListEventSpecsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_request.go
new file mode 100644
index 00000000..365385bf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListEventSubsRequest struct {
+
+ // 偏移量
+ Offset *string `json:"offset,omitempty"`
+
+ // 限制条目数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListEventSubsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventSubsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListEventSubsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_response.go
new file mode 100644
index 00000000..f2843e3a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_event_subs_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListEventSubsResponse struct {
+
+ // 事件订阅总数
+ Count *int32 `json:"count,omitempty"`
+
+ // 事件订阅详情列表
+ EventSubscriptions *[]EventSubscriptionResponse `json:"event_subscriptions,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListEventSubsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventSubsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListEventSubsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_request.go
new file mode 100644
index 00000000..24c6886e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListEventsRequest struct {
+
+ // 偏移量
+ Offset *string `json:"offset,omitempty"`
+
+ // 限制条目数
+ Limit *string `json:"limit,omitempty"`
+}
+
+func (o ListEventsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListEventsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_response.go
new file mode 100644
index 00000000..d6ce4ee4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_events_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListEventsResponse struct {
+
+ // 事件详情列表
+ Events *[]EventResponse `json:"events,omitempty"`
+
+ // 事件总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListEventsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEventsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListEventsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_request.go
new file mode 100644
index 00000000..1832772f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListHostDiskRequest struct {
+
+ // 集群ID。获取方法,请参见9.6-获取集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 数据条目数。
+ Limit int32 `json:"limit"`
+
+ // 数据偏移量。
+ Offset int32 `json:"offset"`
+}
+
+func (o ListHostDiskRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostDiskRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListHostDiskRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_response.go
new file mode 100644
index 00000000..4a425192
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_disk_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListHostDiskResponse struct {
+ Body *[]DiskResp `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListHostDiskResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostDiskResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListHostDiskResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_request.go
new file mode 100644
index 00000000..9f30c85b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListHostNetRequest struct {
+
+ // 集群ID。获取方法,请参见9.6-获取集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 数据条目数。
+ Limit int32 `json:"limit"`
+
+ // 数据偏移量。
+ Offset int32 `json:"offset"`
+}
+
+func (o ListHostNetRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostNetRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListHostNetRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_response.go
new file mode 100644
index 00000000..2283b6cb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_net_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListHostNetResponse struct {
+ Body *[]NetResp `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListHostNetResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostNetResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListHostNetResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_request.go
new file mode 100644
index 00000000..611023a0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListHostOverviewRequest struct {
+
+ // 集群ID。获取方法,请参见9.6-获取集群ID。
+ ClusterId *string `json:"cluster_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 数据条目数。
+ Limit int32 `json:"limit"`
+
+ // 数据偏移量。
+ Offset int32 `json:"offset"`
+}
+
+func (o ListHostOverviewRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostOverviewRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListHostOverviewRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_response.go
new file mode 100644
index 00000000..063de14a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_host_overview_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListHostOverviewResponse struct {
+
+ // openApi查询主机概览
+ Body *[]HostOverviewResponse `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListHostOverviewResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHostOverviewResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListHostOverviewResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_request.go
new file mode 100644
index 00000000..401dd4fc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListJobDetailsRequest struct {
+
+ // 任务ID
+ JobId string `json:"job_id"`
+}
+
+func (o ListJobDetailsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListJobDetailsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListJobDetailsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_response.go
new file mode 100644
index 00000000..34c1664d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_job_details_response.go
@@ -0,0 +1,45 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListJobDetailsResponse struct {
+
+ // 任务ID
+ JobId *string `json:"job_id,omitempty"`
+
+ // 任务名称
+ JobName *string `json:"job_name,omitempty"`
+
+ // 任务开始时间
+ BeginTime *string `json:"begin_time,omitempty"`
+
+ // 任务结束时间
+ EndTime *string `json:"end_time,omitempty"`
+
+ // 任务当前状态
+ Status *string `json:"status,omitempty"`
+
+ // 任务失败错误码
+ FailedCode *string `json:"failed_code,omitempty"`
+
+ // 任务失败错误详情
+ FailedDetail *string `json:"failed_detail,omitempty"`
+
+ // 任务进度
+ Progress *string `json:"progress,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListJobDetailsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListJobDetailsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListJobDetailsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_request.go
new file mode 100644
index 00000000..84109f06
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListMonitorIndicatorDataRequest struct {
+
+ // 开始时间。
+ From string `json:"from"`
+
+ // 结束时间。
+ To string `json:"to"`
+
+ // 取值方法。
+ Function *string `json:"function,omitempty"`
+
+ // 取值周期。
+ Period *string `json:"period,omitempty"`
+
+ // 指标名称。
+ IndicatorName string `json:"indicator_name"`
+
+ // 第一层级。
+ Dim0 string `json:"dim0"`
+
+ // 第二层级。
+ Dim1 *string `json:"dim1,omitempty"`
+}
+
+func (o ListMonitorIndicatorDataRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMonitorIndicatorDataRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListMonitorIndicatorDataRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_response.go
new file mode 100644
index 00000000..2d58067c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicator_data_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListMonitorIndicatorDataResponse struct {
+ Body *[]TrendQueryDataResp `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListMonitorIndicatorDataResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMonitorIndicatorDataResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListMonitorIndicatorDataResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_request.go
new file mode 100644
index 00000000..a12b19d3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListMonitorIndicatorsRequest struct {
+}
+
+func (o ListMonitorIndicatorsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMonitorIndicatorsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListMonitorIndicatorsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_response.go
new file mode 100644
index 00000000..57a4043a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_monitor_indicators_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListMonitorIndicatorsResponse struct {
+ Body *[]IndicatorInfo `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListMonitorIndicatorsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListMonitorIndicatorsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListMonitorIndicatorsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_node_types_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_node_types_response.go
index bd8458ee..f746c44c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_node_types_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_node_types_response.go
@@ -10,8 +10,11 @@ import (
type ListNodeTypesResponse struct {
// 节点类型对象列表。
- NodeTypes *[]NodeTypes `json:"node_types,omitempty"`
- HttpStatusCode int `json:"-"`
+ NodeTypes *[]NodeTypes `json:"node_types,omitempty"`
+
+ // 节点类型总数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ListNodeTypesResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_request.go
new file mode 100644
index 00000000..33e00d26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListQuotasRequest struct {
+}
+
+func (o ListQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListQuotasRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_response.go
new file mode 100644
index 00000000..72dd1185
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_quotas_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListQuotasResponse struct {
+ Quotas *QuotasQuotas `json:"quotas,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_request.go
new file mode 100644
index 00000000..a4af3752
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListSnapshotPolicyRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListSnapshotPolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSnapshotPolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListSnapshotPolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_response.go
new file mode 100644
index 00000000..50510f96
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_policy_response.go
@@ -0,0 +1,39 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListSnapshotPolicyResponse struct {
+
+ // 保留天数。
+ KeepDay *string `json:"keep_day,omitempty"`
+
+ // 备份策略。
+ BackupStrategies *[]BackupStrategyDetail `json:"backup_strategies,omitempty"`
+
+ // 备份设备。
+ DeviceName *string `json:"device_name,omitempty"`
+
+ // 服务IP。
+ ServerIps *[]string `json:"server_ips,omitempty"`
+
+ // 服务端口。
+ ServerPort *string `json:"server_port,omitempty"`
+
+ // 参数。
+ BackupParam *string `json:"backup_param,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListSnapshotPolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSnapshotPolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListSnapshotPolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_request.go
new file mode 100644
index 00000000..9bbc6b75
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListSnapshotStatisticsRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListSnapshotStatisticsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSnapshotStatisticsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListSnapshotStatisticsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_response.go
new file mode 100644
index 00000000..821cef18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_snapshot_statistics_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListSnapshotStatisticsResponse struct {
+
+ // 快照统计信息。
+ Statistics *[]SnapshotsStatistic `json:"statistics,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListSnapshotStatisticsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListSnapshotStatisticsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListSnapshotStatisticsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_request.go
new file mode 100644
index 00000000..675d74df
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListStatisticsRequest struct {
+}
+
+func (o ListStatisticsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListStatisticsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListStatisticsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_response.go
new file mode 100644
index 00000000..19c6912c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_statistics_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListStatisticsResponse struct {
+
+ // 资源数量信息列表。
+ Statistics *[]Statistic `json:"statistics,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListStatisticsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListStatisticsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListStatisticsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_request.go
new file mode 100644
index 00000000..57928346
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListTagsRequest struct {
+}
+
+func (o ListTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_response.go
new file mode 100644
index 00000000..09c17829
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListTagsResponse struct {
+
+ // 标签列表对象。
+ Tags *[]ProjectTag `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_request.go
new file mode 100644
index 00000000..2e08ff85
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListWorkloadQueueRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o ListWorkloadQueueRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListWorkloadQueueRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListWorkloadQueueRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_response.go
new file mode 100644
index 00000000..10ddd608
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_list_workload_queue_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListWorkloadQueueResponse struct {
+
+ // 工作负载队列名称。
+ WorkloadQueueNameList *[]string `json:"workload_queue_name_list,omitempty"`
+
+ // 结果状态码。
+ WorkloadResCode *int32 `json:"workload_res_code,omitempty"`
+
+ // 结果描述。
+ WorkloadResStr *string `json:"workload_res_str,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListWorkloadQueueResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListWorkloadQueueResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListWorkloadQueueResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintain_window.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintain_window.go
index f921db9a..0af944b7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintain_window.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintain_window.go
@@ -9,7 +9,7 @@ import (
// 集群维护时间窗信息
type MaintainWindow struct {
- // 每周的维护时间,以天为粒度,取值如下: - Mon:星期一 - Tue:星期二 - Wed:星期三 - Thu:星期四 - Fri: 星期五 - Sat:星期六 - Sun:星期日
+ // 每周的维护时间,以天为粒度,取值如下: - Mon:星期一 - Tue:星期二 - Wed:星期三 - Thu:星期四 - Fri:星期五 - Sat:星期六 - Sun:星期日
Day *string `json:"day,omitempty"`
// 维护开始时间,显示格式为 HH:mm,时区为GMT+0。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintenance_window.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintenance_window.go
new file mode 100644
index 00000000..ceef6d01
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_maintenance_window.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 可维护时间段。
+type MaintenanceWindow struct {
+
+ // 日期,范围:Mon、Tue、Wed、Thu、Fri、Sat、Sun。
+ Day string `json:"day"`
+
+ // 开始时间,UTC时间,格式为HH:mm,例如:22:00。 - 时间必须是整点。 - 开始时间和结束时间必须间隔4小时。
+ StartTime string `json:"start_time"`
+
+ // 结束时间,UTC时间,格式为HH:mm,例如:02:00。 - 时间必须是整点。 - 开始时间和结束时间必须间隔4小时。
+ EndTime string `json:"end_time"`
+}
+
+func (o MaintenanceWindow) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MaintenanceWindow struct{}"
+ }
+
+ return strings.Join([]string{"MaintenanceWindow", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_modify_cluster_dns.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_modify_cluster_dns.go
new file mode 100644
index 00000000..b3187347
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_modify_cluster_dns.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 修改的域名信息。
+type ModifyClusterDns struct {
+
+ // 待修改的域名。
+ Name string `json:"name"`
+
+ // 域名类型。 - public:公网域名。 - private:内网域名。
+ Type string `json:"type"`
+
+ // 用于填写默认生成的SOA记录中有效缓存时间,以秒为单位。 - 取值范围:300~2147483647。 - 默认值为300s。
+ Ttl int32 `json:"ttl"`
+}
+
+func (o ModifyClusterDns) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyClusterDns struct{}"
+ }
+
+ return strings.Join([]string{"ModifyClusterDns", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_net_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_net_resp.go
new file mode 100644
index 00000000..7489d736
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_net_resp.go
@@ -0,0 +1,61 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NetResp struct {
+
+ // 虚拟集群ID。
+ VirtualClusterId *int32 `json:"virtual_cluster_id,omitempty"`
+
+ // 查询时间。
+ Ctime *int64 `json:"ctime,omitempty"`
+
+ // 主机ID。
+ HostId *int32 `json:"host_id,omitempty"`
+
+ // 主机名称。
+ HostName *string `json:"host_name,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 网卡状态(true代表up/false代表down)。
+ Up *bool `json:"up,omitempty"`
+
+ // 网卡速度(Mbps)。
+ Speed *int64 `json:"speed,omitempty"`
+
+ // 接收包数(个)。
+ RecvPackets *int64 `json:"recv_packets,omitempty"`
+
+ // 发送包数(个)。
+ SendPackets *int64 `json:"send_packets,omitempty"`
+
+ // 接收丢包数(个)。
+ RecvDrop *int64 `json:"recv_drop,omitempty"`
+
+ // 接收速率(KB/s)。
+ RecvRate *float64 `json:"recv_rate,omitempty"`
+
+ // 发送速率(KB/s)。
+ SendRate *float64 `json:"send_rate,omitempty"`
+
+ // 网络速率(KB/s)。
+ IoRate *float64 `json:"io_rate,omitempty"`
+
+ // 网卡名称。
+ InterfaceName *string `json:"interface_name,omitempty"`
+}
+
+func (o NetResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NetResp struct{}"
+ }
+
+ return strings.Join([]string{"NetResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_available_zones.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_available_zones.go
new file mode 100644
index 00000000..3aed47d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_available_zones.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 节点类型支持的可用区及状态信息。
+type NodeTypeAvailableZones struct {
+
+ // 可用区ID。
+ Code string `json:"code"`
+
+ // 节点类型可用状态。 - normal:可用 - sellout:售罄 - abandon:不可用
+ Status string `json:"status"`
+}
+
+func (o NodeTypeAvailableZones) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NodeTypeAvailableZones struct{}"
+ }
+
+ return strings.Join([]string{"NodeTypeAvailableZones", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores.go
new file mode 100644
index 00000000..82cdffc8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 内核版本信息。
+type NodeTypeDatastores struct {
+
+ // 内核版本号。
+ Version string `json:"version"`
+
+ Attachments *NodeTypeDatastoresAttachments `json:"attachments"`
+}
+
+func (o NodeTypeDatastores) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NodeTypeDatastores struct{}"
+ }
+
+ return strings.Join([]string{"NodeTypeDatastores", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores_attachments.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores_attachments.go
new file mode 100644
index 00000000..d31b343b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_datastores_attachments.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 内核版本附加信息。
+type NodeTypeDatastoresAttachments struct {
+
+ // 内核版本支持的最小CN。
+ MinCn string `json:"min_cn"`
+
+ // 内核版本支持的最大CN。
+ MaxCn string `json:"max_cn"`
+}
+
+func (o NodeTypeDatastoresAttachments) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NodeTypeDatastoresAttachments struct{}"
+ }
+
+ return strings.Join([]string{"NodeTypeDatastoresAttachments", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_elastic_volume_specs.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_elastic_volume_specs.go
new file mode 100644
index 00000000..d66c1763
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_type_elastic_volume_specs.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 如果规格为弹性容量规格,则该属性为规格典配的弹性容量信息,包括存储类型、最小容量、最大容量以及步长信息,如果为固定存储规格,则该属性为null。
+type NodeTypeElasticVolumeSpecs struct {
+
+ // 云盘存储类型。
+ Type string `json:"type"`
+
+ // 云盘容量调整步长。
+ Step string `json:"step"`
+
+ // 云盘支持的最小容量。
+ MinSize int32 `json:"min_size"`
+
+ // 云盘支持的最大容量。
+ MaxSize int32 `json:"max_size"`
+}
+
+func (o NodeTypeElasticVolumeSpecs) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NodeTypeElasticVolumeSpecs struct{}"
+ }
+
+ return strings.Join([]string{"NodeTypeElasticVolumeSpecs", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_types.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_types.go
index b9aaa540..bea5622b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_types.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_node_types.go
@@ -17,6 +17,26 @@ type NodeTypes struct {
// 节点类型ID。
Id string `json:"id"`
+
+ // 产品类型 - dws:云数仓。 - hybrid:实时数仓。 - stream:IoT数仓。
+ DatastoreType string `json:"datastore_type"`
+
+ // 支持的可用区及状态信息。
+ AvailableZones []NodeTypeAvailableZones `json:"available_zones"`
+
+ // 内存大小。
+ Ram int32 `json:"ram"`
+
+ // CPU数量。
+ Vcpus int32 `json:"vcpus"`
+
+ // 内核版本信息。
+ Datastores []NodeTypeDatastores `json:"datastores"`
+
+ Volume *VolumeResp `json:"volume"`
+
+ // 如果规格为弹性容量规格,则该属性为规格典配的弹性容量信息,包括存储类型、最小容量、最大容量以及步长信息,如果为固定存储规格,则该属性为null。
+ ElasticVolumeSpecs []NodeTypeElasticVolumeSpecs `json:"elastic_volume_specs"`
}
func (o NodeTypes) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_nodes.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_nodes.go
index 284beab3..3e126893 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_nodes.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_nodes.go
@@ -12,7 +12,7 @@ type Nodes struct {
// 集群实例ID
Id string `json:"id"`
- // 集群实例状态
+ // 集群实例状态 - 100:创建中 - 199:空闲 - 200:可用 - 300:不可用 - 303:创建失败 - 304:删除中 - 305:删除失败 - 400:已删除
Status string `json:"status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_open_public_ip.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_open_public_ip.go
new file mode 100644
index 00000000..737856b4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_open_public_ip.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 弹性公网IP对象
+type OpenPublicIp struct {
+
+ // 弹性IP绑定类型,取值如下: auto_assign:自动绑定 not_use:暂未使用 bind_existing :使用已有
+ PublicBindType *string `json:"public_bind_type,omitempty"`
+
+ // 弹性IP的ID
+ EipId *string `json:"eip_id,omitempty"`
+}
+
+func (o OpenPublicIp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OpenPublicIp struct{}"
+ }
+
+ return strings.Join([]string{"OpenPublicIp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_request.go
new file mode 100644
index 00000000..4e1daeb9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type PauseDisasterRecoveryRequest struct {
+
+ // 容灾ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o PauseDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PauseDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"PauseDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_response.go
new file mode 100644
index 00000000..4cb19900
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_pause_disaster_recovery_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type PauseDisasterRecoveryResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o PauseDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PauseDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"PauseDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_project_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_project_tag.go
new file mode 100644
index 00000000..0ab2f411
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_project_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签详情。
+type ProjectTag struct {
+
+ // 键。
+ Key string `json:"key"`
+
+ // 值。
+ Values []string `json:"values"`
+}
+
+func (o ProjectTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ProjectTag struct{}"
+ }
+
+ return strings.Join([]string{"ProjectTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_quotas.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_quotas.go
new file mode 100644
index 00000000..32cd5c21
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_quotas.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 配额列表对象。
+type QuotasQuotas struct {
+
+ // 资源列表对象。
+ Resources *[]QuotasResource `json:"resources,omitempty"`
+}
+
+func (o QuotasQuotas) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "QuotasQuotas struct{}"
+ }
+
+ return strings.Join([]string{"QuotasQuotas", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_resource.go
new file mode 100644
index 00000000..a7469523
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_quotas_resource.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源配额详情。
+type QuotasResource struct {
+
+ // 项目资源类型。
+ Type string `json:"type"`
+
+ // 已使用的资源数量。
+ Used string `json:"used"`
+
+ // 项目资源配额。
+ Quota int32 `json:"quota"`
+
+ // 资源计量单位。
+ Unit int32 `json:"unit"`
+}
+
+func (o QuotasResource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "QuotasResource struct{}"
+ }
+
+ return strings.Join([]string{"QuotasResource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action.go
new file mode 100644
index 00000000..a91930b5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新数据源配置
+type ReconfigureExtDataSourceAction struct {
+
+ // 重启。
+ Reboot *bool `json:"reboot,omitempty"`
+
+ // 委托。
+ Agency *string `json:"agency,omitempty"`
+}
+
+func (o ReconfigureExtDataSourceAction) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ReconfigureExtDataSourceAction struct{}"
+ }
+
+ return strings.Join([]string{"ReconfigureExtDataSourceAction", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action_req.go
new file mode 100644
index 00000000..03659ce7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_reconfigure_ext_data_source_action_req.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 更新数据源配置
+type ReconfigureExtDataSourceActionReq struct {
+ Reconfigure *ReconfigureExtDataSourceAction `json:"reconfigure"`
+}
+
+func (o ReconfigureExtDataSourceActionReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ReconfigureExtDataSourceActionReq struct{}"
+ }
+
+ return strings.Join([]string{"ReconfigureExtDataSourceActionReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_redistribution_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_redistribution_req.go
new file mode 100644
index 00000000..28a0f15e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_redistribution_req.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 重分布请求
+type RedistributionReq struct {
+
+ // 重分布模式
+ RedisMode string `json:"redis_mode"`
+
+ // 重分布并发数
+ ParallelJobs int32 `json:"parallel_jobs"`
+}
+
+func (o RedistributionReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedistributionReq struct{}"
+ }
+
+ return strings.Join([]string{"RedistributionReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_resource_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_resource_tag.go
new file mode 100644
index 00000000..c806c7b5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_resource_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签详情。
+type ResourceTag struct {
+
+ // 标签键。
+ Key string `json:"key"`
+
+ // 标签值。
+ Value string `json:"value"`
+}
+
+func (o ResourceTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceTag struct{}"
+ }
+
+ return strings.Join([]string{"ResourceTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_request.go
new file mode 100644
index 00000000..cd857ad5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RestoreDisasterRequest struct {
+
+ // 容灾ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o RestoreDisasterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreDisasterRequest struct{}"
+ }
+
+ return strings.Join([]string{"RestoreDisasterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_response.go
new file mode 100644
index 00000000..fd2558a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_disaster_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RestoreDisasterResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RestoreDisasterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreDisasterResponse struct{}"
+ }
+
+ return strings.Join([]string{"RestoreDisasterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_point.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_point.go
new file mode 100644
index 00000000..0232c548
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_restore_point.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 恢复集群
+type RestorePoint struct {
+
+ // 快照ID
+ BackRef *string `json:"back_ref,omitempty"`
+
+ // 恢复时间
+ RestoreTime *int64 `json:"restore_time,omitempty"`
+
+ // 集群ID
+ ClusterId *string `json:"cluster_id,omitempty"`
+}
+
+func (o RestorePoint) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestorePoint struct{}"
+ }
+
+ return strings.Join([]string{"RestorePoint", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_request.go
new file mode 100644
index 00000000..887ef04f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShrinkClusterRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *ClusterShrinkReq `json:"body,omitempty"`
+}
+
+func (o ShrinkClusterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShrinkClusterRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShrinkClusterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_response.go
new file mode 100644
index 00000000..a4e402f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_shrink_cluster_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShrinkClusterResponse struct {
+
+ // 缩容job_id。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShrinkClusterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShrinkClusterResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShrinkClusterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshot_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshot_detail.go
index ed063840..7c3bfda2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshot_detail.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshot_detail.go
@@ -27,7 +27,7 @@ type SnapshotDetail struct {
// 快照大小,单位GB。
Size float64 `json:"size"`
- // 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。
+ // 快照状态: - CREATING:创建中。 - AVAILABLE:可用。 - UNAVAILABLE:不可用。
Status string `json:"status"`
// 快照创建类型。
@@ -35,6 +35,61 @@ type SnapshotDetail struct {
// 快照对应的集群ID
ClusterId string `json:"cluster_id"`
+
+ Datastore *Datastore `json:"datastore,omitempty"`
+
+ // 快照对应的集群名称。
+ ClusterName *string `json:"cluster_name,omitempty"`
+
+ // 快照预计开始时间。
+ BakExpectedStartTime *string `json:"bak_expected_start_time,omitempty"`
+
+ // 快照保留天数。
+ BakKeepDay *int32 `json:"bak_keep_day,omitempty"`
+
+ // 快照策略。
+ BakPeriod *string `json:"bak_period,omitempty"`
+
+ // 数据库用户。
+ DbUser *string `json:"db_user,omitempty"`
+
+ // 快照进度。
+ Progress *string `json:"progress,omitempty"`
+
+ // 快照BakcupKey。
+ BackupKey *string `json:"backup_key,omitempty"`
+
+ // 增量快照,使用的前一个快照BakcupKey。
+ PriorBackupKey *string `json:"prior_backup_key,omitempty"`
+
+ // 对应全量快照BakcupKey。
+ BaseBackupKey *string `json:"base_backup_key,omitempty"`
+
+ // 备份介质。
+ BackupDevice *string `json:"backup_device,omitempty"`
+
+ // 累计快照大小。
+ TotalBackupSize *int32 `json:"total_backup_size,omitempty"`
+
+ // 对应全量快照名称。
+ BaseBackupName *string `json:"base_backup_name,omitempty"`
+
+ // 是否支持就地恢复。
+ SupportInplaceRestore *bool `json:"support_inplace_restore,omitempty"`
+
+ // 是否是细粒度备份。
+ FineGrainedBackup *bool `json:"fine_grained_backup,omitempty"`
+
+ // 备份级别。
+ BackupLevel *string `json:"backup_level,omitempty"`
+
+ FineGrainedBackupDetail *FineGrainedSnapshotDetail `json:"fine_grained_backup_detail,omitempty"`
+
+ // guestAgent版本。
+ GuestAgentVersion *string `json:"guest_agent_version,omitempty"`
+
+ // 集群状态。
+ ClusterStatus *string `json:"cluster_status,omitempty"`
}
func (o SnapshotDetail) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshots_statistic.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshots_statistic.go
new file mode 100644
index 00000000..559b40c8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_snapshots_statistic.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 快照统计信息。
+type SnapshotsStatistic struct {
+
+ // 资源统计信息名称。 - storage.free:免费容量。 - storage.paid:付费容量。 - storage.used:已用容量。
+ Name string `json:"name"`
+
+ // 资源统计信息值。
+ Value float32 `json:"value"`
+
+ // 资源统计信息单位。
+ Unit string `json:"unit"`
+}
+
+func (o SnapshotsStatistic) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SnapshotsStatistic struct{}"
+ }
+
+ return strings.Join([]string{"SnapshotsStatistic", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_request.go
new file mode 100644
index 00000000..bdfeb27c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type StartDisasterRecoveryRequest struct {
+
+ // 容灾ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o StartDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "StartDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"StartDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_response.go
new file mode 100644
index 00000000..adada2dd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_start_disaster_recovery_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type StartDisasterRecoveryResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o StartDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "StartDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"StartDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_statistic.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_statistic.go
new file mode 100644
index 00000000..bdaa82f3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_statistic.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源数量详情。
+type Statistic struct {
+
+ // 资源名称。 - cluster.total:总集群(个)。 - cluster.normal:可用集群(个)。 - instance.total:总节点(个)。 - instance.normal:可用节点(个)。 - storage.total:总容量(GB)。
+ Name string `json:"name"`
+
+ // 资源数量值。
+ Value float64 `json:"value"`
+
+ // 资源数量单位。
+ Unit string `json:"unit"`
+}
+
+func (o Statistic) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Statistic struct{}"
+ }
+
+ return strings.Join([]string{"Statistic", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_request.go
new file mode 100644
index 00000000..9776f06b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchFailoverDisasterRequest struct {
+
+ // 容灾ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o SwitchFailoverDisasterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchFailoverDisasterRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchFailoverDisasterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_response.go
new file mode 100644
index 00000000..f8e86723
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_failover_disaster_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchFailoverDisasterResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchFailoverDisasterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchFailoverDisasterResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchFailoverDisasterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_request.go
new file mode 100644
index 00000000..ca34b3c2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchOverClusterRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+}
+
+func (o SwitchOverClusterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchOverClusterRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchOverClusterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_response.go
new file mode 100644
index 00000000..a9085c27
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switch_over_cluster_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchOverClusterResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchOverClusterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchOverClusterResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchOverClusterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_request.go
new file mode 100644
index 00000000..bf6cbaea
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchoverDisasterRecoveryRequest struct {
+
+ // 容灾ID
+ DisasterRecoveryId string `json:"disaster_recovery_id"`
+}
+
+func (o SwitchoverDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchoverDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchoverDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_response.go
new file mode 100644
index 00000000..48478fe4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_switchover_disaster_recovery_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchoverDisasterRecoveryResponse struct {
+ DisasterRecovery *DisasterRecoveryId `json:"disaster_recovery,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchoverDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchoverDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchoverDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tag.go
new file mode 100644
index 00000000..1635ef3b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签
+type Tag struct {
+
+ // 标签key
+ Key *string `json:"key,omitempty"`
+
+ // 标签值
+ Value *string `json:"value,omitempty"`
+}
+
+func (o Tag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Tag struct{}"
+ }
+
+ return strings.Join([]string{"Tag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tags.go
index 20490b38..33f58639 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tags.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_tags.go
@@ -9,10 +9,10 @@ import (
// 标签列表
type Tags struct {
- // 键。输入标签键的最大长度为36个unicode字符,不能为空字符串,且首尾字符不能为空格。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
+ // 键。输入标签键的最大长度为128个unicode字符,不能为空字符串,且首尾字符不能为空格。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
Key string `json:"key"`
- // 值。输入标签值的最大长度为43个字符,首尾字符不能为空格,可以为空字符串。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
+ // 值。输入标签值的最大长度为256个字符,首尾字符不能为空格,可以为空字符串。 不能包含“=”,“*”,“<”,“>”,“\\\\”,“,”,“|”,“/”。 只能包含大写字母(A-Z)、小写字母(a-z)、数字(0-9)和特殊字符(中划线-、下划线_)以及中文字符。
Value string `json:"value"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data.go
new file mode 100644
index 00000000..a7143ab9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TrendQueryData struct {
+
+ // 查询结果。
+ Result *string `json:"result,omitempty"`
+
+ // 时间戳。
+ Timestamp *int64 `json:"timestamp,omitempty"`
+}
+
+func (o TrendQueryData) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TrendQueryData struct{}"
+ }
+
+ return strings.Join([]string{"TrendQueryData", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data_resp.go
new file mode 100644
index 00000000..1507bbd7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_trend_query_data_resp.go
@@ -0,0 +1,37 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TrendQueryDataResp struct {
+
+ // 查询时间。
+ QueryTime *int64 `json:"query_time,omitempty"`
+
+ // 监控指标名称。
+ IndicatorName *string `json:"indicator_name,omitempty"`
+
+ // 监控对象id。
+ ObjectId *string `json:"object_id,omitempty"`
+
+ // 单位。
+ Unit *string `json:"unit,omitempty"`
+
+ // 次级监控id。
+ SubObjectId *string `json:"sub_object_id,omitempty"`
+
+ // 节点数据。
+ DataPoints *[]TrendQueryData `json:"data_points,omitempty"`
+}
+
+func (o TrendQueryDataResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TrendQueryDataResp struct{}"
+ }
+
+ return strings.Join([]string{"TrendQueryDataResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_request.go
new file mode 100644
index 00000000..134b6505
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateAlarmSubRequest struct {
+
+ // 告警订阅ID
+ AlarmSubId string `json:"alarm_sub_id"`
+
+ Body *AlarmSubUpdateRequest `json:"body,omitempty"`
+}
+
+func (o UpdateAlarmSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_response.go
new file mode 100644
index 00000000..26b5055f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_alarm_sub_response.go
@@ -0,0 +1,54 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateAlarmSubResponse struct {
+
+ // 告警订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 告警订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 是否开启订阅
+ Enable *string `json:"enable,omitempty"`
+
+ // 告警级别
+ AlarmLevel *string `json:"alarm_level,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务,支持DWS,DLI,DGC,CloudTable,CDM,GES,CSS
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息主题类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateAlarmSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateAlarmSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateAlarmSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_request.go
new file mode 100644
index 00000000..2fab1034
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateClusterDnsRequest struct {
+
+ // 集群的ID
+ ClusterId string `json:"cluster_id"`
+
+ Body *ModifyClusterDns `json:"body,omitempty"`
+}
+
+func (o UpdateClusterDnsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateClusterDnsRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateClusterDnsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_response.go
new file mode 100644
index 00000000..c1562cb0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_cluster_dns_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateClusterDnsResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateClusterDnsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateClusterDnsResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateClusterDnsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_request.go
new file mode 100644
index 00000000..6a25cc98
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateConfigurationRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ // 参数组ID。
+ ConfigurationId string `json:"configuration_id"`
+
+ Body *ConfigurationParameterValues `json:"body,omitempty"`
+}
+
+func (o UpdateConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_response.go
new file mode 100644
index 00000000..dfbc8339
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_configuration_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateConfigurationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_request.go
new file mode 100644
index 00000000..c6c92068
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateDataSourceRequest struct {
+
+ // 集群ID
+ ClusterId string `json:"cluster_id"`
+
+ // 数据源id
+ ExtDataSourceId string `json:"ext_data_source_id"`
+
+ Body *ReconfigureExtDataSourceActionReq `json:"body,omitempty"`
+}
+
+func (o UpdateDataSourceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateDataSourceRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateDataSourceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_response.go
new file mode 100644
index 00000000..041a9f13
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_data_source_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateDataSourceResponse struct {
+
+ // 更新数据源job_id。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateDataSourceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateDataSourceResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateDataSourceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_request.go
new file mode 100644
index 00000000..d140c764
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateEventSubRequest struct {
+
+ // 事件订阅ID
+ EventSubId string `json:"event_sub_id"`
+
+ Body *EventSubUpdateRequest `json:"body,omitempty"`
+}
+
+func (o UpdateEventSubRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateEventSubRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateEventSubRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_response.go
new file mode 100644
index 00000000..b91712bd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_event_sub_response.go
@@ -0,0 +1,66 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateEventSubResponse struct {
+
+ // 订阅ID
+ Id *string `json:"id,omitempty"`
+
+ // 订阅名称
+ Name *string `json:"name,omitempty"`
+
+ // 事件源类型
+ SourceType *string `json:"source_type,omitempty"`
+
+ // 事件源ID
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 事件类别
+ Category *string `json:"category,omitempty"`
+
+ // 事件级别
+ Severity *string `json:"severity,omitempty"`
+
+ // 事件标签
+ Tag *string `json:"tag,omitempty"`
+
+ // 是否开启订阅 1为开启,0为关闭
+ Enable *int32 `json:"enable,omitempty"`
+
+ // 租户凭证ID
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 所属服务
+ NameSpace *string `json:"name_space,omitempty"`
+
+ // 消息通知主题地址
+ NotificationTarget *string `json:"notification_target,omitempty"`
+
+ // 消息通知主题名称
+ NotificationTargetName *string `json:"notification_target_name,omitempty"`
+
+ // 消息通知类型
+ NotificationTargetType *string `json:"notification_target_type,omitempty"`
+
+ // 语言
+ Language *string `json:"language,omitempty"`
+
+ // 时区
+ TimeZone *string `json:"time_zone,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateEventSubResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateEventSubResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateEventSubResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_request.go
new file mode 100644
index 00000000..5fb9d4fa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateMaintenanceWindowRequest struct {
+
+ // 集群的ID。
+ ClusterId string `json:"cluster_id"`
+
+ Body *MaintenanceWindow `json:"body,omitempty"`
+}
+
+func (o UpdateMaintenanceWindowRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateMaintenanceWindowRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateMaintenanceWindowRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_response.go
new file mode 100644
index 00000000..5c6c80c2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_update_maintenance_window_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateMaintenanceWindowResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateMaintenanceWindowResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateMaintenanceWindowResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateMaintenanceWindowResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster.go
new file mode 100644
index 00000000..d3d2e2c1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// v2创建集群请求
+type V2CreateCluster struct {
+
+ // 集群名称,要求唯一性,必须以字母开头并只包含字母、数字、中划线或下划线,长度为4~64个字符。
+ Name string `json:"name"`
+
+ // 集群规格名称。节点类型详情请参见数据仓库类型数据仓库类型。
+ Flavor string `json:"flavor"`
+
+ // 集群CN数量,取值范围为2~集群节点数,最大值为20,默认值为3。
+ NumCn int32 `json:"num_cn"`
+
+ // 集群节点数量,集群模式取值范围为3~256,实时数仓(单机模式)取值为1。
+ NumNode int32 `json:"num_node"`
+
+ // 管理员用户名称。用户命名要求如下: 只能由小写字母、数字或下划线组成。 必须由小写字母或下划线开头。 长度为1~63个字符。用户名不能为DWS数据库的关键字。
+ DbName string `json:"db_name"`
+
+ // 管理员用户密码。 8~32个字符 至少包含以下字符中的3种:大写字母、小写字母、数字和特殊字符(~!?,.:;-_(){}[]/<>@#%^&*+|\\=)。不能与用户名或倒序的用户名相同。
+ DbPassword string `json:"db_password"`
+
+ // 集群数据库端口,取值范围为8000~30000,默认值:8000。
+ DbPort int32 `json:"db_port"`
+
+ // 专属存储池ID
+ DssPoolId *string `json:"dss_pool_id,omitempty"`
+
+ // 可用区列表。集群可用区选择详情请参见地区和终端节点地区和终端节点。
+ AvailabilityZones []string `json:"availability_zones"`
+
+ Tags *Tags `json:"tags,omitempty"`
+
+ // 指定虚拟私有云ID,用于集群网络配置。
+ VpcId string `json:"vpc_id"`
+
+ // 指定子网ID,用于集群网络配置。
+ SubnetId string `json:"subnet_id"`
+
+ // 指定安全组ID,用于集群网络配置。
+ SecurityGroupId *string `json:"security_group_id,omitempty"`
+
+ PublicIp *PublicIp `json:"public_ip,omitempty"`
+
+ // 集群版本
+ DatastoreVersion string `json:"datastore_version"`
+
+ // 密钥ID
+ MasterKeyId *string `json:"master_key_id,omitempty"`
+
+ // 密钥名称
+ MasterKeyName *string `json:"master_key_name,omitempty"`
+
+ // 加密算法
+ CryptAlgorithm *string `json:"crypt_algorithm,omitempty"`
+
+ Volume *Volume `json:"volume,omitempty"`
+
+ // 企业项目ID,对集群指定企业项目,如果未指定,则使用默认企业项目“default”的ID,即0。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+}
+
+func (o V2CreateCluster) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "V2CreateCluster struct{}"
+ }
+
+ return strings.Join([]string{"V2CreateCluster", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster_req.go
new file mode 100644
index 00000000..2e3a59c1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_v2_create_cluster_req.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// V2接口创建集群请求体。
+type V2CreateClusterReq struct {
+ Cluster *V2CreateCluster `json:"cluster,omitempty"`
+}
+
+func (o V2CreateClusterReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "V2CreateClusterReq struct{}"
+ }
+
+ return strings.Join([]string{"V2CreateClusterReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume.go
new file mode 100644
index 00000000..64d308ad
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 磁盘
+type Volume struct {
+
+ // 磁盘名称,取值范围为 SSD(超高IO),高IO(SAS),普通IO(SATA)
+ Volume *string `json:"volume,omitempty"`
+
+ // 磁盘容量
+ Capacity *int32 `json:"capacity,omitempty"`
+}
+
+func (o Volume) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Volume struct{}"
+ }
+
+ return strings.Join([]string{"Volume", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume_resp.go
new file mode 100644
index 00000000..175d93d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_volume_resp.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 如果规格为固定存储容量规格,则该属性为规格典配的存储容量信息,如果为弹性存储规格,则该属性为null。
+type VolumeResp struct {
+
+ // 磁盘类型,仅支持SSD。
+ Type string `json:"type"`
+
+ // 磁盘可用容量。
+ Size int32 `json:"size"`
+}
+
+func (o VolumeResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "VolumeResp struct{}"
+ }
+
+ return strings.Join([]string{"VolumeResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_plan_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_plan_req.go
new file mode 100644
index 00000000..12f4d8c3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_plan_req.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源管理计划
+type WorkloadPlanReq struct {
+
+ // 计划名称
+ PlanName string `json:"plan_name"`
+
+ // 逻辑集群名称
+ LogicalClusterName *string `json:"logical_cluster_name,omitempty"`
+}
+
+func (o WorkloadPlanReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadPlanReq struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadPlanReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue.go
new file mode 100644
index 00000000..138cf534
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 工作负载队列
+type WorkloadQueue struct {
+
+ // 工作负载队列名称。
+ WorkloadQueueName string `json:"workload_queue_name"`
+
+ // 逻辑集群名称。
+ LogicalClusterName *string `json:"logical_cluster_name,omitempty"`
+
+ // 资源配置队列。
+ WorkloadResourceItemList []WorkloadResource `json:"workload_resource_item_list"`
+}
+
+func (o WorkloadQueue) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadQueue struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadQueue", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue_req.go
new file mode 100644
index 00000000..7bdef330
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_queue_req.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源池
+type WorkloadQueueReq struct {
+ WorkloadQueue *WorkloadQueue `json:"workload_queue"`
+}
+
+func (o WorkloadQueueReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadQueueReq struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadQueueReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_resource.go
new file mode 100644
index 00000000..91444f0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_resource.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 工作负载队列资源项
+type WorkloadResource struct {
+
+ // 资源名称。
+ ResourceName string `json:"resource_name"`
+
+ // 资源属性值。
+ ResourceValue int32 `json:"resource_value"`
+}
+
+func (o WorkloadResource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadResource struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadResource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status.go
new file mode 100644
index 00000000..2ec3baac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源管理信息
+type WorkloadStatus struct {
+
+ // 开关。
+ WorkloadSwitch string `json:"workload_switch"`
+
+ // 最大并发数。
+ MaxConcurrencyNum *string `json:"max_concurrency_num,omitempty"`
+}
+
+func (o WorkloadStatus) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadStatus struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadStatus", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status_req.go
new file mode 100644
index 00000000..d351977a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/dws/v2/model/model_workload_status_req.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源管理状态
+type WorkloadStatusReq struct {
+ WorkloadStatus *WorkloadStatus `json:"workload_status,omitempty"`
+}
+
+func (o WorkloadStatusReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WorkloadStatusReq struct{}"
+ }
+
+ return strings.Join([]string{"WorkloadStatusReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_client.go
index c4366d2a..9c2cfa54 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_client.go
@@ -19,12 +19,11 @@ func EcsClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
-// AddServerGroupMember 云服务器组添加成员
+// AddServerGroupMember 添加云服务器组成员
//
// 将云服务器加入云服务器组。添加成功后,如果该云服务器组是反亲和性策略的,则该云服务器与云服务器组中的其他成员尽量分散地创建在不同主机上。如果该云服务器时故障域类型的,则该云服务器会拥有故障域属性。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) AddServerGroupMember(request *model.AddServerGroupMemberRequest) (*model.AddServerGroupMemberResponse, error) {
requestDef := GenReqDefForAddServerGroupMember()
@@ -35,7 +34,7 @@ func (c *EcsClient) AddServerGroupMember(request *model.AddServerGroupMemberRequ
}
}
-// AddServerGroupMemberInvoker 云服务器组添加成员
+// AddServerGroupMemberInvoker 添加云服务器组成员
func (c *EcsClient) AddServerGroupMemberInvoker(request *model.AddServerGroupMemberRequest) *AddServerGroupMemberInvoker {
requestDef := GenReqDefForAddServerGroupMember()
return &AddServerGroupMemberInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -51,8 +50,7 @@ func (c *EcsClient) AddServerGroupMemberInvoker(request *model.AddServerGroupMem
//
// - 当指定的IP地址是一个已经创建好的私有IP时,系统会将指定的网卡和虚拟IP绑定。如果该IP的device_owner为空,则仅支持VPC内二三层通信;如果该IP的device_owner为neutron:VIP_PORT,则支持VPC内二三层通信、VPC之间对等连接访问,以及弹性公网IP、VPN、云专线等Internet接入。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) AssociateServerVirtualIp(request *model.AssociateServerVirtualIpRequest) (*model.AssociateServerVirtualIpResponse, error) {
requestDef := GenReqDefForAssociateServerVirtualIp()
@@ -73,8 +71,7 @@ func (c *EcsClient) AssociateServerVirtualIpInvoker(request *model.AssociateServ
//
// 把磁盘挂载到弹性云服务器上。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) AttachServerVolume(request *model.AttachServerVolumeRequest) (*model.AttachServerVolumeResponse, error) {
requestDef := GenReqDefForAttachServerVolume()
@@ -95,8 +92,7 @@ func (c *EcsClient) AttachServerVolumeInvoker(request *model.AttachServerVolumeR
//
// 给云服务器添加一张或多张网卡。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchAddServerNics(request *model.BatchAddServerNicsRequest) (*model.BatchAddServerNicsResponse, error) {
requestDef := GenReqDefForBatchAddServerNics()
@@ -117,8 +113,7 @@ func (c *EcsClient) BatchAddServerNicsInvoker(request *model.BatchAddServerNicsR
//
// 将指定的共享磁盘一次性挂载到多个弹性云服务器,实现批量挂载。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchAttachSharableVolumes(request *model.BatchAttachSharableVolumesRequest) (*model.BatchAttachSharableVolumesResponse, error) {
requestDef := GenReqDefForBatchAttachSharableVolumes()
@@ -141,8 +136,7 @@ func (c *EcsClient) BatchAttachSharableVolumesInvoker(request *model.BatchAttach
//
// - 标签管理服务TMS使用该接口批量管理云服务器的标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchCreateServerTags(request *model.BatchCreateServerTagsRequest) (*model.BatchCreateServerTagsResponse, error) {
requestDef := GenReqDefForBatchCreateServerTags()
@@ -163,8 +157,7 @@ func (c *EcsClient) BatchCreateServerTagsInvoker(request *model.BatchCreateServe
//
// 卸载并删除云服务器中的一张或多张网卡。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchDeleteServerNics(request *model.BatchDeleteServerNicsRequest) (*model.BatchDeleteServerNicsResponse, error) {
requestDef := GenReqDefForBatchDeleteServerNics()
@@ -187,8 +180,7 @@ func (c *EcsClient) BatchDeleteServerNicsInvoker(request *model.BatchDeleteServe
//
// - 标签管理服务TMS使用该接口批量管理云服务器的标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchDeleteServerTags(request *model.BatchDeleteServerTagsRequest) (*model.BatchDeleteServerTagsResponse, error) {
requestDef := GenReqDefForBatchDeleteServerTags()
@@ -209,8 +201,7 @@ func (c *EcsClient) BatchDeleteServerTagsInvoker(request *model.BatchDeleteServe
//
// 根据给定的云服务器ID列表,批量重启云服务器,一次最多可以重启1000台。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchRebootServers(request *model.BatchRebootServersRequest) (*model.BatchRebootServersResponse, error) {
requestDef := GenReqDefForBatchRebootServers()
@@ -231,8 +222,7 @@ func (c *EcsClient) BatchRebootServersInvoker(request *model.BatchRebootServersR
//
// 批量重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchResetServersPassword(request *model.BatchResetServersPasswordRequest) (*model.BatchResetServersPasswordResponse, error) {
requestDef := GenReqDefForBatchResetServersPassword()
@@ -253,8 +243,7 @@ func (c *EcsClient) BatchResetServersPasswordInvoker(request *model.BatchResetSe
//
// 根据给定的云服务器ID列表,批量启动云服务器,一次最多可以启动1000台。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchStartServers(request *model.BatchStartServersRequest) (*model.BatchStartServersResponse, error) {
requestDef := GenReqDefForBatchStartServers()
@@ -275,8 +264,7 @@ func (c *EcsClient) BatchStartServersInvoker(request *model.BatchStartServersReq
//
// 根据给定的云服务器ID列表,批量关闭云服务器,一次最多可以关闭1000台。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchStopServers(request *model.BatchStopServersRequest) (*model.BatchStopServersResponse, error) {
requestDef := GenReqDefForBatchStopServers()
@@ -298,8 +286,7 @@ func (c *EcsClient) BatchStopServersInvoker(request *model.BatchStopServersReque
// 批量修改弹性云服务器信息。
// 当前仅支持批量修改云服务器名称,一次最多可以修改1000台。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) BatchUpdateServersName(request *model.BatchUpdateServersNameRequest) (*model.BatchUpdateServersNameResponse, error) {
requestDef := GenReqDefForBatchUpdateServersName()
@@ -322,8 +309,7 @@ func (c *EcsClient) BatchUpdateServersNameInvoker(request *model.BatchUpdateServ
//
// 调用该接口后,系统将卸载系统盘,然后使用新镜像重新创建系统盘,并挂载至弹性云服务器,实现切换操作系统功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ChangeServerOsWithCloudInit(request *model.ChangeServerOsWithCloudInitRequest) (*model.ChangeServerOsWithCloudInitResponse, error) {
requestDef := GenReqDefForChangeServerOsWithCloudInit()
@@ -346,8 +332,7 @@ func (c *EcsClient) ChangeServerOsWithCloudInitInvoker(request *model.ChangeServ
//
// 该接口支持未安装Cloud-init或Cloudbase-init的镜像使用。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ChangeServerOsWithoutCloudInit(request *model.ChangeServerOsWithoutCloudInitRequest) (*model.ChangeServerOsWithoutCloudInitResponse, error) {
requestDef := GenReqDefForChangeServerOsWithoutCloudInit()
@@ -381,8 +366,7 @@ func (c *EcsClient) ChangeServerOsWithoutCloudInitInvoker(request *model.ChangeS
//
// > 对于安装Cloud-init镜像的Linux云服务器云主机,若指定user_data字段,则adminPass字段无效。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) CreatePostPaidServers(request *model.CreatePostPaidServersRequest) (*model.CreatePostPaidServersResponse, error) {
requestDef := GenReqDefForCreatePostPaidServers()
@@ -405,8 +389,7 @@ func (c *EcsClient) CreatePostPaidServersInvoker(request *model.CreatePostPaidSe
//
// 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) CreateServerGroup(request *model.CreateServerGroupRequest) (*model.CreateServerGroupResponse, error) {
requestDef := GenReqDefForCreateServerGroup()
@@ -449,8 +432,7 @@ func (c *EcsClient) CreateServerGroupInvoker(request *model.CreateServerGroupReq
// - [使用API购买ECS过程中常见问题及处理方法](https://support.huaweicloud.com/api-ecs/ecs_04_0007.html)
// - [获取Token并检验Token的有效期 ](https://support.huaweicloud.com/api-ecs/ecs_04_0008.html)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) CreateServers(request *model.CreateServersRequest) (*model.CreateServersResponse, error) {
requestDef := GenReqDefForCreateServers()
@@ -473,8 +455,7 @@ func (c *EcsClient) CreateServersInvoker(request *model.CreateServersRequest) *C
//
// 与原生的删除云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DeleteServerGroup(request *model.DeleteServerGroupRequest) (*model.DeleteServerGroupResponse, error) {
requestDef := GenReqDefForDeleteServerGroup()
@@ -491,12 +472,11 @@ func (c *EcsClient) DeleteServerGroupInvoker(request *model.DeleteServerGroupReq
return &DeleteServerGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// DeleteServerGroupMember 云服务器组删除成员
+// DeleteServerGroupMember 删除云服务器组成员
//
// 将弹性云服务器移出云服务器组。移出后,该云服务器与云服务器组中的成员不再遵从反亲和策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DeleteServerGroupMember(request *model.DeleteServerGroupMemberRequest) (*model.DeleteServerGroupMemberResponse, error) {
requestDef := GenReqDefForDeleteServerGroupMember()
@@ -507,7 +487,7 @@ func (c *EcsClient) DeleteServerGroupMember(request *model.DeleteServerGroupMemb
}
}
-// DeleteServerGroupMemberInvoker 云服务器组删除成员
+// DeleteServerGroupMemberInvoker 删除云服务器组成员
func (c *EcsClient) DeleteServerGroupMemberInvoker(request *model.DeleteServerGroupMemberRequest) *DeleteServerGroupMemberInvoker {
requestDef := GenReqDefForDeleteServerGroupMember()
return &DeleteServerGroupMemberInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -517,8 +497,7 @@ func (c *EcsClient) DeleteServerGroupMemberInvoker(request *model.DeleteServerGr
//
// 删除云服务器指定元数据。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DeleteServerMetadata(request *model.DeleteServerMetadataRequest) (*model.DeleteServerMetadataResponse, error) {
requestDef := GenReqDefForDeleteServerMetadata()
@@ -539,8 +518,7 @@ func (c *EcsClient) DeleteServerMetadataInvoker(request *model.DeleteServerMetad
//
// 清除Windows云服务器初始安装时系统生成的密码记录。清除密码后,不影响云服务器密码登录功能,但不能再使用获取密码功能来查询该云服务器密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DeleteServerPassword(request *model.DeleteServerPasswordRequest) (*model.DeleteServerPasswordResponse, error) {
requestDef := GenReqDefForDeleteServerPassword()
@@ -563,8 +541,7 @@ func (c *EcsClient) DeleteServerPasswordInvoker(request *model.DeleteServerPassw
//
// 系统支持删除单台云服务器和批量删除多台云服务器操作,批量删除云服务器时,一次最多可以删除1000台。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DeleteServers(request *model.DeleteServersRequest) (*model.DeleteServersResponse, error) {
requestDef := GenReqDefForDeleteServers()
@@ -585,8 +562,7 @@ func (c *EcsClient) DeleteServersInvoker(request *model.DeleteServersRequest) *D
//
// 从弹性云服务器中卸载磁盘。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DetachServerVolume(request *model.DetachServerVolumeRequest) (*model.DetachServerVolumeResponse, error) {
requestDef := GenReqDefForDetachServerVolume()
@@ -609,8 +585,7 @@ func (c *EcsClient) DetachServerVolumeInvoker(request *model.DetachServerVolumeR
//
// 该接口用于解绑定弹性云服务器网卡的虚拟IP地址。解绑后,网卡不会被删除。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) DisassociateServerVirtualIp(request *model.DisassociateServerVirtualIpRequest) (*model.DisassociateServerVirtualIpResponse, error) {
requestDef := GenReqDefForDisassociateServerVirtualIp()
@@ -631,8 +606,7 @@ func (c *EcsClient) DisassociateServerVirtualIpInvoker(request *model.Disassocia
//
// 查询云服务器规格详情信息和规格扩展信息列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -653,8 +627,7 @@ func (c *EcsClient) ListFlavorsInvoker(request *model.ListFlavorsRequest) *ListF
//
// 变更规格时,部分规格的云服务器之间不能互相变更。您可以通过本接口,通过指定弹性云服务器规格,查询该规格可以变更的规格列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListResizeFlavors(request *model.ListResizeFlavorsRequest) (*model.ListResizeFlavorsResponse, error) {
requestDef := GenReqDefForListResizeFlavors()
@@ -675,8 +648,7 @@ func (c *EcsClient) ListResizeFlavorsInvoker(request *model.ListResizeFlavorsReq
//
// 查询弹性云服务器挂载的磁盘信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListServerBlockDevices(request *model.ListServerBlockDevicesRequest) (*model.ListServerBlockDevicesResponse, error) {
requestDef := GenReqDefForListServerBlockDevices()
@@ -699,8 +671,7 @@ func (c *EcsClient) ListServerBlockDevicesInvoker(request *model.ListServerBlock
//
// 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListServerGroups(request *model.ListServerGroupsRequest) (*model.ListServerGroupsResponse, error) {
requestDef := GenReqDefForListServerGroups()
@@ -721,8 +692,7 @@ func (c *EcsClient) ListServerGroupsInvoker(request *model.ListServerGroupsReque
//
// 查询云服务器网卡信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListServerInterfaces(request *model.ListServerInterfacesRequest) (*model.ListServerInterfacesResponse, error) {
requestDef := GenReqDefForListServerInterfaces()
@@ -745,8 +715,7 @@ func (c *EcsClient) ListServerInterfacesInvoker(request *model.ListServerInterfa
//
// 该接口用于查询用户在指定项目所使用的全部标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListServerTags(request *model.ListServerTagsRequest) (*model.ListServerTagsResponse, error) {
requestDef := GenReqDefForListServerTags()
@@ -763,14 +732,34 @@ func (c *EcsClient) ListServerTagsInvoker(request *model.ListServerTagsRequest)
return &ListServerTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListServersByTag 按标签查询云服务器列表
+//
+// 使用标签过滤弹性云服务器,并返回云服务器使用的所有标签和资源列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EcsClient) ListServersByTag(request *model.ListServersByTagRequest) (*model.ListServersByTagResponse, error) {
+ requestDef := GenReqDefForListServersByTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListServersByTagResponse), nil
+ }
+}
+
+// ListServersByTagInvoker 按标签查询云服务器列表
+func (c *EcsClient) ListServersByTagInvoker(request *model.ListServersByTagRequest) *ListServersByTagInvoker {
+ requestDef := GenReqDefForListServersByTag()
+ return &ListServersByTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListServersDetails 查询云服务器详情列表
//
// 根据用户请求条件从数据库筛选、查询所有的弹性云服务器,并关联相关表获取到弹性云服务器的详细信息。
//
// 该接口支持查询弹性云服务器计费方式,以及是否被冻结。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ListServersDetails(request *model.ListServersDetailsRequest) (*model.ListServersDetailsResponse, error) {
requestDef := GenReqDefForListServersDetails()
@@ -793,8 +782,7 @@ func (c *EcsClient) ListServersDetailsInvoker(request *model.ListServersDetailsR
// - 将部署在专属主机上的弹性云服务器迁移至公共资源池,即不再部署在专属主机上。
// - 将公共资源池的弹性云服务器迁移至专属主机上,成为专属主机上部署的弹性云服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) MigrateServer(request *model.MigrateServerRequest) (*model.MigrateServerResponse, error) {
requestDef := GenReqDefForMigrateServer()
@@ -817,8 +805,7 @@ func (c *EcsClient) MigrateServerInvoker(request *model.MigrateServerRequest) *M
//
// 添加多个安全组时,建议最多为弹性云服务器添加5个安全组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaAssociateSecurityGroup(request *model.NovaAssociateSecurityGroupRequest) (*model.NovaAssociateSecurityGroupResponse, error) {
requestDef := GenReqDefForNovaAssociateSecurityGroup()
@@ -841,8 +828,7 @@ func (c *EcsClient) NovaAssociateSecurityGroupInvoker(request *model.NovaAssocia
//
// 创建SSH密钥成功后,请把响应数据中的私钥内容保存到本地文件,用户使用该私钥登录云服务器云主机。为保证云服务器云主机器安全,私钥数据只能读取一次,请妥善保管。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaCreateKeypair(request *model.NovaCreateKeypairRequest) (*model.NovaCreateKeypairResponse, error) {
requestDef := GenReqDefForNovaCreateKeypair()
@@ -867,8 +853,7 @@ func (c *EcsClient) NovaCreateKeypairInvoker(request *model.NovaCreateKeypairReq
//
// 该接口在云服务器创建失败后不支持自动回滚。若需要自动回滚能力,可以调用POST /v1/{project_id}/cloudservers接口,具体使用请参见创建云服务器(按需)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaCreateServers(request *model.NovaCreateServersRequest) (*model.NovaCreateServersResponse, error) {
requestDef := GenReqDefForNovaCreateServers()
@@ -889,8 +874,7 @@ func (c *EcsClient) NovaCreateServersInvoker(request *model.NovaCreateServersReq
//
// 根据SSH密钥的名称,删除指定SSH密钥。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaDeleteKeypair(request *model.NovaDeleteKeypairRequest) (*model.NovaDeleteKeypairResponse, error) {
requestDef := GenReqDefForNovaDeleteKeypair()
@@ -911,8 +895,7 @@ func (c *EcsClient) NovaDeleteKeypairInvoker(request *model.NovaDeleteKeypairReq
//
// 删除一台云服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaDeleteServer(request *model.NovaDeleteServerRequest) (*model.NovaDeleteServerResponse, error) {
requestDef := GenReqDefForNovaDeleteServer()
@@ -933,8 +916,7 @@ func (c *EcsClient) NovaDeleteServerInvoker(request *model.NovaDeleteServerReque
//
// 移除弹性云服务器中的安全组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaDisassociateSecurityGroup(request *model.NovaDisassociateSecurityGroupRequest) (*model.NovaDisassociateSecurityGroupResponse, error) {
requestDef := GenReqDefForNovaDisassociateSecurityGroup()
@@ -955,8 +937,7 @@ func (c *EcsClient) NovaDisassociateSecurityGroupInvoker(request *model.NovaDisa
//
// 查询可用域列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaListAvailabilityZones(request *model.NovaListAvailabilityZonesRequest) (*model.NovaListAvailabilityZonesResponse, error) {
requestDef := GenReqDefForNovaListAvailabilityZones()
@@ -977,8 +958,7 @@ func (c *EcsClient) NovaListAvailabilityZonesInvoker(request *model.NovaListAvai
//
// 查询SSH密钥信息列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaListKeypairs(request *model.NovaListKeypairsRequest) (*model.NovaListKeypairsResponse, error) {
requestDef := GenReqDefForNovaListKeypairs()
@@ -999,8 +979,7 @@ func (c *EcsClient) NovaListKeypairsInvoker(request *model.NovaListKeypairsReque
//
// 查询指定弹性云服务器的安全组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaListServerSecurityGroups(request *model.NovaListServerSecurityGroupsRequest) (*model.NovaListServerSecurityGroupsResponse, error) {
requestDef := GenReqDefForNovaListServerSecurityGroups()
@@ -1021,8 +1000,7 @@ func (c *EcsClient) NovaListServerSecurityGroupsInvoker(request *model.NovaListS
//
// 查询云服务器详情信息列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaListServersDetails(request *model.NovaListServersDetailsRequest) (*model.NovaListServersDetailsResponse, error) {
requestDef := GenReqDefForNovaListServersDetails()
@@ -1043,8 +1021,7 @@ func (c *EcsClient) NovaListServersDetailsInvoker(request *model.NovaListServers
//
// 根据SSH密钥名称查询指定SSH密钥。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaShowKeypair(request *model.NovaShowKeypairRequest) (*model.NovaShowKeypairResponse, error) {
requestDef := GenReqDefForNovaShowKeypair()
@@ -1065,8 +1042,7 @@ func (c *EcsClient) NovaShowKeypairInvoker(request *model.NovaShowKeypairRequest
//
// 根据云服务器ID,查询云服务器的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) NovaShowServer(request *model.NovaShowServerRequest) (*model.NovaShowServerResponse, error) {
requestDef := GenReqDefForNovaShowServer()
@@ -1087,8 +1063,7 @@ func (c *EcsClient) NovaShowServerInvoker(request *model.NovaShowServerRequest)
//
// 配置、删除云服务器自动恢复动作。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) RegisterServerAutoRecovery(request *model.RegisterServerAutoRecoveryRequest) (*model.RegisterServerAutoRecoveryResponse, error) {
requestDef := GenReqDefForRegisterServerAutoRecovery()
@@ -1105,14 +1080,36 @@ func (c *EcsClient) RegisterServerAutoRecoveryInvoker(request *model.RegisterSer
return &RegisterServerAutoRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// RegisterServerMonitor 注册云服务器监控
+//
+// 将云服务器添加到监控表中。
+//
+// 注册到监控表中的云服务会被ceilometer周期性采集监控数据,包括平台的版本、cpu信息、内存、网卡、磁盘、硬件平台等信息,这些数据上报给云监控。例如SAP云服务器内部的插件会周期性从云监控中查询监控数据,以报表形式呈现给SAP。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EcsClient) RegisterServerMonitor(request *model.RegisterServerMonitorRequest) (*model.RegisterServerMonitorResponse, error) {
+ requestDef := GenReqDefForRegisterServerMonitor()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RegisterServerMonitorResponse), nil
+ }
+}
+
+// RegisterServerMonitorInvoker 注册云服务器监控
+func (c *EcsClient) RegisterServerMonitorInvoker(request *model.RegisterServerMonitorRequest) *RegisterServerMonitorInvoker {
+ requestDef := GenReqDefForRegisterServerMonitor()
+ return &RegisterServerMonitorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ReinstallServerWithCloudInit 重装弹性云服务器操作系统(安装Cloud-init)
//
// 重装弹性云服务器的操作系统。支持弹性云服务器数据盘不变的情况下,使用原镜像重装系统盘。
//
// 调用该接口后,系统将卸载系统盘,然后使用原镜像重新创建系统盘,并挂载至弹性云服务器,实现重装操作系统功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ReinstallServerWithCloudInit(request *model.ReinstallServerWithCloudInitRequest) (*model.ReinstallServerWithCloudInitResponse, error) {
requestDef := GenReqDefForReinstallServerWithCloudInit()
@@ -1135,8 +1132,7 @@ func (c *EcsClient) ReinstallServerWithCloudInitInvoker(request *model.Reinstall
//
// 该接口支持未安装Cloud-init或Cloudbase-init的镜像。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ReinstallServerWithoutCloudInit(request *model.ReinstallServerWithoutCloudInitRequest) (*model.ReinstallServerWithoutCloudInitResponse, error) {
requestDef := GenReqDefForReinstallServerWithoutCloudInit()
@@ -1157,8 +1153,7 @@ func (c *EcsClient) ReinstallServerWithoutCloudInitInvoker(request *model.Reinst
//
// 重置弹性云服务器管理帐号(root用户或Administrator用户)的密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ResetServerPassword(request *model.ResetServerPasswordRequest) (*model.ResetServerPasswordResponse, error) {
requestDef := GenReqDefForResetServerPassword()
@@ -1183,8 +1178,7 @@ func (c *EcsClient) ResetServerPasswordInvoker(request *model.ResetServerPasswor
//
// 您可以通过接口“/v1/{project_id}/cloudservers/resize_flavors?{instance_uuid,source_flavor_id,source_flavor_name}”查询支持列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ResizePostPaidServer(request *model.ResizePostPaidServerRequest) (*model.ResizePostPaidServerResponse, error) {
requestDef := GenReqDefForResizePostPaidServer()
@@ -1213,8 +1207,7 @@ func (c *EcsClient) ResizePostPaidServerInvoker(request *model.ResizePostPaidSer
// - 如果使用AK/SK认证方式,示例代码中region请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“区域”的内容,,serviceName(英文服务名称缩写)请指定为ECS。
// - Endpoint请参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)中“弹性云服务 ECS”下“终端节点(Endpoint)”的内容。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ResizeServer(request *model.ResizeServerRequest) (*model.ResizeServerResponse, error) {
requestDef := GenReqDefForResizeServer()
@@ -1235,8 +1228,7 @@ func (c *EcsClient) ResizeServerInvoker(request *model.ResizeServerRequest) *Res
//
// 查询弹性云服务器是否支持一键重置密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowResetPasswordFlag(request *model.ShowResetPasswordFlagRequest) (*model.ShowResetPasswordFlagResponse, error) {
requestDef := GenReqDefForShowResetPasswordFlag()
@@ -1259,8 +1251,7 @@ func (c *EcsClient) ShowResetPasswordFlagInvoker(request *model.ShowResetPasswor
//
// 该接口支持查询弹性云服务器的计费方式,以及是否被冻结。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServer(request *model.ShowServerRequest) (*model.ShowServerResponse, error) {
requestDef := GenReqDefForShowServer()
@@ -1281,8 +1272,7 @@ func (c *EcsClient) ShowServerInvoker(request *model.ShowServerRequest) *ShowSer
//
// 查询云服务器是否配置了自动恢复动作。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerAutoRecovery(request *model.ShowServerAutoRecoveryRequest) (*model.ShowServerAutoRecoveryResponse, error) {
requestDef := GenReqDefForShowServerAutoRecovery()
@@ -1303,8 +1293,7 @@ func (c *EcsClient) ShowServerAutoRecoveryInvoker(request *model.ShowServerAutoR
//
// 查询弹性云服务器挂载的单个磁盘信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerBlockDevice(request *model.ShowServerBlockDeviceRequest) (*model.ShowServerBlockDeviceResponse, error) {
requestDef := GenReqDefForShowServerBlockDevice()
@@ -1327,8 +1316,7 @@ func (c *EcsClient) ShowServerBlockDeviceInvoker(request *model.ShowServerBlockD
//
// 与原生的创建云服务器组接口不同之处在于该接口支持企业项目细粒度权限的校验。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerGroup(request *model.ShowServerGroupRequest) (*model.ShowServerGroupResponse, error) {
requestDef := GenReqDefForShowServerGroup()
@@ -1349,8 +1337,7 @@ func (c *EcsClient) ShowServerGroupInvoker(request *model.ShowServerGroupRequest
//
// 查询租户配额信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerLimits(request *model.ShowServerLimitsRequest) (*model.ShowServerLimitsResponse, error) {
requestDef := GenReqDefForShowServerLimits()
@@ -1371,8 +1358,7 @@ func (c *EcsClient) ShowServerLimitsInvoker(request *model.ShowServerLimitsReque
//
// 当通过支持Cloudbase-init功能的镜像创建Windows云服务器时,获取云服务器初始安装时系统生成的管理员帐户(Administrator帐户或Cloudbase-init设置的帐户)随机密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerPassword(request *model.ShowServerPasswordRequest) (*model.ShowServerPasswordResponse, error) {
requestDef := GenReqDefForShowServerPassword()
@@ -1393,8 +1379,7 @@ func (c *EcsClient) ShowServerPasswordInvoker(request *model.ShowServerPasswordR
//
// 获取弹性云服务器VNC远程登录地址。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerRemoteConsole(request *model.ShowServerRemoteConsoleRequest) (*model.ShowServerRemoteConsoleResponse, error) {
requestDef := GenReqDefForShowServerRemoteConsole()
@@ -1417,8 +1402,7 @@ func (c *EcsClient) ShowServerRemoteConsoleInvoker(request *model.ShowServerRemo
//
// - 标签管理服务TMS使用该接口查询指定云服务器的全部标签数据。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowServerTags(request *model.ShowServerTagsRequest) (*model.ShowServerTagsResponse, error) {
requestDef := GenReqDefForShowServerTags()
@@ -1439,8 +1423,7 @@ func (c *EcsClient) ShowServerTagsInvoker(request *model.ShowServerTagsRequest)
//
// 修改云服务器信息,目前支持修改云服务器名称及描述和hostname。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) UpdateServer(request *model.UpdateServerRequest) (*model.UpdateServerResponse, error) {
requestDef := GenReqDefForUpdateServer()
@@ -1463,8 +1446,7 @@ func (c *EcsClient) UpdateServerInvoker(request *model.UpdateServerRequest) *Upd
//
// 该接口支持企业项目细粒度权限的校验,具体细粒度请参见 ecs:cloudServers:put。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) UpdateServerAutoTerminateTime(request *model.UpdateServerAutoTerminateTimeRequest) (*model.UpdateServerAutoTerminateTimeResponse, error) {
requestDef := GenReqDefForUpdateServerAutoTerminateTime()
@@ -1481,6 +1463,27 @@ func (c *EcsClient) UpdateServerAutoTerminateTimeInvoker(request *model.UpdateSe
return &UpdateServerAutoTerminateTimeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdateServerBlockDevice 修改云服务器挂载的单个磁盘信息
+//
+// 修改云服务器云主机挂载的单个磁盘信息。'当前仅支持修改delete_on_termination字段。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EcsClient) UpdateServerBlockDevice(request *model.UpdateServerBlockDeviceRequest) (*model.UpdateServerBlockDeviceResponse, error) {
+ requestDef := GenReqDefForUpdateServerBlockDevice()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateServerBlockDeviceResponse), nil
+ }
+}
+
+// UpdateServerBlockDeviceInvoker 修改云服务器挂载的单个磁盘信息
+func (c *EcsClient) UpdateServerBlockDeviceInvoker(request *model.UpdateServerBlockDeviceRequest) *UpdateServerBlockDeviceInvoker {
+ requestDef := GenReqDefForUpdateServerBlockDevice()
+ return &UpdateServerBlockDeviceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateServerMetadata 更新云服务器元数据
//
// 更新云服务器元数据。
@@ -1491,8 +1494,7 @@ func (c *EcsClient) UpdateServerAutoTerminateTimeInvoker(request *model.UpdateSe
//
// - 如果元数据中的字段不再请求参数中,则保持不变
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) UpdateServerMetadata(request *model.UpdateServerMetadataRequest) (*model.UpdateServerMetadataResponse, error) {
requestDef := GenReqDefForUpdateServerMetadata()
@@ -1515,8 +1517,7 @@ func (c *EcsClient) UpdateServerMetadataInvoker(request *model.UpdateServerMetad
//
// 对于创建云服务器、删除云服务器、云服务器批量操作和网卡操作等异步API,命令下发后,会返回job_id,通过job_id可以查询任务的执行状态。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EcsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error) {
requestDef := GenReqDefForShowJob()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_invoker.go
index f0432ed2..053ca531 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_invoker.go
@@ -377,6 +377,18 @@ func (i *ListServerTagsInvoker) Invoke() (*model.ListServerTagsResponse, error)
}
}
+type ListServersByTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListServersByTagInvoker) Invoke() (*model.ListServersByTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListServersByTagResponse), nil
+ }
+}
+
type ListServersDetailsInvoker struct {
*invoker.BaseInvoker
}
@@ -557,6 +569,18 @@ func (i *RegisterServerAutoRecoveryInvoker) Invoke() (*model.RegisterServerAutoR
}
}
+type RegisterServerMonitorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RegisterServerMonitorInvoker) Invoke() (*model.RegisterServerMonitorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RegisterServerMonitorResponse), nil
+ }
+}
+
type ReinstallServerWithCloudInitInvoker struct {
*invoker.BaseInvoker
}
@@ -749,6 +773,18 @@ func (i *UpdateServerAutoTerminateTimeInvoker) Invoke() (*model.UpdateServerAuto
}
}
+type UpdateServerBlockDeviceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateServerBlockDeviceInvoker) Invoke() (*model.UpdateServerBlockDeviceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateServerBlockDeviceResponse), nil
+ }
+}
+
type UpdateServerMetadataInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_meta.go
index c0d6af89..1738d475 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/ecs_meta.go
@@ -289,6 +289,11 @@ func GenReqDefForCreatePostPaidServers() *def.HttpRequestDef {
WithResponse(new(model.CreatePostPaidServersResponse)).
WithContentType("application/json;charset=UTF-8")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XClientToken").
+ WithJsonTag("X-Client-Token").
+ WithLocationType(def.Header))
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Body").
WithLocationType(def.Body))
@@ -319,6 +324,11 @@ func GenReqDefForCreateServers() *def.HttpRequestDef {
WithResponse(new(model.CreateServersResponse)).
WithContentType("application/json;charset=UTF-8")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XClientToken").
+ WithJsonTag("X-Client-Token").
+ WithLocationType(def.Header))
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Body").
WithLocationType(def.Body))
@@ -578,6 +588,21 @@ func GenReqDefForListServerTags() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListServersByTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1/{project_id}/cloudservers/resource_instances/action").
+ WithResponse(new(model.ListServersByTagResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListServersDetails() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -629,6 +654,10 @@ func GenReqDefForListServersDetails() *def.HttpRequestDef {
WithName("IpEq").
WithJsonTag("ip_eq").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ServerId").
+ WithJsonTag("server_id").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -945,6 +974,26 @@ func GenReqDefForRegisterServerAutoRecovery() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForRegisterServerMonitor() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1.0/servers/{server_id}/action").
+ WithResponse(new(model.RegisterServerMonitorResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ServerId").
+ WithJsonTag("server_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForReinstallServerWithCloudInit() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -1232,6 +1281,30 @@ func GenReqDefForUpdateServerAutoTerminateTime() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdateServerBlockDevice() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/{project_id}/cloudservers/{server_id}/block_device/{volume_id}").
+ WithResponse(new(model.UpdateServerBlockDeviceResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ServerId").
+ WithJsonTag("server_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VolumeId").
+ WithJsonTag("volume_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForUpdateServerMetadata() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_attach_server_volume_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_attach_server_volume_option.go
index 2426737c..d681f63c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_attach_server_volume_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_attach_server_volume_option.go
@@ -18,6 +18,9 @@ type AttachServerVolumeOption struct {
// 云硬盘类型。 该字段于dry_run为true并且volumeId不存在时有效且为必选字段。
VolumeType *string `json:"volume_type,omitempty"`
+ // 云硬盘的个数。 该字段于dry_run为true并且volumeId不存在时有效,如果该字段不存在,默认为1。
+ Count *int32 `json:"count,omitempty"`
+
// - true: 表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令 - false: 表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,VBD只能支持简单的SCSI读写命令。 该字段于dry_run为true并且volumeId不存在时有效且为必选字段。
Hwpassthrough *string `json:"hw:passthrough,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_batch_add_server_nic_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_batch_add_server_nic_option.go
index 45290bf4..6b372a8f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_batch_add_server_nic_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_batch_add_server_nic_option.go
@@ -9,7 +9,7 @@ import (
//
type BatchAddServerNicOption struct {
- // 云服务器添加网卡的信息。 需要指定云服务器所属虚拟私有云下已创建的网络(network)的ID,UUID格式。 指定subnet_id时不能再指定port_id参数。
+ // 云服务器添加网卡的信息。 需要指定云服务器所属虚拟私有云下已创建的网络(network)的ID,UUID格式。
SubnetId string `json:"subnet_id"`
// 添加网卡的安全组信息
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_post_paid_servers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_post_paid_servers_request.go
index 704c1d15..8a893383 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_post_paid_servers_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_post_paid_servers_request.go
@@ -8,6 +8,10 @@ import (
// Request Object
type CreatePostPaidServersRequest struct {
+
+ // 保证客户端请求幂等性的标识
+ XClientToken *string `json:"X-Client-Token,omitempty"`
+
Body *CreatePostPaidServersRequestBody `json:"body,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_servers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_servers_request.go
index df763da7..a593b426 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_servers_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_create_servers_request.go
@@ -8,6 +8,10 @@ import (
// Request Object
type CreateServersRequest struct {
+
+ // 保证客户端请求幂等性的标识
+ XClientToken *string `json:"X-Client-Token,omitempty"`
+
Body *CreateServersRequestBody `json:"body,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_resize_flavors_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_resize_flavors_request.go
index 563aab15..16d9540c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_resize_flavors_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_resize_flavors_request.go
@@ -12,7 +12,7 @@ import (
// Request Object
type ListResizeFlavorsRequest struct {
- // 进行规格切换的云服务器ID,UUID格式。
+ // 进行规格切换的云服务器ID,UUID格式。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
InstanceUuid *string `json:"instance_uuid,omitempty"`
// 单页面可显示的flavor条数最大值,默认是1000。
@@ -27,10 +27,10 @@ type ListResizeFlavorsRequest struct {
// 排序字段。 key的取值范围: - flavorid:表示规格ID。 - sort_key的默认值为“flavorid”。 - name:表示规格名称。 - memory_mb:表示内存大小。 - vcpus:表示CPU大小。 - root_gb:表示系统盘大小。
SortKey *ListResizeFlavorsRequestSortKey `json:"sort_key,omitempty"`
- // 进行规格切换的云服务器源规格ID。
+ // 进行规格切换的云服务器源规格ID。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
SourceFlavorId *string `json:"source_flavor_id,omitempty"`
- // 进行规格切换的云服务器源规格名称。
+ // 进行规格切换的云服务器源规格名称。(instance_uuid,source_flavor_id and source_flavor_name 不能都为空)
SourceFlavorName *string `json:"source_flavor_name,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request.go
new file mode 100644
index 00000000..12fc7989
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListServersByTagRequest struct {
+ Body *ListServersByTagRequestBody `json:"body,omitempty"`
+}
+
+func (o ListServersByTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListServersByTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListServersByTagRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request_body.go
new file mode 100644
index 00000000..71b430dd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_request_body.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// This is a auto create Body Object
+type ListServersByTagRequestBody struct {
+
+ // 值为filter:表示按标签过滤弹性云服务器,返回符合条件的云服务器列表。
+ Action string `json:"action"`
+
+ // 查询返回的云服务器数量限制,最多为1000,不能为负数。 - 如果action的值为count时,此参数无效。 - 如果action的值为filter时,limit必填,取值范围[0-1000],如果不传值,系统默认limit值为1000。
+ Limit *string `json:"limit,omitempty"`
+
+ // 偏移量:指定返回记录的开始位置,必须为数字,取值范围为大于或等于0。 查询第一页数据时,可以不传入此参数。 - 如果action的值为count,此参数无效。 - 如果action的值为filter时,必填,如果用户不传值,系统默认offset值为0。
+ Offset *string `json:"offset,omitempty"`
+
+ // 查询包含所有指定标签的弹性云服务器。 - 最多包含10个key,每个key下面的value最多10个。 - 结构体不能缺失。 - key不能为空或者空字符串。 - key不能重复。 - 同一个key中values不能重复。
+ Tags *[]ServerTags `json:"tags,omitempty"`
+
+ // 查询不包含所有指定标签的弹性云服务器。 - 最多包含10个key,每个key下面的value最多10个。 - 结构体不能缺失。 - key不能为空或者空字符串。 - key不能重复。 - 同一个key中values不能重复。
+ NotTags *[]ServerTags `json:"not_tags,omitempty"`
+
+ // 搜索字段,用于按条件搜索弹性云服务器。 当前仅支持按resource_name进行搜索
+ Matches *[]ServerTagMatch `json:"matches,omitempty"`
+}
+
+func (o ListServersByTagRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListServersByTagRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ListServersByTagRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_response.go
new file mode 100644
index 00000000..ffe2abb3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_by_tag_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListServersByTagResponse struct {
+
+ // 返回的云服务器列表。
+ Resources *[]ServerResource `json:"resources,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListServersByTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListServersByTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListServersByTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_details_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_details_request.go
index 66d4ab24..e465164f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_details_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_list_servers_details_request.go
@@ -18,7 +18,7 @@ type ListServersDetailsRequest struct {
// IPv4地址过滤结果,匹配规则为模糊匹配。
Ip *string `json:"ip,omitempty"`
- // 查询返回云服务器当前页面的大小。每页最多返回1000台云服务器的信息。
+ // 查询返回云服务器当前页面的大小。每页默认值是25,最多返回1000台云服务器的信息。
Limit *int32 `json:"limit,omitempty"`
// 云服务器名称,匹配规则为模糊匹配。
@@ -27,7 +27,7 @@ type ListServersDetailsRequest struct {
// 查询tag字段中不包含该值的云服务器。
NotTags *string `json:"not-tags,omitempty"`
- // 页码。 当前页面数,默认为1。 取值大于等于0,取值为0时返回第1页。
+ // 页码。 当前页面数,默认为1,取值范围大于等于0。 当取值为0时,系统默认返回第1页,与取值为1时相同。 建议设置该参数大于等于1。
Offset *int32 `json:"offset,omitempty"`
// 批量创建弹性云服务器时,指定返回的ID,用于查询本次批量创建的弹性云服务器。
@@ -41,6 +41,9 @@ type ListServersDetailsRequest struct {
// IPv4地址过滤结果,匹配规则为精确匹配。
IpEq *string `json:"ip_eq,omitempty"`
+
+ // 云服务器ID,格式为UUID,匹配规则为精确匹配 示例: server_id=id1,id2
+ ServerId *string `json:"server_id,omitempty"`
}
func (o ListServersDetailsRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server.go
index b560e524..c6cdc18d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server.go
@@ -18,6 +18,9 @@ type PostPaidServer struct {
// 待创建云服务器所在的可用分区,需要指定可用分区(AZ)的名称。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
AvailabilityZone *string `json:"availability_zone,omitempty"`
+ // 是否支持随机多AZ部署。 - “true”:批量创建的ecs部署在多个AZ上 - “false”:批量创建的ecs部署在单个AZ上 > 说明: > > 当availability_zone为空时该字段生效。
+ BatchCreateInMultiAz *bool `json:"batch_create_in_multi_az,omitempty"`
+
// 创建云服务器数量。 约束: - 不传该字段时默认取值为1。 - 租户的配额足够时,最大值为500。
Count *int32 `json:"count,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server_root_volume.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server_root_volume.go
index 3a72fd71..bbf04e30 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server_root_volume.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_post_paid_server_root_volume.go
@@ -24,7 +24,7 @@ type PostPaidServerRootVolume struct {
// 云服务器系统盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
ClusterType *PostPaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`
- // 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为scsi类型的卷
+ // 云服务器数据盘对应的存储池的ID。
ClusterId *string `json:"cluster_id,omitempty"`
Extendparam *PostPaidServerRootVolumeExtendParam `json:"extendparam,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server.go
index 5461b085..8620c45a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server.go
@@ -55,6 +55,9 @@ type PrePaidServer struct {
// 待创建云服务器所在的可用分区,需要指定可用分区(AZ)的名称。 可通过接口 [查询可用区列表接口](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=ECS&api=NovaListAvailabilityZones) 获取,也可参考[地区和终端节点](https://developer.huaweicloud.com/endpoint)获取。
AvailabilityZone *string `json:"availability_zone,omitempty"`
+ // 是否支持随机多AZ部署。 - “true”:批量创建的ecs部署在多个AZ上 - “false”:批量创建的ecs部署在单个AZ上 > 说明: > > 当availability_zone为空时该字段生效。
+ BatchCreateInMultiAz *bool `json:"batch_create_in_multi_az,omitempty"`
+
Extendparam *PrePaidServerExtendParam `json:"extendparam,omitempty"`
// 用户自定义字段键值对。 > 说明: > > - 最多可注入10对键值(Key/Value)。 > - 主键(Key)只能由大写字母(A-Z)、小写字母(a-z)、数字(0-9)、中划线(-)、下划线(_)、冒号(:)和小数点(.)组成,长度为[1-255]个字符。 > - 值(value)最大长度为255个字符。 系统预留字段 1. op_svc_userid : 用户ID 当extendparam结构中的chargingMode为prePaid(即创建包年包月付费的云服务器),且使用SSH秘钥方式登录云服务器时,该字段为必选字段。 2. agency_name : 委托的名称 委托是由租户管理员在统一身份认证服务(Identity and Access Management,IAM)上创建的,可以为弹性云服务器提供访问云服务的临时凭证。 > 说明: > > 委托获取、更新请参考如下步骤: > > 1. 使用IAM服务提供的[查询委托列表](https://support.huaweicloud.com/api-iam/zh-cn_topic_0079467614.html)接口,获取有效可用的委托名称。 > 2. 使用[更新云服务器元数](https://support.huaweicloud.com/api-ecs/zh-cn_topic_0025560298.html)据接口,更新metadata中agency_name字段为新的委托名称。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server_root_volume.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server_root_volume.go
index 12dc3523..6b9a7e1c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server_root_volume.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_pre_paid_server_root_volume.go
@@ -23,7 +23,7 @@ type PrePaidServerRootVolume struct {
// 云服务器系统盘对应的磁盘存储类型。 磁盘存储类型枚举值: DSS:专属存储类型
ClusterType *PrePaidServerRootVolumeClusterType `json:"cluster_type,omitempty"`
- // 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为scsi类型的卷
+ // 云服务器数据盘对应的存储池的ID。
ClusterId *string `json:"cluster_id,omitempty"`
// 使用SDI规格创建虚拟机时请关注该参数,如果该参数值为true,说明创建的为scsi类型的卷 > 说明: > > 此参数为boolean类型,若传入非boolean类型字符,程序将按照false方式处理。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request.go
new file mode 100644
index 00000000..59d0d04b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RegisterServerMonitorRequest struct {
+
+ // 云服务器ID。
+ ServerId string `json:"server_id"`
+
+ Body *RegisterServerMonitorRequestBody `json:"body,omitempty"`
+}
+
+func (o RegisterServerMonitorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RegisterServerMonitorRequest struct{}"
+ }
+
+ return strings.Join([]string{"RegisterServerMonitorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request_body.go
new file mode 100644
index 00000000..e4737a66
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_request_body.go
@@ -0,0 +1,64 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// This is a auto create Body Object
+type RegisterServerMonitorRequestBody struct {
+
+ // 注册云服务器监控。
+ MonitorMetrics RegisterServerMonitorRequestBodyMonitorMetrics `json:"monitorMetrics"`
+}
+
+func (o RegisterServerMonitorRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RegisterServerMonitorRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RegisterServerMonitorRequestBody", string(data)}, " ")
+}
+
+type RegisterServerMonitorRequestBodyMonitorMetrics struct {
+ value string
+}
+
+type RegisterServerMonitorRequestBodyMonitorMetricsEnum struct {
+ EMPTY RegisterServerMonitorRequestBodyMonitorMetrics
+}
+
+func GetRegisterServerMonitorRequestBodyMonitorMetricsEnum() RegisterServerMonitorRequestBodyMonitorMetricsEnum {
+ return RegisterServerMonitorRequestBodyMonitorMetricsEnum{
+ EMPTY: RegisterServerMonitorRequestBodyMonitorMetrics{
+ value: "",
+ },
+ }
+}
+
+func (c RegisterServerMonitorRequestBodyMonitorMetrics) Value() string {
+ return c.value
+}
+
+func (c RegisterServerMonitorRequestBodyMonitorMetrics) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RegisterServerMonitorRequestBodyMonitorMetrics) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_response.go
new file mode 100644
index 00000000..aa4d62dc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_register_server_monitor_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RegisterServerMonitorResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RegisterServerMonitorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RegisterServerMonitorResponse struct{}"
+ }
+
+ return strings.Join([]string{"RegisterServerMonitorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_resource_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_resource_tag.go
new file mode 100644
index 00000000..acb0fc6f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_resource_tag.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 云服务器标签。
+type ResourceTag struct {
+
+ // 键。 - 最大长度127个unicode字符。 - key不能为空。 - 只能包含字母、数字、下划线“_”、中划线“-”。
+ Key string `json:"key"`
+
+ // 值。 - 每个值最大长度255个unicode字符。 - 可以为空字符串。 - 只能包含字母、数字、下划线“_”、中划线“-”。
+ Value string `json:"value"`
+}
+
+func (o ResourceTag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceTag struct{}"
+ }
+
+ return strings.Join([]string{"ResourceTag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_resource.go
new file mode 100644
index 00000000..0f8f1ae5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_resource.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+//
+type ServerResource struct {
+
+ // 云服务器ID。
+ ResourceId string `json:"resource_id"`
+
+ // 预留字段。
+ ResourceDetail string `json:"resource_detail"`
+
+ // 标签列表
+ Tags []ResourceTag `json:"tags"`
+
+ // 资源名称,即弹性云服务器名称。
+ ResourceName string `json:"resource_name"`
+}
+
+func (o ServerResource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ServerResource struct{}"
+ }
+
+ return strings.Join([]string{"ServerResource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tag_match.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tag_match.go
new file mode 100644
index 00000000..d40fdaf3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tag_match.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 搜索字段,用于按条件搜索弹性云服务器。
+type ServerTagMatch struct {
+
+ // 键,表示要匹配的字段。 当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。 - key不能重复,value为匹配的值。 - 此字段为固定字典值。 - 不允许为空字符串。
+ Key string `json:"key"`
+
+ // 值。 当前key的参数值只能取“resource_name”,此时value的参数值为云服务器名称。 - 每个值最大长度255个unicode字符。 - 不可以为空。
+ Value string `json:"value"`
+}
+
+func (o ServerTagMatch) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ServerTagMatch struct{}"
+ }
+
+ return strings.Join([]string{"ServerTagMatch", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tags.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tags.go
new file mode 100644
index 00000000..6ad9adbf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_server_tags.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+//
+type ServerTags struct {
+
+ // 键。 - 最大长度127个unicode字符。 - key不能为空。
+ Key string `json:"key"`
+
+ // 值列表。 - 最多10个value。 - value不允许重复。 - 每个值最大长度255个unicode字符。 - 如果values为空则表示any_value。 - value之间为或的关系。
+ Values []string `json:"values"`
+}
+
+func (o ServerTags) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ServerTags struct{}"
+ }
+
+ return strings.Join([]string{"ServerTags", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_option.go
new file mode 100644
index 00000000..999337c3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_option.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+//
+type UpdateServerBlockDeviceOption struct {
+
+ // 云硬盘随实例释放策略。 - true:云硬盘随实例释放。 - false:云硬盘不随实例释放。 > 说明 > > 不支持修改包年/包月计费模式的磁盘。 > 不支持修改共享盘。
+ DeleteOnTermination bool `json:"delete_on_termination"`
+}
+
+func (o UpdateServerBlockDeviceOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateServerBlockDeviceOption struct{}"
+ }
+
+ return strings.Join([]string{"UpdateServerBlockDeviceOption", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_req.go
new file mode 100644
index 00000000..1e3a8da3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_req.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// This is a auto create Body Object
+type UpdateServerBlockDeviceReq struct {
+ BlockDevice *UpdateServerBlockDeviceOption `json:"block_device"`
+}
+
+func (o UpdateServerBlockDeviceReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateServerBlockDeviceReq struct{}"
+ }
+
+ return strings.Join([]string{"UpdateServerBlockDeviceReq", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_request.go
new file mode 100644
index 00000000..dbcdd68c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateServerBlockDeviceRequest struct {
+
+ // 云服务器ID。
+ ServerId string `json:"server_id"`
+
+ // 磁盘id,uuid格式
+ VolumeId string `json:"volume_id"`
+
+ Body *UpdateServerBlockDeviceReq `json:"body,omitempty"`
+}
+
+func (o UpdateServerBlockDeviceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateServerBlockDeviceRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateServerBlockDeviceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_response.go
new file mode 100644
index 00000000..f955771a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/ecs/v2/model/model_update_server_block_device_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateServerBlockDeviceResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateServerBlockDeviceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateServerBlockDeviceResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateServerBlockDeviceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_client.go
index e8344d7a..86f71cf2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_client.go
@@ -23,8 +23,7 @@ func ElbClientBuilder() *http_client.HcHttpClientBuilder {
//
// 在指定pool下批量创建后端服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) BatchCreateMembers(request *model.BatchCreateMembersRequest) (*model.BatchCreateMembersResponse, error) {
requestDef := GenReqDefForBatchCreateMembers()
@@ -45,8 +44,7 @@ func (c *ElbClient) BatchCreateMembersInvoker(request *model.BatchCreateMembersR
//
// 在指定pool下批量删除后端服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) BatchDeleteMembers(request *model.BatchDeleteMembersRequest) (*model.BatchDeleteMembersResponse, error) {
requestDef := GenReqDefForBatchDeleteMembers()
@@ -67,8 +65,7 @@ func (c *ElbClient) BatchDeleteMembersInvoker(request *model.BatchDeleteMembersR
//
// 批量更新转发策略的优先级。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) BatchUpdatePoliciesPriority(request *model.BatchUpdatePoliciesPriorityRequest) (*model.BatchUpdatePoliciesPriorityResponse, error) {
requestDef := GenReqDefForBatchUpdatePoliciesPriority()
@@ -89,8 +86,7 @@ func (c *ElbClient) BatchUpdatePoliciesPriorityInvoker(request *model.BatchUpdat
//
// 负载均衡器计费模式变更,当前只支持按需计费转包周期计费。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ChangeLoadbalancerChargeMode(request *model.ChangeLoadbalancerChargeModeRequest) (*model.ChangeLoadbalancerChargeModeResponse, error) {
requestDef := GenReqDefForChangeLoadbalancerChargeMode()
@@ -111,8 +107,7 @@ func (c *ElbClient) ChangeLoadbalancerChargeModeInvoker(request *model.ChangeLoa
//
// 创建证书。用于HTTPS协议监听器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateCertificate(request *model.CreateCertificateRequest) (*model.CreateCertificateResponse, error) {
requestDef := GenReqDefForCreateCertificate()
@@ -133,8 +128,7 @@ func (c *ElbClient) CreateCertificateInvoker(request *model.CreateCertificateReq
//
// 创建健康检查。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateHealthMonitor(request *model.CreateHealthMonitorRequest) (*model.CreateHealthMonitorResponse, error) {
requestDef := GenReqDefForCreateHealthMonitor()
@@ -155,8 +149,7 @@ func (c *ElbClient) CreateHealthMonitorInvoker(request *model.CreateHealthMonito
//
// 创建七层转发策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateL7Policy(request *model.CreateL7PolicyRequest) (*model.CreateL7PolicyResponse, error) {
requestDef := GenReqDefForCreateL7Policy()
@@ -177,8 +170,7 @@ func (c *ElbClient) CreateL7PolicyInvoker(request *model.CreateL7PolicyRequest)
//
// 创建七层转发规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateL7Rule(request *model.CreateL7RuleRequest) (*model.CreateL7RuleResponse, error) {
requestDef := GenReqDefForCreateL7Rule()
@@ -199,8 +191,7 @@ func (c *ElbClient) CreateL7RuleInvoker(request *model.CreateL7RuleRequest) *Cre
//
// 创建监听器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateListener(request *model.CreateListenerRequest) (*model.CreateListenerResponse, error) {
requestDef := GenReqDefForCreateListener()
@@ -220,30 +211,17 @@ func (c *ElbClient) CreateListenerInvoker(request *model.CreateListenerRequest)
// CreateLoadBalancer 创建负载均衡器
//
// 创建负载均衡器。
-//
-//
-// 1.若要创建内网IPv4负载均衡器,则需要设置vip_subnet_cidr_id。
-//
-//
-// 2.若要创建公网IPv4负载均衡器,则需要设置publicip,以及设置vpc_id和vip_subnet_cidr_id这两个参数中的一个。
-//
-//
-// 3.若要绑定有已有公网IPv4地址,需要设置publicip_ids,以及设置vpc_id和vip_subnet_cidr_id这两个参数中的一个。
-//
-//
-// 4.若要创建内网双栈负载均衡器,则需要设置ipv6_vip_virsubnet_id。
-//
-//
-// 5.若要创建公网双栈负载均衡器,则需要设置ipv6_vip_virsubnet_id和ipv6_bandwidth。
-//
-//
-// 6.不支持绑定已有未使用的内网IPv4、内网IPv6或公网IPv6地址。
-//
+// 1. 若要创建内网IPv4负载均衡器,则需要设置vip_subnet_cidr_id。
+// 2. 若要创建公网IPv4负载均衡器,则需要设置publicip,以及设置vpc_id和vip_subnet_cidr_id这两个参数中的一个。
+// 3. 若要绑定有已有公网IPv4地址,
+// 则需要设置publicip_ids,以及设置vpc_id和vip_subnet_cidr_id这两个参数中的一个。
+// 4. 若要创建内网双栈负载均衡器,则需要设置ipv6_vip_virsubnet_id。
+// 5. 若要创建公网双栈负载均衡器,则需要设置ipv6_vip_virsubnet_id和ipv6_bandwidth。
+// 6. 不支持绑定已有未使用的内网IPv4、内网IPv6或公网IPv6地址。
//
// [> 不支持创建IPv6地址负载均衡器](tag:dt,dt_test)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateLoadBalancer(request *model.CreateLoadBalancerRequest) (*model.CreateLoadBalancerResponse, error) {
requestDef := GenReqDefForCreateLoadBalancer()
@@ -262,10 +240,9 @@ func (c *ElbClient) CreateLoadBalancerInvoker(request *model.CreateLoadBalancerR
// CreateLogtank 创建云日志
//
-// 创建云日志
+// 创建云日志。[荷兰region不支持云日志功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateLogtank(request *model.CreateLogtankRequest) (*model.CreateLogtankResponse, error) {
requestDef := GenReqDefForCreateLogtank()
@@ -282,34 +259,11 @@ func (c *ElbClient) CreateLogtankInvoker(request *model.CreateLogtankRequest) *C
return &CreateLogtankInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// CreateMasterSlavePool 创建主备后端服务器组
-//
-// 创建主备后端服务器组。
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *ElbClient) CreateMasterSlavePool(request *model.CreateMasterSlavePoolRequest) (*model.CreateMasterSlavePoolResponse, error) {
- requestDef := GenReqDefForCreateMasterSlavePool()
-
- if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
- return nil, err
- } else {
- return resp.(*model.CreateMasterSlavePoolResponse), nil
- }
-}
-
-// CreateMasterSlavePoolInvoker 创建主备后端服务器组
-func (c *ElbClient) CreateMasterSlavePoolInvoker(request *model.CreateMasterSlavePoolRequest) *CreateMasterSlavePoolInvoker {
- requestDef := GenReqDefForCreateMasterSlavePool()
- return &CreateMasterSlavePoolInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
-}
-
// CreateMember 创建后端服务器
//
// 创建后端服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateMember(request *model.CreateMemberRequest) (*model.CreateMemberResponse, error) {
requestDef := GenReqDefForCreateMember()
@@ -330,8 +284,7 @@ func (c *ElbClient) CreateMemberInvoker(request *model.CreateMemberRequest) *Cre
//
// 创建后端服务器组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreatePool(request *model.CreatePoolRequest) (*model.CreatePoolResponse, error) {
requestDef := GenReqDefForCreatePool()
@@ -352,8 +305,9 @@ func (c *ElbClient) CreatePoolInvoker(request *model.CreatePoolRequest) *CreateP
//
// 创建自定义安全策略。用于在创建HTTPS监听器时,请求参数中指定security_policy_id来设置监听器的自定义安全策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// [荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateSecurityPolicy(request *model.CreateSecurityPolicyRequest) (*model.CreateSecurityPolicyResponse, error) {
requestDef := GenReqDefForCreateSecurityPolicy()
@@ -374,8 +328,7 @@ func (c *ElbClient) CreateSecurityPolicyInvoker(request *model.CreateSecurityPol
//
// 删除证书。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteCertificate(request *model.DeleteCertificateRequest) (*model.DeleteCertificateResponse, error) {
requestDef := GenReqDefForDeleteCertificate()
@@ -396,8 +349,7 @@ func (c *ElbClient) DeleteCertificateInvoker(request *model.DeleteCertificateReq
//
// 删除健康检查。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteHealthMonitor(request *model.DeleteHealthMonitorRequest) (*model.DeleteHealthMonitorResponse, error) {
requestDef := GenReqDefForDeleteHealthMonitor()
@@ -418,8 +370,7 @@ func (c *ElbClient) DeleteHealthMonitorInvoker(request *model.DeleteHealthMonito
//
// 删除七层转发策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteL7Policy(request *model.DeleteL7PolicyRequest) (*model.DeleteL7PolicyResponse, error) {
requestDef := GenReqDefForDeleteL7Policy()
@@ -440,8 +391,7 @@ func (c *ElbClient) DeleteL7PolicyInvoker(request *model.DeleteL7PolicyRequest)
//
// 删除七层转发规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteL7Rule(request *model.DeleteL7RuleRequest) (*model.DeleteL7RuleResponse, error) {
requestDef := GenReqDefForDeleteL7Rule()
@@ -462,8 +412,7 @@ func (c *ElbClient) DeleteL7RuleInvoker(request *model.DeleteL7RuleRequest) *Del
//
// 删除监听器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteListener(request *model.DeleteListenerRequest) (*model.DeleteListenerResponse, error) {
requestDef := GenReqDefForDeleteListener()
@@ -484,8 +433,7 @@ func (c *ElbClient) DeleteListenerInvoker(request *model.DeleteListenerRequest)
//
// 删除负载均衡器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteLoadBalancer(request *model.DeleteLoadBalancerRequest) (*model.DeleteLoadBalancerResponse, error) {
requestDef := GenReqDefForDeleteLoadBalancer()
@@ -504,10 +452,9 @@ func (c *ElbClient) DeleteLoadBalancerInvoker(request *model.DeleteLoadBalancerR
// DeleteLogtank 删除云日志
//
-// 删除云日志。
+// 删除云日志。[荷兰region不支持云日志功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteLogtank(request *model.DeleteLogtankRequest) (*model.DeleteLogtankResponse, error) {
requestDef := GenReqDefForDeleteLogtank()
@@ -524,34 +471,11 @@ func (c *ElbClient) DeleteLogtankInvoker(request *model.DeleteLogtankRequest) *D
return &DeleteLogtankInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// DeleteMasterSlavePool 删除主备后端服务器组
-//
-// 删除主备后端服务器组。
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *ElbClient) DeleteMasterSlavePool(request *model.DeleteMasterSlavePoolRequest) (*model.DeleteMasterSlavePoolResponse, error) {
- requestDef := GenReqDefForDeleteMasterSlavePool()
-
- if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
- return nil, err
- } else {
- return resp.(*model.DeleteMasterSlavePoolResponse), nil
- }
-}
-
-// DeleteMasterSlavePoolInvoker 删除主备后端服务器组
-func (c *ElbClient) DeleteMasterSlavePoolInvoker(request *model.DeleteMasterSlavePoolRequest) *DeleteMasterSlavePoolInvoker {
- requestDef := GenReqDefForDeleteMasterSlavePool()
- return &DeleteMasterSlavePoolInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
-}
-
// DeleteMember 删除后端服务器
//
// 删除后端服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteMember(request *model.DeleteMemberRequest) (*model.DeleteMemberResponse, error) {
requestDef := GenReqDefForDeleteMember()
@@ -572,8 +496,7 @@ func (c *ElbClient) DeleteMemberInvoker(request *model.DeleteMemberRequest) *Del
//
// 删除后端服务器组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeletePool(request *model.DeletePoolRequest) (*model.DeletePoolResponse, error) {
requestDef := GenReqDefForDeletePool()
@@ -592,10 +515,9 @@ func (c *ElbClient) DeletePoolInvoker(request *model.DeletePoolRequest) *DeleteP
// DeleteSecurityPolicy 删除自定义安全策略
//
-// 删除自定义安全策略。
+// 删除自定义安全策略。[荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteSecurityPolicy(request *model.DeleteSecurityPolicyRequest) (*model.DeleteSecurityPolicyResponse, error) {
requestDef := GenReqDefForDeleteSecurityPolicy()
@@ -616,8 +538,7 @@ func (c *ElbClient) DeleteSecurityPolicyInvoker(request *model.DeleteSecurityPol
//
// 查询当前租户下的后端服务器列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListAllMembers(request *model.ListAllMembersRequest) (*model.ListAllMembersResponse, error) {
requestDef := GenReqDefForListAllMembers()
@@ -638,14 +559,15 @@ func (c *ElbClient) ListAllMembersInvoker(request *model.ListAllMembersRequest)
//
// 返回租户创建LB时可使用的可用区集合列表情况。
//
+// - 默认情况下,会返回一个可用区集合。
+// 在(如创建LB)设置可用区时,填写的可用区必须包含在可用区集合中、为这个可用区集合的子集。
//
-// - 默认情况下,会返回一个可用区集合。在(如创建LB)设置可用区时,填写的可用区必须包含在可用区集合中、为这个可用区集合的子集。
+// - 特殊场景下,部分客户要求负载均衡只能创建在指定可用区集合中,此时会返回客户定制的可用区集合。
+// 返回可用区集合可能为一个也可能为多个,比如列表有两个可用区集合\\[az1,az2\\],\\[az2,az3\\]。
+// 在创建负载均衡器时,可以选择创建在多个可用区,但所选的多个可用区必须同属于其中一个可用区集合,
+// 如可以选az2和az3,但不能选择az1和az3。你可以选择多个可用区,只要这些可用区在一个子集中
//
-//
-// - 特殊场景下,部分客户要求负载均衡只能创建在指定可用区集合中,此时会返回客户定制的可用区集合。返回可用区集合可能为一个也可能为多个,比如列表有两个可用区集合\\[az1,az2\\], \\[az2, az3\\]。在创建负载均衡器时,可以选择创建在多个可用区,但所选的多个可用区必须同属于其中一个可用区集合,如可以选az2和az3,但不能选择 az1和az3。你可以选择多个可用区,只要这些可用区在一个子集中
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListAvailabilityZones(request *model.ListAvailabilityZonesRequest) (*model.ListAvailabilityZonesResponse, error) {
requestDef := GenReqDefForListAvailabilityZones()
@@ -666,8 +588,7 @@ func (c *ElbClient) ListAvailabilityZonesInvoker(request *model.ListAvailability
//
// 查询证书列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListCertificates(request *model.ListCertificatesRequest) (*model.ListCertificatesResponse, error) {
requestDef := GenReqDefForListCertificates()
@@ -688,8 +609,7 @@ func (c *ElbClient) ListCertificatesInvoker(request *model.ListCertificatesReque
//
// 查询租户在当前region下可用的负载均衡规格列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -710,8 +630,7 @@ func (c *ElbClient) ListFlavorsInvoker(request *model.ListFlavorsRequest) *ListF
//
// 健康检查列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListHealthMonitors(request *model.ListHealthMonitorsRequest) (*model.ListHealthMonitorsResponse, error) {
requestDef := GenReqDefForListHealthMonitors()
@@ -732,8 +651,7 @@ func (c *ElbClient) ListHealthMonitorsInvoker(request *model.ListHealthMonitorsR
//
// 查询七层转发策略列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListL7Policies(request *model.ListL7PoliciesRequest) (*model.ListL7PoliciesResponse, error) {
requestDef := GenReqDefForListL7Policies()
@@ -754,8 +672,7 @@ func (c *ElbClient) ListL7PoliciesInvoker(request *model.ListL7PoliciesRequest)
//
// 查询转发规则列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListL7Rules(request *model.ListL7RulesRequest) (*model.ListL7RulesResponse, error) {
requestDef := GenReqDefForListL7Rules()
@@ -776,8 +693,7 @@ func (c *ElbClient) ListL7RulesInvoker(request *model.ListL7RulesRequest) *ListL
//
// 查询监听器列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListListeners(request *model.ListListenersRequest) (*model.ListListenersResponse, error) {
requestDef := GenReqDefForListListeners()
@@ -798,8 +714,7 @@ func (c *ElbClient) ListListenersInvoker(request *model.ListListenersRequest) *L
//
// 查询负载均衡器列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListLoadBalancers(request *model.ListLoadBalancersRequest) (*model.ListLoadBalancersResponse, error) {
requestDef := GenReqDefForListLoadBalancers()
@@ -818,10 +733,9 @@ func (c *ElbClient) ListLoadBalancersInvoker(request *model.ListLoadBalancersReq
// ListLogtanks 查询云日志列表
//
-// 查询云日志列表
+// 查询云日志列表。[荷兰region不支持云日志功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListLogtanks(request *model.ListLogtanksRequest) (*model.ListLogtanksResponse, error) {
requestDef := GenReqDefForListLogtanks()
@@ -838,34 +752,11 @@ func (c *ElbClient) ListLogtanksInvoker(request *model.ListLogtanksRequest) *Lis
return &ListLogtanksInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ListMasterSlavePools 查询主备后端服务器组列表
-//
-// 主备后端服务器组列表。
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *ElbClient) ListMasterSlavePools(request *model.ListMasterSlavePoolsRequest) (*model.ListMasterSlavePoolsResponse, error) {
- requestDef := GenReqDefForListMasterSlavePools()
-
- if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
- return nil, err
- } else {
- return resp.(*model.ListMasterSlavePoolsResponse), nil
- }
-}
-
-// ListMasterSlavePoolsInvoker 查询主备后端服务器组列表
-func (c *ElbClient) ListMasterSlavePoolsInvoker(request *model.ListMasterSlavePoolsRequest) *ListMasterSlavePoolsInvoker {
- requestDef := GenReqDefForListMasterSlavePools()
- return &ListMasterSlavePoolsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
-}
-
// ListMembers 查询后端服务器列表
//
// Pool下的后端服务器列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListMembers(request *model.ListMembersRequest) (*model.ListMembersResponse, error) {
requestDef := GenReqDefForListMembers()
@@ -886,8 +777,7 @@ func (c *ElbClient) ListMembersInvoker(request *model.ListMembersRequest) *ListM
//
// 后端服务器组列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListPools(request *model.ListPoolsRequest) (*model.ListPoolsResponse, error) {
requestDef := GenReqDefForListPools()
@@ -908,8 +798,7 @@ func (c *ElbClient) ListPoolsInvoker(request *model.ListPoolsRequest) *ListPools
//
// 查询指定项目中负载均衡相关的各类资源的当前配额和已使用配额信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListQuotaDetails(request *model.ListQuotaDetailsRequest) (*model.ListQuotaDetailsResponse, error) {
requestDef := GenReqDefForListQuotaDetails()
@@ -928,10 +817,9 @@ func (c *ElbClient) ListQuotaDetailsInvoker(request *model.ListQuotaDetailsReque
// ListSecurityPolicies 查询自定义安全策略列表
//
-// 查询自定义安全策略列表。
+// 查询自定义安全策略列表。[荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListSecurityPolicies(request *model.ListSecurityPoliciesRequest) (*model.ListSecurityPoliciesResponse, error) {
requestDef := GenReqDefForListSecurityPolicies()
@@ -954,8 +842,9 @@ func (c *ElbClient) ListSecurityPoliciesInvoker(request *model.ListSecurityPolic
//
// 系统安全策略为预置的所有租户通用的安全策略,租户不可新增或修改。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// [荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListSystemSecurityPolicies(request *model.ListSystemSecurityPoliciesRequest) (*model.ListSystemSecurityPoliciesResponse, error) {
requestDef := GenReqDefForListSystemSecurityPolicies()
@@ -976,8 +865,7 @@ func (c *ElbClient) ListSystemSecurityPoliciesInvoker(request *model.ListSystemS
//
// 查询证书详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowCertificate(request *model.ShowCertificateRequest) (*model.ShowCertificateResponse, error) {
requestDef := GenReqDefForShowCertificate()
@@ -998,8 +886,7 @@ func (c *ElbClient) ShowCertificateInvoker(request *model.ShowCertificateRequest
//
// 查询规格的详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowFlavor(request *model.ShowFlavorRequest) (*model.ShowFlavorResponse, error) {
requestDef := GenReqDefForShowFlavor()
@@ -1020,8 +907,7 @@ func (c *ElbClient) ShowFlavorInvoker(request *model.ShowFlavorRequest) *ShowFla
//
// 查询健康检查详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowHealthMonitor(request *model.ShowHealthMonitorRequest) (*model.ShowHealthMonitorResponse, error) {
requestDef := GenReqDefForShowHealthMonitor()
@@ -1042,8 +928,7 @@ func (c *ElbClient) ShowHealthMonitorInvoker(request *model.ShowHealthMonitorReq
//
// 查询七层转发策略详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowL7Policy(request *model.ShowL7PolicyRequest) (*model.ShowL7PolicyResponse, error) {
requestDef := GenReqDefForShowL7Policy()
@@ -1064,8 +949,7 @@ func (c *ElbClient) ShowL7PolicyInvoker(request *model.ShowL7PolicyRequest) *Sho
//
// 查询七层转发规则详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowL7Rule(request *model.ShowL7RuleRequest) (*model.ShowL7RuleResponse, error) {
requestDef := GenReqDefForShowL7Rule()
@@ -1086,8 +970,7 @@ func (c *ElbClient) ShowL7RuleInvoker(request *model.ShowL7RuleRequest) *ShowL7R
//
// 监听器详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowListener(request *model.ShowListenerRequest) (*model.ShowListenerResponse, error) {
requestDef := GenReqDefForShowListener()
@@ -1108,8 +991,7 @@ func (c *ElbClient) ShowListenerInvoker(request *model.ShowListenerRequest) *Sho
//
// 查询负载均衡器详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowLoadBalancer(request *model.ShowLoadBalancerRequest) (*model.ShowLoadBalancerResponse, error) {
requestDef := GenReqDefForShowLoadBalancer()
@@ -1129,11 +1011,11 @@ func (c *ElbClient) ShowLoadBalancerInvoker(request *model.ShowLoadBalancerReque
// ShowLoadBalancerStatus 查询负载均衡器状态树
//
// 查询负载均衡器状态树,包括负载均衡器及其关联的子资源的状态信息。
+// 注意:该接口中的operating_status不一定与对应资源的operating_status相同。
+// 如:当Member的admin_state_up=false且operating_status=OFFLINE时,
+// 该接口返回member的operating_status=DISABLE。
//
-// 注意:该接口中的operating_status不一定与对应资源的operating_status相同。如:当Member的admin_state_up=false且operating_status=OFFLINE时,该接口返回member的operating_status=DISABLE。
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowLoadBalancerStatus(request *model.ShowLoadBalancerStatusRequest) (*model.ShowLoadBalancerStatusResponse, error) {
requestDef := GenReqDefForShowLoadBalancerStatus()
@@ -1152,10 +1034,9 @@ func (c *ElbClient) ShowLoadBalancerStatusInvoker(request *model.ShowLoadBalance
// ShowLogtank 查询云日志详情
//
-// 云日志详情。
+// 云日志详情。[荷兰region不支持云日志功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowLogtank(request *model.ShowLogtankRequest) (*model.ShowLogtankResponse, error) {
requestDef := GenReqDefForShowLogtank()
@@ -1172,34 +1053,11 @@ func (c *ElbClient) ShowLogtankInvoker(request *model.ShowLogtankRequest) *ShowL
return &ShowLogtankInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ShowMasterSlavePool 查询主备后端服务器组详情
-//
-// 主备后端服务器组详情。
-//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *ElbClient) ShowMasterSlavePool(request *model.ShowMasterSlavePoolRequest) (*model.ShowMasterSlavePoolResponse, error) {
- requestDef := GenReqDefForShowMasterSlavePool()
-
- if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
- return nil, err
- } else {
- return resp.(*model.ShowMasterSlavePoolResponse), nil
- }
-}
-
-// ShowMasterSlavePoolInvoker 查询主备后端服务器组详情
-func (c *ElbClient) ShowMasterSlavePoolInvoker(request *model.ShowMasterSlavePoolRequest) *ShowMasterSlavePoolInvoker {
- requestDef := GenReqDefForShowMasterSlavePool()
- return &ShowMasterSlavePoolInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
-}
-
// ShowMember 查询后端服务器详情
//
// 后端服务器详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowMember(request *model.ShowMemberRequest) (*model.ShowMemberResponse, error) {
requestDef := GenReqDefForShowMember()
@@ -1220,8 +1078,7 @@ func (c *ElbClient) ShowMemberInvoker(request *model.ShowMemberRequest) *ShowMem
//
// 后端服务器组详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowPool(request *model.ShowPoolRequest) (*model.ShowPoolResponse, error) {
requestDef := GenReqDefForShowPool()
@@ -1242,8 +1099,7 @@ func (c *ElbClient) ShowPoolInvoker(request *model.ShowPoolRequest) *ShowPoolInv
//
// 查询指定项目中负载均衡相关的各类资源的当前配额。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowQuota(request *model.ShowQuotaRequest) (*model.ShowQuotaResponse, error) {
requestDef := GenReqDefForShowQuota()
@@ -1262,10 +1118,9 @@ func (c *ElbClient) ShowQuotaInvoker(request *model.ShowQuotaRequest) *ShowQuota
// ShowSecurityPolicy 查询自定义安全策略详情
//
-// 查询自定义安全策略详情。
+// 查询自定义安全策略详情。[荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowSecurityPolicy(request *model.ShowSecurityPolicyRequest) (*model.ShowSecurityPolicyResponse, error) {
requestDef := GenReqDefForShowSecurityPolicy()
@@ -1286,8 +1141,7 @@ func (c *ElbClient) ShowSecurityPolicyInvoker(request *model.ShowSecurityPolicyR
//
// 更新证书。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateCertificate(request *model.UpdateCertificateRequest) (*model.UpdateCertificateResponse, error) {
requestDef := GenReqDefForUpdateCertificate()
@@ -1308,8 +1162,7 @@ func (c *ElbClient) UpdateCertificateInvoker(request *model.UpdateCertificateReq
//
// 更新健康检查。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateHealthMonitor(request *model.UpdateHealthMonitorRequest) (*model.UpdateHealthMonitorResponse, error) {
requestDef := GenReqDefForUpdateHealthMonitor()
@@ -1330,8 +1183,7 @@ func (c *ElbClient) UpdateHealthMonitorInvoker(request *model.UpdateHealthMonito
//
// 更新七层转发策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateL7Policy(request *model.UpdateL7PolicyRequest) (*model.UpdateL7PolicyResponse, error) {
requestDef := GenReqDefForUpdateL7Policy()
@@ -1352,8 +1204,7 @@ func (c *ElbClient) UpdateL7PolicyInvoker(request *model.UpdateL7PolicyRequest)
//
// 更新七层转发规则。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateL7Rule(request *model.UpdateL7RuleRequest) (*model.UpdateL7RuleResponse, error) {
requestDef := GenReqDefForUpdateL7Rule()
@@ -1374,8 +1225,7 @@ func (c *ElbClient) UpdateL7RuleInvoker(request *model.UpdateL7RuleRequest) *Upd
//
// 更新监听器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateListener(request *model.UpdateListenerRequest) (*model.UpdateListenerResponse, error) {
requestDef := GenReqDefForUpdateListener()
@@ -1396,8 +1246,7 @@ func (c *ElbClient) UpdateListenerInvoker(request *model.UpdateListenerRequest)
//
// 更新负载均衡器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateLoadBalancer(request *model.UpdateLoadBalancerRequest) (*model.UpdateLoadBalancerResponse, error) {
requestDef := GenReqDefForUpdateLoadBalancer()
@@ -1416,10 +1265,9 @@ func (c *ElbClient) UpdateLoadBalancerInvoker(request *model.UpdateLoadBalancerR
// UpdateLogtank 更新云日志
//
-// 更新云日志
+// 更新云日志。[荷兰region不支持云日志功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateLogtank(request *model.UpdateLogtankRequest) (*model.UpdateLogtankResponse, error) {
requestDef := GenReqDefForUpdateLogtank()
@@ -1440,8 +1288,7 @@ func (c *ElbClient) UpdateLogtankInvoker(request *model.UpdateLogtankRequest) *U
//
// 更新后端服务器。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateMember(request *model.UpdateMemberRequest) (*model.UpdateMemberResponse, error) {
requestDef := GenReqDefForUpdateMember()
@@ -1462,8 +1309,7 @@ func (c *ElbClient) UpdateMemberInvoker(request *model.UpdateMemberRequest) *Upd
//
// 更新后端服务器组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdatePool(request *model.UpdatePoolRequest) (*model.UpdatePoolResponse, error) {
requestDef := GenReqDefForUpdatePool()
@@ -1482,10 +1328,9 @@ func (c *ElbClient) UpdatePoolInvoker(request *model.UpdatePoolRequest) *UpdateP
// UpdateSecurityPolicy 更新自定义安全策略
//
-// 更新自定义安全策略。
+// 更新自定义安全策略。[荷兰region不支持自定义安全策略功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateSecurityPolicy(request *model.UpdateSecurityPolicyRequest) (*model.UpdateSecurityPolicyResponse, error) {
requestDef := GenReqDefForUpdateSecurityPolicy()
@@ -1506,8 +1351,7 @@ func (c *ElbClient) UpdateSecurityPolicyInvoker(request *model.UpdateSecurityPol
//
// 返回ELB当前所有可用的API版本。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error) {
requestDef := GenReqDefForListApiVersions()
@@ -1528,8 +1372,7 @@ func (c *ElbClient) ListApiVersionsInvoker(request *model.ListApiVersionsRequest
//
// 批量删除IP地址组的IP列表信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) BatchDeleteIpList(request *model.BatchDeleteIpListRequest) (*model.BatchDeleteIpListResponse, error) {
requestDef := GenReqDefForBatchDeleteIpList()
@@ -1550,25 +1393,22 @@ func (c *ElbClient) BatchDeleteIpListInvoker(request *model.BatchDeleteIpListReq
//
// 计算以下几种场景的预占用IP数量:
//
-// -
-// 计算创建LB的第一个七层监听器后总占用IP数量:传入loadbalancer_id、l7_flavor_id为空、ip_target_enable不传或为false。
-//
-// -
-// 计算LB规格变更或开启跨VPC后总占用IP数量:传入参数loadbalancer_id,及l7_flavor_id不为空或ip_target_enable为true。
+// - 计算创建LB的第一个七层监听器后总占用IP数量:
+// 传入loadbalancer_id、l7_flavor_id为空、ip_target_enable不传或为false。
//
-// -
-// 计算创建LB所需IP数量:传入参数availability_zone_id,及可选参数l7_flavor_id、ip_target_enable、ip_version,不能传loadbalancer_id。
+// - 计算LB规格变更或开启跨VPC后总占用IP数量:
+// 传入参数loadbalancer_id,及l7_flavor_id不为空或ip_target_enable为true。
//
+// - 计算创建LB所需IP数量:传入参数availability_zone_id,
+// 及可选参数l7_flavor_id、ip_target_enable、ip_version,不能传loadbalancer_id。
//
// 说明:
-//
-//
// - 计算出来的预占IP数大于等于最终实际占用的IP数。
-//
// - 总占用IP数量,即整个LB所占用的IP数量。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// [不支持传入l7_flavor_id](tag:fcs)
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CountPreoccupyIpNum(request *model.CountPreoccupyIpNumRequest) (*model.CountPreoccupyIpNumResponse, error) {
requestDef := GenReqDefForCountPreoccupyIpNum()
@@ -1587,10 +1427,13 @@ func (c *ElbClient) CountPreoccupyIpNumInvoker(request *model.CountPreoccupyIpNu
// CreateIpGroup 创建IP地址组
//
-// 创建IP地址组。输入的ip可为ip地址或者CIDR子网,支持IPV4和IPV6。需要注意,0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,会只保留其中一个写入。
+// 创建IP地址组。输入的ip可为ip地址或者CIDR子网,支持IPV4和IPV6。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// 需要注意0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,只会保存其中一个。
+//
+// [荷兰region不支持IP地址组功能,请勿使用。](tag:dt)
+//
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) CreateIpGroup(request *model.CreateIpGroupRequest) (*model.CreateIpGroupResponse, error) {
requestDef := GenReqDefForCreateIpGroup()
@@ -1609,10 +1452,9 @@ func (c *ElbClient) CreateIpGroupInvoker(request *model.CreateIpGroupRequest) *C
// DeleteIpGroup 删除IP地址组
//
-// 删除ip地址组。
+// 删除ip地址组。[荷兰region不支持IP地址组功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) DeleteIpGroup(request *model.DeleteIpGroupRequest) (*model.DeleteIpGroupResponse, error) {
requestDef := GenReqDefForDeleteIpGroup()
@@ -1631,10 +1473,9 @@ func (c *ElbClient) DeleteIpGroupInvoker(request *model.DeleteIpGroupRequest) *D
// ListIpGroups 查询IP地址组列表
//
-// 查询IP地址组列表。
+// 查询IP地址组列表。[荷兰region不支持IP地址组功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ListIpGroups(request *model.ListIpGroupsRequest) (*model.ListIpGroupsResponse, error) {
requestDef := GenReqDefForListIpGroups()
@@ -1653,10 +1494,9 @@ func (c *ElbClient) ListIpGroupsInvoker(request *model.ListIpGroupsRequest) *Lis
// ShowIpGroup 查询IP地址组详情
//
-// 获取IP地址组详情。
+// 获取IP地址组详情。[荷兰region不支持IP地址组功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) ShowIpGroup(request *model.ShowIpGroupRequest) (*model.ShowIpGroupResponse, error) {
requestDef := GenReqDefForShowIpGroup()
@@ -1675,10 +1515,14 @@ func (c *ElbClient) ShowIpGroupInvoker(request *model.ShowIpGroupRequest) *ShowI
// UpdateIpGroup 更新IP地址组
//
-// 更新IP地址组,只支持全量更新IP。即IP地址组中的ip_list将被全量覆盖,不在请求参数中的IP地址将被移除。输入的ip可为ip地址或者CIDR子网,支持IPV4和IPV6。需要注意,0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,会只保留其中一个写入。
+// 更新IP地址组,只支持全量更新IP。即IP地址组中的ip_list将被全量覆盖,不在请求参数中的IP地址将被移除。
+// 输入的ip可为ip地址或者CIDR子网,支持IPV4和IPV6。
+//
+// 需要注意0.0.0.0与0.0.0.0/32视为重复,0:0:0:0:0:0:0:1与::1与::1/128视为重复,只会保存其中一个。
+//
+// [荷兰region不支持IP地址组功能,请勿使用。](tag:dt)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateIpGroup(request *model.UpdateIpGroupRequest) (*model.UpdateIpGroupResponse, error) {
requestDef := GenReqDefForUpdateIpGroup()
@@ -1697,10 +1541,9 @@ func (c *ElbClient) UpdateIpGroupInvoker(request *model.UpdateIpGroupRequest) *U
// UpdateIpList 更新IP地址组的IP列表项
//
-// 更新IP地址组的IP列表信息。
+// 更新IP地址组的IP列表信息。[荷兰region不支持该API](tag:dt,dt_test)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *ElbClient) UpdateIpList(request *model.UpdateIpListRequest) (*model.UpdateIpListResponse, error) {
requestDef := GenReqDefForUpdateIpList()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_invoker.go
index 8591419c..c8bc7d46 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_invoker.go
@@ -137,18 +137,6 @@ func (i *CreateLogtankInvoker) Invoke() (*model.CreateLogtankResponse, error) {
}
}
-type CreateMasterSlavePoolInvoker struct {
- *invoker.BaseInvoker
-}
-
-func (i *CreateMasterSlavePoolInvoker) Invoke() (*model.CreateMasterSlavePoolResponse, error) {
- if result, err := i.BaseInvoker.Invoke(); err != nil {
- return nil, err
- } else {
- return result.(*model.CreateMasterSlavePoolResponse), nil
- }
-}
-
type CreateMemberInvoker struct {
*invoker.BaseInvoker
}
@@ -269,18 +257,6 @@ func (i *DeleteLogtankInvoker) Invoke() (*model.DeleteLogtankResponse, error) {
}
}
-type DeleteMasterSlavePoolInvoker struct {
- *invoker.BaseInvoker
-}
-
-func (i *DeleteMasterSlavePoolInvoker) Invoke() (*model.DeleteMasterSlavePoolResponse, error) {
- if result, err := i.BaseInvoker.Invoke(); err != nil {
- return nil, err
- } else {
- return result.(*model.DeleteMasterSlavePoolResponse), nil
- }
-}
-
type DeleteMemberInvoker struct {
*invoker.BaseInvoker
}
@@ -437,18 +413,6 @@ func (i *ListLogtanksInvoker) Invoke() (*model.ListLogtanksResponse, error) {
}
}
-type ListMasterSlavePoolsInvoker struct {
- *invoker.BaseInvoker
-}
-
-func (i *ListMasterSlavePoolsInvoker) Invoke() (*model.ListMasterSlavePoolsResponse, error) {
- if result, err := i.BaseInvoker.Invoke(); err != nil {
- return nil, err
- } else {
- return result.(*model.ListMasterSlavePoolsResponse), nil
- }
-}
-
type ListMembersInvoker struct {
*invoker.BaseInvoker
}
@@ -617,18 +581,6 @@ func (i *ShowLogtankInvoker) Invoke() (*model.ShowLogtankResponse, error) {
}
}
-type ShowMasterSlavePoolInvoker struct {
- *invoker.BaseInvoker
-}
-
-func (i *ShowMasterSlavePoolInvoker) Invoke() (*model.ShowMasterSlavePoolResponse, error) {
- if result, err := i.BaseInvoker.Invoke(); err != nil {
- return nil, err
- } else {
- return result.(*model.ShowMasterSlavePoolResponse), nil
- }
-}
-
type ShowMemberInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_meta.go
index ae16fc94..9fc4efa7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/elb_meta.go
@@ -187,21 +187,6 @@ func GenReqDefForCreateLogtank() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForCreateMasterSlavePool() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPost).
- WithPath("/v3/{project_id}/elb/master-slave-pools").
- WithResponse(new(model.CreateMasterSlavePoolResponse)).
- WithContentType("application/json;charset=UTF-8")
-
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
-
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
func GenReqDefForCreateMember() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -368,22 +353,6 @@ func GenReqDefForDeleteLogtank() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForDeleteMasterSlavePool() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodDelete).
- WithPath("/v3/{project_id}/elb/master-slave-pools/{pool_id}").
- WithResponse(new(model.DeleteMasterSlavePoolResponse)).
- WithContentType("application/json")
-
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("PoolId").
- WithJsonTag("pool_id").
- WithLocationType(def.Path))
-
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
func GenReqDefForDeleteMember() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -1137,90 +1106,6 @@ func GenReqDefForListLogtanks() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListMasterSlavePools() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/elb/master-slave-pools").
- WithResponse(new(model.ListMasterSlavePoolsResponse)).
- WithContentType("application/json")
-
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Marker").
- WithJsonTag("marker").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Limit").
- WithJsonTag("limit").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("PageReverse").
- WithJsonTag("page_reverse").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Description").
- WithJsonTag("description").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("HealthmonitorId").
- WithJsonTag("healthmonitor_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Id").
- WithJsonTag("id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Name").
- WithJsonTag("name").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("LoadbalancerId").
- WithJsonTag("loadbalancer_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Protocol").
- WithJsonTag("protocol").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("LbAlgorithm").
- WithJsonTag("lb_algorithm").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("EnterpriseProjectId").
- WithJsonTag("enterprise_project_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("IpVersion").
- WithJsonTag("ip_version").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("MemberAddress").
- WithJsonTag("member_address").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("MemberDeviceId").
- WithJsonTag("member_device_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("ListenerId").
- WithJsonTag("listener_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("MemberInstanceId").
- WithJsonTag("member_instance_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("VpcId").
- WithJsonTag("vpc_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Type").
- WithJsonTag("type").
- WithLocationType(def.Query))
-
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
func GenReqDefForListMembers() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -1289,6 +1174,10 @@ func GenReqDefForListMembers() *def.HttpRequestDef {
WithName("MemberType").
WithJsonTag("member_type").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -1605,22 +1494,6 @@ func GenReqDefForShowLogtank() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForShowMasterSlavePool() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/elb/master-slave-pools/{pool_id}").
- WithResponse(new(model.ShowMasterSlavePoolResponse)).
- WithContentType("application/json")
-
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("PoolId").
- WithJsonTag("pool_id").
- WithLocationType(def.Path))
-
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
func GenReqDefForShowMember() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_api_version_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_api_version_info.go
new file mode 100644
index 00000000..773f3448
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_api_version_info.go
@@ -0,0 +1,75 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// This is a auto create Response Object
+type ApiVersionInfo struct {
+
+ // API版本号。 取值:由高到低版本分别为v3,v2,v2.0。
+ Id string `json:"id"`
+
+ // API版本的状态。 取值: - CURRENT:当前版本。 - STABLE:稳定版本。 - DEPRECATED:废弃版本。 说明: 所有支持的API版本中最高版状态为CURRENT,其他版本状态为STABLE。
+ Status ApiVersionInfoStatus `json:"status"`
+}
+
+func (o ApiVersionInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApiVersionInfo struct{}"
+ }
+
+ return strings.Join([]string{"ApiVersionInfo", string(data)}, " ")
+}
+
+type ApiVersionInfoStatus struct {
+ value string
+}
+
+type ApiVersionInfoStatusEnum struct {
+ CURRENT ApiVersionInfoStatus
+ STABLE ApiVersionInfoStatus
+ DEPRECATED ApiVersionInfoStatus
+}
+
+func GetApiVersionInfoStatusEnum() ApiVersionInfoStatusEnum {
+ return ApiVersionInfoStatusEnum{
+ CURRENT: ApiVersionInfoStatus{
+ value: "CURRENT",
+ },
+ STABLE: ApiVersionInfoStatus{
+ value: "STABLE",
+ },
+ DEPRECATED: ApiVersionInfoStatus{
+ value: "DEPRECATED",
+ },
+ }
+}
+
+func (c ApiVersionInfoStatus) Value() string {
+ return c.value
+}
+
+func (c ApiVersionInfoStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ApiVersionInfoStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_autoscaling_ref.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_autoscaling_ref.go
index f7e0e6be..b72c5e22 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_autoscaling_ref.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_autoscaling_ref.go
@@ -6,10 +6,10 @@ import (
"strings"
)
-// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。
+// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)
type AutoscalingRef struct {
- // 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。
+ // 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。
Enable bool `json:"enable"`
// 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_availability_zone.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_availability_zone.go
index 1fa1187f..6f95c403 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_availability_zone.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_availability_zone.go
@@ -15,7 +15,7 @@ type AvailabilityZone struct {
// 可用区状态。 取值:ACTIVE。
State string `json:"state"`
- // 未售罄的LB规格类别。取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。
+ // 未售罄的LB规格类别。 取值:L4 表示网络型LB未售罄;L7 表示应用型LB未售罄。
Protocol []string `json:"protocol"`
// 可用区组,如:center
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_create_members_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_create_members_option.go
index 77d9315c..b965aff9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_create_members_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_create_members_option.go
@@ -18,10 +18,10 @@ type BatchCreateMembersOption struct {
// 后端服务器端口号。
ProtocolPort int32 `json:"protocol_port"`
- // 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。 当所在LB未开启跨VPC后端,该参数必填。 当所在LB开启跨VPC后端,该参数非必填,表示添加跨VPC后端,此时address必须为ipv4地址,pool的协议必须为TCP/HTTP/HTTPS,pool所属的LB的跨VPC后端转发能力必须打开。
+ // 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。 当所在LB未开启跨VPC后端,该参数必填。 当所在LB开启跨VPC后端,该参数非必填,表示添加跨VPC后端,此时address必须为ipv4地址, pool的协议必须为TCP/HTTP/HTTPS,pool所属的LB的跨VPC后端转发能力必须打开。
SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`
- // 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
Weight *int32 `json:"weight,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_group_ip_list_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_group_ip_list_request_body.go
deleted file mode 100644
index ae1fd5c2..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_group_ip_list_request_body.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// This is a auto create Response Object
-type BatchDeleteIpGroupIpListRequestBody struct {
- Ipgroup *BatchDeleteIpListOption `json:"ipgroup,omitempty"`
-}
-
-func (o BatchDeleteIpGroupIpListRequestBody) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "BatchDeleteIpGroupIpListRequestBody struct{}"
- }
-
- return strings.Join([]string{"BatchDeleteIpGroupIpListRequestBody", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request.go
index 3725ce6b..d11ed697 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request.go
@@ -12,7 +12,7 @@ type BatchDeleteIpListRequest struct {
// IP地址组ID。
IpgroupId string `json:"ipgroup_id"`
- Body *BatchDeleteIpGroupIpListRequestBody `json:"body,omitempty"`
+ Body *BatchDeleteIpListRequestBody `json:"body,omitempty"`
}
func (o BatchDeleteIpListRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request_body.go
new file mode 100644
index 00000000..51953861
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_ip_list_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// This is a auto create Response Object
+type BatchDeleteIpListRequestBody struct {
+ Ipgroup *BatchDeleteIpListOption `json:"ipgroup,omitempty"`
+}
+
+func (o BatchDeleteIpListRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchDeleteIpListRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BatchDeleteIpListRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_members_state.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_members_state.go
index b47e9709..9ec91d8c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_members_state.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_delete_members_state.go
@@ -9,10 +9,10 @@ import (
// 批量创建后端服务器响应结果
type BatchDeleteMembersState struct {
- // 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
+ // 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
Id string `json:"id"`
- // 当前后端服务器删除结果状态。取值: - successful:删除成功。 - not found:member不存在。
+ // 当前后端服务器删除结果状态。 取值: - successful:删除成功。 - not found:member不存在。
RetStatus string `json:"ret_status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_member.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_member.go
index b5f42c2f..706a597e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_member.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_member.go
@@ -9,7 +9,7 @@ import (
// 批量创建后端服务器响应参数
type BatchMember struct {
- // 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
+ // 后端服务器ID。 >说明: 此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
Id string `json:"id"`
// 后端服务器名称。
@@ -18,28 +18,28 @@ type BatchMember struct {
// 后端服务器所在的项目ID。
ProjectId string `json:"project_id"`
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
+ // 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
AdminStateUp bool `json:"admin_state_up"`
- // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
+ // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`
// 后端服务器业务端口号。
ProtocolPort int32 `json:"protocol_port"`
- // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
Weight int32 `json:"weight"`
- // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Address string `json:"address"`
- // 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
+ // 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
OperatingStatus string `json:"operating_status"`
// 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
Status *[]MemberStatus `json:"status,omitempty"`
- // 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
+ // 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
MemberType *string `json:"member_type,omitempty"`
// member关联的实例ID,空表示跨VPC场景的member。
@@ -48,7 +48,7 @@ type BatchMember struct {
// IP地址对应的VPC port ID
PortId string `json:"port_id"`
- // 当前后端服务器创建结果状态。取值: - successful:添加成功。 - existed:member已存在。
+ // 当前后端服务器创建结果状态。 取值: - successful:添加成功。 - existed:member已存在。
RetStatus string `json:"ret_status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_update_priority_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_update_priority_request_body.go
index 1090a993..1bcef59b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_update_priority_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_batch_update_priority_request_body.go
@@ -12,7 +12,7 @@ type BatchUpdatePriorityRequestBody struct {
// 待更新的l7policy的ID。
Id string `json:"id"`
- // 转发策略的优先级。共享型实例该字段无意义。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段。 数字越小表示优先级越高,同一监听器下不允许重复。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Priority int32 `json:"priority"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_certificate_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_certificate_info.go
index 22506d7e..ea7fca36 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_certificate_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_certificate_info.go
@@ -18,7 +18,7 @@ type CertificateInfo struct {
// 证书的描述。
Description string `json:"description"`
- // 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符,只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
+ // 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
Domain string `json:"domain"`
// 证书ID。
@@ -44,6 +44,12 @@ type CertificateInfo struct {
// 证书所在项目ID。
ProjectId string `json:"project_id"`
+
+ // HTTPS协议使用的SM加密证书内容。 取值:PEM编码格式。 注意:仅在当前局点的SM加密证书特性开启才会返回该字段。
+ EncCertificate *string `json:"enc_certificate,omitempty"`
+
+ // HTTPS协议使用的SM加密证书私钥。 取值:PEM编码格式。 注意:仅在当前局点的SM加密证书特性开启才会返回该字段。
+ EncPrivateKey *string `json:"enc_private_key,omitempty"`
}
func (o CertificateInfo) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_change_loadbalancer_charge_mode_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_change_loadbalancer_charge_mode_request_body.go
index f6778eb9..f3fea2dd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_change_loadbalancer_charge_mode_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_change_loadbalancer_charge_mode_request_body.go
@@ -15,7 +15,7 @@ type ChangeLoadbalancerChargeModeRequestBody struct {
// 需要修改计费类型的负载均衡器ID列表。
LoadbalancerIds []string `json:"loadbalancer_ids"`
- // 计费模式。取值: - prepaid:包周期计费。
+ // 计费模式。 取值: - prepaid:包周期计费。
ChargeMode ChangeLoadbalancerChargeModeRequestBodyChargeMode `json:"charge_mode"`
PrepaidOptions *PrepaidChangeChargeModeOption `json:"prepaid_options,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_count_preoccupy_ip_num_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_count_preoccupy_ip_num_request.go
index a621174c..c9b1ca24 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_count_preoccupy_ip_num_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_count_preoccupy_ip_num_request.go
@@ -9,10 +9,10 @@ import (
// Request Object
type CountPreoccupyIpNumRequest struct {
- // 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。
+ // 负载均衡器七层规格的ID。传入该字段表示计算创建该规格的LB,或变更LB的原七层规格到该规格所需要的预占IP。 适用场景:创建负LB,变更LB规格。 [不支持传入l7_flavor_id](tag:fcs)
L7FlavorId *string `json:"l7_flavor_id,omitempty"`
- // 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。
+ // 是否开启跨VPC转发。 取值true表示计算创建或变更为开启跨VPC转发的LB的预占IP。 取值false表示计算创建或变更为不开启跨VPC转发的LB的预占IP。不传等价false。 适用场景:创建LB,变更LB规格。 [荷兰region不支持该字段,请勿使用。](tag:dt)
IpTargetEnable *bool `json:"ip_target_enable,omitempty"`
// 负载均衡器IP地址类型,取值4,6 。 取值4表示计算创建支持IPv4地址的LB的预占IP。 取值6表示计算创建支持IPv6地址的LB的预占IP。 适用场景:创建LB。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_certificate_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_certificate_option.go
index a3a24acc..914551b6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_certificate_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_certificate_option.go
@@ -21,7 +21,7 @@ type CreateCertificateOption struct {
// 证书的描述。
Description *string `json:"description,omitempty"`
- // 服务器证书所签域名。该字段仅type为server或server_sm时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符,只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
+ // 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"\"。例:.test.com
Domain *string `json:"domain,omitempty"`
// 证书的名称。
@@ -38,6 +38,12 @@ type CreateCertificateOption struct {
// 证书所属的企业项目ID。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。 取值:PEM编码格式。最大长度65536字符。 使用说明:仅type为server_sm时有效且必选。
+ EncCertificate *string `json:"enc_certificate,omitempty"`
+
+ // HTTPS协议使用的SM加密证书私钥。 取值:PEM编码格式。最大长度8192字符。 使用说明:仅type为server_sm时有效且必选。
+ EncPrivateKey *string `json:"enc_private_key,omitempty"`
}
func (o CreateCertificateOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_fixted_response_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_fixted_response_config.go
index 7efc6c2f..2859f8b4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_fixted_response_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_fixted_response_config.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-// 固定返回页面的配置。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段,传入会报错。 [当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type CreateFixtedResponseConfig struct {
// 返回码。支持200~299,400~499,500~599。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_health_monitor_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_health_monitor_option.go
index ee41b770..35666a33 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_health_monitor_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_health_monitor_option.go
@@ -9,7 +9,7 @@ import (
// 创建健康检查请求参数。
type CreateHealthMonitorOption struct {
- // 健康检查的管理状态。取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
+ // 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 健康检查间隔。取值:1-50s。
@@ -18,10 +18,10 @@ type CreateHealthMonitorOption struct {
// 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
DomainName *string `json:"domain_name,omitempty"`
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
+ // 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
ExpectedCodes *string `json:"expected_codes,omitempty"`
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
+ // HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
HttpMethod *string `json:"http_method,omitempty"`
// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
@@ -45,7 +45,7 @@ type CreateHealthMonitorOption struct {
// 一次健康检查请求的超时时间。 建议该值小于delay的值。
Timeout int32 `json:"timeout"`
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。
+ // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [荷兰region不支持QUIC。](tag:dt)
Type string `json:"type"`
// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 使用说明:当type为HTTP/HTTPS时生效。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_ip_group_ip_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_ip_group_ip_option.go
index e118f290..1ec5cfc6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_ip_group_ip_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_ip_group_ip_option.go
@@ -9,7 +9,7 @@ import (
// IP地址组中的包含的IP信息。
type CreateIpGroupIpOption struct {
- // IP地址。支持IPv4、IPv6。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Ip string `json:"ip"`
// 备注信息。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_option.go
index e628ff72..16e83be6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_option.go
@@ -9,7 +9,7 @@ import (
// 创建转发策略请求参数。
type CreateL7PolicyOption struct {
- // 转发策略的转发动作。取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; [- REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 使用说明: - 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
+ // 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
Action string `json:"action"`
// 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。
@@ -18,7 +18,7 @@ type CreateL7PolicyOption struct {
// 转发策略描述信息。
Description *string `json:"description,omitempty"`
- // 转发策略对应的监听器ID。当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
+ // 转发策略对应的监听器ID。 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP或HTTPS的listener上。 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
ListenerId string `json:"listener_id"`
// 转发策略名称。
@@ -27,29 +27,29 @@ type CreateL7PolicyOption struct {
// 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。
Position *int32 `json:"position,omitempty"`
- // 转发策略的优先级。共享型实例该字段无意义。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段。 数字越小表示优先级越高,同一监听器下不允许重复。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Priority *int32 `json:"priority,omitempty"`
// 转发策略所在的项目ID。
ProjectId *string `json:"project_id,omitempty"`
- // 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 - 共享型负载均衡器下的转发策略不支持该字段。
+ // 转发到的listener的ID,当action为REDIRECT_TO_LISTENER时必选。 使用说明: - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。 [- 共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
RedirectListenerId *string `json:"redirect_listener_id,omitempty"`
- // 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
+ // 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_POOL时,redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
RedirectPoolId *string `json:"redirect_pool_id,omitempty"`
- // 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
+ // 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。
RedirectPoolsConfig *[]CreateRedirectPoolsConfig `json:"redirect_pools_config,omitempty"`
- // 转发到的url。必须满足格式: protocol://host:port/path?query。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发到的url。必须满足格式: protocol://host:port/path?query。 [不支持该字段,请勿使用。](tag:hcso_dt)
RedirectUrl *string `json:"redirect_url,omitempty"`
RedirectUrlConfig *CreateRedirectUrlConfig `json:"redirect_url_config,omitempty"`
FixedResponseConfig *CreateFixtedResponseConfig `json:"fixed_response_config,omitempty"`
- // 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则(若rule中包含conditions字段,一条condition算一个规则),且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 仅支持全量替换。
+ // 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。 使用说明: - 仅支持全量替换。 - 如果l7policy 是重定向到listener的话,不允许创建l7rule。
Rules *[]CreateL7PolicyRuleOption `json:"rules,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_rule_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_rule_option.go
index d992478c..f6904862 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_rule_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_l7_policy_rule_option.go
@@ -12,10 +12,10 @@ type CreateL7PolicyRuleOption struct {
// 转发规则的管理状态;取值范围: true/false,默认为true。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 转发规则类别: - HOST_NAME:匹配域名 - PATH:匹配请求路径 [- METHOD:匹配请求方法 - HEADER:匹配请求头 - QUERY_STRING:匹配请求查询参数 - SOURCE_IP:匹配请求源IP地址](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。HEADER、QUERY_STRING支持重复的rule配置。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [一个l7policy下创建的l7rule的HOST_NAME,PATH不能重复。](tag:dt,dt_test)
+ // 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
Type string `json:"type"`
- // 转发匹配方式。取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 [- type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
CompareType string `json:"compare_type"`
// 是否反向匹配;取值范围:true/false。默认值:false。 不支持该字段,请勿使用。
@@ -24,10 +24,10 @@ type CreateL7PolicyRuleOption struct {
// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。
Key *string `json:"key,omitempty"`
- // 匹配项的值,比如转发规则匹配类型是域名匹配,则value表示域名的值。[仅当conditions空时该字段生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时,该字段无意义,使用conditions来指定key/value。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
Value string `json:"value"`
- // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 配置了conditions后,字段key、字段value的值无意义。 若指定了conditons,该rule的条件数为conditons列表长度。 列表中key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Conditions *[]CreateRuleCondition `json:"conditions,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_ip_group_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_ip_group_option.go
index 51c17df6..02c36129 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_ip_group_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_ip_group_option.go
@@ -9,13 +9,13 @@ import (
"strings"
)
-// listener对象中的控制组(ipgroup)信息,可以不传或传null或{},表示监听器不绑定访问控制组。若需要绑定访问控制组,则ipgroup_id是必须的。 [ 不支持该字段,请勿使用。](tags:otc,otc_test)
+// 监听器对象中的控制组(ipgroup)信息,可以不传或传null或{},表示监听器不绑定访问控制组。 若需要绑定访问控制组,则ipgroup_id是必须的。 [不支持该字段,请勿使用。](tag:hcso_dt)
type CreateListenerIpGroupOption struct {
// 监听器关联的访问控制组的id。 当关联的ipgroup中的ip_list为[],且类型为白名单时,表示禁止所有ip的访问。 当关联的ipgroup中的ip_list为[],且类型为黑名单时,表示允许所有ip的访问。
IpgroupId string `json:"ipgroup_id"`
- // 访问控制组的状态。取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。
+ // 访问控制组的状态。 取值: - true:开启访问控制,默认值。 - flase:关闭访问控制。
EnableIpgroup *bool `json:"enable_ipgroup,omitempty"`
// 访问控制组的类型。 - white:白名单,只允许指定ip访问,默认值。 - black:黑名单,不允许指定ip访问。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_option.go
index 6ce7ac8d..1e81a8b4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_option.go
@@ -15,7 +15,7 @@ type CreateListenerOption struct {
// 监听器默认的后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
DefaultPoolId *string `json:"default_pool_id,omitempty"`
- // 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。
+ // 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [荷兰region不支持QUIC。](tag:dt)
ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`
// 监听器使用的服务器证书ID。 使用说明:当监听器协议为HTTPS时,该字段必传,且对应的证书的type必须是server类型。
@@ -24,7 +24,7 @@ type CreateListenerOption struct {
// 监听器的描述信息。
Description *string `json:"description,omitempty"`
- // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 QUIC监听器屏蔽该字段(必须为true,不可设置不可修改)。 其他协议的监听器该字段无效,无论取值如何都不影响监听器正常运行。
+ // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [荷兰region不支持QUIC。](tag:dt)
Http2Enable *bool `json:"http2_enable,omitempty"`
InsertHeaders *ListenerInsertHeaders `json:"insert_headers,omitempty"`
@@ -38,42 +38,45 @@ type CreateListenerOption struct {
// 监听器所在的项目ID。
ProjectId *string `json:"project_id,omitempty"`
- // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS,传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [取值:TCP、UDP、HTTP、HTTPS、QUIC。](tag:dt,dt_test,hcso_dt)
+ // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS。 传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
Protocol string `json:"protocol"`
- // 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。
+ // 监听器的监听端口。QUIC监听器端口不能是4789,且不能和UDP监听器端口重复。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
ProtocolPort int32 `json:"protocol_port"`
- // 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。 - QUIC监听器仅支持RSA证书。
+ // 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。 - QUIC监听器仅支持RSA证书。 [荷兰region不支持QUIC。](tag:dt)
SniContainerRefs *[]string `json:"sni_container_refs,omitempty"`
+ // 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
+ SniMatchAlgo *string `json:"sni_match_algo,omitempty"`
+
// 标签列表
Tags *[]Tag `json:"tags,omitempty"`
- // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:dt,dt_test,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) [荷兰region不支持QUIC。](tag:dt)
TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`
- // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件 (即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,g42,hk_g42,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) [荷兰region不支持QUIC。](tag:dt)
SecurityPolicyId *string `json:"security_policy_id,omitempty"`
- // 是否开启后端服务器的重试。取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hcso_dt)
+ // 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`
- // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 UDP监听器不支持此字段。
+ // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。 取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 UDP监听器不支持此字段。
KeepaliveTimeout *int32 `json:"keepalive_timeout,omitempty"`
// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。
ClientTimeout *int32 `json:"client_timeout,omitempty"`
- // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
+ // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
MemberTimeout *int32 `json:"member_timeout,omitempty"`
Ipgroup *CreateListenerIpGroupOption `json:"ipgroup,omitempty"`
- // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。[仅作用于共享型LB的TCP/UDP监听器。取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [当前所有协议的监听器只设支持置为true,不传默认为true。](tag:hcso_dt)
+ // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`
- // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。
+ // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt)
EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`
QuicConfig *CreateListenerQuicConfigOption `json:"quic_config,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_quic_config_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_quic_config_option.go
index aac044e8..d10a0a94 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_quic_config_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_listener_quic_config_option.go
@@ -6,13 +6,13 @@ import (
"strings"
)
-// listener对象中的quic配置信息,仅protocol为HTTPS时有效。 支持创建和修改; 支持HTTPS监听器升级QUIC监听器能力。仅HTTPS监听器支持升级到QUIC监听器 当客户开启升级之后选择关联的quic监听器,https对象要保存改quic监听器ID。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。
+// 当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
type CreateListenerQuicConfigOption struct {
- // 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。
+ // 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [荷兰region不支持QUIC。](tag:dt)
QuicListenerId string `json:"quic_listener_id"`
- // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力
+ // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级(默认)。 开启HTTPS监听器升级QUIC监听器能力。 [荷兰region不支持QUIC。](tag:dt)
EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_bandwidth_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_bandwidth_option.go
index ddc6c64d..1a481e98 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_bandwidth_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_bandwidth_option.go
@@ -12,19 +12,19 @@ import (
// 带宽信息
type CreateLoadBalancerBandwidthOption struct {
- // 带宽名称。取值:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) 使用说明: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。
+ // 带宽名称。 取值:1-64个字符,支持数字、字母、中文、_(下划线)、-(中划线)、.(点) 使用说明: - 如果share_type是PER,该字段是必选。 - 如果bandwidth对象的id有值,该字段被忽略。
Name *string `json:"name,omitempty"`
// 带宽大小 取值范围:默认1Mbit/s~2000Mbit/s(具体范围以各区域配置为准,请参见控制台对应页面显示)。 注意:调整带宽时的最小单位会根据带宽范围不同存在差异。 小于等于300Mbit/s:默认最小单位为1Mbit/s。 300Mbit/s~1000Mbit/s:默认最小单位为50Mbit/s。 大于1000Mbit/s:默认最小单位为500Mbit/s。 使用说明:当id字段为null时,size是必须的。
Size *int32 `json:"size,omitempty"`
- // 计费模式。 [取值范围:bandwidth 表示按带宽计费,traffic表示按流量计费。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [当前仅支持traffic按流量计费](tag:dt,dt_test,hcso_dt) 使用说明:当id字段为null时,charge_mode是必须的。
+ // 计费模式。 [取值:bandwidth表示按带宽计费,traffic表示按流量计费。 ](tag:hws,hws_hk,ocb,ctc,hcs,tm,cmcc,hws_ocb,fcs) [当前仅支持traffic按流量计费](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt) 使用说明:当id字段为null时,charge_mode是必须的。
ChargeMode *CreateLoadBalancerBandwidthOptionChargeMode `json:"charge_mode,omitempty"`
- // 带宽类型。 取值: - PER:独享带宽。 - WHOLE:共享带宽。 使用说明: 1. 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 2. 该字段为WHOLE时,必须指定带宽ID。 3. IPv6的EIP不支持WHOLE类型带宽。
+ // 带宽类型。 取值: - PER:独享带宽。 - WHOLE:共享带宽。 使用说明: - 当id字段为null时,share_type是必须的。当id不为null时,该字段被忽略。 - 该字段为WHOLE时,必须指定带宽ID。 - IPv6的EIP不支持WHOLE类型带宽。
ShareType *CreateLoadBalancerBandwidthOptionShareType `json:"share_type,omitempty"`
- // 资源账单信息。 [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42) [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
+ // 资源账单信息。 [如果billing_info不为空,说明是包周期计费的带宽,否则为按需计费的带宽 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc) [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
BillingInfo *string `json:"billing_info,omitempty"`
// 功能说明:使用已有的共享带宽创建IP 取值范围:共享带宽ID 使用说明: WHOLE类型的带宽ID; 在预付费的情况下,不填该值。该字段取空字符串时,会被忽略。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_option.go
index db661cb2..43cc0d00 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_option.go
@@ -3,13 +3,16 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// 创建负载均衡器参数。
type CreateLoadBalancerOption struct {
- // 负载均衡器ID(UUID)
+ // 负载均衡器ID(UUID)。不支持该字段,请勿使用。
Id *string `json:"id,omitempty"`
// 负载均衡器所在的项目ID。
@@ -21,31 +24,31 @@ type CreateLoadBalancerOption struct {
// 负载均衡器的描述。
Description *string `json:"description,omitempty"`
- // 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 使用说明: - 传入vip_address时必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4虚拟IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配虚拟IP,vip_address=null。
+ // 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 使用说明: - 传入vip_address时必须传入vip_subnet_cidr_id。 - 不传入vip_address,但传入vip_subnet_cidr_id,则自动分配IPv4虚拟IP。 - 不传入vip_address,且不传vip_subnet_cidr_id,则不分配虚拟IP,vip_address=null。
VipAddress *string `json:"vip_address,omitempty"`
- // 负载均衡器所在子网的IPv4子网ID。若需要创建带IPv4虚拟IP的LB,该字段必须传入。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 使用说明: - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id,则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。
+ // 负载均衡器所在子网的IPv4子网ID。若需要创建带IPv4虚拟IP的LB,该字段必须传入。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 使用说明: - vpc_id, vip_subnet_cidr_id, ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 若同时传入vpc_id和vip_subnet_cidr_id, 则vip_subnet_cidr_id对应的子网必须属于vpc_id对应的VPC。
VipSubnetCidrId *string `json:"vip_subnet_cidr_id,omitempty"`
- // 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [不支持IPv6,请勿使用](tag:dt,dt_test)
+ // 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。 - 需要对应的子网开启IPv6。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipVirsubnetId *string `json:"ipv6_vip_virsubnet_id,omitempty"`
// 负载均衡器的生产者名称。固定为vlb。
Provider *string `json:"provider,omitempty"`
- // 四层Flavor ID。 [使用说明: - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
+ // 四层Flavor ID。 [使用说明:当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
L4FlavorId *string `json:"l4_flavor_id,omitempty"`
- // 七层Flavor ID。[只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs) 使用说明: - 当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor(默认flavor根据不同局点有所不同,具体以实际值为准)。
+ // 七层Flavor ID。 [使用说明:当l4_flavor_id和l7_flavor_id都不传的时,会使用默认flavor (默认flavor根据不同局点有所不同,具体以实际值为准)。 ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
L7FlavorId *string `json:"l7_flavor_id,omitempty"`
- // 是否独享型负载均衡器。取值: - true:独享型。 - false:共享型。 当前只支持设置为true,设置为false会返回400 Bad Request 。默认:true。
+ // 是否独享型负载均衡器。 取值: - true:独享型。 - false:共享型。 当前只支持设置为true,设置为false会返回400 Bad Request 。默认:true。
Guaranteed *bool `json:"guaranteed,omitempty"`
- // 负载均衡器所在的VPC ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。
+ // 负载均衡器所在的VPC ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/vpcs 响应参数中的id得到。 使用说明: - vpc_id,vip_subnet_cidr_id,ipv6_vip_virsubnet_id不能同时为空,且需要在同一个vpc下。
VpcId *string `json:"vpc_id,omitempty"`
- // 可用区列表。可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
+ // 可用区列表。可通过GET https://{ELB_Endponit}/v3/{project_id}/elb/availability-zones 接口来查询可用区集合列表。创建负载均衡器时,从查询结果选择某一个可用区集合,并从中选择一个或多个可用区。
AvailabilityZoneList []string `json:"availability_zone_list"`
// 负载均衡器所属的企业项目ID。不能传入\"\"、\"0\"或不存在的企业项目ID,创建时不传则资源属于default企业项目,默认返回\"0\"。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
@@ -54,17 +57,14 @@ type CreateLoadBalancerOption struct {
// 负载均衡的标签列表。示例:\"tags\":[{\"key\":\"my_tag\",\"value\":\"my_tag_value\"}]
Tags *[]Tag `json:"tags,omitempty"`
- // 负载均衡器的管理状态。只能设置为true。默认:true。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 负载均衡器的管理状态。只能设置为true。默认:true。 [不支持该字段,请勿使用。](tag:dt,dt_test)
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费。 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:eu-de:057ef081eb00d2732fd1c01a9be75e6f 使用说明:admin权限才能更新此字段。 [ 不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
+ // 资源账单信息。 取值: - 空:按需计费。 - 非空:包周期计费。 格式为: order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584:az1: 057ef081eb00d2732fd1c01a9be75e6f [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
BillingInfo *string `json:"billing_info,omitempty"`
Ipv6Bandwidth *BandwidthRef `json:"ipv6_bandwidth,omitempty"`
- // 负载均衡器绑定的Global EIP的id。只支持绑定数组中的第一个Global EIP,其他将被忽略。
- GlobalEipIds *[]string `json:"global_eip_ids,omitempty"`
-
// 负载均衡器绑定的公网IP ID。只支持绑定数组中的第一个EIP,其他将被忽略。
PublicipIds *[]string `json:"publicip_ids,omitempty"`
@@ -73,15 +73,18 @@ type CreateLoadBalancerOption struct {
// 下联面子网的网络ID列表。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 若不指定该字段,则按如下规则选择下联面网络: 1. 如果ELB实例开启ipv6,则选择ipv6_vip_virsubnet_id子网对应的网络ID。 2. 如果ELB实例没有开启ipv6,开启ipv4,则选择vip_subnet_cidr_id子网对应的网络ID。 3. 如果ELB实例没有选择私网,只开启公网,则会在当前负载均衡器所在的VPC中任意选一个子网,优选可用IP多的网络。 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 下联面子网必须属于该LB所在的VPC。
ElbVirsubnetIds *[]string `json:"elb_virsubnet_ids,omitempty"`
- // 是否启用跨VPC后端转发。取值:true 表示开启,false 表示不开启。默认:false不开启。仅独享型负载均衡器支持该特性。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt)
IpTargetEnable *bool `json:"ip_target_enable,omitempty"`
- // 是否开启删除保护。取值:false不开启,true开启。默认false不开启。 > 退场时需要先关闭所有资源的删除保护开关。 [ 不支持该字段,请勿使用](tag:dt,dt_test)
+ // 是否开启删除保护。 取值:false不开启,true开启。默认false不开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`
PrepaidOptions *PrepaidCreateOption `json:"prepaid_options,omitempty"`
Autoscaling *CreateLoadbalancerAutoscalingOption `json:"autoscaling,omitempty"`
+
+ // WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
+ WafFailureAction *CreateLoadBalancerOptionWafFailureAction `json:"waf_failure_action,omitempty"`
}
func (o CreateLoadBalancerOption) String() string {
@@ -92,3 +95,45 @@ func (o CreateLoadBalancerOption) String() string {
return strings.Join([]string{"CreateLoadBalancerOption", string(data)}, " ")
}
+
+type CreateLoadBalancerOptionWafFailureAction struct {
+ value string
+}
+
+type CreateLoadBalancerOptionWafFailureActionEnum struct {
+ DISCARD CreateLoadBalancerOptionWafFailureAction
+ FORWARD CreateLoadBalancerOptionWafFailureAction
+}
+
+func GetCreateLoadBalancerOptionWafFailureActionEnum() CreateLoadBalancerOptionWafFailureActionEnum {
+ return CreateLoadBalancerOptionWafFailureActionEnum{
+ DISCARD: CreateLoadBalancerOptionWafFailureAction{
+ value: "discard",
+ },
+ FORWARD: CreateLoadBalancerOptionWafFailureAction{
+ value: "forward",
+ },
+ }
+}
+
+func (c CreateLoadBalancerOptionWafFailureAction) Value() string {
+ return c.value
+}
+
+func (c CreateLoadBalancerOptionWafFailureAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateLoadBalancerOptionWafFailureAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_public_ip_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_public_ip_option.go
index a6e75bc3..4de1ea23 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_public_ip_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_load_balancer_public_ip_option.go
@@ -9,13 +9,13 @@ import (
// 创建ELB时,新建公网IP请求参数
type CreateLoadBalancerPublicIpOption struct {
- // IP版本。取值:4表示IPv4,6表示IPv6。 [ 不支持IPv6,请勿设置为6。](tag:dt,dt_test)
+ // IP版本。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
IpVersion *int32 `json:"ip_version,omitempty"`
- // 弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。
+ // 弹性公网IP的网络类型,默认5_bgp,更多请参考弹性公网ip创建。 [华南-深圳局点该参数取值只能为5_gray](tag:hws) [只支持设置为5_gray](tag:dt)
NetworkType string `json:"network_type"`
- // 资源账单信息,取值: - 空:按需计费。 - 非空:包周期计费。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
+ // 资源账单信息。 取值: - 空:按需计费。 - 非空:包周期计费。 [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
BillingInfo *string `json:"billing_info,omitempty"`
// 弹性公网IP的描述信息,不支持特殊字符
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_loadbalancer_autoscaling_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_loadbalancer_autoscaling_option.go
index 4d69b84a..5f0e5d52 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_loadbalancer_autoscaling_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_loadbalancer_autoscaling_option.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。
+// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)
type CreateLoadbalancerAutoscalingOption struct {
// 负载均衡器弹性扩缩容开关
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_health_monitor_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_health_monitor_option.go
deleted file mode 100644
index a14fce44..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_health_monitor_option.go
+++ /dev/null
@@ -1,53 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 创建健康检查请求参数。
-type CreateMasterSlaveHealthMonitorOption struct {
-
- // 健康检查间隔。取值:1-50s。
- Delay int32 `json:"delay"`
-
- // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
- DomainName *string `json:"domain_name,omitempty"`
-
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
- ExpectedCodes *string `json:"expected_codes,omitempty"`
-
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
- HttpMethod *string `json:"http_method,omitempty"`
-
- // 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
- MaxRetries int32 `json:"max_retries"`
-
- // 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
- MaxRetriesDown *int32 `json:"max_retries_down,omitempty"`
-
- // 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。
- MonitorPort *int32 `json:"monitor_port,omitempty"`
-
- // 健康检查名称。
- Name *string `json:"name,omitempty"`
-
- // 一次健康检查请求的超时时间。 建议该值小于delay的值。
- Timeout int32 `json:"timeout"`
-
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。
- Type string `json:"type"`
-
- // 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 使用说明:当type为HTTP/HTTPS时生效。
- UrlPath *string `json:"url_path,omitempty"`
-}
-
-func (o CreateMasterSlaveHealthMonitorOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlaveHealthMonitorOption struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlaveHealthMonitorOption", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_member_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_member_option.go
deleted file mode 100644
index 53cfa977..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_member_option.go
+++ /dev/null
@@ -1,83 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "errors"
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
-
- "strings"
-)
-
-// 创建主备后端服务器请求参数
-type CreateMasterSlaveMemberOption struct {
-
- // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
- Address string `json:"address"`
-
- // 后端云服务器的管理状态。取值:true。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
- AdminStateUp *bool `json:"admin_state_up,omitempty"`
-
- // 后端云服务器名称。
- Name *string `json:"name,omitempty"`
-
- // 后端服务器业务端口号。
- ProtocolPort int32 `json:"protocol_port"`
-
- // 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: 1. 该子网和关联的负载均衡器的子网必须在同一VPC下。 2. 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
- SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`
-
- // 后端服务器的主备状态。 取值范围: - master:主后端服务器。 - slave:备后端服务器。
- Role CreateMasterSlaveMemberOptionRole `json:"role"`
-}
-
-func (o CreateMasterSlaveMemberOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlaveMemberOption struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlaveMemberOption", string(data)}, " ")
-}
-
-type CreateMasterSlaveMemberOptionRole struct {
- value string
-}
-
-type CreateMasterSlaveMemberOptionRoleEnum struct {
- MASTER CreateMasterSlaveMemberOptionRole
- SLAVE CreateMasterSlaveMemberOptionRole
-}
-
-func GetCreateMasterSlaveMemberOptionRoleEnum() CreateMasterSlaveMemberOptionRoleEnum {
- return CreateMasterSlaveMemberOptionRoleEnum{
- MASTER: CreateMasterSlaveMemberOptionRole{
- value: "master",
- },
- SLAVE: CreateMasterSlaveMemberOptionRole{
- value: "slave",
- },
- }
-}
-
-func (c CreateMasterSlaveMemberOptionRole) Value() string {
- return c.value
-}
-
-func (c CreateMasterSlaveMemberOptionRole) MarshalJSON() ([]byte, error) {
- return utils.Marshal(c.value)
-}
-
-func (c *CreateMasterSlaveMemberOptionRole) UnmarshalJSON(b []byte) error {
- myConverter := converter.StringConverterFactory("string")
- if myConverter != nil {
- val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
- if err == nil {
- c.value = val.(string)
- return nil
- }
- return err
- } else {
- return errors.New("convert enum data to string error")
- }
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_option.go
deleted file mode 100644
index b47726ca..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_option.go
+++ /dev/null
@@ -1,54 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 创建主备主机组请求
-type CreateMasterSlavePoolOption struct {
-
- // 后端云服务器组的描述信息。
- Description *string `json:"description,omitempty"`
-
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。
- LbAlgorithm string `json:"lb_algorithm"`
-
- // 后端云服务器组关联的LB的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
- LoadbalancerId *string `json:"loadbalancer_id,omitempty"`
-
- // 后端云服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。
- ListenerId *string `json:"listener_id,omitempty"`
-
- // 后端云服务器组的名称。
- Name *string `json:"name,omitempty"`
-
- // 后端云服务器组所属的项目ID。
- ProjectId *string `json:"project_id,omitempty"`
-
- // 后端云服务器组的后端协议。 取值:TCP、UDP、QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC。 - listener的protocol为TCP时pool的protocol必须为TCP。
- Protocol string `json:"protocol"`
-
- SessionPersistence *CreatePoolSessionPersistenceOption `json:"session_persistence,omitempty"`
-
- // 后端云服务器组关联的虚拟私有云的ID。 指定了vpc_id的约束: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
- VpcId *string `json:"vpc_id,omitempty"`
-
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。
- Type string `json:"type"`
-
- // 主备主机组的后端服务器。 只能添加2个后端云服务器,必须有一个为主,一个为备。
- Members []CreateMasterSlaveMemberOption `json:"members"`
-
- Healthmonitor *CreateMasterSlaveHealthMonitorOption `json:"healthmonitor"`
-}
-
-func (o CreateMasterSlavePoolOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlavePoolOption struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlavePoolOption", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request.go
deleted file mode 100644
index 7f1c59bc..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Request Object
-type CreateMasterSlavePoolRequest struct {
- Body *CreateMasterSlavePoolRequestBody `json:"body,omitempty"`
-}
-
-func (o CreateMasterSlavePoolRequest) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlavePoolRequest struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlavePoolRequest", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request_body.go
deleted file mode 100644
index a8c3e5f9..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_request_body.go
+++ /dev/null
@@ -1,21 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// This is a auto create Body Object
-type CreateMasterSlavePoolRequestBody struct {
- Pool *CreateMasterSlavePoolOption `json:"pool"`
-}
-
-func (o CreateMasterSlavePoolRequestBody) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlavePoolRequestBody struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlavePoolRequestBody", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_response.go
deleted file mode 100644
index 834f595f..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_master_slave_pool_response.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Response Object
-type CreateMasterSlavePoolResponse struct {
-
- // 请求ID。 注:自动生成 。
- RequestId *string `json:"request_id,omitempty"`
-
- Pool *MasterSlavePool `json:"pool,omitempty"`
- HttpStatusCode int `json:"-"`
-}
-
-func (o CreateMasterSlavePoolResponse) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateMasterSlavePoolResponse struct{}"
- }
-
- return strings.Join([]string{"CreateMasterSlavePoolResponse", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_member_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_member_option.go
index 81d17c44..15e3b6db 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_member_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_member_option.go
@@ -9,10 +9,10 @@ import (
// 创建后端服务器请求参数
type CreateMemberOption struct {
- // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Address string `json:"address"`
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
+ // 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 后端云服务器名称。
@@ -24,10 +24,10 @@ type CreateMemberOption struct {
// 后端服务器业务端口号。
ProtocolPort int32 `json:"protocol_port"`
- // 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
+ // 后端云服务器所在的子网ID,可以是子网的IPv4子网ID或IPv6子网ID。 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`
- // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
Weight *int32 `json:"weight,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_option.go
index a98bebcd..9b097768 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_option.go
@@ -15,13 +15,13 @@ type CreatePoolOption struct {
// 后端云服务器组的描述信息。
Description *string `json:"description,omitempty"`
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。
+ // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
LbAlgorithm string `json:"lb_algorithm"`
- // 后端云服务器组关联的监听器的ID。 使用说明:listener_id,loadbalancer_id,type至少指定一个。共享型实例只能使用指定loadbalancer_id或指定listener_id的后端服务器组。
+ // 后端云服务器组关联的监听器的ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
ListenerId *string `json:"listener_id,omitempty"`
- // 后端云服务器组关联的负载均衡器ID。 使用说明:listener_id,loadbalancer_id,type中至少指定一个。共享型实例只能使用指定loadbalancer_id或指定listener_id的后端服务器组。
+ // 后端云服务器组关联的负载均衡器ID。 使用说明: - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
LoadbalancerId *string `json:"loadbalancer_id,omitempty"`
// 后端云服务器组的名称。
@@ -30,20 +30,20 @@ type CreatePoolOption struct {
// 后端云服务器组所属的项目ID。
ProjectId *string `json:"project_id,omitempty"`
- // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。
+ // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
Protocol string `json:"protocol"`
SessionPersistence *CreatePoolSessionPersistenceOption `json:"session_persistence,omitempty"`
SlowStart *CreatePoolSlowStartOption `json:"slow_start,omitempty"`
- // 是否开启删除保护。取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。
+ // 是否开启删除保护。 取值:false不开启,true开启,默认false。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`
- // 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
+ // 后端云服务器组关联的虚拟私有云的ID。 使用说明: - 只能挂载到该虚拟私有云下。 - 只能添加该虚拟私有云下的后端服务器或跨VPC的后端服务器。 - type必须指定为instance。 没有指定vpc_id的约束: - 后续添加后端服务器时,vpc_id由后端服务器所在的虚拟私有云确定。
VpcId *string `json:"vpc_id,omitempty"`
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。共享型实例只能使用指定loadbalancer_id或指定listener_id的后端服务器组。
+ // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 使用说明: - 不传表示允许任意类型的后端,并返回type为空字符串。 - listener_id,loadbalancer_id,type至少指定一个。 [- 共享型实例的后端服务器组loadbalancer_id和listener_id至少指定一个。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
Type *string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_session_persistence_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_session_persistence_option.go
index 6ce4e7db..f5e152a0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_session_persistence_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_session_persistence_option.go
@@ -12,13 +12,13 @@ import (
// 会话持久性对象。
type CreatePoolSessionPersistenceOption struct {
- // cookie名称。 [格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [不支持该字段,请勿使用。](tag:hcso_dt)
+ // cookie名称。 格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
CookieName *string `json:"cookie_name,omitempty"`
- // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hcso_dt)
+ // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool, 则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。 type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hws_eu,hcso_dt)
Type CreatePoolSessionPersistenceOptionType `json:"type"`
- // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1;如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。
+ // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。
PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_slow_start_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_slow_start_option.go
index c5db8bda..c4291615 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_slow_start_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_pool_slow_start_option.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)
type CreatePoolSlowStartOption struct {
// 慢启动的开关,默认值:false; true:开启; false:关闭
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_pools_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_pools_config.go
index 9995b8ff..7920f988 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_pools_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_pools_config.go
@@ -12,7 +12,7 @@ type CreateRedirectPoolsConfig struct {
// 后端主机组的ID。
PoolId string `json:"pool_id"`
- // 后端主机组的权重。 取值:0-100。
+ // 后端主机组的权重。 取值:0-100。
Weight int32 `json:"weight"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_url_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_url_config.go
index 700f6ade..a9dbc59d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_url_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_redirect_url_config.go
@@ -9,13 +9,13 @@ import (
"strings"
)
-// 转发到的url配置。 共享型负载均衡器下的转发策略不支持该字段,传入会报错。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 [当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx}(${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type CreateRedirectUrlConfig struct {
// 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
Protocol *CreateRedirectUrlConfigProtocol `json:"protocol,omitempty"`
- // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
+ // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
Host *string `json:"host,omitempty"`
// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
@@ -24,7 +24,7 @@ type CreateRedirectUrlConfig struct {
// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
Path *string `json:"path,omitempty"`
- // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL(如https://www.xxx.com:8080/elb?type=loadbalancer,此时${query}表示type=loadbalancer)时,将会重定向到https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
+ // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
Query *string `json:"query,omitempty"`
// 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_condition.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_condition.go
index 6d4682b0..a5fc87bc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_condition.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_condition.go
@@ -9,10 +9,10 @@ import (
//
type CreateRuleCondition struct {
- // 匹配项的名称。[该字段固定为空字符串](tag:dt,dt_test,hcso_dt) [当type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。key的长度限制1-40字符,只允许包含字母、数字和-_。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号, 反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。
Key *string `json:"key,omitempty"`
- // 匹配项的值。 当type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当type为PATH时,key固定为空字符串,value表示请求路径的值。value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。value长度限制1-128字符,不支持空格,双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS。 当type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。value为CIDR格式,支持ipv4,ipv6。 例如192.168.0.2/32,2049::49/64。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。
Value string `json:"value"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_option.go
index 45dcb52f..473fda8e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_rule_option.go
@@ -12,25 +12,25 @@ type CreateRuleOption struct {
// 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 转发匹配方式。取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 [- type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
CompareType string `json:"compare_type"`
// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。
Key *string `json:"key,omitempty"`
- // 匹配项的值,比如转发规则匹配类型是域名匹配,则value表示域名的值。[仅当conditions空时该字段生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时,该字段无意义,使用conditions来指定key/value。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
Value string `json:"value"`
// 转发规则所在的项目ID。
ProjectId *string `json:"project_id,omitempty"`
- // 转发规则类别。取值: - HOST_NAME:匹配域名 - PATH:匹配请求路径 [- METHOD:匹配请求方法 - HEADER:匹配请求头 - QUERY_STRING:匹配请求查询参数 - SOURCE_IP:匹配请求源IP地址](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 使用说明: [- 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。HEADER、QUERY_STRING支持重复的rule配置。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [- 一个l7policy下创建的l7rule的HOST_NAME,PATH不能重复。](tag:dt,dt_test,hcso_dt)
+ // 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
Type string `json:"type"`
- // 是否反向匹配。取值:true、false,默认false。 不支持该字段,请勿使用。
+ // 是否反向匹配。 取值:true、false,默认false。 不支持该字段,请勿使用。
Invert *bool `json:"invert,omitempty"`
- // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 配置了conditions后,字段key、字段value的值无意义。 若指定了conditons,该rule的条件数为conditons列表长度。 列表中key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Conditions *[]CreateRuleCondition `json:"conditions,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_security_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_security_policy_option.go
index 9b8aae9a..58b8e5c4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_security_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_create_security_policy_option.go
@@ -24,7 +24,7 @@ type CreateSecurityPolicyOption struct {
// 自定义安全策略选择的TLS协议列表。取值:TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
Protocols []string `json:"protocols"`
- // 自定义策略的加密套件列表。支持以下加密套件: ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256,AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256,ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA,ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA,DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305,ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256 使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。 > 协议与加密套件的匹配关系可参考系统安全策略
+ // 自定义安全策略的加密套件列表。支持以下加密套件: ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256, AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256, ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256, ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA, ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA, DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256 使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。 > 协议与加密套件的匹配关系可参考系统安全策略
Ciphers []CreateSecurityPolicyOptionCiphers `json:"ciphers"`
}
@@ -70,8 +70,6 @@ type CreateSecurityPolicyOptionCiphersEnum struct {
TLS_CHACHA20_POLY1305_SHA256 CreateSecurityPolicyOptionCiphers
TLS_AES_128_CCM_SHA256 CreateSecurityPolicyOptionCiphers
TLS_AES_128_CCM_8_SHA256 CreateSecurityPolicyOptionCiphers
- ECC_SM4_SM3 CreateSecurityPolicyOptionCiphers
- ECDHE_SM4_SM3 CreateSecurityPolicyOptionCiphers
}
func GetCreateSecurityPolicyOptionCiphersEnum() CreateSecurityPolicyOptionCiphersEnum {
@@ -160,12 +158,6 @@ func GetCreateSecurityPolicyOptionCiphersEnum() CreateSecurityPolicyOptionCipher
TLS_AES_128_CCM_8_SHA256: CreateSecurityPolicyOptionCiphers{
value: "TLS_AES_128_CCM_8_SHA256",
},
- ECC_SM4_SM3: CreateSecurityPolicyOptionCiphers{
- value: "ECC-SM4-SM3",
- },
- ECDHE_SM4_SM3: CreateSecurityPolicyOptionCiphers{
- value: "ECDHE-SM4-SM3",
- },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_request.go
deleted file mode 100644
index d05d18a2..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_delete_master_slave_pool_request.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Request Object
-type DeleteMasterSlavePoolRequest struct {
-
- // 后端服务器组ID。
- PoolId string `json:"pool_id"`
-}
-
-func (o DeleteMasterSlavePoolRequest) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "DeleteMasterSlavePoolRequest struct{}"
- }
-
- return strings.Join([]string{"DeleteMasterSlavePoolRequest", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_eip_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_eip_info.go
index 2d05cb07..231ff9c2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_eip_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_eip_info.go
@@ -15,7 +15,7 @@ type EipInfo struct {
// eip_address
EipAddress *string `json:"eip_address,omitempty"`
- // IP版本号,取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
+ // IP版本号。 取值:4表示IPv4,6表示IPv6。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
IpVersion *int32 `json:"ip_version,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_fixted_response_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_fixted_response_config.go
index b5c21928..b90475cc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_fixted_response_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_fixted_response_config.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-// 固定返回页面的配置。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段,传入会报错。 [当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type FixtedResponseConfig struct {
// 返回码。支持200~299,400~499,500~599。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor.go
index 5c15bd73..692d2457 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor.go
@@ -17,16 +17,16 @@ type Flavor struct {
// 规格名称。
Name string `json:"name"`
- // 是否公共规格。取值: true表示公共规格,所有租户可见。 false表示私有规格,为当前租户所有。
+ // 是否公共规格。 取值: - true表示公共规格,所有租户可见。 - false表示私有规格,为当前租户所有。
Shared bool `json:"shared"`
// 项目ID。
ProjectId string `json:"project_id"`
- // 规格类别。取值: - L4和L7 表示四层和七层flavor。 - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。
+ // 规格类别。 取值: - L4和L7 表示四层和七层flavor。 [- L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,hcso_dt)
Type string `json:"type"`
- // 是否售罄。取值: - true:已售罄,将无法购买该规格的LB。 - false:未售罄,可购买该规格的LB。
+ // 是否售罄。 取值: - true:已售罄,将无法购买该规格的LB。 - false:未售罄,可购买该规格的LB。
FlavorSoldOut bool `json:"flavor_sold_out"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor_info.go
index 5f532e70..b8ab16fd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_flavor_info.go
@@ -15,16 +15,16 @@ type FlavorInfo struct {
// 新建数。单位:个
Cps int32 `json:"cps"`
- // 7层每秒查询数。单位:个
+ // 每秒查询数。单位:个。仅7层LB有该指标。
Qps *int32 `json:"qps,omitempty"`
- // 带宽。单位:Mbit/s
+ // 带宽。单位:Mbit/s。
Bandwidth *int32 `json:"bandwidth,omitempty"`
// 当前flavor对应的lcu数量。 LCU是用来衡量独享型ELB处理性能综合指标,LCU值越大,性能越好。单位:个
Lcu *int32 `json:"lcu,omitempty"`
- // https新建连接数。单位:个
+ // https新建连接数。单位:个。仅7层LB有该指标。
HttpsCps *int32 `json:"https_cps,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_health_monitor.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_health_monitor.go
index 9343d017..7d970ba4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_health_monitor.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_health_monitor.go
@@ -9,19 +9,19 @@ import (
// 健康检查对象
type HealthMonitor struct {
- // 健康检查的管理状态。取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
+ // 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
AdminStateUp bool `json:"admin_state_up"`
// 健康检查间隔。取值:1-50s。
Delay int32 `json:"delay"`
- // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
+ // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
DomainName string `json:"domain_name"`
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
+ // 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
ExpectedCodes string `json:"expected_codes"`
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
+ // HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
HttpMethod string `json:"http_method"`
// 健康检查ID
@@ -48,16 +48,16 @@ type HealthMonitor struct {
// 一次健康检查请求的超时时间。 建议该值小于delay的值。
Timeout int32 `json:"timeout"`
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。
+ // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [荷兰region不支持QUIC。](tag:dt)
Type string `json:"type"`
// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 使用说明:当type为HTTP/HTTPS时生效。
UrlPath string `json:"url_path"`
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
CreatedAt *string `json:"created_at,omitempty"`
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
UpdatedAt *string `json:"updated_at,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_ip_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_ip_info.go
index b74b5775..a8f33e89 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_ip_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_ip_info.go
@@ -9,7 +9,7 @@ import (
// ip地址组中的包含的ip 信息对象
type IpInfo struct {
- // IP地址组中的IP地址。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // IP地址组中的IP地址。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Ip string `json:"ip"`
// IP地址组中ip的备注信息
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_policy.go
index 73867537..786a693f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_policy.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_policy.go
@@ -9,7 +9,7 @@ import (
// policy对象。
type L7Policy struct {
- // 转发策略的转发动作。取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; [- REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 使用说明: - 当action为REDIRECT_TO_POOL时,只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。
+ // 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; - REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE:返回固定响应体。 使用说明: - REDIRECT_TO_LISTENER的优先级最高,配置了以后,该监听器下的其他policy会失效。 - 当action为REDIRECT_TO_POOL时, 只支持创建在PROTOCOL为HTTP、HTTPS、TERMINATED_HTTPS的listener上。 - 当action为REDIRECT_TO_LISTENER时,只支持创建在PROTOCOL为HTTP的listener上。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
Action string `json:"action"`
// 转发策略的管理状态,默认为true。 不支持该字段,请勿使用。
@@ -30,13 +30,13 @@ type L7Policy struct {
// 转发策略的优先级,不支持更新。 不支持该字段,请勿使用。
Position int32 `json:"position"`
- // 转发策略的优先级。共享型实例该字段无意义。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段。 数字越小表示优先级越高,同一监听器下不允许重复。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则, 匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为: 同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Priority *int32 `json:"priority,omitempty"`
// 转发策略所在的项目ID。
ProjectId string `json:"project_id"`
- // 转发策略的配置状态。 取值范围: - ACTIVE - 默认值,表示正常。 [- ERROR - 表示当前策略与同一监听器下的其他策略存在相同的规则配置。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
ProvisioningStatus string `json:"provisioning_status"`
// 转发到pool的ID。当action为REDIRECT_TO_POOL时生效。 若同时指定redirect_pools_config和redirect_pool_id,按redirect_pools_config生效。
@@ -58,10 +58,10 @@ type L7Policy struct {
FixedResponseConfig *FixtedResponseConfig `json:"fixed_response_config"`
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
CreatedAt *string `json:"created_at,omitempty"`
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
UpdatedAt *string `json:"updated_at,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_rule.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_rule.go
index a366cc90..2e40f757 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_rule.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_l7_rule.go
@@ -18,16 +18,16 @@ type L7Rule struct {
// 转发规则的匹配方式。type为HOST_NAME时可以为EQUAL_TO。type为PATH时可以为REGEX, STARTS_WITH,EQUAL_TO。
CompareType string `json:"compare_type"`
- // 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 匹配内容的键值。[type为HOST_NAME和PATH时,该字段不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt)
Key string `json:"key"`
// 转发规则所在的项目ID。
ProjectId string `json:"project_id"`
- // 转发规则类别。取值: - HOST_NAME:匹配域名 - PATH:匹配请求路径 [- METHOD:匹配请求方法 - HEADER:匹配请求头 - QUERY_STRING:匹配请求查询参数 - SOURCE_IP:匹配请求源IP地址](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 使用说明: [- 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。HEADER、QUERY_STRING支持重复的rule配置。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [- 一个l7policy下创建的l7rule的HOST_NAME,PATH不能重复。](tag:dt,dt_test,hcso_dt)
+ // 转发规则类别。 取值: - HOST_NAME:匹配域名。 - PATH:匹配请求路径。 - METHOD:匹配请求方法。 - HEADER:匹配请求头。 - QUERY_STRING:匹配请求查询参数。 - SOURCE_IP:匹配请求源IP地址。 使用说明: - 一个l7policy下创建的l7rule的HOST_NAME,PATH,METHOD,SOURCE_IP不能重复。 HEADER、QUERY_STRING支持重复的rule配置。 [只支持取值为HOST_NAME,PATH。](tag:hcso_dt)
Type L7RuleType `json:"type"`
- // 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。
+ // 匹配内容的值。仅当conditions空时该字段生效。 当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当type为METHOD、SOURCE_IP、HEADER, QUERY_STRING时,该字段无意义,使用condition_pair来指定key,value。
Value string `json:"value"`
// provisioning状态,可以为ACTIVE、PENDING_CREATE 或者ERROR。 说明:该字段无实际含义,默认为ACTIVE。
@@ -39,13 +39,13 @@ type L7Rule struct {
// 规则ID。
Id string `json:"id"`
- // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 配置了conditions后,字段key、字段value的值无意义。 若指定了conditons,该rule的条件数为conditons列表长度。 列表中key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Conditions []RuleCondition `json:"conditions"`
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
CreatedAt *string `json:"created_at,omitempty"`
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
UpdatedAt *string `json:"updated_at,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_all_members_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_all_members_request.go
index 6abcc42c..5fcb8ee4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_all_members_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_all_members_request.go
@@ -9,28 +9,28 @@ import (
// Request Object
type ListAllMembersRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
- // 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。权重为0的后端不再接受新的请求。当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
+ // 后端云服务器的权重,请求按权重在同一后端云服务器组下的后端云服务器间分发。 权重为0的后端不再接受新的请求。 当后端云服务器所在的后端云服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
Weight *[]int32 `json:"weight,omitempty"`
- // 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
+ // 后端云服务器的管理状态;该字段虽然支持创建、更新,但实际取值决定于member对应的弹性云服务器是否存在。 若存在,该值为true,否则,该值为false。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 后端云服务器所在的子网ID。该子网和后端云服务器关联的负载均衡器的子网必须在同一VPC下。只支持指定IPv4的子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。
SubnetCidrId *[]string `json:"subnet_cidr_id,omitempty"`
- // 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。例如:192.168.3.11。只能指定为主网卡的IP。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。
+ // 后端云服务器的对应的IP地址,这个IP必须在subnet_cidr_id字段的子网网段中。 例如:192.168.3.11。只能指定为主网卡的IP。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。
Address *[]string `json:"address,omitempty"`
// 后端服务器端口号。 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
@@ -39,10 +39,10 @@ type ListAllMembersRequest struct {
// 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
Id *[]string `json:"id,omitempty"`
- // 后端云服务器的健康状态,取值: ONLINE,后端服务器正常运行。 NO_MONITOR,后端服务器无健康检查。 OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。
+ // 后端云服务器的健康状态。 取值: - ONLINE,后端服务器正常运行。 - NO_MONITOR,后端服务器无健康检查。 - OFFLINE,已下线。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=*。
OperatingStatus *[]string `json:"operating_status,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
// IP版本,取值v4、v6。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_api_versions_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_api_versions_response.go
index 7bf42a6a..cb3d88a9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_api_versions_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_api_versions_response.go
@@ -3,21 +3,15 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
- "errors"
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
-
"strings"
)
// Response Object
type ListApiVersionsResponse struct {
- // API版本号。 取值:由高到低版本分别为v3,v2,v2.0。
- Id *string `json:"id,omitempty"`
-
- // API版本的状态。 取值: - CURRENT:当前版本。 - STABLE:稳定版本。 - DEPRECATED:废弃版本。 说明: 所有支持的API版本中最高版状态为CURRENT,其他版本状态为STABLE。
- Status *ListApiVersionsResponseStatus `json:"status,omitempty"`
- HttpStatusCode int `json:"-"`
+ // 可用API版本列表。
+ Versions *[]ApiVersionInfo `json:"versions,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ListApiVersionsResponse) String() string {
@@ -28,49 +22,3 @@ func (o ListApiVersionsResponse) String() string {
return strings.Join([]string{"ListApiVersionsResponse", string(data)}, " ")
}
-
-type ListApiVersionsResponseStatus struct {
- value string
-}
-
-type ListApiVersionsResponseStatusEnum struct {
- CURRENT ListApiVersionsResponseStatus
- STABLE ListApiVersionsResponseStatus
- DEPRECATED ListApiVersionsResponseStatus
-}
-
-func GetListApiVersionsResponseStatusEnum() ListApiVersionsResponseStatusEnum {
- return ListApiVersionsResponseStatusEnum{
- CURRENT: ListApiVersionsResponseStatus{
- value: "CURRENT",
- },
- STABLE: ListApiVersionsResponseStatus{
- value: "STABLE",
- },
- DEPRECATED: ListApiVersionsResponseStatus{
- value: "DEPRECATED",
- },
- }
-}
-
-func (c ListApiVersionsResponseStatus) Value() string {
- return c.value
-}
-
-func (c ListApiVersionsResponseStatus) MarshalJSON() ([]byte, error) {
- return utils.Marshal(c.value)
-}
-
-func (c *ListApiVersionsResponseStatus) UnmarshalJSON(b []byte) error {
- myConverter := converter.StringConverterFactory("string")
- if myConverter != nil {
- val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
- if err == nil {
- c.value = val.(string)
- return nil
- }
- return err
- } else {
- return errors.New("convert enum data to string error")
- }
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_certificates_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_certificates_request.go
index acd42d13..28876639 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_certificates_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_certificates_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListCertificatesRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 证书ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_flavors_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_flavors_request.go
index 0c2e84ff..7361285e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_flavors_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_flavors_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListFlavorsRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 规格ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
@@ -24,7 +24,7 @@ type ListFlavorsRequest struct {
// 规格名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
- // 规格类别。取值: - L4和L7 表示四层和七层flavor。 - L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。
+ // 规格类别。 取值: - L4和L7 表示四层和七层flavor。 [- L4_elastic和L7_elastic 表示弹性扩缩容实例的下限规格。 - L4_elastic_max和L7_elastic_max 表示弹性扩缩容实例的上限规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,hcso_dt) 支持多值查询,查询条件格式:*type=xxx&type=xxx*。
Type *[]string `json:"type,omitempty"`
// 是否查询公共规格。true表示公共规格,所有租户可见。false表示私有规格,为当前租户所有。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_health_monitors_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_health_monitors_request.go
index 1fb28a87..f08802fd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_health_monitors_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_health_monitors_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListHealthMonitorsRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 健康检查ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx****。
@@ -30,13 +30,13 @@ type ListHealthMonitorsRequest struct {
// 健康检查名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
- // 健康检查间隔。取值:1-50s。 支持多值查询,查询条件格式:*delay=xxx&delay=xxx*。
+ // 健康检查间隔。 取值:1-50s。 支持多值查询,查询条件格式:*delay=xxx&delay=xxx*。
Delay *[]int32 `json:"delay,omitempty"`
// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。 支持多值查询,查询条件格式:*******max_retries=xxx&max_retries=xxx*******。
MaxRetries *[]int32 `json:"max_retries,omitempty"`
- // 健康检查的管理状态。取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
+ // 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10。 支持多值查询,查询条件格式:******max_retries_down=xxx&max_retries_down=xxx******。
@@ -45,19 +45,19 @@ type ListHealthMonitorsRequest struct {
// 一次健康检查请求的超时时间。
Timeout *int32 `json:"timeout,omitempty"`
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。
+ // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 支持多值查询,查询条件格式:*****type=xxx&type=xxx*****。
Type *[]string `json:"type,omitempty"`
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。
+ // 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。 支持多值查询,查询条件格式:****expected_codes=xxx&expected_codes=xxx****。
ExpectedCodes *[]string `json:"expected_codes,omitempty"`
- // 健康检查测试member健康时发送的http请求路径。默认为“/”。使用说明:以“/”开头。当type为HTTP/HTTPS时生效。 支持多值查询,查询条件格式:***url_path=xxx&url_path=xxx***。
+ // 健康检查测试member健康时发送的http请求路径。默认为“/”。 使用说明:以“/”开头。当type为HTTP/HTTPS时生效。 支持多值查询,查询条件格式:***url_path=xxx&url_path=xxx***。
UrlPath *[]string `json:"url_path,omitempty"`
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。 支持多值查询,查询条件格式:**http_method=xxx&http_method=xxx**。 不支持该字段,请勿使用。
+ // HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH。 支持多值查询,查询条件格式:**http_method=xxx&http_method=xxx**。 不支持该字段,请勿使用。
HttpMethod *[]string `json:"http_method,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_ip_groups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_ip_groups_request.go
index dd44d87d..bb366688 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_ip_groups_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_ip_groups_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListIpGroupsRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// IP地址组的ID。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_policies_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_policies_request.go
index f30ba2e1..4b5c42dd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_policies_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_policies_request.go
@@ -9,16 +9,16 @@ import (
// Request Object
type ListL7PoliciesRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
// 转发策略ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
@@ -39,7 +39,7 @@ type ListL7PoliciesRequest struct {
// 转发策略的优先级。 支持多值查询,查询条件格式:****position=xxx&position=xxx****。 不支持该字段,请勿使用。
Position *[]int32 `json:"position,omitempty"`
- // 转发策略的转发动作。取值: - REDIRECT_TO_POOL:转发到后端云服务器组; - REDIRECT_TO_LISTENER:重定向到监听器; [- REDIRECT_TO_URL:重定向到URL; - FIXED_RESPONSE :返回固定响应体。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。
+ // 转发策略的转发动作。 取值: - REDIRECT_TO_POOL:转发到后端云服务器组。 - REDIRECT_TO_LISTENER:重定向到监听器。 - REDIRECT_TO_URL:重定向到URL。 - FIXED_RESPONSE:返回固定响应体。 支持多值查询,查询条件格式:*****action=xxx&action=xxx*****。 [不支持REDIRECT_TO_URL和FIXED_RESPONSE](tag:hcso_dt)
Action *[]string `json:"action,omitempty"`
// 转发到的url。必须满足格式: protocol://host:port/path?query。 支持多值查询,查询条件格式:****redirect_url=xxx&redirect_url=xxx****。 不支持该字段,请勿使用。
@@ -51,13 +51,13 @@ type ListL7PoliciesRequest struct {
// 转发到的listener的ID。 支持多值查询,查询条件格式:**redirect_listener_id=xxx&redirect_listener_id=xxx**。
RedirectListenerId *[]string `json:"redirect_listener_id,omitempty"`
- // 转发策略的配置状态。 取值范围: - ACTIVE - 默认值,表示正常。 [- ERROR - 表示当前策略与同一监听器下的其他策略存在相同的规则配置。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
+ // 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 - ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`
- // 是否显示转发策略下的rule详细信息。取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息
+ // 是否显示转发策略下的rule详细信息。 取值: - true:显示policy下面的rule的详细信息。 - false:只显示policy下面的rule的id信息
DisplayAllRules *bool `json:"display_all_rules,omitempty"`
- // 转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发策略的优先级。数值越小,优先级越高。 支持多值查询,查询条件格式:*priority=xxx&priority=xxx*。 [不支持该字段,请勿使用。](tag:hcso_dt)
Priority *[]int32 `json:"priority,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_rules_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_rules_request.go
index ab3a4158..fb9ee289 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_rules_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_l7_rules_request.go
@@ -15,19 +15,19 @@ type ListL7RulesRequest struct {
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 转发规则ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
Id *[]string `json:"id,omitempty"`
- // 转发匹配方式。取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 支持多值查询,查询条件格式:*compare_type=xxx&compare_type=xxx*。
+ // 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 支持多值查询,查询条件格式:*compare_type=xxx&compare_type=xxx*。
CompareType *[]string `json:"compare_type,omitempty"`
- // 转发规则的配置状态。取值:ACTIVE 表示正常。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
+ // 转发规则的配置状态。 取值:ACTIVE 表示正常。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`
// 是否反向匹配。使用说明:固定为false。该字段能更新但不会生效。
@@ -45,7 +45,7 @@ type ListL7RulesRequest struct {
// 匹配类别,可以为HOST_NAME,PATH。 一个l7policy下创建的l7rule的type不能重复。 支持多值查询,查询条件格式:*type=xxx&type=xxx*。
Type *[]string `json:"type,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_listeners_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_listeners_request.go
index e33bd46f..85e1ba8b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_listeners_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_listeners_request.go
@@ -15,28 +15,28 @@ type ListListenersRequest struct {
// 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 监听器的前端监听端口。 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
ProtocolPort *[]string `json:"protocol_port,omitempty"`
- // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [取值:TCP、UDP、HTTP、HTTPS。](tag:dt,dt_test,hcso_dt) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。
+ // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 说明:TERMINATED_HTTPS为共享型LB上的监听器独有的协议。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt) 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [荷兰region不支持QUIC。](tag:dt)
Protocol *[]string `json:"protocol,omitempty"`
// 监听器的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。
Description *[]string `json:"description,omitempty"`
- // 监听器的服务器证书ID。 支持多值查询,查询条件格式:*default_tls_container_ref=xxx&default_tls_container_ref=xxx*。
+ // 监听器的服务器证书ID。 支持多值查询,查询条件格式: *default_tls_container_ref=xxx&default_tls_container_ref=xxx*。
DefaultTlsContainerRef *[]string `json:"default_tls_container_ref,omitempty"`
- // 监听器的CA证书ID。 支持多值查询,查询条件格式:*client_ca_tls_container_ref=xxx&client_ca_tls_container_ref=xxx*。
+ // 监听器的CA证书ID。 支持多值查询,查询条件格式: *client_ca_tls_container_ref=xxx&client_ca_tls_container_ref=xxx*。
ClientCaTlsContainerRef *[]string `json:"client_ca_tls_container_ref,omitempty"`
// 监听器的管理状态,只能设置为true。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 监听器的最大连接数。取值:-1表示不限制连接数。 支持多值查询,查询条件格式:*connection_limit=xxx&connection_limit=xxx*。 不支持该字段,请勿使用。
+ // 监听器的最大连接数。 取值:-1表示不限制连接数。 支持多值查询,查询条件格式:*connection_limit=xxx&connection_limit=xxx*。 不支持该字段,请勿使用。
ConnectionLimit *[]int32 `json:"connection_limit,omitempty"`
// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。 支持多值查询,查询条件格式:*default_pool_id=xxx&default_pool_id=xxx*。
@@ -48,7 +48,7 @@ type ListListenersRequest struct {
// 监听器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
- // 客户端与监听器之间的HTTPS请求的HTTP2功能的开启状态。开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 非HTTPS协议的监听器该字段无效,无论取值如何都不影响监听器正常运行。
+ // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [荷兰region不支持QUIC。](tag:dt)
Http2Enable *bool `json:"http2_enable,omitempty"`
// 监听器所属的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
@@ -63,25 +63,25 @@ type ListListenersRequest struct {
// 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
MemberDeviceId *[]string `json:"member_device_id,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
- // 是否开启后端服务器的重试。取值:true 开启重试,false 不开启重试。
+ // 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。
EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`
- // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。
+ // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 支持多值查询,查询条件格式:*member_timeout=xxx&member_timeout=xxx*。
MemberTimeout *[]int32 `json:"member_timeout,omitempty"`
// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值:1-300s。 支持多值查询,查询条件格式:*client_timeout=xxx&client_timeout=xxx*。
ClientTimeout *[]int32 `json:"client_timeout,omitempty"`
- // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。取值: - TCP监听器:10-4000s。 - HTTP/HTTPS/TERMINATED_HTTPS监听器:0-4000s。 - UDP监听器不支持此字段。 支持多值查询,查询条件格式:*keepalive_timeout=xxx&keepalive_timeout=xxx*。
+ // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。 取值: - TCP监听器:10-4000s。 - HTTP/HTTPS/TERMINATED_HTTPS监听器:0-4000s。 - UDP监听器不支持此字段。 支持多值查询,查询条件格式:*keepalive_timeout=xxx&keepalive_timeout=xxx*。
KeepaliveTimeout *[]int32 `json:"keepalive_timeout,omitempty"`
- // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。仅作用于共享型LB的TCP/UDP监听器。取值:true开启,false不开启。
+ // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。取值:true开启,false不开启。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`
- // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。取值:true开启,false不开启。
+ // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 [荷兰region不支持该字段,请勿使用。](tag:dt)
EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`
// 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_load_balancers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_load_balancers_request.go
index df39c9e3..fbe6eac0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_load_balancers_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_load_balancers_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListLoadBalancersRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 负载均衡器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
@@ -30,13 +30,13 @@ type ListLoadBalancersRequest struct {
// 负载均衡器的管理状态。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 负载均衡器的配置状态。取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
+ // 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。 支持多值查询,查询条件格式:*provisioning_status=xxx&provisioning_status=xxx*。
ProvisioningStatus *[]string `json:"provisioning_status,omitempty"`
- // 负载均衡器的操作状态。取值: - ONLINE:正常运行。 - FROZEN:已冻结。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
+ // 负载均衡器的操作状态。 取值: - ONLINE:正常运行。 - FROZEN:已冻结。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
OperatingStatus *[]string `json:"operating_status,omitempty"`
- // 是否独享型LB,取值: - false:共享型 - true:独享型
+ // 是否独享型LB。 取值: - false:共享型 - true:独享型 [仅支持独享型,固定为true。](tag:hws_eu,hcso_dt)
Guaranteed *bool `json:"guaranteed,omitempty"`
// 负载均衡器所在的VPC ID。 支持多值查询,查询条件格式:*vpc_id=xxx&vpc_id=xxx*。
@@ -51,37 +51,37 @@ type ListLoadBalancersRequest struct {
// 负载均衡器所在子网的IPv4子网ID。 支持多值查询,查询条件格式:*vip_subnet_cidr_id=xxx&vip_subnet_cidr_id=xxx*。
VipSubnetCidrId *[]string `json:"vip_subnet_cidr_id,omitempty"`
- // 双栈类型负载均衡器的IPv6对应的port ID。 支持多值查询,查询条件格式:*ipv6_vip_port_id=xxx&ipv6_vip_port_id=xxx*。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器的IPv6对应的port ID。 支持多值查询,查询条件格式:*ipv6_vip_port_id=xxx&ipv6_vip_port_id=xxx*。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipPortId *[]string `json:"ipv6_vip_port_id,omitempty"`
- // 双栈类型负载均衡器的IPv6地址。 支持多值查询,查询条件格式:*ipv6_vip_address=xxx&ipv6_vip_address=xxx*。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器的IPv6地址。 支持多值查询,查询条件格式:*ipv6_vip_address=xxx&ipv6_vip_address=xxx*。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipAddress *[]string `json:"ipv6_vip_address,omitempty"`
- // 双栈类型负载均衡器所在的子网IPv6网络ID。 支持多值查询,查询条件格式:*ipv6_vip_virsubnet_id=xxx&ipv6_vip_virsubnet_id=xxx*。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器所在的子网IPv6网络ID。 支持多值查询,查询条件格式:*ipv6_vip_virsubnet_id=xxx&ipv6_vip_virsubnet_id=xxx*。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipVirsubnetId *[]string `json:"ipv6_vip_virsubnet_id,omitempty"`
// 负载均衡器绑定的EIP。示例如下: \"eips\": [ { \"eip_id\": \"e9b72a9d-4275-455e-a724-853504e4d9c6\", \"eip_address\": \"88.88.14.122\", \"ip_version\": 4 } ] 支持多值查询,查询条件格式: - eip_id作为查询条件:*eips=eip_id=xxx&eips=eip_id=xxx*。 - eip_address作为查询条件:*eips=eip_address=xxx&eips=eip_address=xxx*。 - ip_version作为查询条件:*eips=ip_version=xxx&eips=ip_version=xxx*。 注:该字段与publicips字段一致。
Eips *[]string `json:"eips,omitempty"`
- // 负载均衡器绑定的公网IP。示例如下: \"publicips\": [ { \"publicip_id\": \"e9b72a9d-4275-455e-a724-853504e4d9c6\", \"publicip_address\": \"88.88.14.122\", \"ip_version\": 4 } ] 支持多值查询,查询条件格式: - publicip_id作为查询条件:*publicips=publicip_id=xxx&publicips=publicip_id=xxx*。 - publicip_address作为查询条件:*publicips=publicip_address=xxx&publicips=publicip_address=xxx*。 - ip_version作为查询条件:*publicips=ip_version=xxx&publicips=ip_version=xxx*。 注:该字段与eips字段一致。
+ // 负载均衡器绑定的公网IP。示例如下: \"publicips\": [ { \"publicip_id\": \"e9b72a9d-4275-455e-a724-853504e4d9c6\", \"publicip_address\": \"88.88.14.122\", \"ip_version\": 4 } ] 支持多值查询,查询条件格式: - publicip_id作为查询条件: *publicips=publicip_id=xxx&publicips=publicip_id=xxx* - publicip_address作为查询条件: *publicips=publicip_address=xxx&publicips=publicip_address=xxx* - ip_version作为查询条件: *publicips=ip_version=xxx&publicips=ip_version=xxx* 注:该字段与eips字段一致。
Publicips *[]string `json:"publicips,omitempty"`
- // 负载均衡器所在可用区列表。 支持多值查询,查询条件格式:*availability_zone_list=xxx&availability_zone_list=xxx*。
+ // 负载均衡器所在可用区列表。 支持多值查询,查询条件格式: *availability_zone_list=xxx&availability_zone_list=xxx*。
AvailabilityZoneList *[]string `json:"availability_zone_list,omitempty"`
- // 四层Flavor ID。 支持多值查询,查询条件格式:*l4_flavor_id=xxx&l4_flavor_id=xxx*。
+ // 四层Flavor ID。 支持多值查询,查询条件格式:*l4_flavor_id=xxx&l4_flavor_id=xxx*。 [不支持该字段,请勿使用。](tag:fcs)
L4FlavorId *[]string `json:"l4_flavor_id,omitempty"`
// 四层弹性Flavor ID。 支持多值查询,查询条件格式:*l4_scale_flavor_id=xxx&l4_scale_flavor_id=xxx*。 不支持该字段,请勿使用。
L4ScaleFlavorId *[]string `json:"l4_scale_flavor_id,omitempty"`
- // 七层Flavor ID。 支持多值查询,查询条件格式:*l7_flavor_id=xxx&l7_flavor_id=xxx*。
+ // 七层Flavor ID。 支持多值查询,查询条件格式:*l7_flavor_id=xxx&l7_flavor_id=xxx*。 [不支持该字段,请勿使用。](tag:fcs)
L7FlavorId *[]string `json:"l7_flavor_id,omitempty"`
// 七层弹性Flavor ID。 支持多值查询,查询条件格式:*l7_scale_flavor_id=xxx&l7_scale_flavor_id=xxx*。 不支持该字段,请勿使用。
L7ScaleFlavorId *[]string `json:"l7_scale_flavor_id,omitempty"`
- // 资源账单信息。 支持多值查询,查询条件格式:*billing_info=xxx&billing_info=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 资源账单信息。 支持多值查询,查询条件格式:*billing_info=xxx&billing_info=xxx*。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
BillingInfo *[]string `json:"billing_info,omitempty"`
// 负载均衡器中的后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
@@ -90,19 +90,19 @@ type ListLoadBalancersRequest struct {
// 负载均衡器中的后端云服务器对应的弹性云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
MemberAddress *[]string `json:"member_address,omitempty"`
- // 负载均衡器所属的企业项目ID。 查询时若不传,则查询default企业项目下的资源,鉴权按照default企业项目鉴权。如果传值,则必须传已存在的企业项目ID(不可为\"0\")或传all_granted_eps表示查询所有企业项目。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 负载均衡器所属的企业项目ID。 查询时若不传,则查询default企业项目下的资源,鉴权按照default企业项目鉴权。 如果传值,则必须传已存在的企业项目ID(不可为\"0\")或传all_granted_eps表示查询所有企业项目。 支持多值查询,查询条件格式: *enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
- // IP版本信息。 取值:4代表IPv4,6代表IPv6。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
+ // IP版本信息。 取值:4代表IPv4,6代表IPv6。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。 [不支持IPv6,请勿设置为6。](tag:dt,dt_test)
IpVersion *[]int32 `json:"ip_version,omitempty"`
- // 是否开启删除保护,false不开启,true开启。
+ // 是否开启删除保护,false不开启,true开启。[不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`
- // 下联面子网类型。取值: - ipv4:ipv4。 - dualstack:双栈。 支持多值查询,查询条件格式: *elb_virsubnet_type=ipv4&elb_virsubnet_type=dualstack*。
+ // 下联面子网类型。 取值: - ipv4:ipv4。 - dualstack:双栈。 支持多值查询,查询条件格式: *elb_virsubnet_type=ipv4&elb_virsubnet_type=dualstack*。
ElbVirsubnetType *[]string `json:"elb_virsubnet_type,omitempty"`
- // 是否开启弹性扩缩容。示例如下: \"autoscaling\": { \"enable\": \"true\" } 支持多值查询,查询条件格式: *autoscaling=enable=true&autoscaling=enable=false*。
+ // 是否开启弹性扩缩容。示例如下: \"autoscaling\": { \"enable\": \"true\" } 支持多值查询,查询条件格式: *autoscaling=enable=true&autoscaling=enable=false*。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)
Autoscaling *[]string `json:"autoscaling,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_logtanks_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_logtanks_request.go
index 7a1b469b..5ca3862e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_logtanks_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_logtanks_request.go
@@ -12,10 +12,10 @@ type ListLogtanksRequest struct {
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker
PageReverse *bool `json:"page_reverse,omitempty"`
// 企业项目ID。 支持多值查询,查询条件格式:enterprise_project_id=xxx&enterprise_project_id=xxx。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_request.go
deleted file mode 100644
index bed25975..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_request.go
+++ /dev/null
@@ -1,74 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Request Object
-type ListMasterSlavePoolsRequest struct {
-
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
- Marker *string `json:"marker,omitempty"`
-
- // 每页返回的个数。
- Limit *int32 `json:"limit,omitempty"`
-
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
- PageReverse *bool `json:"page_reverse,omitempty"`
-
- // 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。
- Description *[]string `json:"description,omitempty"`
-
- // 后端云服务器组关联的健康检查的ID。 支持多值查询,查询条件格式:*healthmonitor_id=xxx&healthmonitor_id=xxx*。
- HealthmonitorId *[]string `json:"healthmonitor_id,omitempty"`
-
- // 后端云服务器组的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
- Id *[]string `json:"id,omitempty"`
-
- // 后端云服务器组的名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
- Name *[]string `json:"name,omitempty"`
-
- // 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
- LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`
-
- // 后端云服务器组的后端协议。取值:TCP、UDP、HTTP、HTTPS和QUIC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。
- Protocol *[]string `json:"protocol,omitempty"`
-
- // 后端云服务器组的负载均衡算法。 取值: 1、ROUND_ROBIN:加权轮询算法。 2、LEAST_CONNECTIONS:加权最少连接算法。 3、SOURCE_IP:源IP算法。 4、QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。
- LbAlgorithm *[]string `json:"lb_algorithm,omitempty"`
-
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
- EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
-
- // 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
- IpVersion *[]string `json:"ip_version,omitempty"`
-
- // 后端云服务器的IP地址。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_address=xxx&member_address=xxx*。
- MemberAddress *[]string `json:"member_address,omitempty"`
-
- // 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
- MemberDeviceId *[]string `json:"member_device_id,omitempty"`
-
- // 关联的监听器ID,包括通过l7policy关联的。 支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。
- ListenerId *[]string `json:"listener_id,omitempty"`
-
- // 后端云服务器ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_instance_id=xxx&member_instance_id=xxx*。
- MemberInstanceId *[]string `json:"member_instance_id,omitempty"`
-
- // 后端云服务器组关联的虚拟私有云的ID。
- VpcId *[]string `json:"vpc_id,omitempty"`
-
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
- Type *[]string `json:"type,omitempty"`
-}
-
-func (o ListMasterSlavePoolsRequest) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ListMasterSlavePoolsRequest struct{}"
- }
-
- return strings.Join([]string{"ListMasterSlavePoolsRequest", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_response.go
deleted file mode 100644
index 5a8706f6..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_master_slave_pools_response.go
+++ /dev/null
@@ -1,29 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Response Object
-type ListMasterSlavePoolsResponse struct {
-
- // 请求ID。 注:自动生成 。
- RequestId *string `json:"request_id,omitempty"`
-
- PageInfo *PageInfo `json:"page_info,omitempty"`
-
- // 后端服务器组列表。
- Pools *[]MasterSlavePool `json:"pools,omitempty"`
- HttpStatusCode int `json:"-"`
-}
-
-func (o ListMasterSlavePoolsResponse) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ListMasterSlavePoolsResponse struct{}"
- }
-
- return strings.Join([]string{"ListMasterSlavePoolsResponse", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_members_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_members_request.go
index a58593d7..4f8df264 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_members_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_members_request.go
@@ -12,28 +12,28 @@ type ListMembersRequest struct {
// 后端服务器组ID。
PoolId string `json:"pool_id"`
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 后端云服务器名称。 支持多值查询,查询条件格式:*name=xxx&name=xxx*。
Name *[]string `json:"name,omitempty"`
- // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100。 支持多值查询,查询条件格式:*weight=xxx&weight=xxx*。
Weight *[]int32 `json:"weight,omitempty"`
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
+ // 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [ 不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
+ // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 支持多值查询,查询条件格式:***subnet_cidr_id=xxx&subnet_cidr_id=xxx*。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
SubnetCidrId *[]string `json:"subnet_cidr_id,omitempty"`
- // 后端服务器对应的IPv4或IPv6地址。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // 后端服务器对应的IPv4或IPv6地址。 支持多值查询,查询条件格式:*address=xxx&address=xxx*。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Address *[]string `json:"address,omitempty"`
// 后端服务器业务端口号。 支持多值查询,查询条件格式:*protocol_port=xxx&protocol_port=xxx*。
@@ -42,17 +42,20 @@ type ListMembersRequest struct {
// 后端云服务器ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
Id *[]string `json:"id,omitempty"`
- // 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
+ // 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。 支持多值查询,查询条件格式:*operating_status=xxx&operating_status=xxx*。
OperatingStatus *[]string `json:"operating_status,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
// 当前后端服务器的IP地址版本。取值:v4、v6。
IpVersion *[]string `json:"ip_version,omitempty"`
- // 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。
+ // 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。 支持多值查询,查询条件格式:*member_type=xxx&member_type=xxx*。
MemberType *[]string `json:"member_type,omitempty"`
+
+ // member关联的ECS实例ID,空表示跨VPC场景的member。 支持多值查询,查询条件格式:*instance_id=xxx&instance_id=xxx*。
+ InstanceId *[]string `json:"instance_id,omitempty"`
}
func (o ListMembersRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_pools_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_pools_request.go
index c0a6776c..ba07575b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_pools_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_pools_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListPoolsRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 后端云服务器组的描述信息。 支持多值查询,查询条件格式:*description=xxx&description=xxx*。
@@ -36,13 +36,13 @@ type ListPoolsRequest struct {
// 后端云服务器组绑定的负载均衡器ID。 支持多值查询,查询条件格式:*loadbalancer_id=xxx&loadbalancer_id=xxx*。
LoadbalancerId *[]string `json:"loadbalancer_id,omitempty"`
- // 后端云服务器组的后端协议。取值:TCP、UDP、HTTP、HTTPS和QUIC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。
+ // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 支持多值查询,查询条件格式:*protocol=xxx&protocol=xxx*。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
Protocol *[]string `json:"protocol,omitempty"`
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。
+ // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 支持多值查询,查询条件格式:*lb_algorithm=xxx&lb_algorithm=xxx*。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
LbAlgorithm *[]string `json:"lb_algorithm,omitempty"`
- // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权;如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 企业项目ID。不传时查询default企业项目\"0\"下的资源,鉴权按照default企业项目鉴权; 如果传值,则传已存在的企业项目ID或all_granted_eps(表示查询所有企业项目)进行查询。 支持多值查询,查询条件格式:*enterprise_project_id=xxx&enterprise_project_id=xxx*。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId *[]string `json:"enterprise_project_id,omitempty"`
// 后端云服务器组支持的IP版本。 支持多值查询,查询条件格式:*ip_version=xxx&ip_version=xxx*。
@@ -54,7 +54,7 @@ type ListPoolsRequest struct {
// 后端云服务器对应的弹性云服务器的ID。仅用于查询条件,不作为响应参数字段。 支持多值查询,查询条件格式:*member_device_id=xxx&member_device_id=xxx*。
MemberDeviceId *[]string `json:"member_device_id,omitempty"`
- // 是否开启删除保护,false不开启,true开启,不传查询全部。
+ // 是否开启删除保护,false不开启,true开启,不传查询全部。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`
// 关联的监听器ID,包括通过l7policy关联的。 支持多值查询,查询条件格式:*listener_id=xxx&listener_id=xxx*。
@@ -66,7 +66,7 @@ type ListPoolsRequest struct {
// 后端云服务器组关联的虚拟私有云的ID。
VpcId *[]string `json:"vpc_id,omitempty"`
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
+ // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
Type *[]string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_quota_details_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_quota_details_request.go
index fdf14aa5..c96ace87 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_quota_details_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_quota_details_request.go
@@ -9,7 +9,7 @@ import (
// Request Object
type ListQuotaDetailsRequest struct {
- // 资源类型,取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、healthmonitor、l7policy、certificate、security_policy,其中members_per_pool表示一个pool下最多可关联的member数量。 支持多值查询,查询条件格式:quota_key=xxx"a_key=xxx。
+ // 资源类型。 取值: loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、 ipgroup_bindings、ipgroup_max_length。 members_per_pool表示一个pool下最多可关联的member数量。 ipgroup_bindings表示一个ipgroup下最多可关联的listener数量。 ipgroup_max_length表示一个ipgroup下最多设置的ip地址数量。 支持多值查询,查询条件格式:quota_key=xxx"a_key=xxx。
QuotaKey *[]string `json:"quota_key,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_security_policies_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_security_policies_request.go
index 50cd13ec..884a3779 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_security_policies_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_list_security_policies_request.go
@@ -9,13 +9,13 @@ import (
// Request Object
type ListSecurityPoliciesRequest struct {
- // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
+ // 上一页最后一条记录的ID。 使用说明: - 必须与limit一起使用。 - 不指定时表示查询第一页。 - 该字段不允许为空或无效的ID。
Marker *string `json:"marker,omitempty"`
// 每页返回的个数。
Limit *int32 `json:"limit,omitempty"`
- // 是否反向查询,取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
+ // 是否反向查询。 取值: - true:查询上一页。 - false:查询下一页,默认。 使用说明: - 必须与limit一起使用。 - 当page_reverse=true时,若要查询上一页,marker取值为当前页返回值的previous_marker。
PageReverse *bool `json:"page_reverse,omitempty"`
// 自定义安全策略的ID。 支持多值查询,查询条件格式:*id=xxx&id=xxx*。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener.go
index 5f77db3b..ec39ecd1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener.go
@@ -15,7 +15,7 @@ type Listener struct {
// 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。
ClientCaTlsContainerRef string `json:"client_ca_tls_container_ref"`
- // 监听器的最大连接数。取值:-1表示不限制,默认为-1。 不支持该字段,请勿使用。
+ // 监听器的最大连接数。 取值:-1表示不限制,默认为-1。 不支持该字段,请勿使用。
ConnectionLimit int32 `json:"connection_limit"`
// 监听器的创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z
@@ -30,7 +30,7 @@ type Listener struct {
// 监听器的描述信息。
Description string `json:"description"`
- // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 其他协议的监听器该字段无效,无论取值如何都不影响监听器正常运行。
+ // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [荷兰region不支持QUIC。](tag:dt)
Http2Enable bool `json:"http2_enable"`
// 监听器ID。
@@ -47,7 +47,7 @@ type Listener struct {
// 监听器所在的项目ID。
ProjectId string `json:"project_id"`
- // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS,创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [取值:TCP、UDP、HTTP、HTTPS、QUIC。](tag:dt,dt_test,hcso_dt)
+ // 监听器的监听协议。 [取值:TCP、UDP、HTTP、HTTPS、TERMINATED_HTTPS、QUIC。 使用说明: - 共享型LB上的HTTPS监听器只支持设置为TERMINATED_HTTPS, 创建时传入HTTPS将会自动转为TERMINATED_HTTPS。 - 独享型LB上的HTTPS监听器只支持设置为HTTPS,创建时传入TERMINATED_HTTPS将会自动转为HTTPS。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [取值:TCP、UDP、HTTP、HTTPS。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
Protocol string `json:"protocol"`
// 监听器的前端监听端口。客户端将请求发送到该端口中。
@@ -56,36 +56,39 @@ type Listener struct {
// 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。
SniContainerRefs []string `json:"sni_container_refs"`
+ // 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
+ SniMatchAlgo string `json:"sni_match_algo"`
+
// 标签列表。
Tags []Tag `json:"tags"`
// 监听器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',如:2021-07-30T12:03:44Z
UpdatedAt string `json:"updated_at"`
- // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:dt,dt_test,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) [荷兰region不支持QUIC。](tag:dt)
TlsCiphersPolicy string `json:"tls_ciphers_policy"`
- // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
SecurityPolicyId string `json:"security_policy_id"`
- // 是否开启后端服务器的重试。取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hcso_dt)
+ // 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
EnableMemberRetry bool `json:"enable_member_retry"`
- // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 UDP监听器不支持此字段。
+ // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。 取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 UDP监听器不支持此字段。
KeepaliveTimeout int32 `json:"keepalive_timeout"`
// 等待客户端请求超时时间,包括两种情况: - 读取整个客户端请求头的超时时长:如果客户端未在超时时长内发送完整个请求头,则请求将被中断 - 两个连续body体的数据包到达LB的时间间隔,超出client_timeout将会断开连接。 取值范围为1-300s,默认值为60s。 使用说明:仅协议为HTTP/HTTPS的监听器支持该字段。
ClientTimeout int32 `json:"client_timeout"`
- // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
+ // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s,默认为60s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
MemberTimeout int32 `json:"member_timeout"`
Ipgroup *ListenerIpGroup `json:"ipgroup"`
- // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。[仅作用于共享型LB的TCP/UDP监听器。取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [当前所有协议的监听器只设支持置为true,不传默认为true。](tag:hcso_dt)
+ // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
TransparentClientIpEnable bool `json:"transparent_client_ip_enable"`
- // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。
+ // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启,默认false。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt)
EnhanceL7policyEnable bool `json:"enhance_l7policy_enable"`
QuicConfig *ListenerQuicConfig `json:"quic_config,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_insert_headers.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_insert_headers.go
index 31adbe9d..c2df524e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_insert_headers.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_insert_headers.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// 可选的HTTP头插入,可以将从负载均衡器到后端云服务器的路径中需要被后端云服务器用到的信息写入HTTP中,随报文传递到后端云服务器使。例如可通过X-Forwarded-ELB-IP开关,将负载均衡器的弹性公网IP传到后端云服务器。
+// 可选的HTTP头插入,可以将从负载均衡器到后端云服务器的路径中需要被后端云服务器用到的信息写入HTTP中, 随报文传递到后端云服务器使。例如可通过X-Forwarded-ELB-IP开关,将负载均衡器的弹性公网IP传到后端云服务器。
type ListenerInsertHeaders struct {
// X-Forwarded-ELB-IP设为true可以将ELB实例的eip地址从报文的http头中带到后端云服务器。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_member_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_member_info.go
deleted file mode 100644
index 451bcb00..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_member_info.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 后端服务器监听器粒度的健康检查结果
-type ListenerMemberInfo struct {
-
- // 后端服务器关联的监听器id。
- ListenerId string `json:"listener_id"`
-
- // 后端云服务器的健康状态。取值: ONLINE:后端云服务器正常。 NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 OFFLINE:后端云服务器关联的ECS服务器不存在或已关机或服务异常。
- OperatingStatus string `json:"operating_status"`
-}
-
-func (o ListenerMemberInfo) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ListenerMemberInfo struct{}"
- }
-
- return strings.Join([]string{"ListenerMemberInfo", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_quic_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_quic_config.go
index f5aaab5c..509809fa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_quic_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_listener_quic_config.go
@@ -6,13 +6,13 @@ import (
"strings"
)
-// listener对象中的quic配置信息,仅protocol为HTTPS时有效。 支持创建和修改; 支持HTTPS监听器升级QUIC监听器能力。仅HTTPS监听器支持升级到QUIC监听器 当客户开启升级之后选择关联的quic监听器,https对象要保存改quic监听器ID。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。
+// 当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
type ListenerQuicConfig struct {
- // 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。
+ // 监听器关联的QUIC监听器ID。 创建时必选,更新时非必选。 指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [荷兰region不支持QUIC。](tag:dt)
QuicListenerId *string `json:"quic_listener_id,omitempty"`
- // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力
+ // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [荷兰region不支持QUIC。](tag:dt)
EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer.go
index 1cdcb462..e2b79285 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer.go
@@ -18,7 +18,7 @@ type LoadBalancer struct {
// 负载均衡器描述信息。
Description string `json:"description"`
- // 负载均衡器的配置状态。取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
+ // 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
ProvisioningStatus string `json:"provisioning_status"`
// 负载均衡器的管理状态。固定为true。
@@ -33,7 +33,7 @@ type LoadBalancer struct {
// 负载均衡器关联的监听器的ID列表。
Listeners []ListenerRef `json:"listeners"`
- // 负载均衡器的操作状态。取值: - ONLINE:在线。
+ // 负载均衡器的操作状态。 取值: - ONLINE:在线。
OperatingStatus string `json:"operating_status"`
// 负载均衡器的名称。
@@ -48,7 +48,7 @@ type LoadBalancer struct {
// 负载均衡器的IPv4虚拟IP地址。
VipAddress string `json:"vip_address"`
- // 负载均衡器的IPv4对应的port ID。[创建弹性负载均衡时,会自动为负载均衡创建一个port并关联一个默认的安全组,这个安全组对所有流量不生效。](tag:dt,dt_test,hcso_dt)
+ // 负载均衡器的IPv4对应的port ID。 [该port创建时关联默认安全组,这个安全组对所有流量不生效。](tag:dt,dt_test,hcso_dt)
VipPortId string `json:"vip_port_id"`
// 负载均衡的标签列表。
@@ -60,7 +60,7 @@ type LoadBalancer struct {
// 负载均衡器的更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z'
UpdatedAt string `json:"updated_at"`
- // 是否独享型LB,取值: - false:共享型。 - true:独享型。
+ // 是否独享型LB。 取值: - false:共享型。 - true:独享型。
Guaranteed bool `json:"guaranteed"`
// 负载均衡器所在VPC ID。
@@ -69,13 +69,13 @@ type LoadBalancer struct {
// 负载均衡器绑定的EIP。只支持绑定一个EIP。 注:该字段与publicips一致。
Eips []EipInfo `json:"eips"`
- // 双栈类型负载均衡器的IPv6地址。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器的IPv6地址。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipAddress string `json:"ipv6_vip_address"`
- // 双栈类型负载均衡器所在子网的IPv6网络ID。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器所在子网的IPv6网络ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipVirsubnetId string `json:"ipv6_vip_virsubnet_id"`
- // 双栈类型负载均衡器的IPv6对应的port ID。 [ 不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器的IPv6对应的port ID。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipPortId string `json:"ipv6_vip_port_id"`
// 负载均衡器所在的可用区列表。
@@ -84,6 +84,9 @@ type LoadBalancer struct {
// 企业项目ID。创建时不传则返回\"0\",表示资源属于default企业项目。 注:\"0\"并不是真实存在的企业项目ID,在创建、更新和查询时不能作为请求参数传入。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
EnterpriseProjectId string `json:"enterprise_project_id"`
+ // 资源账单信息。 取值: - 空:按需计费。 - 非空:包周期计费, 包周期计费billing_info字段的格式为:order_id:product_id:region_id:project_id,如: CS2107161019CDJZZ:OFFI569702121789763584: az:057ef081eb00d2732fd1c01a9be75e6f [不支持该字段,请勿使用](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs)
+ BillingInfo string `json:"billing_info"`
+
// 四层Flavor ID。 对于弹性扩缩容实例,表示上限规格。 [hsco场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:hcso)
L4FlavorId string `json:"l4_flavor_id"`
@@ -99,30 +102,33 @@ type LoadBalancer struct {
// 负载均衡器绑定的公网IP。只支持绑定一个公网IP。 注:该字段与eips一致。
Publicips []PublicIpInfo `json:"publicips"`
- // 负载均衡器绑定的global eip。只支持绑定一个global eip。
+ // 负载均衡器绑定的global eip。只支持绑定一个globaleip。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
GlobalEips []GlobalEipInfo `json:"global_eips"`
- // 下联面子网网络ID列表。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 [ 若不指定该字段,则会在当前负载均衡器所在的VPC中任意选一个子网,优选双栈网络。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 若指定多个下联面子网,则按顺序优先使用第一个子网来为负载均衡器下联面端口分配ip地址。 下联面子网必须属于该LB所在的VPC。
+ // 下联面子网的网络ID列表。
ElbVirsubnetIds []string `json:"elb_virsubnet_ids"`
// 下联面子网类型 - ipv4:ipv4 - dualstack:双栈
ElbVirsubnetType LoadBalancerElbVirsubnetType `json:"elb_virsubnet_type"`
- // 是否启用跨VPC后端转发。取值: - true:开启、 - false:不开启。 仅独享型负载均衡器支持该特性。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加其他VPC、其他公有云、云下数据中心的服务器。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt)
IpTargetEnable bool `json:"ip_target_enable"`
- // 负载均衡器的冻结场景。若负载均衡器有多个冻结场景,用逗号分隔。取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - RTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - REAR:欠费冻结场景。 [不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 负载均衡器的冻结场景。若负载均衡器有多个冻结场景,用逗号分隔。 取值: - POLICE:公安冻结场景。 - ILLEGAL:违规冻结场景。 - VERIFY:客户未实名认证冻结场景。 - PARTNER:合作伙伴冻结(合作伙伴冻结子客户资源)。 - REAR:欠费冻结场景。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt)
FrozenScene string `json:"frozen_scene"`
Ipv6Bandwidth *BandwidthRef `json:"ipv6_bandwidth"`
- // 是否开启删除保护,取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 仅当前局点启用删除保护特性后才会返回该字段。
+ // 是否开启删除保护。 取值: - false:不开启。 - true:开启。 >退场时需要先关闭所有资源的删除保护开关。 仅当前局点启用删除保护特性后才会返回该字段。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`
Autoscaling *AutoscalingRef `json:"autoscaling,omitempty"`
// LB所属AZ组
PublicBorderGroup *string `json:"public_border_group,omitempty"`
+
+ // WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
+ WafFailureAction *string `json:"waf_failure_action,omitempty"`
}
func (o LoadBalancer) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status.go
index 669076f1..6ab0d6b1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status.go
@@ -11,7 +11,7 @@ type LoadBalancerStatus struct {
// 负载均衡器名称。
Name string `json:"name"`
- // 负载均衡器的配置状态。取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
+ // 负载均衡器的配置状态。 取值: - ACTIVE:使用中。 - PENDING_DELETE:删除中。
ProvisioningStatus string `json:"provisioning_status"`
// 负载均衡器关联的监听器列表。
@@ -23,7 +23,7 @@ type LoadBalancerStatus struct {
// 负载均衡器ID。
Id string `json:"id"`
- // 负载均衡器的操作状态。取值: - ONLINE:创建时默认状态,表示负载均衡器正常运行。 - FROZEN:已冻结。 - DEGRADED:负载均衡器下存在member的operating_status为OFFLINE时返回这个状态。 - DISABLED:负载均衡器的admin_state_up属性值为false。 说明:DEGRADED和DISABLED状态仅在当前接口中返回,LB详情等其他接口不返回这两个状态值。
+ // 负载均衡器的操作状态。 取值: - ONLINE:创建时默认状态,表示负载均衡器正常运行。 - FROZEN:已冻结。 - DEGRADED:负载均衡器下存在member的operating_status为OFFLINE时返回这个状态。 - DISABLED:负载均衡器的admin_state_up属性值为false。 说明:DEGRADED和DISABLED状态仅在当前接口中返回,LB详情等其他接口不返回这两个状态值。
OperatingStatus string `json:"operating_status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_l7_rule.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_l7_rule.go
index c79e842a..b6a5925d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_l7_rule.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_l7_rule.go
@@ -12,10 +12,10 @@ type LoadBalancerStatusL7Rule struct {
// L7转发规则ID。
Id string `json:"id"`
- // 匹配内容类型,取值: - HOST_NAME:域名匹配。 - PATH:URL路径匹配。 使用说明: 同一个l7policy下创建的所有的l7rule的HOST_NAME不能重复。
+ // 匹配内容类型。 取值: - HOST_NAME:域名匹配。 - PATH:URL路径匹配。 使用说明: 同一个l7policy下创建的所有的l7rule的HOST_NAME不能重复。
Type string `json:"type"`
- // 转发规则的配置状态。 取值: - ACTIVE:使用中,默认值。 - ERROR:当前规则所属策略与同一监听器下的其他策略存在相同的规则配置。
+ // 转发规则的配置状态。 取值: - ACTIVE:使用中,默认值。 - ERROR:当前规则所属策略与同一监听器下的其他策略存在相同的规则配置。
ProvisioningStatus string `json:"provisioning_status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_listener.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_listener.go
index a2a73066..277e8673 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_listener.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_listener.go
@@ -12,7 +12,7 @@ type LoadBalancerStatusListener struct {
// 监听器的名称。
Name *string `json:"name,omitempty"`
- // 监听器的配置状态。取值: - ACTIVE:使用中。
+ // 监听器的配置状态。 取值: - ACTIVE:使用中。
ProvisioningStatus *string `json:"provisioning_status,omitempty"`
// 监听器下的后端主机组操作状态。
@@ -24,7 +24,7 @@ type LoadBalancerStatusListener struct {
// 监听器ID。
Id *string `json:"id,omitempty"`
- // 监听器的操作状态。取值: - ONLINE:创建时默认状态,表示监听器正常运行。 - DEGRADED: -该监听器下存在l7policy或l7rule的Provisioning_status=ERROR时返回这个状态。 -状态树该监听器下存在member的operating_status=OFFLINE。 - DISABLED:负载均衡器或监听器的admin_state_up=false。 说明: DEGRADED和DISABLED状态仅在当前接口返回,查询监听器详情等其他接口返回字段operating_status不存在这两个状态值。
+ // 监听器的操作状态。 取值: - ONLINE:创建时默认状态,表示监听器正常运行。 - DEGRADED:该监听器下存在l7policy或l7rule的Provisioning_status=ERROR时返回这个状态。 或者状态树该监听器下存在member的operating_status=OFFLINE。 - DISABLED:负载均衡器或监听器的admin_state_up=false。 说明: DEGRADED和DISABLED状态仅在当前接口返回,查询监听器详情等其他接口返回字段operating_status不存在这两个状态值。
OperatingStatus *string `json:"operating_status,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_member.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_member.go
index 5c69377d..6889dab9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_member.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_member.go
@@ -21,7 +21,7 @@ type LoadBalancerStatusMember struct {
// 后端服务器ID。
Id *string `json:"id,omitempty"`
- // 后端服务器的操作状态。取值: - ONLINE:后端服务器正常运行。 - NO_MONITOR:后端服务器健康检查未开启。 - DISABLED:后端服务器不可用。所属负载均衡器或后端服务器组或该后端服务器的admin_state_up=flase时,会出现该状态。注意该状态仅在当前接口中返回。 - OFFLINE:关联ECS已下线。
+ // 后端服务器的操作状态。 取值: - ONLINE:后端服务器正常运行。 - NO_MONITOR:后端服务器健康检查未开启。 - DISABLED:后端服务器不可用。所属负载均衡器或后端服务器组或该后端服务器的admin_state_up=flase时, 会出现该状态。注意该状态仅在当前接口中返回。 - OFFLINE:关联ECS已下线。
OperatingStatus *string `json:"operating_status,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_policy.go
index 84f2e577..f0a3d419 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_policy.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_policy.go
@@ -9,13 +9,13 @@ import (
// LB状态树的转发策略状态信息
type LoadBalancerStatusPolicy struct {
- // 匹配后动作。取值: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:转发到监听器。
+ // 匹配后动作。 取值: - REDIRECT_TO_POOL:转发到后端服务器组。 - REDIRECT_TO_LISTENER:转发到监听器。
Action *string `json:"action,omitempty"`
// 转发策略ID。
Id *string `json:"id,omitempty"`
- // 转发策略的配置状态。取值: - ACTIVE:使用中,默认值。 - ERROR:表示当前策略与同一监听器下的其他策略存在相同的规则配置。
+ // 转发策略的配置状态。 取值范围: - ACTIVE: 默认值,表示正常。 [- ERROR: 表示当前策略与同一监听器下的其他策略存在相同的规则配置。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs)
ProvisioningStatus *string `json:"provisioning_status,omitempty"`
// 转发策略名称。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_pool.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_pool.go
index fd66e2ba..9823e07b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_pool.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_load_balancer_status_pool.go
@@ -9,7 +9,7 @@ import (
// LB状态树的后端服务器组状态信息。
type LoadBalancerStatusPool struct {
- // 后端服务器组的配置状态。取值: - ACTIVE:使用中。
+ // 后端服务器组的配置状态。 取值: - ACTIVE:使用中。
ProvisioningStatus *string `json:"provisioning_status,omitempty"`
// 后端服务器组名。
@@ -23,7 +23,7 @@ type LoadBalancerStatusPool struct {
// 后端服务器组ID。
Id *string `json:"id,omitempty"`
- // 后端服务器组的操作状态。取值: - ONLINE:创建时默认状态,表后端服务器组正常。 - DEGRADED:该后端服务器组下存在member为的operating_status=OFFLINE。 - DISABLED:负载均衡器或后端服务器组的admin_state_up=false。 说明: DEGRADED和DISABLED仅在当前接口返回,查询后端服务器组详情等其他接口返回的operating_status字段不存在这两个状态值。
+ // 后端服务器组的操作状态。 取值: - ONLINE:创建时默认状态,表后端服务器组正常。 - DEGRADED:该后端服务器组下存在member为的operating_status=OFFLINE。 - DISABLED:负载均衡器或后端服务器组的admin_state_up=false。 说明: DEGRADED和DISABLED仅在当前接口返回, 查询后端服务器组详情等其他接口返回的operating_status字段不存在这两个状态值。
OperatingStatus *string `json:"operating_status,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_health_monitor.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_health_monitor.go
deleted file mode 100644
index 9e8a32f9..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_health_monitor.go
+++ /dev/null
@@ -1,59 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 健康检查对象
-type MasterSlaveHealthMonitor struct {
-
- // 健康检查的管理状态。取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
- AdminStateUp bool `json:"admin_state_up"`
-
- // 健康检查间隔。取值:1-50s。
- Delay int32 `json:"delay"`
-
- // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
- DomainName string `json:"domain_name"`
-
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
- ExpectedCodes string `json:"expected_codes"`
-
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
- HttpMethod string `json:"http_method"`
-
- // 健康检查ID
- Id string `json:"id"`
-
- // 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
- MaxRetries int32 `json:"max_retries"`
-
- // 健康检查连续失败多少次后,将后端服务器的健康检查状态由ONLINE判定为OFFLINE。取值范围:1-10,默认3。
- MaxRetriesDown int32 `json:"max_retries_down"`
-
- // 健康检查端口号。取值:1-65535,默认为空,表示使用后端云服务器端口号。
- MonitorPort int32 `json:"monitor_port"`
-
- // 健康检查名称。
- Name string `json:"name"`
-
- // 一次健康检查请求的超时时间。 建议该值小于delay的值。
- Timeout int32 `json:"timeout"`
-
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。
- Type string `json:"type"`
-
- // 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 使用说明:当type为HTTP/HTTPS时生效。
- UrlPath string `json:"url_path"`
-}
-
-func (o MasterSlaveHealthMonitor) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "MasterSlaveHealthMonitor struct{}"
- }
-
- return strings.Join([]string{"MasterSlaveHealthMonitor", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_member.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_member.go
deleted file mode 100644
index 6b228217..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_member.go
+++ /dev/null
@@ -1,62 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 后端服务器信息。
-type MasterSlaveMember struct {
-
- // 后端服务器ID。
- Id string `json:"id"`
-
- // 后端服务器名称。
- Name string `json:"name"`
-
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
- AdminStateUp bool `json:"admin_state_up"`
-
- // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
- SubnetCidrId string `json:"subnet_cidr_id"`
-
- // 后端服务器业务端口号。
- ProtocolPort int32 `json:"protocol_port"`
-
- // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
- Address string `json:"address"`
-
- // 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。
- IpVersion string `json:"ip_version"`
-
- // 设备所有者,取值: - 空,表示后端服务器未关联到ECS。 - compute:{az_name},表示关联到ECS,其中{az_name}表示ECS所在可用区名。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
- DeviceOwner string `json:"device_owner"`
-
- // 关联的ECS ID,为空表示后端服务器未关联到ECS。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
- DeviceId string `json:"device_id"`
-
- // 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
- OperatingStatus string `json:"operating_status"`
-
- // 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
- MemberType string `json:"member_type"`
-
- // member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景)
- InstanceId string `json:"instance_id"`
-
- // 后端服务器的主备状态。
- Role string `json:"role"`
-
- // 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_status为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
- Status []ListenerMemberInfo `json:"status"`
-}
-
-func (o MasterSlaveMember) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "MasterSlaveMember struct{}"
- }
-
- return strings.Join([]string{"MasterSlaveMember", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_pool.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_pool.go
deleted file mode 100644
index ce1d083f..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_master_slave_pool.go
+++ /dev/null
@@ -1,69 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 创建云服务器组请求返回对象
-type MasterSlavePool struct {
-
- // 后端云服务器组的描述信息。
- Description string `json:"description"`
-
- // 后端云服务器组的ID。
- Id string `json:"id"`
-
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。
- LbAlgorithm string `json:"lb_algorithm"`
-
- // 后端云服务器组关联的监听器ID列表。
- Listeners []ListenerRef `json:"listeners"`
-
- // 后端云服务器组关联的负载均衡器ID列表。
- Loadbalancers []LoadBalancerRef `json:"loadbalancers"`
-
- // 后端云服务器组中的后端云服务器列表。
- Members []MasterSlaveMember `json:"members"`
-
- // 后端云服务器组的名称。
- Name string `json:"name"`
-
- // 后端云服务器组所在的项目ID。
- ProjectId string `json:"project_id"`
-
- // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。
- Protocol string `json:"protocol"`
-
- SessionPersistence *SessionPersistence `json:"session_persistence"`
-
- // 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
- IpVersion string `json:"ip_version"`
-
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
- CreatedAt string `json:"created_at"`
-
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
- UpdatedAt string `json:"updated_at"`
-
- // 后端云服务器组关联的虚拟私有云的ID。
- VpcId string `json:"vpc_id"`
-
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
- Type string `json:"type"`
-
- // 后端服务器组的企业项目ID。无论创建什么企业项目,都在默认企业项目下。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
- EnterpriseProjectId string `json:"enterprise_project_id"`
-
- Healthmonitor *MasterSlaveHealthMonitor `json:"healthmonitor"`
-}
-
-func (o MasterSlavePool) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "MasterSlavePool struct{}"
- }
-
- return strings.Join([]string{"MasterSlavePool", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member.go
index 8fdb4a2a..64b5ad09 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member.go
@@ -18,52 +18,52 @@ type Member struct {
// 后端服务器所在的项目ID。
ProjectId string `json:"project_id"`
- // 所在后端服务器组ID。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
+ // 所在后端服务器组ID。 不支持该字段,请勿使用。
PoolId *string `json:"pool_id,omitempty"`
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
+ // 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
AdminStateUp bool `json:"admin_state_up"`
- // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
+ // 后端云服务器所在子网的IPv4子网ID或IPv6子网ID。 若所属的LB的跨VPC后端转发特性已开启,则该字段可以不传,表示添加跨VPC的后端服务器。 此时address必须为IPv4地址,所在的pool的协议必须为TCP/HTTP/HTTPS。 使用说明:该子网和关联的负载均衡器的子网必须在同一VPC下。 [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
SubnetCidrId *string `json:"subnet_cidr_id,omitempty"`
// 后端服务器业务端口号。
ProtocolPort int32 `json:"protocol_port"`
- // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
Weight int32 `json:"weight"`
- // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是IPv4或IPv6。 但必须在subnet_cidr_id对应的子网网段中。且只能指定为关联ECS的主网卡IP。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Address string `json:"address"`
// 当前后端服务器的IP地址版本,由后端系统自动根据传入的address字段确定。取值:v4、v6。
IpVersion string `json:"ip_version"`
- // 设备所有者,取值: - 空,表示后端服务器未关联到ECS。 - compute:{az_name},表示关联到ECS,其中{az_name}表示ECS所在可用区名。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
+ // 设备所有者。 取值: - 空,表示后端服务器未关联到ECS。 - compute:{az_name},表示关联到ECS,其中{az_name}表示ECS所在可用区名。 不支持该字段,请勿使用。
DeviceOwner *string `json:"device_owner,omitempty"`
- // 关联的ECS ID,为空表示后端服务器未关联到ECS。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
+ // 关联的ECS ID,为空表示后端服务器未关联到ECS。 不支持该字段,请勿使用。
DeviceId *string `json:"device_id,omitempty"`
- // 后端云服务器的健康状态。取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
+ // 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
OperatingStatus string `json:"operating_status"`
// 后端云服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
Status []MemberStatus `json:"status"`
- // 所属负载均衡器ID。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
+ // 所属负载均衡器ID。 不支持该字段,请勿使用。
LoadbalancerId *string `json:"loadbalancer_id,omitempty"`
- // 后端云服务器关联的负载均衡器ID列表。 注意:该字段当前仅GET /v3/{project_id}/elb/members 接口可见。
+ // 后端云服务器关联的负载均衡器ID列表。 不支持该字段,请勿使用。
Loadbalancers *[]ResourceId `json:"loadbalancers,omitempty"`
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
CreatedAt *string `json:"created_at,omitempty"`
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
UpdatedAt *string `json:"updated_at,omitempty"`
- // 后端云服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
+ // 后端云服务器的类型。 取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
MemberType *string `json:"member_type,omitempty"`
// member关联的实例ID。空表示member关联的实例为非真实设备 (如:跨VPC场景)
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member_status.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member_status.go
index 1217baef..2c6d56b0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member_status.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_member_status.go
@@ -12,7 +12,7 @@ type MemberStatus struct {
// 监听器ID
ListenerId string `json:"listener_id"`
- // 后端云服务器的健康状态。取值: ONLINE:后端云服务器正常。 NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
+ // 后端云服务器的健康状态。 取值: - ONLINE:后端云服务器正常。 - NO_MONITOR:后端云服务器所在的服务器组没有健康检查器。 - OFFLINE:后端云服务器关联的ECS服务器不存在或已关机。
OperatingStatus string `json:"operating_status"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_pool.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_pool.go
index 6fdcd1dd..c8a9b2fa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_pool.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_pool.go
@@ -21,7 +21,7 @@ type Pool struct {
// 后端云服务器组的ID。
Id string `json:"id"`
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。
+ // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
LbAlgorithm string `json:"lb_algorithm"`
// 后端云服务器组关联的监听器ID列表。
@@ -39,29 +39,29 @@ type Pool struct {
// 后端云服务器组所在的项目ID。
ProjectId string `json:"project_id"`
- // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。
+ // 后端云服务器组的后端协议。 取值:TCP、UDP、HTTP、HTTPS和QUIC。 使用说明: - listener的protocol为UDP时,pool的protocol必须为UDP或QUIC; - listener的protocol为TCP时pool的protocol必须为TCP; - listener的protocol为HTTP时,pool的protocol必须为HTTP。 - listener的protocol为HTTPS时,pool的protocol必须为HTTP或HTTPS。 - listener的protocol为TERMINATED_HTTPS时,pool的protocol必须为HTTP。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
Protocol string `json:"protocol"`
SessionPersistence *SessionPersistence `json:"session_persistence"`
- // 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
+ // 后端云服务器组支持的IP版本。 [取值: - 共享型:固定为v4; - 独享型:取值dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) [取值:dualstack、v4、v6。当协议为TCP/UDP时,ip_version为dualstack,表示双栈。 当协议为HTTP时,ip_version为v4。](tag:hcso_dt) [不支持IPv6,只会返回v4。](tag:dt,dt_test)
IpVersion string `json:"ip_version"`
SlowStart *SlowStart `json:"slow_start"`
- // 是否开启误删保护。取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。
+ // 是否开启误删保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
MemberDeletionProtectionEnable bool `json:"member_deletion_protection_enable"`
- // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
CreatedAt *string `json:"created_at,omitempty"`
- // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。
+ // 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm)
UpdatedAt *string `json:"updated_at,omitempty"`
// 后端云服务器组关联的虚拟私有云的ID。
VpcId string `json:"vpc_id"`
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串:允许任意类型的后端
+ // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端
Type string `json:"type"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_create_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_create_option.go
index cba83598..f53d9625 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_create_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_create_option.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-// 创建负载均衡器的包周期信息,若传入该结构体,则创建包周期的LB
+// 创建负载均衡器的包周期信息,若传入该结构体,则创建包周期的LB。 [不支持该字段,请勿使用](tag:dt,dt_test,hcso_dt)
type PrepaidCreateOption struct {
// 订购周期类型,当前支持包月和包年: month:月; year:年;
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_update_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_update_option.go
index 07eb0468..64e07e7a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_update_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_prepaid_update_option.go
@@ -18,9 +18,6 @@ type PrepaidUpdateOption struct {
// 规格变更类型: immediate:即时变更,规格变更立即生效。(默认) delay:续费变更,当前周期结束后变更为目标规格。
ChangeMode *PrepaidUpdateOptionChangeMode `json:"change_mode,omitempty"`
- // 云服务引导URL。 订购订单支付完成后,支付成功的页面嵌入该url的内容。 console传,用户侧api文档不可见该字段。
- CloudServiceConsoleUrl *string `json:"cloud_service_console_url,omitempty"`
-
// 订购周期数(默认1),取值会随运营策略变化。(仅在change_mode为delay时生效) period_type为month时,为[1,9], period_type为year时,为[1,3]
PeriodNum *int32 `json:"period_num,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota.go
index e51bf8ca..4c5e7fa1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota.go
@@ -12,35 +12,41 @@ type Quota struct {
// 项目ID。
ProjectId string `json:"project_id"`
- // 负载均衡器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 负载均衡器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Loadbalancer int32 `json:"loadbalancer"`
- // 证书配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 证书配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Certificate int32 `json:"certificate"`
- // 监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 监听器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Listener int32 `json:"listener"`
- // 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 转发策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
L7policy int32 `json:"l7policy"`
- // 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 后端云服务器组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Pool int32 `json:"pool"`
- // 健康检查配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 健康检查配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Healthmonitor int32 `json:"healthmonitor"`
- // 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 后端云服务器配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
Member int32 `json:"member"`
- // 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 单个pool下的member的配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
MembersPerPool int32 `json:"members_per_pool"`
- // IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // IP地址组配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
Ipgroup int32 `json:"ipgroup"`
- // 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 自定义安全策略配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
SecurityPolicy int32 `json:"security_policy"`
+
+ // ipgroup最大可关联的监听器数量。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
+ IpgroupBindings string `json:"ipgroup_bindings"`
+
+ // 单个ipgroup最多可设置的ip地址数量。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。 [不支持该字段,请勿使用。](tag:hcso_dt)
+ IpgroupMaxLength string `json:"ipgroup_max_length"`
}
func (o Quota) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota_info.go
index 18b2a3f1..725a036f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_quota_info.go
@@ -9,16 +9,16 @@ import (
// 配额信息,包括总配额和已使用配额。
type QuotaInfo struct {
- // 资源类型。 取值:loadbalancer、listener、ipgroup、pool、member、members_per_pool、healthmonitor、l7policy、certificate、security_policy,其中members_per_pool表示一个pool下最多可关联的member数量。
+ // 资源类型。 取值: loadbalancer、listener、ipgroup、pool、member、members_per_pool、 healthmonitor、l7policy、certificate、security_policy、 ipgroup_bindings、ipgroup_max_length。 members_per_pool表示一个pool下最多可关联的member数量。 ipgroup_bindings表示一个ipgroup下最多可关联的listener数量。 ipgroup_max_length表示一个ipgroup下最多设置的ip地址数量。
QuotaKey string `json:"quota_key"`
- // 总配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
+ // 总配额。 取值: - 大于等于0:表示当前配额数量。 - -1:表示无配额限制。
QuotaLimit int32 `json:"quota_limit"`
// 已使用配额。
Used int32 `json:"used"`
- // 配额单位。 取值:count,表示个数。
+ // 配额单位。 取值:count,表示个数。
Unit string `json:"unit"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_redirect_url_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_redirect_url_config.go
index 1cbd2128..3ef9bd19 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_redirect_url_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_redirect_url_config.go
@@ -9,13 +9,13 @@ import (
"strings"
)
-// 转发到的url配置。 共享型负载均衡器下的转发策略不支持该字段,传入会报错。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 [当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx}(${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type RedirectUrlConfig struct {
- // 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
+ // 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值: - HTTP - HTTPS - ${protocol}
Protocol RedirectUrlConfigProtocol `json:"protocol"`
- // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
+ // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”。 且必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
Host string `json:"host"`
// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
@@ -24,7 +24,7 @@ type RedirectUrlConfig struct {
// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 支持英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。
Path string `json:"path"`
- // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL(如https://www.xxx.com:8080/elb?type=loadbalancer,此时${query}表示type=loadbalancer)时,将会重定向到https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
+ // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
Query string `json:"query"`
// 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_rule_condition.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_rule_condition.go
index cd01c640..dcd28d27 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_rule_condition.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_rule_condition.go
@@ -9,10 +9,10 @@ import (
//
type RuleCondition struct {
- // 匹配项的名称。[该字段固定为空字符串](tag:dt,dt_test) [当type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。key的长度限制1-40字符,只允许包含字母、数字和-_。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。
Key string `json:"key"`
- // 匹配项的值。 当type为HOST_NAME时,key固定为空字符串,value表示域名的值。value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当type为PATH时,key固定为空字符串,value表示请求路径的值。value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。value长度限制1-128字符,不支持空格,双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS。 当type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。value为CIDR格式,支持ipv4,ipv6。 例如192.168.0.2/32,2049::49/64。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。
Value string `json:"value"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_session_persistence.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_session_persistence.go
index da920f58..5f547fb4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_session_persistence.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_session_persistence.go
@@ -9,13 +9,13 @@ import (
// 会话持久性对象。
type SessionPersistence struct {
- // cookie名称。 格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 [使用说明: - 只有当type为APP_COOKIE时才有效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [不支持该字段,请勿使用。](tag:hcso_dt)
+ // cookie名称。 格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
CookieName *string `json:"cookie_name,omitempty"`
- // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hcso_dt)
+ // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt)
Type string `json:"type"`
- // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1;如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。
+ // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt)
PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_request.go
deleted file mode 100644
index c220cbd5..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_request.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Request Object
-type ShowMasterSlavePoolRequest struct {
-
- // 后端服务器组ID。
- PoolId string `json:"pool_id"`
-}
-
-func (o ShowMasterSlavePoolRequest) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ShowMasterSlavePoolRequest struct{}"
- }
-
- return strings.Join([]string{"ShowMasterSlavePoolRequest", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_response.go
deleted file mode 100644
index 1e5e4815..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_show_master_slave_pool_response.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// Response Object
-type ShowMasterSlavePoolResponse struct {
-
- // 请求ID。 注:自动生成 。
- RequestId *string `json:"request_id,omitempty"`
-
- Pool *MasterSlavePool `json:"pool,omitempty"`
- HttpStatusCode int `json:"-"`
-}
-
-func (o ShowMasterSlavePoolResponse) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ShowMasterSlavePoolResponse struct{}"
- }
-
- return strings.Join([]string{"ShowMasterSlavePoolResponse", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_slow_start.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_slow_start.go
index ea7fbb06..52da0757 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_slow_start.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_slow_start.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [ 不支持该字段,请勿使用。](tags:otc,otc_test)
+// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)
type SlowStart struct {
// 慢启动的开关,默认值:false; true:开启; false:关闭
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_upadate_ip_group_ip_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_upadate_ip_group_ip_option.go
index a7e6328a..dae973d5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_upadate_ip_group_ip_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_upadate_ip_group_ip_option.go
@@ -9,7 +9,7 @@ import (
// IP地址更新参数。
type UpadateIpGroupIpOption struct {
- // IP地址。支持IPv4、IPv6。 [ 不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
+ // IP地址。支持IPv4、IPv6。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
Ip string `json:"ip"`
// 备注信息。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_certificate_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_certificate_option.go
index f2c4b634..84644ebe 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_certificate_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_certificate_option.go
@@ -20,8 +20,14 @@ type UpdateCertificateOption struct {
// 服务器证书的私钥。PEM编码格式。 当type为client时,该参数被忽略,不影响证书的创建和使用。且若不符合格式,不报错但会被设置为空。 当type为server时,该字段必须符合格式要求,且私钥必须是有效的。 最大长度8192字符。
PrivateKey *string `json:"private_key,omitempty"`
- // 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符,只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
+ // 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-1024,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过30个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com; 泛域名:在普通域名的基础上仅允许首字母为\"*\"。例:*.test.com
Domain *string `json:"domain,omitempty"`
+
+ // HTTPS协议使用的SM加密证书内容。支持证书链,最大11层(含证书和证书链)。 取值:PEM编码格式。最大长度65536字符。 使用说明:仅type为server_sm时有效。
+ EncCertificate *string `json:"enc_certificate,omitempty"`
+
+ // HTTPS协议使用的SM加密证书内容。 取值:PEM编码格式。最大长度8192字符。 使用说明:仅type为server_sm时有效。
+ EncPrivateKey *string `json:"enc_private_key,omitempty"`
}
func (o UpdateCertificateOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_fixted_response_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_fixted_response_config.go
index 1eccbe09..b15b86f8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_fixted_response_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_fixted_response_config.go
@@ -9,7 +9,7 @@ import (
"strings"
)
-// 固定返回页面的配置。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段,传入会报错。 [当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [ 不支持该字段,请勿使用。](tags:otc,otc_test)
+// 固定返回页面的配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为FIXED_RESPONSE时生效,且为必选字段,其他action不可指定,否则报错。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type UpdateFixtedResponseConfig struct {
// 返回码。支持200~299,400~499,500~599。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_health_monitor_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_health_monitor_option.go
index 493da1c9..064011f5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_health_monitor_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_health_monitor_option.go
@@ -12,19 +12,19 @@ import (
// 更新健康检查请求参数。
type UpdateHealthMonitorOption struct {
- // 健康检查的管理状态。取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
+ // 健康检查的管理状态。 取值: - true:表示开启健康检查,默认为true。 - false表示关闭健康检查。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 健康检查间隔。健康检查间隔。取值:1-50s。
Delay *int32 `json:"delay,omitempty"`
- // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
+ // 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 不能传空,但可传null或不传,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
DomainName *string `json:"domain_name,omitempty"`
- // 期望响应状态码。取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
+ // 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS设置该字段,其他协议设置不会生效。
ExpectedCodes *string `json:"expected_codes,omitempty"`
- // HTTP请求方法,取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
+ // HTTP请求方法。 取值:GET、HEAD、POST、PUT、DELETE、TRACE、OPTIONS、CONNECT、PATCH,默认GET。 使用说明:当type为HTTP/HTTPS时生效。 不支持该字段,请勿使用。
HttpMethod *UpdateHealthMonitorOptionHttpMethod `json:"http_method,omitempty"`
// 健康检查连续成功多少次后,将后端服务器的健康检查状态由OFFLINE判定为ONLINE。取值范围:1-10。
@@ -45,7 +45,7 @@ type UpdateHealthMonitorOption struct {
// 健康检查请求的请求路径。以\"/\"开头,默认为\"/\"。 使用说明:当type为HTTP/HTTPS时生效。
UrlPath *string `json:"url_path,omitempty"`
- // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。
+ // 健康检查请求协议。 取值:TCP、UDP_CONNECT、HTTP、HTTPS。 使用说明: - 若pool的protocol为QUIC,则type只能是UDP_CONNECT。 - 若pool的protocol为UDP,则type只能UDP_CONNECT。 - 若pool的protocol为TCP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTP,则type可以是TCP、HTTP、HTTPS。 - 若pool的protocol为HTTPS,则type可以是TCP、HTTP、HTTPS。 [荷兰region不支持QUIC。](tag:dt)
Type *string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_policy_option.go
index 5c83dfb4..57c86fdf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_policy_option.go
@@ -21,20 +21,20 @@ type UpdateL7PolicyOption struct {
// 转发到的listener的ID。 使用说明: - 当action为REDIRECT_TO_LISTENER时不能更新为空或null。 - 只支持protocol为HTTPS/TERMINATED_HTTPS的listener。 - 不能指定为其他loadbalancer下的listener。 - 当action为REDIRECT_TO_POOL时,创建或更新时不能传入该参数。
RedirectListenerId *string `json:"redirect_listener_id,omitempty"`
- // 转发到pool的ID。 使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。当action为REDIRECT_TO_LISTENER时,不可指定。
+ // 转发到pool的ID。 使用说明: - 指定的pool不能是listener的default_pool。不能是其他listener的l7policy使用的pool。 - 当action为REDIRECT_TO_POOL时为必选字段,不能更新为空或null。 当action为REDIRECT_TO_LISTENER时,不可指定。
RedirectPoolId *string `json:"redirect_pool_id,omitempty"`
RedirectUrlConfig *UpdateRedirectUrlConfig `json:"redirect_url_config,omitempty"`
FixedResponseConfig *UpdateFixtedResponseConfig `json:"fixed_response_config,omitempty"`
- // 转发策略关联的转发规则对象。详细参考表 l7rule字段说明。rules列表中最多含有10个rule规则(若rule中包含conditions字段,一条condition算一个规则),且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。
+ // 转发策略关联的转发规则对象。 详细参考表l7rule字段说明。rules列表中最多含有10个rule规则 (若rule中包含conditions字段,一条condition算一个规则), 且列表中type为HOST_NAME,PATH,METHOD,SOURCE_IP的rule不能重复,至多指定一条。
Rules *[]CreateRuleOption `json:"rules,omitempty"`
- // 转发策略的优先级。共享型实例该字段无意义。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。共享型负载均衡器下的转发策略不支持该字段。 数字越小表示优先级越高,同一监听器下不允许重复。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。各域名之间优先级独立,相同域名下,按path的compare_type排序,精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段,则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。若监听器下没有转发策略,则新建的转发策略的优先级为1。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 转发策略的优先级。数字越小表示优先级越高,同一监听器下不允许重复。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_LISTENER时,仅支持指定为0,优先级最高。 当关联的listener没有开启enhance_l7policy_enable,按原有policy的排序逻辑,自动排序。 各域名之间优先级独立,相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 当关联的listener开启了enhance_l7policy_enable,且不传该字段, 则新创建的转发策略的优先级的值为:同一监听器下已有转发策略的优先级的最大值+1。 因此,若当前已有转发策略的优先级的最大值是10000,新创建会因超出取值范围10000而失败。 此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 若监听器下没有转发策略,则新建的转发策略的优先级为1。 [共享型负载均衡器下的转发策略不支持该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt,hk_tm) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Priority *int32 `json:"priority,omitempty"`
- // 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。 使用说明: 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config必须指定一个,两个都指定时按redirect_pools_config生效。 当action为REDIRECT_TO_LISTENER时,不可指定。 只支持全量覆盖。
+ // 转发到的后端主机组的配置。当action为REDIRECT_TO_POOL时生效。 使用说明: - 当action为REDIRECT_TO_POOL时redirect_pool_id和redirect_pools_config 必须指定一个,两个都指定时按redirect_pools_config生效。 - 当action为REDIRECT_TO_LISTENER时,不可指定。 只支持全量覆盖。
RedirectPoolsConfig *[]CreateRedirectPoolsConfig `json:"redirect_pools_config,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_rule_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_rule_option.go
index 8edaaf6d..ed433da7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_rule_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_l7_rule_option.go
@@ -12,19 +12,19 @@ type UpdateL7RuleOption struct {
// 转发规则的管理状态,默认为true。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 转发匹配方式。取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 [- type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 转发匹配方式。 取值: - EQUAL_TO 表示精确匹配。 - REGEX 表示正则匹配。 - STARTS_WITH 表示前缀匹配。 使用说明: - type为HOST_NAME时仅支持EQUAL_TO,支持通配符*。 - type为PATH时可以为REGEX,STARTS_WITH,EQUAL_TO。 - type为METHOD、SOURCE_IP时,仅支持EQUAL_TO。 - type为HEADER、QUERY_STRING,仅支持EQUAL_TO,支持通配符*、?。
CompareType *string `json:"compare_type,omitempty"`
- // 是否反向匹配。取值:true、false。 不支持该字段,请勿使用。
+ // 是否反向匹配。 取值:true、false。 不支持该字段,请勿使用。
Invert *bool `json:"invert,omitempty"`
// 匹配项的名称,比如转发规则匹配类型是请求头匹配,则key表示请求头参数的名称。 不支持该字段,请勿使用。
Key *string `json:"key,omitempty"`
- // 匹配项的值,比如转发规则匹配类型是域名匹配,则value表示域名的值。[仅当conditions空时该字段生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 当type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时,该字段无意义,使用conditions来指定key/value。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。比如转发规则匹配类型是域名匹配,则value表示域名的值。仅当conditions空时该字段生效。 当转发规则类别type为HOST_NAME时,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头。 若域名中包含“*”,则“*”只能出现在开头且必须以*.开始。当*开头时表示通配0~任一个字符。 当转发规则类别type为PATH时,当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为METHOD、SOURCE_IP、HEADER,QUERY_STRING时, 该字段无意义,使用conditions来指定key/value。
Value *string `json:"value,omitempty"`
- // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 配置了conditions后,字段key、字段value的值无意义。 若指定了conditons,该rule的条件数为conditons列表长度。 列表中key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
+ // 转发规则的匹配条件。当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效。 若转发规则配置了conditions,字段key、字段value的值无意义。 同一个rule内的conditions列表中所有key必须相同,value不允许重复。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
Conditions *[]UpdateRuleCondition `json:"conditions,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_option.go
index 3efabf9b..7490b10f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_option.go
@@ -12,7 +12,7 @@ type UpdateListenerOption struct {
// 监听器的管理状态。只能设置为true。 不支持该字段,请勿使用。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
- // 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。
+ // 监听器使用的CA证书ID。当且仅当type=client时,才会使用该字段对应的证书。 监听器协议为QUIC时不支持该字段。 [荷兰region不支持QUIC。](tag:dt)
ClientCaTlsContainerRef *string `json:"client_ca_tls_container_ref,omitempty"`
// 监听器的默认后端云服务器组ID。当请求没有匹配的转发策略时,转发到默认后端云服务器上处理。
@@ -24,7 +24,7 @@ type UpdateListenerOption struct {
// 监听器的描述信息。
Description *string `json:"description,omitempty"`
- // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 非HTTPS协议的监听器该字段无效,无论取值如何都不影响监听器正常运行。
+ // 客户端与LB之间的HTTPS请求的HTTP2功能的开启状态。 开启后,可提升客户端与LB间的访问性能,但LB与后端服务器间仍采用HTTP1.X协议。 使用说明: - 仅HTTPS协议监听器有效。 - QUIC监听器不能设置该字段,固定返回为true。 - 其他协议的监听器可设置该字段但无效,无论取值如何都不影响监听器正常运行。 [荷兰region不支持QUIC。](tag:dt)
Http2Enable *bool `json:"http2_enable,omitempty"`
InsertHeaders *ListenerInsertHeaders `json:"insert_headers,omitempty"`
@@ -35,30 +35,33 @@ type UpdateListenerOption struct {
// 监听器使用的SNI证书(带域名的服务器证书)ID列表。 使用说明: - 列表对应的所有SNI证书的域名不允许存在重复。 - 列表对应的所有SNI证书的域名总数不超过30。
SniContainerRefs *[]string `json:"sni_container_refs,omitempty"`
- // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:dt,dt_test,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 监听器使用的SNI证书泛域名匹配方式。 longest_suffix表示最长尾缀匹配,wildcard表示标准域名分级匹配。 默认为wildcard。
+ SniMatchAlgo *string `json:"sni_match_algo,omitempty"`
+
+ // 监听器使用的安全策略。 [取值:tls-1-0-inherit,tls-1-0, tls-1-1, tls-1-2,tls-1-2-strict,tls-1-2-fs,tls-1-0-with-1-3, tls-1-2-fs-with-1-3, hybrid-policy-1-0,默认:tls-1-0。 ](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,tm,cmcc,dt) [取值:tls-1-0, tls-1-1, tls-1-2, tls-1-2-strict,默认:tls-1-0。](tag:hws_eu,g42,hk_g42,hcso_dt) [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42) [荷兰region不支持QUIC。](tag:dt)
TlsCiphersPolicy *string `json:"tls_ciphers_policy,omitempty"`
- // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - QUIC监听器不支持该字段。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa)](tag:hws,hws_hk,ocb,tlf,ctc,hcso,sbc,g42,tm,cmcc,hk-g42,dt,dt_test) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt)
+ // 自定义安全策略的ID。 [使用说明: - 仅对HTTPS协议类型的监听器且关联LB为独享型时有效。 - 若同时设置了security_policy_id和tls_ciphers_policy,则仅security_policy_id生效。 - 加密套件的优先顺序为ecc套件、rsa套件、tls1.3协议的套件(即支持ecc又支持rsa) ](tag:hws,hws_hk,hws_eu,ocb,ctc,hcso,g42,tm,cmcc,hk-g42,dt) [使用说明: - 仅对HTTPS协议类型的监听器有效](tag:hcso_dt) [不支持tls1.3协议的套件。](tag:hws_eu,g42,hk_g42)
SecurityPolicyId *string `json:"security_policy_id,omitempty"`
- // 是否开启后端服务器的重试。取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。](tag:hcso_dt)
+ // 是否开启后端服务器的重试。 取值:true 开启重试,false 不开启重试。默认:true。 [使用说明: - 若关联是共享型LB,仅在protocol为HTTP、TERMINATED_HTTPS时才能传入该字段。 - 若关联是独享型LB,仅在protocol为HTTP、HTTPS和QUIC时才能传入该字段。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 仅在protocol为HTTP、HTTPS时才能传入该字段。](tag:hws_eu,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
EnableMemberRetry *bool `json:"enable_member_retry,omitempty"`
- // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
+ // 等待后端服务器响应超时时间。请求转发后端服务器后,在等待超时member_timeout时长没有响应,负载均衡将终止等待,并返回 HTTP504错误码。 取值:1-300s。 使用说明:仅支持协议为HTTP/HTTPS的监听器。
MemberTimeout *int32 `json:"member_timeout,omitempty"`
// 等待客户端请求超时时间,仅限协议为HTTP,HTTPS的监听器配置。取值范围为1-300s, 默认值为60s TCP,UDP协议的监听器不支持此字段
ClientTimeout *int32 `json:"client_timeout,omitempty"`
- // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求,负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。取值: - TCP监听器:10-4000s。 - HTTP/HTTPS/TERMINATED_HTTPS监听器:0-4000s。 - UDP监听器不支持此字段。
+ // 客户端连接空闲超时时间。在超过keepalive_timeout时长一直没有请求, 负载均衡会暂时中断当前连接,直到一下次请求时重新建立新的连接。 取值: - 若为TCP监听器,取值范围为(10-4000s)默认值为300s。 - 若为HTTP/HTTPS/TERMINATED_HTTPS监听器,取值范围为(0-4000s)默认值为60s。 UDP监听器不支持此字段。
KeepaliveTimeout *int32 `json:"keepalive_timeout,omitempty"`
Ipgroup *UpdateListenerIpGroupOption `json:"ipgroup,omitempty"`
- // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。[仅作用于共享型LB的TCP/UDP监听器。取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [当前所有协议的监听器只设支持置为true,不传默认为true。](tag:hcso_dt)
+ // 是否透传客户端IP地址。开启后客户端IP地址将透传到后端服务器。 [仅作用于共享型LB的TCP/UDP监听器。 取值: - 共享型LB的TCP/UDP监听器可设置为true或false,不传默认为false。 - 共享型LB的HTTP/HTTPS监听器只支持设置为true,不传默认为true。 - 独享型负载均衡器所有协议的监听器只支持设置为true,不传默认为true。 使用说明: - 开启特性后,ELB和后端服务器之间直接使用真实的IP访问,需要确保已正确设置服务器的安全组以及访问控制策略。 - 开启特性后,不支持同一台服务器既作为后端服务器又作为客户端的场景。 - 开启特性后,不支持变更后端服务器规格。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [只设支持置为true,不传默认为true。](tag:hws_eu,hcso_dt)
TransparentClientIpEnable *bool `json:"transparent_client_ip_enable,omitempty"`
- // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。取值:true开启,false不开启。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。
+ // 是否开启高级转发策略功能。开启高级转发策略后,支持更灵活的转发策略和转发规则设置。 取值:true开启,false不开启。 开启后支持如下场景: - 转发策略的action字段支持指定为REDIRECT_TO_URL, FIXED_RESPONSE,即支持URL重定向和响应固定的内容给客户端。 - 转发策略支持指定priority、redirect_url_config、fixed_response_config字段。 - 转发规则rule的type可以指定METHOD, HEADER, QUERY_STRING, SOURCE_IP这几种取值。 - 转发规则rule的type为HOST_NAME时,转发规则rule的value支持通配符*。 - 转发规则支持指定conditions字段。 [荷兰region不支持该字段,请勿使用。](tag:dt)
EnhanceL7policyEnable *bool `json:"enhance_l7policy_enable,omitempty"`
QuicConfig *UpdateListenerQuicConfigOption `json:"quic_config,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_quic_config_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_quic_config_option.go
index 73ce1067..5931dd38 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_quic_config_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_listener_quic_config_option.go
@@ -6,13 +6,13 @@ import (
"strings"
)
-// listener对象中的quic配置信息,仅protocol为HTTPS时有效。 支持创建和修改; 支持HTTPS监听器升级QUIC监听器能力。仅HTTPS监听器支持升级到QUIC监听器 当客户开启升级之后选择关联的quic监听器,https对象要保存改quic监听器ID。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。
+// 当前监听器关联的QUIC监听器配置信息,仅protocol为HTTPS时有效。 对于TCP/UDP/HTTP/QUIC监听器,若该字段非空则报错。 > 客户端向服务端发送正常的HTTP协议请求并携带了支持QUIC协议的信息。 如果服务端监听器开启了升级QUIC,那么就会在响应头中加入服务端支持的QUIC端口和版本信息。 客户端再次请求时会同时发送TCP(HTTPS)和UDP(QUIC)请求,若QUIC请求成功,则后续继续使用QUIC交互。 [不支持QUIC协议。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
type UpdateListenerQuicConfigOption struct {
- // 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。
+ // 监听器关联的QUIC监听器ID。指定的listener id必须已存在,且协议类型为QUIC,不能指定为null,否则与enable_quic_upgrade冲突。 [荷兰region不支持QUIC。](tag:dt)
QuicListenerId *string `json:"quic_listener_id,omitempty"`
- // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力
+ // QUIC升级的开启状态。 True:开启QUIC升级; Flase:关闭QUIC升级; 开启HTTPS监听器升级QUIC监听器能力 [荷兰region不支持QUIC。](tag:dt)
EnableQuicUpgrade *bool `json:"enable_quic_upgrade,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_load_balancer_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_load_balancer_option.go
index e7ac02d7..900815b4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_load_balancer_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_load_balancer_option.go
@@ -3,6 +3,9 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
@@ -12,41 +15,44 @@ type UpdateLoadBalancerOption struct {
// 负载均衡器的名称。
Name *string `json:"name,omitempty"`
- // 负载均衡器的管理状态。只能设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 负载均衡器的管理状态。只能设置为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 负载均衡器的描述。
Description *string `json:"description,omitempty"`
- // 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
+ // 双栈类型负载均衡器所在子网的IPv6网络ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的id得到。 通过更新ipv6_vip_virsubnet_id可以更新负载均衡器所在IPv6子网,且负载均衡器的内网IPv6地址将发生变化。 使用说明: - ipv6_vip_virsubnet_id 对应的子网必须属于当前负载均衡器所在VPC,且子网需开启支持IPv6。 - 只有guaranteed是true的负载均衡器才支持更新ipv6_vip_virsubnet_id。 - *传入为null表示解绑IPv6子网。* - 更新IPv6子网不会导致IPv4子网发生变化。 [不支持IPv6,请勿使用。](tag:dt,dt_test)
Ipv6VipVirsubnetId *string `json:"ipv6_vip_virsubnet_id,omitempty"`
- // 负载均衡器所在的IPv4子网ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。
+ // 负载均衡器所在的IPv4子网ID。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到。 通过更新vip_subnet_cidr_id可以更新负载均衡器所在IPv4子网,并且负载均衡器的内网IPv4地址将发生变化。 使用说明: - 若同时设置了vip_address,则必须保证vip_address对应的IP在vip_subnet_cidr_id的子网网段中。 - vip_subnet_cidr_id对应的子网必须属于当前负载均衡器vpc_id对应的VPC。 - 只有guaranteed是true的负载均衡器才支持更新vip_subnet_cidr_id。 - *传入null表示解绑IPv4子网。* - 更新IPv子网不会导致IPv4子网发生变化。
VipSubnetCidrId *string `json:"vip_subnet_cidr_id,omitempty"`
// 负载均衡器的IPv4虚拟IP。该地址必须包含在所在子网的IPv4网段内,且未被占用。 注:仅当guaranteed是true的场合,才支持更新。
VipAddress *string `json:"vip_address,omitempty"`
- // 四层Flavor ID。 [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
+ // 四层Flavor ID。 [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l4_flavor.elb.shared。](tag:hcso_dt) [hcso场景下所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
L4FlavorId *string `json:"l4_flavor_id,omitempty"`
- // 七层Flavor ID。 [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
+ // 七层Flavor ID。 [使用说明: - 仅当guaranteed是true的场合,才支持更新。 - 不允许非null变成null,null变成非null,即不配置七层规格和配置七层规格之间不允许切换; - 可以支持规格改大改小,注意改小过程中可能会造成部分长连接中断,影响部分链接的新建, - autoscaling.enable=true时,修改无意义,不生效。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,dt) [只支持设置为l7_flavor.elb.shared。](tag:hcso_dt) [所有LB实例共享带宽,该字段无效,请勿使用。](tag:fcs)
L7FlavorId *string `json:"l7_flavor_id,omitempty"`
Ipv6Bandwidth *BandwidthRef `json:"ipv6_bandwidth,omitempty"`
- // 是否启用跨VPC后端转发,值只允许为true。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 是否启用跨VPC后端转发。 开启跨VPC后端转发后,后端服务器组不仅支持添加云上VPC内的服务器,还支持添加 [其他VPC、](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs) 其他公有云、云下数据中心的服务器。 [仅独享型负载均衡器支持该特性。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) 取值: - true:开启。 - false:不开启。 使用说明: - 开启不能关闭。 [荷兰region不支持该字段,请勿使用。](tag:dt)
IpTargetEnable *bool `json:"ip_target_enable,omitempty"`
- // 下联面子网的网络ID列表。可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中,则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。
+ // 下联面子网的网络ID列表。 可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到。 已绑定的下联面子网也在传参elb_virsubnet_ids列表中,则绑定关系保留。 已绑定的下联面子网若不在传参elb_virsubnet_ids列表中, 则将移除LB与该下联面子网的关联关系。但不允许移除已被ELB使用的子网,否则将报错,不做任何修改。 在传参elb_virsubnet_ids列表中但不在已绑定的下联面子网列表中,则将新增LB与下联面的绑定关系。 使用说明: - 所有ID同属于该LB所在的VPC。 - 不支持边缘云子网。
ElbVirsubnetIds *[]string `json:"elb_virsubnet_ids,omitempty"`
- // 是否开启删除保护。取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用](tag:dt,dt_test)
+ // 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
DeletionProtectionEnable *bool `json:"deletion_protection_enable,omitempty"`
PrepaidOptions *PrepaidUpdateOption `json:"prepaid_options,omitempty"`
Autoscaling *UpdateLoadbalancerAutoscalingOption `json:"autoscaling,omitempty"`
+
+ // WAF故障时的流量处理策略。discard:丢弃,forward: 转发到后端(默认) 使用说明:只有绑定了waf的LB实例,该字段才会生效。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,dt,dt_test,hcso_dt,fcs,ctc)
+ WafFailureAction *UpdateLoadBalancerOptionWafFailureAction `json:"waf_failure_action,omitempty"`
}
func (o UpdateLoadBalancerOption) String() string {
@@ -57,3 +63,45 @@ func (o UpdateLoadBalancerOption) String() string {
return strings.Join([]string{"UpdateLoadBalancerOption", string(data)}, " ")
}
+
+type UpdateLoadBalancerOptionWafFailureAction struct {
+ value string
+}
+
+type UpdateLoadBalancerOptionWafFailureActionEnum struct {
+ DISCARD UpdateLoadBalancerOptionWafFailureAction
+ FORWARD UpdateLoadBalancerOptionWafFailureAction
+}
+
+func GetUpdateLoadBalancerOptionWafFailureActionEnum() UpdateLoadBalancerOptionWafFailureActionEnum {
+ return UpdateLoadBalancerOptionWafFailureActionEnum{
+ DISCARD: UpdateLoadBalancerOptionWafFailureAction{
+ value: "discard",
+ },
+ FORWARD: UpdateLoadBalancerOptionWafFailureAction{
+ value: "forward",
+ },
+ }
+}
+
+func (c UpdateLoadBalancerOptionWafFailureAction) Value() string {
+ return c.value
+}
+
+func (c UpdateLoadBalancerOptionWafFailureAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdateLoadBalancerOptionWafFailureAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_loadbalancer_autoscaling_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_loadbalancer_autoscaling_option.go
index bc78e112..8df3b648 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_loadbalancer_autoscaling_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_loadbalancer_autoscaling_option.go
@@ -6,10 +6,10 @@ import (
"strings"
)
-// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。
+// 弹性扩缩容配置信息。负载均衡器配置并开启弹性扩缩容后,可根据负载情况自动调整负载均衡器的规格。 使用说明: - 仅当租户白名单放开后该字段才有效 - 开启弹性扩缩容后,l4_flavor_id和l7_flavor_id表示该LB实例弹性规格的上限。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42,fcs)
type UpdateLoadbalancerAutoscalingOption struct {
- // 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。
+ // 当前负载均衡器是否开启弹性扩缩容。 取值: - true:开启。 - false:不开启。
Enable bool `json:"enable"`
// 弹性扩缩容的最小七层规格ID(规格类型L7_elastic),有七层监听器时,该字段不能为空。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_member_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_member_option.go
index cad96c5b..d009022e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_member_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_member_option.go
@@ -9,13 +9,13 @@ import (
// 更新后端服务器请求参数。
type UpdateMemberOption struct {
- // 后端云服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
+ // 后端云服务器的管理状态。 取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端云服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 后端云服务器名称。
Name *string `json:"name,omitempty"`
- // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
+ // 后端云服务器的权重,请求将根据pool配置的负载均衡算法和后端云服务器的权重进行负载分发。 权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明:若所在pool的lb_algorithm取值为SOURCE_IP,该字段无效。
Weight *int32 `json:"weight,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_option.go
index 80a05e76..2221fca1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_option.go
@@ -9,13 +9,13 @@ import (
// 更新后端服务器组请求参数。
type UpdatePoolOption struct {
- // 后端云服务器组的管理状态,只支持更新为true。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+ // 后端云服务器组的管理状态,只支持更新为true。 [不支持该字段,请勿使用。](tag:dt,dt_test,hcso_dt)
AdminStateUp *bool `json:"admin_state_up,omitempty"`
// 后端云服务器组的描述信息。
Description *string `json:"description,omitempty"`
- // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。
+ // 后端云服务器组的负载均衡算法。 取值: - ROUND_ROBIN:加权轮询算法。 - LEAST_CONNECTIONS:加权最少连接算法。 - SOURCE_IP:源IP算法。 - QUIC_CID:连接ID算法。 使用说明: - 当该字段的取值为SOURCE_IP时,后端云服务器组绑定的后端云服务器的weight字段无效。 - 只有pool的protocol为QUIC时,才支持QUIC_CID算法。 [不支持QUIC_CID算法。](tag:hws_eu,g42,hk_g42,hcso_dt) [荷兰region不支持QUIC。](tag:dt)
LbAlgorithm *string `json:"lb_algorithm,omitempty"`
// 后端云服务器组的名称。
@@ -25,13 +25,13 @@ type UpdatePoolOption struct {
SlowStart *UpdatePoolSlowStartOption `json:"slow_start,omitempty"`
- // 是否开启删除保护。取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。
+ // 是否开启删除保护。 取值:false不开启,true开启。 > 退场时需要先关闭所有资源的删除保护开关。 [不支持该字段,请勿使用。](tag:hws_eu,g42,hk_g42) [荷兰region不支持该字段,请勿使用。](tag:dt)
MemberDeletionProtectionEnable *bool `json:"member_deletion_protection_enable,omitempty"`
// 后端云服务器组关联的虚拟私有云的ID。 只有vpc_id为空时允许更新。
VpcId *string `json:"vpc_id,omitempty"`
- // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。
+ // 后端服务器组的类型。 取值: - instance:允许任意类型的后端,type指定为该类型时,vpc_id是必选字段。 - ip:只能添加跨VPC后端,type指定为该类型时,vpc_id不允许指定。 - 空字符串(\"\"):允许任意类型的后端 使用说明: - 只有type为空时允许更新,不允许从非空更新为空。
Type *string `json:"type,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_session_persistence_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_session_persistence_option.go
index 273986a4..d2739435 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_session_persistence_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_session_persistence_option.go
@@ -12,13 +12,13 @@ import (
// 会话持久性对象。
type UpdatePoolSessionPersistenceOption struct {
- // cookie名称。 格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 [使用说明: - 只有当type为APP_COOKIE时才有效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [不支持该字段,请勿使用。](tag:hcso_dt)
+ // cookie名称。 格式:仅支持字母、数字、中划线(-)、下划线(_)和点号(.)。 使用说明: - 只有当type为APP_COOKIE时才有效。其他情况下传该字段会报错。 [不支持该字段,请勿使用。](tag:hws_eu,hcso_dt)
CookieName *string `json:"cookie_name,omitempty"`
- // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool,则type只能为HTTP_COOKIE,其他取值会话保持失效。如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs,dt,dt_test) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效; - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE,其他取值会话保持失效。](tag:hcso_dt)
+ // 会话保持类型。 取值范围:SOURCE_IP、HTTP_COOKIE、APP_COOKIE。 [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。如果是独享型负载均衡器的pool, 则type只能为HTTP_COOKIE,其他取值会话保持失效。 如果是共享型负载均衡器的pool,则type可以为HTTP_COOKIE和APP_COOKIE,其他取值会话保持失效。 - 若pool的protocol为QUIC,则必须开启session_persistence且type为SOURCE_IP。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [使用说明: - 当pool的protocol为TCP、UDP,无论type取值如何,都会被忽略,会话保持只按SOURCE_IP生效。 - 当pool的protocol为HTTP、HTTPS时。type只能为HTTP_COOKIE, 其他取值会话保持失效。](tag:hws_eu,hcso_dt)
Type *UpdatePoolSessionPersistenceOptionType `json:"type,omitempty"`
- // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1;如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。
+ // 会话保持的时间。当type为APP_COOKIE时不生效。 适用范围:如果pool的protocol为TCP、UDP和QUIC则范围为[1,60](分钟),默认值1; 如果pool的protocol为HTTP和HTTPS则范围为[1,1440](分钟),默认值1440。 [荷兰region不支持QUIC。](tag:dt)
PersistenceTimeout *int32 `json:"persistence_timeout,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_slow_start_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_slow_start_option.go
index 420660ff..cbc8b4aa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_slow_start_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_pool_slow_start_option.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 慢启动信息。开启慢启动后,将会在设定的时间段(duration)内对新添加到后端服务器组的后端服务器进行预热,转发到该服务器的请求数量线性增加。 当后端服务器组的协议为HTTP/HTTPS时有效,其他协议传入该字段将报错。 [荷兰region不支持该字段,请勿使用。](tag:dt)
type UpdatePoolSlowStartOption struct {
// 慢启动的开关,默认值:false; true:开启; false:关闭
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_redirect_url_config.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_redirect_url_config.go
index e5cf63eb..dcfefc8f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_redirect_url_config.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_redirect_url_config.go
@@ -9,13 +9,13 @@ import (
"strings"
)
-// 转发到的url配置。 共享型负载均衡器下的转发策略不支持该字段,传入会报错。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 [当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs) 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx}(${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [ 不支持该字段,请勿使用。](tag:dt,dt_test)
+// 转发到的url配置。 当监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 当action为REDIRECT_TO_URL时生效,且为必选字段,其他action不可指定,否则报错。 格式:protocol://host:port/path?query protocol、host、port、path不允许同时不传或同时传${xxx} (${xxx}表示原值,如${host}表示被转发的请求URL的host部分)。 protocol和port传入的值不能与l7policy关联的监听器一致且host、path同时不传或同时传${xxx}。 [共享型负载均衡器下的转发策略不支持该字段,传入会报错。 ](tag:hws,hws_hk,ocb,ctc,hcs,g42,tm,cmcc,hk_g42,hws_ocb,fcs,dt) [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt)
type UpdateRedirectUrlConfig struct {
// 重定向的协议。默认值${protocol}表示继承原值(即与被转发请求保持一致)。 取值范围: - HTTP - HTTPS - ${protocol}
Protocol *UpdateRedirectUrlConfigProtocol `json:"protocol,omitempty"`
- // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。默认值${host}表示继承原值(即与被转发请求保持一致)。
+ // 重定向的主机名。字符串只能包含英文字母、数字、“-”、“.”,必须以字母、数字开头。 默认值${host}表示继承原值(即与被转发请求保持一致)。
Host *string `json:"host,omitempty"`
// 重定向到的端口。默认值${port}表示继承原值(即与被转发请求保持一致)。
@@ -24,7 +24,7 @@ type UpdateRedirectUrlConfig struct {
// 重定向的路径。默认值${path}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头
Path *string `json:"path,omitempty"`
- // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。 举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL(如https://www.xxx.com:8080/elb?type=loadbalancer,此时${query}表示type=loadbalancer)时,将会重定向到https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。
+ // 重定向的查询字符串。默认${query}表示继承原值(即与被转发请求保持一致)。举例如下: 若该字段被设置为:${query}&name=my_name,则在转发符合条件的URL (如https://www.xxx.com:8080/elb?type=loadbalancer, 此时${query}表示type=loadbalancer)时,将会重定向到 https://www.xxx.com:8080/elb?type=loadbalancer&name=my_name。 只能包含英文字母、数字和特殊字符:!$&'()*+,-./:;=?@^_`。字母区分大小写。
Query *string `json:"query,omitempty"`
// 重定向后的返回码。 取值范围: - 301 - 302 - 303 - 307 - 308
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_rule_condition.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_rule_condition.go
index 248209a8..09f33342 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_rule_condition.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_rule_condition.go
@@ -9,10 +9,10 @@ import (
//
type UpdateRuleCondition struct {
- // 匹配项的名称。[该字段固定为空字符串](tag:dt,dt_test,hcso_dt) [当type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。key的长度限制1-40字符,只允许包含字母、数字和-_。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的名称。 当转发规则类别type为HOST_NAME、PATH、METHOD、SOURCE_IP时,该字段固定为空字符串。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 key的长度限制1-40字符,只允许包含字母、数字和-_。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 key的长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写。 同一个rule内的conditions列表中所有key必须相同。
Key *string `json:"key,omitempty"`
- // 匹配项的值。 当type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”,必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当type为PATH时,key固定为空字符串,value表示请求路径的值。value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时,字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 [当type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。value长度限制1-128字符,不支持空格,双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号,'#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST, DELETE, PATCH, HEAD, OPTIONS。 当type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。value为CIDR格式,支持ipv4,ipv6。 例如192.168.0.2/32,2049::49/64。](tag:hws,hws_hk,ocb,tlf,ctc,hcs,sbc,g42,tm,cmcc,hk_g42,mix,hk_sbc,hws_ocb,fcs)
+ // 匹配项的值。 当转发规则类别type为HOST_NAME时,key固定为空字符串,value表示域名的值。 value长度1-128字符,字符串只能包含英文字母、数字、“-”、“.”或“*”, 必须以字母、数字或“*”开头,“*”只能出现在开头且必须以*.开始。 当转发规则类别type为PATH时,key固定为空字符串,value表示请求路径的值。 value长度1-128字符。当转发规则的compare_type为STARTS_WITH、EQUAL_TO时, 字符串只能包含英文字母、数字、_~';@^-%#&$.*+?,=!:|\\/()\\[\\]{},且必须以\"/\"开头。 当转发规则类别type为HEADER时,key表示请求头参数的名称,value表示请求头参数的值。 value长度限制1-128字符,不支持空格, 双引号,支持以下通配符:*(匹配0个或更多字符)和?(正好匹配1个字符)。 当转发规则类别type为QUERY_STRING时,key表示查询参数的名称,value表示查询参数的值。 value长度限制为1-128字符,不支持空格,中括号,大括号,尖括号,反斜杠,双引号, '#','&','|',‘%’,‘~’,字母区分大小写,支持通配符:*(匹配0个或更多字符)和?(正好匹配1个字符) 当转发规则类别type为METHOD时,key固定为空字符串,value表示请求方式。value取值范围为:GET, PUT, POST,DELETE, PATCH, HEAD, OPTIONS。 当转发规则类别type为SOURCE_IP时,key固定为空字符串,value表示请求源地址。 value为CIDR格式,支持ipv4,ipv6。例如192.168.0.2/32,2049::49/64。 同一个rule内的conditions列表中所有value不允许重复。
Value *string `json:"value,omitempty"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_security_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_security_policy_option.go
index e8350dea..bebfb95f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_security_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/elb/v3/model/model_update_security_policy_option.go
@@ -21,7 +21,7 @@ type UpdateSecurityPolicyOption struct {
// 自定义安全策略选择的TLS协议列表。取值:TLSv1, TLSv1.1, TLSv1.2, TLSv1.3
Protocols *[]string `json:"protocols,omitempty"`
- // 自定义安全策略的加密套件列表。支持以下加密套件: ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256,ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256,AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256,ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256,ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384,ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA,ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA,DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305,ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256,TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256,TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256 使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。 > 协议与加密套件的匹配关系可参考系统安全策略
+ // 自定义安全策略的加密套件列表。支持以下加密套件: ECDHE-RSA-AES256-GCM-SHA384,ECDHE-RSA-AES128-GCM-SHA256, ECDHE-ECDSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-GCM-SHA256, AES128-GCM-SHA256,AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256, ECDHE-RSA-AES128-SHA256,AES128-SHA256,AES256-SHA256, ECDHE-ECDSA-AES256-SHA384,ECDHE-RSA-AES256-SHA384, ECDHE-ECDSA-AES128-SHA,ECDHE-RSA-AES128-SHA,ECDHE-RSA-AES256-SHA, ECDHE-ECDSA-AES256-SHA,AES128-SHA,AES256-SHA,CAMELLIA128-SHA, DES-CBC3-SHA,CAMELLIA256-SHA,ECDHE-RSA-CHACHA20-POLY1305, ECDHE-ECDSA-CHACHA20-POLY1305,TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384,TLS_CHACHA20_POLY1305_SHA256, TLS_AES_128_CCM_SHA256,TLS_AES_128_CCM_8_SHA256 使用说明: - 协议和加密套件必须匹配,即ciphers中必须至少有一种有与协议匹配的加密套件。 > 协议与加密套件的匹配关系可参考系统安全策略
Ciphers *[]UpdateSecurityPolicyOptionCiphers `json:"ciphers,omitempty"`
}
@@ -67,8 +67,6 @@ type UpdateSecurityPolicyOptionCiphersEnum struct {
TLS_CHACHA20_POLY1305_SHA256 UpdateSecurityPolicyOptionCiphers
TLS_AES_128_CCM_SHA256 UpdateSecurityPolicyOptionCiphers
TLS_AES_128_CCM_8_SHA256 UpdateSecurityPolicyOptionCiphers
- ECC_SM4_SM3 UpdateSecurityPolicyOptionCiphers
- ECDHE_SM4_SM3 UpdateSecurityPolicyOptionCiphers
}
func GetUpdateSecurityPolicyOptionCiphersEnum() UpdateSecurityPolicyOptionCiphersEnum {
@@ -157,12 +155,6 @@ func GetUpdateSecurityPolicyOptionCiphersEnum() UpdateSecurityPolicyOptionCipher
TLS_AES_128_CCM_8_SHA256: UpdateSecurityPolicyOptionCiphers{
value: "TLS_AES_128_CCM_8_SHA256",
},
- ECC_SM4_SM3: UpdateSecurityPolicyOptionCiphers{
- value: "ECC-SM4-SM3",
- },
- ECDHE_SM4_SM3: UpdateSecurityPolicyOptionCiphers{
- value: "ECDHE-SM4-SM3",
- },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_client.go
index 340a33d5..1de48747 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_client.go
@@ -23,8 +23,7 @@ func EpsClientBuilder() *http_client.HcHttpClientBuilder {
//
// 创建企业项目。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) CreateEnterpriseProject(request *model.CreateEnterpriseProjectRequest) (*model.CreateEnterpriseProjectResponse, error) {
requestDef := GenReqDefForCreateEnterpriseProject()
@@ -45,8 +44,7 @@ func (c *EpsClient) CreateEnterpriseProjectInvoker(request *model.CreateEnterpri
//
// 停用企业项目。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) DisableEnterpriseProject(request *model.DisableEnterpriseProjectRequest) (*model.DisableEnterpriseProjectResponse, error) {
requestDef := GenReqDefForDisableEnterpriseProject()
@@ -67,8 +65,7 @@ func (c *EpsClient) DisableEnterpriseProjectInvoker(request *model.DisableEnterp
//
// 启用企业项目。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) EnableEnterpriseProject(request *model.EnableEnterpriseProjectRequest) (*model.EnableEnterpriseProjectResponse, error) {
requestDef := GenReqDefForEnableEnterpriseProject()
@@ -89,8 +86,7 @@ func (c *EpsClient) EnableEnterpriseProjectInvoker(request *model.EnableEnterpri
//
// 查询企业项目的API版本列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ListApiVersions(request *model.ListApiVersionsRequest) (*model.ListApiVersionsResponse, error) {
requestDef := GenReqDefForListApiVersions()
@@ -111,8 +107,7 @@ func (c *EpsClient) ListApiVersionsInvoker(request *model.ListApiVersionsRequest
//
// 查询当前用户已授权的企业项目列表,用户可以使用企业项目绑定资源。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ListEnterpriseProject(request *model.ListEnterpriseProjectRequest) (*model.ListEnterpriseProjectResponse, error) {
requestDef := GenReqDefForListEnterpriseProject()
@@ -129,12 +124,32 @@ func (c *EpsClient) ListEnterpriseProjectInvoker(request *model.ListEnterprisePr
return &ListEnterpriseProjectInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListProviders 查询企业项目支持的服务
+//
+// 查询企业项目支持的服务
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EpsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error) {
+ requestDef := GenReqDefForListProviders()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListProvidersResponse), nil
+ }
+}
+
+// ListProvidersInvoker 查询企业项目支持的服务
+func (c *EpsClient) ListProvidersInvoker(request *model.ListProvidersRequest) *ListProvidersInvoker {
+ requestDef := GenReqDefForListProviders()
+ return &ListProvidersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// MigrateResource 迁移资源
//
// 迁移资源到目标企业项目。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) MigrateResource(request *model.MigrateResourceRequest) (*model.MigrateResourceResponse, error) {
requestDef := GenReqDefForMigrateResource()
@@ -155,8 +170,7 @@ func (c *EpsClient) MigrateResourceInvoker(request *model.MigrateResourceRequest
//
// 查询指定的企业项目API版本号详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error) {
requestDef := GenReqDefForShowApiVersion()
@@ -177,8 +191,7 @@ func (c *EpsClient) ShowApiVersionInvoker(request *model.ShowApiVersionRequest)
//
// 查询企业项目详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ShowEnterpriseProject(request *model.ShowEnterpriseProjectRequest) (*model.ShowEnterpriseProjectResponse, error) {
requestDef := GenReqDefForShowEnterpriseProject()
@@ -199,8 +212,7 @@ func (c *EpsClient) ShowEnterpriseProjectInvoker(request *model.ShowEnterprisePr
//
// 查询企业项目的配额信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ShowEnterpriseProjectQuota(request *model.ShowEnterpriseProjectQuotaRequest) (*model.ShowEnterpriseProjectQuotaResponse, error) {
requestDef := GenReqDefForShowEnterpriseProjectQuota()
@@ -221,8 +233,7 @@ func (c *EpsClient) ShowEnterpriseProjectQuotaInvoker(request *model.ShowEnterpr
//
// 查询企业项目下绑定的资源详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) ShowResourceBindEnterpriseProject(request *model.ShowResourceBindEnterpriseProjectRequest) (*model.ShowResourceBindEnterpriseProjectResponse, error) {
requestDef := GenReqDefForShowResourceBindEnterpriseProject()
@@ -243,8 +254,7 @@ func (c *EpsClient) ShowResourceBindEnterpriseProjectInvoker(request *model.Show
//
// 修改企业项目。当前仅支持修改名称和描述。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EpsClient) UpdateEnterpriseProject(request *model.UpdateEnterpriseProjectRequest) (*model.UpdateEnterpriseProjectResponse, error) {
requestDef := GenReqDefForUpdateEnterpriseProject()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_invoker.go
index 38a78356..b198b22d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_invoker.go
@@ -65,6 +65,18 @@ func (i *ListEnterpriseProjectInvoker) Invoke() (*model.ListEnterpriseProjectRes
}
}
+type ListProvidersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListProvidersInvoker) Invoke() (*model.ListProvidersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListProvidersResponse), nil
+ }
+}
+
type MigrateResourceInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_meta.go
index a780c019..b36b5e14 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/eps_meta.go
@@ -113,6 +113,34 @@ func GenReqDefForListEnterpriseProject() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListProviders() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1.0/enterprise-projects/providers").
+ WithResponse(new(model.ListProvidersResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Locale").
+ WithJsonTag("locale").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Provider").
+ WithJsonTag("provider").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForMigrateResource() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_request.go
new file mode 100644
index 00000000..b0d835a5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListProvidersRequest struct {
+
+ // 指定显示语言
+ Locale *ListProvidersRequestLocale `json:"locale,omitempty"`
+
+ // 查询记录数默认为200,limit最多为200, 最小值为1
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 索引位置,从offset指定的下一条数据开始查询,必须为数字,不能为负数,默认为0
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 云服务名称
+ Provider *string `json:"provider,omitempty"`
+}
+
+func (o ListProvidersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProvidersRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListProvidersRequest", string(data)}, " ")
+}
+
+type ListProvidersRequestLocale struct {
+ value string
+}
+
+type ListProvidersRequestLocaleEnum struct {
+ ZH_CN ListProvidersRequestLocale
+ EN_US ListProvidersRequestLocale
+}
+
+func GetListProvidersRequestLocaleEnum() ListProvidersRequestLocaleEnum {
+ return ListProvidersRequestLocaleEnum{
+ ZH_CN: ListProvidersRequestLocale{
+ value: "zh-cn",
+ },
+ EN_US: ListProvidersRequestLocale{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListProvidersRequestLocale) Value() string {
+ return c.value
+}
+
+func (c ListProvidersRequestLocale) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListProvidersRequestLocale) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_response.go
new file mode 100644
index 00000000..6c47f053
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_list_providers_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListProvidersResponse struct {
+
+ // 云服务列表
+ Providers *[]ProviderResponseBody `json:"providers,omitempty"`
+
+ // 当前支持的云服务总数
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListProvidersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProvidersResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListProvidersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_migrate_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_migrate_resource.go
index 137f83ff..22c4131e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_migrate_resource.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_migrate_resource.go
@@ -9,6 +9,9 @@ import (
// 迁移资源
type MigrateResource struct {
+ // 资源所属RegionID。迁移OBS服务资源时为必选项。
+ RegionId *string `json:"region_id,omitempty"`
+
// 项目ID。resource_type为region级别服务时为必选项。
ProjectId *string `json:"project_id,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_provider_response_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_provider_response_body.go
new file mode 100644
index 00000000..0b951652
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_provider_response_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ProviderResponseBody struct {
+
+ // 云服务名称
+ Provider string `json:"provider"`
+
+ // 云服务显示名称,可以通过参数中的'locale'设置语言
+ ProviderI18nDisplayName string `json:"provider_i18n_display_name"`
+
+ // 资源类型列表
+ ResourceTypes []ResourceTypeBody `json:"resource_types"`
+}
+
+func (o ProviderResponseBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ProviderResponseBody struct{}"
+ }
+
+ return strings.Join([]string{"ProviderResponseBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_resource_type_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_resource_type_body.go
new file mode 100644
index 00000000..f5fd5909
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/model/model_resource_type_body.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourceTypeBody struct {
+
+ // 资源类型名称
+ ResourceType string `json:"resource_type"`
+
+ // 资源类型显示名称,可以通过参数中'locale'设置语言
+ ResourceTypeI18nDisplayName string `json:"resource_type_i18n_display_name"`
+
+ // 支持的region列表
+ Regions []string `json:"regions"`
+
+ // 是否是全局类型的资源
+ Global bool `json:"global"`
+}
+
+func (o ResourceTypeBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceTypeBody struct{}"
+ }
+
+ return strings.Join([]string{"ResourceTypeBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/region/region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/region/region.go
index 90f80f22..4ccb0bce 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/region/region.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/eps/v1/region/region.go
@@ -5,7 +5,10 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region"
)
-var CN_NORTH_4 = region.NewRegion("cn-north-4", "https://eps.myhuaweicloud.com")
+var (
+ CN_NORTH_4 = region.NewRegion("cn-north-4",
+ "https://eps.myhuaweicloud.com")
+)
var staticFields = map[string]*region.Region{
"cn-north-4": CN_NORTH_4,
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_client.go
index 1cd450f7..4e36d15c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_client.go
@@ -26,8 +26,7 @@ func EvsClientBuilder() *http_client.HcHttpClientBuilder {
// 添加标签时,如果云硬盘的标签已存在相同key,则会覆盖已有标签。
// 单个云硬盘最多支持创建10个标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) BatchCreateVolumeTags(request *model.BatchCreateVolumeTagsRequest) (*model.BatchCreateVolumeTagsResponse, error) {
requestDef := GenReqDefForBatchCreateVolumeTags()
@@ -48,8 +47,7 @@ func (c *EvsClient) BatchCreateVolumeTagsInvoker(request *model.BatchCreateVolum
//
// 为指定云硬盘批量删除标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) BatchDeleteVolumeTags(request *model.BatchDeleteVolumeTagsRequest) (*model.BatchDeleteVolumeTagsResponse, error) {
requestDef := GenReqDefForBatchDeleteVolumeTags()
@@ -66,12 +64,75 @@ func (c *EvsClient) BatchDeleteVolumeTagsInvoker(request *model.BatchDeleteVolum
return &BatchDeleteVolumeTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CinderAcceptVolumeTransfer 接受云硬盘过户
+//
+// 通过云硬盘过户记录ID以及身份认证密钥来接受云硬盘过户。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) CinderAcceptVolumeTransfer(request *model.CinderAcceptVolumeTransferRequest) (*model.CinderAcceptVolumeTransferResponse, error) {
+ requestDef := GenReqDefForCinderAcceptVolumeTransfer()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CinderAcceptVolumeTransferResponse), nil
+ }
+}
+
+// CinderAcceptVolumeTransferInvoker 接受云硬盘过户
+func (c *EvsClient) CinderAcceptVolumeTransferInvoker(request *model.CinderAcceptVolumeTransferRequest) *CinderAcceptVolumeTransferInvoker {
+ requestDef := GenReqDefForCinderAcceptVolumeTransfer()
+ return &CinderAcceptVolumeTransferInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CinderCreateVolumeTransfer 创建云硬盘过户
+//
+// 指定云硬盘来创建云硬盘过户记录,创建成功后,会返回过户记录ID以及身份认证密钥。
+// 云硬盘在过户过程中的状态变化如下:创建云硬盘过户后,云硬盘状态由“available”变为“awaiting-transfer”。当云硬盘过户被接收后,云硬盘状态变为“available”。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) CinderCreateVolumeTransfer(request *model.CinderCreateVolumeTransferRequest) (*model.CinderCreateVolumeTransferResponse, error) {
+ requestDef := GenReqDefForCinderCreateVolumeTransfer()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CinderCreateVolumeTransferResponse), nil
+ }
+}
+
+// CinderCreateVolumeTransferInvoker 创建云硬盘过户
+func (c *EvsClient) CinderCreateVolumeTransferInvoker(request *model.CinderCreateVolumeTransferRequest) *CinderCreateVolumeTransferInvoker {
+ requestDef := GenReqDefForCinderCreateVolumeTransfer()
+ return &CinderCreateVolumeTransferInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CinderDeleteVolumeTransfer 删除云硬盘过户
+//
+// 当云硬盘过户未被接受时,您可以删除云硬盘过户记录,接受后则无法执行删除操作。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) CinderDeleteVolumeTransfer(request *model.CinderDeleteVolumeTransferRequest) (*model.CinderDeleteVolumeTransferResponse, error) {
+ requestDef := GenReqDefForCinderDeleteVolumeTransfer()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CinderDeleteVolumeTransferResponse), nil
+ }
+}
+
+// CinderDeleteVolumeTransferInvoker 删除云硬盘过户
+func (c *EvsClient) CinderDeleteVolumeTransferInvoker(request *model.CinderDeleteVolumeTransferRequest) *CinderDeleteVolumeTransferInvoker {
+ requestDef := GenReqDefForCinderDeleteVolumeTransfer()
+ return &CinderDeleteVolumeTransferInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CinderListAvailabilityZones 查询所有的可用分区信息
//
// 查询所有的可用分区信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) CinderListAvailabilityZones(request *model.CinderListAvailabilityZonesRequest) (*model.CinderListAvailabilityZonesResponse, error) {
requestDef := GenReqDefForCinderListAvailabilityZones()
@@ -92,8 +153,7 @@ func (c *EvsClient) CinderListAvailabilityZonesInvoker(request *model.CinderList
//
// 查询租户的详细配额。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) CinderListQuotas(request *model.CinderListQuotasRequest) (*model.CinderListQuotasResponse, error) {
requestDef := GenReqDefForCinderListQuotas()
@@ -110,12 +170,32 @@ func (c *EvsClient) CinderListQuotasInvoker(request *model.CinderListQuotasReque
return &CinderListQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CinderListVolumeTransfers 查询云硬盘过户记录列表概要
+//
+// 查询当前租户下所有云硬盘的过户记录列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) CinderListVolumeTransfers(request *model.CinderListVolumeTransfersRequest) (*model.CinderListVolumeTransfersResponse, error) {
+ requestDef := GenReqDefForCinderListVolumeTransfers()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CinderListVolumeTransfersResponse), nil
+ }
+}
+
+// CinderListVolumeTransfersInvoker 查询云硬盘过户记录列表概要
+func (c *EvsClient) CinderListVolumeTransfersInvoker(request *model.CinderListVolumeTransfersRequest) *CinderListVolumeTransfersInvoker {
+ requestDef := GenReqDefForCinderListVolumeTransfers()
+ return &CinderListVolumeTransfersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CinderListVolumeTypes 查询云硬盘类型列表
//
// 查询云硬盘类型列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) CinderListVolumeTypes(request *model.CinderListVolumeTypesRequest) (*model.CinderListVolumeTypesResponse, error) {
requestDef := GenReqDefForCinderListVolumeTypes()
@@ -132,12 +212,32 @@ func (c *EvsClient) CinderListVolumeTypesInvoker(request *model.CinderListVolume
return &CinderListVolumeTypesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CinderShowVolumeTransfer 查询单个云硬盘过户记录详情
+//
+// 查询单个云硬盘的过户记录详情,比如过户记录创建时间、ID以及名称等信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) CinderShowVolumeTransfer(request *model.CinderShowVolumeTransferRequest) (*model.CinderShowVolumeTransferResponse, error) {
+ requestDef := GenReqDefForCinderShowVolumeTransfer()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CinderShowVolumeTransferResponse), nil
+ }
+}
+
+// CinderShowVolumeTransferInvoker 查询单个云硬盘过户记录详情
+func (c *EvsClient) CinderShowVolumeTransferInvoker(request *model.CinderShowVolumeTransferRequest) *CinderShowVolumeTransferInvoker {
+ requestDef := GenReqDefForCinderShowVolumeTransfer()
+ return &CinderShowVolumeTransferInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateSnapshot 创建云硬盘快照
//
// 创建云硬盘快照。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) CreateSnapshot(request *model.CreateSnapshotRequest) (*model.CreateSnapshotResponse, error) {
requestDef := GenReqDefForCreateSnapshot()
@@ -163,8 +263,7 @@ func (c *EvsClient) CreateSnapshotInvoker(request *model.CreateSnapshotRequest)
// - 如果您需要查询订单的资源开通详情,请参考\"[查询订单的资源开通详情](https://support.huaweicloud.com/api-oce/api_order_00001.html)\"。
// - 如果您需要退订该包周期资源,请参考“[退订包周期资源](https://support.huaweicloud.com/api-oce/zh-cn_topic_0082522030.html)”。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) CreateVolume(request *model.CreateVolumeRequest) (*model.CreateVolumeResponse, error) {
requestDef := GenReqDefForCreateVolume()
@@ -185,8 +284,7 @@ func (c *EvsClient) CreateVolumeInvoker(request *model.CreateVolumeRequest) *Cre
//
// 删除云硬盘快照。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) DeleteSnapshot(request *model.DeleteSnapshotRequest) (*model.DeleteSnapshotResponse, error) {
requestDef := GenReqDefForDeleteSnapshot()
@@ -207,8 +305,7 @@ func (c *EvsClient) DeleteSnapshotInvoker(request *model.DeleteSnapshotRequest)
//
// 删除一个云硬盘。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) DeleteVolume(request *model.DeleteVolumeRequest) (*model.DeleteVolumeResponse, error) {
requestDef := GenReqDefForDeleteVolume()
@@ -225,12 +322,11 @@ func (c *EvsClient) DeleteVolumeInvoker(request *model.DeleteVolumeRequest) *Del
return &DeleteVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ListSnapshots 查询云硬盘快照详细列表信息
+// ListSnapshots 查询云硬盘快照详情列表
//
// 查询云硬盘快照详细列表信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.ListSnapshotsResponse, error) {
requestDef := GenReqDefForListSnapshots()
@@ -241,7 +337,7 @@ func (c *EvsClient) ListSnapshots(request *model.ListSnapshotsRequest) (*model.L
}
}
-// ListSnapshotsInvoker 查询云硬盘快照详细列表信息
+// ListSnapshotsInvoker 查询云硬盘快照详情列表
func (c *EvsClient) ListSnapshotsInvoker(request *model.ListSnapshotsRequest) *ListSnapshotsInvoker {
requestDef := GenReqDefForListSnapshots()
return &ListSnapshotsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -251,8 +347,7 @@ func (c *EvsClient) ListSnapshotsInvoker(request *model.ListSnapshotsRequest) *L
//
// 获取某个租户的所有云硬盘资源的标签信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ListVolumeTags(request *model.ListVolumeTagsRequest) (*model.ListVolumeTagsResponse, error) {
requestDef := GenReqDefForListVolumeTags()
@@ -273,8 +368,7 @@ func (c *EvsClient) ListVolumeTagsInvoker(request *model.ListVolumeTagsRequest)
//
// 查询所有云硬盘的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ListVolumes(request *model.ListVolumesRequest) (*model.ListVolumesResponse, error) {
requestDef := GenReqDefForListVolumes()
@@ -295,8 +389,7 @@ func (c *EvsClient) ListVolumesInvoker(request *model.ListVolumesRequest) *ListV
//
// 通过标签查询云硬盘资源实例详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ListVolumesByTags(request *model.ListVolumesByTagsRequest) (*model.ListVolumesByTagsResponse, error) {
requestDef := GenReqDefForListVolumesByTags()
@@ -322,8 +415,7 @@ func (c *EvsClient) ListVolumesByTagsInvoker(request *model.ListVolumesByTagsReq
// - 如果您需要查询订单的资源开通详情,请参考\"[查询订单的资源开通详情](https://support.huaweicloud.com/api-oce/api_order_00001.html)\"。
// - 如果您需要退订该包周期资源,请参考“[退订包周期资源](https://support.huaweicloud.com/api-oce/zh-cn_topic_0082522030.html)”。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ResizeVolume(request *model.ResizeVolumeRequest) (*model.ResizeVolumeResponse, error) {
requestDef := GenReqDefForResizeVolume()
@@ -344,8 +436,7 @@ func (c *EvsClient) ResizeVolumeInvoker(request *model.ResizeVolumeRequest) *Res
//
// 将快照数据回滚到云硬盘。支持企业项目授权功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) RollbackSnapshot(request *model.RollbackSnapshotRequest) (*model.RollbackSnapshotResponse, error) {
requestDef := GenReqDefForRollbackSnapshot()
@@ -367,8 +458,7 @@ func (c *EvsClient) RollbackSnapshotInvoker(request *model.RollbackSnapshotReque
// 查询Job的执行状态。
// 可用于查询创建云硬盘,扩容云硬盘,删除云硬盘等API的执行状态。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ShowJob(request *model.ShowJobRequest) (*model.ShowJobResponse, error) {
requestDef := GenReqDefForShowJob()
@@ -385,12 +475,11 @@ func (c *EvsClient) ShowJobInvoker(request *model.ShowJobRequest) *ShowJobInvoke
return &ShowJobInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ShowSnapshot 查询单个云硬盘快照详细信息
+// ShowSnapshot 查询单个云硬盘快照详情
//
// 查询单个云硬盘快照信息。支持企业项目授权功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ShowSnapshot(request *model.ShowSnapshotRequest) (*model.ShowSnapshotResponse, error) {
requestDef := GenReqDefForShowSnapshot()
@@ -401,7 +490,7 @@ func (c *EvsClient) ShowSnapshot(request *model.ShowSnapshotRequest) (*model.Sho
}
}
-// ShowSnapshotInvoker 查询单个云硬盘快照详细信息
+// ShowSnapshotInvoker 查询单个云硬盘快照详情
func (c *EvsClient) ShowSnapshotInvoker(request *model.ShowSnapshotRequest) *ShowSnapshotInvoker {
requestDef := GenReqDefForShowSnapshot()
return &ShowSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -411,8 +500,7 @@ func (c *EvsClient) ShowSnapshotInvoker(request *model.ShowSnapshotRequest) *Sho
//
// 查询单个云硬盘的详细信息。支持企业项目授权功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ShowVolume(request *model.ShowVolumeRequest) (*model.ShowVolumeResponse, error) {
requestDef := GenReqDefForShowVolume()
@@ -433,8 +521,7 @@ func (c *EvsClient) ShowVolumeInvoker(request *model.ShowVolumeRequest) *ShowVol
//
// 查询指定云硬盘的标签信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) ShowVolumeTags(request *model.ShowVolumeTagsRequest) (*model.ShowVolumeTagsResponse, error) {
requestDef := GenReqDefForShowVolumeTags()
@@ -455,8 +542,7 @@ func (c *EvsClient) ShowVolumeTagsInvoker(request *model.ShowVolumeTagsRequest)
//
// 更新云硬盘快照。支持企业项目授权功能。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) UpdateSnapshot(request *model.UpdateSnapshotRequest) (*model.UpdateSnapshotResponse, error) {
requestDef := GenReqDefForUpdateSnapshot()
@@ -477,8 +563,7 @@ func (c *EvsClient) UpdateSnapshotInvoker(request *model.UpdateSnapshotRequest)
//
// 更新一个云硬盘的名称和描述。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *EvsClient) UpdateVolume(request *model.UpdateVolumeRequest) (*model.UpdateVolumeResponse, error) {
requestDef := GenReqDefForUpdateVolume()
@@ -494,3 +579,45 @@ func (c *EvsClient) UpdateVolumeInvoker(request *model.UpdateVolumeRequest) *Upd
requestDef := GenReqDefForUpdateVolume()
return &UpdateVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+
+// ListVersions 查询接口版本信息列表
+//
+// 查询接口版本信息列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) ListVersions(request *model.ListVersionsRequest) (*model.ListVersionsResponse, error) {
+ requestDef := GenReqDefForListVersions()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListVersionsResponse), nil
+ }
+}
+
+// ListVersionsInvoker 查询接口版本信息列表
+func (c *EvsClient) ListVersionsInvoker(request *model.ListVersionsRequest) *ListVersionsInvoker {
+ requestDef := GenReqDefForListVersions()
+ return &ListVersionsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowVersion 查询API接口的版本信息
+//
+// 查询接口的指定版本信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *EvsClient) ShowVersion(request *model.ShowVersionRequest) (*model.ShowVersionResponse, error) {
+ requestDef := GenReqDefForShowVersion()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowVersionResponse), nil
+ }
+}
+
+// ShowVersionInvoker 查询API接口的版本信息
+func (c *EvsClient) ShowVersionInvoker(request *model.ShowVersionRequest) *ShowVersionInvoker {
+ requestDef := GenReqDefForShowVersion()
+ return &ShowVersionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_invoker.go
index 03a6627e..db96aa2b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_invoker.go
@@ -29,6 +29,42 @@ func (i *BatchDeleteVolumeTagsInvoker) Invoke() (*model.BatchDeleteVolumeTagsRes
}
}
+type CinderAcceptVolumeTransferInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CinderAcceptVolumeTransferInvoker) Invoke() (*model.CinderAcceptVolumeTransferResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CinderAcceptVolumeTransferResponse), nil
+ }
+}
+
+type CinderCreateVolumeTransferInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CinderCreateVolumeTransferInvoker) Invoke() (*model.CinderCreateVolumeTransferResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CinderCreateVolumeTransferResponse), nil
+ }
+}
+
+type CinderDeleteVolumeTransferInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CinderDeleteVolumeTransferInvoker) Invoke() (*model.CinderDeleteVolumeTransferResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CinderDeleteVolumeTransferResponse), nil
+ }
+}
+
type CinderListAvailabilityZonesInvoker struct {
*invoker.BaseInvoker
}
@@ -53,6 +89,18 @@ func (i *CinderListQuotasInvoker) Invoke() (*model.CinderListQuotasResponse, err
}
}
+type CinderListVolumeTransfersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CinderListVolumeTransfersInvoker) Invoke() (*model.CinderListVolumeTransfersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CinderListVolumeTransfersResponse), nil
+ }
+}
+
type CinderListVolumeTypesInvoker struct {
*invoker.BaseInvoker
}
@@ -65,6 +113,18 @@ func (i *CinderListVolumeTypesInvoker) Invoke() (*model.CinderListVolumeTypesRes
}
}
+type CinderShowVolumeTransferInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CinderShowVolumeTransferInvoker) Invoke() (*model.CinderShowVolumeTransferResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CinderShowVolumeTransferResponse), nil
+ }
+}
+
type CreateSnapshotInvoker struct {
*invoker.BaseInvoker
}
@@ -256,3 +316,27 @@ func (i *UpdateVolumeInvoker) Invoke() (*model.UpdateVolumeResponse, error) {
return result.(*model.UpdateVolumeResponse), nil
}
}
+
+type ListVersionsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListVersionsInvoker) Invoke() (*model.ListVersionsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListVersionsResponse), nil
+ }
+}
+
+type ShowVersionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowVersionInvoker) Invoke() (*model.ShowVersionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowVersionResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_meta.go
index 4b9bd139..c4ba49fc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/evs_meta.go
@@ -47,6 +47,57 @@ func GenReqDefForBatchDeleteVolumeTags() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCinderAcceptVolumeTransfer() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/os-volume-transfer/{transfer_id}/accept").
+ WithResponse(new(model.CinderAcceptVolumeTransferResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TransferId").
+ WithJsonTag("transfer_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCinderCreateVolumeTransfer() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/os-volume-transfer").
+ WithResponse(new(model.CinderCreateVolumeTransferResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCinderDeleteVolumeTransfer() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v2/{project_id}/os-volume-transfer/{transfer_id}").
+ WithResponse(new(model.CinderDeleteVolumeTransferResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TransferId").
+ WithJsonTag("transfer_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCinderListAvailabilityZones() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -79,6 +130,26 @@ func GenReqDefForCinderListQuotas() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCinderListVolumeTransfers() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/os-volume-transfer").
+ WithResponse(new(model.CinderListVolumeTransfersResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCinderListVolumeTypes() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -90,6 +161,22 @@ func GenReqDefForCinderListVolumeTypes() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCinderShowVolumeTransfer() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/os-volume-transfer/{transfer_id}").
+ WithResponse(new(model.CinderShowVolumeTransferResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("TransferId").
+ WithJsonTag("transfer_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateSnapshot() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -461,3 +548,30 @@ func GenReqDefForUpdateVolume() *def.HttpRequestDef {
requestDef := reqDefBuilder.Build()
return requestDef
}
+
+func GenReqDefForListVersions() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/").
+ WithResponse(new(model.ListVersionsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowVersion() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/{version}").
+ WithResponse(new(model.ShowVersionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Version").
+ WithJsonTag("version").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_option.go
new file mode 100644
index 00000000..457bb6a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_option.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标记接受云硬盘过户操作。
+type CinderAcceptVolumeTransferOption struct {
+
+ // 云硬盘过户的身份认证密钥。 创建云硬盘过户时会返回该身份认证密钥。
+ AuthKey string `json:"auth_key"`
+}
+
+func (o CinderAcceptVolumeTransferOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderAcceptVolumeTransferOption struct{}"
+ }
+
+ return strings.Join([]string{"CinderAcceptVolumeTransferOption", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request.go
new file mode 100644
index 00000000..0bd4d013
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CinderAcceptVolumeTransferRequest struct {
+
+ // 云硬盘ID
+ TransferId string `json:"transfer_id"`
+
+ Body *CinderAcceptVolumeTransferRequestBody `json:"body,omitempty"`
+}
+
+func (o CinderAcceptVolumeTransferRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderAcceptVolumeTransferRequest struct{}"
+ }
+
+ return strings.Join([]string{"CinderAcceptVolumeTransferRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request_body.go
new file mode 100644
index 00000000..c3ab4364
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// This is a auto create Body Object
+type CinderAcceptVolumeTransferRequestBody struct {
+ Accept *CinderAcceptVolumeTransferOption `json:"accept"`
+}
+
+func (o CinderAcceptVolumeTransferRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderAcceptVolumeTransferRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CinderAcceptVolumeTransferRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_response.go
new file mode 100644
index 00000000..b07aa756
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_accept_volume_transfer_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CinderAcceptVolumeTransferResponse struct {
+ Transfer *VolumeTransferSummary `json:"transfer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CinderAcceptVolumeTransferResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderAcceptVolumeTransferResponse struct{}"
+ }
+
+ return strings.Join([]string{"CinderAcceptVolumeTransferResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request.go
new file mode 100644
index 00000000..f5f06ea0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CinderCreateVolumeTransferRequest struct {
+ Body *CinderCreateVolumeTransferRequestBody `json:"body,omitempty"`
+}
+
+func (o CinderCreateVolumeTransferRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderCreateVolumeTransferRequest struct{}"
+ }
+
+ return strings.Join([]string{"CinderCreateVolumeTransferRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request_body.go
new file mode 100644
index 00000000..a24a4dd0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_request_body.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// This is a auto create Body Object
+type CinderCreateVolumeTransferRequestBody struct {
+ Transfer *CreateVolumeTransferOption `json:"transfer"`
+}
+
+func (o CinderCreateVolumeTransferRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderCreateVolumeTransferRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CinderCreateVolumeTransferRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_response.go
new file mode 100644
index 00000000..8b347470
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_create_volume_transfer_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CinderCreateVolumeTransferResponse struct {
+ Transfer *CreateVolumeTransferDetail `json:"transfer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CinderCreateVolumeTransferResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderCreateVolumeTransferResponse struct{}"
+ }
+
+ return strings.Join([]string{"CinderCreateVolumeTransferResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_request.go
new file mode 100644
index 00000000..701ffcf2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CinderDeleteVolumeTransferRequest struct {
+
+ // 云硬盘过户记录ID
+ TransferId string `json:"transfer_id"`
+}
+
+func (o CinderDeleteVolumeTransferRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderDeleteVolumeTransferRequest struct{}"
+ }
+
+ return strings.Join([]string{"CinderDeleteVolumeTransferRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_response.go
new file mode 100644
index 00000000..06edfe1b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_delete_volume_transfer_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CinderDeleteVolumeTransferResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CinderDeleteVolumeTransferResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderDeleteVolumeTransferResponse struct{}"
+ }
+
+ return strings.Join([]string{"CinderDeleteVolumeTransferResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_request.go
new file mode 100644
index 00000000..7aa25df5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CinderListVolumeTransfersRequest struct {
+
+ // 返回结果个数限制,取值为大 于0的整数
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量,偏移量为一个大于0小 于云硬盘过户记录总个数的整 数,表示查询该偏移量后面的 所有的云硬盘过户记录
+ Offset *int32 `json:"offset,omitempty"`
+}
+
+func (o CinderListVolumeTransfersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderListVolumeTransfersRequest struct{}"
+ }
+
+ return strings.Join([]string{"CinderListVolumeTransfersRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_response.go
new file mode 100644
index 00000000..d9433482
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_list_volume_transfers_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CinderListVolumeTransfersResponse struct {
+
+ // 云硬盘过户记录列表概要,请参见•[transfers参数说明](https://support.huaweicloud.com/api-evs/evs_04_2110.html#evs_04_2110__li6113282511345)。
+ Transfers *[]VolumeTransferSummary `json:"transfers,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CinderListVolumeTransfersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderListVolumeTransfersResponse struct{}"
+ }
+
+ return strings.Join([]string{"CinderListVolumeTransfersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_request.go
new file mode 100644
index 00000000..61a3d745
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CinderShowVolumeTransferRequest struct {
+
+ // 云硬盘过户记录ID
+ TransferId string `json:"transfer_id"`
+}
+
+func (o CinderShowVolumeTransferRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderShowVolumeTransferRequest struct{}"
+ }
+
+ return strings.Join([]string{"CinderShowVolumeTransferRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_response.go
new file mode 100644
index 00000000..c170b736
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_cinder_show_volume_transfer_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CinderShowVolumeTransferResponse struct {
+ Transfer *VolumeTransfer `json:"transfer,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CinderShowVolumeTransferResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CinderShowVolumeTransferResponse struct{}"
+ }
+
+ return strings.Join([]string{"CinderShowVolumeTransferResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_response.go
index 811e288e..acadfa8e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_response.go
@@ -15,7 +15,7 @@ type CreateVolumeResponse struct {
// 订单ID,云硬盘为包周期计费时返回该参数。 > 说明: > 直接在包周期云服务器上新增云硬盘,系统会自动将云硬盘挂载到包周期云服务器上。该情形下也会返回该参数。 > - 如果您需要支付订单,请参考:\"[支付包周期产品订单](https://support.huaweicloud.com/api-oce/zh-cn_topic_0075746561.html)\"。
OrderId *string `json:"order_id,omitempty"`
- // 待创建的云硬盘ID列表,在请求体的metadata字段中指定create_for_volume_id为true时才返回该参数。
+ // 待创建的云硬盘ID列表。 > 说明: > 通过云硬盘ID查询云硬盘详情 ,若返回404 可能云硬盘正在创建中或者已经创建失败。 > 通过JobId查询云硬盘创建任务是否完成[查询job的状态](https://support.huaweicloud.com/api-evs/evs_04_0054.html)。
VolumeIds *[]string `json:"volume_ids,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_detail.go
new file mode 100644
index 00000000..7aa1d64c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_detail.go
@@ -0,0 +1,37 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateVolumeTransferDetail struct {
+
+ // 云硬盘过户的身份认证密钥。
+ AuthKey string `json:"auth_key"`
+
+ // 云硬盘过户记录的创建时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
+ CreatedAt string `json:"created_at"`
+
+ // 云硬盘过户记录的ID。
+ Id string `json:"id"`
+
+ // 云硬盘过户记录的链接。
+ Links []Link `json:"links"`
+
+ // 云硬盘过户记录的名称。
+ Name string `json:"name"`
+
+ // 云硬盘ID。
+ VolumeId string `json:"volume_id"`
+}
+
+func (o CreateVolumeTransferDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateVolumeTransferDetail struct{}"
+ }
+
+ return strings.Join([]string{"CreateVolumeTransferDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_option.go
new file mode 100644
index 00000000..b6ee366c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_create_volume_transfer_option.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateVolumeTransferOption struct {
+
+ // 云硬盘过户记录的名称。最大支持255个字节。
+ Name string `json:"name"`
+
+ // 云硬盘ID。 通过[查询所有云硬盘详情](https://support.huaweicloud.com/api-evs/evs_04_3033.html)获取。
+ VolumeId string `json:"volume_id"`
+}
+
+func (o CreateVolumeTransferOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateVolumeTransferOption struct{}"
+ }
+
+ return strings.Join([]string{"CreateVolumeTransferOption", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_request.go
new file mode 100644
index 00000000..9478d8e4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListVersionsRequest struct {
+}
+
+func (o ListVersionsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListVersionsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListVersionsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_response.go
new file mode 100644
index 00000000..0903ffb7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_list_versions_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListVersionsResponse struct {
+
+ // 版本信息。
+ Versions *[]Versions `json:"versions,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListVersionsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListVersionsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListVersionsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_media_types.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_media_types.go
new file mode 100644
index 00000000..acf49d3b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_media_types.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 接口版本的请求消息类型信息
+type MediaTypes struct {
+
+ // 文本类型
+ Base string `json:"base"`
+
+ // 返回类型
+ Type string `json:"type"`
+}
+
+func (o MediaTypes) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "MediaTypes struct{}"
+ }
+
+ return strings.Join([]string{"MediaTypes", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_request.go
new file mode 100644
index 00000000..e255afa4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_request.go
@@ -0,0 +1,72 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowVersionRequest struct {
+
+ // 查询的目标版本号。 取值为:v1、v2、v3。
+ Version ShowVersionRequestVersion `json:"version"`
+}
+
+func (o ShowVersionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowVersionRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowVersionRequest", string(data)}, " ")
+}
+
+type ShowVersionRequestVersion struct {
+ value string
+}
+
+type ShowVersionRequestVersionEnum struct {
+ V1 ShowVersionRequestVersion
+ V2 ShowVersionRequestVersion
+ V3 ShowVersionRequestVersion
+}
+
+func GetShowVersionRequestVersionEnum() ShowVersionRequestVersionEnum {
+ return ShowVersionRequestVersionEnum{
+ V1: ShowVersionRequestVersion{
+ value: "v1",
+ },
+ V2: ShowVersionRequestVersion{
+ value: "v2",
+ },
+ V3: ShowVersionRequestVersion{
+ value: "v3",
+ },
+ }
+}
+
+func (c ShowVersionRequestVersion) Value() string {
+ return c.value
+}
+
+func (c ShowVersionRequestVersion) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowVersionRequestVersion) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_response.go
new file mode 100644
index 00000000..f8bb6ac8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_show_version_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowVersionResponse struct {
+
+ // 版本信息。
+ Versions *[]Versions `json:"versions,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowVersionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowVersionResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowVersionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_versions.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_versions.go
new file mode 100644
index 00000000..68fe3ad7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_versions.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 版本信息结构体
+type Versions struct {
+
+ // 接口版本的ID
+ Id string `json:"id"`
+
+ // 接口版本信息的URI描述信息
+ Links []Link `json:"links"`
+
+ // 接口版本的请求消息类型信息
+ MediaTypes []MediaTypes `json:"media-types"`
+
+ // 接口版本的最小版本号
+ MinVersion *string `json:"min_version,omitempty"`
+
+ // 接口版本的状态
+ Status string `json:"status"`
+
+ // 接口版本更新时间
+ Updated string `json:"updated"`
+
+ // 接口版本的版本号信息
+ Version string `json:"version"`
+}
+
+func (o Versions) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Versions struct{}"
+ }
+
+ return strings.Join([]string{"Versions", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_detail.go
index 3b7f1a31..866abe64 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_detail.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_detail.go
@@ -60,7 +60,8 @@ type VolumeDetail struct {
// 是否为启动云硬盘。 true:表示为启动云硬盘。 false:表示为非启动云硬盘。
Bootable string `json:"bootable"`
- Metadata *VolumeMetadata `json:"metadata"`
+ // 云硬盘的元数据。 __system__cmkid metadata中的加密cmkid字段,与__system__encrypted配合表示需要加密,cmkid长度固定为36个字节。 > > 请求获取密钥ID的方法请参考:\"[查询密钥列表](https://support.huaweicloud.com/api-dew/ListKeys.html)\"。 __system__encrypted metadata中的表示加密功能的字段,0代表不加密,1代表加密。 不指定该字段时,云硬盘的加密属性与数据源保持一致,如果不是从数据源创建的场景,则默认不加密。 full_clone 从快照创建云硬盘时的创建方式。 * 0表示使用链接克隆方式。 * 1表示使用全量克隆方式。 hw:passthrough * true表示云硬盘的设备类型为SCSI类型,即允许ECS操作系统直接访问底层存储介质。支持SCSI锁命令。 * false表示云硬盘的设备类型为VBD (虚拟块存储设备 , Virtual Block Device)类型,即为默认类型,VBD只能支持简单的SCSI读写命令。 * 该字段不存在时,云硬盘默认为VBD类型。 orderID metadata中的表示云硬盘计费类型的字段。 当该字段有值时,表示该云硬盘的计费类型为包周期计费,否则计费类型为按需计费。
+ Metadata map[string]interface{} `json:"metadata"`
// 云硬盘更新时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
UpdatedAt string `json:"updated_at"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer.go
new file mode 100644
index 00000000..8649fae0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type VolumeTransfer struct {
+
+ // 云硬盘过户记录的创建时间。 时间格式:UTC YYYY-MM-DDTHH:MM:SS.XXXXXX
+ CreatedAt string `json:"created_at"`
+
+ // 云硬盘过户记录的ID。
+ Id string `json:"id"`
+
+ // 云硬盘过户记录的链接。
+ Links []Link `json:"links"`
+
+ // 云硬盘过户记录的名称。
+ Name string `json:"name"`
+
+ // 云硬盘ID。
+ VolumeId string `json:"volume_id"`
+}
+
+func (o VolumeTransfer) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "VolumeTransfer struct{}"
+ }
+
+ return strings.Join([]string{"VolumeTransfer", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer_summary.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer_summary.go
new file mode 100644
index 00000000..7360938f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/evs/v2/model/model_volume_transfer_summary.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type VolumeTransferSummary struct {
+
+ // 云硬盘过户记录的ID。
+ Id string `json:"id"`
+
+ // 云硬盘过户记录的链接
+ Links []Link `json:"links"`
+
+ // 云硬盘过户记录的名称
+ Name string `json:"name"`
+
+ // 云硬盘ID。
+ VolumeId string `json:"volume_id"`
+}
+
+func (o VolumeTransferSummary) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "VolumeTransferSummary struct{}"
+ }
+
+ return strings.Join([]string{"VolumeTransferSummary", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_client.go
index f6af82fa..d127beab 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_client.go
@@ -23,8 +23,7 @@ func GaussDBforNoSQLClientBuilder() *http_client.HcHttpClientBuilder {
//
// 将参数模板应用到实例,可以指定一个或多个实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ApplyConfiguration(request *model.ApplyConfigurationRequest) (*model.ApplyConfigurationResponse, error) {
requestDef := GenReqDefForApplyConfiguration()
@@ -45,8 +44,7 @@ func (c *GaussDBforNoSQLClient) ApplyConfigurationInvoker(request *model.ApplyCo
//
// 批量添加或删除指定数据库实例的标签。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) BatchTagAction(request *model.BatchTagActionRequest) (*model.BatchTagActionResponse, error) {
requestDef := GenReqDefForBatchTagAction()
@@ -63,12 +61,138 @@ func (c *GaussDBforNoSQLClient) BatchTagActionInvoker(request *model.BatchTagAct
return &BatchTagActionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CheckDisasterRecoveryOperation 校验实例是否可以与指定实例建立/解除容灾关系
+//
+// 校验实例是否可以与指定实例建立/解除容灾关系。若接口返回成功,表示可以与指定实例建立/解除容灾关系。
+// 该接口需要对建立/解除容灾关系的两个实例各调用一次,2次调用都响应成功才能进行容灾关系的搭建/解除。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CheckDisasterRecoveryOperation(request *model.CheckDisasterRecoveryOperationRequest) (*model.CheckDisasterRecoveryOperationResponse, error) {
+ requestDef := GenReqDefForCheckDisasterRecoveryOperation()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CheckDisasterRecoveryOperationResponse), nil
+ }
+}
+
+// CheckDisasterRecoveryOperationInvoker 校验实例是否可以与指定实例建立/解除容灾关系
+func (c *GaussDBforNoSQLClient) CheckDisasterRecoveryOperationInvoker(request *model.CheckDisasterRecoveryOperationRequest) *CheckDisasterRecoveryOperationInvoker {
+ requestDef := GenReqDefForCheckDisasterRecoveryOperation()
+ return &CheckDisasterRecoveryOperationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CheckWeekPassword 判断弱密码
+//
+// 判断弱密码。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CheckWeekPassword(request *model.CheckWeekPasswordRequest) (*model.CheckWeekPasswordResponse, error) {
+ requestDef := GenReqDefForCheckWeekPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CheckWeekPasswordResponse), nil
+ }
+}
+
+// CheckWeekPasswordInvoker 判断弱密码
+func (c *GaussDBforNoSQLClient) CheckWeekPasswordInvoker(request *model.CheckWeekPasswordRequest) *CheckWeekPasswordInvoker {
+ requestDef := GenReqDefForCheckWeekPassword()
+ return &CheckWeekPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CompareConfiguration 参数模板比较
+//
+// 比较两个参数模板之间的差异
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CompareConfiguration(request *model.CompareConfigurationRequest) (*model.CompareConfigurationResponse, error) {
+ requestDef := GenReqDefForCompareConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CompareConfigurationResponse), nil
+ }
+}
+
+// CompareConfigurationInvoker 参数模板比较
+func (c *GaussDBforNoSQLClient) CompareConfigurationInvoker(request *model.CompareConfigurationRequest) *CompareConfigurationInvoker {
+ requestDef := GenReqDefForCompareConfiguration()
+ return &CompareConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CopyConfiguration 复制参数模板
+//
+// 复制参数模板
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CopyConfiguration(request *model.CopyConfigurationRequest) (*model.CopyConfigurationResponse, error) {
+ requestDef := GenReqDefForCopyConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CopyConfigurationResponse), nil
+ }
+}
+
+// CopyConfigurationInvoker 复制参数模板
+func (c *GaussDBforNoSQLClient) CopyConfigurationInvoker(request *model.CopyConfigurationRequest) *CopyConfigurationInvoker {
+ requestDef := GenReqDefForCopyConfiguration()
+ return &CopyConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateBack 创建手动备份
+//
+// 创建手动备份。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CreateBack(request *model.CreateBackRequest) (*model.CreateBackResponse, error) {
+ requestDef := GenReqDefForCreateBack()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateBackResponse), nil
+ }
+}
+
+// CreateBackInvoker 创建手动备份
+func (c *GaussDBforNoSQLClient) CreateBackInvoker(request *model.CreateBackRequest) *CreateBackInvoker {
+ requestDef := GenReqDefForCreateBack()
+ return &CreateBackInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateColdVolume ‘创建冷数据存储’
+//
+// ‘创建冷数据存储’
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CreateColdVolume(request *model.CreateColdVolumeRequest) (*model.CreateColdVolumeResponse, error) {
+ requestDef := GenReqDefForCreateColdVolume()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateColdVolumeResponse), nil
+ }
+}
+
+// CreateColdVolumeInvoker ‘创建冷数据存储’
+func (c *GaussDBforNoSQLClient) CreateColdVolumeInvoker(request *model.CreateColdVolumeRequest) *CreateColdVolumeInvoker {
+ requestDef := GenReqDefForCreateColdVolume()
+ return &CreateColdVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateConfiguration 创建参数模板
//
// 创建参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) CreateConfiguration(request *model.CreateConfigurationRequest) (*model.CreateConfigurationResponse, error) {
requestDef := GenReqDefForCreateConfiguration()
@@ -85,12 +209,53 @@ func (c *GaussDBforNoSQLClient) CreateConfigurationInvoker(request *model.Create
return &CreateConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CreateDbUser 创建Redis数据库账号
+//
+// 在Redis实例中创建数据库帐号。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CreateDbUser(request *model.CreateDbUserRequest) (*model.CreateDbUserResponse, error) {
+ requestDef := GenReqDefForCreateDbUser()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateDbUserResponse), nil
+ }
+}
+
+// CreateDbUserInvoker 创建Redis数据库账号
+func (c *GaussDBforNoSQLClient) CreateDbUserInvoker(request *model.CreateDbUserRequest) *CreateDbUserInvoker {
+ requestDef := GenReqDefForCreateDbUser()
+ return &CreateDbUserInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateDisasterRecovery 搭建实例与特定实例的容灾关系
+//
+// 搭建实例与特定实例的容灾关系。 该接口需要对搭建容灾关系的两个实例分别各调用一次,2次接口都调用成功才能成功搭建容灾关系。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) CreateDisasterRecovery(request *model.CreateDisasterRecoveryRequest) (*model.CreateDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForCreateDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateDisasterRecoveryResponse), nil
+ }
+}
+
+// CreateDisasterRecoveryInvoker 搭建实例与特定实例的容灾关系
+func (c *GaussDBforNoSQLClient) CreateDisasterRecoveryInvoker(request *model.CreateDisasterRecoveryRequest) *CreateDisasterRecoveryInvoker {
+ requestDef := GenReqDefForCreateDisasterRecovery()
+ return &CreateDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateInstance 创建实例
//
// 创建数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error) {
requestDef := GenReqDefForCreateInstance()
@@ -107,12 +272,32 @@ func (c *GaussDBforNoSQLClient) CreateInstanceInvoker(request *model.CreateInsta
return &CreateInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteBackup 删除手动备份
+//
+// 删除手动备份
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) DeleteBackup(request *model.DeleteBackupRequest) (*model.DeleteBackupResponse, error) {
+ requestDef := GenReqDefForDeleteBackup()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteBackupResponse), nil
+ }
+}
+
+// DeleteBackupInvoker 删除手动备份
+func (c *GaussDBforNoSQLClient) DeleteBackupInvoker(request *model.DeleteBackupRequest) *DeleteBackupInvoker {
+ requestDef := GenReqDefForDeleteBackup()
+ return &DeleteBackupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteConfiguration 删除参数模板
//
// 删除指定参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) DeleteConfiguration(request *model.DeleteConfigurationRequest) (*model.DeleteConfigurationResponse, error) {
requestDef := GenReqDefForDeleteConfiguration()
@@ -129,12 +314,74 @@ func (c *GaussDBforNoSQLClient) DeleteConfigurationInvoker(request *model.Delete
return &DeleteConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteDbUser 删除Redis数据库账号
+//
+// 删除Redis实例的数据库账号。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) DeleteDbUser(request *model.DeleteDbUserRequest) (*model.DeleteDbUserResponse, error) {
+ requestDef := GenReqDefForDeleteDbUser()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteDbUserResponse), nil
+ }
+}
+
+// DeleteDbUserInvoker 删除Redis数据库账号
+func (c *GaussDBforNoSQLClient) DeleteDbUserInvoker(request *model.DeleteDbUserRequest) *DeleteDbUserInvoker {
+ requestDef := GenReqDefForDeleteDbUser()
+ return &DeleteDbUserInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteDisasterRecovery 解除实例与特定实例的容灾关系
+//
+// 解除实例与特定实例的容灾关系。 该接口需要对搭建容灾关系的两个实例分别各调用一次,2次接口都调用成功才能成功解除容灾关系。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) DeleteDisasterRecovery(request *model.DeleteDisasterRecoveryRequest) (*model.DeleteDisasterRecoveryResponse, error) {
+ requestDef := GenReqDefForDeleteDisasterRecovery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteDisasterRecoveryResponse), nil
+ }
+}
+
+// DeleteDisasterRecoveryInvoker 解除实例与特定实例的容灾关系
+func (c *GaussDBforNoSQLClient) DeleteDisasterRecoveryInvoker(request *model.DeleteDisasterRecoveryRequest) *DeleteDisasterRecoveryInvoker {
+ requestDef := GenReqDefForDeleteDisasterRecovery()
+ return &DeleteDisasterRecoveryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteEnlargeFailNode 删除扩容失败的节点
+//
+// 删除扩容失败的节点
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) DeleteEnlargeFailNode(request *model.DeleteEnlargeFailNodeRequest) (*model.DeleteEnlargeFailNodeResponse, error) {
+ requestDef := GenReqDefForDeleteEnlargeFailNode()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteEnlargeFailNodeResponse), nil
+ }
+}
+
+// DeleteEnlargeFailNodeInvoker 删除扩容失败的节点
+func (c *GaussDBforNoSQLClient) DeleteEnlargeFailNodeInvoker(request *model.DeleteEnlargeFailNodeRequest) *DeleteEnlargeFailNodeInvoker {
+ requestDef := GenReqDefForDeleteEnlargeFailNode()
+ return &DeleteEnlargeFailNodeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteInstance 删除实例
//
// 删除数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error) {
requestDef := GenReqDefForDeleteInstance()
@@ -155,8 +402,7 @@ func (c *GaussDBforNoSQLClient) DeleteInstanceInvoker(request *model.DeleteInsta
//
// 扩容指定集群实例的节点数量。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ExpandInstanceNode(request *model.ExpandInstanceNodeRequest) (*model.ExpandInstanceNodeResponse, error) {
requestDef := GenReqDefForExpandInstanceNode()
@@ -173,12 +419,53 @@ func (c *GaussDBforNoSQLClient) ExpandInstanceNodeInvoker(request *model.ExpandI
return &ExpandInstanceNodeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListAvailableFlavorInfos 查询实例可变更规格
+//
+// 查询实例可变更规格。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListAvailableFlavorInfos(request *model.ListAvailableFlavorInfosRequest) (*model.ListAvailableFlavorInfosResponse, error) {
+ requestDef := GenReqDefForListAvailableFlavorInfos()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAvailableFlavorInfosResponse), nil
+ }
+}
+
+// ListAvailableFlavorInfosInvoker 查询实例可变更规格
+func (c *GaussDBforNoSQLClient) ListAvailableFlavorInfosInvoker(request *model.ListAvailableFlavorInfosRequest) *ListAvailableFlavorInfosInvoker {
+ requestDef := GenReqDefForListAvailableFlavorInfos()
+ return &ListAvailableFlavorInfosInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListConfigurationDatastores 查询支持参数模板的引擎信息
+//
+// 查询支持参数模板的引擎信息
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListConfigurationDatastores(request *model.ListConfigurationDatastoresRequest) (*model.ListConfigurationDatastoresResponse, error) {
+ requestDef := GenReqDefForListConfigurationDatastores()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListConfigurationDatastoresResponse), nil
+ }
+}
+
+// ListConfigurationDatastoresInvoker 查询支持参数模板的引擎信息
+func (c *GaussDBforNoSQLClient) ListConfigurationDatastoresInvoker(request *model.ListConfigurationDatastoresRequest) *ListConfigurationDatastoresInvoker {
+ requestDef := GenReqDefForListConfigurationDatastores()
+ return &ListConfigurationDatastoresInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListConfigurationTemplates 获取参数模板列表
//
// 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListConfigurationTemplates(request *model.ListConfigurationTemplatesRequest) (*model.ListConfigurationTemplatesResponse, error) {
requestDef := GenReqDefForListConfigurationTemplates()
@@ -199,8 +486,7 @@ func (c *GaussDBforNoSQLClient) ListConfigurationTemplatesInvoker(request *model
//
// 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error) {
requestDef := GenReqDefForListConfigurations()
@@ -221,8 +507,7 @@ func (c *GaussDBforNoSQLClient) ListConfigurationsInvoker(request *model.ListCon
//
// 查询指定实例类型的数据库版本信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListDatastores(request *model.ListDatastoresRequest) (*model.ListDatastoresResponse, error) {
requestDef := GenReqDefForListDatastores()
@@ -239,12 +524,32 @@ func (c *GaussDBforNoSQLClient) ListDatastoresInvoker(request *model.ListDatasto
return &ListDatastoresInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListDbUsers 获取Redis数据库账号列表和详情
+//
+// 获取Redis数据库账号列表和详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListDbUsers(request *model.ListDbUsersRequest) (*model.ListDbUsersResponse, error) {
+ requestDef := GenReqDefForListDbUsers()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListDbUsersResponse), nil
+ }
+}
+
+// ListDbUsersInvoker 获取Redis数据库账号列表和详情
+func (c *GaussDBforNoSQLClient) ListDbUsersInvoker(request *model.ListDbUsersRequest) *ListDbUsersInvoker {
+ requestDef := GenReqDefForListDbUsers()
+ return &ListDbUsersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListDedicatedResources 查询专属资源列表
//
// 查询专属资源列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListDedicatedResources(request *model.ListDedicatedResourcesRequest) (*model.ListDedicatedResourcesResponse, error) {
requestDef := GenReqDefForListDedicatedResources()
@@ -261,12 +566,32 @@ func (c *GaussDBforNoSQLClient) ListDedicatedResourcesInvoker(request *model.Lis
return &ListDedicatedResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListEpsQuotas 查询企业项目配额
+//
+// 查询企业项目配额。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListEpsQuotas(request *model.ListEpsQuotasRequest) (*model.ListEpsQuotasResponse, error) {
+ requestDef := GenReqDefForListEpsQuotas()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListEpsQuotasResponse), nil
+ }
+}
+
+// ListEpsQuotasInvoker 查询企业项目配额
+func (c *GaussDBforNoSQLClient) ListEpsQuotasInvoker(request *model.ListEpsQuotasRequest) *ListEpsQuotasInvoker {
+ requestDef := GenReqDefForListEpsQuotas()
+ return &ListEpsQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListFlavorInfos 查询数据库规格
//
// 查询指定条件下的实例规格信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListFlavorInfos(request *model.ListFlavorInfosRequest) (*model.ListFlavorInfosResponse, error) {
requestDef := GenReqDefForListFlavorInfos()
@@ -287,8 +612,7 @@ func (c *GaussDBforNoSQLClient) ListFlavorInfosInvoker(request *model.ListFlavor
//
// 查询指定条件下的所有实例规格信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -305,12 +629,32 @@ func (c *GaussDBforNoSQLClient) ListFlavorsInvoker(request *model.ListFlavorsReq
return &ListFlavorsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListInstanceDatabases 获取Redis实例数据库列表
+//
+// 获取Redis实例数据库列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListInstanceDatabases(request *model.ListInstanceDatabasesRequest) (*model.ListInstanceDatabasesResponse, error) {
+ requestDef := GenReqDefForListInstanceDatabases()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListInstanceDatabasesResponse), nil
+ }
+}
+
+// ListInstanceDatabasesInvoker 获取Redis实例数据库列表
+func (c *GaussDBforNoSQLClient) ListInstanceDatabasesInvoker(request *model.ListInstanceDatabasesRequest) *ListInstanceDatabasesInvoker {
+ requestDef := GenReqDefForListInstanceDatabases()
+ return &ListInstanceDatabasesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListInstanceTags 查询资源标签
//
// 查询指定实例的标签信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error) {
requestDef := GenReqDefForListInstanceTags()
@@ -331,8 +675,7 @@ func (c *GaussDBforNoSQLClient) ListInstanceTagsInvoker(request *model.ListInsta
//
// 根据指定条件查询数据库实例列表和详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error) {
requestDef := GenReqDefForListInstances()
@@ -353,8 +696,7 @@ func (c *GaussDBforNoSQLClient) ListInstancesInvoker(request *model.ListInstance
//
// 根据标签查询指定的数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListInstancesByResourceTags(request *model.ListInstancesByResourceTagsRequest) (*model.ListInstancesByResourceTagsResponse, error) {
requestDef := GenReqDefForListInstancesByResourceTags()
@@ -375,8 +717,7 @@ func (c *GaussDBforNoSQLClient) ListInstancesByResourceTagsInvoker(request *mode
//
// 根据标签查询指定的数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListInstancesByTags(request *model.ListInstancesByTagsRequest) (*model.ListInstancesByTagsResponse, error) {
requestDef := GenReqDefForListInstancesByTags()
@@ -393,166 +734,579 @@ func (c *GaussDBforNoSQLClient) ListInstancesByTagsInvoker(request *model.ListIn
return &ListInstancesByTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ListSlowLogs 查询数据库慢日志
+// ListProjectTags 查询项目标签
//
-// 查询数据库慢日志信息。
+// 查询指定项目的标签信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ListSlowLogs(request *model.ListSlowLogsRequest) (*model.ListSlowLogsResponse, error) {
- requestDef := GenReqDefForListSlowLogs()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error) {
+ requestDef := GenReqDefForListProjectTags()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ListSlowLogsResponse), nil
+ return resp.(*model.ListProjectTagsResponse), nil
}
}
-// ListSlowLogsInvoker 查询数据库慢日志
-func (c *GaussDBforNoSQLClient) ListSlowLogsInvoker(request *model.ListSlowLogsRequest) *ListSlowLogsInvoker {
- requestDef := GenReqDefForListSlowLogs()
- return &ListSlowLogsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListProjectTagsInvoker 查询项目标签
+func (c *GaussDBforNoSQLClient) ListProjectTagsInvoker(request *model.ListProjectTagsRequest) *ListProjectTagsInvoker {
+ requestDef := GenReqDefForListProjectTags()
+ return &ListProjectTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ResetPassword 修改实例的管理员密码
+// ListRecycleInstances 查询回收站实例列表
//
-// 修改实例的管理员密码。
+// 查询回收站所有引擎的实例列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error) {
- requestDef := GenReqDefForResetPassword()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListRecycleInstances(request *model.ListRecycleInstancesRequest) (*model.ListRecycleInstancesResponse, error) {
+ requestDef := GenReqDefForListRecycleInstances()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ResetPasswordResponse), nil
+ return resp.(*model.ListRecycleInstancesResponse), nil
}
}
-// ResetPasswordInvoker 修改实例的管理员密码
-func (c *GaussDBforNoSQLClient) ResetPasswordInvoker(request *model.ResetPasswordRequest) *ResetPasswordInvoker {
- requestDef := GenReqDefForResetPassword()
- return &ResetPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListRecycleInstancesInvoker 查询回收站实例列表
+func (c *GaussDBforNoSQLClient) ListRecycleInstancesInvoker(request *model.ListRecycleInstancesRequest) *ListRecycleInstancesInvoker {
+ requestDef := GenReqDefForListRecycleInstances()
+ return &ListRecycleInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ResizeInstance 变更实例规格
+// ListRestoreTime 查询实例可恢复的时间段
//
-// 变更实例的规格。
+// 查询实例可恢复的时间段
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error) {
- requestDef := GenReqDefForResizeInstance()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListRestoreTime(request *model.ListRestoreTimeRequest) (*model.ListRestoreTimeResponse, error) {
+ requestDef := GenReqDefForListRestoreTime()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ResizeInstanceResponse), nil
+ return resp.(*model.ListRestoreTimeResponse), nil
}
}
-// ResizeInstanceInvoker 变更实例规格
-func (c *GaussDBforNoSQLClient) ResizeInstanceInvoker(request *model.ResizeInstanceRequest) *ResizeInstanceInvoker {
- requestDef := GenReqDefForResizeInstance()
- return &ResizeInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListRestoreTimeInvoker 查询实例可恢复的时间段
+func (c *GaussDBforNoSQLClient) ListRestoreTimeInvoker(request *model.ListRestoreTimeRequest) *ListRestoreTimeInvoker {
+ requestDef := GenReqDefForListRestoreTime()
+ return &ListRestoreTimeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ResizeInstanceVolume 扩容实例存储容量
+// ListSlowLogs 查询数据库慢日志
//
-// 扩容实例的存储容量大小。
+// 查询数据库慢日志信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ResizeInstanceVolume(request *model.ResizeInstanceVolumeRequest) (*model.ResizeInstanceVolumeResponse, error) {
- requestDef := GenReqDefForResizeInstanceVolume()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ListSlowLogs(request *model.ListSlowLogsRequest) (*model.ListSlowLogsResponse, error) {
+ requestDef := GenReqDefForListSlowLogs()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ResizeInstanceVolumeResponse), nil
+ return resp.(*model.ListSlowLogsResponse), nil
}
}
-// ResizeInstanceVolumeInvoker 扩容实例存储容量
-func (c *GaussDBforNoSQLClient) ResizeInstanceVolumeInvoker(request *model.ResizeInstanceVolumeRequest) *ResizeInstanceVolumeInvoker {
- requestDef := GenReqDefForResizeInstanceVolume()
- return &ResizeInstanceVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ListSlowLogsInvoker 查询数据库慢日志
+func (c *GaussDBforNoSQLClient) ListSlowLogsInvoker(request *model.ListSlowLogsRequest) *ListSlowLogsInvoker {
+ requestDef := GenReqDefForListSlowLogs()
+ return &ListSlowLogsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// SetBackupPolicy 设置自动备份策略
+// ModifyDbUserPrivilege 修改Redis数据库帐号权限
//
-// 设置自动备份策略。
+// 修改Redis数据库帐号权限。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error) {
- requestDef := GenReqDefForSetBackupPolicy()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ModifyDbUserPrivilege(request *model.ModifyDbUserPrivilegeRequest) (*model.ModifyDbUserPrivilegeResponse, error) {
+ requestDef := GenReqDefForModifyDbUserPrivilege()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.SetBackupPolicyResponse), nil
+ return resp.(*model.ModifyDbUserPrivilegeResponse), nil
}
}
-// SetBackupPolicyInvoker 设置自动备份策略
-func (c *GaussDBforNoSQLClient) SetBackupPolicyInvoker(request *model.SetBackupPolicyRequest) *SetBackupPolicyInvoker {
- requestDef := GenReqDefForSetBackupPolicy()
- return &SetBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ModifyDbUserPrivilegeInvoker 修改Redis数据库帐号权限
+func (c *GaussDBforNoSQLClient) ModifyDbUserPrivilegeInvoker(request *model.ModifyDbUserPrivilegeRequest) *ModifyDbUserPrivilegeInvoker {
+ requestDef := GenReqDefForModifyDbUserPrivilege()
+ return &ModifyDbUserPrivilegeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ShowBackupPolicy 查询自动备份策略
+// ModifyEpsQuotas 修改企业项目配额
//
-// 查询自动备份策略。
+// 修改企业项目配额。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error) {
- requestDef := GenReqDefForShowBackupPolicy()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ModifyEpsQuotas(request *model.ModifyEpsQuotasRequest) (*model.ModifyEpsQuotasResponse, error) {
+ requestDef := GenReqDefForModifyEpsQuotas()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ShowBackupPolicyResponse), nil
+ return resp.(*model.ModifyEpsQuotasResponse), nil
}
}
-// ShowBackupPolicyInvoker 查询自动备份策略
-func (c *GaussDBforNoSQLClient) ShowBackupPolicyInvoker(request *model.ShowBackupPolicyRequest) *ShowBackupPolicyInvoker {
- requestDef := GenReqDefForShowBackupPolicy()
- return &ShowBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+// ModifyEpsQuotasInvoker 修改企业项目配额
+func (c *GaussDBforNoSQLClient) ModifyEpsQuotasInvoker(request *model.ModifyEpsQuotasRequest) *ModifyEpsQuotasInvoker {
+ requestDef := GenReqDefForModifyEpsQuotas()
+ return &ModifyEpsQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ShowConfigurationDetail 获取指定参数模板的参数
+// ModifyPort 修改数据库端口
//
-// 获取指定参数模板的详细信息。
+// 修改数据库实例的端口。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
-func (c *GaussDBforNoSQLClient) ShowConfigurationDetail(request *model.ShowConfigurationDetailRequest) (*model.ShowConfigurationDetailResponse, error) {
- requestDef := GenReqDefForShowConfigurationDetail()
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ModifyPort(request *model.ModifyPortRequest) (*model.ModifyPortResponse, error) {
+ requestDef := GenReqDefForModifyPort()
if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
return nil, err
} else {
- return resp.(*model.ShowConfigurationDetailResponse), nil
+ return resp.(*model.ModifyPortResponse), nil
}
}
-// ShowConfigurationDetailInvoker 获取指定参数模板的参数
+// ModifyPortInvoker 修改数据库端口
+func (c *GaussDBforNoSQLClient) ModifyPortInvoker(request *model.ModifyPortRequest) *ModifyPortInvoker {
+ requestDef := GenReqDefForModifyPort()
+ return &ModifyPortInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ModifyPublicIp 绑定/解绑弹性公网IP
+//
+// 实例下的节点绑定弹性公网IP/解绑弹性公网IP
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ModifyPublicIp(request *model.ModifyPublicIpRequest) (*model.ModifyPublicIpResponse, error) {
+ requestDef := GenReqDefForModifyPublicIp()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ModifyPublicIpResponse), nil
+ }
+}
+
+// ModifyPublicIpInvoker 绑定/解绑弹性公网IP
+func (c *GaussDBforNoSQLClient) ModifyPublicIpInvoker(request *model.ModifyPublicIpRequest) *ModifyPublicIpInvoker {
+ requestDef := GenReqDefForModifyPublicIp()
+ return &ModifyPublicIpInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ModifyVolume 变更实例存储容量
+//
+// 变更实例的存储容量大小
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ModifyVolume(request *model.ModifyVolumeRequest) (*model.ModifyVolumeResponse, error) {
+ requestDef := GenReqDefForModifyVolume()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ModifyVolumeResponse), nil
+ }
+}
+
+// ModifyVolumeInvoker 变更实例存储容量
+func (c *GaussDBforNoSQLClient) ModifyVolumeInvoker(request *model.ModifyVolumeRequest) *ModifyVolumeInvoker {
+ requestDef := GenReqDefForModifyVolume()
+ return &ModifyVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// PauseResumeDataSynchronization 暂停/恢复具备容灾关系的实例数据同步
+//
+// 该接口用于暂停/恢复具备容灾关系的实例数据同步。
+//
+// 该接口需要对具备容灾关系的两个实例分别各调用一次,2次接口都调用成功才能成功暂停/恢复容灾实例数据同步。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) PauseResumeDataSynchronization(request *model.PauseResumeDataSynchronizationRequest) (*model.PauseResumeDataSynchronizationResponse, error) {
+ requestDef := GenReqDefForPauseResumeDataSynchronization()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.PauseResumeDataSynchronizationResponse), nil
+ }
+}
+
+// PauseResumeDataSynchronizationInvoker 暂停/恢复具备容灾关系的实例数据同步
+func (c *GaussDBforNoSQLClient) PauseResumeDataSynchronizationInvoker(request *model.PauseResumeDataSynchronizationRequest) *PauseResumeDataSynchronizationInvoker {
+ requestDef := GenReqDefForPauseResumeDataSynchronization()
+ return &PauseResumeDataSynchronizationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResetDbUserPassword 重置Redis数据库账号密码
+//
+// 重置Redis数据库账号密码。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ResetDbUserPassword(request *model.ResetDbUserPasswordRequest) (*model.ResetDbUserPasswordResponse, error) {
+ requestDef := GenReqDefForResetDbUserPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResetDbUserPasswordResponse), nil
+ }
+}
+
+// ResetDbUserPasswordInvoker 重置Redis数据库账号密码
+func (c *GaussDBforNoSQLClient) ResetDbUserPasswordInvoker(request *model.ResetDbUserPasswordRequest) *ResetDbUserPasswordInvoker {
+ requestDef := GenReqDefForResetDbUserPassword()
+ return &ResetDbUserPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResetPassword 修改实例的管理员密码
+//
+// 修改实例的管理员密码。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ResetPassword(request *model.ResetPasswordRequest) (*model.ResetPasswordResponse, error) {
+ requestDef := GenReqDefForResetPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResetPasswordResponse), nil
+ }
+}
+
+// ResetPasswordInvoker 修改实例的管理员密码
+func (c *GaussDBforNoSQLClient) ResetPasswordInvoker(request *model.ResetPasswordRequest) *ResetPasswordInvoker {
+ requestDef := GenReqDefForResetPassword()
+ return &ResetPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResizeColdVolume 扩容冷数据存储
+//
+// 扩容冷数据存储。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ResizeColdVolume(request *model.ResizeColdVolumeRequest) (*model.ResizeColdVolumeResponse, error) {
+ requestDef := GenReqDefForResizeColdVolume()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResizeColdVolumeResponse), nil
+ }
+}
+
+// ResizeColdVolumeInvoker 扩容冷数据存储
+func (c *GaussDBforNoSQLClient) ResizeColdVolumeInvoker(request *model.ResizeColdVolumeRequest) *ResizeColdVolumeInvoker {
+ requestDef := GenReqDefForResizeColdVolume()
+ return &ResizeColdVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResizeInstance 变更实例规格
+//
+// 变更实例的规格。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ResizeInstance(request *model.ResizeInstanceRequest) (*model.ResizeInstanceResponse, error) {
+ requestDef := GenReqDefForResizeInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResizeInstanceResponse), nil
+ }
+}
+
+// ResizeInstanceInvoker 变更实例规格
+func (c *GaussDBforNoSQLClient) ResizeInstanceInvoker(request *model.ResizeInstanceRequest) *ResizeInstanceInvoker {
+ requestDef := GenReqDefForResizeInstance()
+ return &ResizeInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResizeInstanceVolume 扩容实例存储容量
+//
+// 扩容实例的存储容量大小。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ResizeInstanceVolume(request *model.ResizeInstanceVolumeRequest) (*model.ResizeInstanceVolumeResponse, error) {
+ requestDef := GenReqDefForResizeInstanceVolume()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResizeInstanceVolumeResponse), nil
+ }
+}
+
+// ResizeInstanceVolumeInvoker 扩容实例存储容量
+func (c *GaussDBforNoSQLClient) ResizeInstanceVolumeInvoker(request *model.ResizeInstanceVolumeRequest) *ResizeInstanceVolumeInvoker {
+ requestDef := GenReqDefForResizeInstanceVolume()
+ return &ResizeInstanceVolumeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// RestartInstance 重启实例的数据库服务
+//
+// 重启实例的数据库服务。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error) {
+ requestDef := GenReqDefForRestartInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RestartInstanceResponse), nil
+ }
+}
+
+// RestartInstanceInvoker 重启实例的数据库服务
+func (c *GaussDBforNoSQLClient) RestartInstanceInvoker(request *model.RestartInstanceRequest) *RestartInstanceInvoker {
+ requestDef := GenReqDefForRestartInstance()
+ return &RestartInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// RestoreExistingInstance 恢复到已有实例
+//
+// 恢复到已有实例
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) RestoreExistingInstance(request *model.RestoreExistingInstanceRequest) (*model.RestoreExistingInstanceResponse, error) {
+ requestDef := GenReqDefForRestoreExistingInstance()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RestoreExistingInstanceResponse), nil
+ }
+}
+
+// RestoreExistingInstanceInvoker 恢复到已有实例
+func (c *GaussDBforNoSQLClient) RestoreExistingInstanceInvoker(request *model.RestoreExistingInstanceRequest) *RestoreExistingInstanceInvoker {
+ requestDef := GenReqDefForRestoreExistingInstance()
+ return &RestoreExistingInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SetAutoEnlargePolicy 设置磁盘自动扩容策略
+//
+// 设置磁盘自动扩容策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SetAutoEnlargePolicy(request *model.SetAutoEnlargePolicyRequest) (*model.SetAutoEnlargePolicyResponse, error) {
+ requestDef := GenReqDefForSetAutoEnlargePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SetAutoEnlargePolicyResponse), nil
+ }
+}
+
+// SetAutoEnlargePolicyInvoker 设置磁盘自动扩容策略
+func (c *GaussDBforNoSQLClient) SetAutoEnlargePolicyInvoker(request *model.SetAutoEnlargePolicyRequest) *SetAutoEnlargePolicyInvoker {
+ requestDef := GenReqDefForSetAutoEnlargePolicy()
+ return &SetAutoEnlargePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SetBackupPolicy 设置自动备份策略
+//
+// 设置自动备份策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error) {
+ requestDef := GenReqDefForSetBackupPolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SetBackupPolicyResponse), nil
+ }
+}
+
+// SetBackupPolicyInvoker 设置自动备份策略
+func (c *GaussDBforNoSQLClient) SetBackupPolicyInvoker(request *model.SetBackupPolicyRequest) *SetBackupPolicyInvoker {
+ requestDef := GenReqDefForSetBackupPolicy()
+ return &SetBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SetRecyclePolicy 设置回收策略
+//
+// 设置已删除实例保留天数,修改保留天数后删除的实例按照新的天数保留,修改之前已在回收站的实例保留天数不变。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SetRecyclePolicy(request *model.SetRecyclePolicyRequest) (*model.SetRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForSetRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
+// SetRecyclePolicyInvoker 设置回收策略
+func (c *GaussDBforNoSQLClient) SetRecyclePolicyInvoker(request *model.SetRecyclePolicyRequest) *SetRecyclePolicyInvoker {
+ requestDef := GenReqDefForSetRecyclePolicy()
+ return &SetRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowAllInstancesBackups 查询备份列表
+//
+// 根据指定条件查询备份列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowAllInstancesBackups(request *model.ShowAllInstancesBackupsRequest) (*model.ShowAllInstancesBackupsResponse, error) {
+ requestDef := GenReqDefForShowAllInstancesBackups()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowAllInstancesBackupsResponse), nil
+ }
+}
+
+// ShowAllInstancesBackupsInvoker 查询备份列表
+func (c *GaussDBforNoSQLClient) ShowAllInstancesBackupsInvoker(request *model.ShowAllInstancesBackupsRequest) *ShowAllInstancesBackupsInvoker {
+ requestDef := GenReqDefForShowAllInstancesBackups()
+ return &ShowAllInstancesBackupsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowApplicableInstances 查询参数模板可应用的实例列表
+//
+// 查询参数模板可应用的实例列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowApplicableInstances(request *model.ShowApplicableInstancesRequest) (*model.ShowApplicableInstancesResponse, error) {
+ requestDef := GenReqDefForShowApplicableInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowApplicableInstancesResponse), nil
+ }
+}
+
+// ShowApplicableInstancesInvoker 查询参数模板可应用的实例列表
+func (c *GaussDBforNoSQLClient) ShowApplicableInstancesInvoker(request *model.ShowApplicableInstancesRequest) *ShowApplicableInstancesInvoker {
+ requestDef := GenReqDefForShowApplicableInstances()
+ return &ShowApplicableInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowApplyHistory 查询参数模板应用历史
+//
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowApplyHistory(request *model.ShowApplyHistoryRequest) (*model.ShowApplyHistoryResponse, error) {
+ requestDef := GenReqDefForShowApplyHistory()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowApplyHistoryResponse), nil
+ }
+}
+
+// ShowApplyHistoryInvoker 查询参数模板应用历史
+func (c *GaussDBforNoSQLClient) ShowApplyHistoryInvoker(request *model.ShowApplyHistoryRequest) *ShowApplyHistoryInvoker {
+ requestDef := GenReqDefForShowApplyHistory()
+ return &ShowApplyHistoryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowAutoEnlargePolicy 查询磁盘自动扩容策略
+//
+// 查询磁盘自动扩容策略
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowAutoEnlargePolicy(request *model.ShowAutoEnlargePolicyRequest) (*model.ShowAutoEnlargePolicyResponse, error) {
+ requestDef := GenReqDefForShowAutoEnlargePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowAutoEnlargePolicyResponse), nil
+ }
+}
+
+// ShowAutoEnlargePolicyInvoker 查询磁盘自动扩容策略
+func (c *GaussDBforNoSQLClient) ShowAutoEnlargePolicyInvoker(request *model.ShowAutoEnlargePolicyRequest) *ShowAutoEnlargePolicyInvoker {
+ requestDef := GenReqDefForShowAutoEnlargePolicy()
+ return &ShowAutoEnlargePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowBackupPolicy 查询自动备份策略
+//
+// 查询自动备份策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error) {
+ requestDef := GenReqDefForShowBackupPolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowBackupPolicyResponse), nil
+ }
+}
+
+// ShowBackupPolicyInvoker 查询自动备份策略
+func (c *GaussDBforNoSQLClient) ShowBackupPolicyInvoker(request *model.ShowBackupPolicyRequest) *ShowBackupPolicyInvoker {
+ requestDef := GenReqDefForShowBackupPolicy()
+ return &ShowBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowConfigurationDetail 获取指定参数模板的参数
+//
+// 获取指定参数模板的详细信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowConfigurationDetail(request *model.ShowConfigurationDetailRequest) (*model.ShowConfigurationDetailResponse, error) {
+ requestDef := GenReqDefForShowConfigurationDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationDetailResponse), nil
+ }
+}
+
+// ShowConfigurationDetailInvoker 获取指定参数模板的参数
func (c *GaussDBforNoSQLClient) ShowConfigurationDetailInvoker(request *model.ShowConfigurationDetailRequest) *ShowConfigurationDetailInvoker {
requestDef := GenReqDefForShowConfigurationDetail()
return &ShowConfigurationDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowErrorLog 查询数据库错误日志信息
+//
+// 查询数据库错误日志
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowErrorLog(request *model.ShowErrorLogRequest) (*model.ShowErrorLogResponse, error) {
+ requestDef := GenReqDefForShowErrorLog()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowErrorLogResponse), nil
+ }
+}
+
+// ShowErrorLogInvoker 查询数据库错误日志信息
+func (c *GaussDBforNoSQLClient) ShowErrorLogInvoker(request *model.ShowErrorLogRequest) *ShowErrorLogInvoker {
+ requestDef := GenReqDefForShowErrorLog()
+ return &ShowErrorLogInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowInstanceConfiguration 获取指定实例的参数
//
// 获取指定实例的参数信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ShowInstanceConfiguration(request *model.ShowInstanceConfigurationRequest) (*model.ShowInstanceConfigurationResponse, error) {
requestDef := GenReqDefForShowInstanceConfiguration()
@@ -569,12 +1323,95 @@ func (c *GaussDBforNoSQLClient) ShowInstanceConfigurationInvoker(request *model.
return &ShowInstanceConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowInstanceRole 获取容灾实例主/备角色信息
+//
+// 该接口用于获取容灾实例主/备角色信息,以便后续容灾实例备升主和容灾实例主降备接口调用。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowInstanceRole(request *model.ShowInstanceRoleRequest) (*model.ShowInstanceRoleResponse, error) {
+ requestDef := GenReqDefForShowInstanceRole()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowInstanceRoleResponse), nil
+ }
+}
+
+// ShowInstanceRoleInvoker 获取容灾实例主/备角色信息
+func (c *GaussDBforNoSQLClient) ShowInstanceRoleInvoker(request *model.ShowInstanceRoleRequest) *ShowInstanceRoleInvoker {
+ requestDef := GenReqDefForShowInstanceRole()
+ return &ShowInstanceRoleInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowIpNumRequirement 查询创建实例或扩容节点时需要的IP数量
+//
+// 查询创建实例或扩容节点时需要的IP数量
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowIpNumRequirement(request *model.ShowIpNumRequirementRequest) (*model.ShowIpNumRequirementResponse, error) {
+ requestDef := GenReqDefForShowIpNumRequirement()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowIpNumRequirementResponse), nil
+ }
+}
+
+// ShowIpNumRequirementInvoker 查询创建实例或扩容节点时需要的IP数量
+func (c *GaussDBforNoSQLClient) ShowIpNumRequirementInvoker(request *model.ShowIpNumRequirementRequest) *ShowIpNumRequirementInvoker {
+ requestDef := GenReqDefForShowIpNumRequirement()
+ return &ShowIpNumRequirementInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowModifyHistory 查询实例参数的修改历史
+//
+// 查询实例参数的修改历史
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowModifyHistory(request *model.ShowModifyHistoryRequest) (*model.ShowModifyHistoryResponse, error) {
+ requestDef := GenReqDefForShowModifyHistory()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowModifyHistoryResponse), nil
+ }
+}
+
+// ShowModifyHistoryInvoker 查询实例参数的修改历史
+func (c *GaussDBforNoSQLClient) ShowModifyHistoryInvoker(request *model.ShowModifyHistoryRequest) *ShowModifyHistoryInvoker {
+ requestDef := GenReqDefForShowModifyHistory()
+ return &ShowModifyHistoryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowPauseResumeStutus 获取容灾实例数据同步状态
+//
+// 获取容灾实例数据同步状态,主备实例id,数据同步指标值,以及倒换和切换场景下的RPO,RTO指标值。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowPauseResumeStutus(request *model.ShowPauseResumeStutusRequest) (*model.ShowPauseResumeStutusResponse, error) {
+ requestDef := GenReqDefForShowPauseResumeStutus()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowPauseResumeStutusResponse), nil
+ }
+}
+
+// ShowPauseResumeStutusInvoker 获取容灾实例数据同步状态
+func (c *GaussDBforNoSQLClient) ShowPauseResumeStutusInvoker(request *model.ShowPauseResumeStutusRequest) *ShowPauseResumeStutusInvoker {
+ requestDef := GenReqDefForShowPauseResumeStutus()
+ return &ShowPauseResumeStutusInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowQuotas 查询配额
//
// 查询单租户在GaussDBforNoSQL服务下的资源配额。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ShowQuotas(request *model.ShowQuotasRequest) (*model.ShowQuotasResponse, error) {
requestDef := GenReqDefForShowQuotas()
@@ -591,12 +1428,74 @@ func (c *GaussDBforNoSQLClient) ShowQuotasInvoker(request *model.ShowQuotasReque
return &ShowQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowRecyclePolicy 查询回收策略
+//
+// 查询回收策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowRecyclePolicy(request *model.ShowRecyclePolicyRequest) (*model.ShowRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForShowRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+// ShowRecyclePolicyInvoker 查询回收策略
+func (c *GaussDBforNoSQLClient) ShowRecyclePolicyInvoker(request *model.ShowRecyclePolicyRequest) *ShowRecyclePolicyInvoker {
+ requestDef := GenReqDefForShowRecyclePolicy()
+ return &ShowRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowRestorableList 查询可恢复的实例列表
+//
+// 查询用户可恢复的实例列表
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowRestorableList(request *model.ShowRestorableListRequest) (*model.ShowRestorableListResponse, error) {
+ requestDef := GenReqDefForShowRestorableList()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRestorableListResponse), nil
+ }
+}
+
+// ShowRestorableListInvoker 查询可恢复的实例列表
+func (c *GaussDBforNoSQLClient) ShowRestorableListInvoker(request *model.ShowRestorableListRequest) *ShowRestorableListInvoker {
+ requestDef := GenReqDefForShowRestorableList()
+ return &ShowRestorableListInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowSlowLogDesensitization 查询慢日志脱敏状态
+//
+// 查询慢日志脱敏状态。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) ShowSlowLogDesensitization(request *model.ShowSlowLogDesensitizationRequest) (*model.ShowSlowLogDesensitizationResponse, error) {
+ requestDef := GenReqDefForShowSlowLogDesensitization()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowSlowLogDesensitizationResponse), nil
+ }
+}
+
+// ShowSlowLogDesensitizationInvoker 查询慢日志脱敏状态
+func (c *GaussDBforNoSQLClient) ShowSlowLogDesensitizationInvoker(request *model.ShowSlowLogDesensitizationRequest) *ShowSlowLogDesensitizationInvoker {
+ requestDef := GenReqDefForShowSlowLogDesensitization()
+ return &ShowSlowLogDesensitizationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShrinkInstanceNode 缩容指定集群实例的节点数量
//
// 缩容指定集群实例的节点数量。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ShrinkInstanceNode(request *model.ShrinkInstanceNodeRequest) (*model.ShrinkInstanceNodeResponse, error) {
requestDef := GenReqDefForShrinkInstanceNode()
@@ -613,12 +1512,116 @@ func (c *GaussDBforNoSQLClient) ShrinkInstanceNodeInvoker(request *model.ShrinkI
return &ShrinkInstanceNodeInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// SwitchSlowlogDesensitization 设置慢日志脱敏状态
+//
+// 设置慢日志脱敏状态
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SwitchSlowlogDesensitization(request *model.SwitchSlowlogDesensitizationRequest) (*model.SwitchSlowlogDesensitizationResponse, error) {
+ requestDef := GenReqDefForSwitchSlowlogDesensitization()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchSlowlogDesensitizationResponse), nil
+ }
+}
+
+// SwitchSlowlogDesensitizationInvoker 设置慢日志脱敏状态
+func (c *GaussDBforNoSQLClient) SwitchSlowlogDesensitizationInvoker(request *model.SwitchSlowlogDesensitizationRequest) *SwitchSlowlogDesensitizationInvoker {
+ requestDef := GenReqDefForSwitchSlowlogDesensitization()
+ return &SwitchSlowlogDesensitizationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchSsl 切换实例SSL开关
+//
+// 切换实例SSL开关。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SwitchSsl(request *model.SwitchSslRequest) (*model.SwitchSslResponse, error) {
+ requestDef := GenReqDefForSwitchSsl()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchSslResponse), nil
+ }
+}
+
+// SwitchSslInvoker 切换实例SSL开关
+func (c *GaussDBforNoSQLClient) SwitchSslInvoker(request *model.SwitchSslRequest) *SwitchSslInvoker {
+ requestDef := GenReqDefForSwitchSsl()
+ return &SwitchSslInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchToMaster 容灾实例备升主
+//
+// 该接口用于对已经搭建容灾关系的实例,将备实例升级为主实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SwitchToMaster(request *model.SwitchToMasterRequest) (*model.SwitchToMasterResponse, error) {
+ requestDef := GenReqDefForSwitchToMaster()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchToMasterResponse), nil
+ }
+}
+
+// SwitchToMasterInvoker 容灾实例备升主
+func (c *GaussDBforNoSQLClient) SwitchToMasterInvoker(request *model.SwitchToMasterRequest) *SwitchToMasterInvoker {
+ requestDef := GenReqDefForSwitchToMaster()
+ return &SwitchToMasterInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchToSlave 容灾实例主降备
+//
+// 该接口用于对已经搭建容灾关系的实例,将主实例降级为备实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) SwitchToSlave(request *model.SwitchToSlaveRequest) (*model.SwitchToSlaveResponse, error) {
+ requestDef := GenReqDefForSwitchToSlave()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchToSlaveResponse), nil
+ }
+}
+
+// SwitchToSlaveInvoker 容灾实例主降备
+func (c *GaussDBforNoSQLClient) SwitchToSlaveInvoker(request *model.SwitchToSlaveRequest) *SwitchToSlaveInvoker {
+ requestDef := GenReqDefForSwitchToSlave()
+ return &SwitchToSlaveInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateClientNetwork 修改副本集跨网段访问配置
+//
+// 修改副本集跨网段访问配置
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) UpdateClientNetwork(request *model.UpdateClientNetworkRequest) (*model.UpdateClientNetworkResponse, error) {
+ requestDef := GenReqDefForUpdateClientNetwork()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateClientNetworkResponse), nil
+ }
+}
+
+// UpdateClientNetworkInvoker 修改副本集跨网段访问配置
+func (c *GaussDBforNoSQLClient) UpdateClientNetworkInvoker(request *model.UpdateClientNetworkRequest) *UpdateClientNetworkInvoker {
+ requestDef := GenReqDefForUpdateClientNetwork()
+ return &UpdateClientNetworkInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// UpdateConfiguration 修改参数模板参数
//
// 修改参数模板参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) UpdateConfiguration(request *model.UpdateConfigurationRequest) (*model.UpdateConfigurationResponse, error) {
requestDef := GenReqDefForUpdateConfiguration()
@@ -639,8 +1642,7 @@ func (c *GaussDBforNoSQLClient) UpdateConfigurationInvoker(request *model.Update
//
// 修改指定实例的参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) UpdateInstanceConfiguration(request *model.UpdateInstanceConfigurationRequest) (*model.UpdateInstanceConfigurationResponse, error) {
requestDef := GenReqDefForUpdateInstanceConfiguration()
@@ -661,8 +1663,7 @@ func (c *GaussDBforNoSQLClient) UpdateInstanceConfigurationInvoker(request *mode
//
// 修改实例名称
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error) {
requestDef := GenReqDefForUpdateInstanceName()
@@ -683,8 +1684,7 @@ func (c *GaussDBforNoSQLClient) UpdateInstanceNameInvoker(request *model.UpdateI
//
// 变更实例关联的安全组
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) UpdateSecurityGroup(request *model.UpdateSecurityGroupRequest) (*model.UpdateSecurityGroupResponse, error) {
requestDef := GenReqDefForUpdateSecurityGroup()
@@ -701,12 +1701,32 @@ func (c *GaussDBforNoSQLClient) UpdateSecurityGroupInvoker(request *model.Update
return &UpdateSecurityGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpgradeDbVersion 数据库补丁升级
+//
+// 升级数据库补丁版本
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforNoSQLClient) UpgradeDbVersion(request *model.UpgradeDbVersionRequest) (*model.UpgradeDbVersionResponse, error) {
+ requestDef := GenReqDefForUpgradeDbVersion()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpgradeDbVersionResponse), nil
+ }
+}
+
+// UpgradeDbVersionInvoker 数据库补丁升级
+func (c *GaussDBforNoSQLClient) UpgradeDbVersionInvoker(request *model.UpgradeDbVersionRequest) *UpgradeDbVersionInvoker {
+ requestDef := GenReqDefForUpgradeDbVersion()
+ return &UpgradeDbVersionInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListApiVersion 查询当前支持的API版本信息列表
//
// 查询当前支持的API版本信息列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ListApiVersion(request *model.ListApiVersionRequest) (*model.ListApiVersionResponse, error) {
requestDef := GenReqDefForListApiVersion()
@@ -727,8 +1747,7 @@ func (c *GaussDBforNoSQLClient) ListApiVersionInvoker(request *model.ListApiVers
//
// 查询指定API版本信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforNoSQLClient) ShowApiVersion(request *model.ShowApiVersionRequest) (*model.ShowApiVersionResponse, error) {
requestDef := GenReqDefForShowApiVersion()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_invoker.go
index 41b65966..1828c142 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_invoker.go
@@ -29,6 +29,78 @@ func (i *BatchTagActionInvoker) Invoke() (*model.BatchTagActionResponse, error)
}
}
+type CheckDisasterRecoveryOperationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CheckDisasterRecoveryOperationInvoker) Invoke() (*model.CheckDisasterRecoveryOperationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CheckDisasterRecoveryOperationResponse), nil
+ }
+}
+
+type CheckWeekPasswordInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CheckWeekPasswordInvoker) Invoke() (*model.CheckWeekPasswordResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CheckWeekPasswordResponse), nil
+ }
+}
+
+type CompareConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CompareConfigurationInvoker) Invoke() (*model.CompareConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CompareConfigurationResponse), nil
+ }
+}
+
+type CopyConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CopyConfigurationInvoker) Invoke() (*model.CopyConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CopyConfigurationResponse), nil
+ }
+}
+
+type CreateBackInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateBackInvoker) Invoke() (*model.CreateBackResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateBackResponse), nil
+ }
+}
+
+type CreateColdVolumeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateColdVolumeInvoker) Invoke() (*model.CreateColdVolumeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateColdVolumeResponse), nil
+ }
+}
+
type CreateConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -41,6 +113,30 @@ func (i *CreateConfigurationInvoker) Invoke() (*model.CreateConfigurationRespons
}
}
+type CreateDbUserInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateDbUserInvoker) Invoke() (*model.CreateDbUserResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateDbUserResponse), nil
+ }
+}
+
+type CreateDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateDisasterRecoveryInvoker) Invoke() (*model.CreateDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateDisasterRecoveryResponse), nil
+ }
+}
+
type CreateInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -53,6 +149,18 @@ func (i *CreateInstanceInvoker) Invoke() (*model.CreateInstanceResponse, error)
}
}
+type DeleteBackupInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteBackupInvoker) Invoke() (*model.DeleteBackupResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteBackupResponse), nil
+ }
+}
+
type DeleteConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -65,6 +173,42 @@ func (i *DeleteConfigurationInvoker) Invoke() (*model.DeleteConfigurationRespons
}
}
+type DeleteDbUserInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteDbUserInvoker) Invoke() (*model.DeleteDbUserResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteDbUserResponse), nil
+ }
+}
+
+type DeleteDisasterRecoveryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteDisasterRecoveryInvoker) Invoke() (*model.DeleteDisasterRecoveryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteDisasterRecoveryResponse), nil
+ }
+}
+
+type DeleteEnlargeFailNodeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteEnlargeFailNodeInvoker) Invoke() (*model.DeleteEnlargeFailNodeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteEnlargeFailNodeResponse), nil
+ }
+}
+
type DeleteInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -89,6 +233,30 @@ func (i *ExpandInstanceNodeInvoker) Invoke() (*model.ExpandInstanceNodeResponse,
}
}
+type ListAvailableFlavorInfosInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAvailableFlavorInfosInvoker) Invoke() (*model.ListAvailableFlavorInfosResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAvailableFlavorInfosResponse), nil
+ }
+}
+
+type ListConfigurationDatastoresInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListConfigurationDatastoresInvoker) Invoke() (*model.ListConfigurationDatastoresResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListConfigurationDatastoresResponse), nil
+ }
+}
+
type ListConfigurationTemplatesInvoker struct {
*invoker.BaseInvoker
}
@@ -125,6 +293,18 @@ func (i *ListDatastoresInvoker) Invoke() (*model.ListDatastoresResponse, error)
}
}
+type ListDbUsersInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListDbUsersInvoker) Invoke() (*model.ListDbUsersResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListDbUsersResponse), nil
+ }
+}
+
type ListDedicatedResourcesInvoker struct {
*invoker.BaseInvoker
}
@@ -137,6 +317,18 @@ func (i *ListDedicatedResourcesInvoker) Invoke() (*model.ListDedicatedResourcesR
}
}
+type ListEpsQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListEpsQuotasInvoker) Invoke() (*model.ListEpsQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListEpsQuotasResponse), nil
+ }
+}
+
type ListFlavorInfosInvoker struct {
*invoker.BaseInvoker
}
@@ -161,6 +353,18 @@ func (i *ListFlavorsInvoker) Invoke() (*model.ListFlavorsResponse, error) {
}
}
+type ListInstanceDatabasesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListInstanceDatabasesInvoker) Invoke() (*model.ListInstanceDatabasesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListInstanceDatabasesResponse), nil
+ }
+}
+
type ListInstanceTagsInvoker struct {
*invoker.BaseInvoker
}
@@ -209,6 +413,42 @@ func (i *ListInstancesByTagsInvoker) Invoke() (*model.ListInstancesByTagsRespons
}
}
+type ListProjectTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListProjectTagsInvoker) Invoke() (*model.ListProjectTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListProjectTagsResponse), nil
+ }
+}
+
+type ListRecycleInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRecycleInstancesInvoker) Invoke() (*model.ListRecycleInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRecycleInstancesResponse), nil
+ }
+}
+
+type ListRestoreTimeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRestoreTimeInvoker) Invoke() (*model.ListRestoreTimeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRestoreTimeResponse), nil
+ }
+}
+
type ListSlowLogsInvoker struct {
*invoker.BaseInvoker
}
@@ -221,6 +461,90 @@ func (i *ListSlowLogsInvoker) Invoke() (*model.ListSlowLogsResponse, error) {
}
}
+type ModifyDbUserPrivilegeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyDbUserPrivilegeInvoker) Invoke() (*model.ModifyDbUserPrivilegeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyDbUserPrivilegeResponse), nil
+ }
+}
+
+type ModifyEpsQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyEpsQuotasInvoker) Invoke() (*model.ModifyEpsQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyEpsQuotasResponse), nil
+ }
+}
+
+type ModifyPortInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyPortInvoker) Invoke() (*model.ModifyPortResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyPortResponse), nil
+ }
+}
+
+type ModifyPublicIpInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyPublicIpInvoker) Invoke() (*model.ModifyPublicIpResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyPublicIpResponse), nil
+ }
+}
+
+type ModifyVolumeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyVolumeInvoker) Invoke() (*model.ModifyVolumeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyVolumeResponse), nil
+ }
+}
+
+type PauseResumeDataSynchronizationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *PauseResumeDataSynchronizationInvoker) Invoke() (*model.PauseResumeDataSynchronizationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.PauseResumeDataSynchronizationResponse), nil
+ }
+}
+
+type ResetDbUserPasswordInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResetDbUserPasswordInvoker) Invoke() (*model.ResetDbUserPasswordResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResetDbUserPasswordResponse), nil
+ }
+}
+
type ResetPasswordInvoker struct {
*invoker.BaseInvoker
}
@@ -233,6 +557,18 @@ func (i *ResetPasswordInvoker) Invoke() (*model.ResetPasswordResponse, error) {
}
}
+type ResizeColdVolumeInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResizeColdVolumeInvoker) Invoke() (*model.ResizeColdVolumeResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResizeColdVolumeResponse), nil
+ }
+}
+
type ResizeInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -257,6 +593,42 @@ func (i *ResizeInstanceVolumeInvoker) Invoke() (*model.ResizeInstanceVolumeRespo
}
}
+type RestartInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RestartInstanceInvoker) Invoke() (*model.RestartInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RestartInstanceResponse), nil
+ }
+}
+
+type RestoreExistingInstanceInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RestoreExistingInstanceInvoker) Invoke() (*model.RestoreExistingInstanceResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RestoreExistingInstanceResponse), nil
+ }
+}
+
+type SetAutoEnlargePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SetAutoEnlargePolicyInvoker) Invoke() (*model.SetAutoEnlargePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SetAutoEnlargePolicyResponse), nil
+ }
+}
+
type SetBackupPolicyInvoker struct {
*invoker.BaseInvoker
}
@@ -269,6 +641,66 @@ func (i *SetBackupPolicyInvoker) Invoke() (*model.SetBackupPolicyResponse, error
}
}
+type SetRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SetRecyclePolicyInvoker) Invoke() (*model.SetRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
+type ShowAllInstancesBackupsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowAllInstancesBackupsInvoker) Invoke() (*model.ShowAllInstancesBackupsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowAllInstancesBackupsResponse), nil
+ }
+}
+
+type ShowApplicableInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowApplicableInstancesInvoker) Invoke() (*model.ShowApplicableInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowApplicableInstancesResponse), nil
+ }
+}
+
+type ShowApplyHistoryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowApplyHistoryInvoker) Invoke() (*model.ShowApplyHistoryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowApplyHistoryResponse), nil
+ }
+}
+
+type ShowAutoEnlargePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowAutoEnlargePolicyInvoker) Invoke() (*model.ShowAutoEnlargePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowAutoEnlargePolicyResponse), nil
+ }
+}
+
type ShowBackupPolicyInvoker struct {
*invoker.BaseInvoker
}
@@ -293,6 +725,18 @@ func (i *ShowConfigurationDetailInvoker) Invoke() (*model.ShowConfigurationDetai
}
}
+type ShowErrorLogInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowErrorLogInvoker) Invoke() (*model.ShowErrorLogResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowErrorLogResponse), nil
+ }
+}
+
type ShowInstanceConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -305,6 +749,54 @@ func (i *ShowInstanceConfigurationInvoker) Invoke() (*model.ShowInstanceConfigur
}
}
+type ShowInstanceRoleInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowInstanceRoleInvoker) Invoke() (*model.ShowInstanceRoleResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowInstanceRoleResponse), nil
+ }
+}
+
+type ShowIpNumRequirementInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowIpNumRequirementInvoker) Invoke() (*model.ShowIpNumRequirementResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowIpNumRequirementResponse), nil
+ }
+}
+
+type ShowModifyHistoryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowModifyHistoryInvoker) Invoke() (*model.ShowModifyHistoryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowModifyHistoryResponse), nil
+ }
+}
+
+type ShowPauseResumeStutusInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowPauseResumeStutusInvoker) Invoke() (*model.ShowPauseResumeStutusResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowPauseResumeStutusResponse), nil
+ }
+}
+
type ShowQuotasInvoker struct {
*invoker.BaseInvoker
}
@@ -317,6 +809,42 @@ func (i *ShowQuotasInvoker) Invoke() (*model.ShowQuotasResponse, error) {
}
}
+type ShowRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRecyclePolicyInvoker) Invoke() (*model.ShowRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+type ShowRestorableListInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRestorableListInvoker) Invoke() (*model.ShowRestorableListResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRestorableListResponse), nil
+ }
+}
+
+type ShowSlowLogDesensitizationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowSlowLogDesensitizationInvoker) Invoke() (*model.ShowSlowLogDesensitizationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowSlowLogDesensitizationResponse), nil
+ }
+}
+
type ShrinkInstanceNodeInvoker struct {
*invoker.BaseInvoker
}
@@ -329,6 +857,66 @@ func (i *ShrinkInstanceNodeInvoker) Invoke() (*model.ShrinkInstanceNodeResponse,
}
}
+type SwitchSlowlogDesensitizationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchSlowlogDesensitizationInvoker) Invoke() (*model.SwitchSlowlogDesensitizationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchSlowlogDesensitizationResponse), nil
+ }
+}
+
+type SwitchSslInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchSslInvoker) Invoke() (*model.SwitchSslResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchSslResponse), nil
+ }
+}
+
+type SwitchToMasterInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchToMasterInvoker) Invoke() (*model.SwitchToMasterResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchToMasterResponse), nil
+ }
+}
+
+type SwitchToSlaveInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchToSlaveInvoker) Invoke() (*model.SwitchToSlaveResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchToSlaveResponse), nil
+ }
+}
+
+type UpdateClientNetworkInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateClientNetworkInvoker) Invoke() (*model.UpdateClientNetworkResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateClientNetworkResponse), nil
+ }
+}
+
type UpdateConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -377,6 +965,18 @@ func (i *UpdateSecurityGroupInvoker) Invoke() (*model.UpdateSecurityGroupRespons
}
}
+type UpgradeDbVersionInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpgradeDbVersionInvoker) Invoke() (*model.UpgradeDbVersionResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpgradeDbVersionResponse), nil
+ }
+}
+
type ListApiVersionInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_meta.go
index 1c6508fe..84cfede5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/gaussDBforNoSQL_meta.go
@@ -47,6 +47,116 @@ func GenReqDefForBatchTagAction() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCheckDisasterRecoveryOperation() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disaster-recovery/precheck").
+ WithResponse(new(model.CheckDisasterRecoveryOperationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCheckWeekPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/weak-password-verification").
+ WithResponse(new(model.CheckWeekPasswordResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCompareConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/comparison").
+ WithResponse(new(model.CompareConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCopyConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/{config_id}/copy").
+ WithResponse(new(model.CopyConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateBack() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/backups").
+ WithResponse(new(model.CreateBackResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateColdVolume() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/cold-volume").
+ WithResponse(new(model.CreateColdVolumeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -62,6 +172,46 @@ func GenReqDefForCreateConfiguration() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCreateDbUser() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/db-users").
+ WithResponse(new(model.CreateDbUserResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disaster-recovery/construction").
+ WithResponse(new(model.CreateDisasterRecoveryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateInstance() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -77,6 +227,22 @@ func GenReqDefForCreateInstance() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteBackup() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/backups/{backup_id}").
+ WithResponse(new(model.DeleteBackupResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BackupId").
+ WithJsonTag("backup_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -93,6 +259,62 @@ func GenReqDefForDeleteConfiguration() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteDbUser() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/db-users").
+ WithResponse(new(model.DeleteDbUserResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteDisasterRecovery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disaster-recovery/deconstruction").
+ WithResponse(new(model.DeleteDisasterRecoveryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteEnlargeFailNode() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/instances/{instance_id}/enlarge-failed-nodes").
+ WithResponse(new(model.DeleteEnlargeFailNodeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteInstance() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -122,20 +344,833 @@ func GenReqDefForExpandInstanceNode() *def.HttpRequestDef {
WithLocationType(def.Path))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAvailableFlavorInfos() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/available-flavors").
+ WithResponse(new(model.ListAvailableFlavorInfosResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListConfigurationDatastores() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/datastores").
+ WithResponse(new(model.ListConfigurationDatastoresResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListConfigurationTemplates() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3.1/{project_id}/configurations").
+ WithResponse(new(model.ListConfigurationTemplatesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListConfigurations() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations").
+ WithResponse(new(model.ListConfigurationsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDatastores() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/datastores/{datastore_name}/versions").
+ WithResponse(new(model.ListDatastoresResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DatastoreName").
+ WithJsonTag("datastore_name").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDbUsers() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/db-users").
+ WithResponse(new(model.ListDbUsersResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListDedicatedResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/dedicated-resources").
+ WithResponse(new(model.ListDedicatedResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListEpsQuotas() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/enterprise-projects/quotas").
+ WithResponse(new(model.ListEpsQuotasResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EnterpriseProjectName").
+ WithJsonTag("enterprise_project_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListFlavorInfos() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3.1/{project_id}/flavors").
+ WithResponse(new(model.ListFlavorInfosResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EngineName").
+ WithJsonTag("engine_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListFlavors() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/flavors").
+ WithResponse(new(model.ListFlavorsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Region").
+ WithJsonTag("region").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EngineName").
+ WithJsonTag("engine_name").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstanceDatabases() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/databases").
+ WithResponse(new(model.ListInstanceDatabasesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/tags").
+ WithResponse(new(model.ListInstanceTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances").
+ WithResponse(new(model.ListInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Mode").
+ WithJsonTag("mode").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DatastoreType").
+ WithJsonTag("datastore_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("VpcId").
+ WithJsonTag("vpc_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SubnetId").
+ WithJsonTag("subnet_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstancesByResourceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/resource-instances/action").
+ WithResponse(new(model.ListInstancesByResourceTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstancesByTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/resource_instances/action").
+ WithResponse(new(model.ListInstancesByTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListProjectTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/tags").
+ WithResponse(new(model.ListProjectTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListRecycleInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/recycle-instances").
+ WithResponse(new(model.ListRecycleInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListRestoreTime() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/backups/restorable-time-periods").
+ WithResponse(new(model.ListRestoreTimeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("StartTime").
+ WithJsonTag("start_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndTime").
+ WithJsonTag("end_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListSlowLogs() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/slowlog").
+ WithResponse(new(model.ListSlowLogsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("StartDate").
+ WithJsonTag("start_date").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndDate").
+ WithJsonTag("end_date").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("NodeId").
+ WithJsonTag("node_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyDbUserPrivilege() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/db-users/privilege").
+ WithResponse(new(model.ModifyDbUserPrivilegeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyEpsQuotas() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/enterprise-projects/quotas").
+ WithResponse(new(model.ModifyEpsQuotasResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyPort() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/port").
+ WithResponse(new(model.ModifyPortResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyPublicIp() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/public-ip").
+ WithResponse(new(model.ModifyPublicIpResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("NodeId").
+ WithJsonTag("node_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyVolume() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/volume").
+ WithResponse(new(model.ModifyVolumeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForPauseResumeDataSynchronization() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disaster-recovery/data-synchronization").
+ WithResponse(new(model.PauseResumeDataSynchronizationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResetDbUserPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/redis/instances/{instance_id}/db-users/password").
+ WithResponse(new(model.ResetDbUserPasswordResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResetPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/password").
+ WithResponse(new(model.ResetPasswordResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResizeColdVolume() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/cold-volume").
+ WithResponse(new(model.ResizeColdVolumeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResizeInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/resize").
+ WithResponse(new(model.ResizeInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResizeInstanceVolume() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/extend-volume").
+ WithResponse(new(model.ResizeInstanceVolumeResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForRestartInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/restart").
+ WithResponse(new(model.RestartInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForRestoreExistingInstance() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/recovery").
+ WithResponse(new(model.RestoreExistingInstanceResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSetAutoEnlargePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/disk-auto-expansion").
+ WithResponse(new(model.SetAutoEnlargePolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSetBackupPolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/backups/policy").
+ WithResponse(new(model.SetBackupPolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSetRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/recycle-policy").
+ WithResponse(new(model.SetRecyclePolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowAllInstancesBackups() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/backups").
+ WithResponse(new(model.ShowAllInstancesBackupsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("DatastoreType").
+ WithJsonTag("datastore_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BackupId").
+ WithJsonTag("backup_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BackupType").
+ WithJsonTag("backup_type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BeginTime").
+ WithJsonTag("begin_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndTime").
+ WithJsonTag("end_time").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowApplicableInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applicable-instances").
+ WithResponse(new(model.ShowApplicableInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListConfigurationTemplates() *def.HttpRequestDef {
+func GenReqDefForShowApplyHistory() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3.1/{project_id}/configurations").
- WithResponse(new(model.ListConfigurationTemplatesResponse)).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applied-histories").
+ WithResponse(new(model.ShowApplyHistoryResponse)).
WithContentType("application/json")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Offset").
WithJsonTag("offset").
@@ -149,63 +1184,81 @@ func GenReqDefForListConfigurationTemplates() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListConfigurations() *def.HttpRequestDef {
+func GenReqDefForShowAutoEnlargePolicy() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/configurations").
- WithResponse(new(model.ListConfigurationsResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disk-auto-expansion").
+ WithResponse(new(model.ShowAutoEnlargePolicyResponse)).
WithContentType("application/json")
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListDatastores() *def.HttpRequestDef {
+func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/datastores/{datastore_name}/versions").
- WithResponse(new(model.ListDatastoresResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/backups/policy").
+ WithResponse(new(model.ShowBackupPolicyResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("DatastoreName").
- WithJsonTag("datastore_name").
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListDedicatedResources() *def.HttpRequestDef {
+func GenReqDefForShowConfigurationDetail() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/dedicated-resources").
- WithResponse(new(model.ListDedicatedResourcesResponse)).
+ WithPath("/v3/{project_id}/configurations/{config_id}").
+ WithResponse(new(model.ShowConfigurationDetailResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Offset").
- WithJsonTag("offset").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Limit").
- WithJsonTag("limit").
- WithLocationType(def.Query))
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListFlavorInfos() *def.HttpRequestDef {
+func GenReqDefForShowErrorLog() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3.1/{project_id}/flavors").
- WithResponse(new(model.ListFlavorInfosResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/error-log").
+ WithResponse(new(model.ShowErrorLogResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("EngineName").
- WithJsonTag("engine_name").
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("StartTime").
+ WithJsonTag("start_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndTime").
+ WithJsonTag("end_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("NodeId").
+ WithJsonTag("node_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Offset").
@@ -220,31 +1273,27 @@ func GenReqDefForListFlavorInfos() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListFlavors() *def.HttpRequestDef {
+func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/flavors").
- WithResponse(new(model.ListFlavorsResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/configurations").
+ WithResponse(new(model.ShowInstanceConfigurationResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Region").
- WithJsonTag("region").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("EngineName").
- WithJsonTag("engine_name").
- WithLocationType(def.Query))
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListInstanceTags() *def.HttpRequestDef {
+func GenReqDefForShowInstanceRole() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/instances/{instance_id}/tags").
- WithResponse(new(model.ListInstanceTagsResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/instance-role").
+ WithResponse(new(model.ShowInstanceRoleResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -256,37 +1305,46 @@ func GenReqDefForListInstanceTags() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListInstances() *def.HttpRequestDef {
+func GenReqDefForShowIpNumRequirement() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/instances").
- WithResponse(new(model.ListInstancesResponse)).
+ WithPath("/v3/{project_id}/ip-num-requirement").
+ WithResponse(new(model.ShowIpNumRequirementResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Id").
- WithJsonTag("id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Name").
- WithJsonTag("name").
+ WithName("NodeNum").
+ WithJsonTag("node_num").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Mode").
- WithJsonTag("mode").
+ WithName("EngineName").
+ WithJsonTag("engine_name").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("DatastoreType").
- WithJsonTag("datastore_type").
+ WithName("InstanceMode").
+ WithJsonTag("instance_mode").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("VpcId").
- WithJsonTag("vpc_id").
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowModifyHistory() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/configuration-histories").
+ WithResponse(new(model.ShowModifyHistoryResponse)).
+ WithContentType("application/json")
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("SubnetId").
- WithJsonTag("subnet_id").
- WithLocationType(def.Query))
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Offset").
WithJsonTag("offset").
@@ -300,64 +1358,61 @@ func GenReqDefForListInstances() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListInstancesByResourceTags() *def.HttpRequestDef {
+func GenReqDefForShowPauseResumeStutus() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPost).
- WithPath("/v3/{project_id}/instances/resource-instances/action").
- WithResponse(new(model.ListInstancesByResourceTagsResponse)).
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/disaster-recovery/data-synchronization").
+ WithResponse(new(model.ShowPauseResumeStutusResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListInstancesByTags() *def.HttpRequestDef {
+func GenReqDefForShowQuotas() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPost).
- WithPath("/v3/{project_id}/instances/resource_instances/action").
- WithResponse(new(model.ListInstancesByTagsResponse)).
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/quotas").
+ WithResponse(new(model.ShowQuotasResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/recycle-policy").
+ WithResponse(new(model.ShowRecyclePolicyResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForListSlowLogs() *def.HttpRequestDef {
+func GenReqDefForShowRestorableList() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/instances/{instance_id}/slowlog").
- WithResponse(new(model.ListSlowLogsResponse)).
+ WithPath("/v3/{project_id}/backups/{backup_id}/restorable-instances").
+ WithResponse(new(model.ShowRestorableListResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("InstanceId").
- WithJsonTag("instance_id").
+ WithName("BackupId").
+ WithJsonTag("backup_id").
WithLocationType(def.Path))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("StartDate").
- WithJsonTag("start_date").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("EndDate").
- WithJsonTag("end_date").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("NodeId").
- WithJsonTag("node_id").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Type").
- WithJsonTag("type").
- WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Offset").
WithJsonTag("offset").
@@ -371,11 +1426,11 @@ func GenReqDefForListSlowLogs() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForResetPassword() *def.HttpRequestDef {
+func GenReqDefForShowSlowLogDesensitization() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPut).
- WithPath("/v3/{project_id}/instances/{instance_id}/password").
- WithResponse(new(model.ResetPasswordResponse)).
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/slowlog-desensitization").
+ WithResponse(new(model.ShowSlowLogDesensitizationResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -383,19 +1438,15 @@ func GenReqDefForResetPassword() *def.HttpRequestDef {
WithJsonTag("instance_id").
WithLocationType(def.Path))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Body").
- WithLocationType(def.Body))
-
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForResizeInstance() *def.HttpRequestDef {
+func GenReqDefForShrinkInstanceNode() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPut).
- WithPath("/v3/{project_id}/instances/{instance_id}/resize").
- WithResponse(new(model.ResizeInstanceResponse)).
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/reduce-node").
+ WithResponse(new(model.ShrinkInstanceNodeResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -411,11 +1462,11 @@ func GenReqDefForResizeInstance() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForResizeInstanceVolume() *def.HttpRequestDef {
+func GenReqDefForSwitchSlowlogDesensitization() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPost).
- WithPath("/v3/{project_id}/instances/{instance_id}/extend-volume").
- WithResponse(new(model.ResizeInstanceVolumeResponse)).
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/instances/{instance_id}/slowlog-desensitization").
+ WithResponse(new(model.SwitchSlowlogDesensitizationResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -431,11 +1482,11 @@ func GenReqDefForResizeInstanceVolume() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForSetBackupPolicy() *def.HttpRequestDef {
+func GenReqDefForSwitchSsl() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodPut).
- WithPath("/v3/{project_id}/instances/{instance_id}/backups/policy").
- WithResponse(new(model.SetBackupPolicyResponse)).
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/ssl-option").
+ WithResponse(new(model.SwitchSslResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -451,11 +1502,11 @@ func GenReqDefForSetBackupPolicy() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
+func GenReqDefForSwitchToMaster() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/instances/{instance_id}/backups/policy").
- WithResponse(new(model.ShowBackupPolicyResponse)).
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/switchover-master").
+ WithResponse(new(model.SwitchToMasterResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -463,31 +1514,19 @@ func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
WithJsonTag("instance_id").
WithLocationType(def.Path))
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
-func GenReqDefForShowConfigurationDetail() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/configurations/{config_id}").
- WithResponse(new(model.ShowConfigurationDetailResponse)).
- WithContentType("application/json")
-
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("ConfigId").
- WithJsonTag("config_id").
- WithLocationType(def.Path))
+ WithName("Body").
+ WithLocationType(def.Body))
requestDef := reqDefBuilder.Build()
return requestDef
}
-func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef {
+func GenReqDefForSwitchToSlave() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/instances/{instance_id}/configurations").
- WithResponse(new(model.ShowInstanceConfigurationResponse)).
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/switchover-slave").
+ WithResponse(new(model.SwitchToSlaveResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -499,22 +1538,11 @@ func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForShowQuotas() *def.HttpRequestDef {
- reqDefBuilder := def.NewHttpRequestDefBuilder().
- WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/quotas").
- WithResponse(new(model.ShowQuotasResponse)).
- WithContentType("application/json")
-
- requestDef := reqDefBuilder.Build()
- return requestDef
-}
-
-func GenReqDefForShrinkInstanceNode() *def.HttpRequestDef {
+func GenReqDefForUpdateClientNetwork() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
- WithPath("/v3/{project_id}/instances/{instance_id}/reduce-node").
- WithResponse(new(model.ShrinkInstanceNodeResponse)).
+ WithPath("/v3/{project_id}/instances/{instance_id}/client-network").
+ WithResponse(new(model.UpdateClientNetworkResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -610,6 +1638,22 @@ func GenReqDefForUpdateSecurityGroup() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpgradeDbVersion() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/db-upgrade").
+ WithResponse(new(model.UpgradeDbVersionResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListApiVersion() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_action_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_action_body.go
new file mode 100644
index 00000000..e8ff56bb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_action_body.go
@@ -0,0 +1,67 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type ActionBody struct {
+
+ // 指定容灾实例数据同步操作。 取值pause,表示暂停容灾实例的数据同步。 取值resume,表示恢复容灾实例的数据同步。
+ Action ActionBodyAction `json:"action"`
+}
+
+func (o ActionBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ActionBody struct{}"
+ }
+
+ return strings.Join([]string{"ActionBody", string(data)}, " ")
+}
+
+type ActionBodyAction struct {
+ value string
+}
+
+type ActionBodyActionEnum struct {
+ PAUSE ActionBodyAction
+ RESUME ActionBodyAction
+}
+
+func GetActionBodyActionEnum() ActionBodyActionEnum {
+ return ActionBodyActionEnum{
+ PAUSE: ActionBodyAction{
+ value: "pause",
+ },
+ RESUME: ActionBodyAction{
+ value: "resume",
+ },
+ }
+}
+
+func (c ActionBodyAction) Value() string {
+ return c.value
+}
+
+func (c ActionBodyAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ActionBodyAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_applicable_instance_rsp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_applicable_instance_rsp.go
new file mode 100644
index 00000000..72c62d0e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_applicable_instance_rsp.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ApplicableInstanceRsp struct {
+
+ // 实例ID。
+ Id string `json:"id"`
+
+ // 实例名称。
+ Name string `json:"name"`
+}
+
+func (o ApplicableInstanceRsp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApplicableInstanceRsp struct{}"
+ }
+
+ return strings.Join([]string{"ApplicableInstanceRsp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_apply_history_rsp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_apply_history_rsp.go
new file mode 100644
index 00000000..90a9cda4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_apply_history_rsp.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ApplyHistoryRsp struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称
+ InstanceName string `json:"instance_name"`
+
+ // 生效时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。 [其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。](tag:hc) [其中,T指某个时间的开始;Z指时区偏移量。](tag:hk)
+ AppliedAt *sdktime.SdkTime `json:"applied_at"`
+
+ // - SUCCESS:应用成功。 - FAILED:应用失败。
+ ApplyResult string `json:"apply_result"`
+
+ // 失败原因
+ FailureReason *string `json:"failure_reason,omitempty"`
+}
+
+func (o ApplyHistoryRsp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApplyHistoryRsp struct{}"
+ }
+
+ return strings.Join([]string{"ApplyHistoryRsp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_request.go
new file mode 100644
index 00000000..8f83520f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CheckDisasterRecoveryOperationRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *PrecheckDisasterRecoveryOperationBody `json:"body,omitempty"`
+}
+
+func (o CheckDisasterRecoveryOperationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckDisasterRecoveryOperationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CheckDisasterRecoveryOperationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_response.go
new file mode 100644
index 00000000..9fa197b2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_disaster_recovery_operation_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CheckDisasterRecoveryOperationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CheckDisasterRecoveryOperationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckDisasterRecoveryOperationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CheckDisasterRecoveryOperationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request.go
new file mode 100644
index 00000000..262a4e84
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CheckWeekPasswordRequest struct {
+ Body *CheckWeekPasswordRequestBody `json:"body,omitempty"`
+}
+
+func (o CheckWeekPasswordRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckWeekPasswordRequest struct{}"
+ }
+
+ return strings.Join([]string{"CheckWeekPasswordRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request_body.go
new file mode 100644
index 00000000..6054237a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CheckWeekPasswordRequestBody struct {
+
+ // 密码
+ Password string `json:"password"`
+}
+
+func (o CheckWeekPasswordRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckWeekPasswordRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CheckWeekPasswordRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_response.go
new file mode 100644
index 00000000..9c4b8d85
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_check_week_password_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CheckWeekPasswordResponse struct {
+
+ // 是否是弱密码。 - true:是弱密码。 - false:不是弱密码。
+ Weak *bool `json:"weak,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CheckWeekPasswordResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CheckWeekPasswordResponse struct{}"
+ }
+
+ return strings.Join([]string{"CheckWeekPasswordResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request.go
new file mode 100644
index 00000000..d1f01437
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CompareConfigurationRequest struct {
+ Body *CompareConfigurationRequestBody `json:"body,omitempty"`
+}
+
+func (o CompareConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CompareConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CompareConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request_body.go
new file mode 100644
index 00000000..58984775
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CompareConfigurationRequestBody struct {
+
+ // 需要进行比较的源参数模板ID。
+ SourceConfigurationId string `json:"source_configuration_id"`
+
+ // 需要进行比较的目标参数模板ID。
+ TargetConfigurationId string `json:"target_configuration_id"`
+}
+
+func (o CompareConfigurationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CompareConfigurationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CompareConfigurationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_response.go
new file mode 100644
index 00000000..f82d837d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compare_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CompareConfigurationResponse struct {
+
+ // 参数之间的区别集合。
+ Differences *[]DifferentDetails `json:"differences,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CompareConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CompareConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CompareConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compute_flavor.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compute_flavor.go
new file mode 100644
index 00000000..8d6476e3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_compute_flavor.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ComputeFlavor struct {
+
+ // cpu核数。
+ Vcpus string `json:"vcpus"`
+
+ // 内存大小,单位为GB。
+ Ram string `json:"ram"`
+
+ // 规格码。
+ SpecCode string `json:"spec_code"`
+
+ // 可用区状态。
+ AzStatus map[string]string `json:"az_status"`
+
+ // Region状态。
+ RegionStatus string `json:"region_status"`
+}
+
+func (o ComputeFlavor) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ComputeFlavor struct{}"
+ }
+
+ return strings.Join([]string{"ComputeFlavor", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_configuration_history_rsp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_configuration_history_rsp.go
new file mode 100644
index 00000000..492db692
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_configuration_history_rsp.go
@@ -0,0 +1,40 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ConfigurationHistoryRsp struct {
+
+ // 参数名称。
+ ParameterName string `json:"parameter_name"`
+
+ // 参数旧值
+ OldValue string `json:"old_value"`
+
+ // 参数新值
+ NewValue string `json:"new_value"`
+
+ // 更新结果
+ UpdateResult string `json:"update_result"`
+
+ // - true:已生效 - false:未生效
+ Applied bool `json:"applied"`
+
+ // 更新时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。 [其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。](tag:hc) [其中,T指某个时间的开始;Z指时区偏移量。](tag:hk)
+ UpdatedAt string `json:"updated_at"`
+
+ // 生效时间,格式为\"yyyy-MM-ddTHH:mm:ssZ\"。 [其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。](tag:hc) [其中,T指某个时间的开始;Z指时区偏移量。](tag:hk)
+ AppliedAt string `json:"applied_at"`
+}
+
+func (o ConfigurationHistoryRsp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationHistoryRsp struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationHistoryRsp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_body.go
new file mode 100644
index 00000000..2bc5698f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_body.go
@@ -0,0 +1,33 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ConstructDisasterRecoveryBody struct {
+
+ // 容灾ID。 对容灾角色为主的实例下发搭建容灾接口时不传该参数,接口成功响应后返回生成的容灾ID。 对容灾角色为备的实例下发建容灾接口时必传该参数,且必须与上述生成的容灾ID保持一致。
+ Id *string `json:"id,omitempty"`
+
+ // 搭建容灾关系的别名。
+ Alias string `json:"alias"`
+
+ // 建立容灾关系所需要的容灾密码,搭建同一容灾关系的两次调用容灾密码必须保持一致。 容灾密码为容灾集群内部数据通信所用,不能用于客户端连接使用。
+ Password string `json:"password"`
+
+ // 指定当前实例的容灾角色。取值为master或slave,表示在容灾关系中角色为主或备。
+ InstanceRole string `json:"instance_role"`
+
+ DisasterRecoveryInstance *ConstructDisasterRecoveryInstance `json:"disaster_recovery_instance"`
+}
+
+func (o ConstructDisasterRecoveryBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConstructDisasterRecoveryBody struct{}"
+ }
+
+ return strings.Join([]string{"ConstructDisasterRecoveryBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_instance.go
new file mode 100644
index 00000000..4d87e096
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_construct_disaster_recovery_instance.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ConstructDisasterRecoveryInstance struct {
+
+ // 容灾实例的ID。
+ Id string `json:"id"`
+
+ // 容灾实例所在Region的code。
+ RegionCode string `json:"region_code"`
+
+ // 与当前实例建立容灾关系实例所在子网的CIDR列表。
+ SubnetCidrs []string `json:"subnet_cidrs"`
+
+ // 与当前实例建立容灾关系实例的所有节点的IP列表。
+ NodeIps []string `json:"node_ips"`
+}
+
+func (o ConstructDisasterRecoveryInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConstructDisasterRecoveryInstance struct{}"
+ }
+
+ return strings.Join([]string{"ConstructDisasterRecoveryInstance", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request.go
new file mode 100644
index 00000000..4b22f010
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CopyConfigurationRequest struct {
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ Body *CopyConfigurationRequestBody `json:"body,omitempty"`
+}
+
+func (o CopyConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request_body.go
new file mode 100644
index 00000000..16eb55b4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CopyConfigurationRequestBody struct {
+
+ // 复制后的参数模板名称。最长64个字符,只允许大写字母、小写字母、数字、和“-_.”特殊字符。
+ Name string `json:"name"`
+
+ // 参数模板描述。最长256个字符,不支持>!<\"&'=特殊字符。默认为空。
+ Description *string `json:"description,omitempty"`
+}
+
+func (o CopyConfigurationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_response.go
new file mode 100644
index 00000000..d3d37157
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_copy_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CopyConfigurationResponse struct {
+
+ // 复制后的参数模板ID。
+ ConfigId *string `json:"config_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CopyConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_request.go
new file mode 100644
index 00000000..a76b6d21
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateBackRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *NoSqlCreateBackupRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateBackRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBackRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateBackRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_response.go
new file mode 100644
index 00000000..8cf698df
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_back_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateBackResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 备份ID。
+ BackupId *string `json:"backup_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateBackResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateBackResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateBackResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request.go
new file mode 100644
index 00000000..2796ec94
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateColdVolumeRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *CreateColdVolumeRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateColdVolumeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateColdVolumeRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateColdVolumeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request_body.go
new file mode 100644
index 00000000..a50bed73
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateColdVolumeRequestBody struct {
+
+ // 创建的冷数据存储大小,最小申请规格为500GB,最大申请规格为100000GB。单位:GB
+ Size int32 `json:"size"`
+
+ // 创建包年包月实例的冷数据存储时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *string `json:"is_auto_pay,omitempty"`
+}
+
+func (o CreateColdVolumeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateColdVolumeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateColdVolumeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_response.go
new file mode 100644
index 00000000..d3d4f20a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_cold_volume_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateColdVolumeResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅创建包年包月实例的冷数据存储时返回该参数
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateColdVolumeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateColdVolumeResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateColdVolumeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_request_body.go
index 4ccef5b9..3bca0eda 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_request_body.go
@@ -16,7 +16,8 @@ type CreateConfigurationRequestBody struct {
Datastore *CreateConfigurationDatastoreOption `json:"datastore"`
- Values *CreateConfigurationValuesOption `json:"values,omitempty"`
+ // 参数值对象,用户基于默认参数模板自定义的参数值。默认不修改参数值。
+ Values map[string]string `json:"values,omitempty"`
}
func (o CreateConfigurationRequestBody) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_values_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_values_option.go
deleted file mode 100644
index c3ad0ce9..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_configuration_values_option.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 参数值对象,用户基于默认参数模板自定义的参数值。默认不修改参数值。
-type CreateConfigurationValuesOption struct {
-
- // 参数名称。 示例:\"max_connections\":\"10\"中,key值为“max_connections”。 - key为空时,不修改参数值。 - key不为空时,value也不可为空。
- Key string `json:"key"`
-
- // 参数值。 - 示例:\"max_connections\":\"10\"中,value值为“10”。
- Value string `json:"value"`
-}
-
-func (o CreateConfigurationValuesOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "CreateConfigurationValuesOption struct{}"
- }
-
- return strings.Join([]string{"CreateConfigurationValuesOption", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_request.go
new file mode 100644
index 00000000..04a2c557
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateDbUserRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *RedisCreateDbUserRequest `json:"body,omitempty"`
+}
+
+func (o CreateDbUserRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDbUserRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateDbUserRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_response.go
new file mode 100644
index 00000000..fa860c6e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_db_user_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateDbUserResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateDbUserResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDbUserResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateDbUserResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_request.go
new file mode 100644
index 00000000..a6d08c8e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateDisasterRecoveryRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *ConstructDisasterRecoveryBody `json:"body,omitempty"`
+}
+
+func (o CreateDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_response.go
new file mode 100644
index 00000000..244b037e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_disaster_recovery_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateDisasterRecoveryResponse struct {
+
+ // 搭建容灾关系的工作ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 容灾ID。
+ DisasterRecoveryId *string `json:"disaster_recovery_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_request_body.go
index a0f93aff..3eeec788 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_request_body.go
@@ -53,6 +53,11 @@ type CreateInstanceRequestBody struct {
SslOption *string `json:"ssl_option,omitempty"`
ChargeInfo *ChargeInfoOption `json:"charge_info,omitempty"`
+
+ RestoreInfo *RestoreInfo `json:"restore_info,omitempty"`
+
+ // 数据库访问端口号。 目前仅支持GaussDB(for Redis)实例支持自定义端口,取值范围为:1024~65535,禁用端口号为:2180、2887、3887、6377、6378、6380、8018、8079、8091、8479、8484、8999、12017、12333、50069。 不指定端口时,创建GaussDB(for Redis)实例的访问端口默认为6379。 如果该实例计划用于搭建双活容灾场景,请配置为8635端口。
+ Port *string `json:"port,omitempty"`
}
func (o CreateInstanceRequestBody) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_response.go
index e9a80d47..a58e35cc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_create_instance_response.go
@@ -55,7 +55,7 @@ type CreateInstanceResponse struct {
// SSL开关选项,与请求参数相同。
SslOption *string `json:"ssl_option,omitempty"`
- // 创建实例的工作流ID, 仅创建按需实例时会返回该参数。
+ // 创建实例的任务ID, 仅创建按需实例时会返回该参数。
JobId *string `json:"job_id,omitempty"`
// 创建实例的订单ID,仅创建包年包月时返回该参数。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_data_store_list.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_data_store_list.go
new file mode 100644
index 00000000..d63e54d4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_data_store_list.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DataStoreList struct {
+
+ // 数据库引擎。
+ DatastoreName string `json:"datastore_name"`
+
+ // 数据库引擎版本。
+ Version string `json:"version"`
+}
+
+func (o DataStoreList) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DataStoreList struct{}"
+ }
+
+ return strings.Join([]string{"DataStoreList", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_request.go
new file mode 100644
index 00000000..a70f41d8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteBackupRequest struct {
+
+ // 备份文件ID。
+ BackupId string `json:"backup_id"`
+}
+
+func (o DeleteBackupRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteBackupRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteBackupRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_response.go
new file mode 100644
index 00000000..87b63c91
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_backup_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteBackupResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteBackupResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteBackupResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteBackupResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_request.go
new file mode 100644
index 00000000..c012a7de
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteDbUserRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *RedisDeleteDbUserRequest `json:"body,omitempty"`
+}
+
+func (o DeleteDbUserRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDbUserRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDbUserRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_response.go
new file mode 100644
index 00000000..891da7a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_db_user_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteDbUserResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteDbUserResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDbUserResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDbUserResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_request.go
new file mode 100644
index 00000000..5f3c33d0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteDisasterRecoveryRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o DeleteDisasterRecoveryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDisasterRecoveryRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDisasterRecoveryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_response.go
new file mode 100644
index 00000000..938d41ce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_disaster_recovery_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteDisasterRecoveryResponse struct {
+
+ // 解除容灾关系的工作ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteDisasterRecoveryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteDisasterRecoveryResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteDisasterRecoveryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request.go
new file mode 100644
index 00000000..4deddcac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteEnlargeFailNodeRequest struct {
+
+ // 实例ID,可以调用[5.3.3 查询实例列表和详情](x-wc://file=zh-cn_topic_0000001397299481.xml)接口获取。如果未申请实例,可以调用[5.3.1 创建实例](x-wc://file=zh-cn_topic_0000001397139461.xml)接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *DeleteEnlargeFailNodeRequestBody `json:"body,omitempty"`
+}
+
+func (o DeleteEnlargeFailNodeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteEnlargeFailNodeRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteEnlargeFailNodeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request_body.go
new file mode 100644
index 00000000..8b82ba31
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DeleteEnlargeFailNodeRequestBody struct {
+
+ // 节点ID
+ NodeId string `json:"node_id"`
+}
+
+func (o DeleteEnlargeFailNodeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteEnlargeFailNodeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"DeleteEnlargeFailNodeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_response.go
new file mode 100644
index 00000000..f5879c36
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_enlarge_fail_node_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteEnlargeFailNodeResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteEnlargeFailNodeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteEnlargeFailNodeResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteEnlargeFailNodeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_instance_response.go
index 96819d72..3328d689 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_delete_instance_response.go
@@ -9,7 +9,7 @@ import (
// Response Object
type DeleteInstanceResponse struct {
- // 工作流ID。
+ // 任务ID。
JobId *string `json:"job_id,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_different_details.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_different_details.go
new file mode 100644
index 00000000..aba84516
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_different_details.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DifferentDetails struct {
+
+ // 参数名称
+ ParameterName string `json:"parameter_name"`
+
+ // 源参数模板中的参数值。
+ SourceValue string `json:"source_value"`
+
+ // 目标参数模板中的参数值。
+ TargetValue string `json:"target_value"`
+}
+
+func (o DifferentDetails) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DifferentDetails struct{}"
+ }
+
+ return strings.Join([]string{"DifferentDetails", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_disk_auto_expansion_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_disk_auto_expansion_policy.go
new file mode 100644
index 00000000..41dc7686
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_disk_auto_expansion_policy.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type DiskAutoExpansionPolicy struct {
+
+ // 触发自动扩容阈值,只支持输入80、85和90。默认阈值为90,即当已使用存储空间达到总存储空间的90%或者可用空间小于10GB时就会触发扩容。
+ Threshold *int32 `json:"threshold,omitempty"`
+
+ // 扩容步长(s%),默认为10,支持输入10、15和20。当触发自动扩容的时候,自动扩容当前存储空间的s%(非10倍数向上取整。小数点后四舍五入,默认一次最小100G,账户余额不足时,会导致包年包月实例扩容失败)
+ Step *int32 `json:"step,omitempty"`
+
+ // 实例通过自动扩容所能达到的存储空间上限,单位:GB。需要大于等于实例购买的存储空间大小,且最大上限不能超过实例当前规格支持的最大存储容量。批量自动扩容时,不支持自定义存储自动扩容上限,默认扩容至所选实例对应的最大存储空间。
+ Size *int32 `json:"size,omitempty"`
+}
+
+func (o DiskAutoExpansionPolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DiskAutoExpansionPolicy struct{}"
+ }
+
+ return strings.Join([]string{"DiskAutoExpansionPolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_error_log_list.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_error_log_list.go
new file mode 100644
index 00000000..e041bad6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_error_log_list.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ErrorLogList struct {
+
+ // 节点名称。
+ NodeName string `json:"node_name"`
+
+ // 日志级别。
+ Level string `json:"level"`
+
+ // 发生时间,UTC时间。
+ Time string `json:"time"`
+
+ // 日志内容。
+ Content string `json:"content"`
+}
+
+func (o ErrorLogList) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ErrorLogList struct{}"
+ }
+
+ return strings.Join([]string{"ErrorLogList", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_request.go
new file mode 100644
index 00000000..8af7eb26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAvailableFlavorInfosRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 索引位置,偏移量。 - 从第一条数据偏移offset条数据后开始查询,默认为0。 - 取值必须为数字,且不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围:1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAvailableFlavorInfosRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailableFlavorInfosRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailableFlavorInfosRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_response.go
new file mode 100644
index 00000000..ae6e3000
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_available_flavor_infos_response.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAvailableFlavorInfosResponse struct {
+
+ // 实例id。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ CurrentFlavor *ComputeFlavor `json:"current_flavor,omitempty"`
+
+ OptionalFlavors *OptionalFlavorsInfo `json:"optional_flavors,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAvailableFlavorInfosResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailableFlavorInfosResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailableFlavorInfosResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_request.go
new file mode 100644
index 00000000..3427819b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListConfigurationDatastoresRequest struct {
+}
+
+func (o ListConfigurationDatastoresRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationDatastoresRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationDatastoresRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_response.go
new file mode 100644
index 00000000..f81248d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_configuration_datastores_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListConfigurationDatastoresResponse struct {
+
+ // 引擎信息。
+ Datastores *[]DataStoreList `json:"datastores,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListConfigurationDatastoresResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationDatastoresResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationDatastoresResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_request.go
new file mode 100644
index 00000000..7a91341c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListDbUsersRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 数据库账号名。若传此参数,则查询指定账号的信息,否则返回所有数据库账号信息。
+ Name *string `json:"name,omitempty"`
+
+ // 索引位置,偏移量。 - 从第一条数据偏移offset条数据后开始查询,默认为0。 - 取值必须为数字,且不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围:1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListDbUsersRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDbUsersRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListDbUsersRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_response.go
new file mode 100644
index 00000000..ba5ce9a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_db_users_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListDbUsersResponse struct {
+
+ // 数据库用户信息列表。
+ Users *[]RedisDbUserInfo `json:"users,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListDbUsersResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDbUsersResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListDbUsersResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_request.go
new file mode 100644
index 00000000..f35c1844
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListEpsQuotasRequest struct {
+
+ // 企业项目名称。支持模糊搜索,若不指定则返回所有企业项目配额。
+ EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`
+
+ // 索引位置,偏移量。 - 从第一条数据偏移offset条数据后开始查询,默认为0。 - 取值必须为数字,且不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围:1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListEpsQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEpsQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListEpsQuotasRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_response.go
new file mode 100644
index 00000000..dbd9e692
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_eps_quotas_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListEpsQuotasResponse struct {
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 企业项目配额信息列表。
+ Quotas *[]NoSqlQueryEpsQuotaInfo `json:"quotas,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListEpsQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEpsQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListEpsQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_flavors_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_flavors_request.go
index 7af6beee..facaee19 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_flavors_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_flavors_request.go
@@ -10,7 +10,7 @@ import (
type ListFlavorsRequest struct {
// 实例所在区域。
- Region string `json:"region"`
+ Region *string `json:"region,omitempty"`
// 数据库类型。 - 取值为“cassandra”,表示查询GaussDB(for Cassandra)数据库实例支持的规格。 - 取值为“mongodb”,表示查询GaussDB(for Mongo)数据库实例支持的规格。 - 取值为“influxdb”,表示查询GaussDB(for Influx)数据库实例支持的规格。 - 取值为“redis”,表示查询GaussDB(for Redis)数据库实例支持的规格。 - 如果不传该参数,默认为“cassandra”。
EngineName *string `json:"engine_name,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_request.go
new file mode 100644
index 00000000..b680df18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListInstanceDatabasesRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 索引位置,偏移量。 - 从第一条数据偏移offset条数据后开始查询,默认为0。 - 取值必须为数字,且不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围:1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListInstanceDatabasesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceDatabasesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceDatabasesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_response.go
new file mode 100644
index 00000000..edf0a07e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instance_databases_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListInstanceDatabasesResponse struct {
+
+ // Redis实例数据库列表。
+ Databases *[]string `json:"databases,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListInstanceDatabasesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceDatabasesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceDatabasesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instances_datastore_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instances_datastore_result.go
index 0cd0ca10..51afa6eb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instances_datastore_result.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_instances_datastore_result.go
@@ -14,6 +14,9 @@ type ListInstancesDatastoreResult struct {
// 数据库版本号。
Version string `json:"version"`
+
+ // 是否有补丁版本的数据库支持升级,返回true时可以通过升级补丁接口进行数据库升级,否则不允许升级补丁。
+ PatchAvailable bool `json:"patch_available"`
}
func (o ListInstancesDatastoreResult) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_request.go
new file mode 100644
index 00000000..1297bc0c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListProjectTagsRequest struct {
+
+ // 索引位置,偏移量。 - 从第一条数据偏移offset条数据后开始查询,默认为0。 - 取值必须为数字,且不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围:1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListProjectTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_response.go
new file mode 100644
index 00000000..1988e996
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_project_tags_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListProjectTagsResponse struct {
+
+ // 标签列表。
+ Tags *[]Tag `json:"tags,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListProjectTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_request.go
new file mode 100644
index 00000000..459bd3cb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListRecycleInstancesRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListRecycleInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_response.go
new file mode 100644
index 00000000..5171dc1f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_recycle_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRecycleInstancesResponse struct {
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 实例信息。
+ Instances *[]RecycleInstance `json:"instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRecycleInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_request.go
new file mode 100644
index 00000000..fb948ff7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_request.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListRestoreTimeRequest struct {
+
+ // 实例Id,可以调用[5.3.3 查询实例列表和详情](x-wc://file=zh-cn_topic_0000001397299481.xml)接口获取。如果未申请实例,可以调用[5.3.1 创建实例](x-wc://file=zh-cn_topic_0000001397139461.xml)接口创建。
+ InstanceId string `json:"instance_id"`
+
+ // 查询的可恢复时间段的开始时间点,为yyyy-mm-ddThh:mm:ssZ字符串格式,T指某个时间的开始,Z指时区偏移量。 [例如北京时间偏移显示为+0800。默认值为当前查询时间的前一天。]
+ StartTime *string `json:"start_time,omitempty"`
+
+ // 查询的可恢复时间段的结束时间点,为yyyy-mm-ddThh:mm:ssZ字符串格式,T指某个时间的开始,Z指时区偏移量。 [例如北京时间偏移显示为+0800。默认值为当前查询时间。]
+ EndTime *string `json:"end_time,omitempty"`
+
+ // 偏移量,表示查询该偏移量后面的记录,默认值为0。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询返回记录的数量上限值,取值范围为0~1000,默认值为1000。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListRestoreTimeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRestoreTimeRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRestoreTimeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_response.go
new file mode 100644
index 00000000..c7104e42
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_list_restore_time_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRestoreTimeResponse struct {
+
+ // 实例可恢复时间段总数
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 实例可恢复的时间段
+ RestorableTimePeriods *[]RestorableTime `json:"restorable_time_periods,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRestoreTimeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRestoreTimeResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRestoreTimeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_request.go
new file mode 100644
index 00000000..03dfd606
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ModifyDbUserPrivilegeRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *RedisModifyDbUserPrivilegeRequest `json:"body,omitempty"`
+}
+
+func (o ModifyDbUserPrivilegeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyDbUserPrivilegeRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyDbUserPrivilegeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_response.go
new file mode 100644
index 00000000..99eb69c2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_db_user_privilege_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyDbUserPrivilegeResponse struct {
+
+ // 任务ID.
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyDbUserPrivilegeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyDbUserPrivilegeResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyDbUserPrivilegeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_request.go
new file mode 100644
index 00000000..9f26853c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ModifyEpsQuotasRequest struct {
+ Body *NoSqlModiflyEpsQuotasRequestBody `json:"body,omitempty"`
+}
+
+func (o ModifyEpsQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyEpsQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyEpsQuotasRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_response.go
new file mode 100644
index 00000000..8b695481
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_eps_quotas_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyEpsQuotasResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyEpsQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyEpsQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyEpsQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request.go
new file mode 100644
index 00000000..93d4ff0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ModifyPortRequest struct {
+
+ // 实例Id,可以调用[5.3.3 查询实例列表和详情](x-wc://file=zh-cn_topic_0000001397299481.xml)接口获取。如果未申请实例,可以调用[5.3.1 创建实例](x-wc://file=zh-cn_topic_0000001397139461.xml)接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *ModifyPortRequestBody `json:"body,omitempty"`
+}
+
+func (o ModifyPortRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPortRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPortRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request_body.go
new file mode 100644
index 00000000..0484d8a3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ModifyPortRequestBody struct {
+
+ // 新端口号。端口有效范围为2100~9500,暂不支持8636、8637和8638。
+ Port int32 `json:"port"`
+}
+
+func (o ModifyPortRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPortRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPortRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_response.go
new file mode 100644
index 00000000..466fdc4b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_port_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyPortResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyPortResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPortResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPortResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request.go
new file mode 100644
index 00000000..8db36ee6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ModifyPublicIpRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例节点ID。
+ NodeId string `json:"node_id"`
+
+ Body *ModifyPublicIpRequestBody `json:"body,omitempty"`
+}
+
+func (o ModifyPublicIpRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPublicIpRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPublicIpRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request_body.go
new file mode 100644
index 00000000..1ee85c25
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_request_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ModifyPublicIpRequestBody struct {
+
+ // 操作标识。取值: - BIND,表示绑定弹性公网IP。 - UNBIND,表示解绑弹性公网IP。
+ Action string `json:"action"`
+
+ // 弹性公网IP。
+ PublicIp *string `json:"public_ip,omitempty"`
+
+ // 弹性公网IP的ID。
+ PublicIpId *string `json:"public_ip_id,omitempty"`
+}
+
+func (o ModifyPublicIpRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPublicIpRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPublicIpRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_response.go
new file mode 100644
index 00000000..e7fb1761
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_public_ip_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyPublicIpResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyPublicIpResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyPublicIpResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyPublicIpResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request.go
new file mode 100644
index 00000000..537877db
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ModifyVolumeRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *ModifyVolumeRequestBody `json:"body,omitempty"`
+}
+
+func (o ModifyVolumeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyVolumeRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyVolumeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request_body.go
new file mode 100644
index 00000000..d9d9e1c3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ModifyVolumeRequestBody struct {
+
+ // 待变更到的磁盘容量。单位GB,取值为整数。 扩容场景下,必须大于当前磁盘容量。 缩容场景下,必须大于已用量的125%,向上取整。 磁盘容量的上下限与所选引擎类型以及规格相关。 - [GaussDB(for Cassandra)请参见[数据库实例规格](https://support.huaweicloud.com/cassandraug-nosql/nosql_05_0017.html)。](tag:hc) - [GaussDB(for Cassandra)请参见[数据库实例规格。](https://support.huaweicloud.com/intl/zh-cn/cassandraug-nosql/nosql_05_0017.html)](tag:hk) - [GaussDB(for Redis)请参见[数据库实例规格。](https://support.huaweicloud.com/redisug-nosql/nosql_05_0059.html)](tag:hc) - [GaussDB(for Redis)请参见[数据库实例规格。](https://support.huaweicloud.com/intl/zh-cn/redisug-nosql/nosql_05_0059.html)](tag:hk)
+ Size int32 `json:"size"`
+
+ // 扩容包年包月实例存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 - true,表示自动从账户中支付。 - false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
+}
+
+func (o ModifyVolumeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyVolumeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ModifyVolumeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_response.go
new file mode 100644
index 00000000..1f5d5961
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_modify_volume_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyVolumeResponse struct {
+
+ // 任务ID,仅按需实例时会返回该参数。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅变更包年包月实例存储容量时返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyVolumeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyVolumeResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyVolumeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_create_backup_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_create_backup_request_body.go
new file mode 100644
index 00000000..024df164
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_create_backup_request_body.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 创建手动备份请求参数
+type NoSqlCreateBackupRequestBody struct {
+
+ // 手动备份名称。 取值范围:长度为4~64位,必须以字母开头(A~Z或a~z),区分大小写,可以包含字母、数字(0~9)、中划线(-)或者下划线(_),不能包含其他特殊字符。
+ Name string `json:"name"`
+
+ // 手动备份描述。 取值范围:长度不超过256位,且不能包含>!<\"&'=特殊字符。
+ Description string `json:"description"`
+}
+
+func (o NoSqlCreateBackupRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlCreateBackupRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlCreateBackupRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_date_sync_indicators.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_date_sync_indicators.go
new file mode 100644
index 00000000..00cac49a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_date_sync_indicators.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 双活实例rsync同步状态指标值
+type NoSqlDrDateSyncIndicators struct {
+
+ // 节点内同步命令的执行速率,每秒多少条数据;
+ RsyncOps *int64 `json:"rsync_ops,omitempty"`
+
+ // 节点内的同步WAL堆积大小,单位MB;
+ RsyncWalSize *int64 `json:"rsync_wal_size,omitempty"`
+
+ // 同步消息从放入消息队列,直到收到对端响应的平均耗时,单位us;
+ RsyncPushCost *int64 `json:"rsync_push_cost,omitempty"`
+
+ // 同步消息从消息队列取出,直到收到对端响应的平均耗时,单位us;
+ RsyncSendCost *int64 `json:"rsync_send_cost,omitempty"`
+
+ // 采集周期内rsync的同步推送耗时最大值,单位us;
+ RsyncMaxPushCost *int64 `json:"rsync_max_push_cost,omitempty"`
+
+ // 采集周期内rsync的同步发送耗时最大值,单位us;
+ RsyncMaxSendCost *int64 `json:"rsync_max_send_cost,omitempty"`
+
+ // rsync的同步状态,1表示正在同步,0表示没有同步;
+ RsyncStatus *int32 `json:"rsync_status,omitempty"`
+}
+
+func (o NoSqlDrDateSyncIndicators) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlDrDateSyncIndicators struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlDrDateSyncIndicators", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_rpo_and_rto.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_rpo_and_rto.go
new file mode 100644
index 00000000..922dbb9d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_dr_rpo_and_rto.go
@@ -0,0 +1,74 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 容灾实例切换的RPO和RTO指标
+type NoSqlDrRpoAndRto struct {
+
+ // 场景,枚举值 FAILOVER 强制切换; SWITCHOVER 主备倒换
+ Scene NoSqlDrRpoAndRtoScene `json:"scene"`
+
+ // 倒换或切换丢失数据时长,单位:秒(s)
+ Rpo *int64 `json:"rpo,omitempty"`
+
+ // 倒换或切换恢复时长,单位:秒(s)
+ Rto *int64 `json:"rto,omitempty"`
+}
+
+func (o NoSqlDrRpoAndRto) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlDrRpoAndRto struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlDrRpoAndRto", string(data)}, " ")
+}
+
+type NoSqlDrRpoAndRtoScene struct {
+ value string
+}
+
+type NoSqlDrRpoAndRtoSceneEnum struct {
+ FAILOVER NoSqlDrRpoAndRtoScene
+ SWITCHOVER NoSqlDrRpoAndRtoScene
+}
+
+func GetNoSqlDrRpoAndRtoSceneEnum() NoSqlDrRpoAndRtoSceneEnum {
+ return NoSqlDrRpoAndRtoSceneEnum{
+ FAILOVER: NoSqlDrRpoAndRtoScene{
+ value: "FAILOVER",
+ },
+ SWITCHOVER: NoSqlDrRpoAndRtoScene{
+ value: "SWITCHOVER",
+ },
+ }
+}
+
+func (c NoSqlDrRpoAndRtoScene) Value() string {
+ return c.value
+}
+
+func (c NoSqlDrRpoAndRtoScene) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *NoSqlDrRpoAndRtoScene) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_request_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_request_info.go
new file mode 100644
index 00000000..6ff6692b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_request_info.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlEpsQuotaRequestInfo struct {
+
+ // 实例配额。
+ Instance *int32 `json:"instance,omitempty"`
+
+ // vcpus配额。
+ Vcpus *int32 `json:"vcpus,omitempty"`
+
+ // ram配额。
+ Ram *int32 `json:"ram,omitempty"`
+}
+
+func (o NoSqlEpsQuotaRequestInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlEpsQuotaRequestInfo struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlEpsQuotaRequestInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_total.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_total.go
new file mode 100644
index 00000000..1180d37a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_total.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlEpsQuotaTotal struct {
+
+ // 实例配额。
+ Instance int32 `json:"instance"`
+
+ // vcpus配额。
+ Vcpus int32 `json:"vcpus"`
+
+ // ram配额。
+ Ram int32 `json:"ram"`
+}
+
+func (o NoSqlEpsQuotaTotal) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlEpsQuotaTotal struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlEpsQuotaTotal", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_used.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_used.go
new file mode 100644
index 00000000..67f04791
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_eps_quota_used.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlEpsQuotaUsed struct {
+
+ // 已使用实例配额。
+ Instance int32 `json:"instance"`
+
+ // 已使用vcpus配额。
+ Vcpus int32 `json:"vcpus"`
+
+ // 已使用ram配额。
+ Ram int32 `json:"ram"`
+}
+
+func (o NoSqlEpsQuotaUsed) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlEpsQuotaUsed struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlEpsQuotaUsed", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_modifly_eps_quotas_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_modifly_eps_quotas_request_body.go
new file mode 100644
index 00000000..5683c82e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_modifly_eps_quotas_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlModiflyEpsQuotasRequestBody struct {
+
+ // 需要修改的企业项目配额信息列表。
+ Quotas []NoSqlRequestEpsQuota `json:"quotas"`
+}
+
+func (o NoSqlModiflyEpsQuotasRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlModiflyEpsQuotasRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlModiflyEpsQuotasRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_query_eps_quota_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_query_eps_quota_info.go
new file mode 100644
index 00000000..c30d916b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_query_eps_quota_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlQueryEpsQuotaInfo struct {
+
+ // 企业项目ID。
+ EnterpriseProjectId string `json:"enterprise_project_id"`
+
+ // 企业项目名称。
+ EnterpriseProjectName string `json:"enterprise_project_name"`
+
+ Quota *NoSqlEpsQuotaTotal `json:"quota"`
+
+ Used *NoSqlEpsQuotaUsed `json:"used"`
+}
+
+func (o NoSqlQueryEpsQuotaInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlQueryEpsQuotaInfo struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlQueryEpsQuotaInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_request_eps_quota.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_request_eps_quota.go
new file mode 100644
index 00000000..7fe89a26
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_no_sql_request_eps_quota.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type NoSqlRequestEpsQuota struct {
+
+ // 企业项目ID。
+ EnterpriseProjectId string `json:"enterprise_project_id"`
+
+ Quota *NoSqlEpsQuotaRequestInfo `json:"quota"`
+}
+
+func (o NoSqlRequestEpsQuota) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "NoSqlRequestEpsQuota struct{}"
+ }
+
+ return strings.Join([]string{"NoSqlRequestEpsQuota", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_optional_flavors_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_optional_flavors_info.go
new file mode 100644
index 00000000..a5812a6f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_optional_flavors_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type OptionalFlavorsInfo struct {
+
+ // 实例规格变更时可用的规格列表。
+ List []ComputeFlavor `json:"list"`
+
+ // 总记录数。
+ TotalCount int32 `json:"total_count"`
+}
+
+func (o OptionalFlavorsInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OptionalFlavorsInfo struct{}"
+ }
+
+ return strings.Join([]string{"OptionalFlavorsInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_request.go
new file mode 100644
index 00000000..ab93c4cc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type PauseResumeDataSynchronizationRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *ActionBody `json:"body,omitempty"`
+}
+
+func (o PauseResumeDataSynchronizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PauseResumeDataSynchronizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"PauseResumeDataSynchronizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_response.go
new file mode 100644
index 00000000..d4c2a498
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_pause_resume_data_synchronization_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type PauseResumeDataSynchronizationResponse struct {
+
+ // 暂停/恢复具备容灾关系的实例数据同步的工作ID
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o PauseResumeDataSynchronizationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PauseResumeDataSynchronizationResponse struct{}"
+ }
+
+ return strings.Join([]string{"PauseResumeDataSynchronizationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_instance.go
new file mode 100644
index 00000000..2773516e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_instance.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PrecheckDisasterRecoveryInstance struct {
+
+ // 与当前实例建立容灾关系实例的vpc网段。
+ VpcCidr string `json:"vpc_cidr"`
+
+ // 与当前实例建立容灾关系实例的规格码。
+ SpecCode string `json:"spec_code"`
+
+ // 与当前实例建立容灾关系实例的节点IP列表。
+ NodeIps []string `json:"node_ips"`
+}
+
+func (o PrecheckDisasterRecoveryInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PrecheckDisasterRecoveryInstance struct{}"
+ }
+
+ return strings.Join([]string{"PrecheckDisasterRecoveryInstance", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_operation_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_operation_body.go
new file mode 100644
index 00000000..10b75ab7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_precheck_disaster_recovery_operation_body.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type PrecheckDisasterRecoveryOperationBody struct {
+
+ // 指定预校验的具体容灾操作。
+ Operation string `json:"operation"`
+
+ DisasterRecoveryInstance *PrecheckDisasterRecoveryInstance `json:"disaster_recovery_instance,omitempty"`
+}
+
+func (o PrecheckDisasterRecoveryOperationBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PrecheckDisasterRecoveryOperationBody struct{}"
+ }
+
+ return strings.Join([]string{"PrecheckDisasterRecoveryOperationBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_backups.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_backups.go
new file mode 100644
index 00000000..c822e575
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_backups.go
@@ -0,0 +1,141 @@
+package model
+
+import (
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/sdktime"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "strings"
+)
+
+type QueryInstanceBackupResponseBodyBackups struct {
+
+ // 备份ID。
+ Id string `json:"id"`
+
+ // 备份名称。
+ Name string `json:"name"`
+
+ // 备份描述信息。
+ Description string `json:"description"`
+
+ // 备份开始时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
+ BeginTime *sdktime.SdkTime `json:"begin_time"`
+
+ // 备份结束时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
+ EndTime *sdktime.SdkTime `json:"end_time"`
+
+ // 备份状态。
+ Status QueryInstanceBackupResponseBodyBackupsStatus `json:"status"`
+
+ // 备份大小,单位:KB。
+ Size float64 `json:"size"`
+
+ // 备份类型。
+ Type QueryInstanceBackupResponseBodyBackupsType `json:"type"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称。
+ InstanceName string `json:"instance_name"`
+
+ Datastore *QueryInstanceBackupResponseBodyDatastore `json:"datastore"`
+}
+
+func (o QueryInstanceBackupResponseBodyBackups) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "QueryInstanceBackupResponseBodyBackups struct{}"
+ }
+
+ return strings.Join([]string{"QueryInstanceBackupResponseBodyBackups", string(data)}, " ")
+}
+
+type QueryInstanceBackupResponseBodyBackupsStatus struct {
+ value string
+}
+
+type QueryInstanceBackupResponseBodyBackupsStatusEnum struct {
+ BUILDING QueryInstanceBackupResponseBodyBackupsStatus
+ COMPLETED QueryInstanceBackupResponseBodyBackupsStatus
+ FAILED QueryInstanceBackupResponseBodyBackupsStatus
+}
+
+func GetQueryInstanceBackupResponseBodyBackupsStatusEnum() QueryInstanceBackupResponseBodyBackupsStatusEnum {
+ return QueryInstanceBackupResponseBodyBackupsStatusEnum{
+ BUILDING: QueryInstanceBackupResponseBodyBackupsStatus{
+ value: "BUILDING:备份中",
+ },
+ COMPLETED: QueryInstanceBackupResponseBodyBackupsStatus{
+ value: "COMPLETED:备份完成",
+ },
+ FAILED: QueryInstanceBackupResponseBodyBackupsStatus{
+ value: "FAILED:备份失败",
+ },
+ }
+}
+
+func (c QueryInstanceBackupResponseBodyBackupsStatus) Value() string {
+ return c.value
+}
+
+func (c QueryInstanceBackupResponseBodyBackupsStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *QueryInstanceBackupResponseBodyBackupsStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type QueryInstanceBackupResponseBodyBackupsType struct {
+ value string
+}
+
+type QueryInstanceBackupResponseBodyBackupsTypeEnum struct {
+ AUTO QueryInstanceBackupResponseBodyBackupsType
+ MANUAL QueryInstanceBackupResponseBodyBackupsType
+}
+
+func GetQueryInstanceBackupResponseBodyBackupsTypeEnum() QueryInstanceBackupResponseBodyBackupsTypeEnum {
+ return QueryInstanceBackupResponseBodyBackupsTypeEnum{
+ AUTO: QueryInstanceBackupResponseBodyBackupsType{
+ value: "Auto 自动全量备份",
+ },
+ MANUAL: QueryInstanceBackupResponseBodyBackupsType{
+ value: "Manual 手动全量备份。",
+ },
+ }
+}
+
+func (c QueryInstanceBackupResponseBodyBackupsType) Value() string {
+ return c.value
+}
+
+func (c QueryInstanceBackupResponseBodyBackupsType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *QueryInstanceBackupResponseBodyBackupsType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_datastore.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_datastore.go
new file mode 100644
index 00000000..07b448fd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_instance_backup_response_body_datastore.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 数据库信息。
+type QueryInstanceBackupResponseBodyDatastore struct {
+
+ // 数据库类型。
+ Type string `json:"type"`
+
+ // 数据库版本。
+ Version string `json:"version"`
+}
+
+func (o QueryInstanceBackupResponseBodyDatastore) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "QueryInstanceBackupResponseBodyDatastore struct{}"
+ }
+
+ return strings.Join([]string{"QueryInstanceBackupResponseBodyDatastore", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_restore_list.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_restore_list.go
new file mode 100644
index 00000000..cd692463
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_query_restore_list.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 可恢复的实例信息结构体
+type QueryRestoreList struct {
+
+ // 实例ID
+ InstanceId string `json:"instance_id"`
+
+ // 实例模式
+ InstanceMode string `json:"instance_mode"`
+
+ // 引擎名称
+ EngineName string `json:"engine_name"`
+
+ // 引擎版本
+ EngineVersion string `json:"engine_version"`
+
+ // VPC ID。
+ VpcId string `json:"vpc_id"`
+
+ // 子网ID列表
+ SubnetIds []string `json:"subnet_ids"`
+
+ // 安全组ID列表
+ SecurityGroupIds []string `json:"security_group_ids"`
+}
+
+func (o QueryRestoreList) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "QueryRestoreList struct{}"
+ }
+
+ return strings.Join([]string{"QueryRestoreList", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_datastore.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_datastore.go
new file mode 100644
index 00000000..bc420096
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_datastore.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 数据库信息。
+type RecycleDatastore struct {
+
+ // 数据库类型。 - 取值为“cassandra”,表示GaussDB(for Cassandra)数据库实例。 - 取值为“mongodb”,表示GaussDB(for Mongo)数据库实例。 - 取值为“influxdb”,表示GaussDB(for Influx)数据库实例。 - 取值为“redis”,表示GaussDB(for Redis)数据库实例。
+ Type string `json:"type"`
+
+ // 数据库版本。
+ Version string `json:"version"`
+}
+
+func (o RecycleDatastore) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecycleDatastore struct{}"
+ }
+
+ return strings.Join([]string{"RecycleDatastore", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_instance.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_instance.go
new file mode 100644
index 00000000..71d26722
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_instance.go
@@ -0,0 +1,49 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 回收备份实例信息。
+type RecycleInstance struct {
+
+ // 实例ID。
+ Id *string `json:"id,omitempty"`
+
+ // 实例名称。
+ Name *string `json:"name,omitempty"`
+
+ // 实例类型。 - 取值为“Cluster”,表示GaussDB(for Cassandra)、GaussDB(for Influx)、GaussDB(for Redis)集群实例类型。 - 取值为“ReplicaSet”,表示GaussDB(for Mongo)副本集实例类型。
+ Mode *string `json:"mode,omitempty"`
+
+ Datastore *RecycleDatastore `json:"datastore,omitempty"`
+
+ // 计费方式。 计费方式。 - prePaid:预付费,即包年/包月。 - postPaid:后付费,即按需付费。
+ ChargeMode *string `json:"charge_mode,omitempty"`
+
+ // 企业项目ID,取值为“0”,表示为default企业项目
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 备份ID。
+ BackupId *string `json:"backup_id,omitempty"`
+
+ // 实例创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 实例删除时间。
+ DeletedAt *string `json:"deleted_at,omitempty"`
+
+ // 回收备份保留截止时间。
+ RetainedUntil *string `json:"retained_until,omitempty"`
+}
+
+func (o RecycleInstance) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecycleInstance struct{}"
+ }
+
+ return strings.Join([]string{"RecycleInstance", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy.go
new file mode 100644
index 00000000..915250a1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 回收策略。
+type RecyclePolicy struct {
+
+ // 策略保持时长(1-7天),天数为正整数,默认7天。
+ RetentionPeriodInDays *int32 `json:"retention_period_in_days,omitempty"`
+}
+
+func (o RecyclePolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicy struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy_request_body.go
new file mode 100644
index 00000000..050b05a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_recycle_policy_request_body.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecyclePolicyRequestBody struct {
+ RecyclePolicy *RecyclePolicy `json:"recycle_policy"`
+}
+
+func (o RecyclePolicyRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicyRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicyRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_create_db_user_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_create_db_user_request.go
new file mode 100644
index 00000000..76d87895
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_create_db_user_request.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RedisCreateDbUserRequest struct {
+
+ // 需要创建的账号列表
+ Users *[]RedisUserForCreation `json:"users,omitempty"`
+}
+
+func (o RedisCreateDbUserRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisCreateDbUserRequest struct{}"
+ }
+
+ return strings.Join([]string{"RedisCreateDbUserRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_db_user_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_db_user_info.go
new file mode 100644
index 00000000..dbe42beb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_db_user_info.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 数据库用户信息。
+type RedisDbUserInfo struct {
+
+ // 账号名称。 小于36个字符,以字母开头,仅包含数字、字母、中划线、下划线。
+ Name string `json:"name"`
+
+ // 账号类型。 - rwuser:管理员用户 - acluser:普通用户
+ Type string `json:"type"`
+
+ // 账号权限。 - 取值\"ReadOnly\":账号为只读权限; - 取值\"ReadWrite\":账号为读写权限。
+ Privilege string `json:"privilege"`
+
+ // 账号已授权的数据库名称列表。
+ Databases []string `json:"databases"`
+}
+
+func (o RedisDbUserInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisDbUserInfo struct{}"
+ }
+
+ return strings.Join([]string{"RedisDbUserInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_delete_db_user_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_delete_db_user_request.go
new file mode 100644
index 00000000..07b501da
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_delete_db_user_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 删除账号请求
+type RedisDeleteDbUserRequest struct {
+
+ // 需要删除的数据库账号名称列表。
+ Names []string `json:"names"`
+}
+
+func (o RedisDeleteDbUserRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisDeleteDbUserRequest struct{}"
+ }
+
+ return strings.Join([]string{"RedisDeleteDbUserRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request.go
new file mode 100644
index 00000000..4c945fb7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RedisModifyDbUserPrivilegeRequest struct {
+ Users *[]RedisModifyDbUserPrivilegeRequestBody `json:"users,omitempty"`
+}
+
+func (o RedisModifyDbUserPrivilegeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisModifyDbUserPrivilegeRequest struct{}"
+ }
+
+ return strings.Join([]string{"RedisModifyDbUserPrivilegeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request_body.go
new file mode 100644
index 00000000..1c74a1a7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_modify_db_user_privilege_request_body.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 修改数据库账号权限请求体
+type RedisModifyDbUserPrivilegeRequestBody struct {
+
+ // 账号名称。 小于36个字符,以字母开头,仅包含数字、字母、中划线、下划线。
+ Name string `json:"name"`
+
+ // 账号权限。 - 取值\"ReadOnly\":账号为只读权限; - 取值\"ReadWrite\":账号为读写权限。
+ Privilege string `json:"privilege"`
+
+ // 账号授权database列表。 不传值则对账号授权的db不做修改。
+ Databases *[]string `json:"databases,omitempty"`
+}
+
+func (o RedisModifyDbUserPrivilegeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisModifyDbUserPrivilegeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RedisModifyDbUserPrivilegeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_reset_db_user_password_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_reset_db_user_password_request_body.go
new file mode 100644
index 00000000..5dd90b09
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_reset_db_user_password_request_body.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 重置数据库账号请求体。
+type RedisResetDbUserPasswordRequestBody struct {
+
+ // 账号名称。 小于36个字符,以字母开头,仅包含数字、字母、中划线、下划线。
+ Name string `json:"name"`
+
+ // 需重置的密码。 - 密码长度为8~32位。 - 密码需包含大写字母、小写字母、数字和特殊字符中的至少三种,支持的特殊字符为!@#$%^&*()_+-= 。
+ Password string `json:"password"`
+}
+
+func (o RedisResetDbUserPasswordRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisResetDbUserPasswordRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RedisResetDbUserPasswordRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_user_for_creation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_user_for_creation.go
new file mode 100644
index 00000000..74407f06
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_redis_user_for_creation.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RedisUserForCreation struct {
+
+ // 账号名称。 小于36个字符,以字母开头,仅包含数字、字母、中划线、下划线。
+ Name string `json:"name"`
+
+ // - 密码长度为8~32位。 - 密码需包含大写字母、小写字母、数字和特殊字符中的至少三种,支持的特殊字符为!@#$%^&*()_+-= 。
+ Password string `json:"password"`
+
+ // 账号授权的数据库名称列表,至少指定一个数据库。
+ Databases []string `json:"databases"`
+
+ // 账号权限。 - 取值\"ReadOnly\":账号为只读权限; - 取值\"ReadWrite\":账号为读写权限。
+ Privilege string `json:"privilege"`
+}
+
+func (o RedisUserForCreation) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RedisUserForCreation struct{}"
+ }
+
+ return strings.Join([]string{"RedisUserForCreation", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_request.go
new file mode 100644
index 00000000..37bff0b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ResetDbUserPasswordRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *RedisResetDbUserPasswordRequestBody `json:"body,omitempty"`
+}
+
+func (o ResetDbUserPasswordRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetDbUserPasswordRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResetDbUserPasswordRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_response.go
new file mode 100644
index 00000000..13474d18
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_reset_db_user_password_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResetDbUserPasswordResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResetDbUserPasswordResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetDbUserPasswordResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResetDbUserPasswordResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request.go
new file mode 100644
index 00000000..92b2206e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ResizeColdVolumeRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *ResizeColdVolumeRequestBody `json:"body,omitempty"`
+}
+
+func (o ResizeColdVolumeRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeColdVolumeRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResizeColdVolumeRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request_body.go
new file mode 100644
index 00000000..e500de79
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResizeColdVolumeRequestBody struct {
+
+ // 待扩容后冷存储空间大小,单位:GB。用户每次至少选择1GB扩容量,且必须为整数。待扩容后的最大存储空间为100000GB。
+ Size int32 `json:"size"`
+
+ // 扩容包年包月实例的冷数据存储容量时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 ·true,表示自动从账户中支付。 ·false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *string `json:"is_auto_pay,omitempty"`
+}
+
+func (o ResizeColdVolumeRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeColdVolumeRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ResizeColdVolumeRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_response.go
new file mode 100644
index 00000000..a7cb81bd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_resize_cold_volume_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResizeColdVolumeResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单ID,仅扩容包年包月实例的存储容量时返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResizeColdVolumeResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResizeColdVolumeResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResizeColdVolumeResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_request.go
new file mode 100644
index 00000000..3e22d7f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RestartInstanceRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o RestartInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestartInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"RestartInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_response.go
new file mode 100644
index 00000000..78c33de9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restart_instance_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RestartInstanceResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RestartInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestartInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"RestartInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restorable_time.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restorable_time.go
new file mode 100644
index 00000000..d601a284
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restorable_time.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 可恢复的时间段
+type RestorableTime struct {
+
+ // 可恢复时间段的开始时间点,UNIX时间戳格式,单位是毫秒,时区是UTC。
+ StartTime int64 `json:"start_time"`
+
+ // 可恢复时间段的结束时间点, UNIX时间戳格式,单位是毫秒,时区是UTC。
+ EndTime int64 `json:"end_time"`
+}
+
+func (o RestorableTime) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestorableTime struct{}"
+ }
+
+ return strings.Join([]string{"RestorableTime", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_request.go
new file mode 100644
index 00000000..7be0905c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RestoreExistingInstanceRequest struct {
+
+ // 实例Id,可以调用[5.3.3 查询实例列表和详情](x-wc://file=zh-cn_topic_0000001397299481.xml)接口获取。如果未申请实例,可以调用[5.3.1 创建实例](x-wc://file=zh-cn_topic_0000001397139461.xml)接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *RestoreRequestBody `json:"body,omitempty"`
+}
+
+func (o RestoreExistingInstanceRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreExistingInstanceRequest struct{}"
+ }
+
+ return strings.Join([]string{"RestoreExistingInstanceRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_response.go
new file mode 100644
index 00000000..e41000b0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_existing_instance_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RestoreExistingInstanceResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RestoreExistingInstanceResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreExistingInstanceResponse struct{}"
+ }
+
+ return strings.Join([]string{"RestoreExistingInstanceResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_info.go
new file mode 100644
index 00000000..462bfbc2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_info.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 支持按指定备份文件恢复和按指定时间点恢复。 其中按指定时间点恢复仅支持GaussDB(for Cassandra)和GaussDB(for Influx)。
+type RestoreInfo struct {
+
+ // 备份文件ID。 用于根据指定备份恢复数据到一个新创建的实例的场景,此场景下该字段取值不能为空。
+ BackupId *string `json:"backup_id,omitempty"`
+
+ // 数据恢复参考的指定实例的ID。 用于恢复指定实例的指定时间点的数据到一个新创建的实例的场景,此场景下该字段取值不能为空。
+ SourceInstanceId *string `json:"source_instance_id,omitempty"`
+
+ // 数据恢复的指定的时间点。 用于恢复指定实例的指定时间点的数据到一个新创建的实例的场景,此场景下该字段取值不能为空。取值为UTC 13位毫秒数,可通过[查询实例可恢复的时间段]接口进行查询。
+ RestoreTime *int64 `json:"restore_time,omitempty"`
+}
+
+func (o RestoreInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreInfo struct{}"
+ }
+
+ return strings.Join([]string{"RestoreInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_request_body.go
new file mode 100644
index 00000000..1891ece7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_restore_request_body.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 恢复到已有实例的请求body
+type RestoreRequestBody struct {
+
+ // 备份文件名称。根据备份文件恢复到已有的实例。
+ BackupId string `json:"backup_id"`
+
+ // 实例密码。 取值范围:长度为8~32位,必须是大写字母(A~Z)、小写字母(a~z)、数字(0~9)、特殊字符~!@#%^*-_=+?的组合。 - 不传入密码时,恢复后,备份文件中保留的密码将覆盖原有实例的密码。 - 传入密码时,恢复后,将使用该密码覆盖原有实例的密码。
+ Password *string `json:"password,omitempty"`
+}
+
+func (o RestoreRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RestoreRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RestoreRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_request.go
new file mode 100644
index 00000000..a2377b99
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SetAutoEnlargePolicyRequest struct {
+ Body *SetAutoPolicyRequestBody `json:"body,omitempty"`
+}
+
+func (o SetAutoEnlargePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetAutoEnlargePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"SetAutoEnlargePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_response.go
new file mode 100644
index 00000000..7c506c95
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_enlarge_policy_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SetAutoEnlargePolicyResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SetAutoEnlargePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetAutoEnlargePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"SetAutoEnlargePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_policy_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_policy_request_body.go
new file mode 100644
index 00000000..79eacf0c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_auto_policy_request_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SetAutoPolicyRequestBody struct {
+
+ // 设置磁盘自动扩容的实例组ID。
+ InstanceIds []string `json:"instance_ids"`
+
+ // 自动扩容开关。 “on”,表示开启磁盘自动扩容策略。 “off”,表示关闭磁盘自动扩容策略。 默认值为“on”。
+ SwitchOption *string `json:"switch_option,omitempty"`
+
+ // 磁盘自动扩容策略
+ Policy *[]DiskAutoExpansionPolicy `json:"policy,omitempty"`
+}
+
+func (o SetAutoPolicyRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetAutoPolicyRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"SetAutoPolicyRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_request.go
new file mode 100644
index 00000000..e1bfb89d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SetRecyclePolicyRequest struct {
+ Body *RecyclePolicyRequestBody `json:"body,omitempty"`
+}
+
+func (o SetRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_response.go
new file mode 100644
index 00000000..5d588de8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_set_recycle_policy_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SetRecyclePolicyResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SetRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_request.go
new file mode 100644
index 00000000..e4c6a7c1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_request.go
@@ -0,0 +1,139 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowAllInstancesBackupsRequest struct {
+
+ // 分页页码。
+ Offset int32 `json:"offset"`
+
+ // 每页条数。
+ Limit int32 `json:"limit"`
+
+ // 引擎类型 不传该参数则查询所有的引擎。
+ DatastoreType *ShowAllInstancesBackupsRequestDatastoreType `json:"datastore_type,omitempty"`
+
+ // 实例ID 不传该参数则查询所有备份列表。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 备份ID。
+ BackupId *string `json:"backup_id,omitempty"`
+
+ // 备份类型。
+ BackupType *ShowAllInstancesBackupsRequestBackupType `json:"backup_type,omitempty"`
+
+ // 查询备份开始的时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
+ BeginTime *string `json:"begin_time,omitempty"`
+
+ // 查询备份开始的结束时间,格式为“yyyy-mm-dd hh:mm:ss”。该时间为UTC时间。
+ EndTime *string `json:"end_time,omitempty"`
+}
+
+func (o ShowAllInstancesBackupsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAllInstancesBackupsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowAllInstancesBackupsRequest", string(data)}, " ")
+}
+
+type ShowAllInstancesBackupsRequestDatastoreType struct {
+ value string
+}
+
+type ShowAllInstancesBackupsRequestDatastoreTypeEnum struct {
+ CASSANDRA ShowAllInstancesBackupsRequestDatastoreType
+ MONGODB ShowAllInstancesBackupsRequestDatastoreType
+ REDIS ShowAllInstancesBackupsRequestDatastoreType
+ INFLUXDB ShowAllInstancesBackupsRequestDatastoreType
+}
+
+func GetShowAllInstancesBackupsRequestDatastoreTypeEnum() ShowAllInstancesBackupsRequestDatastoreTypeEnum {
+ return ShowAllInstancesBackupsRequestDatastoreTypeEnum{
+ CASSANDRA: ShowAllInstancesBackupsRequestDatastoreType{
+ value: "cassandra",
+ },
+ MONGODB: ShowAllInstancesBackupsRequestDatastoreType{
+ value: "mongodb",
+ },
+ REDIS: ShowAllInstancesBackupsRequestDatastoreType{
+ value: "redis",
+ },
+ INFLUXDB: ShowAllInstancesBackupsRequestDatastoreType{
+ value: "influxdb",
+ },
+ }
+}
+
+func (c ShowAllInstancesBackupsRequestDatastoreType) Value() string {
+ return c.value
+}
+
+func (c ShowAllInstancesBackupsRequestDatastoreType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowAllInstancesBackupsRequestDatastoreType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ShowAllInstancesBackupsRequestBackupType struct {
+ value string
+}
+
+type ShowAllInstancesBackupsRequestBackupTypeEnum struct {
+ AUTO ShowAllInstancesBackupsRequestBackupType
+ MANUAL ShowAllInstancesBackupsRequestBackupType
+}
+
+func GetShowAllInstancesBackupsRequestBackupTypeEnum() ShowAllInstancesBackupsRequestBackupTypeEnum {
+ return ShowAllInstancesBackupsRequestBackupTypeEnum{
+ AUTO: ShowAllInstancesBackupsRequestBackupType{
+ value: "Auto 自动全量备份",
+ },
+ MANUAL: ShowAllInstancesBackupsRequestBackupType{
+ value: "Manual 手动全量备份。",
+ },
+ }
+}
+
+func (c ShowAllInstancesBackupsRequestBackupType) Value() string {
+ return c.value
+}
+
+func (c ShowAllInstancesBackupsRequestBackupType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowAllInstancesBackupsRequestBackupType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_response.go
new file mode 100644
index 00000000..dacc028a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_all_instances_backups_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowAllInstancesBackupsResponse struct {
+
+ // 总记录数。
+ TotalCount *int64 `json:"total_count,omitempty"`
+
+ // 备份列表信息。
+ Backups *[]QueryInstanceBackupResponseBodyBackups `json:"backups,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowAllInstancesBackupsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAllInstancesBackupsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowAllInstancesBackupsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_request.go
new file mode 100644
index 00000000..4b1ca4fd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowApplicableInstancesRequest struct {
+
+ // 参数模板id
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowApplicableInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowApplicableInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowApplicableInstancesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_response.go
new file mode 100644
index 00000000..8dc04a80
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_applicable_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowApplicableInstancesResponse struct {
+
+ // 实例列表
+ Instances *[]ApplicableInstanceRsp `json:"instances,omitempty"`
+
+ // 应用参数的实例数量限制。
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowApplicableInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowApplicableInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowApplicableInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_request.go
new file mode 100644
index 00000000..998ae8ac
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowApplyHistoryRequest struct {
+
+ // 参数组id
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowApplyHistoryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowApplyHistoryRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowApplyHistoryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_response.go
new file mode 100644
index 00000000..97c60ff4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_apply_history_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowApplyHistoryResponse struct {
+
+ // 参数组模板应用历史列表
+ Histories *[]ApplyHistoryRsp `json:"histories,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowApplyHistoryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowApplyHistoryResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowApplyHistoryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_request.go
new file mode 100644
index 00000000..5cb8807d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowAutoEnlargePolicyRequest struct {
+
+ // 实例Id,可以调用5.3.3 查询实例列表和详情接口获取。如果未申请实例,可以调用5.3.1 创建实例接口创建。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowAutoEnlargePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAutoEnlargePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowAutoEnlargePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_response.go
new file mode 100644
index 00000000..4f7a0ba5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_auto_enlarge_policy_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowAutoEnlargePolicyResponse struct {
+ Policy *DiskAutoExpansionPolicy `json:"policy,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowAutoEnlargePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAutoEnlargePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowAutoEnlargePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_request.go
new file mode 100644
index 00000000..0aa2f086
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowErrorLogRequest struct {
+
+ // 实例ID,可以调用“查询实例列表”接口获取。如果未申请实例,可以调用“创建实例”接口创建。
+ InstanceId string `json:"instance_id"`
+
+ // 开始时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始,Z指时区偏移量,例如北京时间偏移显示为+0800。开始时间不得早于当前时间31天。
+ StartTime string `json:"start_time"`
+
+ // 结束时间,格式为“yyyy-mm-ddThh:mm:ssZ”。其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。 只能查询当前时间前一个月内的错误日志。结束时间不能晚于当前时间。
+ EndTime string `json:"end_time"`
+
+ // 节点ID,取空值,表示查询实例下所有允许查询的节点。
+ NodeId *string `json:"node_id,omitempty"`
+
+ // 语句类型,取空值,表示查询所有语句类型,也可指定如下日志类型: - Warning - Error
+ Type *string `json:"type,omitempty"`
+
+ // 索引位置,偏移量。取值范围为 [0, 1999]。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询) - 必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。取值范围[1, 100],默认10 (表示默认返回10条数据)。 - limit 与 offset的和需要满足小于等于2000的条件。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowErrorLogRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowErrorLogRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowErrorLogRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_response.go
new file mode 100644
index 00000000..766f4860
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_error_log_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowErrorLogResponse struct {
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ ErrorLogList *[]ErrorLogList `json:"error_log_list,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowErrorLogResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowErrorLogResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowErrorLogResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_request.go
new file mode 100644
index 00000000..a9e6c537
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowInstanceRoleRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowInstanceRoleRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceRoleRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceRoleRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_response.go
new file mode 100644
index 00000000..fcf37039
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_instance_role_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowInstanceRoleResponse struct {
+
+ // 枚举类型(master、slave)代表实例是主实例还是备实例。
+ Role *string `json:"role,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowInstanceRoleResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceRoleResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceRoleResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_request.go
new file mode 100644
index 00000000..44ff1a8b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowIpNumRequirementRequest struct {
+
+ // 创建实例或扩容节点的个数。最大支持输入200。
+ NodeNum int32 `json:"node_num"`
+
+ // 数据库引擎名称。没有传入实例ID的时候该字段为必传。 - 取值为“cassandra”,表示GaussDB(for Cassandra)数据库引擎。 - 取值为“mongodb”,表示GaussDB(for Mongo)数据库引擎。 - 取值为“influxdb”,表示GaussDB(for Influx)数据库引擎。 - 取值为“redis”,表示GaussDB(for Redis)数据库引擎。
+ EngineName *string `json:"engine_name,omitempty"`
+
+ // 实例类型。没有传入实例ID的时候该字段为必传。 - 取值为“Cluster”,表示GaussDB(for Cassandra)、GaussDB(for Influx)、GaussDB(for Redis)集群实例类型。 - 取值为“ReplicaSet”,表示GaussDB(for Mongo)副本集实例类型。
+ InstanceMode *string `json:"instance_mode,omitempty"`
+
+ // 实例Id,可以调用5.3.3 查询实例列表和详情接口获取。如果未申请实例,可以调用5.3.1 创建实例接口创建。
+ InstanceId *string `json:"instance_id,omitempty"`
+}
+
+func (o ShowIpNumRequirementRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowIpNumRequirementRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowIpNumRequirementRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_response.go
new file mode 100644
index 00000000..7f2cccf5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_ip_num_requirement_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowIpNumRequirementResponse struct {
+
+ // 消耗的IP个数
+ Count *int32 `json:"count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowIpNumRequirementResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowIpNumRequirementResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowIpNumRequirementResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_request.go
new file mode 100644
index 00000000..496acd02
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowModifyHistoryRequest struct {
+
+ // 实例id
+ InstanceId string `json:"instance_id"`
+
+ // 索引位置,偏移量。 从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询)。 取值必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。 - 取值范围: 1~100。 - 不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowModifyHistoryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowModifyHistoryRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowModifyHistoryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_response.go
new file mode 100644
index 00000000..25f9ad80
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_modify_history_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowModifyHistoryResponse struct {
+
+ // 实例参数的修改历史列表
+ Histories *[]ConfigurationHistoryRsp `json:"histories,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowModifyHistoryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowModifyHistoryResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowModifyHistoryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_request.go
new file mode 100644
index 00000000..5d6a044b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowPauseResumeStutusRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowPauseResumeStutusRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowPauseResumeStutusRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowPauseResumeStutusRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_response.go
new file mode 100644
index 00000000..7b9f0d7b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_pause_resume_stutus_response.go
@@ -0,0 +1,96 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Response Object
+type ShowPauseResumeStutusResponse struct {
+
+ // 主实例id
+ MasterInstanceId *string `json:"master_instance_id,omitempty"`
+
+ // 备实例id
+ SlaveInstanceId *string `json:"slave_instance_id,omitempty"`
+
+ // 容灾实例数据同步状态 - NA:实例尚未搭建容灾关系 - NEW:尚未启动的数据同步状态 - SYNCING:数据同步正常进行中 - SUSPENDING:正在暂停数据同步 - SUSPENDED:数据同步已暂停 - RECOVERYING:正在恢复数据同步
+ Status *ShowPauseResumeStutusResponseStatus `json:"status,omitempty"`
+
+ DataSyncIndicators *NoSqlDrDateSyncIndicators `json:"data_sync_indicators,omitempty"`
+
+ // 切换或倒换RPO和RTO值,仅当请求实例id为主实例时有值
+ RtoAndRpoIndicators *[]NoSqlDrRpoAndRto `json:"rto_and_rpo_indicators,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowPauseResumeStutusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowPauseResumeStutusResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowPauseResumeStutusResponse", string(data)}, " ")
+}
+
+type ShowPauseResumeStutusResponseStatus struct {
+ value string
+}
+
+type ShowPauseResumeStutusResponseStatusEnum struct {
+ NA ShowPauseResumeStutusResponseStatus
+ NEW ShowPauseResumeStutusResponseStatus
+ SYNCING ShowPauseResumeStutusResponseStatus
+ SUSPENDING ShowPauseResumeStutusResponseStatus
+ SUSPENDED ShowPauseResumeStutusResponseStatus
+ RECOVERYING ShowPauseResumeStutusResponseStatus
+}
+
+func GetShowPauseResumeStutusResponseStatusEnum() ShowPauseResumeStutusResponseStatusEnum {
+ return ShowPauseResumeStutusResponseStatusEnum{
+ NA: ShowPauseResumeStutusResponseStatus{
+ value: "NA",
+ },
+ NEW: ShowPauseResumeStutusResponseStatus{
+ value: "NEW",
+ },
+ SYNCING: ShowPauseResumeStutusResponseStatus{
+ value: "SYNCING",
+ },
+ SUSPENDING: ShowPauseResumeStutusResponseStatus{
+ value: "SUSPENDING",
+ },
+ SUSPENDED: ShowPauseResumeStutusResponseStatus{
+ value: "SUSPENDED",
+ },
+ RECOVERYING: ShowPauseResumeStutusResponseStatus{
+ value: "RECOVERYING",
+ },
+ }
+}
+
+func (c ShowPauseResumeStutusResponseStatus) Value() string {
+ return c.value
+}
+
+func (c ShowPauseResumeStutusResponseStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowPauseResumeStutusResponseStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_request.go
new file mode 100644
index 00000000..8f033236
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowRecyclePolicyRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+}
+
+func (o ShowRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_response.go
new file mode 100644
index 00000000..1f17b5e4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_recycle_policy_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRecyclePolicyResponse struct {
+ RecyclePolicy *RecyclePolicy `json:"recycle_policy,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_request.go
new file mode 100644
index 00000000..27a835f5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowRestorableListRequest struct {
+
+ // 备份文件ID
+ BackupId string `json:"backup_id"`
+
+ // 索引位置偏移量。取值大于或等于0。不传该参数时,查询偏移量默认为0。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询个数上限值。取值范围:1~100。不传该参数时,默认查询前100条信息。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ShowRestorableListRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRestorableListRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRestorableListRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_response.go
new file mode 100644
index 00000000..b890cecc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_restorable_list_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRestorableListResponse struct {
+
+ // 可恢复的实例总数
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 可恢复的实例信息
+ RestorableInstances *[]QueryRestoreList `json:"restorable_instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRestorableListResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRestorableListResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRestorableListResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_request.go
new file mode 100644
index 00000000..cb28760e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowSlowLogDesensitizationRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowSlowLogDesensitizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSlowLogDesensitizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowSlowLogDesensitizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_response.go
new file mode 100644
index 00000000..9dacd4c8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_show_slow_log_desensitization_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowSlowLogDesensitizationResponse struct {
+
+ // 实例慢日志脱敏开启状态,取值: - on 开启 - off 关闭
+ DesensitizationStatus *string `json:"desensitization_status,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowSlowLogDesensitizationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSlowLogDesensitizationResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowSlowLogDesensitizationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request.go
new file mode 100644
index 00000000..b46e5c0d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchSlowlogDesensitizationRequest struct {
+
+ // 实例ID,可以调用5.3.3 查询实例列表和详情接口获取。如果未申请实例,可以调用5.3.1 创建实例接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *SwitchSlowlogDesensitizationRequestBody `json:"body,omitempty"`
+}
+
+func (o SwitchSlowlogDesensitizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSlowlogDesensitizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSlowlogDesensitizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request_body.go
new file mode 100644
index 00000000..e5d4c407
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SwitchSlowlogDesensitizationRequestBody struct {
+
+ // 实例慢日志脱敏开关开启状态,取值: - off 关闭
+ DesensitizationStatus string `json:"desensitization_status"`
+}
+
+func (o SwitchSlowlogDesensitizationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSlowlogDesensitizationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSlowlogDesensitizationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_response.go
new file mode 100644
index 00000000..576b4a45
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_slowlog_desensitization_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchSlowlogDesensitizationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchSlowlogDesensitizationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSlowlogDesensitizationResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSlowlogDesensitizationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request.go
new file mode 100644
index 00000000..b95f6459
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchSslRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *SwitchSslRequestBody `json:"body,omitempty"`
+}
+
+func (o SwitchSslRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSslRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSslRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request_body.go
new file mode 100644
index 00000000..bf557033
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SwitchSslRequestBody struct {
+
+ // ss开关选项。 -“on”,表示NoSQL实例默认开启SSL连接。 -“off”,表示NoSQL实例默认不启用SSL连接。
+ SslOption string `json:"ssl_option"`
+}
+
+func (o SwitchSslRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSslRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSslRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_response.go
new file mode 100644
index 00000000..bba293dd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_ssl_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchSslResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchSslResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchSslResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchSslResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_disaster_recovery_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_disaster_recovery_body.go
new file mode 100644
index 00000000..46fb7f71
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_disaster_recovery_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type SwitchToMasterDisasterRecoveryBody struct {
+
+ // 是否强制备实例升主。 若为True,则强制备实例升主,用于在主实例异常的状态下,快速恢复服务的场景:允许备实例强制升为特殊主实例,独立提供读写服务。 默认为False,用于正常状态下备实例平缓升主。
+ Force *bool `json:"force,omitempty"`
+}
+
+func (o SwitchToMasterDisasterRecoveryBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchToMasterDisasterRecoveryBody struct{}"
+ }
+
+ return strings.Join([]string{"SwitchToMasterDisasterRecoveryBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_request.go
new file mode 100644
index 00000000..3ef4488e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchToMasterRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *SwitchToMasterDisasterRecoveryBody `json:"body,omitempty"`
+}
+
+func (o SwitchToMasterRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchToMasterRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchToMasterRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_response.go
new file mode 100644
index 00000000..a5ca1a6a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_master_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchToMasterResponse struct {
+
+ // 容灾实例主备倒换的工作ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchToMasterResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchToMasterResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchToMasterResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_request.go
new file mode 100644
index 00000000..d6995a21
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SwitchToSlaveRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o SwitchToSlaveRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchToSlaveRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchToSlaveRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_response.go
new file mode 100644
index 00000000..28973582
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_switch_to_slave_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchToSlaveResponse struct {
+
+ // 容灾实例主备倒换的工作ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchToSlaveResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchToSlaveResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchToSlaveResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_tag.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_tag.go
new file mode 100644
index 00000000..99af04d9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_tag.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签列表。
+type Tag struct {
+
+ // 标签类型: - user - system
+ Type string `json:"type"`
+
+ // 标签键。最大长度36个unicode字符,key不能为空。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
+ Key string `json:"key"`
+
+ // 标签值列表。每个标签值最大长度43个unicode字符,可以为空字符串。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。
+ Values []string `json:"values"`
+}
+
+func (o Tag) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Tag struct{}"
+ }
+
+ return strings.Join([]string{"Tag", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request.go
new file mode 100644
index 00000000..6f4bcc4b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateClientNetworkRequest struct {
+
+ // 实例Id,可以调用[5.3.3 查询实例列表和详情](x-wc://file=zh-cn_topic_0000001397299481.xml)接口获取。如果未申请实例,可以调用[5.3.1 创建实例](x-wc://file=zh-cn_topic_0000001397139461.xml)接口创建。
+ InstanceId string `json:"instance_id"`
+
+ Body *UpdateClientNetworkRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdateClientNetworkRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateClientNetworkRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateClientNetworkRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request_body.go
new file mode 100644
index 00000000..5b22ab8d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type UpdateClientNetworkRequestBody struct {
+
+ // 客户端所在网段。 - 跨网段访问配置只有在客户端与副本集实例部署在不同网段的情况下才需要配置,例如访问副本集的客户端所在网段为192.168.0.0/16,副本集所在的网段为172.16.0.0/24,则需要添加跨网段配置192.168.0.0/16才能正常访问。 - 例如配置的源端网段为192.168.0.0/xx,则xx的输入值必须在8到32之间。 - 源端ECS连接实例的前提是与实例节点网络通信正常,如果网络不通,可以参考对等连接进行相关配置。
+ ClientNetworkRanges []string `json:"client_network_ranges"`
+}
+
+func (o UpdateClientNetworkRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateClientNetworkRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"UpdateClientNetworkRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_response.go
new file mode 100644
index 00000000..10044aad
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_client_network_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateClientNetworkResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateClientNetworkResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateClientNetworkResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateClientNetworkResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_request_body.go
index bfc91868..360d1ecf 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_request_body.go
@@ -14,7 +14,8 @@ type UpdateConfigurationRequestBody struct {
// 参数模板描述。最长256个字符,不支持!<>=&\"'特殊字符。默认为空。
Description *string `json:"description,omitempty"`
- Values *UpdateConfigurationValuesOption `json:"values,omitempty"`
+ // 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。
+ Values map[string]string `json:"values,omitempty"`
}
func (o UpdateConfigurationRequestBody) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_values_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_values_option.go
deleted file mode 100644
index 3818b013..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_configuration_values_option.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。
-type UpdateConfigurationValuesOption struct {
-
- // Parameter name 示例:\"concurrent_reads\":\"64\"中,key值为“concurrent_reads”。 - key不为空时,value也不可为空。
- Key string `json:"key"`
-
- // Parameter value 示例:\"concurrent_reads\":\"64\",value值为“64”。
- Value string `json:"value"`
-}
-
-func (o UpdateConfigurationValuesOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "UpdateConfigurationValuesOption struct{}"
- }
-
- return strings.Join([]string{"UpdateConfigurationValuesOption", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_request_body.go
index 23287e16..405cd87e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_request_body.go
@@ -7,7 +7,9 @@ import (
)
type UpdateInstanceConfigurationRequestBody struct {
- Values *UpdateInstanceConfigurationValuesOption `json:"values"`
+
+ // 参数值对象,用户基于默认参数模板自定义的参数值。为空时不修改参数值。
+ Values map[string]string `json:"values"`
}
func (o UpdateInstanceConfigurationRequestBody) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_values_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_values_option.go
deleted file mode 100644
index 8ef540a0..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_instance_configuration_values_option.go
+++ /dev/null
@@ -1,26 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-// 参数值对象,用户基于默认参数模板自定义的参数值。
-type UpdateInstanceConfigurationValuesOption struct {
-
- // 参数名称。 示例:\"concurrent_reads\":\"64\"中,key值为“concurrent_reads”。
- Key string `json:"key"`
-
- // 参数值。 示例:\"concurrent_reads\":\"64\",value值为“64”。
- Value string `json:"value"`
-}
-
-func (o UpdateInstanceConfigurationValuesOption) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "UpdateInstanceConfigurationValuesOption struct{}"
- }
-
- return strings.Join([]string{"UpdateInstanceConfigurationValuesOption", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_security_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_security_group_response.go
index 6a4089fc..01ca776a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_security_group_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_update_security_group_response.go
@@ -9,7 +9,7 @@ import (
// Response Object
type UpdateSecurityGroupResponse struct {
- // 工作流ID。
+ // 任务ID。
JobId *string `json:"job_id,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_request.go
new file mode 100644
index 00000000..52428b04
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpgradeDbVersionRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o UpgradeDbVersionRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpgradeDbVersionRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpgradeDbVersionRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_response.go
new file mode 100644
index 00000000..1900e2bf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbfornosql/v3/model/model_upgrade_db_version_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpgradeDbVersionResponse struct {
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpgradeDbVersionResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpgradeDbVersionResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpgradeDbVersionResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_client.go
index 0f0be2ce..0bb7314e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_client.go
@@ -19,12 +19,32 @@ func GaussDBforopenGaussClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
+// AddInstanceTags 添加实例标签。
+//
+// 对指定实例添加用户标签信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) AddInstanceTags(request *model.AddInstanceTagsRequest) (*model.AddInstanceTagsResponse, error) {
+ requestDef := GenReqDefForAddInstanceTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AddInstanceTagsResponse), nil
+ }
+}
+
+// AddInstanceTagsInvoker 添加实例标签。
+func (c *GaussDBforopenGaussClient) AddInstanceTagsInvoker(request *model.AddInstanceTagsRequest) *AddInstanceTagsInvoker {
+ requestDef := GenReqDefForAddInstanceTags()
+ return &AddInstanceTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// AllowDbPrivileges 授权数据库帐号
//
// 在指定实例的数据库中, 设置帐号的权限。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) AllowDbPrivileges(request *model.AllowDbPrivilegesRequest) (*model.AllowDbPrivilegesResponse, error) {
requestDef := GenReqDefForAllowDbPrivileges()
@@ -41,12 +61,74 @@ func (c *GaussDBforopenGaussClient) AllowDbPrivilegesInvoker(request *model.Allo
return &AllowDbPrivilegesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// AttachEip 绑定/解绑弹性公网IP
+//
+// 实例下的节点绑定弹性公网IP/解绑弹性公网IP
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) AttachEip(request *model.AttachEipRequest) (*model.AttachEipResponse, error) {
+ requestDef := GenReqDefForAttachEip()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.AttachEipResponse), nil
+ }
+}
+
+// AttachEipInvoker 绑定/解绑弹性公网IP
+func (c *GaussDBforopenGaussClient) AttachEipInvoker(request *model.AttachEipRequest) *AttachEipInvoker {
+ requestDef := GenReqDefForAttachEip()
+ return &AttachEipInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CopyConfiguration 复制参数模板
+//
+// 复制参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) CopyConfiguration(request *model.CopyConfigurationRequest) (*model.CopyConfigurationResponse, error) {
+ requestDef := GenReqDefForCopyConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CopyConfigurationResponse), nil
+ }
+}
+
+// CopyConfigurationInvoker 复制参数模板
+func (c *GaussDBforopenGaussClient) CopyConfigurationInvoker(request *model.CopyConfigurationRequest) *CopyConfigurationInvoker {
+ requestDef := GenReqDefForCopyConfiguration()
+ return &CopyConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateConfigurationTemplate 创建参数模板
+//
+// 创建参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) CreateConfigurationTemplate(request *model.CreateConfigurationTemplateRequest) (*model.CreateConfigurationTemplateResponse, error) {
+ requestDef := GenReqDefForCreateConfigurationTemplate()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateConfigurationTemplateResponse), nil
+ }
+}
+
+// CreateConfigurationTemplateInvoker 创建参数模板
+func (c *GaussDBforopenGaussClient) CreateConfigurationTemplateInvoker(request *model.CreateConfigurationTemplateRequest) *CreateConfigurationTemplateInvoker {
+ requestDef := GenReqDefForCreateConfigurationTemplate()
+ return &CreateConfigurationTemplateInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateDatabase 创建数据库
//
// 在指定实例中创建数据库。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateDatabase(request *model.CreateDatabaseRequest) (*model.CreateDatabaseResponse, error) {
requestDef := GenReqDefForCreateDatabase()
@@ -67,8 +149,7 @@ func (c *GaussDBforopenGaussClient) CreateDatabaseInvoker(request *model.CreateD
//
// 在指定实例的数据库中, 创建数据库schema。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateDatabaseSchemas(request *model.CreateDatabaseSchemasRequest) (*model.CreateDatabaseSchemasResponse, error) {
requestDef := GenReqDefForCreateDatabaseSchemas()
@@ -89,8 +170,7 @@ func (c *GaussDBforopenGaussClient) CreateDatabaseSchemasInvoker(request *model.
//
// 在指定实例中创建数据库用户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateDbUser(request *model.CreateDbUserRequest) (*model.CreateDbUserResponse, error) {
requestDef := GenReqDefForCreateDbUser()
@@ -111,8 +191,7 @@ func (c *GaussDBforopenGaussClient) CreateDbUserInvoker(request *model.CreateDbU
//
// 创建数据库企业版和集中式实例
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateInstance(request *model.CreateInstanceRequest) (*model.CreateInstanceResponse, error) {
requestDef := GenReqDefForCreateInstance()
@@ -133,8 +212,7 @@ func (c *GaussDBforopenGaussClient) CreateInstanceInvoker(request *model.CreateI
//
// 创建手动备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateManualBackup(request *model.CreateManualBackupRequest) (*model.CreateManualBackupResponse, error) {
requestDef := GenReqDefForCreateManualBackup()
@@ -155,8 +233,7 @@ func (c *GaussDBforopenGaussClient) CreateManualBackupInvoker(request *model.Cre
//
// 根据备份恢复新实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) CreateRestoreInstance(request *model.CreateRestoreInstanceRequest) (*model.CreateRestoreInstanceResponse, error) {
requestDef := GenReqDefForCreateRestoreInstance()
@@ -173,12 +250,32 @@ func (c *GaussDBforopenGaussClient) CreateRestoreInstanceInvoker(request *model.
return &CreateRestoreInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteConfiguration 删除参数模板
+//
+// 删除参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) DeleteConfiguration(request *model.DeleteConfigurationRequest) (*model.DeleteConfigurationResponse, error) {
+ requestDef := GenReqDefForDeleteConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteConfigurationResponse), nil
+ }
+}
+
+// DeleteConfigurationInvoker 删除参数模板
+func (c *GaussDBforopenGaussClient) DeleteConfigurationInvoker(request *model.DeleteConfigurationRequest) *DeleteConfigurationInvoker {
+ requestDef := GenReqDefForDeleteConfiguration()
+ return &DeleteConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteInstance 删除实例
//
// 删除数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error) {
requestDef := GenReqDefForDeleteInstance()
@@ -195,12 +292,32 @@ func (c *GaussDBforopenGaussClient) DeleteInstanceInvoker(request *model.DeleteI
return &DeleteInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteJob 删除任务记录
+//
+// 删除任务记录。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) DeleteJob(request *model.DeleteJobRequest) (*model.DeleteJobResponse, error) {
+ requestDef := GenReqDefForDeleteJob()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteJobResponse), nil
+ }
+}
+
+// DeleteJobInvoker 删除任务记录
+func (c *GaussDBforopenGaussClient) DeleteJobInvoker(request *model.DeleteJobRequest) *DeleteJobInvoker {
+ requestDef := GenReqDefForDeleteJob()
+ return &DeleteJobInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeleteManualBackup 删除手动备份
//
// 删除手动备份。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) DeleteManualBackup(request *model.DeleteManualBackupRequest) (*model.DeleteManualBackupResponse, error) {
requestDef := GenReqDefForDeleteManualBackup()
@@ -217,12 +334,74 @@ func (c *GaussDBforopenGaussClient) DeleteManualBackupInvoker(request *model.Del
return &DeleteManualBackupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListApplicableInstances 查询可应用实例列表
+//
+// 查询可应用当前参数组模板的实例列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListApplicableInstances(request *model.ListApplicableInstancesRequest) (*model.ListApplicableInstancesResponse, error) {
+ requestDef := GenReqDefForListApplicableInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListApplicableInstancesResponse), nil
+ }
+}
+
+// ListApplicableInstancesInvoker 查询可应用实例列表
+func (c *GaussDBforopenGaussClient) ListApplicableInstancesInvoker(request *model.ListApplicableInstancesRequest) *ListApplicableInstancesInvoker {
+ requestDef := GenReqDefForListApplicableInstances()
+ return &ListApplicableInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAppliedHistories 查询参数模板的应用记录
+//
+// 查询参数模板的应用记录,以实例级别为维度。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListAppliedHistories(request *model.ListAppliedHistoriesRequest) (*model.ListAppliedHistoriesResponse, error) {
+ requestDef := GenReqDefForListAppliedHistories()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAppliedHistoriesResponse), nil
+ }
+}
+
+// ListAppliedHistoriesInvoker 查询参数模板的应用记录
+func (c *GaussDBforopenGaussClient) ListAppliedHistoriesInvoker(request *model.ListAppliedHistoriesRequest) *ListAppliedHistoriesInvoker {
+ requestDef := GenReqDefForListAppliedHistories()
+ return &ListAppliedHistoriesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAvailableFlavors 查询实例可变更规格
+//
+// 查询实例可变更规格列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListAvailableFlavors(request *model.ListAvailableFlavorsRequest) (*model.ListAvailableFlavorsResponse, error) {
+ requestDef := GenReqDefForListAvailableFlavors()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAvailableFlavorsResponse), nil
+ }
+}
+
+// ListAvailableFlavorsInvoker 查询实例可变更规格
+func (c *GaussDBforopenGaussClient) ListAvailableFlavorsInvoker(request *model.ListAvailableFlavorsRequest) *ListAvailableFlavorsInvoker {
+ requestDef := GenReqDefForListAvailableFlavors()
+ return &ListAvailableFlavorsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListBackups 查询备份列表
//
// 获取备份列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListBackups(request *model.ListBackupsRequest) (*model.ListBackupsResponse, error) {
requestDef := GenReqDefForListBackups()
@@ -239,12 +418,32 @@ func (c *GaussDBforopenGaussClient) ListBackupsInvoker(request *model.ListBackup
return &ListBackupsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListBindedEips 查询实例已绑定EIP列表
+//
+// 查询实例已绑定EIP列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListBindedEips(request *model.ListBindedEipsRequest) (*model.ListBindedEipsResponse, error) {
+ requestDef := GenReqDefForListBindedEips()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListBindedEipsResponse), nil
+ }
+}
+
+// ListBindedEipsInvoker 查询实例已绑定EIP列表
+func (c *GaussDBforopenGaussClient) ListBindedEipsInvoker(request *model.ListBindedEipsRequest) *ListBindedEipsInvoker {
+ requestDef := GenReqDefForListBindedEips()
+ return &ListBindedEipsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListComponentInfos 查询实例的组件列表
//
// 查询实例的组件列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListComponentInfos(request *model.ListComponentInfosRequest) (*model.ListComponentInfosResponse, error) {
requestDef := GenReqDefForListComponentInfos()
@@ -265,8 +464,7 @@ func (c *GaussDBforopenGaussClient) ListComponentInfosInvoker(request *model.Lis
//
// 获取参数模板列表,包括所有数据库的默认参数模板和用户创建的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListConfigurations(request *model.ListConfigurationsRequest) (*model.ListConfigurationsResponse, error) {
requestDef := GenReqDefForListConfigurations()
@@ -283,12 +481,32 @@ func (c *GaussDBforopenGaussClient) ListConfigurationsInvoker(request *model.Lis
return &ListConfigurationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListConfigurationsDiff 比较两个参数组模板之间的差异
+//
+// 获取两个参数配置模板的差异列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListConfigurationsDiff(request *model.ListConfigurationsDiffRequest) (*model.ListConfigurationsDiffResponse, error) {
+ requestDef := GenReqDefForListConfigurationsDiff()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListConfigurationsDiffResponse), nil
+ }
+}
+
+// ListConfigurationsDiffInvoker 比较两个参数组模板之间的差异
+func (c *GaussDBforopenGaussClient) ListConfigurationsDiffInvoker(request *model.ListConfigurationsDiffRequest) *ListConfigurationsDiffInvoker {
+ requestDef := GenReqDefForListConfigurationsDiff()
+ return &ListConfigurationsDiffInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListDatabaseSchemas 查询数据库SCHEMA列表
//
// 查询指定实例的数据库SCHEMA列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListDatabaseSchemas(request *model.ListDatabaseSchemasRequest) (*model.ListDatabaseSchemasResponse, error) {
requestDef := GenReqDefForListDatabaseSchemas()
@@ -309,8 +527,7 @@ func (c *GaussDBforopenGaussClient) ListDatabaseSchemasInvoker(request *model.Li
//
// 查询指定实例中的数据库列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListDatabases(request *model.ListDatabasesRequest) (*model.ListDatabasesResponse, error) {
requestDef := GenReqDefForListDatabases()
@@ -331,8 +548,7 @@ func (c *GaussDBforopenGaussClient) ListDatabasesInvoker(request *model.ListData
//
// 查询指定数据库引擎对应的版本信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListDatastores(request *model.ListDatastoresRequest) (*model.ListDatastoresResponse, error) {
requestDef := GenReqDefForListDatastores()
@@ -353,8 +569,7 @@ func (c *GaussDBforopenGaussClient) ListDatastoresInvoker(request *model.ListDat
//
// 在指定实例中查询数据库用户列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListDbUsers(request *model.ListDbUsersRequest) (*model.ListDbUsersResponse, error) {
requestDef := GenReqDefForListDbUsers()
@@ -371,12 +586,32 @@ func (c *GaussDBforopenGaussClient) ListDbUsersInvoker(request *model.ListDbUser
return &ListDbUsersInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListEpsQuotas 查询企业项目配额组
+//
+// 查询企业项目配额组信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListEpsQuotas(request *model.ListEpsQuotasRequest) (*model.ListEpsQuotasResponse, error) {
+ requestDef := GenReqDefForListEpsQuotas()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListEpsQuotasResponse), nil
+ }
+}
+
+// ListEpsQuotasInvoker 查询企业项目配额组
+func (c *GaussDBforopenGaussClient) ListEpsQuotasInvoker(request *model.ListEpsQuotasRequest) *ListEpsQuotasInvoker {
+ requestDef := GenReqDefForListEpsQuotas()
+ return &ListEpsQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListFlavors 查询数据库规格
//
// 查询数据库的规格信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListFlavors(request *model.ListFlavorsRequest) (*model.ListFlavorsResponse, error) {
requestDef := GenReqDefForListFlavors()
@@ -393,12 +628,74 @@ func (c *GaussDBforopenGaussClient) ListFlavorsInvoker(request *model.ListFlavor
return &ListFlavorsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListGaussDbDatastores 查询引擎列表
+//
+// 查询引擎列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListGaussDbDatastores(request *model.ListGaussDbDatastoresRequest) (*model.ListGaussDbDatastoresResponse, error) {
+ requestDef := GenReqDefForListGaussDbDatastores()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListGaussDbDatastoresResponse), nil
+ }
+}
+
+// ListGaussDbDatastoresInvoker 查询引擎列表
+func (c *GaussDBforopenGaussClient) ListGaussDbDatastoresInvoker(request *model.ListGaussDbDatastoresRequest) *ListGaussDbDatastoresInvoker {
+ requestDef := GenReqDefForListGaussDbDatastores()
+ return &ListGaussDbDatastoresInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListHistoryOperations 查询参数模板的修改历史
+//
+// 查询参数模板的修改历史记录。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListHistoryOperations(request *model.ListHistoryOperationsRequest) (*model.ListHistoryOperationsResponse, error) {
+ requestDef := GenReqDefForListHistoryOperations()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListHistoryOperationsResponse), nil
+ }
+}
+
+// ListHistoryOperationsInvoker 查询参数模板的修改历史
+func (c *GaussDBforopenGaussClient) ListHistoryOperationsInvoker(request *model.ListHistoryOperationsRequest) *ListHistoryOperationsInvoker {
+ requestDef := GenReqDefForListHistoryOperations()
+ return &ListHistoryOperationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListInstanceTags 查询实例标签
+//
+// 查询指定实例的用户标签信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListInstanceTags(request *model.ListInstanceTagsRequest) (*model.ListInstanceTagsResponse, error) {
+ requestDef := GenReqDefForListInstanceTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListInstanceTagsResponse), nil
+ }
+}
+
+// ListInstanceTagsInvoker 查询实例标签
+func (c *GaussDBforopenGaussClient) ListInstanceTagsInvoker(request *model.ListInstanceTagsRequest) *ListInstanceTagsInvoker {
+ requestDef := GenReqDefForListInstanceTags()
+ return &ListInstanceTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListInstances 查询数据库实例列表/查询实例详情
//
// 查询数据库实例列表/查询实例详情
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error) {
requestDef := GenReqDefForListInstances()
@@ -415,13 +712,96 @@ func (c *GaussDBforopenGaussClient) ListInstancesInvoker(request *model.ListInst
return &ListInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListPredefinedTags 查询预定义标签
+//
+// 查询预预定义标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListPredefinedTags(request *model.ListPredefinedTagsRequest) (*model.ListPredefinedTagsResponse, error) {
+ requestDef := GenReqDefForListPredefinedTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPredefinedTagsResponse), nil
+ }
+}
+
+// ListPredefinedTagsInvoker 查询预定义标签
+func (c *GaussDBforopenGaussClient) ListPredefinedTagsInvoker(request *model.ListPredefinedTagsRequest) *ListPredefinedTagsInvoker {
+ requestDef := GenReqDefForListPredefinedTags()
+ return &ListPredefinedTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListProjectTags 查询项目标签
+//
+// 查询项目下所有用户标签信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListProjectTags(request *model.ListProjectTagsRequest) (*model.ListProjectTagsResponse, error) {
+ requestDef := GenReqDefForListProjectTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListProjectTagsResponse), nil
+ }
+}
+
+// ListProjectTagsInvoker 查询项目标签
+func (c *GaussDBforopenGaussClient) ListProjectTagsInvoker(request *model.ListProjectTagsRequest) *ListProjectTagsInvoker {
+ requestDef := GenReqDefForListProjectTags()
+ return &ListProjectTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListRecycleInstances 查询回收站所有引擎实例列表。
+//
+// 查询回收站所有引擎实例列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListRecycleInstances(request *model.ListRecycleInstancesRequest) (*model.ListRecycleInstancesResponse, error) {
+ requestDef := GenReqDefForListRecycleInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListRecycleInstancesResponse), nil
+ }
+}
+
+// ListRecycleInstancesInvoker 查询回收站所有引擎实例列表。
+func (c *GaussDBforopenGaussClient) ListRecycleInstancesInvoker(request *model.ListRecycleInstancesRequest) *ListRecycleInstancesInvoker {
+ requestDef := GenReqDefForListRecycleInstances()
+ return &ListRecycleInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListRestorableInstances 查询可用于备份恢复的实例列表
+//
+// 查询可用于备份恢复的实例列表,实例信息要符合备份条件。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListRestorableInstances(request *model.ListRestorableInstancesRequest) (*model.ListRestorableInstancesResponse, error) {
+ requestDef := GenReqDefForListRestorableInstances()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListRestorableInstancesResponse), nil
+ }
+}
+
+// ListRestorableInstancesInvoker 查询可用于备份恢复的实例列表
+func (c *GaussDBforopenGaussClient) ListRestorableInstancesInvoker(request *model.ListRestorableInstancesRequest) *ListRestorableInstancesInvoker {
+ requestDef := GenReqDefForListRestorableInstances()
+ return &ListRestorableInstancesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListRestoreTimes 查询可恢复时间段
//
// 查询可恢复时间段。
// 如果您备份策略中的保存天数设置较长,建议您传入查询日期“date”。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListRestoreTimes(request *model.ListRestoreTimesRequest) (*model.ListRestoreTimesResponse, error) {
requestDef := GenReqDefForListRestoreTimes()
@@ -442,8 +822,7 @@ func (c *GaussDBforopenGaussClient) ListRestoreTimesInvoker(request *model.ListR
//
// 查询指定数据库引擎对应的磁盘类型。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ListStorageTypes(request *model.ListStorageTypesRequest) (*model.ListStorageTypesResponse, error) {
requestDef := GenReqDefForListStorageTypes()
@@ -460,12 +839,74 @@ func (c *GaussDBforopenGaussClient) ListStorageTypesInvoker(request *model.ListS
return &ListStorageTypesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListTasks 查询任务列表
+//
+// 获取任务中心的任务列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ListTasks(request *model.ListTasksRequest) (*model.ListTasksResponse, error) {
+ requestDef := GenReqDefForListTasks()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListTasksResponse), nil
+ }
+}
+
+// ListTasksInvoker 查询任务列表
+func (c *GaussDBforopenGaussClient) ListTasksInvoker(request *model.ListTasksRequest) *ListTasksInvoker {
+ requestDef := GenReqDefForListTasks()
+ return &ListTasksInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ModifyEpsQuota 修改企业项目配额
+//
+// 修改企业项目配额。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ModifyEpsQuota(request *model.ModifyEpsQuotaRequest) (*model.ModifyEpsQuotaResponse, error) {
+ requestDef := GenReqDefForModifyEpsQuota()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ModifyEpsQuotaResponse), nil
+ }
+}
+
+// ModifyEpsQuotaInvoker 修改企业项目配额
+func (c *GaussDBforopenGaussClient) ModifyEpsQuotaInvoker(request *model.ModifyEpsQuotaRequest) *ModifyEpsQuotaInvoker {
+ requestDef := GenReqDefForModifyEpsQuota()
+ return &ModifyEpsQuotaInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ResetConfiguration 重置参数模板
+//
+// 重置参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ResetConfiguration(request *model.ResetConfigurationRequest) (*model.ResetConfigurationResponse, error) {
+ requestDef := GenReqDefForResetConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ResetConfigurationResponse), nil
+ }
+}
+
+// ResetConfigurationInvoker 重置参数模板
+func (c *GaussDBforopenGaussClient) ResetConfigurationInvoker(request *model.ResetConfigurationRequest) *ResetConfigurationInvoker {
+ requestDef := GenReqDefForResetConfiguration()
+ return &ResetConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ResetPwd 重置数据库密码。
//
// 重置数据库密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ResetPwd(request *model.ResetPwdRequest) (*model.ResetPwdResponse, error) {
requestDef := GenReqDefForResetPwd()
@@ -482,12 +923,11 @@ func (c *GaussDBforopenGaussClient) ResetPwdInvoker(request *model.ResetPwdReque
return &ResetPwdInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
-// ResizeInstanceFlavor GaussDB(for openGauss)数据库实例规格变更
+// ResizeInstanceFlavor GaussDB数据库实例规格变更
//
-// GaussDB(for openGauss)数据库实例规格变更
+// GaussDB数据库实例规格变更
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ResizeInstanceFlavor(request *model.ResizeInstanceFlavorRequest) (*model.ResizeInstanceFlavorResponse, error) {
requestDef := GenReqDefForResizeInstanceFlavor()
@@ -498,7 +938,7 @@ func (c *GaussDBforopenGaussClient) ResizeInstanceFlavor(request *model.ResizeIn
}
}
-// ResizeInstanceFlavorInvoker GaussDB(for openGauss)数据库实例规格变更
+// ResizeInstanceFlavorInvoker GaussDB数据库实例规格变更
func (c *GaussDBforopenGaussClient) ResizeInstanceFlavorInvoker(request *model.ResizeInstanceFlavorRequest) *ResizeInstanceFlavorInvoker {
requestDef := GenReqDefForResizeInstanceFlavor()
return &ResizeInstanceFlavorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
@@ -508,8 +948,7 @@ func (c *GaussDBforopenGaussClient) ResizeInstanceFlavorInvoker(request *model.R
//
// 重启数据库实例。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) RestartInstance(request *model.RestartInstanceRequest) (*model.RestartInstanceResponse, error) {
requestDef := GenReqDefForRestartInstance()
@@ -530,8 +969,7 @@ func (c *GaussDBforopenGaussClient) RestartInstanceInvoker(request *model.Restar
//
// CN横向扩容/DN分片扩容/磁盘扩容
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) RunInstanceAction(request *model.RunInstanceActionRequest) (*model.RunInstanceActionResponse, error) {
requestDef := GenReqDefForRunInstanceAction()
@@ -552,8 +990,7 @@ func (c *GaussDBforopenGaussClient) RunInstanceActionInvoker(request *model.RunI
//
// 设置自动备份策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) SetBackupPolicy(request *model.SetBackupPolicyRequest) (*model.SetBackupPolicyResponse, error) {
requestDef := GenReqDefForSetBackupPolicy()
@@ -574,8 +1011,7 @@ func (c *GaussDBforopenGaussClient) SetBackupPolicyInvoker(request *model.SetBac
//
// 重置指定数据库帐号的密码。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) SetDbUserPwd(request *model.SetDbUserPwdRequest) (*model.SetDbUserPwdResponse, error) {
requestDef := GenReqDefForSetDbUserPwd()
@@ -592,12 +1028,32 @@ func (c *GaussDBforopenGaussClient) SetDbUserPwdInvoker(request *model.SetDbUser
return &SetDbUserPwdInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// SetRecyclePolicy 设置回收站策略
+//
+// 设置回收站策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) SetRecyclePolicy(request *model.SetRecyclePolicyRequest) (*model.SetRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForSetRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
+// SetRecyclePolicyInvoker 设置回收站策略
+func (c *GaussDBforopenGaussClient) SetRecyclePolicyInvoker(request *model.SetRecyclePolicyRequest) *SetRecyclePolicyInvoker {
+ requestDef := GenReqDefForSetRecyclePolicy()
+ return &SetRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowBackupPolicy 查询自动备份策略
//
// 查询自动备份策略。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ShowBackupPolicy(request *model.ShowBackupPolicyRequest) (*model.ShowBackupPolicyResponse, error) {
requestDef := GenReqDefForShowBackupPolicy()
@@ -614,12 +1070,74 @@ func (c *GaussDBforopenGaussClient) ShowBackupPolicyInvoker(request *model.ShowB
return &ShowBackupPolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowBalanceStatus 查询实例主备平衡状态
+//
+// 查询实例是否发生过主备切换而导致主机负载不均衡。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowBalanceStatus(request *model.ShowBalanceStatusRequest) (*model.ShowBalanceStatusResponse, error) {
+ requestDef := GenReqDefForShowBalanceStatus()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowBalanceStatusResponse), nil
+ }
+}
+
+// ShowBalanceStatusInvoker 查询实例主备平衡状态
+func (c *GaussDBforopenGaussClient) ShowBalanceStatusInvoker(request *model.ShowBalanceStatusRequest) *ShowBalanceStatusInvoker {
+ requestDef := GenReqDefForShowBalanceStatus()
+ return &ShowBalanceStatusInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowConfigurationDetail 查询参数模板详情
+//
+// 根据参数模板ID获取指定参数模板详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowConfigurationDetail(request *model.ShowConfigurationDetailRequest) (*model.ShowConfigurationDetailResponse, error) {
+ requestDef := GenReqDefForShowConfigurationDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationDetailResponse), nil
+ }
+}
+
+// ShowConfigurationDetailInvoker 查询参数模板详情
+func (c *GaussDBforopenGaussClient) ShowConfigurationDetailInvoker(request *model.ShowConfigurationDetailRequest) *ShowConfigurationDetailInvoker {
+ requestDef := GenReqDefForShowConfigurationDetail()
+ return &ShowConfigurationDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowDeploymentForm 查询解决方案模板配置
+//
+// 根据解决方案模板名称或实例ID查询副本数、分片数、节点数
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowDeploymentForm(request *model.ShowDeploymentFormRequest) (*model.ShowDeploymentFormResponse, error) {
+ requestDef := GenReqDefForShowDeploymentForm()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowDeploymentFormResponse), nil
+ }
+}
+
+// ShowDeploymentFormInvoker 查询解决方案模板配置
+func (c *GaussDBforopenGaussClient) ShowDeploymentFormInvoker(request *model.ShowDeploymentFormRequest) *ShowDeploymentFormInvoker {
+ requestDef := GenReqDefForShowDeploymentForm()
+ return &ShowDeploymentFormInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowInstanceConfiguration 获取指定实例的参数模板
//
// 获取指定实例的参数模板。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) ShowInstanceConfiguration(request *model.ShowInstanceConfigurationRequest) (*model.ShowInstanceConfigurationResponse, error) {
requestDef := GenReqDefForShowInstanceConfiguration()
@@ -636,12 +1154,157 @@ func (c *GaussDBforopenGaussClient) ShowInstanceConfigurationInvoker(request *mo
return &ShowInstanceConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowInstanceDisk 查询实例存储空间使用信息
+//
+// 查询指定实例的存储使用空间和最大空间。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowInstanceDisk(request *model.ShowInstanceDiskRequest) (*model.ShowInstanceDiskResponse, error) {
+ requestDef := GenReqDefForShowInstanceDisk()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowInstanceDiskResponse), nil
+ }
+}
+
+// ShowInstanceDiskInvoker 查询实例存储空间使用信息
+func (c *GaussDBforopenGaussClient) ShowInstanceDiskInvoker(request *model.ShowInstanceDiskRequest) *ShowInstanceDiskInvoker {
+ requestDef := GenReqDefForShowInstanceDisk()
+ return &ShowInstanceDiskInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowInstanceSnapshot 根据时间点或者备份文件查询原实例信息
+//
+// 根据时间点或者备份文件查询原实例信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowInstanceSnapshot(request *model.ShowInstanceSnapshotRequest) (*model.ShowInstanceSnapshotResponse, error) {
+ requestDef := GenReqDefForShowInstanceSnapshot()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowInstanceSnapshotResponse), nil
+ }
+}
+
+// ShowInstanceSnapshotInvoker 根据时间点或者备份文件查询原实例信息
+func (c *GaussDBforopenGaussClient) ShowInstanceSnapshotInvoker(request *model.ShowInstanceSnapshotRequest) *ShowInstanceSnapshotInvoker {
+ requestDef := GenReqDefForShowInstanceSnapshot()
+ return &ShowInstanceSnapshotInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowJobDetail 获取指定ID的任务信息。
+//
+// 获取指定ID的任务信息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowJobDetail(request *model.ShowJobDetailRequest) (*model.ShowJobDetailResponse, error) {
+ requestDef := GenReqDefForShowJobDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowJobDetailResponse), nil
+ }
+}
+
+// ShowJobDetailInvoker 获取指定ID的任务信息。
+func (c *GaussDBforopenGaussClient) ShowJobDetailInvoker(request *model.ShowJobDetailRequest) *ShowJobDetailInvoker {
+ requestDef := GenReqDefForShowJobDetail()
+ return &ShowJobDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowProjectQuotas 查询租户的实例配额
+//
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowProjectQuotas(request *model.ShowProjectQuotasRequest) (*model.ShowProjectQuotasResponse, error) {
+ requestDef := GenReqDefForShowProjectQuotas()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowProjectQuotasResponse), nil
+ }
+}
+
+// ShowProjectQuotasInvoker 查询租户的实例配额
+func (c *GaussDBforopenGaussClient) ShowProjectQuotasInvoker(request *model.ShowProjectQuotasRequest) *ShowProjectQuotasInvoker {
+ requestDef := GenReqDefForShowProjectQuotas()
+ return &ShowProjectQuotasInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowRecyclePolicy 查看回收站策略
+//
+// 查看回收站的回收策略。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowRecyclePolicy(request *model.ShowRecyclePolicyRequest) (*model.ShowRecyclePolicyResponse, error) {
+ requestDef := GenReqDefForShowRecyclePolicy()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+// ShowRecyclePolicyInvoker 查看回收站策略
+func (c *GaussDBforopenGaussClient) ShowRecyclePolicyInvoker(request *model.ShowRecyclePolicyRequest) *ShowRecyclePolicyInvoker {
+ requestDef := GenReqDefForShowRecyclePolicy()
+ return &ShowRecyclePolicyInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowSslCertDownloadLink 查询实例SSL证书下载地址
+//
+// 查询实例SSL证书下载地址。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ShowSslCertDownloadLink(request *model.ShowSslCertDownloadLinkRequest) (*model.ShowSslCertDownloadLinkResponse, error) {
+ requestDef := GenReqDefForShowSslCertDownloadLink()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowSslCertDownloadLinkResponse), nil
+ }
+}
+
+// ShowSslCertDownloadLinkInvoker 查询实例SSL证书下载地址
+func (c *GaussDBforopenGaussClient) ShowSslCertDownloadLinkInvoker(request *model.ShowSslCertDownloadLinkRequest) *ShowSslCertDownloadLinkInvoker {
+ requestDef := GenReqDefForShowSslCertDownloadLink()
+ return &ShowSslCertDownloadLinkInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// SwitchConfiguration 应用参数模板
+//
+// 指定实例变更参数模板。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) SwitchConfiguration(request *model.SwitchConfigurationRequest) (*model.SwitchConfigurationResponse, error) {
+ requestDef := GenReqDefForSwitchConfiguration()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.SwitchConfigurationResponse), nil
+ }
+}
+
+// SwitchConfigurationInvoker 应用参数模板
+func (c *GaussDBforopenGaussClient) SwitchConfigurationInvoker(request *model.SwitchConfigurationRequest) *SwitchConfigurationInvoker {
+ requestDef := GenReqDefForSwitchConfiguration()
+ return &SwitchConfigurationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// SwitchShard 分片节点主备切换。
//
// 支持用户对单个或多个DN分片做主备切换,同一分组内只能指定一个新的备节点进行升主操作。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) SwitchShard(request *model.SwitchShardRequest) (*model.SwitchShardResponse, error) {
requestDef := GenReqDefForSwitchShard()
@@ -662,8 +1325,7 @@ func (c *GaussDBforopenGaussClient) SwitchShardInvoker(request *model.SwitchShar
//
// 修改指定实例的参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) UpdateInstanceConfiguration(request *model.UpdateInstanceConfigurationRequest) (*model.UpdateInstanceConfigurationResponse, error) {
requestDef := GenReqDefForUpdateInstanceConfiguration()
@@ -684,8 +1346,7 @@ func (c *GaussDBforopenGaussClient) UpdateInstanceConfigurationInvoker(request *
//
// 修改实例名称。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *GaussDBforopenGaussClient) UpdateInstanceName(request *model.UpdateInstanceNameRequest) (*model.UpdateInstanceNameResponse, error) {
requestDef := GenReqDefForUpdateInstanceName()
@@ -701,3 +1362,45 @@ func (c *GaussDBforopenGaussClient) UpdateInstanceNameInvoker(request *model.Upd
requestDef := GenReqDefForUpdateInstanceName()
return &UpdateInstanceNameInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+
+// ValidateParaGroupName 校验参数组名称是否存在
+//
+// 校验参数组名称是否存在。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ValidateParaGroupName(request *model.ValidateParaGroupNameRequest) (*model.ValidateParaGroupNameResponse, error) {
+ requestDef := GenReqDefForValidateParaGroupName()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ValidateParaGroupNameResponse), nil
+ }
+}
+
+// ValidateParaGroupNameInvoker 校验参数组名称是否存在
+func (c *GaussDBforopenGaussClient) ValidateParaGroupNameInvoker(request *model.ValidateParaGroupNameRequest) *ValidateParaGroupNameInvoker {
+ requestDef := GenReqDefForValidateParaGroupName()
+ return &ValidateParaGroupNameInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ValidateWeakPassword 弱密码校验
+//
+// 校验数据库root用户密码的安全性。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *GaussDBforopenGaussClient) ValidateWeakPassword(request *model.ValidateWeakPasswordRequest) (*model.ValidateWeakPasswordResponse, error) {
+ requestDef := GenReqDefForValidateWeakPassword()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ValidateWeakPasswordResponse), nil
+ }
+}
+
+// ValidateWeakPasswordInvoker 弱密码校验
+func (c *GaussDBforopenGaussClient) ValidateWeakPasswordInvoker(request *model.ValidateWeakPasswordRequest) *ValidateWeakPasswordInvoker {
+ requestDef := GenReqDefForValidateWeakPassword()
+ return &ValidateWeakPasswordInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_invoker.go
index 68a83655..0d95c3df 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_invoker.go
@@ -5,6 +5,18 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model"
)
+type AddInstanceTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AddInstanceTagsInvoker) Invoke() (*model.AddInstanceTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AddInstanceTagsResponse), nil
+ }
+}
+
type AllowDbPrivilegesInvoker struct {
*invoker.BaseInvoker
}
@@ -17,6 +29,42 @@ func (i *AllowDbPrivilegesInvoker) Invoke() (*model.AllowDbPrivilegesResponse, e
}
}
+type AttachEipInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *AttachEipInvoker) Invoke() (*model.AttachEipResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.AttachEipResponse), nil
+ }
+}
+
+type CopyConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CopyConfigurationInvoker) Invoke() (*model.CopyConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CopyConfigurationResponse), nil
+ }
+}
+
+type CreateConfigurationTemplateInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateConfigurationTemplateInvoker) Invoke() (*model.CreateConfigurationTemplateResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateConfigurationTemplateResponse), nil
+ }
+}
+
type CreateDatabaseInvoker struct {
*invoker.BaseInvoker
}
@@ -89,6 +137,18 @@ func (i *CreateRestoreInstanceInvoker) Invoke() (*model.CreateRestoreInstanceRes
}
}
+type DeleteConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteConfigurationInvoker) Invoke() (*model.DeleteConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteConfigurationResponse), nil
+ }
+}
+
type DeleteInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -101,6 +161,18 @@ func (i *DeleteInstanceInvoker) Invoke() (*model.DeleteInstanceResponse, error)
}
}
+type DeleteJobInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteJobInvoker) Invoke() (*model.DeleteJobResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteJobResponse), nil
+ }
+}
+
type DeleteManualBackupInvoker struct {
*invoker.BaseInvoker
}
@@ -113,6 +185,42 @@ func (i *DeleteManualBackupInvoker) Invoke() (*model.DeleteManualBackupResponse,
}
}
+type ListApplicableInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListApplicableInstancesInvoker) Invoke() (*model.ListApplicableInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListApplicableInstancesResponse), nil
+ }
+}
+
+type ListAppliedHistoriesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAppliedHistoriesInvoker) Invoke() (*model.ListAppliedHistoriesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAppliedHistoriesResponse), nil
+ }
+}
+
+type ListAvailableFlavorsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAvailableFlavorsInvoker) Invoke() (*model.ListAvailableFlavorsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAvailableFlavorsResponse), nil
+ }
+}
+
type ListBackupsInvoker struct {
*invoker.BaseInvoker
}
@@ -125,6 +233,18 @@ func (i *ListBackupsInvoker) Invoke() (*model.ListBackupsResponse, error) {
}
}
+type ListBindedEipsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListBindedEipsInvoker) Invoke() (*model.ListBindedEipsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListBindedEipsResponse), nil
+ }
+}
+
type ListComponentInfosInvoker struct {
*invoker.BaseInvoker
}
@@ -149,6 +269,18 @@ func (i *ListConfigurationsInvoker) Invoke() (*model.ListConfigurationsResponse,
}
}
+type ListConfigurationsDiffInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListConfigurationsDiffInvoker) Invoke() (*model.ListConfigurationsDiffResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListConfigurationsDiffResponse), nil
+ }
+}
+
type ListDatabaseSchemasInvoker struct {
*invoker.BaseInvoker
}
@@ -197,6 +329,18 @@ func (i *ListDbUsersInvoker) Invoke() (*model.ListDbUsersResponse, error) {
}
}
+type ListEpsQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListEpsQuotasInvoker) Invoke() (*model.ListEpsQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListEpsQuotasResponse), nil
+ }
+}
+
type ListFlavorsInvoker struct {
*invoker.BaseInvoker
}
@@ -209,6 +353,42 @@ func (i *ListFlavorsInvoker) Invoke() (*model.ListFlavorsResponse, error) {
}
}
+type ListGaussDbDatastoresInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListGaussDbDatastoresInvoker) Invoke() (*model.ListGaussDbDatastoresResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListGaussDbDatastoresResponse), nil
+ }
+}
+
+type ListHistoryOperationsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListHistoryOperationsInvoker) Invoke() (*model.ListHistoryOperationsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListHistoryOperationsResponse), nil
+ }
+}
+
+type ListInstanceTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListInstanceTagsInvoker) Invoke() (*model.ListInstanceTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListInstanceTagsResponse), nil
+ }
+}
+
type ListInstancesInvoker struct {
*invoker.BaseInvoker
}
@@ -221,6 +401,54 @@ func (i *ListInstancesInvoker) Invoke() (*model.ListInstancesResponse, error) {
}
}
+type ListPredefinedTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPredefinedTagsInvoker) Invoke() (*model.ListPredefinedTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPredefinedTagsResponse), nil
+ }
+}
+
+type ListProjectTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListProjectTagsInvoker) Invoke() (*model.ListProjectTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListProjectTagsResponse), nil
+ }
+}
+
+type ListRecycleInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRecycleInstancesInvoker) Invoke() (*model.ListRecycleInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRecycleInstancesResponse), nil
+ }
+}
+
+type ListRestorableInstancesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRestorableInstancesInvoker) Invoke() (*model.ListRestorableInstancesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRestorableInstancesResponse), nil
+ }
+}
+
type ListRestoreTimesInvoker struct {
*invoker.BaseInvoker
}
@@ -245,6 +473,42 @@ func (i *ListStorageTypesInvoker) Invoke() (*model.ListStorageTypesResponse, err
}
}
+type ListTasksInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListTasksInvoker) Invoke() (*model.ListTasksResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListTasksResponse), nil
+ }
+}
+
+type ModifyEpsQuotaInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ModifyEpsQuotaInvoker) Invoke() (*model.ModifyEpsQuotaResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ModifyEpsQuotaResponse), nil
+ }
+}
+
+type ResetConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ResetConfigurationInvoker) Invoke() (*model.ResetConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ResetConfigurationResponse), nil
+ }
+}
+
type ResetPwdInvoker struct {
*invoker.BaseInvoker
}
@@ -317,6 +581,18 @@ func (i *SetDbUserPwdInvoker) Invoke() (*model.SetDbUserPwdResponse, error) {
}
}
+type SetRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SetRecyclePolicyInvoker) Invoke() (*model.SetRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SetRecyclePolicyResponse), nil
+ }
+}
+
type ShowBackupPolicyInvoker struct {
*invoker.BaseInvoker
}
@@ -329,6 +605,42 @@ func (i *ShowBackupPolicyInvoker) Invoke() (*model.ShowBackupPolicyResponse, err
}
}
+type ShowBalanceStatusInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowBalanceStatusInvoker) Invoke() (*model.ShowBalanceStatusResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowBalanceStatusResponse), nil
+ }
+}
+
+type ShowConfigurationDetailInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowConfigurationDetailInvoker) Invoke() (*model.ShowConfigurationDetailResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowConfigurationDetailResponse), nil
+ }
+}
+
+type ShowDeploymentFormInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowDeploymentFormInvoker) Invoke() (*model.ShowDeploymentFormResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowDeploymentFormResponse), nil
+ }
+}
+
type ShowInstanceConfigurationInvoker struct {
*invoker.BaseInvoker
}
@@ -341,6 +653,90 @@ func (i *ShowInstanceConfigurationInvoker) Invoke() (*model.ShowInstanceConfigur
}
}
+type ShowInstanceDiskInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowInstanceDiskInvoker) Invoke() (*model.ShowInstanceDiskResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowInstanceDiskResponse), nil
+ }
+}
+
+type ShowInstanceSnapshotInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowInstanceSnapshotInvoker) Invoke() (*model.ShowInstanceSnapshotResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowInstanceSnapshotResponse), nil
+ }
+}
+
+type ShowJobDetailInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowJobDetailInvoker) Invoke() (*model.ShowJobDetailResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowJobDetailResponse), nil
+ }
+}
+
+type ShowProjectQuotasInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowProjectQuotasInvoker) Invoke() (*model.ShowProjectQuotasResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowProjectQuotasResponse), nil
+ }
+}
+
+type ShowRecyclePolicyInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRecyclePolicyInvoker) Invoke() (*model.ShowRecyclePolicyResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRecyclePolicyResponse), nil
+ }
+}
+
+type ShowSslCertDownloadLinkInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowSslCertDownloadLinkInvoker) Invoke() (*model.ShowSslCertDownloadLinkResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowSslCertDownloadLinkResponse), nil
+ }
+}
+
+type SwitchConfigurationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *SwitchConfigurationInvoker) Invoke() (*model.SwitchConfigurationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.SwitchConfigurationResponse), nil
+ }
+}
+
type SwitchShardInvoker struct {
*invoker.BaseInvoker
}
@@ -376,3 +772,27 @@ func (i *UpdateInstanceNameInvoker) Invoke() (*model.UpdateInstanceNameResponse,
return result.(*model.UpdateInstanceNameResponse), nil
}
}
+
+type ValidateParaGroupNameInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ValidateParaGroupNameInvoker) Invoke() (*model.ValidateParaGroupNameResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ValidateParaGroupNameResponse), nil
+ }
+}
+
+type ValidateWeakPasswordInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ValidateWeakPasswordInvoker) Invoke() (*model.ValidateWeakPasswordResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ValidateWeakPasswordResponse), nil
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_meta.go
index c8255482..6fd5c226 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/gaussDBforopenGauss_meta.go
@@ -7,6 +7,31 @@ import (
"net/http"
)
+func GenReqDefForAddInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/tags").
+ WithResponse(new(model.AddInstanceTagsResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForAllowDbPrivileges() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -32,6 +57,80 @@ func GenReqDefForAllowDbPrivileges() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForAttachEip() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/instances/{instance_id}/nodes/{node_id}/public-ip").
+ WithResponse(new(model.AttachEipResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("NodeId").
+ WithJsonTag("node_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCopyConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/{config_id}/copy").
+ WithResponse(new(model.CopyConfigurationResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateConfigurationTemplate() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations").
+ WithResponse(new(model.CreateConfigurationTemplateResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateDatabase() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -167,6 +266,27 @@ func GenReqDefForCreateRestoreInstance() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/configurations/{config_id}").
+ WithResponse(new(model.DeleteConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteInstance() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -188,6 +308,27 @@ func GenReqDefForDeleteInstance() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteJob() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v3/{project_id}/jobs/{job_id}").
+ WithResponse(new(model.DeleteJobResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("JobId").
+ WithJsonTag("job_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeleteManualBackup() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -209,6 +350,96 @@ func GenReqDefForDeleteManualBackup() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListApplicableInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applicable-instances").
+ WithResponse(new(model.ListApplicableInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAppliedHistories() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/applied-histories").
+ WithResponse(new(model.ListAppliedHistoriesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAvailableFlavors() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/available-flavors").
+ WithResponse(new(model.ListAvailableFlavorsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListBackups() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -254,6 +485,36 @@ func GenReqDefForListBackups() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListBindedEips() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/public-ips").
+ WithResponse(new(model.ListBindedEipsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListComponentInfos() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -309,6 +570,26 @@ func GenReqDefForListConfigurations() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListConfigurationsDiff() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/comparison").
+ WithResponse(new(model.ListConfigurationsDiffResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListDatabaseSchemas() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -419,32 +700,24 @@ func GenReqDefForListDbUsers() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListFlavors() *def.HttpRequestDef {
+func GenReqDefForListEpsQuotas() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
- WithPath("/v3/{project_id}/flavors").
- WithResponse(new(model.ListFlavorsResponse)).
+ WithPath("/v3/{project_id}/enterprise-projects/quotas").
+ WithResponse(new(model.ListEpsQuotasResponse)).
WithContentType("application/json")
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Version").
- WithJsonTag("version").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("SpecCode").
- WithJsonTag("spec_code").
- WithLocationType(def.Query))
- reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("HaMode").
- WithJsonTag("ha_mode").
+ WithName("Offset").
+ WithJsonTag("offset").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Limit").
WithJsonTag("limit").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
- WithName("Offset").
- WithJsonTag("offset").
+ WithName("EnterpriseProjectId").
+ WithJsonTag("enterprise_project_id").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
@@ -456,7 +729,111 @@ func GenReqDefForListFlavors() *def.HttpRequestDef {
return requestDef
}
-func GenReqDefForListInstances() *def.HttpRequestDef {
+func GenReqDefForListFlavors() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/flavors").
+ WithResponse(new(model.ListFlavorsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Version").
+ WithJsonTag("version").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SpecCode").
+ WithJsonTag("spec_code").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("HaMode").
+ WithJsonTag("ha_mode").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListGaussDbDatastores() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/datastores").
+ WithResponse(new(model.ListGaussDbDatastoresResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListHistoryOperations() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}/histories").
+ WithResponse(new(model.ListHistoryOperationsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstanceTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/tags").
+ WithResponse(new(model.ListInstanceTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListInstances() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
WithPath("/v3/{project_id}/instances").
@@ -509,6 +886,104 @@ func GenReqDefForListInstances() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListPredefinedTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/predefined-tags").
+ WithResponse(new(model.ListPredefinedTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListProjectTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/tags").
+ WithResponse(new(model.ListProjectTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListRecycleInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/recycle-instances").
+ WithResponse(new(model.ListRecycleInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceName").
+ WithJsonTag("instance_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListRestorableInstances() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/restorable-instances").
+ WithResponse(new(model.ListRestorableInstancesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("SourceInstanceId").
+ WithJsonTag("source_instance_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BackupId").
+ WithJsonTag("backup_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RestoreTime").
+ WithJsonTag("restore_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListRestoreTimes() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -560,6 +1035,92 @@ func GenReqDefForListStorageTypes() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListTasks() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/tasks").
+ WithResponse(new(model.ListTasksResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("StartTime").
+ WithJsonTag("start_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EndTime").
+ WithJsonTag("end_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForModifyEpsQuota() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/enterprise-projects/quotas").
+ WithResponse(new(model.ModifyEpsQuotaResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForResetConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/configurations/{config_id}/reset").
+ WithResponse(new(model.ResetConfigurationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForResetPwd() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -706,6 +1267,21 @@ func GenReqDefForSetDbUserPwd() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForSetRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/recycle-policy").
+ WithResponse(new(model.SetRecyclePolicyResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -727,6 +1303,73 @@ func GenReqDefForShowBackupPolicy() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowBalanceStatus() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/balance").
+ WithResponse(new(model.ShowBalanceStatusResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowConfigurationDetail() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/{config_id}").
+ WithResponse(new(model.ShowConfigurationDetailResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowDeploymentForm() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/deployment-form").
+ WithResponse(new(model.ShowDeploymentFormResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Solution").
+ WithJsonTag("solution").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -748,6 +1391,155 @@ func GenReqDefForShowInstanceConfiguration() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowInstanceDisk() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/volume-usage").
+ WithResponse(new(model.ShowInstanceDiskResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowInstanceSnapshot() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instance-snapshot").
+ WithResponse(new(model.ShowInstanceSnapshotResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RestoreTime").
+ WithJsonTag("restore_time").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("BackupId").
+ WithJsonTag("backup_id").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowJobDetail() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/jobs").
+ WithResponse(new(model.ShowJobDetailResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowProjectQuotas() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/project-quotas").
+ WithResponse(new(model.ShowProjectQuotasResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowRecyclePolicy() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/recycle-policy").
+ WithResponse(new(model.ShowRecyclePolicyResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowSslCertDownloadLink() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/instances/{instance_id}/ssl-cert/download-link").
+ WithResponse(new(model.ShowSslCertDownloadLinkResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForSwitchConfiguration() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v3/{project_id}/configurations/{config_id}/apply").
+ WithResponse(new(model.SwitchConfigurationResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ConfigId").
+ WithJsonTag("config_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForSwitchShard() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -822,3 +1614,44 @@ func GenReqDefForUpdateInstanceName() *def.HttpRequestDef {
requestDef := reqDefBuilder.Build()
return requestDef
}
+
+func GenReqDefForValidateParaGroupName() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v3/{project_id}/configurations/name-validation").
+ WithResponse(new(model.ValidateParaGroupNameResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForValidateWeakPassword() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v3/{project_id}/weak-password-verification").
+ WithResponse(new(model.ValidateWeakPasswordResponse)).
+ WithContentType("application/json;charset=UTF-8")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("XLanguage").
+ WithJsonTag("X-Language").
+ WithLocationType(def.Header))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_request.go
new file mode 100644
index 00000000..bcfe8fa8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_request.go
@@ -0,0 +1,73 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type AddInstanceTagsRequest struct {
+
+ // 语言。
+ XLanguage *AddInstanceTagsRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *AddTagsRequestBody `json:"body,omitempty"`
+}
+
+func (o AddInstanceTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddInstanceTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"AddInstanceTagsRequest", string(data)}, " ")
+}
+
+type AddInstanceTagsRequestXLanguage struct {
+ value string
+}
+
+type AddInstanceTagsRequestXLanguageEnum struct {
+ ZH_CN AddInstanceTagsRequestXLanguage
+ EN_US AddInstanceTagsRequestXLanguage
+}
+
+func GetAddInstanceTagsRequestXLanguageEnum() AddInstanceTagsRequestXLanguageEnum {
+ return AddInstanceTagsRequestXLanguageEnum{
+ ZH_CN: AddInstanceTagsRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: AddInstanceTagsRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c AddInstanceTagsRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c AddInstanceTagsRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AddInstanceTagsRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_response.go
new file mode 100644
index 00000000..ae4bb038
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_instance_tags_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AddInstanceTagsResponse struct {
+
+ // 添加标签的实例ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 添加标签的实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AddInstanceTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddInstanceTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"AddInstanceTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_tags_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_tags_request_body.go
new file mode 100644
index 00000000..4ad3af70
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_add_tags_request_body.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type AddTagsRequestBody struct {
+ Tags []TagsOption `json:"tags"`
+}
+
+func (o AddTagsRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AddTagsRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"AddTagsRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_applied_histories_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_applied_histories_result.go
new file mode 100644
index 00000000..e3ff01a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_applied_histories_result.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type AppliedHistoriesResult struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 实例名称。
+ InstanceName string `json:"instance_name"`
+
+ // 应用状态 (SUCCESS | FAILED)。
+ ApplyResult string `json:"apply_result"`
+
+ // 应用时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ AppliedAt string `json:"applied_at"`
+
+ // 失败原因错误码,如DBS.280005。
+ ErrorCode string `json:"error_code"`
+}
+
+func (o AppliedHistoriesResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AppliedHistoriesResult struct{}"
+ }
+
+ return strings.Join([]string{"AppliedHistoriesResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_apply_configuration_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_apply_configuration_request_body.go
new file mode 100644
index 00000000..32cc7a79
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_apply_configuration_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ApplyConfigurationRequestBody struct {
+
+ // 实例ID列表。
+ InstanceIds []string `json:"instance_ids"`
+}
+
+func (o ApplyConfigurationRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ApplyConfigurationRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ApplyConfigurationRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_request.go
new file mode 100644
index 00000000..3d44a042
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_request.go
@@ -0,0 +1,76 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type AttachEipRequest struct {
+
+ // 语言
+ XLanguage *AttachEipRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例ID,严格匹配UUID规则。
+ InstanceId string `json:"instance_id"`
+
+ // 节点ID
+ NodeId string `json:"node_id"`
+
+ Body *BindEipRequestBody `json:"body,omitempty"`
+}
+
+func (o AttachEipRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachEipRequest struct{}"
+ }
+
+ return strings.Join([]string{"AttachEipRequest", string(data)}, " ")
+}
+
+type AttachEipRequestXLanguage struct {
+ value string
+}
+
+type AttachEipRequestXLanguageEnum struct {
+ ZH_CN AttachEipRequestXLanguage
+ EN_US AttachEipRequestXLanguage
+}
+
+func GetAttachEipRequestXLanguageEnum() AttachEipRequestXLanguageEnum {
+ return AttachEipRequestXLanguageEnum{
+ ZH_CN: AttachEipRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: AttachEipRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c AttachEipRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c AttachEipRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *AttachEipRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_response.go
new file mode 100644
index 00000000..990c6bce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_attach_eip_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type AttachEipResponse struct {
+
+ // 工作流id
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o AttachEipResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AttachEipResponse struct{}"
+ }
+
+ return strings.Join([]string{"AttachEipResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_available_flavor_info_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_available_flavor_info_result.go
new file mode 100644
index 00000000..8cd1f3ab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_available_flavor_info_result.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 实例可变更规格信息。
+type AvailableFlavorInfoResult struct {
+
+ // 资源规格编码。
+ SpecCpde *string `json:"spec_cpde,omitempty"`
+
+ // CPU核数。
+ Vcpus *string `json:"vcpus,omitempty"`
+
+ // 内存大小,单位:GB。
+ Ram *string `json:"ram,omitempty"`
+
+ // 其中key是可用区编号,value是规格所在az的状态。
+ AzStatus map[string]string `json:"az_status,omitempty"`
+}
+
+func (o AvailableFlavorInfoResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AvailableFlavorInfoResult struct{}"
+ }
+
+ return strings.Join([]string{"AvailableFlavorInfoResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_backup_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_backup_policy.go
index b1275691..db659931 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_backup_policy.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_backup_policy.go
@@ -20,6 +20,21 @@ type BackupPolicy struct {
// 差异备份间隔时间配置。每次自动差异备份的间隔时间。 取值范围:15、30、60、180、360、720、1440。单位:分钟。 取值示例:30
DifferentialPeriod string `json:"differential_period"`
+
+ // 备份限速 取值范围:0 ~ 1024
+ RateLimit *int32 `json:"rate_limit,omitempty"`
+
+ // 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数。当差量修改页面非常集中时(如数据导入场景),可以适当调大该值;当差量修改页面非常分散时(如随机更新),可以适当调小该值。 取值范围:1 ~ 8192
+ PrefetchBlock *int32 `json:"prefetch_block,omitempty"`
+
+ // 废弃。
+ FilesplitSize *int32 `json:"filesplit_size,omitempty"`
+
+ // 全量、差量备份时产生的备份文件会根据分片大小进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不限制大小。 取值范围:0 ~ 1024
+ FileSplitSize *int32 `json:"file_split_size,omitempty"`
+
+ // 是否启用备机备份。 取值范围:true|false
+ EnableStandbyBackup *bool `json:"enable_standby_backup,omitempty"`
}
func (o BackupPolicy) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_bind_eip_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_bind_eip_request_body.go
new file mode 100644
index 00000000..64018c15
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_bind_eip_request_body.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type BindEipRequestBody struct {
+
+ // 操作标识。取值: - BIND,表示绑定弹性公网IP。 - UNBIND,表示解绑弹性公网IP。
+ Action string `json:"action"`
+
+ // 弹性公网IP
+ PublicIp string `json:"public_ip"`
+
+ // 弹性公网IP的ID
+ PublicIpId string `json:"public_ip_id"`
+}
+
+func (o BindEipRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BindEipRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"BindEipRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_binded_eip_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_binded_eip_result.go
new file mode 100644
index 00000000..a08723f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_binded_eip_result.go
@@ -0,0 +1,50 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询已绑定EIP记录明细信息。
+type BindedEipResult struct {
+
+ // 弹性公网ID。
+ PublicIpId string `json:"public_ip_id"`
+
+ // 弹性公网类型。
+ PublicIpType string `json:"public_ip_type"`
+
+ // 端口ID。
+ PortId string `json:"port_id"`
+
+ // 弹性公网IP。
+ PublicIpAddress string `json:"public_ip_address"`
+
+ // 内网地址。
+ PrivateIpAddress string `json:"private_ip_address"`
+
+ // 带宽ID。
+ BandwidthId string `json:"bandwidth_id"`
+
+ // 带宽名称。
+ BandwidthName string `json:"bandwidth_name"`
+
+ // 带宽共享类型。
+ BandwidthShareType string `json:"bandwidth_share_type"`
+
+ // 带宽大小。
+ BandwidthSize int32 `json:"bandwidth_size"`
+
+ // 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+08:00。
+ AppliedAt string `json:"applied_at"`
+}
+
+func (o BindedEipResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BindedEipResult struct{}"
+ }
+
+ return strings.Join([]string{"BindedEipResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_request.go
new file mode 100644
index 00000000..553116c0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_request.go
@@ -0,0 +1,73 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type CopyConfigurationRequest struct {
+
+ // 语言。
+ XLanguage *CopyConfigurationRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 被复制的参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ Body *ParamGroupCopyRequestBody `json:"body,omitempty"`
+}
+
+func (o CopyConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationRequest", string(data)}, " ")
+}
+
+type CopyConfigurationRequestXLanguage struct {
+ value string
+}
+
+type CopyConfigurationRequestXLanguageEnum struct {
+ ZH_CN CopyConfigurationRequestXLanguage
+ EN_US CopyConfigurationRequestXLanguage
+}
+
+func GetCopyConfigurationRequestXLanguageEnum() CopyConfigurationRequestXLanguageEnum {
+ return CopyConfigurationRequestXLanguageEnum{
+ ZH_CN: CopyConfigurationRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: CopyConfigurationRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c CopyConfigurationRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c CopyConfigurationRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CopyConfigurationRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_response.go
new file mode 100644
index 00000000..d3d37157
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_copy_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CopyConfigurationResponse struct {
+
+ // 复制后的参数模板ID。
+ ConfigId *string `json:"config_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CopyConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CopyConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CopyConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request.go
new file mode 100644
index 00000000..e01a672d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type CreateConfigurationTemplateRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *CreateConfigurationTemplateRequestXLanguage `json:"X-Language,omitempty"`
+
+ Body *CreateConfigurationTemplateRequestBody `json:"body,omitempty"`
+}
+
+func (o CreateConfigurationTemplateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateConfigurationTemplateRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateConfigurationTemplateRequest", string(data)}, " ")
+}
+
+type CreateConfigurationTemplateRequestXLanguage struct {
+ value string
+}
+
+type CreateConfigurationTemplateRequestXLanguageEnum struct {
+ ZH_CN CreateConfigurationTemplateRequestXLanguage
+ EN_US CreateConfigurationTemplateRequestXLanguage
+}
+
+func GetCreateConfigurationTemplateRequestXLanguageEnum() CreateConfigurationTemplateRequestXLanguageEnum {
+ return CreateConfigurationTemplateRequestXLanguageEnum{
+ ZH_CN: CreateConfigurationTemplateRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: CreateConfigurationTemplateRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c CreateConfigurationTemplateRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c CreateConfigurationTemplateRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateConfigurationTemplateRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request_body.go
new file mode 100644
index 00000000..4e008475
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_request_body.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type CreateConfigurationTemplateRequestBody struct {
+
+ // 参数模板名称。 取值范围:长度1到64位之间,区分大小写字母,可包含字母、数字、中划线、下划线或句点,不能包含其他特殊字符。
+ Name string `json:"name"`
+
+ // 参数模板描述,默认为空。 取值范围:长度不超过256,不能包含回车<>!&等特殊字符。
+ Description *string `json:"description,omitempty"`
+
+ // 参数名和参数值映射关系。用户可以基于默认参数模板的参数,自定义参数值。
+ ParameterValues map[string]string `json:"parameter_values,omitempty"`
+
+ Datastore *DatastoreOption `json:"datastore"`
+}
+
+func (o CreateConfigurationTemplateRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateConfigurationTemplateRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"CreateConfigurationTemplateRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_response.go
new file mode 100644
index 00000000..8fc22a09
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_configuration_template_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateConfigurationTemplateResponse struct {
+
+ // 参数模板ID。
+ Id *string `json:"id,omitempty"`
+
+ // 参数模板名称。
+ Name *string `json:"name,omitempty"`
+
+ // 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ CreatedAt *string `json:"created_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateConfigurationTemplateResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateConfigurationTemplateResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateConfigurationTemplateResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_resp_item.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_resp_item.go
index 573e57fa..fe4afc26 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_resp_item.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_resp_item.go
@@ -38,7 +38,7 @@ type CreateInstanceRespItem struct {
// 规格码。
FlavorRef string `json:"flavor_ref"`
- // 可用区ID。GaussDB(for openGauss)取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
+ // 可用区ID。GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。 取值参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
AvailabilityZone string `json:"availability_zone"`
// 虚拟私有云ID。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_response.go
index 3992958e..9f056bb2 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_create_instance_response.go
@@ -11,7 +11,10 @@ type CreateInstanceResponse struct {
Instance *OpenGaussInstanceResponse `json:"instance,omitempty"`
// 实例创建的任务id。 仅创建按需实例时会返回该参数。
- JobId *string `json:"job_id,omitempty"`
+ JobId *string `json:"job_id,omitempty"`
+
+ // 创建实例的订单ID。 仅创建包周期实例时会返回该参数。
+ OrderId *string `json:"order_id,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastore_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastore_option.go
new file mode 100644
index 00000000..cd321a87
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastore_option.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type DatastoreOption struct {
+
+ // 数据库版本。支持2.3版本,取值为“2.3”。
+ EngineVersion string `json:"engine_version"`
+
+ // 部署形态。
+ InstanceMode DatastoreOptionInstanceMode `json:"instance_mode"`
+}
+
+func (o DatastoreOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DatastoreOption struct{}"
+ }
+
+ return strings.Join([]string{"DatastoreOption", string(data)}, " ")
+}
+
+type DatastoreOptionInstanceMode struct {
+ value string
+}
+
+type DatastoreOptionInstanceModeEnum struct {
+ HA DatastoreOptionInstanceMode
+ INDEPENDENT DatastoreOptionInstanceMode
+}
+
+func GetDatastoreOptionInstanceModeEnum() DatastoreOptionInstanceModeEnum {
+ return DatastoreOptionInstanceModeEnum{
+ HA: DatastoreOptionInstanceMode{
+ value: "ha",
+ },
+ INDEPENDENT: DatastoreOptionInstanceMode{
+ value: "independent",
+ },
+ }
+}
+
+func (c DatastoreOptionInstanceMode) Value() string {
+ return c.value
+}
+
+func (c DatastoreOptionInstanceMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DatastoreOptionInstanceMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastores_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastores_result.go
new file mode 100644
index 00000000..7d9211e0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_datastores_result.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 数据库引擎列表。
+type DatastoresResult struct {
+
+ // 部署形态支持的引擎版本列表
+ SupportedVersions []string `json:"supported_versions"`
+
+ // 部署形态
+ InstanceMode DatastoresResultInstanceMode `json:"instance_mode"`
+}
+
+func (o DatastoresResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DatastoresResult struct{}"
+ }
+
+ return strings.Join([]string{"DatastoresResult", string(data)}, " ")
+}
+
+type DatastoresResultInstanceMode struct {
+ value string
+}
+
+type DatastoresResultInstanceModeEnum struct {
+ HA DatastoresResultInstanceMode
+ INDEPENDENT DatastoresResultInstanceMode
+}
+
+func GetDatastoresResultInstanceModeEnum() DatastoresResultInstanceModeEnum {
+ return DatastoresResultInstanceModeEnum{
+ HA: DatastoresResultInstanceMode{
+ value: "ha",
+ },
+ INDEPENDENT: DatastoresResultInstanceMode{
+ value: "independent",
+ },
+ }
+}
+
+func (c DatastoresResultInstanceMode) Value() string {
+ return c.value
+}
+
+func (c DatastoresResultInstanceMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DatastoresResultInstanceMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_request.go
new file mode 100644
index 00000000..5ce15907
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type DeleteConfigurationRequest struct {
+
+ // 语言。
+ XLanguage *DeleteConfigurationRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数配置模板ID。
+ ConfigId string `json:"config_id"`
+}
+
+func (o DeleteConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteConfigurationRequest", string(data)}, " ")
+}
+
+type DeleteConfigurationRequestXLanguage struct {
+ value string
+}
+
+type DeleteConfigurationRequestXLanguageEnum struct {
+ ZH_CN DeleteConfigurationRequestXLanguage
+ EN_US DeleteConfigurationRequestXLanguage
+}
+
+func GetDeleteConfigurationRequestXLanguageEnum() DeleteConfigurationRequestXLanguageEnum {
+ return DeleteConfigurationRequestXLanguageEnum{
+ ZH_CN: DeleteConfigurationRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: DeleteConfigurationRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c DeleteConfigurationRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c DeleteConfigurationRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DeleteConfigurationRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_response.go
new file mode 100644
index 00000000..a388cec7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_configuration_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteConfigurationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_instance_response.go
index 101de5af..193c8ba5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_instance_response.go
@@ -9,8 +9,11 @@ import (
// Response Object
type DeleteInstanceResponse struct {
- // 任务id。
- JobId *string `json:"job_id,omitempty"`
+ // 任务id。按需实例时仅返回任务id。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单id。包周期实例时仅返回订单id。
+ OrderId *string `json:"order_id,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_request.go
new file mode 100644
index 00000000..40e9d57d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type DeleteJobRequest struct {
+
+ // 语言。
+ XLanguage *DeleteJobRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 任务id。
+ JobId string `json:"job_id"`
+}
+
+func (o DeleteJobRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteJobRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteJobRequest", string(data)}, " ")
+}
+
+type DeleteJobRequestXLanguage struct {
+ value string
+}
+
+type DeleteJobRequestXLanguageEnum struct {
+ ZH_CN DeleteJobRequestXLanguage
+ EN_US DeleteJobRequestXLanguage
+}
+
+func GetDeleteJobRequestXLanguageEnum() DeleteJobRequestXLanguageEnum {
+ return DeleteJobRequestXLanguageEnum{
+ ZH_CN: DeleteJobRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: DeleteJobRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c DeleteJobRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c DeleteJobRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *DeleteJobRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_response.go
new file mode 100644
index 00000000..bdf4da64
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_delete_job_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteJobResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteJobResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteJobResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteJobResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_eps_quotas_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_eps_quotas_option.go
new file mode 100644
index 00000000..5885569c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_eps_quotas_option.go
@@ -0,0 +1,34 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type EpsQuotasOption struct {
+
+ // 企业项目Id。
+ EnterpriseProjectsId string `json:"enterprise_projects_id"`
+
+ // 实例的配额。取值范围:实际创建的实例个数 ~ 100,000。
+ InstanceQuota *int32 `json:"instance_quota,omitempty"`
+
+ // cpu的配额。取值范围:实际使用的cpu核数 ~ 2,147,483,646。
+ VcpusQuota *int32 `json:"vcpus_quota,omitempty"`
+
+ // 内存的配额。单位GB。取值范围:实际使用的内存 ~ 2,147,483,646。
+ RamQuota *int32 `json:"ram_quota,omitempty"`
+
+ // 存储空间的配额。单位:GB。取值范围:实际使用的存储空间 ~ 2,147,483,646。
+ VolumeQuota *int32 `json:"volume_quota,omitempty"`
+}
+
+func (o EpsQuotasOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "EpsQuotasOption struct{}"
+ }
+
+ return strings.Join([]string{"EpsQuotasOption", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_database_for_creation.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_database_for_creation.go
index 787e76cb..433aa3ab 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_database_for_creation.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_database_for_creation.go
@@ -9,7 +9,7 @@ import (
// 数据库信息。
type GaussDBforOpenDatabaseForCreation struct {
- // 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB for OpenGauss模板库重名。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1。
+ // 数据库名称。 数据库名称长度可在1~63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB 模板库重名。 GaussDB 模板库包括postgres, template0 ,template1。
Name string `json:"name"`
// 数据库字符集。默认C。
@@ -21,7 +21,7 @@ type GaussDBforOpenDatabaseForCreation struct {
// 数据库模板名称,仅为template0。
Template *string `json:"template,omitempty"`
- // 数据库排序集。默认默认C。 - 须知: 不同的排序规则下,相同字符串的比较其结果可能是不同的。 例如,在en_US.utf8下, select 'a'>'A';执行结果为false,但在'C'下,select 'a'>'A';结果为true。如果数据库从“O”迁移到GaussDB for OpenGauss,数据库排序集需使用'C'才能得到一致的预期。支持的排序规则可以查询系统表 pg_collation。
+ // 数据库排序集。默认默认C。 - 须知: 不同的排序规则下,相同字符串的比较其结果可能是不同的。 例如,在en_US.utf8下, select 'a'>'A';执行结果为false,但在'C'下,select 'a'>'A';结果为true。如果数据库从“O”迁移到GaussDB ,数据库排序集需使用'C'才能得到一致的预期。支持的排序规则可以查询系统表 pg_collation。
LcCollate *string `json:"lc_collate,omitempty"`
// 数据库分类集。默认C。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_create_schema_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_create_schema_req.go
index 601f68ce..3a43fa2c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_create_schema_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_create_schema_req.go
@@ -8,7 +8,7 @@ import (
type GaussDBforOpenGaussCreateSchemaReq struct {
- // schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB for OpenGauss模板库和已存在的schema重名。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。
+ // schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB 模板库和已存在的schema重名。 GaussDB 模板库包括postgres, template0 ,template1。 已存在的schema包括public,information_schema。
Name string `json:"name"`
// 数据库属主用户。 数据库属主名称在1到63个字符之间,不能以“pg”和数字开头,不能和系统用户名称相同。 系统用户包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_database_schema_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_database_schema_req.go
index 21b85939..d2c66412 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_database_schema_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_database_schema_req.go
@@ -9,7 +9,7 @@ import (
// 创建数据库schema信息。
type GaussDBforOpenGaussDatabaseSchemaReq struct {
- // 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB for OpenGauss模板库重名。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1。
+ // 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB 模板库重名。 GaussDB 模板库包括postgres, template0 ,template1。
DbName string `json:"db_name"`
// 每个元素都是与数据库相关联的schmea信息。单次请求最多支持20个元素。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_grant_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_grant_request.go
index 8b815f5d..0bbe1c29 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_grant_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_grant_request.go
@@ -8,7 +8,7 @@ import (
type GaussDBforOpenGaussGrantRequest struct {
- // 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB for OpenGauss模板库重名。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1。
+ // 数据库名称。 数据库名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,且不能和GaussDB 模板库重名。 GaussDB 模板库包括postgres, template0 ,template1。
DbName string `json:"db_name"`
// 每个元素都是与数据库相关联的帐号。单次请求最多支持50个元素。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_user_with_privilege.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_user_with_privilege.go
index 5a467522..08d39ef7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_user_with_privilege.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_gauss_d_bfor_open_gauss_user_with_privilege.go
@@ -15,7 +15,7 @@ type GaussDBforOpenGaussUserWithPrivilege struct {
// 数据库帐号权限。 - true:只读。 - false:可读可写。
Readonly bool `json:"readonly"`
- // schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和GaussDB for OpenGauss模板库重名,且schema名称必须存在。 GaussDB for OpenGauss模板库包括postgres, template0 ,template1, public,information_schema。
+ // schema名称。 schema名称在1到63个字符之间,由字母、数字、或下划线组成,不能包含其他特殊字符,不能以“pg”和数字开头,不能和GaussDB 模板库重名,且schema名称必须存在。 GaussDB 模板库包括postgres, template0 ,template1, public,information_schema。
SchemaName string `json:"schema_name"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instance_info_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instance_info_result.go
new file mode 100644
index 00000000..fa6f255c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instance_info_result.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type InstanceInfoResult struct {
+
+ // 实例ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 实例状态。
+ InstanceStatus *string `json:"instance_status,omitempty"`
+}
+
+func (o InstanceInfoResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "InstanceInfoResult struct{}"
+ }
+
+ return strings.Join([]string{"InstanceInfoResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_list_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_list_result.go
new file mode 100644
index 00000000..ec196fde
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_list_result.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type InstancesListResult struct {
+
+ // 实例ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+}
+
+func (o InstancesListResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "InstancesListResult struct{}"
+ }
+
+ return strings.Join([]string{"InstancesListResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_result.go
new file mode 100644
index 00000000..c26cc7ab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_instances_result.go
@@ -0,0 +1,131 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type InstancesResult struct {
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 实例id。
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // 存储类型。
+ VolumeType *string `json:"volume_type,omitempty"`
+
+ // 磁盘大小,单位:GB。
+ DataVolumeSize float32 `json:"data_volume_size,omitempty"`
+
+ // 实例版本信息。
+ Version float32 `json:"version,omitempty"`
+
+ // 部署形态。
+ Mode *InstancesResultMode `json:"mode,omitempty"`
+
+ // 实例模型,企业版,标准版,基础版。
+ InstanceMode *InstancesResultInstanceMode `json:"instance_mode,omitempty"`
+}
+
+func (o InstancesResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "InstancesResult struct{}"
+ }
+
+ return strings.Join([]string{"InstancesResult", string(data)}, " ")
+}
+
+type InstancesResultMode struct {
+ value string
+}
+
+type InstancesResultModeEnum struct {
+ HA InstancesResultMode
+ INDEPENDENT InstancesResultMode
+}
+
+func GetInstancesResultModeEnum() InstancesResultModeEnum {
+ return InstancesResultModeEnum{
+ HA: InstancesResultMode{
+ value: "Ha",
+ },
+ INDEPENDENT: InstancesResultMode{
+ value: "Independent",
+ },
+ }
+}
+
+func (c InstancesResultMode) Value() string {
+ return c.value
+}
+
+func (c InstancesResultMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *InstancesResultMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type InstancesResultInstanceMode struct {
+ value string
+}
+
+type InstancesResultInstanceModeEnum struct {
+ ENTERPRISE InstancesResultInstanceMode
+ STANDARD InstancesResultInstanceMode
+ BASIC InstancesResultInstanceMode
+}
+
+func GetInstancesResultInstanceModeEnum() InstancesResultInstanceModeEnum {
+ return InstancesResultInstanceModeEnum{
+ ENTERPRISE: InstancesResultInstanceMode{
+ value: "enterprise",
+ },
+ STANDARD: InstancesResultInstanceMode{
+ value: "standard",
+ },
+ BASIC: InstancesResultInstanceMode{
+ value: "basic",
+ },
+ }
+}
+
+func (c InstancesResultInstanceMode) Value() string {
+ return c.value
+}
+
+func (c InstancesResultInstanceMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *InstancesResultInstanceMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_detail.go
new file mode 100644
index 00000000..63bd36fb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_detail.go
@@ -0,0 +1,42 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type JobDetail struct {
+
+ // 任务ID
+ Id string `json:"id"`
+
+ // 任务名称。
+ Name string `json:"name"`
+
+ // 任务执行状态。
+ Status string `json:"status"`
+
+ // 任务创建时间,格式为yyyy-mm-ddThh:mm:ssZ。
+ Created string `json:"created"`
+
+ // 任务结束时间,格式为yyyy-mm-ddThh:mm:ssZ。
+ Ended string `json:"ended"`
+
+ // 任务执行进度。
+ Progress string `json:"progress"`
+
+ Instance *JobInstanceInfo `json:"instance"`
+
+ // 任务执行失败时的错误信息。
+ FailReason string `json:"fail_reason"`
+}
+
+func (o JobDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "JobDetail struct{}"
+ }
+
+ return strings.Join([]string{"JobDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_instance_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_instance_info.go
new file mode 100644
index 00000000..68d18fbf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_job_instance_info.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type JobInstanceInfo struct {
+
+ // 实例ID。
+ Id string `json:"id"`
+
+ // 实例名称。
+ Name string `json:"name"`
+}
+
+func (o JobInstanceInfo) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "JobInstanceInfo struct{}"
+ }
+
+ return strings.Join([]string{"JobInstanceInfo", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_request.go
new file mode 100644
index 00000000..0d7eb520
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListApplicableInstancesRequest struct {
+
+ // 语言。
+ XLanguage *ListApplicableInstancesRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数配置模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListApplicableInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApplicableInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListApplicableInstancesRequest", string(data)}, " ")
+}
+
+type ListApplicableInstancesRequestXLanguage struct {
+ value string
+}
+
+type ListApplicableInstancesRequestXLanguageEnum struct {
+ ZH_CN ListApplicableInstancesRequestXLanguage
+ EN_US ListApplicableInstancesRequestXLanguage
+}
+
+func GetListApplicableInstancesRequestXLanguageEnum() ListApplicableInstancesRequestXLanguageEnum {
+ return ListApplicableInstancesRequestXLanguageEnum{
+ ZH_CN: ListApplicableInstancesRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListApplicableInstancesRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListApplicableInstancesRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListApplicableInstancesRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListApplicableInstancesRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_response.go
new file mode 100644
index 00000000..48f09ba1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applicable_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListApplicableInstancesResponse struct {
+
+ // 实例列表,显示实例ID和实例名称。
+ Instances *[]InstancesListResult `json:"instances,omitempty"`
+
+ // 查询数量。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListApplicableInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListApplicableInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListApplicableInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_request.go
new file mode 100644
index 00000000..68d02fa4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListAppliedHistoriesRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ListAppliedHistoriesRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数配置模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAppliedHistoriesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAppliedHistoriesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAppliedHistoriesRequest", string(data)}, " ")
+}
+
+type ListAppliedHistoriesRequestXLanguage struct {
+ value string
+}
+
+type ListAppliedHistoriesRequestXLanguageEnum struct {
+ ZH_CN ListAppliedHistoriesRequestXLanguage
+ EN_US ListAppliedHistoriesRequestXLanguage
+}
+
+func GetListAppliedHistoriesRequestXLanguageEnum() ListAppliedHistoriesRequestXLanguageEnum {
+ return ListAppliedHistoriesRequestXLanguageEnum{
+ ZH_CN: ListAppliedHistoriesRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListAppliedHistoriesRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListAppliedHistoriesRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListAppliedHistoriesRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListAppliedHistoriesRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_response.go
new file mode 100644
index 00000000..a51d8a05
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_applied_histories_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAppliedHistoriesResponse struct {
+
+ // 应用记录总数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 应用记录列表。
+ Histories *[]AppliedHistoriesResult `json:"histories,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAppliedHistoriesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAppliedHistoriesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAppliedHistoriesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_request.go
new file mode 100644
index 00000000..62c35daa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListAvailableFlavorsRequest struct {
+
+ // 语言
+ XLanguage *ListAvailableFlavorsRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAvailableFlavorsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailableFlavorsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailableFlavorsRequest", string(data)}, " ")
+}
+
+type ListAvailableFlavorsRequestXLanguage struct {
+ value string
+}
+
+type ListAvailableFlavorsRequestXLanguageEnum struct {
+ ZH_CN ListAvailableFlavorsRequestXLanguage
+ EN_US ListAvailableFlavorsRequestXLanguage
+}
+
+func GetListAvailableFlavorsRequestXLanguageEnum() ListAvailableFlavorsRequestXLanguageEnum {
+ return ListAvailableFlavorsRequestXLanguageEnum{
+ ZH_CN: ListAvailableFlavorsRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListAvailableFlavorsRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListAvailableFlavorsRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListAvailableFlavorsRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListAvailableFlavorsRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_response.go
new file mode 100644
index 00000000..b189c696
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_available_flavors_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAvailableFlavorsResponse struct {
+
+ // 实例可变更规格信息列表。
+ Flavors *[]AvailableFlavorInfoResult `json:"flavors,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAvailableFlavorsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAvailableFlavorsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAvailableFlavorsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_request.go
new file mode 100644
index 00000000..e8655e28
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListBindedEipsRequest struct {
+
+ // 语言
+ XLanguage *ListBindedEipsRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListBindedEipsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListBindedEipsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListBindedEipsRequest", string(data)}, " ")
+}
+
+type ListBindedEipsRequestXLanguage struct {
+ value string
+}
+
+type ListBindedEipsRequestXLanguageEnum struct {
+ ZH_CN ListBindedEipsRequestXLanguage
+ EN_US ListBindedEipsRequestXLanguage
+}
+
+func GetListBindedEipsRequestXLanguageEnum() ListBindedEipsRequestXLanguageEnum {
+ return ListBindedEipsRequestXLanguageEnum{
+ ZH_CN: ListBindedEipsRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListBindedEipsRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListBindedEipsRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListBindedEipsRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListBindedEipsRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_response.go
new file mode 100644
index 00000000..a99ec87d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_binded_eips_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListBindedEipsResponse struct {
+
+ // 查询实例已绑定EIP列表。
+ PublicIps *[]BindedEipResult `json:"public_ips,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListBindedEipsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListBindedEipsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListBindedEipsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_request.go
new file mode 100644
index 00000000..b7819d6f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_request.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListConfigurationsDiffRequest struct {
+
+ // 语言。
+ XLanguage *ListConfigurationsDiffRequestXLanguage `json:"X-Language,omitempty"`
+
+ Body *ParamGroupDiffRequestBody `json:"body,omitempty"`
+}
+
+func (o ListConfigurationsDiffRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationsDiffRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationsDiffRequest", string(data)}, " ")
+}
+
+type ListConfigurationsDiffRequestXLanguage struct {
+ value string
+}
+
+type ListConfigurationsDiffRequestXLanguageEnum struct {
+ ZH_CN ListConfigurationsDiffRequestXLanguage
+ EN_US ListConfigurationsDiffRequestXLanguage
+}
+
+func GetListConfigurationsDiffRequestXLanguageEnum() ListConfigurationsDiffRequestXLanguageEnum {
+ return ListConfigurationsDiffRequestXLanguageEnum{
+ ZH_CN: ListConfigurationsDiffRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListConfigurationsDiffRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListConfigurationsDiffRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListConfigurationsDiffRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListConfigurationsDiffRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_response.go
new file mode 100644
index 00000000..39374487
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_configurations_diff_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListConfigurationsDiffResponse struct {
+
+ // 参数组之间的差异集合。
+ Differences *[]ListDiffDetailsResult `json:"differences,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListConfigurationsDiffResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationsDiffResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationsDiffResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_diff_details_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_diff_details_result.go
new file mode 100644
index 00000000..d5145c65
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_diff_details_result.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 参数配置模板差异列表
+type ListDiffDetailsResult struct {
+
+ // 参数名称。
+ Name *string `json:"name,omitempty"`
+
+ // 比较参数组的参数值。
+ SourceValue *string `json:"source_value,omitempty"`
+
+ // 目标参数组的参数值。
+ TargetValue *string `json:"target_value,omitempty"`
+}
+
+func (o ListDiffDetailsResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListDiffDetailsResult struct{}"
+ }
+
+ return strings.Join([]string{"ListDiffDetailsResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_request.go
new file mode 100644
index 00000000..9030923d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListEpsQuotasRequest struct {
+
+ // 语言, 默认值为en-us。
+ XLanguage *ListEpsQuotasRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 企业项目ID。 - 对于未开通企业多项目服务的用户,不传该参数。 - 对于已开通企业多项目服务的用户,不传该参数时,表示为default企业项目。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+}
+
+func (o ListEpsQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEpsQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListEpsQuotasRequest", string(data)}, " ")
+}
+
+type ListEpsQuotasRequestXLanguage struct {
+ value string
+}
+
+type ListEpsQuotasRequestXLanguageEnum struct {
+ ZH_CN ListEpsQuotasRequestXLanguage
+ EN_US ListEpsQuotasRequestXLanguage
+}
+
+func GetListEpsQuotasRequestXLanguageEnum() ListEpsQuotasRequestXLanguageEnum {
+ return ListEpsQuotasRequestXLanguageEnum{
+ ZH_CN: ListEpsQuotasRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListEpsQuotasRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListEpsQuotasRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListEpsQuotasRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListEpsQuotasRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_response.go
new file mode 100644
index 00000000..f680beb2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_eps_quotas_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListEpsQuotasResponse struct {
+
+ // 企业配额列表。
+ EpsQuotas *[]ListQuotaResult `json:"eps_quotas,omitempty"`
+
+ // 配额组数量。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListEpsQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListEpsQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListEpsQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_request.go
new file mode 100644
index 00000000..0eee1502
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_request.go
@@ -0,0 +1,68 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListGaussDbDatastoresRequest struct {
+
+ // 语言
+ XLanguage *ListGaussDbDatastoresRequestXLanguage `json:"X-Language,omitempty"`
+}
+
+func (o ListGaussDbDatastoresRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListGaussDbDatastoresRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListGaussDbDatastoresRequest", string(data)}, " ")
+}
+
+type ListGaussDbDatastoresRequestXLanguage struct {
+ value string
+}
+
+type ListGaussDbDatastoresRequestXLanguageEnum struct {
+ ZH_CN ListGaussDbDatastoresRequestXLanguage
+ EN_US ListGaussDbDatastoresRequestXLanguage
+}
+
+func GetListGaussDbDatastoresRequestXLanguageEnum() ListGaussDbDatastoresRequestXLanguageEnum {
+ return ListGaussDbDatastoresRequestXLanguageEnum{
+ ZH_CN: ListGaussDbDatastoresRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListGaussDbDatastoresRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListGaussDbDatastoresRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListGaussDbDatastoresRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListGaussDbDatastoresRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_response.go
new file mode 100644
index 00000000..f4cf5dcf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_gauss_db_datastores_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListGaussDbDatastoresResponse struct {
+ Datastores *[]DatastoresResult `json:"datastores,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListGaussDbDatastoresResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListGaussDbDatastoresResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListGaussDbDatastoresResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_ha.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_ha.go
index 0ba3bf48..593dd7de 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_ha.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_ha.go
@@ -15,7 +15,7 @@ type ListHa struct {
// 数据库一致性类型,分布式模式实例仅有。取值为“strong”、“eventual”,分别表示强一致性、最终一致性。
Consistency ListHaConsistency `json:"consistency"`
- // 备机同步参数。 取值:非空。 GaussDB(for openGauss)为 “sync” 说明: “sync”为同步模式。
+ // 备机同步参数。 取值:非空。 GaussDB为 “sync” 说明: “sync”为同步模式。
ReplicationMode string `json:"replication_mode"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_request.go
new file mode 100644
index 00000000..282cfbb8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListHistoryOperationsRequest struct {
+
+ // 语言, 默认值为en-us。
+ XLanguage *ListHistoryOperationsRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListHistoryOperationsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHistoryOperationsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListHistoryOperationsRequest", string(data)}, " ")
+}
+
+type ListHistoryOperationsRequestXLanguage struct {
+ value string
+}
+
+type ListHistoryOperationsRequestXLanguageEnum struct {
+ ZH_CN ListHistoryOperationsRequestXLanguage
+ EN_US ListHistoryOperationsRequestXLanguage
+}
+
+func GetListHistoryOperationsRequestXLanguageEnum() ListHistoryOperationsRequestXLanguageEnum {
+ return ListHistoryOperationsRequestXLanguageEnum{
+ ZH_CN: ListHistoryOperationsRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListHistoryOperationsRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListHistoryOperationsRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListHistoryOperationsRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListHistoryOperationsRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_response.go
new file mode 100644
index 00000000..2dfee8de
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListHistoryOperationsResponse struct {
+
+ // 参数修改历史的列表记录。
+ Histories *[]ListHistoryOperationsResult `json:"histories,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListHistoryOperationsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHistoryOperationsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListHistoryOperationsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_result.go
new file mode 100644
index 00000000..652e108f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_history_operations_result.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 参数修改历史记录明细信息。
+type ListHistoryOperationsResult struct {
+
+ // 参数名称。
+ ParameterName string `json:"parameter_name"`
+
+ // 修改前参数值。
+ OldValue string `json:"old_value"`
+
+ // 修改后参数值。
+ NewValue string `json:"new_value"`
+
+ // 修改状态 (SUCCESS | FAILED)。
+ UpdateResult string `json:"update_result"`
+
+ // 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ UpdatedAt string `json:"updated_at"`
+}
+
+func (o ListHistoryOperationsResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListHistoryOperationsResult struct{}"
+ }
+
+ return strings.Join([]string{"ListHistoryOperationsResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_response.go
index 9f3bf758..f37d8797 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_response.go
@@ -24,7 +24,7 @@ type ListInstanceResponse struct {
// 实例外网IP地址列表。绑定弹性公网IP后,该值不为空。
PublicIps []string `json:"public_ips"`
- // 数据库端口号。GaussDB(for openGauss)数据库端口设置范围为1024~39998(其中2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,20049,20050,21731,21732被系统占用不可设置)。 当不传该参数时,默认端口如下:8000。
+ // 数据库端口号。GaussDB 数据库端口设置范围为1024~39998(其中2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,20049,20050,21731,21732被系统占用不可设置)。 当不传该参数时,默认端口如下:8000。
Port int32 `json:"port"`
// 实例类型,取值为 \"enterprise\",对应于分布式实例(企业版)。取值为\"Ha\",对应于主备版实例。
@@ -58,7 +58,7 @@ type ListInstanceResponse struct {
// 安全组ID。
SecurityGroupId string `json:"security_group_id"`
- // 规格码。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB(for openGauss)的“规格编码”列内容获取。
+ // 规格码。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB 的“规格编码”列内容获取。
FlavorRef string `json:"flavor_ref"`
FlavorInfo *ListFlavorInfo `json:"flavor_info"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_request.go
new file mode 100644
index 00000000..e6d7ec28
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListInstanceTagsRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ListInstanceTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_response.go
new file mode 100644
index 00000000..8c4028e2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instance_tags_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListInstanceTagsResponse struct {
+
+ // 用户标签列表。
+ Tags *[]TagsResult `json:"tags,omitempty"`
+
+ // 总记录数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListInstanceTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListInstanceTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListInstanceTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_request.go
index 6a1507b7..6f300860 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_request.go
@@ -24,7 +24,7 @@ type ListInstancesRequest struct {
// 按照实例类型查询。目前仅支持取值“Enterprise”(区分大小写),对应分布式实例(企业版)。当前支持取值\"Ha\"(区分大小写),对应主备式实例。
Type *ListInstancesRequestType `json:"type,omitempty"`
- // 数据库类型,区分大小写。 - GaussDB(for openGauss)
+ // 数据库类型,区分大小写。 - GaussDB
DatastoreType *ListInstancesRequestDatastoreType `json:"datastore_type,omitempty"`
// 虚拟私有云ID。 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
@@ -100,6 +100,7 @@ type ListInstancesRequestDatastoreType struct {
type ListInstancesRequestDatastoreTypeEnum struct {
GAUSS_DB_FOR_OPEN_GAUSS ListInstancesRequestDatastoreType
+ GAUSS_DB ListInstancesRequestDatastoreType
}
func GetListInstancesRequestDatastoreTypeEnum() ListInstancesRequestDatastoreTypeEnum {
@@ -107,6 +108,9 @@ func GetListInstancesRequestDatastoreTypeEnum() ListInstancesRequestDatastoreTyp
GAUSS_DB_FOR_OPEN_GAUSS: ListInstancesRequestDatastoreType{
value: "GaussDB(for openGauss)",
},
+ GAUSS_DB: ListInstancesRequestDatastoreType{
+ value: "GaussDB",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_response.go
index 128b60b4..c7619c7e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_instances_response.go
@@ -12,7 +12,7 @@ type ListInstancesResponse struct {
// 实例信息。
Instances *[]ListInstanceResponse `json:"instances,omitempty"`
- // 总记录数。
+ // 总记录数 。
TotalCount *int32 `json:"total_count,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_request.go
new file mode 100644
index 00000000..a92bf02c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_request.go
@@ -0,0 +1,68 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListPredefinedTagsRequest struct {
+
+ // 语言
+ XLanguage *ListPredefinedTagsRequestXLanguage `json:"X-Language,omitempty"`
+}
+
+func (o ListPredefinedTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPredefinedTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPredefinedTagsRequest", string(data)}, " ")
+}
+
+type ListPredefinedTagsRequestXLanguage struct {
+ value string
+}
+
+type ListPredefinedTagsRequestXLanguageEnum struct {
+ ZH_CN ListPredefinedTagsRequestXLanguage
+ EN_US ListPredefinedTagsRequestXLanguage
+}
+
+func GetListPredefinedTagsRequestXLanguageEnum() ListPredefinedTagsRequestXLanguageEnum {
+ return ListPredefinedTagsRequestXLanguageEnum{
+ ZH_CN: ListPredefinedTagsRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListPredefinedTagsRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListPredefinedTagsRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListPredefinedTagsRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListPredefinedTagsRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_response.go
new file mode 100644
index 00000000..624faadd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_predefined_tags_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPredefinedTagsResponse struct {
+ Tags *[][]interface{} `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPredefinedTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPredefinedTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPredefinedTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_request.go
new file mode 100644
index 00000000..b59b2ddc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListProjectTagsRequest struct {
+
+ // 语言
+ XLanguage *string `json:"X-Language,omitempty"`
+}
+
+func (o ListProjectTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_response.go
new file mode 100644
index 00000000..6de1e8aa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_project_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListProjectTagsResponse struct {
+
+ // 标签列表。
+ Tags *[]TagsResult `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListProjectTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListProjectTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListProjectTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_quota_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_quota_result.go
new file mode 100644
index 00000000..d08e8f8d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_quota_result.go
@@ -0,0 +1,49 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ListQuotaResult struct {
+
+ // 企业项目ID。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 企业项目名称。
+ EnterpriseProjectName *string `json:"enterprise_project_name,omitempty"`
+
+ // EPS实例资源配额数量,值为-1时表示配额无限制。
+ InstanceEpsQuota *int32 `json:"instance_eps_quota,omitempty"`
+
+ // EPS计算资源配额数量,值为-1时表示配额无限制。
+ VcpusEpsQuota *int32 `json:"vcpus_eps_quota,omitempty"`
+
+ // EPS内存资源配额量,单位为GB,值为-1时表示配额无限制。
+ RamEpsQuota *int32 `json:"ram_eps_quota,omitempty"`
+
+ // EPS磁盘资源配额量,单位为GB,值为-1时表示配额无限制。
+ VolumeEpsQuota *int32 `json:"volume_eps_quota,omitempty"`
+
+ // EPS实例使用数量。
+ InstanceUsed *int32 `json:"instance_used,omitempty"`
+
+ // EPS计算资源使用数量。
+ VcpusUsed *int32 `json:"vcpus_used,omitempty"`
+
+ // EPS内存使用配额量,单位为GB。
+ RamUsed *int32 `json:"ram_used,omitempty"`
+
+ // EPS磁盘使用配额量,单位为GB。
+ VolumeUsed *int32 `json:"volume_used,omitempty"`
+}
+
+func (o ListQuotaResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListQuotaResult struct{}"
+ }
+
+ return strings.Join([]string{"ListQuotaResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_request.go
new file mode 100644
index 00000000..26fc074c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListRecycleInstancesRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ListRecycleInstancesRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例名称。
+ InstanceName *string `json:"instance_name,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为50,不能为负数,最小值为1,最大值为50。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListRecycleInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesRequest", string(data)}, " ")
+}
+
+type ListRecycleInstancesRequestXLanguage struct {
+ value string
+}
+
+type ListRecycleInstancesRequestXLanguageEnum struct {
+ ZH_CN ListRecycleInstancesRequestXLanguage
+ EN_US ListRecycleInstancesRequestXLanguage
+}
+
+func GetListRecycleInstancesRequestXLanguageEnum() ListRecycleInstancesRequestXLanguageEnum {
+ return ListRecycleInstancesRequestXLanguageEnum{
+ ZH_CN: ListRecycleInstancesRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ListRecycleInstancesRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ListRecycleInstancesRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ListRecycleInstancesRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListRecycleInstancesRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_response.go
new file mode 100644
index 00000000..4c48fe50
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_recycle_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRecycleInstancesResponse struct {
+
+ // 回收站所有引擎实例总数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+
+ // 回收站所有引擎实例信息。
+ Instances *[]RecycleInstancesDetailResult `json:"instances,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRecycleInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRecycleInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRecycleInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_request.go
new file mode 100644
index 00000000..647cf1f2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_request.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListRestorableInstancesRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 源实例id,需要恢复的实例ID。
+ SourceInstanceId string `json:"source_instance_id"`
+
+ // 实例备份信息ID,根据备份ID查询实例拓扑信息,过滤查询出来的实例,包含节点数,副本数等。参数为空时,根据restore_time查询。。
+ BackupId *string `json:"backup_id,omitempty"`
+
+ // 恢复点,当备份ID为空时,通过此参数查询实例拓扑信息,过滤实例列表。
+ RestoreTime *string `json:"restore_time,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListRestorableInstancesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRestorableInstancesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRestorableInstancesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_response.go
new file mode 100644
index 00000000..74e7f6c7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_restorable_instances_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRestorableInstancesResponse struct {
+
+ // 返回可用于备份恢复的实例列表。
+ Instances *[]InstancesResult `json:"instances,omitempty"`
+
+ // 查询出来的实例总数。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRestorableInstancesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRestorableInstancesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRestorableInstancesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_request.go
new file mode 100644
index 00000000..a6832085
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_request.go
@@ -0,0 +1,164 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ListTasksRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 任务状态。
+ Status *ListTasksRequestStatus `json:"status,omitempty"`
+
+ // 任务名称。
+ Name *ListTasksRequestName `json:"name,omitempty"`
+
+ // 开始时间。
+ StartTime *string `json:"start_time,omitempty"`
+
+ // 结束时间。
+ EndTime *string `json:"end_time,omitempty"`
+
+ // 索引位置,偏移量。从第一条数据偏移offset条数据后开始查询,默认为0(偏移0条数据,表示从第一条数据开始查询),必须为数字,不能为负数。
+ Offset *int32 `json:"offset,omitempty"`
+
+ // 查询记录数。默认为100,不能为负数,最小值为1,最大值为100
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListTasksRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTasksRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListTasksRequest", string(data)}, " ")
+}
+
+type ListTasksRequestStatus struct {
+ value string
+}
+
+type ListTasksRequestStatusEnum struct {
+ RUNNING ListTasksRequestStatus
+ COMPLETED ListTasksRequestStatus
+ FAILED ListTasksRequestStatus
+}
+
+func GetListTasksRequestStatusEnum() ListTasksRequestStatusEnum {
+ return ListTasksRequestStatusEnum{
+ RUNNING: ListTasksRequestStatus{
+ value: "Running",
+ },
+ COMPLETED: ListTasksRequestStatus{
+ value: "Completed",
+ },
+ FAILED: ListTasksRequestStatus{
+ value: "Failed",
+ },
+ }
+}
+
+func (c ListTasksRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ListTasksRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListTasksRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ListTasksRequestName struct {
+ value string
+}
+
+type ListTasksRequestNameEnum struct {
+ CREATE_GAUSS_DBV5_INSTANCE ListTasksRequestName
+ BACKUP_SNAPSHOT_GAUSS_DBV5_IN_INSTANCE ListTasksRequestName
+ CLONE_GAUSS_DBV5_NEW_INSTANCE ListTasksRequestName
+ RESTORE_GAUSS_DBV5_IN_INSTANCE ListTasksRequestName
+ RESTORE_GAUSS_DBV5_IN_INSTANCE_TO_EXISTED_INST ListTasksRequestName
+ DELETE_GAUSS_DBV5_INSTANCE ListTasksRequestName
+ ENLARGE_GAUSS_DBV5_VOLUME ListTasksRequestName
+ RESIZE_GAUSS_DBV5_FLAVOR ListTasksRequestName
+ GAUSS_DBV5_EXPAND_CLUSTER_CN ListTasksRequestName
+ GAUSS_DBV5_EXPAND_CLUSTER_DN ListTasksRequestName
+}
+
+func GetListTasksRequestNameEnum() ListTasksRequestNameEnum {
+ return ListTasksRequestNameEnum{
+ CREATE_GAUSS_DBV5_INSTANCE: ListTasksRequestName{
+ value: "CreateGaussDBV5Instance",
+ },
+ BACKUP_SNAPSHOT_GAUSS_DBV5_IN_INSTANCE: ListTasksRequestName{
+ value: "BackupSnapshotGaussDBV5InInstance",
+ },
+ CLONE_GAUSS_DBV5_NEW_INSTANCE: ListTasksRequestName{
+ value: "CloneGaussDBV5NewInstance",
+ },
+ RESTORE_GAUSS_DBV5_IN_INSTANCE: ListTasksRequestName{
+ value: "RestoreGaussDBV5InInstance",
+ },
+ RESTORE_GAUSS_DBV5_IN_INSTANCE_TO_EXISTED_INST: ListTasksRequestName{
+ value: "RestoreGaussDBV5InInstanceToExistedInst",
+ },
+ DELETE_GAUSS_DBV5_INSTANCE: ListTasksRequestName{
+ value: "DeleteGaussDBV5Instance",
+ },
+ ENLARGE_GAUSS_DBV5_VOLUME: ListTasksRequestName{
+ value: "EnlargeGaussDBV5Volume",
+ },
+ RESIZE_GAUSS_DBV5_FLAVOR: ListTasksRequestName{
+ value: "ResizeGaussDBV5Flavor",
+ },
+ GAUSS_DBV5_EXPAND_CLUSTER_CN: ListTasksRequestName{
+ value: "GaussDBV5ExpandClusterCN",
+ },
+ GAUSS_DBV5_EXPAND_CLUSTER_DN: ListTasksRequestName{
+ value: "GaussDBV5ExpandClusterDN",
+ },
+ }
+}
+
+func (c ListTasksRequestName) Value() string {
+ return c.value
+}
+
+func (c ListTasksRequestName) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListTasksRequestName) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_response.go
new file mode 100644
index 00000000..84d4caaf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_list_tasks_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListTasksResponse struct {
+
+ // 任务列表。
+ Tasks *[]TaskDetailResult `json:"tasks,omitempty"`
+
+ // 任务数量。
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListTasksResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListTasksResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListTasksResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request.go
new file mode 100644
index 00000000..55fc623c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ModifyEpsQuotaRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ModifyEpsQuotaRequestXLanguage `json:"X-Language,omitempty"`
+
+ Body *ModifyEpsQuotaRequestBody `json:"body,omitempty"`
+}
+
+func (o ModifyEpsQuotaRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyEpsQuotaRequest struct{}"
+ }
+
+ return strings.Join([]string{"ModifyEpsQuotaRequest", string(data)}, " ")
+}
+
+type ModifyEpsQuotaRequestXLanguage struct {
+ value string
+}
+
+type ModifyEpsQuotaRequestXLanguageEnum struct {
+ ZH_CN ModifyEpsQuotaRequestXLanguage
+ EN_US ModifyEpsQuotaRequestXLanguage
+}
+
+func GetModifyEpsQuotaRequestXLanguageEnum() ModifyEpsQuotaRequestXLanguageEnum {
+ return ModifyEpsQuotaRequestXLanguageEnum{
+ ZH_CN: ModifyEpsQuotaRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ModifyEpsQuotaRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ModifyEpsQuotaRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ModifyEpsQuotaRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ModifyEpsQuotaRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request_body.go
new file mode 100644
index 00000000..541b0d7a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ModifyEpsQuotaRequestBody struct {
+
+ // 需要修改的企业配额列表。
+ EpsQuotas []EpsQuotasOption `json:"eps_quotas"`
+}
+
+func (o ModifyEpsQuotaRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyEpsQuotaRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ModifyEpsQuotaRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_response.go
new file mode 100644
index 00000000..1ea9d324
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_modify_eps_quota_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ModifyEpsQuotaResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ModifyEpsQuotaResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ModifyEpsQuotaResponse struct{}"
+ }
+
+ return strings.Join([]string{"ModifyEpsQuotaResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info.go
index 509441e2..b3571eeb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info.go
@@ -9,11 +9,23 @@ import (
"strings"
)
-// 计费类型信息,仅支持按需。
+// 计费类型信息,仅支持按需和包周期。
type OpenGaussChargeInfo struct {
- // 计费模式。仅支持postPaid,后付费,即按需付费。
+ // 计费模式。postPaid:后付费,即按需付费。prePaid:预付费,即包年/包月。
ChargeMode OpenGaussChargeInfoChargeMode `json:"charge_mode"`
+
+ // 订购周期类型。month:包月。year:包年。 说明: “charge_mode”为“prePaid”时生效,且为必选值。
+ PeriodType *OpenGaussChargeInfoPeriodType `json:"period_type,omitempty"`
+
+ // “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。 当传入浮点型时,会自动截取为整型。
+ PeriodNum *int32 `json:"period_num,omitempty"`
+
+ // 创建包周期实例时可指定,表示是否自动续订,续订时会自动支付。 按月订购时续订周期默认为1个月,按年订购时续订周期默认为1年,续订周期可自定义修改。 true,表示自动续订。 false,表示不自动续订,默认为该方式。
+ IsAutoRenew *bool `json:"is_auto_renew,omitempty"`
+
+ // 创建包周期实例时可指定,表示是否自动从账户中支付,该字段不影响自动续订的支付方式。 true,表示自动从账户中支付。 false,表示手动从账户中支付,默认为该支付方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}
func (o OpenGaussChargeInfo) String() string {
@@ -31,6 +43,7 @@ type OpenGaussChargeInfoChargeMode struct {
type OpenGaussChargeInfoChargeModeEnum struct {
POST_PAID OpenGaussChargeInfoChargeMode
+ PRE_PAID OpenGaussChargeInfoChargeMode
}
func GetOpenGaussChargeInfoChargeModeEnum() OpenGaussChargeInfoChargeModeEnum {
@@ -38,6 +51,9 @@ func GetOpenGaussChargeInfoChargeModeEnum() OpenGaussChargeInfoChargeModeEnum {
POST_PAID: OpenGaussChargeInfoChargeMode{
value: "postPaid",
},
+ PRE_PAID: OpenGaussChargeInfoChargeMode{
+ value: "prePaid",
+ },
}
}
@@ -62,3 +78,45 @@ func (c *OpenGaussChargeInfoChargeMode) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type OpenGaussChargeInfoPeriodType struct {
+ value string
+}
+
+type OpenGaussChargeInfoPeriodTypeEnum struct {
+ MONTH OpenGaussChargeInfoPeriodType
+ YEAR OpenGaussChargeInfoPeriodType
+}
+
+func GetOpenGaussChargeInfoPeriodTypeEnum() OpenGaussChargeInfoPeriodTypeEnum {
+ return OpenGaussChargeInfoPeriodTypeEnum{
+ MONTH: OpenGaussChargeInfoPeriodType{
+ value: "month",
+ },
+ YEAR: OpenGaussChargeInfoPeriodType{
+ value: "year",
+ },
+ }
+}
+
+func (c OpenGaussChargeInfoPeriodType) Value() string {
+ return c.value
+}
+
+func (c OpenGaussChargeInfoPeriodType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *OpenGaussChargeInfoPeriodType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info_response.go
index bf4ebbd0..f924ccfa 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_charge_info_response.go
@@ -9,11 +9,23 @@ import (
"strings"
)
-// 计费类型信息,支持按需,默认为按需。
+// 计费类型信息,支持按需和包周期。
type OpenGaussChargeInfoResponse struct {
- // 计费模式。 取值范围: postPaid:后付费,即按需付费。
+ // 计费模式。postPaid:后付费,即按需付费。prePaid:预付费,即包年/包月。
ChargeMode OpenGaussChargeInfoResponseChargeMode `json:"charge_mode"`
+
+ // 订购周期类型。month:包月。year:包年。 说明: “charge_mode”为“prePaid”时生效,且为必选值。
+ PeriodType *OpenGaussChargeInfoResponsePeriodType `json:"period_type,omitempty"`
+
+ // “charge_mode”为“prePaid”时生效,且为必选值,指定订购的时间。 取值范围: 当“period_type”为“month”时,取值为1~9。 当“period_type”为“year”时,取值为1~3。
+ PeriodNum *int32 `json:"period_num,omitempty"`
+
+ // 创建包周期实例时可指定,表示是否自动续订,续订的周期和原周期相同,且续订时会自动支付。 true,表示自动续订。 false,表示不自动续订,默认为该方式。
+ IsAutoRenew *bool `json:"is_auto_renew,omitempty"`
+
+ // 创建包周期实例时可指定,表示是否自动从账户中支付,该字段不影响自动续订的支付方式。 true,表示自动从账户中支付。 false,表示手动从账户中支付,默认为该支付方式。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}
func (o OpenGaussChargeInfoResponse) String() string {
@@ -31,6 +43,7 @@ type OpenGaussChargeInfoResponseChargeMode struct {
type OpenGaussChargeInfoResponseChargeModeEnum struct {
POST_PAID OpenGaussChargeInfoResponseChargeMode
+ PRE_PAID OpenGaussChargeInfoResponseChargeMode
}
func GetOpenGaussChargeInfoResponseChargeModeEnum() OpenGaussChargeInfoResponseChargeModeEnum {
@@ -38,6 +51,9 @@ func GetOpenGaussChargeInfoResponseChargeModeEnum() OpenGaussChargeInfoResponseC
POST_PAID: OpenGaussChargeInfoResponseChargeMode{
value: "postPaid",
},
+ PRE_PAID: OpenGaussChargeInfoResponseChargeMode{
+ value: "prePaid",
+ },
}
}
@@ -62,3 +78,45 @@ func (c *OpenGaussChargeInfoResponseChargeMode) UnmarshalJSON(b []byte) error {
return errors.New("convert enum data to string error")
}
}
+
+type OpenGaussChargeInfoResponsePeriodType struct {
+ value string
+}
+
+type OpenGaussChargeInfoResponsePeriodTypeEnum struct {
+ MONTH OpenGaussChargeInfoResponsePeriodType
+ YEAR OpenGaussChargeInfoResponsePeriodType
+}
+
+func GetOpenGaussChargeInfoResponsePeriodTypeEnum() OpenGaussChargeInfoResponsePeriodTypeEnum {
+ return OpenGaussChargeInfoResponsePeriodTypeEnum{
+ MONTH: OpenGaussChargeInfoResponsePeriodType{
+ value: "month",
+ },
+ YEAR: OpenGaussChargeInfoResponsePeriodType{
+ value: "year",
+ },
+ }
+}
+
+func (c OpenGaussChargeInfoResponsePeriodType) Value() string {
+ return c.value
+}
+
+func (c OpenGaussChargeInfoResponsePeriodType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *OpenGaussChargeInfoResponsePeriodType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore.go
index 98219b26..dd726831 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore.go
@@ -15,7 +15,7 @@ type OpenGaussDatastore struct {
// 数据库引擎,不区分大小写,取值如下: GaussDB(for openGauss)。
Type OpenGaussDatastoreType `json:"type"`
- // 数据库版本。不填时,默认为当前最新版本。 GaussDB(for openGauss)支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDBforopenGauss&api=ListDatastores)。
+ // 数据库版本。不填时,默认为当前最新版本。 GaussDB支持的版本参考[查询数据库引擎的版本](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=GaussDBforopenGauss&api=ListDatastores)。
Version *string `json:"version,omitempty"`
}
@@ -34,6 +34,7 @@ type OpenGaussDatastoreType struct {
type OpenGaussDatastoreTypeEnum struct {
GAUSS_DB_FOR_OPEN_GAUSS OpenGaussDatastoreType
+ GAUSS_DB OpenGaussDatastoreType
}
func GetOpenGaussDatastoreTypeEnum() OpenGaussDatastoreTypeEnum {
@@ -41,6 +42,9 @@ func GetOpenGaussDatastoreTypeEnum() OpenGaussDatastoreTypeEnum {
GAUSS_DB_FOR_OPEN_GAUSS: OpenGaussDatastoreType{
value: "GaussDB(for openGauss)",
},
+ GAUSS_DB: OpenGaussDatastoreType{
+ value: "GaussDB",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore_response.go
index e16169bb..36fd104a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_datastore_response.go
@@ -33,11 +33,15 @@ type OpenGaussDatastoreResponseType struct {
}
type OpenGaussDatastoreResponseTypeEnum struct {
+ GAUSS_DB OpenGaussDatastoreResponseType
GAUSS_DB_FOR_OPEN_GAUSS OpenGaussDatastoreResponseType
}
func GetOpenGaussDatastoreResponseTypeEnum() OpenGaussDatastoreResponseTypeEnum {
return OpenGaussDatastoreResponseTypeEnum{
+ GAUSS_DB: OpenGaussDatastoreResponseType{
+ value: "GaussDB",
+ },
GAUSS_DB_FOR_OPEN_GAUSS: OpenGaussDatastoreResponseType{
value: "GaussDB(for openGauss)",
},
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_enlarge_volume.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_enlarge_volume.go
index 3a29fd91..99347045 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_enlarge_volume.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_enlarge_volume.go
@@ -9,7 +9,7 @@ import (
// 扩容实例磁盘时必填。 所需扩容到的磁盘容量大小。
type OpenGaussEnlargeVolume struct {
- // GaussDB(for openGauss)磁盘大小要求(分片数*40GB)的倍数;取值范围:(分片数*40GB)~(分片数*16TB)
+ // GaussDB磁盘大小要求(分片数*40GB)的倍数;取值范围:(分片数*40GB)~(分片数*16TB)
Size int32 `json:"size"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha.go
index bc583f84..a8c1df39 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha.go
@@ -12,13 +12,13 @@ import (
// 实例部署形态。
type OpenGaussHa struct {
- // GaussDB(for openGauss)为分布式时,取值:enterprise;为集中式时,取值:centralization_standard。不区分大小写。
+ // GaussDB为分布式时,取值:enterprise;为集中式时,取值:centralization_standard。不区分大小写。
Mode OpenGaussHaMode `json:"mode"`
// 指定实例一致性类型,当创建分布式模式实例时,该字段值必传,当创建主备模式实例时,该字段值不传。取值范围:strong(强一致性) | eventual(最终一致性),不分区大小写。
Consistency OpenGaussHaConsistency `json:"consistency"`
- // 备机同步参数。 取值: GaussDB(for openGauss)为“sync\" 说明: - “sync”为同步模式。
+ // 备机同步参数。 取值: GaussDB为“sync\" 说明: - “sync”为同步模式。
ReplicationMode OpenGaussHaReplicationMode `json:"replication_mode"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha_response.go
index a905194a..82f5c71a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_ha_response.go
@@ -12,13 +12,13 @@ import (
// 实例部署形态。
type OpenGaussHaResponse struct {
- // GaussDB(for openGauss) 分布式模式,返回值为:Enterprise(企业版);主备版,返回值为:Ha(主备版)。
+ // GaussDB 分布式模式,返回值为:Enterprise(企业版);主备版,返回值为:Ha(主备版)。
Mode OpenGaussHaResponseMode `json:"mode"`
- // 备机同步参数。 取值: GaussDB(for openGauss)为“sync”。 说明: - “sync”为同步模式。
+ // 备机同步参数。 取值: GaussDB为“sync”。 说明: - “sync”为同步模式。
ReplicationMode OpenGaussHaResponseReplicationMode `json:"replication_mode"`
- // GaussDB(for openGauss)的预留参数:指定实例一致性类型,取值范围:strong(强一致性) | eventual(最终一致性)。
+ // GaussDB的预留参数:指定实例一致性类型,取值范围:strong(强一致性) | eventual(最终一致性)。
Consistency OpenGaussHaResponseConsistency `json:"consistency"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_action_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_action_request.go
index b502e89c..e9fe0bb3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_action_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_action_request.go
@@ -11,6 +11,9 @@ type OpenGaussInstanceActionRequest struct {
ExpandCluster *OpenGaussExpandCluster `json:"expand_cluster,omitempty"`
EnlargeVolume *OpenGaussEnlargeVolume `json:"enlarge_volume,omitempty"`
+
+ // 包周期实例时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。 true,表示自动从账户中支付。 false,表示手动从账户中支付,默认为该方式。
+ IsAutoPay *string `json:"is_auto_pay,omitempty"`
}
func (o OpenGaussInstanceActionRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_request.go
index 975f99e2..2ed2edc0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_request.go
@@ -22,7 +22,7 @@ type OpenGaussInstanceRequest struct {
// 参数模板ID。当不传该参数时,使用系统默认的参数模板。
ConfigurationId *string `json:"configuration_id,omitempty"`
- // 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB(for openGauss)数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。
+ // 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。
Port *string `json:"port,omitempty"`
// 数据库密码。必选。 取值范围: '非空; 至少包含大写字母(A-Z),小写字母(a-z),数字(0-9),非字母数字字符(限定为~!@#%^*-_=+?,)四类字符中的三类字符;长度8~32个字符。' '建议您输入高强度密码,以提高安全性,防止出现密码被暴力破解等安全风险。'
@@ -36,7 +36,7 @@ type OpenGaussInstanceRequest struct {
// 用于磁盘加密的密钥ID,默认为空。
DiskEncryptionId *string `json:"disk_encryption_id,omitempty"`
- // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB(for openGauss)的“规格编码”列内容获取。
+ // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB 的“规格编码”列内容获取。
FlavorRef string `json:"flavor_ref"`
Volume *OpenGaussVolume `json:"volume"`
@@ -44,7 +44,7 @@ type OpenGaussInstanceRequest struct {
// 区域ID。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
Region string `json:"region"`
- // 可用区ID。 GaussDB(for openGauss)取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
+ // 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
AvailabilityZone string `json:"availability_zone"`
// 虚拟私有云ID,获取方法如下: - 方法1:登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。 - 方法2:通过虚拟私有云服务的API接口查询,具体操作可参考[查询VPC列表](https://support.huaweicloud.com/api-vpc/vpc_api01_0003.html)。
@@ -58,7 +58,7 @@ type OpenGaussInstanceRequest struct {
ChargeInfo *OpenGaussChargeInfo `json:"charge_info,omitempty"`
- // UTC时区。 - 不选择时,GaussDB(for openGauss)国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。
+ // UTC时区。 - 不选择时,GaussDB国内站、默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。
TimeZone *string `json:"time_zone,omitempty"`
// 仅分布式形态需要填写该参数。分片数量,取值范围1~9。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_response.go
index 832cc8a3..547025f9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_instance_response.go
@@ -33,7 +33,7 @@ type OpenGaussInstanceResponse struct {
// 项目标签。
EnterpriseProjectId string `json:"enterprise_project_id"`
- // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB(for openGauss)的“规格编码”列内容获取。
+ // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB 的“规格编码”列内容获取。
FlavorRef string `json:"flavor_ref"`
Volume *OpenGaussVolumeResponse `json:"volume"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_resize_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_resize_request.go
index e5e83df7..8fc65c4a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_resize_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_resize_request.go
@@ -9,11 +9,11 @@ import (
// 规格变更时必填。
type OpenGaussResizeRequest struct {
- // 规格变更时选定的目标规格。新规格的资源规格编码。参考表1中GaussDB(for openGauss)的“规格编码”列内容获取。
+ // 规格变更时选定的目标规格。新规格的资源规格编码。参考表1中GaussDB的“规格编码”列内容获取。
FlavorRef string `json:"flavor_ref"`
// 创建包周期实例时可指定,表示是否自动从账户中支付,此字段不影响自动续订的支付方式。true,表示自动从账户中支付。false,表示手动从账户中支付,默认为该方式。
- IsAutoPay *string `json:"is_auto_pay,omitempty"`
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
}
func (o OpenGaussResizeRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_volume_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_volume_response.go
index 241adee7..1ffa7e6f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_volume_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_open_gauss_volume_response.go
@@ -15,7 +15,7 @@ type OpenGaussVolumeResponse struct {
// 磁盘类型。 取值如下,区分大小写: - ULTRAHIGH,表示SSD。 - ESSD,表示急速云盘
Type OpenGaussVolumeResponseType `json:"type"`
- // 磁盘大小。 GaussDB(for openGauss)分布式实例创建时需指定大小:要求必须为(分片数 * 40GB)的倍数,取值范围:(分片数*40GB)~(分片数*16TB)。
+ // 磁盘大小。 GaussDB分布式实例创建时需指定大小:要求必须为(分片数 * 40GB)的倍数,取值范围:(分片数*40GB)~(分片数*16TB)。
Size int32 `json:"size"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_opengauss_restore_instance_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_opengauss_restore_instance_request.go
index 23fde513..386a6cfc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_opengauss_restore_instance_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_opengauss_restore_instance_request.go
@@ -12,10 +12,10 @@ type OpengaussRestoreInstanceRequest struct {
// 实例名称。 用于表示实例的名称,同一租户下,同类型的实例名可重名。 取值范围:4~64个字符之间,必须以字母开头,区分大小写,可以包含字母、数字、中划线或者下划线,不能包含其他的特殊字符。
Name string `json:"name"`
- // 可用区ID。 GaussDB(for openGauss)取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
+ // 可用区ID。 GaussDB取值范围:非空,可选部署在同一可用区或三个不同可用区,可用区之间用逗号隔开。详见示例。 - 部署在同一可用区:需要输入三个相同的可用区。例如:部署在“cn-north-4a”可用区,则需要在此处输入\"cn-north-4a,cn-north-4a,cn-north-4a\"。 - 部署在三个不同可用区:需要分别输入三个不同的可用区。 取值范围:非空,请参见[地区和终端节点](https://developer.huaweicloud.com/endpoint)。
AvailabilityZone string `json:"availability_zone"`
- // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB(for openGauss)的“规格编码”列内容获取。
+ // 规格码,取值范围:非空。参考[表1](https://support.huaweicloud.com/api-opengauss/opengauss_api_0037.html#opengauss_api_0037__ted9b9d433c8a4c52884e199e17f94479)中GaussDB 的“规格编码”列内容获取。
FlavorRef string `json:"flavor_ref"`
Volume *OpenGaussVolume `json:"volume"`
@@ -50,7 +50,7 @@ type OpengaussRestoreInstanceRequest struct {
// 企业项目ID。
EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
- // 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB(for openGauss)数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。
+ // 数据库对外开放的端口,不填默认为8000,可选范围为:1024-39998。限制端口: 2378,2379,2380,4999,5000,5999,6000,6001,8097,8098,12016,12017,20049,20050,21731,21732,32122,32123,32124。 - GaussDB数据库端口当前只支持设置为8000,当不传该参数时,默认端口为8000。
Port *string `json:"port,omitempty"`
// 时区。 - 不选择时,国内站默认为UTC+08:00,国际站默认为UTC时间。 - 选择填写时,取值范围为UTC-12:00~UTC+12:00,且只支持整段时间,如UTC+08:00,不支持UTC+08:30。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response.go
new file mode 100644
index 00000000..163bfcce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ParaErrorResponse struct {
+
+ // 错误码。
+ ErrorCode string `json:"error_code"`
+
+ // 错误消息。
+ ErrorMsg string `json:"error_msg"`
+}
+
+func (o ParaErrorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ParaErrorResponse struct{}"
+ }
+
+ return strings.Join([]string{"ParaErrorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response_body.go
new file mode 100644
index 00000000..62aa21db
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_error_response_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ParaErrorResponseBody struct {
+
+ // 错误码。
+ ErrorCode string `json:"error_code"`
+
+ // 错误消息。
+ ErrorMsg string `json:"error_msg"`
+}
+
+func (o ParaErrorResponseBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ParaErrorResponseBody struct{}"
+ }
+
+ return strings.Join([]string{"ParaErrorResponseBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_group_parameter_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_group_parameter_result.go
new file mode 100644
index 00000000..60bc9e1d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_para_group_parameter_result.go
@@ -0,0 +1,97 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type ParaGroupParameterResult struct {
+
+ // 特定参数名称。
+ Name string `json:"name"`
+
+ // 特定参数值。
+ Value string `json:"value"`
+
+ // 参数是否需要重启。 - 取值为\"true\",需要重启。 - 取值为\"false\",不需要重启。
+ NeedRestart bool `json:"need_restart"`
+
+ // 该参数是否只读(true:只读;false:可编辑)。
+ Readonly bool `json:"readonly"`
+
+ // 参数取值范围。
+ ValueRange string `json:"value_range"`
+
+ // 参数类型,取值为“string”、“integer”、“boolean”、“list”或“float”之一。
+ DataType ParaGroupParameterResultDataType `json:"data_type"`
+
+ // 参数描述。
+ Description string `json:"description"`
+}
+
+func (o ParaGroupParameterResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ParaGroupParameterResult struct{}"
+ }
+
+ return strings.Join([]string{"ParaGroupParameterResult", string(data)}, " ")
+}
+
+type ParaGroupParameterResultDataType struct {
+ value string
+}
+
+type ParaGroupParameterResultDataTypeEnum struct {
+ STRING ParaGroupParameterResultDataType
+ INTEGER ParaGroupParameterResultDataType
+ BOOLEAN ParaGroupParameterResultDataType
+ LIST ParaGroupParameterResultDataType
+ FLOAT ParaGroupParameterResultDataType
+}
+
+func GetParaGroupParameterResultDataTypeEnum() ParaGroupParameterResultDataTypeEnum {
+ return ParaGroupParameterResultDataTypeEnum{
+ STRING: ParaGroupParameterResultDataType{
+ value: "string",
+ },
+ INTEGER: ParaGroupParameterResultDataType{
+ value: "integer",
+ },
+ BOOLEAN: ParaGroupParameterResultDataType{
+ value: "boolean",
+ },
+ LIST: ParaGroupParameterResultDataType{
+ value: "list",
+ },
+ FLOAT: ParaGroupParameterResultDataType{
+ value: "float",
+ },
+ }
+}
+
+func (c ParaGroupParameterResultDataType) Value() string {
+ return c.value
+}
+
+func (c ParaGroupParameterResultDataType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ParaGroupParameterResultDataType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_copy_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_copy_request_body.go
new file mode 100644
index 00000000..35e6f93c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_copy_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ParamGroupCopyRequestBody struct {
+
+ // 复制后的参数模板名称。
+ Name string `json:"name"`
+
+ // 参数模板描述。
+ Description *string `json:"description,omitempty"`
+}
+
+func (o ParamGroupCopyRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ParamGroupCopyRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ParamGroupCopyRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_diff_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_diff_request_body.go
new file mode 100644
index 00000000..53383f29
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_param_group_diff_request_body.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ParamGroupDiffRequestBody struct {
+
+ // 需要进行比较的参数组模板ID。
+ SourceId string `json:"source_id"`
+
+ // 需要进行比较的参数组模板ID。
+ TargetId string `json:"target_id"`
+}
+
+func (o ParamGroupDiffRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ParamGroupDiffRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"ParamGroupDiffRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_project_quotas_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_project_quotas_result.go
new file mode 100644
index 00000000..52586df5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_project_quotas_result.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ProjectQuotasResult struct {
+
+ // 资源列表对象
+ Resources []ResourceResult `json:"resources"`
+}
+
+func (o ProjectQuotasResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ProjectQuotasResult struct{}"
+ }
+
+ return strings.Join([]string{"ProjectQuotasResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_instances_detail_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_instances_detail_result.go
new file mode 100644
index 00000000..ab470edf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_instances_detail_result.go
@@ -0,0 +1,279 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type RecycleInstancesDetailResult struct {
+
+ // 实例ID。
+ Id string `json:"id"`
+
+ // 实例名称。
+ Name string `json:"name"`
+
+ // 部署形态。
+ HaMode RecycleInstancesDetailResultHaMode `json:"ha_mode"`
+
+ // 引擎版本号。
+ EngineVersion string `json:"engine_version"`
+
+ // 计费模式(0:按需计费;1:包年/包月)。
+ PayModel RecycleInstancesDetailResultPayModel `json:"pay_model"`
+
+ // 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ CreatedAt string `json:"created_at"`
+
+ // 删除时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ DeletedAt string `json:"deleted_at"`
+
+ // 磁盘类型。(SAS:high;SSD:ultrahigh;ESSD:essd)。
+ VolumeType RecycleInstancesDetailResultVolumeType `json:"volume_type"`
+
+ // 数据vip。
+ DataVip string `json:"data_vip"`
+
+ // 企业项目ID。
+ EnterpriseProjectId string `json:"enterprise_project_id"`
+
+ // 备份ID。(指删除实例时产生备份信息中的备份ID)。
+ RecycleBackupId string `json:"recycle_backup_id"`
+
+ // 回收站备份状态。(Running:运行中;Active:有效的)。
+ RecycleStatus RecycleInstancesDetailResultRecycleStatus `json:"recycle_status"`
+
+ // 实例类型(basic:基础版;standard:标准版;enterprise:企业版)。
+ Mode RecycleInstancesDetailResultMode `json:"mode"`
+}
+
+func (o RecycleInstancesDetailResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecycleInstancesDetailResult struct{}"
+ }
+
+ return strings.Join([]string{"RecycleInstancesDetailResult", string(data)}, " ")
+}
+
+type RecycleInstancesDetailResultHaMode struct {
+ value string
+}
+
+type RecycleInstancesDetailResultHaModeEnum struct {
+ HA RecycleInstancesDetailResultHaMode
+ INDEPENDENT RecycleInstancesDetailResultHaMode
+}
+
+func GetRecycleInstancesDetailResultHaModeEnum() RecycleInstancesDetailResultHaModeEnum {
+ return RecycleInstancesDetailResultHaModeEnum{
+ HA: RecycleInstancesDetailResultHaMode{
+ value: "Ha",
+ },
+ INDEPENDENT: RecycleInstancesDetailResultHaMode{
+ value: "Independent",
+ },
+ }
+}
+
+func (c RecycleInstancesDetailResultHaMode) Value() string {
+ return c.value
+}
+
+func (c RecycleInstancesDetailResultHaMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleInstancesDetailResultHaMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type RecycleInstancesDetailResultPayModel struct {
+ value string
+}
+
+type RecycleInstancesDetailResultPayModelEnum struct {
+ E_0 RecycleInstancesDetailResultPayModel
+ E_1 RecycleInstancesDetailResultPayModel
+}
+
+func GetRecycleInstancesDetailResultPayModelEnum() RecycleInstancesDetailResultPayModelEnum {
+ return RecycleInstancesDetailResultPayModelEnum{
+ E_0: RecycleInstancesDetailResultPayModel{
+ value: "0",
+ },
+ E_1: RecycleInstancesDetailResultPayModel{
+ value: "1",
+ },
+ }
+}
+
+func (c RecycleInstancesDetailResultPayModel) Value() string {
+ return c.value
+}
+
+func (c RecycleInstancesDetailResultPayModel) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleInstancesDetailResultPayModel) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type RecycleInstancesDetailResultVolumeType struct {
+ value string
+}
+
+type RecycleInstancesDetailResultVolumeTypeEnum struct {
+ HIGH RecycleInstancesDetailResultVolumeType
+ ULTRAHIGH RecycleInstancesDetailResultVolumeType
+ ESSD RecycleInstancesDetailResultVolumeType
+}
+
+func GetRecycleInstancesDetailResultVolumeTypeEnum() RecycleInstancesDetailResultVolumeTypeEnum {
+ return RecycleInstancesDetailResultVolumeTypeEnum{
+ HIGH: RecycleInstancesDetailResultVolumeType{
+ value: "high",
+ },
+ ULTRAHIGH: RecycleInstancesDetailResultVolumeType{
+ value: "ultrahigh",
+ },
+ ESSD: RecycleInstancesDetailResultVolumeType{
+ value: "essd",
+ },
+ }
+}
+
+func (c RecycleInstancesDetailResultVolumeType) Value() string {
+ return c.value
+}
+
+func (c RecycleInstancesDetailResultVolumeType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleInstancesDetailResultVolumeType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type RecycleInstancesDetailResultRecycleStatus struct {
+ value string
+}
+
+type RecycleInstancesDetailResultRecycleStatusEnum struct {
+ RUNNING RecycleInstancesDetailResultRecycleStatus
+ ACTIVE RecycleInstancesDetailResultRecycleStatus
+}
+
+func GetRecycleInstancesDetailResultRecycleStatusEnum() RecycleInstancesDetailResultRecycleStatusEnum {
+ return RecycleInstancesDetailResultRecycleStatusEnum{
+ RUNNING: RecycleInstancesDetailResultRecycleStatus{
+ value: "Running",
+ },
+ ACTIVE: RecycleInstancesDetailResultRecycleStatus{
+ value: "Active",
+ },
+ }
+}
+
+func (c RecycleInstancesDetailResultRecycleStatus) Value() string {
+ return c.value
+}
+
+func (c RecycleInstancesDetailResultRecycleStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleInstancesDetailResultRecycleStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type RecycleInstancesDetailResultMode struct {
+ value string
+}
+
+type RecycleInstancesDetailResultModeEnum struct {
+ BASIC RecycleInstancesDetailResultMode
+ STANDARD RecycleInstancesDetailResultMode
+ ENTERPRISE RecycleInstancesDetailResultMode
+}
+
+func GetRecycleInstancesDetailResultModeEnum() RecycleInstancesDetailResultModeEnum {
+ return RecycleInstancesDetailResultModeEnum{
+ BASIC: RecycleInstancesDetailResultMode{
+ value: "basic",
+ },
+ STANDARD: RecycleInstancesDetailResultMode{
+ value: "standard",
+ },
+ ENTERPRISE: RecycleInstancesDetailResultMode{
+ value: "enterprise",
+ },
+ }
+}
+
+func (c RecycleInstancesDetailResultMode) Value() string {
+ return c.value
+}
+
+func (c RecycleInstancesDetailResultMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *RecycleInstancesDetailResultMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy.go
new file mode 100644
index 00000000..90830268
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecyclePolicy struct {
+
+ // 已删除实例保留天数,可设置范围为1~7天。 - 取值1~7,设置已删除实例的保留天数为该值。
+ RetentionPeriodInDays int32 `json:"retention_period_in_days"`
+}
+
+func (o RecyclePolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicy struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy_request_body.go
new file mode 100644
index 00000000..050b05a4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_recycle_policy_request_body.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type RecyclePolicyRequestBody struct {
+ RecyclePolicy *RecyclePolicy `json:"recycle_policy"`
+}
+
+func (o RecyclePolicyRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RecyclePolicyRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"RecyclePolicyRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_request.go
new file mode 100644
index 00000000..02b025bf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ResetConfigurationRequest struct {
+
+ // 需重置的参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ // 语言。
+ XLanguage *ResetConfigurationRequestXLanguage `json:"X-Language,omitempty"`
+}
+
+func (o ResetConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"ResetConfigurationRequest", string(data)}, " ")
+}
+
+type ResetConfigurationRequestXLanguage struct {
+ value string
+}
+
+type ResetConfigurationRequestXLanguageEnum struct {
+ ZH_CN ResetConfigurationRequestXLanguage
+ EN_US ResetConfigurationRequestXLanguage
+}
+
+func GetResetConfigurationRequestXLanguageEnum() ResetConfigurationRequestXLanguageEnum {
+ return ResetConfigurationRequestXLanguageEnum{
+ ZH_CN: ResetConfigurationRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ResetConfigurationRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ResetConfigurationRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ResetConfigurationRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ResetConfigurationRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_response.go
new file mode 100644
index 00000000..93c94a0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_reset_configuration_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ResetConfigurationResponse struct {
+ Body *string `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ResetConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResetConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"ResetConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_resource_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_resource_result.go
new file mode 100644
index 00000000..d87d7714
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_resource_result.go
@@ -0,0 +1,69 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type ResourceResult struct {
+
+ // 指定类型的配额。 - instance: 表示实例的配额
+ Type ResourceResultType `json:"type"`
+
+ // 已创建的资源个数
+ Used int32 `json:"used"`
+
+ // 资源最大的配额数
+ Quota int32 `json:"quota"`
+}
+
+func (o ResourceResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceResult struct{}"
+ }
+
+ return strings.Join([]string{"ResourceResult", string(data)}, " ")
+}
+
+type ResourceResultType struct {
+ value string
+}
+
+type ResourceResultTypeEnum struct {
+ INSTANCE ResourceResultType
+}
+
+func GetResourceResultTypeEnum() ResourceResultTypeEnum {
+ return ResourceResultTypeEnum{
+ INSTANCE: ResourceResultType{
+ value: "instance",
+ },
+ }
+}
+
+func (c ResourceResultType) Value() string {
+ return c.value
+}
+
+func (c ResourceResultType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ResourceResultType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_run_instance_action_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_run_instance_action_response.go
index 3ccf7136..4f297c91 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_run_instance_action_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_run_instance_action_response.go
@@ -9,8 +9,11 @@ import (
// Response Object
type RunInstanceActionResponse struct {
- // 任务id。
- JobId *string `json:"job_id,omitempty"`
+ // 任务id。按需实例时仅返回任务id。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 订单id。包周期实例时仅返回订单id。
+ OrderId *string `json:"order_id,omitempty"`
HttpStatusCode int `json:"-"`
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_backup_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_backup_policy_request.go
index 1ab37d20..d1fd7f98 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_backup_policy_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_backup_policy_request.go
@@ -3,14 +3,17 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Request Object
type SetBackupPolicyRequest struct {
- // 语言
- XLanguage *string `json:"X-Language,omitempty"`
+ // 语言。默认值:en-us。
+ XLanguage *SetBackupPolicyRequestXLanguage `json:"X-Language,omitempty"`
// 实例ID,严格匹配UUID规则。
InstanceId string `json:"instance_id"`
@@ -26,3 +29,45 @@ func (o SetBackupPolicyRequest) String() string {
return strings.Join([]string{"SetBackupPolicyRequest", string(data)}, " ")
}
+
+type SetBackupPolicyRequestXLanguage struct {
+ value string
+}
+
+type SetBackupPolicyRequestXLanguageEnum struct {
+ ZH_CN SetBackupPolicyRequestXLanguage
+ EN_US SetBackupPolicyRequestXLanguage
+}
+
+func GetSetBackupPolicyRequestXLanguageEnum() SetBackupPolicyRequestXLanguageEnum {
+ return SetBackupPolicyRequestXLanguageEnum{
+ ZH_CN: SetBackupPolicyRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: SetBackupPolicyRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c SetBackupPolicyRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c SetBackupPolicyRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *SetBackupPolicyRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_request.go
new file mode 100644
index 00000000..e1bfb89d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type SetRecyclePolicyRequest struct {
+ Body *RecyclePolicyRequestBody `json:"body,omitempty"`
+}
+
+func (o SetRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_response.go
new file mode 100644
index 00000000..5d588de8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_set_recycle_policy_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SetRecyclePolicyResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SetRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SetRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"SetRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy.go
index 376313e3..98a2faa5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy.go
@@ -18,8 +18,26 @@ type ShowBackupPolicy struct {
// 全量备份周期配置。自动备份将在每星期指定的天进行。 取值范围:格式为逗号隔开的数字,数字代表星期。
Period string `json:"period"`
- // 差量备份周期配置。自动差量备份将每隔周期分钟执行。
+ // 差量备份周期配置。自动差量备份将每隔周期分钟执行(废弃)。
DifferentialPriod *string `json:"differential_priod,omitempty"`
+
+ // 差量备份周期配置。自动差量备份将每隔周期分钟执行。
+ DifferentialPeriod string `json:"differential_period"`
+
+ // 备份时备份数据上传OBS的速度,单位为MB/s。范围为0~1024MB/s,默认75MB/s,0MB/s表示不限速。
+ RateLimit *int32 `json:"rate_limit,omitempty"`
+
+ // 控制差量备份时读取磁盘上表文件差量修改页面的预取页面个数,可设置范围为1~8192,默认64。
+ PrefetchBlock *int32 `json:"prefetch_block,omitempty"`
+
+ // 废弃。
+ FilesplitSize *int32 `json:"filesplit_size,omitempty"`
+
+ // 全量、差量备份时产生的备份文件会根据分片大小进行拆分,可设置范围为0~1024GB,设置需为4的倍数,默认4GB,0GB表示不限制大小。 取值范围:0 ~ 1024
+ FileSplitSize *int32 `json:"file_split_size,omitempty"`
+
+ // 是否启用备机备份。 取值范围:true|false
+ EnableStandbyBackup *bool `json:"enable_standby_backup,omitempty"`
}
func (o ShowBackupPolicy) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy_request.go
index 6989107c..58eb03d5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_backup_policy_request.go
@@ -3,14 +3,17 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Request Object
type ShowBackupPolicyRequest struct {
- // 语言
- XLanguage *string `json:"X-Language,omitempty"`
+ // 语言。默认值:en-us。
+ XLanguage *ShowBackupPolicyRequestXLanguage `json:"X-Language,omitempty"`
// 实例ID。
InstanceId string `json:"instance_id"`
@@ -24,3 +27,45 @@ func (o ShowBackupPolicyRequest) String() string {
return strings.Join([]string{"ShowBackupPolicyRequest", string(data)}, " ")
}
+
+type ShowBackupPolicyRequestXLanguage struct {
+ value string
+}
+
+type ShowBackupPolicyRequestXLanguageEnum struct {
+ ZH_CN ShowBackupPolicyRequestXLanguage
+ EN_US ShowBackupPolicyRequestXLanguage
+}
+
+func GetShowBackupPolicyRequestXLanguageEnum() ShowBackupPolicyRequestXLanguageEnum {
+ return ShowBackupPolicyRequestXLanguageEnum{
+ ZH_CN: ShowBackupPolicyRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ShowBackupPolicyRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ShowBackupPolicyRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ShowBackupPolicyRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowBackupPolicyRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_request.go
new file mode 100644
index 00000000..3b98ac1b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowBalanceStatusRequest struct {
+
+ // 语言
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowBalanceStatusRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowBalanceStatusRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowBalanceStatusRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_response.go
new file mode 100644
index 00000000..ec3871a8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_balance_status_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowBalanceStatusResponse struct {
+
+ // 平衡状态。
+ Balanced *bool `json:"balanced,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowBalanceStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowBalanceStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowBalanceStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_request.go
new file mode 100644
index 00000000..ab562550
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowConfigurationDetailRequest struct {
+
+ // 语言,默认:en-us。
+ XLanguage *ShowConfigurationDetailRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数模板ID
+ ConfigId string `json:"config_id"`
+}
+
+func (o ShowConfigurationDetailRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationDetailRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationDetailRequest", string(data)}, " ")
+}
+
+type ShowConfigurationDetailRequestXLanguage struct {
+ value string
+}
+
+type ShowConfigurationDetailRequestXLanguageEnum struct {
+ ZH_CN ShowConfigurationDetailRequestXLanguage
+ EN_US ShowConfigurationDetailRequestXLanguage
+}
+
+func GetShowConfigurationDetailRequestXLanguageEnum() ShowConfigurationDetailRequestXLanguageEnum {
+ return ShowConfigurationDetailRequestXLanguageEnum{
+ ZH_CN: ShowConfigurationDetailRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ShowConfigurationDetailRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ShowConfigurationDetailRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ShowConfigurationDetailRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowConfigurationDetailRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_response.go
new file mode 100644
index 00000000..bef0f43a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_configuration_detail_response.go
@@ -0,0 +1,90 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Response Object
+type ShowConfigurationDetailResponse struct {
+
+ // 参数模板ID。
+ Id *string `json:"id,omitempty"`
+
+ // 参数模板名称。
+ Name *string `json:"name,omitempty"`
+
+ // 参数模板描述。
+ Description *string `json:"description,omitempty"`
+
+ // 引擎版本。 [数据库版本。支持2.3版本,取值为“2.3”]。
+ EngineVersion *string `json:"engine_version,omitempty"`
+
+ // 实例部署形态。independent:独立;ha:主备。
+ InstanceMode *ShowConfigurationDetailResponseInstanceMode `json:"instance_mode,omitempty"`
+
+ // 创建时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 修改时间,格式为“yyyy-mm-ddThh:mm:ssZ”。 其中,T指某个时间的开始;Z指时区偏移量,例如北京时间偏移显示为+0800。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // 参数详情。
+ ConfigurationParameters *[]ParaGroupParameterResult `json:"configuration_parameters,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowConfigurationDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationDetailResponse", string(data)}, " ")
+}
+
+type ShowConfigurationDetailResponseInstanceMode struct {
+ value string
+}
+
+type ShowConfigurationDetailResponseInstanceModeEnum struct {
+ INDEPENDENT ShowConfigurationDetailResponseInstanceMode
+ HA ShowConfigurationDetailResponseInstanceMode
+}
+
+func GetShowConfigurationDetailResponseInstanceModeEnum() ShowConfigurationDetailResponseInstanceModeEnum {
+ return ShowConfigurationDetailResponseInstanceModeEnum{
+ INDEPENDENT: ShowConfigurationDetailResponseInstanceMode{
+ value: "independent",
+ },
+ HA: ShowConfigurationDetailResponseInstanceMode{
+ value: "ha",
+ },
+ }
+}
+
+func (c ShowConfigurationDetailResponseInstanceMode) Value() string {
+ return c.value
+}
+
+func (c ShowConfigurationDetailResponseInstanceMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowConfigurationDetailResponseInstanceMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_request.go
new file mode 100644
index 00000000..e800e089
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_request.go
@@ -0,0 +1,74 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowDeploymentFormRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 解决方案模板名称。
+ Solution *ShowDeploymentFormRequestSolution `json:"solution,omitempty"`
+
+ // 实例ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+}
+
+func (o ShowDeploymentFormRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDeploymentFormRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowDeploymentFormRequest", string(data)}, " ")
+}
+
+type ShowDeploymentFormRequestSolution struct {
+ value string
+}
+
+type ShowDeploymentFormRequestSolutionEnum struct {
+ TRISET ShowDeploymentFormRequestSolution
+ SINGLE ShowDeploymentFormRequestSolution
+}
+
+func GetShowDeploymentFormRequestSolutionEnum() ShowDeploymentFormRequestSolutionEnum {
+ return ShowDeploymentFormRequestSolutionEnum{
+ TRISET: ShowDeploymentFormRequestSolution{
+ value: "triset",
+ },
+ SINGLE: ShowDeploymentFormRequestSolution{
+ value: "single",
+ },
+ }
+}
+
+func (c ShowDeploymentFormRequestSolution) Value() string {
+ return c.value
+}
+
+func (c ShowDeploymentFormRequestSolution) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowDeploymentFormRequestSolution) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_response.go
new file mode 100644
index 00000000..1355ecab
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_deployment_form_response.go
@@ -0,0 +1,33 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowDeploymentFormResponse struct {
+
+ // 初始节点数。
+ InitialNodeNum *int32 `json:"initial_node_num,omitempty"`
+
+ // 解决方案模板名称。
+ Solution *string `json:"solution,omitempty"`
+
+ // 分片数。
+ ShardNum *int32 `json:"shard_num,omitempty"`
+
+ // 副本数。
+ ReplicaNum *int32 `json:"replica_num,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowDeploymentFormResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDeploymentFormResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowDeploymentFormResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_request.go
new file mode 100644
index 00000000..c0937b67
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowInstanceDiskRequest struct {
+
+ // 语言。
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowInstanceDiskRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceDiskRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceDiskRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_response.go
new file mode 100644
index 00000000..cefcd339
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_disk_response.go
@@ -0,0 +1,27 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowInstanceDiskResponse struct {
+
+ // 已使用量。表示当前实例已使用的存储空间大小。单位:GB
+ Used *string `json:"used,omitempty"`
+
+ // 总量。表示当前实例最大存储空间大小。单位:GB
+ Total *string `json:"total,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowInstanceDiskResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceDiskResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceDiskResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_request.go
new file mode 100644
index 00000000..ab974af6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowInstanceSnapshotRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ShowInstanceSnapshotRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 原实例ID。 (instance_id 、restore_time为一组)
+ InstanceId *string `json:"instance_id,omitempty"`
+
+ // UNIX时间戳格式,单位是毫秒,时区是UTC,某时间点实例的信息。 (instance_id 、restore_time为一组)
+ RestoreTime *string `json:"restore_time,omitempty"`
+
+ // 备份ID。 (backup_id为一组) 备份ID不为空时,可以不需要实例ID和时间戳。
+ BackupId *string `json:"backup_id,omitempty"`
+}
+
+func (o ShowInstanceSnapshotRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceSnapshotRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceSnapshotRequest", string(data)}, " ")
+}
+
+type ShowInstanceSnapshotRequestXLanguage struct {
+ value string
+}
+
+type ShowInstanceSnapshotRequestXLanguageEnum struct {
+ ZH_CN ShowInstanceSnapshotRequestXLanguage
+ EN_US ShowInstanceSnapshotRequestXLanguage
+}
+
+func GetShowInstanceSnapshotRequestXLanguageEnum() ShowInstanceSnapshotRequestXLanguageEnum {
+ return ShowInstanceSnapshotRequestXLanguageEnum{
+ ZH_CN: ShowInstanceSnapshotRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ShowInstanceSnapshotRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ShowInstanceSnapshotRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ShowInstanceSnapshotRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowInstanceSnapshotRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_response.go
new file mode 100644
index 00000000..bc571c89
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_instance_snapshot_response.go
@@ -0,0 +1,181 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Response Object
+type ShowInstanceSnapshotResponse struct {
+
+ // 实例部署形态。集中式Ha(主备)、分布式Independent(独立部署)。
+ ClusterMode *ShowInstanceSnapshotResponseClusterMode `json:"cluster_mode,omitempty"`
+
+ // 实例模型,企业版enterprise,标准版standard,基础版basic。
+ InstanceMode *ShowInstanceSnapshotResponseInstanceMode `json:"instance_mode,omitempty"`
+
+ // 磁盘大小,单位:GB。
+ DataVolumeSize *string `json:"data_volume_size,omitempty"`
+
+ // 解决方案模板类型。集中式Ha一般用triset,分布式Independent一般为空或者默认hws。 描述如下: triset:高可用(1主2备) hws:默认。
+ Solution *ShowInstanceSnapshotResponseSolution `json:"solution,omitempty"`
+
+ // 节点数量。
+ NodeNum *int32 `json:"node_num,omitempty"`
+
+ // 协调节点数量。
+ CoordinatorNum *int32 `json:"coordinator_num,omitempty"`
+
+ // 分片数量。
+ ShardingNum *int32 `json:"sharding_num,omitempty"`
+
+ // 副本数量。
+ ReplicaNum *int32 `json:"replica_num,omitempty"`
+
+ // 引擎版本。
+ EngineVersion *string `json:"engine_version,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowInstanceSnapshotResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowInstanceSnapshotResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowInstanceSnapshotResponse", string(data)}, " ")
+}
+
+type ShowInstanceSnapshotResponseClusterMode struct {
+ value string
+}
+
+type ShowInstanceSnapshotResponseClusterModeEnum struct {
+ HA ShowInstanceSnapshotResponseClusterMode
+ INDEPENDENT ShowInstanceSnapshotResponseClusterMode
+}
+
+func GetShowInstanceSnapshotResponseClusterModeEnum() ShowInstanceSnapshotResponseClusterModeEnum {
+ return ShowInstanceSnapshotResponseClusterModeEnum{
+ HA: ShowInstanceSnapshotResponseClusterMode{
+ value: "Ha",
+ },
+ INDEPENDENT: ShowInstanceSnapshotResponseClusterMode{
+ value: "Independent",
+ },
+ }
+}
+
+func (c ShowInstanceSnapshotResponseClusterMode) Value() string {
+ return c.value
+}
+
+func (c ShowInstanceSnapshotResponseClusterMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowInstanceSnapshotResponseClusterMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ShowInstanceSnapshotResponseInstanceMode struct {
+ value string
+}
+
+type ShowInstanceSnapshotResponseInstanceModeEnum struct {
+ BASIC ShowInstanceSnapshotResponseInstanceMode
+ STANDARD ShowInstanceSnapshotResponseInstanceMode
+ ENTERPRISE ShowInstanceSnapshotResponseInstanceMode
+}
+
+func GetShowInstanceSnapshotResponseInstanceModeEnum() ShowInstanceSnapshotResponseInstanceModeEnum {
+ return ShowInstanceSnapshotResponseInstanceModeEnum{
+ BASIC: ShowInstanceSnapshotResponseInstanceMode{
+ value: "basic",
+ },
+ STANDARD: ShowInstanceSnapshotResponseInstanceMode{
+ value: "standard",
+ },
+ ENTERPRISE: ShowInstanceSnapshotResponseInstanceMode{
+ value: "enterprise",
+ },
+ }
+}
+
+func (c ShowInstanceSnapshotResponseInstanceMode) Value() string {
+ return c.value
+}
+
+func (c ShowInstanceSnapshotResponseInstanceMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowInstanceSnapshotResponseInstanceMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type ShowInstanceSnapshotResponseSolution struct {
+ value string
+}
+
+type ShowInstanceSnapshotResponseSolutionEnum struct {
+ TRISET ShowInstanceSnapshotResponseSolution
+ HWS ShowInstanceSnapshotResponseSolution
+}
+
+func GetShowInstanceSnapshotResponseSolutionEnum() ShowInstanceSnapshotResponseSolutionEnum {
+ return ShowInstanceSnapshotResponseSolutionEnum{
+ TRISET: ShowInstanceSnapshotResponseSolution{
+ value: "triset",
+ },
+ HWS: ShowInstanceSnapshotResponseSolution{
+ value: "hws",
+ },
+ }
+}
+
+func (c ShowInstanceSnapshotResponseSolution) Value() string {
+ return c.value
+}
+
+func (c ShowInstanceSnapshotResponseSolution) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowInstanceSnapshotResponseSolution) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_request.go
new file mode 100644
index 00000000..fe0c9c28
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowJobDetailRequest struct {
+
+ // 任务ID。
+ Id string `json:"id"`
+}
+
+func (o ShowJobDetailRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowJobDetailRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowJobDetailRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_response.go
new file mode 100644
index 00000000..4db3c077
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_job_detail_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowJobDetailResponse struct {
+ Job *JobDetail `json:"job,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowJobDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowJobDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowJobDetailResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_request.go
new file mode 100644
index 00000000..bee89eeb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_request.go
@@ -0,0 +1,67 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowProjectQuotasRequest struct {
+
+ // 语言
+ XLanguage *string `json:"X-Language,omitempty"`
+
+ // '功能说明:根据type过滤查询指定类型的配额' 取值范围:instance
+ Type *ShowProjectQuotasRequestType `json:"type,omitempty"`
+}
+
+func (o ShowProjectQuotasRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowProjectQuotasRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowProjectQuotasRequest", string(data)}, " ")
+}
+
+type ShowProjectQuotasRequestType struct {
+ value string
+}
+
+type ShowProjectQuotasRequestTypeEnum struct {
+ INSTANCE ShowProjectQuotasRequestType
+}
+
+func GetShowProjectQuotasRequestTypeEnum() ShowProjectQuotasRequestTypeEnum {
+ return ShowProjectQuotasRequestTypeEnum{
+ INSTANCE: ShowProjectQuotasRequestType{
+ value: "instance",
+ },
+ }
+}
+
+func (c ShowProjectQuotasRequestType) Value() string {
+ return c.value
+}
+
+func (c ShowProjectQuotasRequestType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowProjectQuotasRequestType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_response.go
new file mode 100644
index 00000000..3006a644
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_project_quotas_response.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowProjectQuotasResponse struct {
+ Quotas *ProjectQuotasResult `json:"quotas,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowProjectQuotasResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowProjectQuotasResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowProjectQuotasResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_request.go
new file mode 100644
index 00000000..5f986601
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_request.go
@@ -0,0 +1,68 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowRecyclePolicyRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ShowRecyclePolicyRequestXLanguage `json:"X-Language,omitempty"`
+}
+
+func (o ShowRecyclePolicyRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyRequest", string(data)}, " ")
+}
+
+type ShowRecyclePolicyRequestXLanguage struct {
+ value string
+}
+
+type ShowRecyclePolicyRequestXLanguageEnum struct {
+ ZH_CN ShowRecyclePolicyRequestXLanguage
+ EN_US ShowRecyclePolicyRequestXLanguage
+}
+
+func GetShowRecyclePolicyRequestXLanguageEnum() ShowRecyclePolicyRequestXLanguageEnum {
+ return ShowRecyclePolicyRequestXLanguageEnum{
+ ZH_CN: ShowRecyclePolicyRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ShowRecyclePolicyRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ShowRecyclePolicyRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ShowRecyclePolicyRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowRecyclePolicyRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_response.go
new file mode 100644
index 00000000..dd3307e3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_recycle_policy_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRecyclePolicyResponse struct {
+
+ // 已删除实例保留天数,可设置范围为1~7天。 - 取值1~7,设置已删除实例的保留天数为该值。
+ RetentionPeriodInDays *string `json:"retention_period_in_days,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRecyclePolicyResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRecyclePolicyResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRecyclePolicyResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_request.go
new file mode 100644
index 00000000..c88c20f7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowSslCertDownloadLinkRequest struct {
+
+ // 语言。
+ XLanguage *ShowSslCertDownloadLinkRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowSslCertDownloadLinkRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSslCertDownloadLinkRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowSslCertDownloadLinkRequest", string(data)}, " ")
+}
+
+type ShowSslCertDownloadLinkRequestXLanguage struct {
+ value string
+}
+
+type ShowSslCertDownloadLinkRequestXLanguageEnum struct {
+ ZH_CN ShowSslCertDownloadLinkRequestXLanguage
+ EN_US ShowSslCertDownloadLinkRequestXLanguage
+}
+
+func GetShowSslCertDownloadLinkRequestXLanguageEnum() ShowSslCertDownloadLinkRequestXLanguageEnum {
+ return ShowSslCertDownloadLinkRequestXLanguageEnum{
+ ZH_CN: ShowSslCertDownloadLinkRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ShowSslCertDownloadLinkRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ShowSslCertDownloadLinkRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ShowSslCertDownloadLinkRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowSslCertDownloadLinkRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_response.go
new file mode 100644
index 00000000..7f76cbe7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_show_ssl_cert_download_link_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowSslCertDownloadLinkResponse struct {
+
+ // ssl下载链接。
+ DownloadLink *string `json:"download_link,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowSslCertDownloadLinkResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowSslCertDownloadLinkResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowSslCertDownloadLinkResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_request.go
new file mode 100644
index 00000000..da577c3d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_request.go
@@ -0,0 +1,73 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type SwitchConfigurationRequest struct {
+
+ // 语言。
+ XLanguage *SwitchConfigurationRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数模板ID。
+ ConfigId string `json:"config_id"`
+
+ Body *ApplyConfigurationRequestBody `json:"body,omitempty"`
+}
+
+func (o SwitchConfigurationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchConfigurationRequest struct{}"
+ }
+
+ return strings.Join([]string{"SwitchConfigurationRequest", string(data)}, " ")
+}
+
+type SwitchConfigurationRequestXLanguage struct {
+ value string
+}
+
+type SwitchConfigurationRequestXLanguageEnum struct {
+ ZH_CN SwitchConfigurationRequestXLanguage
+ EN_US SwitchConfigurationRequestXLanguage
+}
+
+func GetSwitchConfigurationRequestXLanguageEnum() SwitchConfigurationRequestXLanguageEnum {
+ return SwitchConfigurationRequestXLanguageEnum{
+ ZH_CN: SwitchConfigurationRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: SwitchConfigurationRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c SwitchConfigurationRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c SwitchConfigurationRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *SwitchConfigurationRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_response.go
new file mode 100644
index 00000000..d9d49881
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_switch_configuration_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type SwitchConfigurationResponse struct {
+
+ // 应用参数模板的异步任务ID。
+ JobId *string `json:"job_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o SwitchConfigurationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "SwitchConfigurationResponse struct{}"
+ }
+
+ return strings.Join([]string{"SwitchConfigurationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_option.go
new file mode 100644
index 00000000..0d52a2ba
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_option.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 所添加的标签具体内容,可批量添加标签,单个实例标签上限为20个。
+type TagsOption struct {
+
+ // 标签键。最大长度36个unicode字符,不能为null或者空字符串,不能为空格,校验和使用之前会自动过滤掉前后空格。
+ Key string `json:"key"`
+
+ // 标签值。最大长度43个unicode字符,可以为空字符串,不能为空格,校验和使用之前会自动过滤掉前后空格。
+ Value string `json:"value"`
+}
+
+func (o TagsOption) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TagsOption struct{}"
+ }
+
+ return strings.Join([]string{"TagsOption", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_result.go
new file mode 100644
index 00000000..244617a0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_tags_result.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TagsResult struct {
+
+ // 标签键。最大长度36个unicode字符,key不能为空。 字符集:0-9,A-Z,a-z,“_”,“-”,中文。
+ Key *string `json:"key,omitempty"`
+
+ // 标签值。最大长度43个unicode字符,可以为空字符串。 字符集:0-9,A-Z,a-z,“_”,“.”,“-”,中文。
+ Value *[]string `json:"value,omitempty"`
+}
+
+func (o TagsResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TagsResult struct{}"
+ }
+
+ return strings.Join([]string{"TagsResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_task_detail_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_task_detail_result.go
new file mode 100644
index 00000000..e203ebf9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_task_detail_result.go
@@ -0,0 +1,35 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TaskDetailResult struct {
+ InstanceInfo *InstanceInfoResult `json:"instance_info,omitempty"`
+
+ // 任务ID。
+ JobId *string `json:"job_id,omitempty"`
+
+ // 任务名称。
+ Name *string `json:"name,omitempty"`
+
+ // 任务状态。
+ Status *string `json:"status,omitempty"`
+
+ // 任务进度,单位:%。
+ Process *string `json:"process,omitempty"`
+
+ // 失败原因。
+ FailReason *string `json:"fail_reason,omitempty"`
+}
+
+func (o TaskDetailResult) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TaskDetailResult struct{}"
+ }
+
+ return strings.Join([]string{"TaskDetailResult", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_request.go
new file mode 100644
index 00000000..970ecbbb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_request.go
@@ -0,0 +1,71 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ValidateParaGroupNameRequest struct {
+
+ // 语言
+ XLanguage *ValidateParaGroupNameRequestXLanguage `json:"X-Language,omitempty"`
+
+ // 参数组名称。
+ Name string `json:"name"`
+}
+
+func (o ValidateParaGroupNameRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateParaGroupNameRequest struct{}"
+ }
+
+ return strings.Join([]string{"ValidateParaGroupNameRequest", string(data)}, " ")
+}
+
+type ValidateParaGroupNameRequestXLanguage struct {
+ value string
+}
+
+type ValidateParaGroupNameRequestXLanguageEnum struct {
+ ZH_CN ValidateParaGroupNameRequestXLanguage
+ EN_US ValidateParaGroupNameRequestXLanguage
+}
+
+func GetValidateParaGroupNameRequestXLanguageEnum() ValidateParaGroupNameRequestXLanguageEnum {
+ return ValidateParaGroupNameRequestXLanguageEnum{
+ ZH_CN: ValidateParaGroupNameRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ValidateParaGroupNameRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ValidateParaGroupNameRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ValidateParaGroupNameRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ValidateParaGroupNameRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_response.go
new file mode 100644
index 00000000..5fbde54e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_para_group_name_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ValidateParaGroupNameResponse struct {
+
+ // 校验结果。true为已存在,false为不存在。
+ Exist *bool `json:"exist,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ValidateParaGroupNameResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateParaGroupNameResponse struct{}"
+ }
+
+ return strings.Join([]string{"ValidateParaGroupNameResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_request.go
new file mode 100644
index 00000000..3708bf68
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_request.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ValidateWeakPasswordRequest struct {
+
+ // 语言。默认值:en-us。
+ XLanguage *ValidateWeakPasswordRequestXLanguage `json:"X-Language,omitempty"`
+
+ Body *WeakPasswordRequestBody `json:"body,omitempty"`
+}
+
+func (o ValidateWeakPasswordRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateWeakPasswordRequest struct{}"
+ }
+
+ return strings.Join([]string{"ValidateWeakPasswordRequest", string(data)}, " ")
+}
+
+type ValidateWeakPasswordRequestXLanguage struct {
+ value string
+}
+
+type ValidateWeakPasswordRequestXLanguageEnum struct {
+ ZH_CN ValidateWeakPasswordRequestXLanguage
+ EN_US ValidateWeakPasswordRequestXLanguage
+}
+
+func GetValidateWeakPasswordRequestXLanguageEnum() ValidateWeakPasswordRequestXLanguageEnum {
+ return ValidateWeakPasswordRequestXLanguageEnum{
+ ZH_CN: ValidateWeakPasswordRequestXLanguage{
+ value: "zh-cn",
+ },
+ EN_US: ValidateWeakPasswordRequestXLanguage{
+ value: "en-us",
+ },
+ }
+}
+
+func (c ValidateWeakPasswordRequestXLanguage) Value() string {
+ return c.value
+}
+
+func (c ValidateWeakPasswordRequestXLanguage) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ValidateWeakPasswordRequestXLanguage) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_response.go
new file mode 100644
index 00000000..a1490f97
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_validate_weak_password_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ValidateWeakPasswordResponse struct {
+
+ // 是否为弱密码。 - 返回\"true\",是弱密码。 - 返回\"false\",不是弱密码。
+ IsWeakPassword *bool `json:"is_weak_password,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ValidateWeakPasswordResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ValidateWeakPasswordResponse struct{}"
+ }
+
+ return strings.Join([]string{"ValidateWeakPasswordResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_weak_password_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_weak_password_request_body.go
new file mode 100644
index 00000000..45371579
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/gaussdbforopengauss/v3/model/model_weak_password_request_body.go
@@ -0,0 +1,22 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type WeakPasswordRequestBody struct {
+
+ // 数据库帐号密码。
+ Password string `json:"password"`
+}
+
+func (o WeakPasswordRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "WeakPasswordRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"WeakPasswordRequestBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_client.go
index 586c072f..0cb5a6bb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_client.go
@@ -15,7 +15,7 @@ func NewIamClient(hcClient *http_client.HcHttpClient) *IamClient {
}
func IamClientBuilder() *http_client.HcHttpClientBuilder {
- builder := http_client.NewHcHttpClientBuilder().WithCredentialsType("global.Credentials,basic.Credentials")
+ builder := http_client.NewHcHttpClientBuilder().WithCredentialsType("global.Credentials,basic.Credentials,v3.IamCredentials")
return builder
}
@@ -25,8 +25,7 @@ func IamClientBuilder() *http_client.HcHttpClientBuilder {
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) AssociateAgencyWithAllProjectsPermission(request *model.AssociateAgencyWithAllProjectsPermissionRequest) (*model.AssociateAgencyWithAllProjectsPermissionResponse, error) {
requestDef := GenReqDefForAssociateAgencyWithAllProjectsPermission()
@@ -49,8 +48,7 @@ func (c *IamClient) AssociateAgencyWithAllProjectsPermissionInvoker(request *mod
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) AssociateAgencyWithDomainPermission(request *model.AssociateAgencyWithDomainPermissionRequest) (*model.AssociateAgencyWithDomainPermissionResponse, error) {
requestDef := GenReqDefForAssociateAgencyWithDomainPermission()
@@ -73,8 +71,7 @@ func (c *IamClient) AssociateAgencyWithDomainPermissionInvoker(request *model.As
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) AssociateAgencyWithProjectPermission(request *model.AssociateAgencyWithProjectPermissionRequest) (*model.AssociateAgencyWithProjectPermissionResponse, error) {
requestDef := GenReqDefForAssociateAgencyWithProjectPermission()
@@ -97,8 +94,7 @@ func (c *IamClient) AssociateAgencyWithProjectPermissionInvoker(request *model.A
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) AssociateRoleToGroupOnEnterpriseProject(request *model.AssociateRoleToGroupOnEnterpriseProjectRequest) (*model.AssociateRoleToGroupOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForAssociateRoleToGroupOnEnterpriseProject()
@@ -120,8 +116,7 @@ func (c *IamClient) AssociateRoleToGroupOnEnterpriseProjectInvoker(request *mode
// 基于用户为企业项目授权。
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) AssociateRoleToUserOnEnterpriseProject(request *model.AssociateRoleToUserOnEnterpriseProjectRequest) (*model.AssociateRoleToUserOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForAssociateRoleToUserOnEnterpriseProject()
@@ -144,8 +139,7 @@ func (c *IamClient) AssociateRoleToUserOnEnterpriseProjectInvoker(request *model
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CheckAllProjectsPermissionForAgency(request *model.CheckAllProjectsPermissionForAgencyRequest) (*model.CheckAllProjectsPermissionForAgencyResponse, error) {
requestDef := GenReqDefForCheckAllProjectsPermissionForAgency()
@@ -168,8 +162,7 @@ func (c *IamClient) CheckAllProjectsPermissionForAgencyInvoker(request *model.Ch
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CheckDomainPermissionForAgency(request *model.CheckDomainPermissionForAgencyRequest) (*model.CheckDomainPermissionForAgencyResponse, error) {
requestDef := GenReqDefForCheckDomainPermissionForAgency()
@@ -192,8 +185,7 @@ func (c *IamClient) CheckDomainPermissionForAgencyInvoker(request *model.CheckDo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CheckProjectPermissionForAgency(request *model.CheckProjectPermissionForAgencyRequest) (*model.CheckProjectPermissionForAgencyResponse, error) {
requestDef := GenReqDefForCheckProjectPermissionForAgency()
@@ -216,8 +208,7 @@ func (c *IamClient) CheckProjectPermissionForAgencyInvoker(request *model.CheckP
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateAgency(request *model.CreateAgencyRequest) (*model.CreateAgencyResponse, error) {
requestDef := GenReqDefForCreateAgency()
@@ -240,8 +231,7 @@ func (c *IamClient) CreateAgencyInvoker(request *model.CreateAgencyRequest) *Cre
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateAgencyCustomPolicy(request *model.CreateAgencyCustomPolicyRequest) (*model.CreateAgencyCustomPolicyResponse, error) {
requestDef := GenReqDefForCreateAgencyCustomPolicy()
@@ -264,8 +254,7 @@ func (c *IamClient) CreateAgencyCustomPolicyInvoker(request *model.CreateAgencyC
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateCloudServiceCustomPolicy(request *model.CreateCloudServiceCustomPolicyRequest) (*model.CreateCloudServiceCustomPolicyResponse, error) {
requestDef := GenReqDefForCreateCloudServiceCustomPolicy()
@@ -290,8 +279,7 @@ func (c *IamClient) CreateCloudServiceCustomPolicyInvoker(request *model.CreateC
//
// > - logintoken的有效期为10分钟。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateLoginToken(request *model.CreateLoginTokenRequest) (*model.CreateLoginTokenResponse, error) {
requestDef := GenReqDefForCreateLoginToken()
@@ -316,8 +304,7 @@ func (c *IamClient) CreateLoginTokenInvoker(request *model.CreateLoginTokenReque
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateMetadata(request *model.CreateMetadataRequest) (*model.CreateMetadataResponse, error) {
requestDef := GenReqDefForCreateMetadata()
@@ -338,8 +325,7 @@ func (c *IamClient) CreateMetadataInvoker(request *model.CreateMetadataRequest)
//
// 创建OpenId Connect身份提供商配置
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateOpenIdConnectConfig(request *model.CreateOpenIdConnectConfigRequest) (*model.CreateOpenIdConnectConfigResponse, error) {
requestDef := GenReqDefForCreateOpenIdConnectConfig()
@@ -360,8 +346,7 @@ func (c *IamClient) CreateOpenIdConnectConfigInvoker(request *model.CreateOpenId
//
// 获取联邦认证token(OpenId Connect Id token方式)
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateTokenWithIdToken(request *model.CreateTokenWithIdTokenRequest) (*model.CreateTokenWithIdTokenResponse, error) {
requestDef := GenReqDefForCreateTokenWithIdToken()
@@ -382,8 +367,7 @@ func (c *IamClient) CreateTokenWithIdTokenInvoker(request *model.CreateTokenWith
//
// 获取联邦认证token(OpenId Connect Id token方式)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateUnscopedTokenWithIdToken(request *model.CreateUnscopedTokenWithIdTokenRequest) (*model.CreateUnscopedTokenWithIdTokenResponse, error) {
requestDef := GenReqDefForCreateUnscopedTokenWithIdToken()
@@ -406,8 +390,7 @@ func (c *IamClient) CreateUnscopedTokenWithIdTokenInvoker(request *model.CreateU
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeleteAgency(request *model.DeleteAgencyRequest) (*model.DeleteAgencyResponse, error) {
requestDef := GenReqDefForDeleteAgency()
@@ -430,8 +413,7 @@ func (c *IamClient) DeleteAgencyInvoker(request *model.DeleteAgencyRequest) *Del
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeleteCustomPolicy(request *model.DeleteCustomPolicyRequest) (*model.DeleteCustomPolicyResponse, error) {
requestDef := GenReqDefForDeleteCustomPolicy()
@@ -454,8 +436,7 @@ func (c *IamClient) DeleteCustomPolicyInvoker(request *model.DeleteCustomPolicyR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeleteDomainGroupInheritedRole(request *model.DeleteDomainGroupInheritedRoleRequest) (*model.DeleteDomainGroupInheritedRoleResponse, error) {
requestDef := GenReqDefForDeleteDomainGroupInheritedRole()
@@ -478,8 +459,7 @@ func (c *IamClient) DeleteDomainGroupInheritedRoleInvoker(request *model.DeleteD
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneAddUserToGroup(request *model.KeystoneAddUserToGroupRequest) (*model.KeystoneAddUserToGroupResponse, error) {
requestDef := GenReqDefForKeystoneAddUserToGroup()
@@ -502,8 +482,7 @@ func (c *IamClient) KeystoneAddUserToGroupInvoker(request *model.KeystoneAddUser
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneAssociateGroupWithDomainPermission(request *model.KeystoneAssociateGroupWithDomainPermissionRequest) (*model.KeystoneAssociateGroupWithDomainPermissionResponse, error) {
requestDef := GenReqDefForKeystoneAssociateGroupWithDomainPermission()
@@ -526,8 +505,7 @@ func (c *IamClient) KeystoneAssociateGroupWithDomainPermissionInvoker(request *m
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneAssociateGroupWithProjectPermission(request *model.KeystoneAssociateGroupWithProjectPermissionRequest) (*model.KeystoneAssociateGroupWithProjectPermissionResponse, error) {
requestDef := GenReqDefForKeystoneAssociateGroupWithProjectPermission()
@@ -550,8 +528,7 @@ func (c *IamClient) KeystoneAssociateGroupWithProjectPermissionInvoker(request *
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCheckDomainPermissionForGroup(request *model.KeystoneCheckDomainPermissionForGroupRequest) (*model.KeystoneCheckDomainPermissionForGroupResponse, error) {
requestDef := GenReqDefForKeystoneCheckDomainPermissionForGroup()
@@ -574,8 +551,7 @@ func (c *IamClient) KeystoneCheckDomainPermissionForGroupInvoker(request *model.
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCheckProjectPermissionForGroup(request *model.KeystoneCheckProjectPermissionForGroupRequest) (*model.KeystoneCheckProjectPermissionForGroupResponse, error) {
requestDef := GenReqDefForKeystoneCheckProjectPermissionForGroup()
@@ -598,8 +574,7 @@ func (c *IamClient) KeystoneCheckProjectPermissionForGroupInvoker(request *model
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCheckUserInGroup(request *model.KeystoneCheckUserInGroupRequest) (*model.KeystoneCheckUserInGroupResponse, error) {
requestDef := GenReqDefForKeystoneCheckUserInGroup()
@@ -622,8 +597,7 @@ func (c *IamClient) KeystoneCheckUserInGroupInvoker(request *model.KeystoneCheck
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCheckroleForGroup(request *model.KeystoneCheckroleForGroupRequest) (*model.KeystoneCheckroleForGroupResponse, error) {
requestDef := GenReqDefForKeystoneCheckroleForGroup()
@@ -646,8 +620,7 @@ func (c *IamClient) KeystoneCheckroleForGroupInvoker(request *model.KeystoneChec
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateGroup(request *model.KeystoneCreateGroupRequest) (*model.KeystoneCreateGroupResponse, error) {
requestDef := GenReqDefForKeystoneCreateGroup()
@@ -670,8 +643,7 @@ func (c *IamClient) KeystoneCreateGroupInvoker(request *model.KeystoneCreateGrou
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateIdentityProvider(request *model.KeystoneCreateIdentityProviderRequest) (*model.KeystoneCreateIdentityProviderResponse, error) {
requestDef := GenReqDefForKeystoneCreateIdentityProvider()
@@ -694,8 +666,7 @@ func (c *IamClient) KeystoneCreateIdentityProviderInvoker(request *model.Keyston
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateMapping(request *model.KeystoneCreateMappingRequest) (*model.KeystoneCreateMappingResponse, error) {
requestDef := GenReqDefForKeystoneCreateMapping()
@@ -718,8 +689,7 @@ func (c *IamClient) KeystoneCreateMappingInvoker(request *model.KeystoneCreateMa
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateProject(request *model.KeystoneCreateProjectRequest) (*model.KeystoneCreateProjectResponse, error) {
requestDef := GenReqDefForKeystoneCreateProject()
@@ -742,8 +712,7 @@ func (c *IamClient) KeystoneCreateProjectInvoker(request *model.KeystoneCreatePr
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateProtocol(request *model.KeystoneCreateProtocolRequest) (*model.KeystoneCreateProtocolResponse, error) {
requestDef := GenReqDefForKeystoneCreateProtocol()
@@ -766,8 +735,7 @@ func (c *IamClient) KeystoneCreateProtocolInvoker(request *model.KeystoneCreateP
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateScopedToken(request *model.KeystoneCreateScopedTokenRequest) (*model.KeystoneCreateScopedTokenResponse, error) {
requestDef := GenReqDefForKeystoneCreateScopedToken()
@@ -790,8 +758,7 @@ func (c *IamClient) KeystoneCreateScopedTokenInvoker(request *model.KeystoneCrea
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneDeleteGroup(request *model.KeystoneDeleteGroupRequest) (*model.KeystoneDeleteGroupResponse, error) {
requestDef := GenReqDefForKeystoneDeleteGroup()
@@ -814,8 +781,7 @@ func (c *IamClient) KeystoneDeleteGroupInvoker(request *model.KeystoneDeleteGrou
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneDeleteIdentityProvider(request *model.KeystoneDeleteIdentityProviderRequest) (*model.KeystoneDeleteIdentityProviderResponse, error) {
requestDef := GenReqDefForKeystoneDeleteIdentityProvider()
@@ -838,8 +804,7 @@ func (c *IamClient) KeystoneDeleteIdentityProviderInvoker(request *model.Keyston
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneDeleteMapping(request *model.KeystoneDeleteMappingRequest) (*model.KeystoneDeleteMappingResponse, error) {
requestDef := GenReqDefForKeystoneDeleteMapping()
@@ -862,8 +827,7 @@ func (c *IamClient) KeystoneDeleteMappingInvoker(request *model.KeystoneDeleteMa
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneDeleteProtocol(request *model.KeystoneDeleteProtocolRequest) (*model.KeystoneDeleteProtocolResponse, error) {
requestDef := GenReqDefForKeystoneDeleteProtocol()
@@ -884,8 +848,7 @@ func (c *IamClient) KeystoneDeleteProtocolInvoker(request *model.KeystoneDeleteP
//
// 该接口可以用于管理员查询用户组所有项目服务权限列表。 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListAllProjectPermissionsForGroup(request *model.KeystoneListAllProjectPermissionsForGroupRequest) (*model.KeystoneListAllProjectPermissionsForGroupResponse, error) {
requestDef := GenReqDefForKeystoneListAllProjectPermissionsForGroup()
@@ -908,8 +871,7 @@ func (c *IamClient) KeystoneListAllProjectPermissionsForGroupInvoker(request *mo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListAuthDomains(request *model.KeystoneListAuthDomainsRequest) (*model.KeystoneListAuthDomainsResponse, error) {
requestDef := GenReqDefForKeystoneListAuthDomains()
@@ -932,8 +894,7 @@ func (c *IamClient) KeystoneListAuthDomainsInvoker(request *model.KeystoneListAu
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListAuthProjects(request *model.KeystoneListAuthProjectsRequest) (*model.KeystoneListAuthProjectsResponse, error) {
requestDef := GenReqDefForKeystoneListAuthProjects()
@@ -956,8 +917,7 @@ func (c *IamClient) KeystoneListAuthProjectsInvoker(request *model.KeystoneListA
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListDomainPermissionsForGroup(request *model.KeystoneListDomainPermissionsForGroupRequest) (*model.KeystoneListDomainPermissionsForGroupResponse, error) {
requestDef := GenReqDefForKeystoneListDomainPermissionsForGroup()
@@ -980,8 +940,7 @@ func (c *IamClient) KeystoneListDomainPermissionsForGroupInvoker(request *model.
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListEndpoints(request *model.KeystoneListEndpointsRequest) (*model.KeystoneListEndpointsResponse, error) {
requestDef := GenReqDefForKeystoneListEndpoints()
@@ -1005,8 +964,7 @@ func (c *IamClient) KeystoneListEndpointsInvoker(request *model.KeystoneListEndp
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
// > - 推荐使用[查询IAM用户可以访问的账号详情](https://apiexplorer.developer.huaweicloud.com/apiexplorer/doc?product=IAM&api=KeystoneQueryAccessibleDomainDetailsToUser),该接口可以返回相同的响应格式。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListFederationDomains(request *model.KeystoneListFederationDomainsRequest) (*model.KeystoneListFederationDomainsResponse, error) {
requestDef := GenReqDefForKeystoneListFederationDomains()
@@ -1029,8 +987,7 @@ func (c *IamClient) KeystoneListFederationDomainsInvoker(request *model.Keystone
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListGroups(request *model.KeystoneListGroupsRequest) (*model.KeystoneListGroupsResponse, error) {
requestDef := GenReqDefForKeystoneListGroups()
@@ -1053,8 +1010,7 @@ func (c *IamClient) KeystoneListGroupsInvoker(request *model.KeystoneListGroupsR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListIdentityProviders(request *model.KeystoneListIdentityProvidersRequest) (*model.KeystoneListIdentityProvidersResponse, error) {
requestDef := GenReqDefForKeystoneListIdentityProviders()
@@ -1077,8 +1033,7 @@ func (c *IamClient) KeystoneListIdentityProvidersInvoker(request *model.Keystone
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListMappings(request *model.KeystoneListMappingsRequest) (*model.KeystoneListMappingsResponse, error) {
requestDef := GenReqDefForKeystoneListMappings()
@@ -1101,8 +1056,7 @@ func (c *IamClient) KeystoneListMappingsInvoker(request *model.KeystoneListMappi
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListPermissions(request *model.KeystoneListPermissionsRequest) (*model.KeystoneListPermissionsResponse, error) {
requestDef := GenReqDefForKeystoneListPermissions()
@@ -1125,8 +1079,7 @@ func (c *IamClient) KeystoneListPermissionsInvoker(request *model.KeystoneListPe
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListProjectPermissionsForGroup(request *model.KeystoneListProjectPermissionsForGroupRequest) (*model.KeystoneListProjectPermissionsForGroupResponse, error) {
requestDef := GenReqDefForKeystoneListProjectPermissionsForGroup()
@@ -1149,8 +1102,7 @@ func (c *IamClient) KeystoneListProjectPermissionsForGroupInvoker(request *model
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListProjects(request *model.KeystoneListProjectsRequest) (*model.KeystoneListProjectsResponse, error) {
requestDef := GenReqDefForKeystoneListProjects()
@@ -1173,8 +1125,7 @@ func (c *IamClient) KeystoneListProjectsInvoker(request *model.KeystoneListProje
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListProjectsForUser(request *model.KeystoneListProjectsForUserRequest) (*model.KeystoneListProjectsForUserResponse, error) {
requestDef := GenReqDefForKeystoneListProjectsForUser()
@@ -1197,8 +1148,7 @@ func (c *IamClient) KeystoneListProjectsForUserInvoker(request *model.KeystoneLi
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListProtocols(request *model.KeystoneListProtocolsRequest) (*model.KeystoneListProtocolsResponse, error) {
requestDef := GenReqDefForKeystoneListProtocols()
@@ -1221,8 +1171,7 @@ func (c *IamClient) KeystoneListProtocolsInvoker(request *model.KeystoneListProt
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListRegions(request *model.KeystoneListRegionsRequest) (*model.KeystoneListRegionsResponse, error) {
requestDef := GenReqDefForKeystoneListRegions()
@@ -1245,8 +1194,7 @@ func (c *IamClient) KeystoneListRegionsInvoker(request *model.KeystoneListRegion
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListServices(request *model.KeystoneListServicesRequest) (*model.KeystoneListServicesResponse, error) {
requestDef := GenReqDefForKeystoneListServices()
@@ -1269,8 +1217,7 @@ func (c *IamClient) KeystoneListServicesInvoker(request *model.KeystoneListServi
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListUsersForGroupByAdmin(request *model.KeystoneListUsersForGroupByAdminRequest) (*model.KeystoneListUsersForGroupByAdminResponse, error) {
requestDef := GenReqDefForKeystoneListUsersForGroupByAdmin()
@@ -1293,8 +1240,7 @@ func (c *IamClient) KeystoneListUsersForGroupByAdminInvoker(request *model.Keyst
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListVersions(request *model.KeystoneListVersionsRequest) (*model.KeystoneListVersionsResponse, error) {
requestDef := GenReqDefForKeystoneListVersions()
@@ -1317,8 +1263,7 @@ func (c *IamClient) KeystoneListVersionsInvoker(request *model.KeystoneListVersi
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneRemoveDomainPermissionFromGroup(request *model.KeystoneRemoveDomainPermissionFromGroupRequest) (*model.KeystoneRemoveDomainPermissionFromGroupResponse, error) {
requestDef := GenReqDefForKeystoneRemoveDomainPermissionFromGroup()
@@ -1341,8 +1286,7 @@ func (c *IamClient) KeystoneRemoveDomainPermissionFromGroupInvoker(request *mode
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneRemoveProjectPermissionFromGroup(request *model.KeystoneRemoveProjectPermissionFromGroupRequest) (*model.KeystoneRemoveProjectPermissionFromGroupResponse, error) {
requestDef := GenReqDefForKeystoneRemoveProjectPermissionFromGroup()
@@ -1365,8 +1309,7 @@ func (c *IamClient) KeystoneRemoveProjectPermissionFromGroupInvoker(request *mod
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneRemoveUserFromGroup(request *model.KeystoneRemoveUserFromGroupRequest) (*model.KeystoneRemoveUserFromGroupResponse, error) {
requestDef := GenReqDefForKeystoneRemoveUserFromGroup()
@@ -1389,8 +1332,7 @@ func (c *IamClient) KeystoneRemoveUserFromGroupInvoker(request *model.KeystoneRe
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowCatalog(request *model.KeystoneShowCatalogRequest) (*model.KeystoneShowCatalogResponse, error) {
requestDef := GenReqDefForKeystoneShowCatalog()
@@ -1413,8 +1355,7 @@ func (c *IamClient) KeystoneShowCatalogInvoker(request *model.KeystoneShowCatalo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowEndpoint(request *model.KeystoneShowEndpointRequest) (*model.KeystoneShowEndpointResponse, error) {
requestDef := GenReqDefForKeystoneShowEndpoint()
@@ -1437,8 +1378,7 @@ func (c *IamClient) KeystoneShowEndpointInvoker(request *model.KeystoneShowEndpo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowGroup(request *model.KeystoneShowGroupRequest) (*model.KeystoneShowGroupResponse, error) {
requestDef := GenReqDefForKeystoneShowGroup()
@@ -1461,8 +1401,7 @@ func (c *IamClient) KeystoneShowGroupInvoker(request *model.KeystoneShowGroupReq
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowIdentityProvider(request *model.KeystoneShowIdentityProviderRequest) (*model.KeystoneShowIdentityProviderResponse, error) {
requestDef := GenReqDefForKeystoneShowIdentityProvider()
@@ -1485,8 +1424,7 @@ func (c *IamClient) KeystoneShowIdentityProviderInvoker(request *model.KeystoneS
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowMapping(request *model.KeystoneShowMappingRequest) (*model.KeystoneShowMappingResponse, error) {
requestDef := GenReqDefForKeystoneShowMapping()
@@ -1509,8 +1447,7 @@ func (c *IamClient) KeystoneShowMappingInvoker(request *model.KeystoneShowMappin
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowPermission(request *model.KeystoneShowPermissionRequest) (*model.KeystoneShowPermissionResponse, error) {
requestDef := GenReqDefForKeystoneShowPermission()
@@ -1533,8 +1470,7 @@ func (c *IamClient) KeystoneShowPermissionInvoker(request *model.KeystoneShowPer
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowProject(request *model.KeystoneShowProjectRequest) (*model.KeystoneShowProjectResponse, error) {
requestDef := GenReqDefForKeystoneShowProject()
@@ -1557,8 +1493,7 @@ func (c *IamClient) KeystoneShowProjectInvoker(request *model.KeystoneShowProjec
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowProtocol(request *model.KeystoneShowProtocolRequest) (*model.KeystoneShowProtocolResponse, error) {
requestDef := GenReqDefForKeystoneShowProtocol()
@@ -1581,8 +1516,7 @@ func (c *IamClient) KeystoneShowProtocolInvoker(request *model.KeystoneShowProto
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowRegion(request *model.KeystoneShowRegionRequest) (*model.KeystoneShowRegionResponse, error) {
requestDef := GenReqDefForKeystoneShowRegion()
@@ -1605,8 +1539,7 @@ func (c *IamClient) KeystoneShowRegionInvoker(request *model.KeystoneShowRegionR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowSecurityCompliance(request *model.KeystoneShowSecurityComplianceRequest) (*model.KeystoneShowSecurityComplianceResponse, error) {
requestDef := GenReqDefForKeystoneShowSecurityCompliance()
@@ -1629,8 +1562,7 @@ func (c *IamClient) KeystoneShowSecurityComplianceInvoker(request *model.Keyston
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowSecurityComplianceByOption(request *model.KeystoneShowSecurityComplianceByOptionRequest) (*model.KeystoneShowSecurityComplianceByOptionResponse, error) {
requestDef := GenReqDefForKeystoneShowSecurityComplianceByOption()
@@ -1653,8 +1585,7 @@ func (c *IamClient) KeystoneShowSecurityComplianceByOptionInvoker(request *model
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowService(request *model.KeystoneShowServiceRequest) (*model.KeystoneShowServiceResponse, error) {
requestDef := GenReqDefForKeystoneShowService()
@@ -1677,8 +1608,7 @@ func (c *IamClient) KeystoneShowServiceInvoker(request *model.KeystoneShowServic
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowVersion(request *model.KeystoneShowVersionRequest) (*model.KeystoneShowVersionResponse, error) {
requestDef := GenReqDefForKeystoneShowVersion()
@@ -1701,8 +1631,7 @@ func (c *IamClient) KeystoneShowVersionInvoker(request *model.KeystoneShowVersio
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateGroup(request *model.KeystoneUpdateGroupRequest) (*model.KeystoneUpdateGroupResponse, error) {
requestDef := GenReqDefForKeystoneUpdateGroup()
@@ -1725,8 +1654,7 @@ func (c *IamClient) KeystoneUpdateGroupInvoker(request *model.KeystoneUpdateGrou
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateIdentityProvider(request *model.KeystoneUpdateIdentityProviderRequest) (*model.KeystoneUpdateIdentityProviderResponse, error) {
requestDef := GenReqDefForKeystoneUpdateIdentityProvider()
@@ -1749,8 +1677,7 @@ func (c *IamClient) KeystoneUpdateIdentityProviderInvoker(request *model.Keyston
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateMapping(request *model.KeystoneUpdateMappingRequest) (*model.KeystoneUpdateMappingResponse, error) {
requestDef := GenReqDefForKeystoneUpdateMapping()
@@ -1773,8 +1700,7 @@ func (c *IamClient) KeystoneUpdateMappingInvoker(request *model.KeystoneUpdateMa
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateProject(request *model.KeystoneUpdateProjectRequest) (*model.KeystoneUpdateProjectResponse, error) {
requestDef := GenReqDefForKeystoneUpdateProject()
@@ -1797,8 +1723,7 @@ func (c *IamClient) KeystoneUpdateProjectInvoker(request *model.KeystoneUpdatePr
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateProtocol(request *model.KeystoneUpdateProtocolRequest) (*model.KeystoneUpdateProtocolResponse, error) {
requestDef := GenReqDefForKeystoneUpdateProtocol()
@@ -1821,8 +1746,7 @@ func (c *IamClient) KeystoneUpdateProtocolInvoker(request *model.KeystoneUpdateP
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListAgencies(request *model.ListAgenciesRequest) (*model.ListAgenciesResponse, error) {
requestDef := GenReqDefForListAgencies()
@@ -1845,8 +1769,7 @@ func (c *IamClient) ListAgenciesInvoker(request *model.ListAgenciesRequest) *Lis
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListAllProjectsPermissionsForAgency(request *model.ListAllProjectsPermissionsForAgencyRequest) (*model.ListAllProjectsPermissionsForAgencyResponse, error) {
requestDef := GenReqDefForListAllProjectsPermissionsForAgency()
@@ -1869,8 +1792,7 @@ func (c *IamClient) ListAllProjectsPermissionsForAgencyInvoker(request *model.Li
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListCustomPolicies(request *model.ListCustomPoliciesRequest) (*model.ListCustomPoliciesResponse, error) {
requestDef := GenReqDefForListCustomPolicies()
@@ -1893,8 +1815,7 @@ func (c *IamClient) ListCustomPoliciesInvoker(request *model.ListCustomPoliciesR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListDomainPermissionsForAgency(request *model.ListDomainPermissionsForAgencyRequest) (*model.ListDomainPermissionsForAgencyResponse, error) {
requestDef := GenReqDefForListDomainPermissionsForAgency()
@@ -1917,8 +1838,7 @@ func (c *IamClient) ListDomainPermissionsForAgencyInvoker(request *model.ListDom
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListEnterpriseProjectsForGroup(request *model.ListEnterpriseProjectsForGroupRequest) (*model.ListEnterpriseProjectsForGroupResponse, error) {
requestDef := GenReqDefForListEnterpriseProjectsForGroup()
@@ -1941,8 +1861,7 @@ func (c *IamClient) ListEnterpriseProjectsForGroupInvoker(request *model.ListEnt
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListEnterpriseProjectsForUser(request *model.ListEnterpriseProjectsForUserRequest) (*model.ListEnterpriseProjectsForUserResponse, error) {
requestDef := GenReqDefForListEnterpriseProjectsForUser()
@@ -1965,8 +1884,7 @@ func (c *IamClient) ListEnterpriseProjectsForUserInvoker(request *model.ListEnte
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListGroupsForEnterpriseProject(request *model.ListGroupsForEnterpriseProjectRequest) (*model.ListGroupsForEnterpriseProjectResponse, error) {
requestDef := GenReqDefForListGroupsForEnterpriseProject()
@@ -1989,8 +1907,7 @@ func (c *IamClient) ListGroupsForEnterpriseProjectInvoker(request *model.ListGro
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListProjectPermissionsForAgency(request *model.ListProjectPermissionsForAgencyRequest) (*model.ListProjectPermissionsForAgencyResponse, error) {
requestDef := GenReqDefForListProjectPermissionsForAgency()
@@ -2013,8 +1930,7 @@ func (c *IamClient) ListProjectPermissionsForAgencyInvoker(request *model.ListPr
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListRolesForGroupOnEnterpriseProject(request *model.ListRolesForGroupOnEnterpriseProjectRequest) (*model.ListRolesForGroupOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForListRolesForGroupOnEnterpriseProject()
@@ -2036,8 +1952,7 @@ func (c *IamClient) ListRolesForGroupOnEnterpriseProjectInvoker(request *model.L
// 该接口可用于查询企业项目直接关联用户的权限。
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListRolesForUserOnEnterpriseProject(request *model.ListRolesForUserOnEnterpriseProjectRequest) (*model.ListRolesForUserOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForListRolesForUserOnEnterpriseProject()
@@ -2059,8 +1974,7 @@ func (c *IamClient) ListRolesForUserOnEnterpriseProjectInvoker(request *model.Li
// 该接口可用于查询企业项目直接关联的用户。
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListUsersForEnterpriseProject(request *model.ListUsersForEnterpriseProjectRequest) (*model.ListUsersForEnterpriseProjectResponse, error) {
requestDef := GenReqDefForListUsersForEnterpriseProject()
@@ -2083,8 +1997,7 @@ func (c *IamClient) ListUsersForEnterpriseProjectInvoker(request *model.ListUser
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) RemoveAllProjectsPermissionFromAgency(request *model.RemoveAllProjectsPermissionFromAgencyRequest) (*model.RemoveAllProjectsPermissionFromAgencyResponse, error) {
requestDef := GenReqDefForRemoveAllProjectsPermissionFromAgency()
@@ -2107,8 +2020,7 @@ func (c *IamClient) RemoveAllProjectsPermissionFromAgencyInvoker(request *model.
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) RemoveDomainPermissionFromAgency(request *model.RemoveDomainPermissionFromAgencyRequest) (*model.RemoveDomainPermissionFromAgencyResponse, error) {
requestDef := GenReqDefForRemoveDomainPermissionFromAgency()
@@ -2131,8 +2043,7 @@ func (c *IamClient) RemoveDomainPermissionFromAgencyInvoker(request *model.Remov
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) RemoveProjectPermissionFromAgency(request *model.RemoveProjectPermissionFromAgencyRequest) (*model.RemoveProjectPermissionFromAgencyResponse, error) {
requestDef := GenReqDefForRemoveProjectPermissionFromAgency()
@@ -2155,8 +2066,7 @@ func (c *IamClient) RemoveProjectPermissionFromAgencyInvoker(request *model.Remo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) RevokeRoleFromGroupOnEnterpriseProject(request *model.RevokeRoleFromGroupOnEnterpriseProjectRequest) (*model.RevokeRoleFromGroupOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForRevokeRoleFromGroupOnEnterpriseProject()
@@ -2178,8 +2088,7 @@ func (c *IamClient) RevokeRoleFromGroupOnEnterpriseProjectInvoker(request *model
// 删除企业项目直接关联用户的权限。
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) RevokeRoleFromUserOnEnterpriseProject(request *model.RevokeRoleFromUserOnEnterpriseProjectRequest) (*model.RevokeRoleFromUserOnEnterpriseProjectResponse, error) {
requestDef := GenReqDefForRevokeRoleFromUserOnEnterpriseProject()
@@ -2202,8 +2111,7 @@ func (c *IamClient) RevokeRoleFromUserOnEnterpriseProjectInvoker(request *model.
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowAgency(request *model.ShowAgencyRequest) (*model.ShowAgencyResponse, error) {
requestDef := GenReqDefForShowAgency()
@@ -2226,8 +2134,7 @@ func (c *IamClient) ShowAgencyInvoker(request *model.ShowAgencyRequest) *ShowAge
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowCustomPolicy(request *model.ShowCustomPolicyRequest) (*model.ShowCustomPolicyResponse, error) {
requestDef := GenReqDefForShowCustomPolicy()
@@ -2250,8 +2157,7 @@ func (c *IamClient) ShowCustomPolicyInvoker(request *model.ShowCustomPolicyReque
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainApiAclPolicy(request *model.ShowDomainApiAclPolicyRequest) (*model.ShowDomainApiAclPolicyResponse, error) {
requestDef := GenReqDefForShowDomainApiAclPolicy()
@@ -2274,8 +2180,7 @@ func (c *IamClient) ShowDomainApiAclPolicyInvoker(request *model.ShowDomainApiAc
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainConsoleAclPolicy(request *model.ShowDomainConsoleAclPolicyRequest) (*model.ShowDomainConsoleAclPolicyResponse, error) {
requestDef := GenReqDefForShowDomainConsoleAclPolicy()
@@ -2298,8 +2203,7 @@ func (c *IamClient) ShowDomainConsoleAclPolicyInvoker(request *model.ShowDomainC
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainLoginPolicy(request *model.ShowDomainLoginPolicyRequest) (*model.ShowDomainLoginPolicyResponse, error) {
requestDef := GenReqDefForShowDomainLoginPolicy()
@@ -2322,8 +2226,7 @@ func (c *IamClient) ShowDomainLoginPolicyInvoker(request *model.ShowDomainLoginP
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainPasswordPolicy(request *model.ShowDomainPasswordPolicyRequest) (*model.ShowDomainPasswordPolicyResponse, error) {
requestDef := GenReqDefForShowDomainPasswordPolicy()
@@ -2346,8 +2249,7 @@ func (c *IamClient) ShowDomainPasswordPolicyInvoker(request *model.ShowDomainPas
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainProtectPolicy(request *model.ShowDomainProtectPolicyRequest) (*model.ShowDomainProtectPolicyResponse, error) {
requestDef := GenReqDefForShowDomainProtectPolicy()
@@ -2370,8 +2272,7 @@ func (c *IamClient) ShowDomainProtectPolicyInvoker(request *model.ShowDomainProt
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainQuota(request *model.ShowDomainQuotaRequest) (*model.ShowDomainQuotaResponse, error) {
requestDef := GenReqDefForShowDomainQuota()
@@ -2393,8 +2294,7 @@ func (c *IamClient) ShowDomainQuotaInvoker(request *model.ShowDomainQuotaRequest
// 该接口用于查询指定账号中的授权记录。
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowDomainRoleAssignments(request *model.ShowDomainRoleAssignmentsRequest) (*model.ShowDomainRoleAssignmentsResponse, error) {
requestDef := GenReqDefForShowDomainRoleAssignments()
@@ -2417,8 +2317,7 @@ func (c *IamClient) ShowDomainRoleAssignmentsInvoker(request *model.ShowDomainRo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowMetadata(request *model.ShowMetadataRequest) (*model.ShowMetadataResponse, error) {
requestDef := GenReqDefForShowMetadata()
@@ -2439,8 +2338,7 @@ func (c *IamClient) ShowMetadataInvoker(request *model.ShowMetadataRequest) *Sho
//
// 查询OpenId Connect身份提供商配置
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowOpenIdConnectConfig(request *model.ShowOpenIdConnectConfigRequest) (*model.ShowOpenIdConnectConfigResponse, error) {
requestDef := GenReqDefForShowOpenIdConnectConfig()
@@ -2463,8 +2361,7 @@ func (c *IamClient) ShowOpenIdConnectConfigInvoker(request *model.ShowOpenIdConn
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowProjectDetailsAndStatus(request *model.ShowProjectDetailsAndStatusRequest) (*model.ShowProjectDetailsAndStatusResponse, error) {
requestDef := GenReqDefForShowProjectDetailsAndStatus()
@@ -2487,8 +2384,7 @@ func (c *IamClient) ShowProjectDetailsAndStatusInvoker(request *model.ShowProjec
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowProjectQuota(request *model.ShowProjectQuotaRequest) (*model.ShowProjectQuotaResponse, error) {
requestDef := GenReqDefForShowProjectQuota()
@@ -2511,8 +2407,7 @@ func (c *IamClient) ShowProjectQuotaInvoker(request *model.ShowProjectQuotaReque
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateAgency(request *model.UpdateAgencyRequest) (*model.UpdateAgencyResponse, error) {
requestDef := GenReqDefForUpdateAgency()
@@ -2535,8 +2430,7 @@ func (c *IamClient) UpdateAgencyInvoker(request *model.UpdateAgencyRequest) *Upd
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateAgencyCustomPolicy(request *model.UpdateAgencyCustomPolicyRequest) (*model.UpdateAgencyCustomPolicyResponse, error) {
requestDef := GenReqDefForUpdateAgencyCustomPolicy()
@@ -2559,8 +2453,7 @@ func (c *IamClient) UpdateAgencyCustomPolicyInvoker(request *model.UpdateAgencyC
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateCloudServiceCustomPolicy(request *model.UpdateCloudServiceCustomPolicyRequest) (*model.UpdateCloudServiceCustomPolicyResponse, error) {
requestDef := GenReqDefForUpdateCloudServiceCustomPolicy()
@@ -2583,8 +2476,7 @@ func (c *IamClient) UpdateCloudServiceCustomPolicyInvoker(request *model.UpdateC
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainApiAclPolicy(request *model.UpdateDomainApiAclPolicyRequest) (*model.UpdateDomainApiAclPolicyResponse, error) {
requestDef := GenReqDefForUpdateDomainApiAclPolicy()
@@ -2607,8 +2499,7 @@ func (c *IamClient) UpdateDomainApiAclPolicyInvoker(request *model.UpdateDomainA
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainConsoleAclPolicy(request *model.UpdateDomainConsoleAclPolicyRequest) (*model.UpdateDomainConsoleAclPolicyResponse, error) {
requestDef := GenReqDefForUpdateDomainConsoleAclPolicy()
@@ -2627,12 +2518,11 @@ func (c *IamClient) UpdateDomainConsoleAclPolicyInvoker(request *model.UpdateDom
// UpdateDomainGroupInheritRole 为用户组授予所有项目服务权限
//
-// 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/zh-cn_topic_0079496985.html)为用户组授予所有项目服务权限。
+// 该接口可以用于[管理员](https://support.huaweicloud.com/usermanual-iam/iam_01_0001.html)为用户组授予所有项目服务权限。
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainGroupInheritRole(request *model.UpdateDomainGroupInheritRoleRequest) (*model.UpdateDomainGroupInheritRoleResponse, error) {
requestDef := GenReqDefForUpdateDomainGroupInheritRole()
@@ -2655,8 +2545,7 @@ func (c *IamClient) UpdateDomainGroupInheritRoleInvoker(request *model.UpdateDom
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainLoginPolicy(request *model.UpdateDomainLoginPolicyRequest) (*model.UpdateDomainLoginPolicyResponse, error) {
requestDef := GenReqDefForUpdateDomainLoginPolicy()
@@ -2679,8 +2568,7 @@ func (c *IamClient) UpdateDomainLoginPolicyInvoker(request *model.UpdateDomainLo
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainPasswordPolicy(request *model.UpdateDomainPasswordPolicyRequest) (*model.UpdateDomainPasswordPolicyResponse, error) {
requestDef := GenReqDefForUpdateDomainPasswordPolicy()
@@ -2703,8 +2591,7 @@ func (c *IamClient) UpdateDomainPasswordPolicyInvoker(request *model.UpdateDomai
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateDomainProtectPolicy(request *model.UpdateDomainProtectPolicyRequest) (*model.UpdateDomainProtectPolicyResponse, error) {
requestDef := GenReqDefForUpdateDomainProtectPolicy()
@@ -2725,8 +2612,7 @@ func (c *IamClient) UpdateDomainProtectPolicyInvoker(request *model.UpdateDomain
//
// 修改OpenId Connect身份提供商配置
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateOpenIdConnectConfig(request *model.UpdateOpenIdConnectConfigRequest) (*model.UpdateOpenIdConnectConfigResponse, error) {
requestDef := GenReqDefForUpdateOpenIdConnectConfig()
@@ -2749,8 +2635,7 @@ func (c *IamClient) UpdateOpenIdConnectConfigInvoker(request *model.UpdateOpenId
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateProjectStatus(request *model.UpdateProjectStatusRequest) (*model.UpdateProjectStatusResponse, error) {
requestDef := GenReqDefForUpdateProjectStatus()
@@ -2775,8 +2660,7 @@ func (c *IamClient) UpdateProjectStatusInvoker(request *model.UpdateProjectStatu
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreatePermanentAccessKey(request *model.CreatePermanentAccessKeyRequest) (*model.CreatePermanentAccessKeyResponse, error) {
requestDef := GenReqDefForCreatePermanentAccessKey()
@@ -2801,8 +2685,7 @@ func (c *IamClient) CreatePermanentAccessKeyInvoker(request *model.CreatePermane
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateTemporaryAccessKeyByAgency(request *model.CreateTemporaryAccessKeyByAgencyRequest) (*model.CreateTemporaryAccessKeyByAgencyResponse, error) {
requestDef := GenReqDefForCreateTemporaryAccessKeyByAgency()
@@ -2827,8 +2710,7 @@ func (c *IamClient) CreateTemporaryAccessKeyByAgencyInvoker(request *model.Creat
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateTemporaryAccessKeyByToken(request *model.CreateTemporaryAccessKeyByTokenRequest) (*model.CreateTemporaryAccessKeyByTokenResponse, error) {
requestDef := GenReqDefForCreateTemporaryAccessKeyByToken()
@@ -2851,8 +2733,7 @@ func (c *IamClient) CreateTemporaryAccessKeyByTokenInvoker(request *model.Create
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeletePermanentAccessKey(request *model.DeletePermanentAccessKeyRequest) (*model.DeletePermanentAccessKeyResponse, error) {
requestDef := GenReqDefForDeletePermanentAccessKey()
@@ -2875,8 +2756,7 @@ func (c *IamClient) DeletePermanentAccessKeyInvoker(request *model.DeletePermane
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListPermanentAccessKeys(request *model.ListPermanentAccessKeysRequest) (*model.ListPermanentAccessKeysResponse, error) {
requestDef := GenReqDefForListPermanentAccessKeys()
@@ -2899,8 +2779,7 @@ func (c *IamClient) ListPermanentAccessKeysInvoker(request *model.ListPermanentA
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowPermanentAccessKey(request *model.ShowPermanentAccessKeyRequest) (*model.ShowPermanentAccessKeyResponse, error) {
requestDef := GenReqDefForShowPermanentAccessKey()
@@ -2923,8 +2802,7 @@ func (c *IamClient) ShowPermanentAccessKeyInvoker(request *model.ShowPermanentAc
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdatePermanentAccessKey(request *model.UpdatePermanentAccessKeyRequest) (*model.UpdatePermanentAccessKeyResponse, error) {
requestDef := GenReqDefForUpdatePermanentAccessKey()
@@ -2947,8 +2825,7 @@ func (c *IamClient) UpdatePermanentAccessKeyInvoker(request *model.UpdatePermane
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateBindingDevice(request *model.CreateBindingDeviceRequest) (*model.CreateBindingDeviceResponse, error) {
requestDef := GenReqDefForCreateBindingDevice()
@@ -2971,8 +2848,7 @@ func (c *IamClient) CreateBindingDeviceInvoker(request *model.CreateBindingDevic
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateMfaDevice(request *model.CreateMfaDeviceRequest) (*model.CreateMfaDeviceResponse, error) {
requestDef := GenReqDefForCreateMfaDevice()
@@ -2995,8 +2871,7 @@ func (c *IamClient) CreateMfaDeviceInvoker(request *model.CreateMfaDeviceRequest
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) CreateUser(request *model.CreateUserRequest) (*model.CreateUserResponse, error) {
requestDef := GenReqDefForCreateUser()
@@ -3019,8 +2894,7 @@ func (c *IamClient) CreateUserInvoker(request *model.CreateUserRequest) *CreateU
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeleteBindingDevice(request *model.DeleteBindingDeviceRequest) (*model.DeleteBindingDeviceResponse, error) {
requestDef := GenReqDefForDeleteBindingDevice()
@@ -3043,8 +2917,7 @@ func (c *IamClient) DeleteBindingDeviceInvoker(request *model.DeleteBindingDevic
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) DeleteMfaDevice(request *model.DeleteMfaDeviceRequest) (*model.DeleteMfaDeviceResponse, error) {
requestDef := GenReqDefForDeleteMfaDevice()
@@ -3067,8 +2940,7 @@ func (c *IamClient) DeleteMfaDeviceInvoker(request *model.DeleteMfaDeviceRequest
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateUser(request *model.KeystoneCreateUserRequest) (*model.KeystoneCreateUserResponse, error) {
requestDef := GenReqDefForKeystoneCreateUser()
@@ -3091,8 +2963,7 @@ func (c *IamClient) KeystoneCreateUserInvoker(request *model.KeystoneCreateUserR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneDeleteUser(request *model.KeystoneDeleteUserRequest) (*model.KeystoneDeleteUserResponse, error) {
requestDef := GenReqDefForKeystoneDeleteUser()
@@ -3115,8 +2986,7 @@ func (c *IamClient) KeystoneDeleteUserInvoker(request *model.KeystoneDeleteUserR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListGroupsForUser(request *model.KeystoneListGroupsForUserRequest) (*model.KeystoneListGroupsForUserResponse, error) {
requestDef := GenReqDefForKeystoneListGroupsForUser()
@@ -3139,8 +3009,7 @@ func (c *IamClient) KeystoneListGroupsForUserInvoker(request *model.KeystoneList
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneListUsers(request *model.KeystoneListUsersRequest) (*model.KeystoneListUsersResponse, error) {
requestDef := GenReqDefForKeystoneListUsers()
@@ -3163,8 +3032,7 @@ func (c *IamClient) KeystoneListUsersInvoker(request *model.KeystoneListUsersReq
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneShowUser(request *model.KeystoneShowUserRequest) (*model.KeystoneShowUserResponse, error) {
requestDef := GenReqDefForKeystoneShowUser()
@@ -3187,8 +3055,7 @@ func (c *IamClient) KeystoneShowUserInvoker(request *model.KeystoneShowUserReque
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateUserByAdmin(request *model.KeystoneUpdateUserByAdminRequest) (*model.KeystoneUpdateUserByAdminResponse, error) {
requestDef := GenReqDefForKeystoneUpdateUserByAdmin()
@@ -3211,8 +3078,7 @@ func (c *IamClient) KeystoneUpdateUserByAdminInvoker(request *model.KeystoneUpda
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneUpdateUserPassword(request *model.KeystoneUpdateUserPasswordRequest) (*model.KeystoneUpdateUserPasswordResponse, error) {
requestDef := GenReqDefForKeystoneUpdateUserPassword()
@@ -3235,8 +3101,7 @@ func (c *IamClient) KeystoneUpdateUserPasswordInvoker(request *model.KeystoneUpd
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListUserLoginProtects(request *model.ListUserLoginProtectsRequest) (*model.ListUserLoginProtectsResponse, error) {
requestDef := GenReqDefForListUserLoginProtects()
@@ -3259,8 +3124,7 @@ func (c *IamClient) ListUserLoginProtectsInvoker(request *model.ListUserLoginPro
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ListUserMfaDevices(request *model.ListUserMfaDevicesRequest) (*model.ListUserMfaDevicesResponse, error) {
requestDef := GenReqDefForListUserMfaDevices()
@@ -3283,8 +3147,7 @@ func (c *IamClient) ListUserMfaDevicesInvoker(request *model.ListUserMfaDevicesR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowUser(request *model.ShowUserRequest) (*model.ShowUserResponse, error) {
requestDef := GenReqDefForShowUser()
@@ -3307,8 +3170,7 @@ func (c *IamClient) ShowUserInvoker(request *model.ShowUserRequest) *ShowUserInv
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowUserLoginProtect(request *model.ShowUserLoginProtectRequest) (*model.ShowUserLoginProtectResponse, error) {
requestDef := GenReqDefForShowUserLoginProtect()
@@ -3331,8 +3193,7 @@ func (c *IamClient) ShowUserLoginProtectInvoker(request *model.ShowUserLoginProt
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) ShowUserMfaDevice(request *model.ShowUserMfaDeviceRequest) (*model.ShowUserMfaDeviceResponse, error) {
requestDef := GenReqDefForShowUserMfaDevice()
@@ -3355,8 +3216,7 @@ func (c *IamClient) ShowUserMfaDeviceInvoker(request *model.ShowUserMfaDeviceReq
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateLoginProtect(request *model.UpdateLoginProtectRequest) (*model.UpdateLoginProtectResponse, error) {
requestDef := GenReqDefForUpdateLoginProtect()
@@ -3379,8 +3239,7 @@ func (c *IamClient) UpdateLoginProtectInvoker(request *model.UpdateLoginProtectR
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateUser(request *model.UpdateUserRequest) (*model.UpdateUserResponse, error) {
requestDef := GenReqDefForUpdateUser()
@@ -3403,8 +3262,7 @@ func (c *IamClient) UpdateUserInvoker(request *model.UpdateUserRequest) *UpdateU
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) UpdateUserInformation(request *model.UpdateUserInformationRequest) (*model.UpdateUserInformationResponse, error) {
requestDef := GenReqDefForUpdateUserInformation()
@@ -3433,8 +3291,7 @@ func (c *IamClient) UpdateUserInformationInvoker(request *model.UpdateUserInform
//
// > - token的有效期为24小时,建议进行缓存,避免频繁调用。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateAgencyToken(request *model.KeystoneCreateAgencyTokenRequest) (*model.KeystoneCreateAgencyTokenResponse, error) {
requestDef := GenReqDefForKeystoneCreateAgencyToken()
@@ -3462,8 +3319,7 @@ func (c *IamClient) KeystoneCreateAgencyTokenInvoker(request *model.KeystoneCrea
// > - 通过Postman获取用户token示例请参见:[如何通过Postman获取用户token](https://support.huaweicloud.com/iam_faq/iam_01_034.html)。
// > - 如果需要获取具有Security Administrator权限的token,请参见:[IAM 常见问题](https://support.huaweicloud.com/iam_faq/iam_01_0608.html)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateUserTokenByPassword(request *model.KeystoneCreateUserTokenByPasswordRequest) (*model.KeystoneCreateUserTokenByPasswordResponse, error) {
requestDef := GenReqDefForKeystoneCreateUserTokenByPassword()
@@ -3491,8 +3347,7 @@ func (c *IamClient) KeystoneCreateUserTokenByPasswordInvoker(request *model.Keys
// > - 通过Postman获取用户token示例请参见:[如何通过Postman获取用户token](https://support.huaweicloud.com/iam_faq/iam_01_034.html)。
// > - 如果需要获取具有Security Administrator权限的token,请参见:[IAM 常见问题](https://support.huaweicloud.com/iam_faq/iam_01_0608.html)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneCreateUserTokenByPasswordAndMfa(request *model.KeystoneCreateUserTokenByPasswordAndMfaRequest) (*model.KeystoneCreateUserTokenByPasswordAndMfaResponse, error) {
requestDef := GenReqDefForKeystoneCreateUserTokenByPasswordAndMfa()
@@ -3515,8 +3370,7 @@ func (c *IamClient) KeystoneCreateUserTokenByPasswordAndMfaInvoker(request *mode
//
// 该接口可以使用全局区域的Endpoint和其他区域的Endpoint调用。IAM的Endpoint请参见:[地区和终端节点](https://developer.huaweicloud.com/endpoint?IAM)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *IamClient) KeystoneValidateToken(request *model.KeystoneValidateTokenRequest) (*model.KeystoneValidateTokenResponse, error) {
requestDef := GenReqDefForKeystoneValidateToken()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_icredential.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_icredential.go
new file mode 100644
index 00000000..fe084343
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/iam_icredential.go
@@ -0,0 +1,41 @@
+package v3
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/auth"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/impl"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/request"
+)
+
+const xAuthToken = "X-Auth-Token"
+
+type IamCredentials struct {
+ AuthToken string
+}
+
+func (s *IamCredentials) ProcessAuthParams(httpClient *impl.DefaultHttpClient, region string) auth.ICredential {
+ return s
+}
+
+func (s *IamCredentials) ProcessAuthRequest(httpClient *impl.DefaultHttpClient, httpRequest *request.DefaultHttpRequest) (*request.DefaultHttpRequest, error) {
+ if _, ok := httpRequest.GetHeaderParams()[xAuthToken]; !ok && s.AuthToken != "" {
+ httpRequest.AddHeaderParam(xAuthToken, s.AuthToken)
+ }
+ return httpRequest, nil
+}
+
+func NewIamCredentialsBuilder() *IamCredentialsBuilder {
+ return &IamCredentialsBuilder{IamCredentials: &IamCredentials{}}
+}
+
+type IamCredentialsBuilder struct {
+ IamCredentials *IamCredentials
+}
+
+func (builder *IamCredentialsBuilder) WithXAuthToken(authToken string) *IamCredentialsBuilder {
+ builder.IamCredentials.AuthToken = authToken
+ return builder
+}
+
+func (builder *IamCredentialsBuilder) Build() *IamCredentials {
+ return builder.IamCredentials
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_option.go
index 7b435031..e53f3b04 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_option.go
@@ -10,10 +10,10 @@ import (
type AclPolicyOption struct {
// 允许访问的IP地址或网段。
- AllowAddressNetmasks []AllowAddressNetmasksOption `json:"allow_address_netmasks"`
+ AllowAddressNetmasks *[]AllowAddressNetmasksOption `json:"allow_address_netmasks,omitempty"`
// 允许访问的IP地址区间。
- AllowIpRanges []AllowIpRangesOption `json:"allow_ip_ranges"`
+ AllowIpRanges *[]AllowIpRangesOption `json:"allow_ip_ranges,omitempty"`
}
func (o AclPolicyOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_result.go
index 20daa0e2..a58643ee 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_result.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_acl_policy_result.go
@@ -10,10 +10,10 @@ import (
type AclPolicyResult struct {
// 允许访问的IP地址或网段。
- AllowAddressNetmasks []AllowAddressNetmasksResult `json:"allow_address_netmasks"`
+ AllowAddressNetmasks *[]AllowAddressNetmasksResult `json:"allow_address_netmasks,omitempty"`
// 允许访问的IP地址区间。
- AllowIpRanges []AllowIpRangesResult `json:"allow_ip_ranges"`
+ AllowIpRanges *[]AllowIpRangesResult `json:"allow_ip_ranges,omitempty"`
}
func (o AclPolicyResult) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_allow_user_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_allow_user_body.go
new file mode 100644
index 00000000..2d491f74
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_allow_user_body.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 用户可以自主修改的属性。
+type AllowUserBody struct {
+
+ // 是否允许子用户自行管理AK,取值范围true或false。
+ ManageAccesskey *bool `json:"manage_accesskey,omitempty"`
+
+ // 是否允许子用户自己修改邮箱,取值范围true或false。
+ ManageEmail *bool `json:"manage_email,omitempty"`
+
+ // 是否允许子用户自己修改电话,取值范围true或false。
+ ManageMobile *bool `json:"manage_mobile,omitempty"`
+
+ // 是否允许子用户自己修改密码,取值范围true或false。
+ ManagePassword *bool `json:"manage_password,omitempty"`
+}
+
+func (o AllowUserBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AllowUserBody struct{}"
+ }
+
+ return strings.Join([]string{"AllowUserBody", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_create_mfa_device.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_create_mfa_device.go
index 894e7fed..fe7b6888 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_create_mfa_device.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_create_mfa_device.go
@@ -9,7 +9,7 @@ import (
// { \"virtual_mfa_device\": { \"name\": \"{divice_name}\", \"user_id\": \"{user_id}\" } }
type CreateMfaDevice struct {
- // 设备名称。
+ // 设备名称。 最小长度:1 最大长度:64
Name string `json:"name"`
// 创建MFA设备的IAM用户ID。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_login_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_login_policy_option.go
index 203933c0..ce62168a 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_login_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_login_policy_option.go
@@ -10,25 +10,25 @@ import (
type LoginPolicyOption struct {
// 账号在该值设置的有效期内未使用,则被停用。
- AccountValidityPeriod int32 `json:"account_validity_period"`
+ AccountValidityPeriod *int32 `json:"account_validity_period,omitempty"`
// 登录提示信息。
- CustomInfoForLogin string `json:"custom_info_for_login"`
+ CustomInfoForLogin *string `json:"custom_info_for_login,omitempty"`
// 帐号锁定时长(分钟),取值范围[15,30]。
- LockoutDuration int32 `json:"lockout_duration"`
+ LockoutDuration *int32 `json:"lockout_duration,omitempty"`
// 限定时间内登录失败次数,取值范围[3,10]。
- LoginFailedTimes int32 `json:"login_failed_times"`
+ LoginFailedTimes *int32 `json:"login_failed_times,omitempty"`
// 限定时间长度(分钟),取值范围[15,60]。
- PeriodWithLoginFailures int32 `json:"period_with_login_failures"`
+ PeriodWithLoginFailures *int32 `json:"period_with_login_failures,omitempty"`
// 登录会话失效时间,取值范围[15,1440]。
- SessionTimeout int32 `json:"session_timeout"`
+ SessionTimeout *int32 `json:"session_timeout,omitempty"`
// 显示最近一次的登录信息。取值范围true或false。
- ShowRecentLoginInfo bool `json:"show_recent_login_info"`
+ ShowRecentLoginInfo *bool `json:"show_recent_login_info,omitempty"`
}
func (o LoginPolicyOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_mapping_rules.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_mapping_rules.go
index 6cb21002..5ec879e6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_mapping_rules.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_mapping_rules.go
@@ -6,11 +6,10 @@ import (
"strings"
)
-//
type MappingRules struct {
// 表示联邦用户在本系统中的用户信息。 user:联邦用户在本系统中的用户名称。group:联邦用户在本系统中所属用户组。
- Local []map[string]RulesLocalAdditional `json:"local"`
+ Local []RulesLocal `json:"local"`
// 表示联邦用户在IdP中的用户信息。由断言属性及运算符组成的表达式,取值由断言决定。
Remote []RulesRemote `json:"remote"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_password_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_password_policy_option.go
index 5a10830a..71b9f6e4 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_password_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_password_policy_option.go
@@ -10,25 +10,25 @@ import (
type PasswordPolicyOption struct {
// 同一字符连续出现的最大次数,取值范围[0,32]。
- MaximumConsecutiveIdenticalChars int32 `json:"maximum_consecutive_identical_chars"`
+ MaximumConsecutiveIdenticalChars *int32 `json:"maximum_consecutive_identical_chars,omitempty"`
// 密码最短使用时间(分钟),取值范围[0,1440]。
- MinimumPasswordAge int32 `json:"minimum_password_age"`
+ MinimumPasswordAge *int32 `json:"minimum_password_age,omitempty"`
// 密码最小字符数,取值范围[6,32]。
- MinimumPasswordLength int32 `json:"minimum_password_length"`
+ MinimumPasswordLength *int32 `json:"minimum_password_length,omitempty"`
// 密码不能与历史密码重复次数,取值范围[0,10]。
- NumberOfRecentPasswordsDisallowed int32 `json:"number_of_recent_passwords_disallowed"`
+ NumberOfRecentPasswordsDisallowed *int32 `json:"number_of_recent_passwords_disallowed,omitempty"`
// 密码是否可以是用户名或用户名的反序。
- PasswordNotUsernameOrInvert bool `json:"password_not_username_or_invert"`
+ PasswordNotUsernameOrInvert *bool `json:"password_not_username_or_invert,omitempty"`
// 密码有效期(天),取值范围[0,180],设置0表示关闭该策略。
- PasswordValidityPeriod int32 `json:"password_validity_period"`
+ PasswordValidityPeriod *int32 `json:"password_validity_period,omitempty"`
// 至少包含字符种类的个数,取值区间[2,4]。
- PasswordCharCombination int32 `json:"password_char_combination"`
+ PasswordCharCombination *int32 `json:"password_char_combination,omitempty"`
}
func (o PasswordPolicyOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_option.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_option.go
index f3d7b96b..74fc6986 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_option.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_option.go
@@ -6,11 +6,25 @@ import (
"strings"
)
-//
+// 操作保护策略
type ProtectPolicyOption struct {
// 是否开启操作保护,开启为\"true\",未开启为\"false\"。
OperationProtection bool `json:"operation_protection"`
+
+ AllowUser *AllowUserBody `json:"allow_user,omitempty"`
+
+ // 操作保护验证指定手机号码。示例:0086-123456789。
+ Mobile *string `json:"mobile,omitempty"`
+
+ // 是否指定人员验证。on为指定人员验证,必须填写scene参数。off为操作员验证。
+ AdminCheck *string `json:"admin_check,omitempty"`
+
+ // 操作保护验证指定邮件地址。示例:example@email.com。
+ Email *string `json:"email,omitempty"`
+
+ // 操作保护指定人员验证方式,admin_check为on时,必须填写。包括mobile、email。
+ Scene *string `json:"scene,omitempty"`
}
func (o ProtectPolicyOption) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_result.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_result.go
deleted file mode 100644
index 6dc2dc90..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_protect_policy_result.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-//
-type ProtectPolicyResult struct {
-
- // 是否开启操作保护,开启为\"true\",未开启为\"false\"。
- OperationProtection bool `json:"operation_protection"`
-}
-
-func (o ProtectPolicyResult) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "ProtectPolicyResult struct{}"
- }
-
- return strings.Join([]string{"ProtectPolicyResult", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local.go
new file mode 100644
index 00000000..f883367b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 联邦用户映射到IAM中的身份信息
+type RulesLocal struct {
+ User *RulesLocalUser `json:"user,omitempty"`
+
+ Group *RulesLocalGroup `json:"group,omitempty"`
+
+ // 联邦用户在本系统中所属用户组列表
+ Groups *string `json:"groups,omitempty"`
+}
+
+func (o RulesLocal) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RulesLocal struct{}"
+ }
+
+ return strings.Join([]string{"RulesLocal", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_additional.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_additional.go
deleted file mode 100644
index af13b2b1..00000000
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_additional.go
+++ /dev/null
@@ -1,23 +0,0 @@
-package model
-
-import (
- "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
-
- "strings"
-)
-
-//
-type RulesLocalAdditional struct {
-
- // user:联邦用户在本系统中的用户名称。 ``` \"user\":{\"name\":\"{0}\"} ``` group:联邦用户在本系统中所属用户组。 ``` \"group\":{\"name\":\"0cd5e9\"} ```
- Name *string `json:"name,omitempty"`
-}
-
-func (o RulesLocalAdditional) String() string {
- data, err := utils.Marshal(o)
- if err != nil {
- return "RulesLocalAdditional struct{}"
- }
-
- return strings.Join([]string{"RulesLocalAdditional", string(data)}, " ")
-}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_group.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_group.go
new file mode 100644
index 00000000..bf06125d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_group.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 联邦用户在本系统中所属用户组
+type RulesLocalGroup struct {
+
+ // 联邦用户在本系统中所属用户组
+ Name string `json:"name"`
+}
+
+func (o RulesLocalGroup) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RulesLocalGroup struct{}"
+ }
+
+ return strings.Join([]string{"RulesLocalGroup", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_user.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_user.go
new file mode 100644
index 00000000..9345b5d5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_rules_local_user.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 联邦用户在本系统中的用户名称
+type RulesLocalUser struct {
+
+ // 联邦用户在本系统中的用户名称
+ Name string `json:"name"`
+}
+
+func (o RulesLocalUser) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RulesLocalUser struct{}"
+ }
+
+ return strings.Join([]string{"RulesLocalUser", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response.go
index 2de2f9c0..19ec24a7 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response.go
@@ -8,8 +8,8 @@ import (
// Response Object
type ShowDomainProtectPolicyResponse struct {
- ProtectPolicy *ProtectPolicyResult `json:"protect_policy,omitempty"`
- HttpStatusCode int `json:"-"`
+ ProtectPolicy *ShowDomainProtectPolicyResponseBodyProtectPolicy `json:"protect_policy,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ShowDomainProtectPolicyResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response_body_protect_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response_body_protect_policy.go
new file mode 100644
index 00000000..07f9222c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_protect_policy_response_body_protect_policy.go
@@ -0,0 +1,36 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 操作保护策略。
+type ShowDomainProtectPolicyResponseBodyProtectPolicy struct {
+ AllowUser *AllowUserBody `json:"allow_user"`
+
+ // 是否开启操作保护,取值范围true或false。
+ OperationProtection bool `json:"operation_protection"`
+
+ // 操作保护验证指定手机号码。示例:0086-123456789。
+ Mobile string `json:"mobile"`
+
+ // 是否指定人员验证。on为指定人员验证,必须填写scene参数。off为操作员验证。
+ AdminCheck string `json:"admin_check"`
+
+ // 操作保护验证指定邮件地址。示例:example@email.com。
+ Email string `json:"email"`
+
+ // 操作保护指定人员验证方式,admin_check为on时,必须填写。包括mobile、email。
+ Scene string `json:"scene"`
+}
+
+func (o ShowDomainProtectPolicyResponseBodyProtectPolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowDomainProtectPolicyResponseBodyProtectPolicy struct{}"
+ }
+
+ return strings.Join([]string{"ShowDomainProtectPolicyResponseBodyProtectPolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_quota_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_quota_request.go
index 2baee688..12113f7d 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_quota_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_show_domain_quota_request.go
@@ -15,7 +15,7 @@ type ShowDomainQuotaRequest struct {
// 待查询的账号ID,获取方式请参见:[获取账号、IAM用户、项目、用户组、委托的名称和ID](https://support.huaweicloud.com/api-iam/iam_17_0002.html)。
DomainId string `json:"domain_id"`
- // 查询配额的类型,取值范围为:user, group, idp, agency, policy, assigment_group_mp, assigment_agency_mp, assigment_group_ep, assigment_user_ep。
+ // 查询配额的类型,取值范围为:user, group, idp, agency, policy, assigment_group_mp, assigment_agency_mp, assigment_group_ep, assigment_user_ep, mapping。
Type *ShowDomainQuotaRequestType `json:"type,omitempty"`
}
@@ -42,6 +42,7 @@ type ShowDomainQuotaRequestTypeEnum struct {
ASSIGMENT_AGENCY_MP ShowDomainQuotaRequestType
ASSIGMENT_GROUP_EP ShowDomainQuotaRequestType
ASSIGMENT_USER_EP ShowDomainQuotaRequestType
+ MAPPING ShowDomainQuotaRequestType
}
func GetShowDomainQuotaRequestTypeEnum() ShowDomainQuotaRequestTypeEnum {
@@ -73,6 +74,9 @@ func GetShowDomainQuotaRequestTypeEnum() ShowDomainQuotaRequestTypeEnum {
ASSIGMENT_USER_EP: ShowDomainQuotaRequestType{
value: "assigment_user_ep",
},
+ MAPPING: ShowDomainQuotaRequestType{
+ value: "mapping",
+ },
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_unbind_mfa_device.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_unbind_mfa_device.go
index 6f37b130..58b68cd3 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_unbind_mfa_device.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_unbind_mfa_device.go
@@ -12,7 +12,7 @@ type UnbindMfaDevice struct {
// 待解绑MFA设备的IAM用户ID。
UserId string `json:"user_id"`
- // • 管理员为IAM用户解绑MFA设备:填写6位任意验证码,不做校验。 • IAM用户为自己解绑MFA设备:填写虚拟MFA验证码。
+ // 管理员为IAM用户解绑MFA设备:填写6位任意验证码,不做校验。IAM用户为自己解绑MFA设备:填写虚拟MFA验证码。
AuthenticationCode string `json:"authentication_code"`
// MFA设备序列号。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response.go
index 9c8d22fa..bb070213 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response.go
@@ -8,8 +8,8 @@ import (
// Response Object
type UpdateDomainProtectPolicyResponse struct {
- ProtectPolicy *ProtectPolicyResult `json:"protect_policy,omitempty"`
- HttpStatusCode int `json:"-"`
+ ProtectPolicy *UpdateDomainProtectPolicyResponseBodyProtectPolicy `json:"protect_policy,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o UpdateDomainProtectPolicyResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response_body_protect_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response_body_protect_policy.go
new file mode 100644
index 00000000..6917d69f
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/iam/v3/model/model_update_domain_protect_policy_response_body_protect_policy.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type UpdateDomainProtectPolicyResponseBodyProtectPolicy struct {
+ AllowUser *AllowUserBody `json:"allow_user"`
+
+ // 是否开启操作保护,取值范围true或false。
+ OperationProtection bool `json:"operation_protection"`
+
+ // 是否指定人员验证。on为指定人员验证,必须填写scene参数。off为操作员验证。
+ AdminCheck string `json:"admin_check"`
+
+ // 操作保护指定人员验证方式,admin_check为on时,必须填写。包括mobile、email。
+ Scene string `json:"scene"`
+}
+
+func (o UpdateDomainProtectPolicyResponseBodyProtectPolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateDomainProtectPolicyResponseBodyProtectPolicy struct{}"
+ }
+
+ return strings.Join([]string{"UpdateDomainProtectPolicyResponseBodyProtectPolicy", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_account_aggregation_source.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_account_aggregation_source.go
new file mode 100644
index 00000000..cc5c8f22
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_account_aggregation_source.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 聚合数据的源帐号。
+type AccountAggregationSource struct {
+
+ // 帐号列表。
+ DomainIds *[]string `json:"domain_ids,omitempty"`
+}
+
+func (o AccountAggregationSource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AccountAggregationSource struct{}"
+ }
+
+ return strings.Join([]string{"AccountAggregationSource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resource_counts_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resource_counts_request.go
new file mode 100644
index 00000000..0064c511
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resource_counts_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询聚合器中帐号资源计数请求体。
+type AggregateDiscoveredResourceCountsRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ Filter *ResourceCountsFilters `json:"filter,omitempty"`
+
+ // 用于对资源计数进行分组的键(RESOURCE_TYPE | ACCOUNT_ID)。
+ GroupByKey string `json:"group_by_key"`
+}
+
+func (o AggregateDiscoveredResourceCountsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregateDiscoveredResourceCountsRequest struct{}"
+ }
+
+ return strings.Join([]string{"AggregateDiscoveredResourceCountsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resources_request.go
new file mode 100644
index 00000000..b6e323b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_discovered_resources_request.go
@@ -0,0 +1,31 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询聚合器中帐号资源计数请求体。
+type AggregateDiscoveredResourcesRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ Filter *ResourcesFilters `json:"filter,omitempty"`
+
+ // 云服务类型。
+ Provider *string `json:"provider,omitempty"`
+
+ // 资源类型。
+ ResourceType *string `json:"resource_type,omitempty"`
+}
+
+func (o AggregateDiscoveredResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregateDiscoveredResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"AggregateDiscoveredResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_resource_config_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_resource_config_request.go
new file mode 100644
index 00000000..cb76a2bf
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregate_resource_config_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 查询源帐号中的特定资源聚合的配置项请求体。
+type AggregateResourceConfigRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ ResourceIdentifier *ResourceIdentifier `json:"resource_identifier"`
+}
+
+func (o AggregateResourceConfigRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregateResourceConfigRequest struct{}"
+ }
+
+ return strings.Join([]string{"AggregateResourceConfigRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregated_source_status.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregated_source_status.go
new file mode 100644
index 00000000..5dcb48c5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregated_source_status.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源聚合器状态响应体。
+type AggregatedSourceStatus struct {
+
+ // 源帐号最近一次聚合失败时返回的错误码。
+ LastErrorCode *string `json:"last_error_code,omitempty"`
+
+ // 源帐号最近一次聚合失败时返回的错误消息。
+ LastErrorMessage *string `json:"last_error_message,omitempty"`
+
+ // 最近一次更新的状态类型。
+ LastUpdateStatus *string `json:"last_update_status,omitempty"`
+
+ // 最近一次更新的时间。
+ LastUpdateTime *string `json:"last_update_time,omitempty"`
+
+ // 源帐号ID或组织。
+ SourceId *string `json:"source_id,omitempty"`
+
+ // 源帐号类型(ACCOUNT | ORGANIZATION)。
+ SourceType *string `json:"source_type,omitempty"`
+}
+
+func (o AggregatedSourceStatus) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregatedSourceStatus struct{}"
+ }
+
+ return strings.Join([]string{"AggregatedSourceStatus", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_request.go
new file mode 100644
index 00000000..c517b1d4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源聚合器授权请求体。
+type AggregationAuthorizationRequest struct {
+
+ // 要授权的资源聚合器的帐号ID。
+ AuthorizedAccountId string `json:"authorized_account_id"`
+}
+
+func (o AggregationAuthorizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregationAuthorizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"AggregationAuthorizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_resp.go
new file mode 100644
index 00000000..2299eaf7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_aggregation_authorization_resp.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源聚合器授权。
+type AggregationAuthorizationResp struct {
+
+ // 资源聚合器授权标识符。
+ AggregationAuthorizationUrn *string `json:"aggregation_authorization_urn,omitempty"`
+
+ // 授权的资源聚合器的帐号ID。
+ AuthorizedAccountId *string `json:"authorized_account_id,omitempty"`
+
+ // 资源聚合器授权的创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+}
+
+func (o AggregationAuthorizationResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "AggregationAuthorizationResp struct{}"
+ }
+
+ return strings.Join([]string{"AggregationAuthorizationResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_request.go
new file mode 100644
index 00000000..f05633df
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_request.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CollectAllResourcesSummaryRequest struct {
+
+ // 资源名称
+ Name *string `json:"name,omitempty"`
+
+ // 资源类型(provider.type)
+ Type *[]string `json:"type,omitempty"`
+
+ // 区域ID列表
+ RegionId *[]string `json:"region_id,omitempty"`
+
+ // 企业项目ID列表
+ EpId *[]string `json:"ep_id,omitempty"`
+
+ // 项目ID
+ ProjectId *[]string `json:"project_id,omitempty"`
+
+ // 标签列表
+ Tags *[]string `json:"tags,omitempty"`
+}
+
+func (o CollectAllResourcesSummaryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CollectAllResourcesSummaryRequest struct{}"
+ }
+
+ return strings.Join([]string{"CollectAllResourcesSummaryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_response.go
new file mode 100644
index 00000000..14109fce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_collect_all_resources_summary_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CollectAllResourcesSummaryResponse struct {
+
+ // 资源概要信息列表
+ Body *[]ResourceSummaryResponseItem `json:"body,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CollectAllResourcesSummaryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CollectAllResourcesSummaryResponse struct{}"
+ }
+
+ return strings.Join([]string{"CollectAllResourcesSummaryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_request.go
new file mode 100644
index 00000000..22cd606a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源聚合器请求体。
+type ConfigurationAggregatorRequest struct {
+
+ // 资源聚合器名称。
+ AggregatorName string `json:"aggregator_name"`
+
+ // 聚合器类型(ACCOUNT | ORGANIZATION)。
+ AggregatorType string `json:"aggregator_type"`
+
+ AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
+}
+
+func (o ConfigurationAggregatorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationAggregatorRequest struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationAggregatorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_resp.go
new file mode 100644
index 00000000..502338c3
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_configuration_aggregator_resp.go
@@ -0,0 +1,40 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源聚合器响应体。
+type ConfigurationAggregatorResp struct {
+
+ // 资源聚合器名称。
+ AggregatorName *string `json:"aggregator_name,omitempty"`
+
+ // 资源聚合器ID。
+ AggregatorId *string `json:"aggregator_id,omitempty"`
+
+ // 资源聚合器标识符。
+ AggregatorUrn *string `json:"aggregator_urn,omitempty"`
+
+ // 聚合器类型。
+ AggregatorType *string `json:"aggregator_type,omitempty"`
+
+ AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
+
+ // 资源聚合器更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // 资源聚合器创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+}
+
+func (o ConfigurationAggregatorResp) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ConfigurationAggregatorResp struct{}"
+ }
+
+ return strings.Join([]string{"ConfigurationAggregatorResp", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_request.go
new file mode 100644
index 00000000..b8813f7a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_request.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CountAllResourcesRequest struct {
+
+ // 资源ID
+ Id *string `json:"id,omitempty"`
+
+ // 资源名称
+ Name *string `json:"name,omitempty"`
+
+ // 资源类型(provider.type)
+ Type *[]string `json:"type,omitempty"`
+
+ // 区域ID列表
+ RegionId *[]string `json:"region_id,omitempty"`
+
+ // 企业项目ID列表
+ EpId *[]string `json:"ep_id,omitempty"`
+
+ // 项目ID
+ ProjectId *[]string `json:"project_id,omitempty"`
+
+ // 标签列表
+ Tags *[]string `json:"tags,omitempty"`
+}
+
+func (o CountAllResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CountAllResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"CountAllResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_response.go
new file mode 100644
index 00000000..1d396cff
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_count_all_resources_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CountAllResourcesResponse struct {
+
+ // 资源总数
+ TotalCount *int32 `json:"total_count,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CountAllResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CountAllResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"CountAllResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_request.go
new file mode 100644
index 00000000..e9f571d0
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateAggregationAuthorizationRequest struct {
+ Body *AggregationAuthorizationRequest `json:"body,omitempty"`
+}
+
+func (o CreateAggregationAuthorizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAggregationAuthorizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateAggregationAuthorizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_response.go
new file mode 100644
index 00000000..ad5e754e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_aggregation_authorization_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateAggregationAuthorizationResponse struct {
+
+ // 资源聚合器授权标识符。
+ AggregationAuthorizationUrn *string `json:"aggregation_authorization_urn,omitempty"`
+
+ // 授权的资源聚合器的帐号ID。
+ AuthorizedAccountId *string `json:"authorized_account_id,omitempty"`
+
+ // 资源聚合器授权的创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateAggregationAuthorizationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateAggregationAuthorizationResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateAggregationAuthorizationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_request.go
new file mode 100644
index 00000000..5d0af5ca
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateConfigurationAggregatorRequest struct {
+ Body *ConfigurationAggregatorRequest `json:"body,omitempty"`
+}
+
+func (o CreateConfigurationAggregatorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateConfigurationAggregatorRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateConfigurationAggregatorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_response.go
new file mode 100644
index 00000000..1ebf4a24
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_configuration_aggregator_response.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateConfigurationAggregatorResponse struct {
+
+ // 资源聚合器名称。
+ AggregatorName *string `json:"aggregator_name,omitempty"`
+
+ // 资源聚合器ID。
+ AggregatorId *string `json:"aggregator_id,omitempty"`
+
+ // 资源聚合器标识符。
+ AggregatorUrn *string `json:"aggregator_urn,omitempty"`
+
+ // 聚合器类型。
+ AggregatorType *string `json:"aggregator_type,omitempty"`
+
+ AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
+
+ // 资源聚合器更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // 资源聚合器创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateConfigurationAggregatorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateConfigurationAggregatorResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateConfigurationAggregatorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_request.go
new file mode 100644
index 00000000..8485a442
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type CreateOrganizationPolicyAssignmentRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ Body *OrganizationPolicyAssignmentRequest `json:"body,omitempty"`
+}
+
+func (o CreateOrganizationPolicyAssignmentRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateOrganizationPolicyAssignmentRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateOrganizationPolicyAssignmentRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_response.go
new file mode 100644
index 00000000..ef608d3c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_organization_policy_assignment_response.go
@@ -0,0 +1,56 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateOrganizationPolicyAssignmentResponse struct {
+
+ // 组织合规规则创建者。
+ OwnerId *string `json:"owner_id,omitempty"`
+
+ // 组织ID。
+ OrganizationId *string `json:"organization_id,omitempty"`
+
+ // 组织合规规则资源唯一标识。
+ OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 触发周期。
+ Period *string `json:"period,omitempty"`
+
+ PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+
+ // 规则参数。
+ Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
+
+ // 策略ID。
+ PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+
+ // 创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateOrganizationPolicyAssignmentResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateOrganizationPolicyAssignmentResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateOrganizationPolicyAssignmentResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_policy_assignments_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_policy_assignments_response.go
index f8ec22c3..ead23634 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_policy_assignments_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_create_policy_assignments_response.go
@@ -3,12 +3,18 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Response Object
type CreatePolicyAssignmentsResponse struct {
+ // 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
+ PolicyAssignmentType *CreatePolicyAssignmentsResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`
+
// 规则ID
Id *string `json:"id,omitempty"`
@@ -20,6 +26,9 @@ type CreatePolicyAssignmentsResponse struct {
PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+ // 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
+ Period *string `json:"period,omitempty"`
+
// 规则状态
State *string `json:"state,omitempty"`
@@ -32,6 +41,8 @@ type CreatePolicyAssignmentsResponse struct {
// 规则的策略ID
PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+ CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`
+
// 规则参数
Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
HttpStatusCode int `json:"-"`
@@ -45,3 +56,45 @@ func (o CreatePolicyAssignmentsResponse) String() string {
return strings.Join([]string{"CreatePolicyAssignmentsResponse", string(data)}, " ")
}
+
+type CreatePolicyAssignmentsResponsePolicyAssignmentType struct {
+ value string
+}
+
+type CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum struct {
+ BUILTIN CreatePolicyAssignmentsResponsePolicyAssignmentType
+ CUSTOM CreatePolicyAssignmentsResponsePolicyAssignmentType
+}
+
+func GetCreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum() CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum {
+ return CreatePolicyAssignmentsResponsePolicyAssignmentTypeEnum{
+ BUILTIN: CreatePolicyAssignmentsResponsePolicyAssignmentType{
+ value: "builtin",
+ },
+ CUSTOM: CreatePolicyAssignmentsResponsePolicyAssignmentType{
+ value: "custom",
+ },
+ }
+}
+
+func (c CreatePolicyAssignmentsResponsePolicyAssignmentType) Value() string {
+ return c.value
+}
+
+func (c CreatePolicyAssignmentsResponsePolicyAssignmentType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreatePolicyAssignmentsResponsePolicyAssignmentType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_custom_policy.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_custom_policy.go
new file mode 100644
index 00000000..619a1e62
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_custom_policy.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 自定义合规规则
+type CustomPolicy struct {
+
+ // 自定义函数的urn
+ FunctionUrn string `json:"function_urn"`
+
+ // 自定义合规规则调用function方式
+ AuthType CustomPolicyAuthType `json:"auth_type"`
+
+ // method参数值,method为agency时,为{\"agency_name\":rms_fg_agency}, rms_fg_agency为授权RMS调用FunctionGraph接口的委托名称
+ AuthValue map[string]interface{} `json:"auth_value,omitempty"`
+}
+
+func (o CustomPolicy) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CustomPolicy struct{}"
+ }
+
+ return strings.Join([]string{"CustomPolicy", string(data)}, " ")
+}
+
+type CustomPolicyAuthType struct {
+ value string
+}
+
+type CustomPolicyAuthTypeEnum struct {
+ AGENCY CustomPolicyAuthType
+}
+
+func GetCustomPolicyAuthTypeEnum() CustomPolicyAuthTypeEnum {
+ return CustomPolicyAuthTypeEnum{
+ AGENCY: CustomPolicyAuthType{
+ value: "agency",
+ },
+ }
+}
+
+func (c CustomPolicyAuthType) Value() string {
+ return c.value
+}
+
+func (c CustomPolicyAuthType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CustomPolicyAuthType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_request.go
new file mode 100644
index 00000000..180f0fc7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteAggregationAuthorizationRequest struct {
+
+ // 授权的资源聚合器的帐号ID。
+ AuthorizedAccountId string `json:"authorized_account_id"`
+}
+
+func (o DeleteAggregationAuthorizationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAggregationAuthorizationRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAggregationAuthorizationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_response.go
new file mode 100644
index 00000000..f0ef8f3d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_aggregation_authorization_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteAggregationAuthorizationResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteAggregationAuthorizationResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteAggregationAuthorizationResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteAggregationAuthorizationResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_request.go
new file mode 100644
index 00000000..a8d3bdfe
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteConfigurationAggregatorRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+}
+
+func (o DeleteConfigurationAggregatorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteConfigurationAggregatorRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteConfigurationAggregatorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_response.go
new file mode 100644
index 00000000..e036d766
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_configuration_aggregator_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteConfigurationAggregatorResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteConfigurationAggregatorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteConfigurationAggregatorResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteConfigurationAggregatorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_request.go
new file mode 100644
index 00000000..5acd194b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeleteOrganizationPolicyAssignmentRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId string `json:"organization_policy_assignment_id"`
+}
+
+func (o DeleteOrganizationPolicyAssignmentRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteOrganizationPolicyAssignmentRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeleteOrganizationPolicyAssignmentRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_response.go
new file mode 100644
index 00000000..c4ecacb1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_organization_policy_assignment_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeleteOrganizationPolicyAssignmentResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeleteOrganizationPolicyAssignmentResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeleteOrganizationPolicyAssignmentResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeleteOrganizationPolicyAssignmentResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_request.go
new file mode 100644
index 00000000..22ddd2ae
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type DeletePendingAggregationRequestRequest struct {
+
+ // 请求聚合数据的帐号ID。
+ RequesterAccountId string `json:"requester_account_id"`
+}
+
+func (o DeletePendingAggregationRequestRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeletePendingAggregationRequestRequest struct{}"
+ }
+
+ return strings.Join([]string{"DeletePendingAggregationRequestRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_response.go
new file mode 100644
index 00000000..8cf73593
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_delete_pending_aggregation_request_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type DeletePendingAggregationRequestResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o DeletePendingAggregationRequestResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "DeletePendingAggregationRequestResponse struct{}"
+ }
+
+ return strings.Join([]string{"DeletePendingAggregationRequestResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_grouped_resource_count.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_grouped_resource_count.go
new file mode 100644
index 00000000..76367557
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_grouped_resource_count.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type GroupedResourceCount struct {
+
+ // 分组名称。
+ GroupName *string `json:"group_name,omitempty"`
+
+ // 资源数量。
+ ResourceCount *int32 `json:"resource_count,omitempty"`
+}
+
+func (o GroupedResourceCount) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "GroupedResourceCount struct{}"
+ }
+
+ return strings.Join([]string{"GroupedResourceCount", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_request.go
new file mode 100644
index 00000000..9e3b3129
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAggregateDiscoveredResourcesRequest struct {
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+
+ Body *AggregateDiscoveredResourcesRequest `json:"body,omitempty"`
+}
+
+func (o ListAggregateDiscoveredResourcesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAggregateDiscoveredResourcesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAggregateDiscoveredResourcesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_response.go
new file mode 100644
index 00000000..cb13513d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregate_discovered_resources_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAggregateDiscoveredResourcesResponse struct {
+
+ // 资源信息列表。
+ ResourceIdentifiers *[]ResourceIdentifier `json:"resource_identifiers,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAggregateDiscoveredResourcesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAggregateDiscoveredResourcesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAggregateDiscoveredResourcesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_request.go
new file mode 100644
index 00000000..296a28f9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAggregationAuthorizationsRequest struct {
+
+ // 授权的帐号ID。
+ AccountId *string `json:"account_id,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ListAggregationAuthorizationsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAggregationAuthorizationsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAggregationAuthorizationsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_response.go
new file mode 100644
index 00000000..5d07d657
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_aggregation_authorizations_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAggregationAuthorizationsResponse struct {
+
+ // 授权过的资源聚合器帐号列表。
+ AggregationAuthorizations *[]AggregationAuthorizationResp `json:"aggregation_authorizations,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAggregationAuthorizationsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAggregationAuthorizationsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAggregationAuthorizationsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_resources_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_resources_request.go
index e6c796f2..ce3f5596 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_resources_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_resources_request.go
@@ -18,11 +18,20 @@ type ListAllResourcesRequest struct {
// 资源类型(provider.type)
Type *string `json:"type,omitempty"`
- // 最大的返回数量
+ // 最大的返回数量。
Limit *int32 `json:"limit,omitempty"`
// 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
Marker *string `json:"marker,omitempty"`
+
+ // 资源ID
+ Id *string `json:"id,omitempty"`
+
+ // 资源名称
+ Name *string `json:"name,omitempty"`
+
+ // 标签列表
+ Tags *[]string `json:"tags,omitempty"`
}
func (o ListAllResourcesRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_request.go
new file mode 100644
index 00000000..6203fe5d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListAllTagsRequest struct {
+
+ // 标签键名
+ Key *string `json:"key,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+
+ // 最大的返回数量。
+ Limit *int32 `json:"limit,omitempty"`
+}
+
+func (o ListAllTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAllTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListAllTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_response.go
new file mode 100644
index 00000000..8e0472c6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_all_tags_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListAllTagsResponse struct {
+
+ // 标签列表
+ Tags *[]TagDetail `json:"tags,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListAllTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListAllTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListAllTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_request.go
new file mode 100644
index 00000000..51ad5874
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListConfigurationAggregatorsRequest struct {
+
+ // 资源聚合器名称。
+ AggregatorName *string `json:"aggregator_name,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ListConfigurationAggregatorsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationAggregatorsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationAggregatorsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_response.go
new file mode 100644
index 00000000..294197c1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_configuration_aggregators_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListConfigurationAggregatorsResponse struct {
+
+ // 资源聚合器列表。
+ ConfigurationAggregators *[]ConfigurationAggregatorResp `json:"configuration_aggregators,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListConfigurationAggregatorsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListConfigurationAggregatorsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListConfigurationAggregatorsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_request.go
new file mode 100644
index 00000000..2f0e27ce
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListOrganizationPolicyAssignmentsRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ListOrganizationPolicyAssignmentsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListOrganizationPolicyAssignmentsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListOrganizationPolicyAssignmentsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_response.go
new file mode 100644
index 00000000..17d083ef
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_organization_policy_assignments_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListOrganizationPolicyAssignmentsResponse struct {
+
+ // 组织合规规则列表。
+ OrganizationPolicyAssignments *[]OrganizationPolicyAssignmentResponse `json:"organization_policy_assignments,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListOrganizationPolicyAssignmentsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListOrganizationPolicyAssignmentsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListOrganizationPolicyAssignmentsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_request.go
new file mode 100644
index 00000000..aa079b00
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListPendingAggregationRequestsRequest struct {
+
+ // 授权的帐号ID。
+ AccountId *string `json:"account_id,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ListPendingAggregationRequestsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPendingAggregationRequestsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListPendingAggregationRequestsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_response.go
new file mode 100644
index 00000000..e3b24de5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_pending_aggregation_requests_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListPendingAggregationRequestsResponse struct {
+
+ // 挂起的聚合请求列表。
+ PendingAggregationRequests *[]PendingAggregationRequest `json:"pending_aggregation_requests,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListPendingAggregationRequestsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListPendingAggregationRequestsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListPendingAggregationRequestsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_providers_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_providers_request.go
index 90e813f3..f87c3892 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_providers_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_list_providers_request.go
@@ -18,6 +18,9 @@ type ListProvidersRequest struct {
// 最大的返回数量
Limit *int32 `json:"limit,omitempty"`
+ // 资源是否默认收集
+ Track *ListProvidersRequestTrack `json:"track,omitempty"`
+
// 选择接口返回的信息的语言,默认为\"zh-cn\"中文
XLanguage *ListProvidersRequestXLanguage `json:"X-Language,omitempty"`
}
@@ -31,6 +34,48 @@ func (o ListProvidersRequest) String() string {
return strings.Join([]string{"ListProvidersRequest", string(data)}, " ")
}
+type ListProvidersRequestTrack struct {
+ value string
+}
+
+type ListProvidersRequestTrackEnum struct {
+ TRACKED ListProvidersRequestTrack
+ UNTRACKED ListProvidersRequestTrack
+}
+
+func GetListProvidersRequestTrackEnum() ListProvidersRequestTrackEnum {
+ return ListProvidersRequestTrackEnum{
+ TRACKED: ListProvidersRequestTrack{
+ value: "tracked",
+ },
+ UNTRACKED: ListProvidersRequestTrack{
+ value: "untracked",
+ },
+ }
+}
+
+func (c ListProvidersRequestTrack) Value() string {
+ return c.value
+}
+
+func (c ListProvidersRequestTrack) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ListProvidersRequestTrack) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
type ListProvidersRequestXLanguage struct {
value string
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_managed_policy_assignment_metadata.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_managed_policy_assignment_metadata.go
new file mode 100644
index 00000000..90119e35
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_managed_policy_assignment_metadata.go
@@ -0,0 +1,91 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 托管规则元数据。
+type ManagedPolicyAssignmentMetadata struct {
+
+ // 规则描述。
+ Description *string `json:"description,omitempty"`
+
+ // 触发周期。
+ Period *ManagedPolicyAssignmentMetadataPeriod `json:"period,omitempty"`
+
+ // 输入参数。
+ Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
+
+ PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+
+ // 预定义策略标识符。
+ PolicyDefinitionId string `json:"policy_definition_id"`
+}
+
+func (o ManagedPolicyAssignmentMetadata) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ManagedPolicyAssignmentMetadata struct{}"
+ }
+
+ return strings.Join([]string{"ManagedPolicyAssignmentMetadata", string(data)}, " ")
+}
+
+type ManagedPolicyAssignmentMetadataPeriod struct {
+ value string
+}
+
+type ManagedPolicyAssignmentMetadataPeriodEnum struct {
+ ONE_HOUR ManagedPolicyAssignmentMetadataPeriod
+ THREE_HOURS ManagedPolicyAssignmentMetadataPeriod
+ SIX_HOURS ManagedPolicyAssignmentMetadataPeriod
+ TWELVE_HOURS ManagedPolicyAssignmentMetadataPeriod
+ TWENTY_FOUR_HOURS ManagedPolicyAssignmentMetadataPeriod
+}
+
+func GetManagedPolicyAssignmentMetadataPeriodEnum() ManagedPolicyAssignmentMetadataPeriodEnum {
+ return ManagedPolicyAssignmentMetadataPeriodEnum{
+ ONE_HOUR: ManagedPolicyAssignmentMetadataPeriod{
+ value: "One_Hour",
+ },
+ THREE_HOURS: ManagedPolicyAssignmentMetadataPeriod{
+ value: "Three_Hours",
+ },
+ SIX_HOURS: ManagedPolicyAssignmentMetadataPeriod{
+ value: "Six_Hours",
+ },
+ TWELVE_HOURS: ManagedPolicyAssignmentMetadataPeriod{
+ value: "Twelve_Hours",
+ },
+ TWENTY_FOUR_HOURS: ManagedPolicyAssignmentMetadataPeriod{
+ value: "TwentyFour_Hours",
+ },
+ }
+}
+
+func (c ManagedPolicyAssignmentMetadataPeriod) Value() string {
+ return c.value
+}
+
+func (c ManagedPolicyAssignmentMetadataPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ManagedPolicyAssignmentMetadataPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_detailed_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_detailed_status_response.go
new file mode 100644
index 00000000..8565893d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_detailed_status_response.go
@@ -0,0 +1,44 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 组织合规规则部署详细状态。
+type OrganizationPolicyAssignmentDetailedStatusResponse struct {
+
+ // 帐号ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 合规规则ID。
+ PolicyAssignmentId *string `json:"policy_assignment_id,omitempty"`
+
+ // 合规规则名称。
+ PolicyAssignmentName *string `json:"policy_assignment_name,omitempty"`
+
+ // 成员帐号中配置规则的部署状态。
+ MemberAccountPolicyAssignmentStatus *string `json:"member_account_policy_assignment_status,omitempty"`
+
+ // 当创建或更新合规规则失败时错误码。
+ ErrorCode *string `json:"error_code,omitempty"`
+
+ // 当创建或更新合规规则失败时错误信息。
+ ErrorMessage *string `json:"error_message,omitempty"`
+
+ // 创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+}
+
+func (o OrganizationPolicyAssignmentDetailedStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OrganizationPolicyAssignmentDetailedStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"OrganizationPolicyAssignmentDetailedStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_request.go
new file mode 100644
index 00000000..6314c541
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_request.go
@@ -0,0 +1,28 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 组织合规规则请求体。
+type OrganizationPolicyAssignmentRequest struct {
+
+ // 需要排除配置规则的帐号。
+ ExcludedAccounts *[]string `json:"excluded_accounts,omitempty"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName string `json:"organization_policy_assignment_name"`
+
+ ManagedPolicyAssignmentMetadata *ManagedPolicyAssignmentMetadata `json:"managed_policy_assignment_metadata,omitempty"`
+}
+
+func (o OrganizationPolicyAssignmentRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OrganizationPolicyAssignmentRequest struct{}"
+ }
+
+ return strings.Join([]string{"OrganizationPolicyAssignmentRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_response.go
new file mode 100644
index 00000000..cd69c987
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_response.go
@@ -0,0 +1,55 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 组织合规规则部署返回。
+type OrganizationPolicyAssignmentResponse struct {
+
+ // 组织合规规则创建者。
+ OwnerId *string `json:"owner_id,omitempty"`
+
+ // 组织ID。
+ OrganizationId *string `json:"organization_id,omitempty"`
+
+ // 组织合规规则资源唯一标识。
+ OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 触发周期。
+ Period *string `json:"period,omitempty"`
+
+ PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+
+ // 规则参数。
+ Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
+
+ // 策略ID。
+ PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+
+ // 创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+}
+
+func (o OrganizationPolicyAssignmentResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OrganizationPolicyAssignmentResponse struct{}"
+ }
+
+ return strings.Join([]string{"OrganizationPolicyAssignmentResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_status_response.go
new file mode 100644
index 00000000..d621b798
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_organization_policy_assignment_status_response.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 组织合规规则部署状态。
+type OrganizationPolicyAssignmentStatusResponse struct {
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 组织合规规则部署状态。
+ OrganizationPolicyAssignmentStatus *string `json:"organization_policy_assignment_status,omitempty"`
+
+ // 当创建或更新组织合规规则失败时错误码。
+ ErrorCode *string `json:"error_code,omitempty"`
+
+ // 当创建或更新组织合规规则失败时错误信息。
+ ErrorMessage *string `json:"error_message,omitempty"`
+
+ // 创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+}
+
+func (o OrganizationPolicyAssignmentStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "OrganizationPolicyAssignmentStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"OrganizationPolicyAssignmentStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_pending_aggregation_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_pending_aggregation_request.go
new file mode 100644
index 00000000..e3ccdcdd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_pending_aggregation_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// PendingAggregationRequest对象。
+type PendingAggregationRequest struct {
+
+ // 请求聚合数据的帐号ID。
+ RequesterAccountId *string `json:"requester_account_id,omitempty"`
+}
+
+func (o PendingAggregationRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PendingAggregationRequest struct{}"
+ }
+
+ return strings.Join([]string{"PendingAggregationRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment.go
index 97035330..84d7f5d9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment.go
@@ -3,12 +3,18 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// 规则
type PolicyAssignment struct {
+ // 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
+ PolicyAssignmentType *PolicyAssignmentPolicyAssignmentType `json:"policy_assignment_type,omitempty"`
+
// 规则ID
Id *string `json:"id,omitempty"`
@@ -20,6 +26,9 @@ type PolicyAssignment struct {
PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+ // 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
+ Period *string `json:"period,omitempty"`
+
// 规则状态
State *string `json:"state,omitempty"`
@@ -32,6 +41,8 @@ type PolicyAssignment struct {
// 规则的策略ID
PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+ CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`
+
// 规则参数
Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
}
@@ -44,3 +55,45 @@ func (o PolicyAssignment) String() string {
return strings.Join([]string{"PolicyAssignment", string(data)}, " ")
}
+
+type PolicyAssignmentPolicyAssignmentType struct {
+ value string
+}
+
+type PolicyAssignmentPolicyAssignmentTypeEnum struct {
+ BUILTIN PolicyAssignmentPolicyAssignmentType
+ CUSTOM PolicyAssignmentPolicyAssignmentType
+}
+
+func GetPolicyAssignmentPolicyAssignmentTypeEnum() PolicyAssignmentPolicyAssignmentTypeEnum {
+ return PolicyAssignmentPolicyAssignmentTypeEnum{
+ BUILTIN: PolicyAssignmentPolicyAssignmentType{
+ value: "builtin",
+ },
+ CUSTOM: PolicyAssignmentPolicyAssignmentType{
+ value: "custom",
+ },
+ }
+}
+
+func (c PolicyAssignmentPolicyAssignmentType) Value() string {
+ return c.value
+}
+
+func (c PolicyAssignmentPolicyAssignmentType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PolicyAssignmentPolicyAssignmentType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment_request_body.go
index a1caf019..0da40a25 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment_request_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_assignment_request_body.go
@@ -3,25 +3,36 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// 规则请求体
type PolicyAssignmentRequestBody struct {
+ // 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
+ PolicyAssignmentType *PolicyAssignmentRequestBodyPolicyAssignmentType `json:"policy_assignment_type,omitempty"`
+
// 规则名字
Name string `json:"name"`
// 规则描述
Description *string `json:"description,omitempty"`
- PolicyFilter *PolicyFilterDefinition `json:"policy_filter"`
+ // 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
+ Period *PolicyAssignmentRequestBodyPeriod `json:"period,omitempty"`
+
+ PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+
+ CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`
// 策略定义ID
- PolicyDefinitionId string `json:"policy_definition_id"`
+ PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
// 规则参数
- Parameters map[string]PolicyParameterValue `json:"parameters"`
+ Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
}
func (o PolicyAssignmentRequestBody) String() string {
@@ -32,3 +43,99 @@ func (o PolicyAssignmentRequestBody) String() string {
return strings.Join([]string{"PolicyAssignmentRequestBody", string(data)}, " ")
}
+
+type PolicyAssignmentRequestBodyPolicyAssignmentType struct {
+ value string
+}
+
+type PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum struct {
+ BUILTIN PolicyAssignmentRequestBodyPolicyAssignmentType
+ CUSTOM PolicyAssignmentRequestBodyPolicyAssignmentType
+}
+
+func GetPolicyAssignmentRequestBodyPolicyAssignmentTypeEnum() PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum {
+ return PolicyAssignmentRequestBodyPolicyAssignmentTypeEnum{
+ BUILTIN: PolicyAssignmentRequestBodyPolicyAssignmentType{
+ value: "builtin",
+ },
+ CUSTOM: PolicyAssignmentRequestBodyPolicyAssignmentType{
+ value: "custom",
+ },
+ }
+}
+
+func (c PolicyAssignmentRequestBodyPolicyAssignmentType) Value() string {
+ return c.value
+}
+
+func (c PolicyAssignmentRequestBodyPolicyAssignmentType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PolicyAssignmentRequestBodyPolicyAssignmentType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PolicyAssignmentRequestBodyPeriod struct {
+ value string
+}
+
+type PolicyAssignmentRequestBodyPeriodEnum struct {
+ ONE_HOUR PolicyAssignmentRequestBodyPeriod
+ THREE_HOURS PolicyAssignmentRequestBodyPeriod
+ SIX_HOURS PolicyAssignmentRequestBodyPeriod
+ TWELVE_HOURS PolicyAssignmentRequestBodyPeriod
+ TWENTY_FOUR_HOURS PolicyAssignmentRequestBodyPeriod
+}
+
+func GetPolicyAssignmentRequestBodyPeriodEnum() PolicyAssignmentRequestBodyPeriodEnum {
+ return PolicyAssignmentRequestBodyPeriodEnum{
+ ONE_HOUR: PolicyAssignmentRequestBodyPeriod{
+ value: "One_Hour",
+ },
+ THREE_HOURS: PolicyAssignmentRequestBodyPeriod{
+ value: "Three_Hours",
+ },
+ SIX_HOURS: PolicyAssignmentRequestBodyPeriod{
+ value: "Six_Hours",
+ },
+ TWELVE_HOURS: PolicyAssignmentRequestBodyPeriod{
+ value: "Twelve_Hours",
+ },
+ TWENTY_FOUR_HOURS: PolicyAssignmentRequestBodyPeriod{
+ value: "TwentyFour_Hours",
+ },
+ }
+}
+
+func (c PolicyAssignmentRequestBodyPeriod) Value() string {
+ return c.value
+}
+
+func (c PolicyAssignmentRequestBodyPeriod) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PolicyAssignmentRequestBodyPeriod) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_definition.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_definition.go
index 29d2dd62..d0732ba6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_definition.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_definition.go
@@ -27,6 +27,9 @@ type PolicyDefinition struct {
// 策略规则
PolicyRule *interface{} `json:"policy_rule,omitempty"`
+ // 触发器类型,可选值:resource, period
+ TriggerType *string `json:"trigger_type,omitempty"`
+
// 关键词列表
Keywords *[]string `json:"keywords,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_resource.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_resource.go
new file mode 100644
index 00000000..a02eefc6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_resource.go
@@ -0,0 +1,38 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源
+type PolicyResource struct {
+
+ // 资源id
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 资源名称
+ ResourceName *string `json:"resource_name,omitempty"`
+
+ // 云服务名称
+ ResourceProvider *string `json:"resource_provider,omitempty"`
+
+ // 资源类型
+ ResourceType *string `json:"resource_type,omitempty"`
+
+ // 区域id
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 资源所属用户ID
+ DomainId *string `json:"domain_id,omitempty"`
+}
+
+func (o PolicyResource) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PolicyResource struct{}"
+ }
+
+ return strings.Join([]string{"PolicyResource", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state.go
index 540db8bd..48eefefd 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state.go
@@ -27,6 +27,9 @@ type PolicyState struct {
// 资源类型
ResourceType *string `json:"resource_type,omitempty"`
+ // 触发器类型,可选值:resource, period
+ TriggerType *string `json:"trigger_type,omitempty"`
+
// 合规状态
ComplianceState *string `json:"compliance_state,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state_request_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state_request_body.go
new file mode 100644
index 00000000..0c6ea1b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_policy_state_request_body.go
@@ -0,0 +1,126 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 合规评估结果
+type PolicyStateRequestBody struct {
+ PolicyResource *PolicyResource `json:"policy_resource"`
+
+ // 触发器类型
+ TriggerType PolicyStateRequestBodyTriggerType `json:"trigger_type"`
+
+ // 合规状态
+ ComplianceState PolicyStateRequestBodyComplianceState `json:"compliance_state"`
+
+ // 规则ID
+ PolicyAssignmentId string `json:"policy_assignment_id"`
+
+ // 规则名称
+ PolicyAssignmentName *string `json:"policy_assignment_name,omitempty"`
+
+ // 合规状态评估时间
+ EvaluationTime string `json:"evaluation_time"`
+
+ // 评估校验码
+ EvaluationHash string `json:"evaluation_hash"`
+}
+
+func (o PolicyStateRequestBody) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "PolicyStateRequestBody struct{}"
+ }
+
+ return strings.Join([]string{"PolicyStateRequestBody", string(data)}, " ")
+}
+
+type PolicyStateRequestBodyTriggerType struct {
+ value string
+}
+
+type PolicyStateRequestBodyTriggerTypeEnum struct {
+ RESOURCE PolicyStateRequestBodyTriggerType
+ PERIOD PolicyStateRequestBodyTriggerType
+}
+
+func GetPolicyStateRequestBodyTriggerTypeEnum() PolicyStateRequestBodyTriggerTypeEnum {
+ return PolicyStateRequestBodyTriggerTypeEnum{
+ RESOURCE: PolicyStateRequestBodyTriggerType{
+ value: "resource",
+ },
+ PERIOD: PolicyStateRequestBodyTriggerType{
+ value: "period",
+ },
+ }
+}
+
+func (c PolicyStateRequestBodyTriggerType) Value() string {
+ return c.value
+}
+
+func (c PolicyStateRequestBodyTriggerType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PolicyStateRequestBodyTriggerType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type PolicyStateRequestBodyComplianceState struct {
+ value string
+}
+
+type PolicyStateRequestBodyComplianceStateEnum struct {
+ NON_COMPLIANT PolicyStateRequestBodyComplianceState
+ COMPLIANT PolicyStateRequestBodyComplianceState
+}
+
+func GetPolicyStateRequestBodyComplianceStateEnum() PolicyStateRequestBodyComplianceStateEnum {
+ return PolicyStateRequestBodyComplianceStateEnum{
+ NON_COMPLIANT: PolicyStateRequestBodyComplianceState{
+ value: "NonCompliant",
+ },
+ COMPLIANT: PolicyStateRequestBodyComplianceState{
+ value: "Compliant",
+ },
+ }
+}
+
+func (c PolicyStateRequestBodyComplianceState) Value() string {
+ return c.value
+}
+
+func (c PolicyStateRequestBodyComplianceState) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *PolicyStateRequestBodyComplianceState) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_counts_filters.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_counts_filters.go
new file mode 100644
index 00000000..e98ce248
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_counts_filters.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源计数过滤器。
+type ResourceCountsFilters struct {
+
+ // 帐号ID。
+ AccountId *string `json:"account_id,omitempty"`
+
+ // 资源类型。
+ ResourceType *string `json:"resource_type,omitempty"`
+
+ // 区域ID。
+ RegionId *string `json:"region_id,omitempty"`
+}
+
+func (o ResourceCountsFilters) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceCountsFilters struct{}"
+ }
+
+ return strings.Join([]string{"ResourceCountsFilters", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_identifier.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_identifier.go
new file mode 100644
index 00000000..6fb3b436
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_identifier.go
@@ -0,0 +1,37 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type ResourceIdentifier struct {
+
+ // 资源ID。
+ ResourceId string `json:"resource_id"`
+
+ // 资源名称。
+ ResourceName *string `json:"resource_name,omitempty"`
+
+ // 云服务类型。
+ Provider string `json:"provider"`
+
+ // 资源类型。
+ Type string `json:"type"`
+
+ // 源帐号ID。
+ SourceAccountId string `json:"source_account_id"`
+
+ // 资源所属区域。
+ RegionId string `json:"region_id"`
+}
+
+func (o ResourceIdentifier) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceIdentifier struct{}"
+ }
+
+ return strings.Join([]string{"ResourceIdentifier", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item.go
new file mode 100644
index 00000000..9bf5ff3e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源概要信息
+type ResourceSummaryResponseItem struct {
+
+ // 云服务名称
+ Provider *string `json:"provider,omitempty"`
+
+ // 资源类型列表
+ Types *[]ResourceSummaryResponseItemTypes `json:"types,omitempty"`
+}
+
+func (o ResourceSummaryResponseItem) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceSummaryResponseItem struct{}"
+ }
+
+ return strings.Join([]string{"ResourceSummaryResponseItem", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_regions.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_regions.go
new file mode 100644
index 00000000..5c6195a2
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_regions.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 区域概要
+type ResourceSummaryResponseItemRegions struct {
+
+ // 区域id
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 该资源类型在当前区域的数量
+ Count *int64 `json:"count,omitempty"`
+}
+
+func (o ResourceSummaryResponseItemRegions) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceSummaryResponseItemRegions struct{}"
+ }
+
+ return strings.Join([]string{"ResourceSummaryResponseItemRegions", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_types.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_types.go
new file mode 100644
index 00000000..0c0f1969
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_summary_response_item_types.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源类型
+type ResourceSummaryResponseItemTypes struct {
+
+ // 资源类型名称
+ Type *string `json:"type,omitempty"`
+
+ // 区域列表
+ Regions *[]ResourceSummaryResponseItemRegions `json:"regions,omitempty"`
+}
+
+func (o ResourceSummaryResponseItemTypes) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourceSummaryResponseItemTypes struct{}"
+ }
+
+ return strings.Join([]string{"ResourceSummaryResponseItemTypes", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_type_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_type_response.go
index 83062be0..9e5e0c5e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_type_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resource_type_response.go
@@ -29,6 +29,9 @@ type ResourceTypeResponse struct {
// console详情页地址
ConsoleDetailUrl *string `json:"console_detail_url,omitempty"`
+
+ // 资源是否默认收集,\"tracked\"表示默认收集,\"untracked\"表示默认不收集
+ Track *string `json:"track,omitempty"`
}
func (o ResourceTypeResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resources_filters.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resources_filters.go
new file mode 100644
index 00000000..7944c0a9
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_resources_filters.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 资源计数过滤器。
+type ResourcesFilters struct {
+
+ // 帐号ID。
+ AccountId *string `json:"account_id,omitempty"`
+
+ // 区域ID。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 资源ID。
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 资源名称。
+ ResourceName *string `json:"resource_name,omitempty"`
+}
+
+func (o ResourcesFilters) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ResourcesFilters struct{}"
+ }
+
+ return strings.Join([]string{"ResourcesFilters", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_request.go
new file mode 100644
index 00000000..ccaacb0c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type RunAggregateResourceQueryRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ Body *QueryRunRequestBody `json:"body,omitempty"`
+}
+
+func (o RunAggregateResourceQueryRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RunAggregateResourceQueryRequest struct{}"
+ }
+
+ return strings.Join([]string{"RunAggregateResourceQueryRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_response.go
new file mode 100644
index 00000000..2ab08e0b
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_run_aggregate_resource_query_response.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type RunAggregateResourceQueryResponse struct {
+ QueryInfo *QueryInfo `json:"query_info,omitempty"`
+
+ // ResourceQL 查询结果.
+ Results *[]interface{} `json:"results,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o RunAggregateResourceQueryResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "RunAggregateResourceQueryResponse struct{}"
+ }
+
+ return strings.Join([]string{"RunAggregateResourceQueryResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_request.go
new file mode 100644
index 00000000..26eeb211
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowAggregateDiscoveredResourceCountsRequest struct {
+ Body *AggregateDiscoveredResourceCountsRequest `json:"body,omitempty"`
+}
+
+func (o ShowAggregateDiscoveredResourceCountsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAggregateDiscoveredResourceCountsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowAggregateDiscoveredResourceCountsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_response.go
new file mode 100644
index 00000000..0d9152dd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_discovered_resource_counts_response.go
@@ -0,0 +1,30 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowAggregateDiscoveredResourceCountsResponse struct {
+
+ // 资源计数进行分组的键。
+ GroupByKey *string `json:"group_by_key,omitempty"`
+
+ // 分组资源计数的列表。
+ GroupedResourceCounts *[]GroupedResourceCount `json:"grouped_resource_counts,omitempty"`
+
+ // 指定过滤器的资源聚合器中存在的资源总数。
+ TotalDiscoveredResources *int32 `json:"total_discovered_resources,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowAggregateDiscoveredResourceCountsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAggregateDiscoveredResourceCountsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowAggregateDiscoveredResourceCountsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_request.go
new file mode 100644
index 00000000..7252a039
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowAggregateResourceConfigRequest struct {
+ Body *AggregateResourceConfigRequest `json:"body,omitempty"`
+}
+
+func (o ShowAggregateResourceConfigRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAggregateResourceConfigRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowAggregateResourceConfigRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_response.go
new file mode 100644
index 00000000..bd9da6b7
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_aggregate_resource_config_response.go
@@ -0,0 +1,63 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowAggregateResourceConfigResponse struct {
+
+ // 资源ID。
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 聚合器ID。
+ AggregatorId *string `json:"aggregator_id,omitempty"`
+
+ // 聚合器帐号。
+ AggregatorDomainId *string `json:"aggregator_domain_id,omitempty"`
+
+ // 聚合资源所属帐号的ID。
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 企业项目ID。
+ EpId *string `json:"ep_id,omitempty"`
+
+ // 云服务名称。
+ Provider *string `json:"provider,omitempty"`
+
+ // 资源类型。
+ Type *string `json:"type,omitempty"`
+
+ // 资源名称。
+ Name *string `json:"name,omitempty"`
+
+ // 区域ID。
+ RegionId *string `json:"region_id,omitempty"`
+
+ // Openstack中的项目ID。
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // 资源创建时间。
+ Created *string `json:"created,omitempty"`
+
+ // 资源更新时间。
+ Updated *string `json:"updated,omitempty"`
+
+ // 资源标签。
+ Tags map[string]string `json:"tags,omitempty"`
+
+ // 资源详细属性。
+ Properties map[string]interface{} `json:"properties,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowAggregateResourceConfigResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowAggregateResourceConfigResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowAggregateResourceConfigResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_built_in_policy_definition_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_built_in_policy_definition_response.go
index 240cd100..779b0463 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_built_in_policy_definition_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_built_in_policy_definition_response.go
@@ -27,6 +27,9 @@ type ShowBuiltInPolicyDefinitionResponse struct {
// 策略规则
PolicyRule *interface{} `json:"policy_rule,omitempty"`
+ // 触发器类型,可选值:resource, period
+ TriggerType *string `json:"trigger_type,omitempty"`
+
// 关键词列表
Keywords *[]string `json:"keywords,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_request.go
new file mode 100644
index 00000000..1f2d4452
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowConfigurationAggregatorRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+}
+
+func (o ShowConfigurationAggregatorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAggregatorRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAggregatorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_response.go
new file mode 100644
index 00000000..ba4d148c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_response.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowConfigurationAggregatorResponse struct {
+
+ // 资源聚合器名称。
+ AggregatorName *string `json:"aggregator_name,omitempty"`
+
+ // 资源聚合器ID。
+ AggregatorId *string `json:"aggregator_id,omitempty"`
+
+ // 资源聚合器标识符。
+ AggregatorUrn *string `json:"aggregator_urn,omitempty"`
+
+ // 聚合器类型。
+ AggregatorType *string `json:"aggregator_type,omitempty"`
+
+ AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
+
+ // 资源聚合器更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // 资源聚合器创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowConfigurationAggregatorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAggregatorResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAggregatorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_request.go
new file mode 100644
index 00000000..1e2c76be
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_request.go
@@ -0,0 +1,81 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowConfigurationAggregatorSourcesStatusRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ // 聚合帐号的状态。
+ UpdateStatus *ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus `json:"update_status,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ShowConfigurationAggregatorSourcesStatusRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAggregatorSourcesStatusRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAggregatorSourcesStatusRequest", string(data)}, " ")
+}
+
+type ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus struct {
+ value string
+}
+
+type ShowConfigurationAggregatorSourcesStatusRequestUpdateStatusEnum struct {
+ SUCCEEDED ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus
+ FAILED ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus
+ OUTDATED ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus
+}
+
+func GetShowConfigurationAggregatorSourcesStatusRequestUpdateStatusEnum() ShowConfigurationAggregatorSourcesStatusRequestUpdateStatusEnum {
+ return ShowConfigurationAggregatorSourcesStatusRequestUpdateStatusEnum{
+ SUCCEEDED: ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus{
+ value: "SUCCEEDED",
+ },
+ FAILED: ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus{
+ value: "FAILED",
+ },
+ OUTDATED: ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus{
+ value: "OUTDATED",
+ },
+ }
+}
+
+func (c ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) Value() string {
+ return c.value
+}
+
+func (c ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowConfigurationAggregatorSourcesStatusRequestUpdateStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_response.go
new file mode 100644
index 00000000..111d04c4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_configuration_aggregator_sources_status_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowConfigurationAggregatorSourcesStatusResponse struct {
+
+ // 资源聚合器状态列表。
+ AggregatedSourceStatuses *[]AggregatedSourceStatus `json:"aggregated_source_statuses,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowConfigurationAggregatorSourcesStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowConfigurationAggregatorSourcesStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowConfigurationAggregatorSourcesStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_request.go
new file mode 100644
index 00000000..2b5e0e4a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_request.go
@@ -0,0 +1,108 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowOrganizationPolicyAssignmentDetailedStatusRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName string `json:"organization_policy_assignment_name"`
+
+ // 成员帐号规则部署状态,区分大小写。
+ Status *ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus `json:"status,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ShowOrganizationPolicyAssignmentDetailedStatusRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentDetailedStatusRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentDetailedStatusRequest", string(data)}, " ")
+}
+
+type ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus struct {
+ value string
+}
+
+type ShowOrganizationPolicyAssignmentDetailedStatusRequestStatusEnum struct {
+ CREATE_SUCCESSFUL ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ CREATE_IN_PROGRESS ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ CREATE_FAILED ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ DELETE_SUCCESSFUL ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ DELETE_IN_PROGRESS ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ DELETE_FAILED ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ UPDATE_SUCCESSFUL ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ UPDATE_IN_PROGRESS ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+ UPDATE_FAILED ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus
+}
+
+func GetShowOrganizationPolicyAssignmentDetailedStatusRequestStatusEnum() ShowOrganizationPolicyAssignmentDetailedStatusRequestStatusEnum {
+ return ShowOrganizationPolicyAssignmentDetailedStatusRequestStatusEnum{
+ CREATE_SUCCESSFUL: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "CREATE_SUCCESSFUL",
+ },
+ CREATE_IN_PROGRESS: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "CREATE_IN_PROGRESS",
+ },
+ CREATE_FAILED: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "CREATE_FAILED",
+ },
+ DELETE_SUCCESSFUL: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "DELETE_SUCCESSFUL",
+ },
+ DELETE_IN_PROGRESS: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "DELETE_IN_PROGRESS",
+ },
+ DELETE_FAILED: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "DELETE_FAILED",
+ },
+ UPDATE_SUCCESSFUL: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "UPDATE_SUCCESSFUL",
+ },
+ UPDATE_IN_PROGRESS: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "UPDATE_IN_PROGRESS",
+ },
+ UPDATE_FAILED: ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus{
+ value: "UPDATE_FAILED",
+ },
+ }
+}
+
+func (c ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) Value() string {
+ return c.value
+}
+
+func (c ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowOrganizationPolicyAssignmentDetailedStatusRequestStatus) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_response.go
new file mode 100644
index 00000000..caf3c53a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_detailed_status_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowOrganizationPolicyAssignmentDetailedStatusResponse struct {
+
+ // 组织合规规则部署详细状态结果列表。
+ Value *[]OrganizationPolicyAssignmentDetailedStatusResponse `json:"value,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowOrganizationPolicyAssignmentDetailedStatusResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentDetailedStatusResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentDetailedStatusResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_request.go
new file mode 100644
index 00000000..ac9f880e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_request.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowOrganizationPolicyAssignmentRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId string `json:"organization_policy_assignment_id"`
+}
+
+func (o ShowOrganizationPolicyAssignmentRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_response.go
new file mode 100644
index 00000000..783c9c36
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_response.go
@@ -0,0 +1,59 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowOrganizationPolicyAssignmentResponse struct {
+
+ // 组织合规规则创建者。
+ OwnerId *string `json:"owner_id,omitempty"`
+
+ // 组织ID。
+ OrganizationId *string `json:"organization_id,omitempty"`
+
+ // 组织合规规则资源唯一标识。
+ OrganizationPolicyAssignmentUrn *string `json:"organization_policy_assignment_urn,omitempty"`
+
+ // 组织合规规则ID。
+ OrganizationPolicyAssignmentId *string `json:"organization_policy_assignment_id,omitempty"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 排除配置规则的帐号。
+ ExcludedAccounts *[]string `json:"excluded_accounts,omitempty"`
+
+ // 描述信息。
+ Description *string `json:"description,omitempty"`
+
+ // 触发周期。
+ Period *string `json:"period,omitempty"`
+
+ PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+
+ // 规则参数。
+ Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
+
+ // 策略ID。
+ PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+
+ // 创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+
+ // 更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowOrganizationPolicyAssignmentResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_request.go
new file mode 100644
index 00000000..47e0a0fa
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_request.go
@@ -0,0 +1,32 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowOrganizationPolicyAssignmentStatusesRequest struct {
+
+ // 组织ID。
+ OrganizationId string `json:"organization_id"`
+
+ // 组织合规规则名称。
+ OrganizationPolicyAssignmentName *string `json:"organization_policy_assignment_name,omitempty"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ShowOrganizationPolicyAssignmentStatusesRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentStatusesRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentStatusesRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_response.go
new file mode 100644
index 00000000..db14c30a
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_organization_policy_assignment_statuses_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowOrganizationPolicyAssignmentStatusesResponse struct {
+
+ // 组织合规规则部署状态结果列表。
+ Value *[]OrganizationPolicyAssignmentStatusResponse `json:"value,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowOrganizationPolicyAssignmentStatusesResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowOrganizationPolicyAssignmentStatusesResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowOrganizationPolicyAssignmentStatusesResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_policy_assignment_response.go
index b27b0461..1ece46b6 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_policy_assignment_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_policy_assignment_response.go
@@ -3,12 +3,18 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Response Object
type ShowPolicyAssignmentResponse struct {
+ // 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
+ PolicyAssignmentType *ShowPolicyAssignmentResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`
+
// 规则ID
Id *string `json:"id,omitempty"`
@@ -20,6 +26,9 @@ type ShowPolicyAssignmentResponse struct {
PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+ // 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
+ Period *string `json:"period,omitempty"`
+
// 规则状态
State *string `json:"state,omitempty"`
@@ -32,6 +41,8 @@ type ShowPolicyAssignmentResponse struct {
// 规则的策略ID
PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+ CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`
+
// 规则参数
Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
HttpStatusCode int `json:"-"`
@@ -45,3 +56,45 @@ func (o ShowPolicyAssignmentResponse) String() string {
return strings.Join([]string{"ShowPolicyAssignmentResponse", string(data)}, " ")
}
+
+type ShowPolicyAssignmentResponsePolicyAssignmentType struct {
+ value string
+}
+
+type ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum struct {
+ BUILTIN ShowPolicyAssignmentResponsePolicyAssignmentType
+ CUSTOM ShowPolicyAssignmentResponsePolicyAssignmentType
+}
+
+func GetShowPolicyAssignmentResponsePolicyAssignmentTypeEnum() ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum {
+ return ShowPolicyAssignmentResponsePolicyAssignmentTypeEnum{
+ BUILTIN: ShowPolicyAssignmentResponsePolicyAssignmentType{
+ value: "builtin",
+ },
+ CUSTOM: ShowPolicyAssignmentResponsePolicyAssignmentType{
+ value: "custom",
+ },
+ }
+}
+
+func (c ShowPolicyAssignmentResponsePolicyAssignmentType) Value() string {
+ return c.value
+}
+
+func (c ShowPolicyAssignmentResponsePolicyAssignmentType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowPolicyAssignmentResponsePolicyAssignmentType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_request.go
new file mode 100644
index 00000000..ea932ec4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowResourceDetailRequest struct {
+
+ // 资源ID
+ ResourceId string `json:"resource_id"`
+}
+
+func (o ShowResourceDetailRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceDetailRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceDetailRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_response.go
new file mode 100644
index 00000000..b0527d03
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_detail_response.go
@@ -0,0 +1,66 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowResourceDetailResponse struct {
+
+ // 资源id
+ Id *string `json:"id,omitempty"`
+
+ // 资源名称
+ Name *string `json:"name,omitempty"`
+
+ // 云服务名称
+ Provider *string `json:"provider,omitempty"`
+
+ // 资源类型
+ Type *string `json:"type,omitempty"`
+
+ // 区域id
+ RegionId *string `json:"region_id,omitempty"`
+
+ // Openstack中的项目id
+ ProjectId *string `json:"project_id,omitempty"`
+
+ // Openstack中的项目名称
+ ProjectName *string `json:"project_name,omitempty"`
+
+ // 企业项目id
+ EpId *string `json:"ep_id,omitempty"`
+
+ // 企业项目名称
+ EpName *string `json:"ep_name,omitempty"`
+
+ // 资源详情校验码
+ Checksum *string `json:"checksum,omitempty"`
+
+ // 资源创建时间
+ Created *string `json:"created,omitempty"`
+
+ // 资源更新时间
+ Updated *string `json:"updated,omitempty"`
+
+ // 资源操作状态
+ ProvisioningState *string `json:"provisioning_state,omitempty"`
+
+ // 资源Tag
+ Tags map[string]string `json:"tags,omitempty"`
+
+ // 资源详细属性
+ Properties map[string]interface{} `json:"properties,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowResourceDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceDetailResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_request.go
new file mode 100644
index 00000000..eac81541
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_request.go
@@ -0,0 +1,77 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type ShowResourceRelationsDetailRequest struct {
+
+ // 资源ID
+ ResourceId string `json:"resource_id"`
+
+ // 资源关系的指向。
+ Direction ShowResourceRelationsDetailRequestDirection `json:"direction"`
+
+ // 最大的返回数量
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 分页参数,通过上一个请求中返回的marker信息作为输入,获取当前页
+ Marker *string `json:"marker,omitempty"`
+}
+
+func (o ShowResourceRelationsDetailRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceRelationsDetailRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceRelationsDetailRequest", string(data)}, " ")
+}
+
+type ShowResourceRelationsDetailRequestDirection struct {
+ value string
+}
+
+type ShowResourceRelationsDetailRequestDirectionEnum struct {
+ IN ShowResourceRelationsDetailRequestDirection
+ OUT ShowResourceRelationsDetailRequestDirection
+}
+
+func GetShowResourceRelationsDetailRequestDirectionEnum() ShowResourceRelationsDetailRequestDirectionEnum {
+ return ShowResourceRelationsDetailRequestDirectionEnum{
+ IN: ShowResourceRelationsDetailRequestDirection{
+ value: "in",
+ },
+ OUT: ShowResourceRelationsDetailRequestDirection{
+ value: "out",
+ },
+ }
+}
+
+func (c ShowResourceRelationsDetailRequestDirection) Value() string {
+ return c.value
+}
+
+func (c ShowResourceRelationsDetailRequestDirection) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *ShowResourceRelationsDetailRequestDirection) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_response.go
new file mode 100644
index 00000000..1fe2617d
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_show_resource_relations_detail_response.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowResourceRelationsDetailResponse struct {
+
+ // 资源关系列表
+ Relations *[]ResourceRelation `json:"relations,omitempty"`
+
+ PageInfo *PageInfo `json:"page_info,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowResourceRelationsDetailResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowResourceRelationsDetailResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowResourceRelationsDetailResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tag_detail.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tag_detail.go
new file mode 100644
index 00000000..eacca4eb
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tag_detail.go
@@ -0,0 +1,26 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// 标签对象
+type TagDetail struct {
+
+ // 标签key
+ Key *string `json:"key,omitempty"`
+
+ // 标签值列表
+ Value *[]string `json:"value,omitempty"`
+}
+
+func (o TagDetail) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TagDetail struct{}"
+ }
+
+ return strings.Join([]string{"TagDetail", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_obs_channel_config_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_obs_channel_config_body.go
index f5b11356..bd3d875f 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_obs_channel_config_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_obs_channel_config_body.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// OBS设置对象
+// OBS设置对象。跨帐号授予OBS桶转储文件的权限请参考《用户指南- 资源记录器- 开启/配置/修改资源记录器》中的“跨帐号授权”内容。
type TrackerObsChannelConfigBody struct {
// OBS桶名称
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_smn_channel_config_body.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_smn_channel_config_body.go
index ce7e0d2a..435fd6b1 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_smn_channel_config_body.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_tracker_smn_channel_config_body.go
@@ -6,7 +6,7 @@ import (
"strings"
)
-// SMN通道设置对象
+// SMN通道设置对象。跨帐号授予SMN主题发送通知的权限请参考《用户指南- 资源记录器- 开启/配置/修改资源记录器》中的“跨帐号授权”内容。
type TrackerSmnChannelConfigBody struct {
// 区域id
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_request.go
new file mode 100644
index 00000000..f2948278
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdateConfigurationAggregatorRequest struct {
+
+ // 资源聚合器ID。
+ AggregatorId string `json:"aggregator_id"`
+
+ Body *ConfigurationAggregatorRequest `json:"body,omitempty"`
+}
+
+func (o UpdateConfigurationAggregatorRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateConfigurationAggregatorRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdateConfigurationAggregatorRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_response.go
new file mode 100644
index 00000000..bc1513b6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_configuration_aggregator_response.go
@@ -0,0 +1,41 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdateConfigurationAggregatorResponse struct {
+
+ // 资源聚合器名称。
+ AggregatorName *string `json:"aggregator_name,omitempty"`
+
+ // 资源聚合器ID。
+ AggregatorId *string `json:"aggregator_id,omitempty"`
+
+ // 资源聚合器标识符。
+ AggregatorUrn *string `json:"aggregator_urn,omitempty"`
+
+ // 聚合器类型。
+ AggregatorType *string `json:"aggregator_type,omitempty"`
+
+ AccountAggregationSources *AccountAggregationSource `json:"account_aggregation_sources,omitempty"`
+
+ // 资源聚合器更新时间。
+ UpdatedAt *string `json:"updated_at,omitempty"`
+
+ // 资源聚合器创建时间。
+ CreatedAt *string `json:"created_at,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdateConfigurationAggregatorResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdateConfigurationAggregatorResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdateConfigurationAggregatorResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_assignment_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_assignment_response.go
index a2ed6355..5acc75af 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_assignment_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_assignment_response.go
@@ -3,12 +3,18 @@ package model
import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
"strings"
)
// Response Object
type UpdatePolicyAssignmentResponse struct {
+ // 规则类型,包括预定义合规规则(builtin)和用户自定义合规规则(custom)
+ PolicyAssignmentType *UpdatePolicyAssignmentResponsePolicyAssignmentType `json:"policy_assignment_type,omitempty"`
+
// 规则ID
Id *string `json:"id,omitempty"`
@@ -20,6 +26,9 @@ type UpdatePolicyAssignmentResponse struct {
PolicyFilter *PolicyFilterDefinition `json:"policy_filter,omitempty"`
+ // 触发周期值,可选值:One_Hour, Three_Hours, Six_Hours, Twelve_Hours, TwentyFour_Hours
+ Period *string `json:"period,omitempty"`
+
// 规则状态
State *string `json:"state,omitempty"`
@@ -32,6 +41,8 @@ type UpdatePolicyAssignmentResponse struct {
// 规则的策略ID
PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+ CustomPolicy *CustomPolicy `json:"custom_policy,omitempty"`
+
// 规则参数
Parameters map[string]PolicyParameterValue `json:"parameters,omitempty"`
HttpStatusCode int `json:"-"`
@@ -45,3 +56,45 @@ func (o UpdatePolicyAssignmentResponse) String() string {
return strings.Join([]string{"UpdatePolicyAssignmentResponse", string(data)}, " ")
}
+
+type UpdatePolicyAssignmentResponsePolicyAssignmentType struct {
+ value string
+}
+
+type UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum struct {
+ BUILTIN UpdatePolicyAssignmentResponsePolicyAssignmentType
+ CUSTOM UpdatePolicyAssignmentResponsePolicyAssignmentType
+}
+
+func GetUpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum() UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum {
+ return UpdatePolicyAssignmentResponsePolicyAssignmentTypeEnum{
+ BUILTIN: UpdatePolicyAssignmentResponsePolicyAssignmentType{
+ value: "builtin",
+ },
+ CUSTOM: UpdatePolicyAssignmentResponsePolicyAssignmentType{
+ value: "custom",
+ },
+ }
+}
+
+func (c UpdatePolicyAssignmentResponsePolicyAssignmentType) Value() string {
+ return c.value
+}
+
+func (c UpdatePolicyAssignmentResponsePolicyAssignmentType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *UpdatePolicyAssignmentResponsePolicyAssignmentType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_request.go
new file mode 100644
index 00000000..a3f863a6
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_request.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type UpdatePolicyStateRequest struct {
+ Body *PolicyStateRequestBody `json:"body,omitempty"`
+}
+
+func (o UpdatePolicyStateRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdatePolicyStateRequest struct{}"
+ }
+
+ return strings.Join([]string{"UpdatePolicyStateRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_response.go
new file mode 100644
index 00000000..53bfc0fc
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model/model_update_policy_state_response.go
@@ -0,0 +1,57 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type UpdatePolicyStateResponse struct {
+
+ // 用户ID
+ DomainId *string `json:"domain_id,omitempty"`
+
+ // 资源区域ID
+ RegionId *string `json:"region_id,omitempty"`
+
+ // 资源ID
+ ResourceId *string `json:"resource_id,omitempty"`
+
+ // 资源名称
+ ResourceName *string `json:"resource_name,omitempty"`
+
+ // 云服务名称
+ ResourceProvider *string `json:"resource_provider,omitempty"`
+
+ // 资源类型
+ ResourceType *string `json:"resource_type,omitempty"`
+
+ // 触发器类型,可选值:resource, period
+ TriggerType *string `json:"trigger_type,omitempty"`
+
+ // 合规状态
+ ComplianceState *string `json:"compliance_state,omitempty"`
+
+ // 规则ID
+ PolicyAssignmentId *string `json:"policy_assignment_id,omitempty"`
+
+ // 规则名称
+ PolicyAssignmentName *string `json:"policy_assignment_name,omitempty"`
+
+ // 策略ID
+ PolicyDefinitionId *string `json:"policy_definition_id,omitempty"`
+
+ // 合规状态评估时间
+ EvaluationTime *string `json:"evaluation_time,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o UpdatePolicyStateResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "UpdatePolicyStateResponse struct{}"
+ }
+
+ return strings.Join([]string{"UpdatePolicyStateResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/region/region.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/region/region.go
index d3634bf2..0b0d76dc 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/region/region.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/region/region.go
@@ -5,7 +5,10 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/core/region"
)
-var CN_NORTH_4 = region.NewRegion("cn-north-4", "https://rms.myhuaweicloud.com")
+var (
+ CN_NORTH_4 = region.NewRegion("cn-north-4",
+ "https://rms.myhuaweicloud.com")
+)
var staticFields = map[string]*region.Region{
"cn-north-4": CN_NORTH_4,
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_client.go
index f925d004..eab4bd88 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_client.go
@@ -19,12 +19,326 @@ func RmsClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
+// CreateAggregationAuthorization 创建资源聚合器授权
+//
+// 给资源聚合器帐号授予从源帐号收集数据的权限。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) CreateAggregationAuthorization(request *model.CreateAggregationAuthorizationRequest) (*model.CreateAggregationAuthorizationResponse, error) {
+ requestDef := GenReqDefForCreateAggregationAuthorization()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateAggregationAuthorizationResponse), nil
+ }
+}
+
+// CreateAggregationAuthorizationInvoker 创建资源聚合器授权
+func (c *RmsClient) CreateAggregationAuthorizationInvoker(request *model.CreateAggregationAuthorizationRequest) *CreateAggregationAuthorizationInvoker {
+ requestDef := GenReqDefForCreateAggregationAuthorization()
+ return &CreateAggregationAuthorizationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CreateConfigurationAggregator 创建资源聚合器
+//
+// 创建资源聚合器。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) CreateConfigurationAggregator(request *model.CreateConfigurationAggregatorRequest) (*model.CreateConfigurationAggregatorResponse, error) {
+ requestDef := GenReqDefForCreateConfigurationAggregator()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateConfigurationAggregatorResponse), nil
+ }
+}
+
+// CreateConfigurationAggregatorInvoker 创建资源聚合器
+func (c *RmsClient) CreateConfigurationAggregatorInvoker(request *model.CreateConfigurationAggregatorRequest) *CreateConfigurationAggregatorInvoker {
+ requestDef := GenReqDefForCreateConfigurationAggregator()
+ return &CreateConfigurationAggregatorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteAggregationAuthorization 删除资源聚合器授权
+//
+// 删除指定资源聚合器帐号的授权。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) DeleteAggregationAuthorization(request *model.DeleteAggregationAuthorizationRequest) (*model.DeleteAggregationAuthorizationResponse, error) {
+ requestDef := GenReqDefForDeleteAggregationAuthorization()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteAggregationAuthorizationResponse), nil
+ }
+}
+
+// DeleteAggregationAuthorizationInvoker 删除资源聚合器授权
+func (c *RmsClient) DeleteAggregationAuthorizationInvoker(request *model.DeleteAggregationAuthorizationRequest) *DeleteAggregationAuthorizationInvoker {
+ requestDef := GenReqDefForDeleteAggregationAuthorization()
+ return &DeleteAggregationAuthorizationInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeleteConfigurationAggregator 删除资源聚合器
+//
+// 删除资源聚合器。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) DeleteConfigurationAggregator(request *model.DeleteConfigurationAggregatorRequest) (*model.DeleteConfigurationAggregatorResponse, error) {
+ requestDef := GenReqDefForDeleteConfigurationAggregator()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteConfigurationAggregatorResponse), nil
+ }
+}
+
+// DeleteConfigurationAggregatorInvoker 删除资源聚合器
+func (c *RmsClient) DeleteConfigurationAggregatorInvoker(request *model.DeleteConfigurationAggregatorRequest) *DeleteConfigurationAggregatorInvoker {
+ requestDef := GenReqDefForDeleteConfigurationAggregator()
+ return &DeleteConfigurationAggregatorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// DeletePendingAggregationRequest 删除聚合器帐号中挂起的授权请求
+//
+// 删除聚合器帐号中挂起的授权请求。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) DeletePendingAggregationRequest(request *model.DeletePendingAggregationRequestRequest) (*model.DeletePendingAggregationRequestResponse, error) {
+ requestDef := GenReqDefForDeletePendingAggregationRequest()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeletePendingAggregationRequestResponse), nil
+ }
+}
+
+// DeletePendingAggregationRequestInvoker 删除聚合器帐号中挂起的授权请求
+func (c *RmsClient) DeletePendingAggregationRequestInvoker(request *model.DeletePendingAggregationRequestRequest) *DeletePendingAggregationRequestInvoker {
+ requestDef := GenReqDefForDeletePendingAggregationRequest()
+ return &DeletePendingAggregationRequestInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAggregateDiscoveredResources 查询聚合器中资源的列表
+//
+// 查询资源聚合器中特定资源的列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListAggregateDiscoveredResources(request *model.ListAggregateDiscoveredResourcesRequest) (*model.ListAggregateDiscoveredResourcesResponse, error) {
+ requestDef := GenReqDefForListAggregateDiscoveredResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAggregateDiscoveredResourcesResponse), nil
+ }
+}
+
+// ListAggregateDiscoveredResourcesInvoker 查询聚合器中资源的列表
+func (c *RmsClient) ListAggregateDiscoveredResourcesInvoker(request *model.ListAggregateDiscoveredResourcesRequest) *ListAggregateDiscoveredResourcesInvoker {
+ requestDef := GenReqDefForListAggregateDiscoveredResources()
+ return &ListAggregateDiscoveredResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListAggregationAuthorizations 查询资源聚合器授权列表
+//
+// 查询授权过的资源聚合器列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListAggregationAuthorizations(request *model.ListAggregationAuthorizationsRequest) (*model.ListAggregationAuthorizationsResponse, error) {
+ requestDef := GenReqDefForListAggregationAuthorizations()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAggregationAuthorizationsResponse), nil
+ }
+}
+
+// ListAggregationAuthorizationsInvoker 查询资源聚合器授权列表
+func (c *RmsClient) ListAggregationAuthorizationsInvoker(request *model.ListAggregationAuthorizationsRequest) *ListAggregationAuthorizationsInvoker {
+ requestDef := GenReqDefForListAggregationAuthorizations()
+ return &ListAggregationAuthorizationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListConfigurationAggregators 查询资源聚合器列表
+//
+// 查询资源聚合器列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListConfigurationAggregators(request *model.ListConfigurationAggregatorsRequest) (*model.ListConfigurationAggregatorsResponse, error) {
+ requestDef := GenReqDefForListConfigurationAggregators()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListConfigurationAggregatorsResponse), nil
+ }
+}
+
+// ListConfigurationAggregatorsInvoker 查询资源聚合器列表
+func (c *RmsClient) ListConfigurationAggregatorsInvoker(request *model.ListConfigurationAggregatorsRequest) *ListConfigurationAggregatorsInvoker {
+ requestDef := GenReqDefForListConfigurationAggregators()
+ return &ListConfigurationAggregatorsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ListPendingAggregationRequests 查询所有挂起的聚合请求列表
+//
+// 查询所有挂起的聚合请求列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListPendingAggregationRequests(request *model.ListPendingAggregationRequestsRequest) (*model.ListPendingAggregationRequestsResponse, error) {
+ requestDef := GenReqDefForListPendingAggregationRequests()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListPendingAggregationRequestsResponse), nil
+ }
+}
+
+// ListPendingAggregationRequestsInvoker 查询所有挂起的聚合请求列表
+func (c *RmsClient) ListPendingAggregationRequestsInvoker(request *model.ListPendingAggregationRequestsRequest) *ListPendingAggregationRequestsInvoker {
+ requestDef := GenReqDefForListPendingAggregationRequests()
+ return &ListPendingAggregationRequestsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// RunAggregateResourceQuery 对指定聚合器执行高级查询
+//
+// 对指定聚合器执行高级查询。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) RunAggregateResourceQuery(request *model.RunAggregateResourceQueryRequest) (*model.RunAggregateResourceQueryResponse, error) {
+ requestDef := GenReqDefForRunAggregateResourceQuery()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.RunAggregateResourceQueryResponse), nil
+ }
+}
+
+// RunAggregateResourceQueryInvoker 对指定聚合器执行高级查询
+func (c *RmsClient) RunAggregateResourceQueryInvoker(request *model.RunAggregateResourceQueryRequest) *RunAggregateResourceQueryInvoker {
+ requestDef := GenReqDefForRunAggregateResourceQuery()
+ return &RunAggregateResourceQueryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowAggregateDiscoveredResourceCounts 查询聚合器中帐号资源的计数
+//
+// 查询聚合器中帐号资源的计数,支持通过过滤器和GroupByKey来统计资源数量。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowAggregateDiscoveredResourceCounts(request *model.ShowAggregateDiscoveredResourceCountsRequest) (*model.ShowAggregateDiscoveredResourceCountsResponse, error) {
+ requestDef := GenReqDefForShowAggregateDiscoveredResourceCounts()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowAggregateDiscoveredResourceCountsResponse), nil
+ }
+}
+
+// ShowAggregateDiscoveredResourceCountsInvoker 查询聚合器中帐号资源的计数
+func (c *RmsClient) ShowAggregateDiscoveredResourceCountsInvoker(request *model.ShowAggregateDiscoveredResourceCountsRequest) *ShowAggregateDiscoveredResourceCountsInvoker {
+ requestDef := GenReqDefForShowAggregateDiscoveredResourceCounts()
+ return &ShowAggregateDiscoveredResourceCountsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowAggregateResourceConfig 查询源帐号中资源的详情
+//
+// 查询源帐号中特定资源的详情。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowAggregateResourceConfig(request *model.ShowAggregateResourceConfigRequest) (*model.ShowAggregateResourceConfigResponse, error) {
+ requestDef := GenReqDefForShowAggregateResourceConfig()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowAggregateResourceConfigResponse), nil
+ }
+}
+
+// ShowAggregateResourceConfigInvoker 查询源帐号中资源的详情
+func (c *RmsClient) ShowAggregateResourceConfigInvoker(request *model.ShowAggregateResourceConfigRequest) *ShowAggregateResourceConfigInvoker {
+ requestDef := GenReqDefForShowAggregateResourceConfig()
+ return &ShowAggregateResourceConfigInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowConfigurationAggregator 查询指定资源聚合器
+//
+// 查询指定资源聚合器。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowConfigurationAggregator(request *model.ShowConfigurationAggregatorRequest) (*model.ShowConfigurationAggregatorResponse, error) {
+ requestDef := GenReqDefForShowConfigurationAggregator()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationAggregatorResponse), nil
+ }
+}
+
+// ShowConfigurationAggregatorInvoker 查询指定资源聚合器
+func (c *RmsClient) ShowConfigurationAggregatorInvoker(request *model.ShowConfigurationAggregatorRequest) *ShowConfigurationAggregatorInvoker {
+ requestDef := GenReqDefForShowConfigurationAggregator()
+ return &ShowConfigurationAggregatorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowConfigurationAggregatorSourcesStatus 查询指定资源聚合器聚合帐号的状态信息
+//
+// 查询指定资源聚合器聚合帐号的状态信息,状态包括验证源帐号和聚合器帐号之间授权的信息。如果失败,状态包含相关的错误码或消息。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowConfigurationAggregatorSourcesStatus(request *model.ShowConfigurationAggregatorSourcesStatusRequest) (*model.ShowConfigurationAggregatorSourcesStatusResponse, error) {
+ requestDef := GenReqDefForShowConfigurationAggregatorSourcesStatus()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowConfigurationAggregatorSourcesStatusResponse), nil
+ }
+}
+
+// ShowConfigurationAggregatorSourcesStatusInvoker 查询指定资源聚合器聚合帐号的状态信息
+func (c *RmsClient) ShowConfigurationAggregatorSourcesStatusInvoker(request *model.ShowConfigurationAggregatorSourcesStatusRequest) *ShowConfigurationAggregatorSourcesStatusInvoker {
+ requestDef := GenReqDefForShowConfigurationAggregatorSourcesStatus()
+ return &ShowConfigurationAggregatorSourcesStatusInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// UpdateConfigurationAggregator 更新资源聚合器
+//
+// 更新资源聚合器。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) UpdateConfigurationAggregator(request *model.UpdateConfigurationAggregatorRequest) (*model.UpdateConfigurationAggregatorResponse, error) {
+ requestDef := GenReqDefForUpdateConfigurationAggregator()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdateConfigurationAggregatorResponse), nil
+ }
+}
+
+// UpdateConfigurationAggregatorInvoker 更新资源聚合器
+func (c *RmsClient) UpdateConfigurationAggregatorInvoker(request *model.UpdateConfigurationAggregatorRequest) *UpdateConfigurationAggregatorInvoker {
+ requestDef := GenReqDefForUpdateConfigurationAggregator()
+ return &UpdateConfigurationAggregatorInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowResourceHistory 查询资源历史
//
// 查询资源与资源关系的变更历史
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowResourceHistory(request *model.ShowResourceHistoryRequest) (*model.ShowResourceHistoryResponse, error) {
requestDef := GenReqDefForShowResourceHistory()
@@ -41,12 +355,32 @@ func (c *RmsClient) ShowResourceHistoryInvoker(request *model.ShowResourceHistor
return &ShowResourceHistoryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CreateOrganizationPolicyAssignment 创建或更新组织合规规则
+//
+// 创建或更新组织合规规则,如果规则名称已存在,则为更新操作。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) CreateOrganizationPolicyAssignment(request *model.CreateOrganizationPolicyAssignmentRequest) (*model.CreateOrganizationPolicyAssignmentResponse, error) {
+ requestDef := GenReqDefForCreateOrganizationPolicyAssignment()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
+// CreateOrganizationPolicyAssignmentInvoker 创建或更新组织合规规则
+func (c *RmsClient) CreateOrganizationPolicyAssignmentInvoker(request *model.CreateOrganizationPolicyAssignmentRequest) *CreateOrganizationPolicyAssignmentInvoker {
+ requestDef := GenReqDefForCreateOrganizationPolicyAssignment()
+ return &CreateOrganizationPolicyAssignmentInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreatePolicyAssignments 创建合规规则
//
// 创建新的合规规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) CreatePolicyAssignments(request *model.CreatePolicyAssignmentsRequest) (*model.CreatePolicyAssignmentsResponse, error) {
requestDef := GenReqDefForCreatePolicyAssignments()
@@ -63,12 +397,32 @@ func (c *RmsClient) CreatePolicyAssignmentsInvoker(request *model.CreatePolicyAs
return &CreatePolicyAssignmentsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// DeleteOrganizationPolicyAssignment 删除组织合规规则
+//
+// 删除组织合规规则。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) DeleteOrganizationPolicyAssignment(request *model.DeleteOrganizationPolicyAssignmentRequest) (*model.DeleteOrganizationPolicyAssignmentResponse, error) {
+ requestDef := GenReqDefForDeleteOrganizationPolicyAssignment()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.DeleteOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
+// DeleteOrganizationPolicyAssignmentInvoker 删除组织合规规则
+func (c *RmsClient) DeleteOrganizationPolicyAssignmentInvoker(request *model.DeleteOrganizationPolicyAssignmentRequest) *DeleteOrganizationPolicyAssignmentInvoker {
+ requestDef := GenReqDefForDeleteOrganizationPolicyAssignment()
+ return &DeleteOrganizationPolicyAssignmentInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// DeletePolicyAssignment 删除合规规则
//
// 根据规则ID删除此规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) DeletePolicyAssignment(request *model.DeletePolicyAssignmentRequest) (*model.DeletePolicyAssignmentResponse, error) {
requestDef := GenReqDefForDeletePolicyAssignment()
@@ -89,8 +443,7 @@ func (c *RmsClient) DeletePolicyAssignmentInvoker(request *model.DeletePolicyAss
//
// 根据规则ID停用此规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) DisablePolicyAssignment(request *model.DisablePolicyAssignmentRequest) (*model.DisablePolicyAssignmentResponse, error) {
requestDef := GenReqDefForDisablePolicyAssignment()
@@ -111,8 +464,7 @@ func (c *RmsClient) DisablePolicyAssignmentInvoker(request *model.DisablePolicyA
//
// 根据规则ID启用此规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) EnablePolicyAssignment(request *model.EnablePolicyAssignmentRequest) (*model.EnablePolicyAssignmentResponse, error) {
requestDef := GenReqDefForEnablePolicyAssignment()
@@ -133,8 +485,7 @@ func (c *RmsClient) EnablePolicyAssignmentInvoker(request *model.EnablePolicyAss
//
// 列出用户的内置策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListBuiltInPolicyDefinitions(request *model.ListBuiltInPolicyDefinitionsRequest) (*model.ListBuiltInPolicyDefinitionsResponse, error) {
requestDef := GenReqDefForListBuiltInPolicyDefinitions()
@@ -151,12 +502,32 @@ func (c *RmsClient) ListBuiltInPolicyDefinitionsInvoker(request *model.ListBuilt
return &ListBuiltInPolicyDefinitionsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListOrganizationPolicyAssignments 查询组织合规规则列表
+//
+// 查询组织合规规则列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListOrganizationPolicyAssignments(request *model.ListOrganizationPolicyAssignmentsRequest) (*model.ListOrganizationPolicyAssignmentsResponse, error) {
+ requestDef := GenReqDefForListOrganizationPolicyAssignments()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListOrganizationPolicyAssignmentsResponse), nil
+ }
+}
+
+// ListOrganizationPolicyAssignmentsInvoker 查询组织合规规则列表
+func (c *RmsClient) ListOrganizationPolicyAssignmentsInvoker(request *model.ListOrganizationPolicyAssignmentsRequest) *ListOrganizationPolicyAssignmentsInvoker {
+ requestDef := GenReqDefForListOrganizationPolicyAssignments()
+ return &ListOrganizationPolicyAssignmentsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListPolicyAssignments 列出合规规则
//
// 列出用户的合规规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListPolicyAssignments(request *model.ListPolicyAssignmentsRequest) (*model.ListPolicyAssignmentsResponse, error) {
requestDef := GenReqDefForListPolicyAssignments()
@@ -177,8 +548,7 @@ func (c *RmsClient) ListPolicyAssignmentsInvoker(request *model.ListPolicyAssign
//
// 根据规则ID查询所有的合规结果
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListPolicyStatesByAssignmentId(request *model.ListPolicyStatesByAssignmentIdRequest) (*model.ListPolicyStatesByAssignmentIdResponse, error) {
requestDef := GenReqDefForListPolicyStatesByAssignmentId()
@@ -199,8 +569,7 @@ func (c *RmsClient) ListPolicyStatesByAssignmentIdInvoker(request *model.ListPol
//
// 查询用户所有的合规结果
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListPolicyStatesByDomainId(request *model.ListPolicyStatesByDomainIdRequest) (*model.ListPolicyStatesByDomainIdResponse, error) {
requestDef := GenReqDefForListPolicyStatesByDomainId()
@@ -221,8 +590,7 @@ func (c *RmsClient) ListPolicyStatesByDomainIdInvoker(request *model.ListPolicyS
//
// 根据资源ID查询所有合规结果
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListPolicyStatesByResourceId(request *model.ListPolicyStatesByResourceIdRequest) (*model.ListPolicyStatesByResourceIdResponse, error) {
requestDef := GenReqDefForListPolicyStatesByResourceId()
@@ -243,8 +611,7 @@ func (c *RmsClient) ListPolicyStatesByResourceIdInvoker(request *model.ListPolic
//
// 根据规则ID评估此规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) RunEvaluationByPolicyAssignmentId(request *model.RunEvaluationByPolicyAssignmentIdRequest) (*model.RunEvaluationByPolicyAssignmentIdResponse, error) {
requestDef := GenReqDefForRunEvaluationByPolicyAssignmentId()
@@ -265,8 +632,7 @@ func (c *RmsClient) RunEvaluationByPolicyAssignmentIdInvoker(request *model.RunE
//
// 根据策略ID查询单个内置策略
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowBuiltInPolicyDefinition(request *model.ShowBuiltInPolicyDefinitionRequest) (*model.ShowBuiltInPolicyDefinitionResponse, error) {
requestDef := GenReqDefForShowBuiltInPolicyDefinition()
@@ -287,8 +653,7 @@ func (c *RmsClient) ShowBuiltInPolicyDefinitionInvoker(request *model.ShowBuiltI
//
// 根据规则ID查询此规则的评估状态
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowEvaluationStateByAssignmentId(request *model.ShowEvaluationStateByAssignmentIdRequest) (*model.ShowEvaluationStateByAssignmentIdResponse, error) {
requestDef := GenReqDefForShowEvaluationStateByAssignmentId()
@@ -305,12 +670,74 @@ func (c *RmsClient) ShowEvaluationStateByAssignmentIdInvoker(request *model.Show
return &ShowEvaluationStateByAssignmentIdInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowOrganizationPolicyAssignment 查询指定组织合规规则
+//
+// 查询指定组织合规规则。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowOrganizationPolicyAssignment(request *model.ShowOrganizationPolicyAssignmentRequest) (*model.ShowOrganizationPolicyAssignmentResponse, error) {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignment()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
+// ShowOrganizationPolicyAssignmentInvoker 查询指定组织合规规则
+func (c *RmsClient) ShowOrganizationPolicyAssignmentInvoker(request *model.ShowOrganizationPolicyAssignmentRequest) *ShowOrganizationPolicyAssignmentInvoker {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignment()
+ return &ShowOrganizationPolicyAssignmentInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowOrganizationPolicyAssignmentDetailedStatus 查询组织内每个成员帐号合规规则部署的详细状态
+//
+// 查询组织内每个成员帐号合规规则部署的详细状态。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowOrganizationPolicyAssignmentDetailedStatus(request *model.ShowOrganizationPolicyAssignmentDetailedStatusRequest) (*model.ShowOrganizationPolicyAssignmentDetailedStatusResponse, error) {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignmentDetailedStatus()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowOrganizationPolicyAssignmentDetailedStatusResponse), nil
+ }
+}
+
+// ShowOrganizationPolicyAssignmentDetailedStatusInvoker 查询组织内每个成员帐号合规规则部署的详细状态
+func (c *RmsClient) ShowOrganizationPolicyAssignmentDetailedStatusInvoker(request *model.ShowOrganizationPolicyAssignmentDetailedStatusRequest) *ShowOrganizationPolicyAssignmentDetailedStatusInvoker {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignmentDetailedStatus()
+ return &ShowOrganizationPolicyAssignmentDetailedStatusInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowOrganizationPolicyAssignmentStatuses 查询组织合规规则部署状态
+//
+// 查询组织合规规则部署状态。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowOrganizationPolicyAssignmentStatuses(request *model.ShowOrganizationPolicyAssignmentStatusesRequest) (*model.ShowOrganizationPolicyAssignmentStatusesResponse, error) {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignmentStatuses()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowOrganizationPolicyAssignmentStatusesResponse), nil
+ }
+}
+
+// ShowOrganizationPolicyAssignmentStatusesInvoker 查询组织合规规则部署状态
+func (c *RmsClient) ShowOrganizationPolicyAssignmentStatusesInvoker(request *model.ShowOrganizationPolicyAssignmentStatusesRequest) *ShowOrganizationPolicyAssignmentStatusesInvoker {
+ requestDef := GenReqDefForShowOrganizationPolicyAssignmentStatuses()
+ return &ShowOrganizationPolicyAssignmentStatusesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowPolicyAssignment 获取单个合规规则
//
// 根据规则ID获取单个规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowPolicyAssignment(request *model.ShowPolicyAssignmentRequest) (*model.ShowPolicyAssignmentResponse, error) {
requestDef := GenReqDefForShowPolicyAssignment()
@@ -331,8 +758,7 @@ func (c *RmsClient) ShowPolicyAssignmentInvoker(request *model.ShowPolicyAssignm
//
// 更新用户的合规规则
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) UpdatePolicyAssignment(request *model.UpdatePolicyAssignmentRequest) (*model.UpdatePolicyAssignmentResponse, error) {
requestDef := GenReqDefForUpdatePolicyAssignment()
@@ -349,12 +775,32 @@ func (c *RmsClient) UpdatePolicyAssignmentInvoker(request *model.UpdatePolicyAss
return &UpdatePolicyAssignmentInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// UpdatePolicyState 更新合规评估结果
+//
+// 更新用户自定义合规规则的合规评估结果
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) UpdatePolicyState(request *model.UpdatePolicyStateRequest) (*model.UpdatePolicyStateResponse, error) {
+ requestDef := GenReqDefForUpdatePolicyState()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.UpdatePolicyStateResponse), nil
+ }
+}
+
+// UpdatePolicyStateInvoker 更新合规评估结果
+func (c *RmsClient) UpdatePolicyStateInvoker(request *model.UpdatePolicyStateRequest) *UpdatePolicyStateInvoker {
+ requestDef := GenReqDefForUpdatePolicyState()
+ return &UpdatePolicyStateInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateStoredQuery 创建高级查询
//
// 创建新的高级查询
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) CreateStoredQuery(request *model.CreateStoredQueryRequest) (*model.CreateStoredQueryResponse, error) {
requestDef := GenReqDefForCreateStoredQuery()
@@ -375,8 +821,7 @@ func (c *RmsClient) CreateStoredQueryInvoker(request *model.CreateStoredQueryReq
//
// 删除单个高级查询
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) DeleteStoredQuery(request *model.DeleteStoredQueryRequest) (*model.DeleteStoredQueryResponse, error) {
requestDef := GenReqDefForDeleteStoredQuery()
@@ -397,8 +842,7 @@ func (c *RmsClient) DeleteStoredQueryInvoker(request *model.DeleteStoredQueryReq
//
// List Schemas
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListSchemas(request *model.ListSchemasRequest) (*model.ListSchemasResponse, error) {
requestDef := GenReqDefForListSchemas()
@@ -419,8 +863,7 @@ func (c *RmsClient) ListSchemasInvoker(request *model.ListSchemasRequest) *ListS
//
// 列举所有高级查询
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListStoredQueries(request *model.ListStoredQueriesRequest) (*model.ListStoredQueriesResponse, error) {
requestDef := GenReqDefForListStoredQueries()
@@ -441,8 +884,7 @@ func (c *RmsClient) ListStoredQueriesInvoker(request *model.ListStoredQueriesReq
//
// 执行高级查询
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) RunQuery(request *model.RunQueryRequest) (*model.RunQueryResponse, error) {
requestDef := GenReqDefForRunQuery()
@@ -463,8 +905,7 @@ func (c *RmsClient) RunQueryInvoker(request *model.RunQueryRequest) *RunQueryInv
//
// Show Resource Query Language
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowStoredQuery(request *model.ShowStoredQueryRequest) (*model.ShowStoredQueryResponse, error) {
requestDef := GenReqDefForShowStoredQuery()
@@ -485,8 +926,7 @@ func (c *RmsClient) ShowStoredQueryInvoker(request *model.ShowStoredQueryRequest
//
// 更新自定义查询
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) UpdateStoredQuery(request *model.UpdateStoredQueryRequest) (*model.UpdateStoredQueryResponse, error) {
requestDef := GenReqDefForUpdateStoredQuery()
@@ -507,8 +947,7 @@ func (c *RmsClient) UpdateStoredQueryInvoker(request *model.UpdateStoredQueryReq
//
// 查询用户可见的区域
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListRegions(request *model.ListRegionsRequest) (*model.ListRegionsResponse, error) {
requestDef := GenReqDefForListRegions()
@@ -529,8 +968,7 @@ func (c *RmsClient) ListRegionsInvoker(request *model.ListRegionsRequest) *ListR
//
// 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为\"in\" 或者\"out\"
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowResourceRelations(request *model.ShowResourceRelationsRequest) (*model.ShowResourceRelationsResponse, error) {
requestDef := GenReqDefForShowResourceRelations()
@@ -547,12 +985,74 @@ func (c *RmsClient) ShowResourceRelationsInvoker(request *model.ShowResourceRela
return &ShowResourceRelationsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowResourceRelationsDetail 列举资源关系详情
+//
+// 指定资源ID,查询该资源与其他资源的关联关系,可以指定关系方向为“in”或者“out”,需要当帐号有rms:resources:getRelation权限。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowResourceRelationsDetail(request *model.ShowResourceRelationsDetailRequest) (*model.ShowResourceRelationsDetailResponse, error) {
+ requestDef := GenReqDefForShowResourceRelationsDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowResourceRelationsDetailResponse), nil
+ }
+}
+
+// ShowResourceRelationsDetailInvoker 列举资源关系详情
+func (c *RmsClient) ShowResourceRelationsDetailInvoker(request *model.ShowResourceRelationsDetailRequest) *ShowResourceRelationsDetailInvoker {
+ requestDef := GenReqDefForShowResourceRelationsDetail()
+ return &ShowResourceRelationsDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CollectAllResourcesSummary 列举资源概要
+//
+// 查询当前帐号的资源概览。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) CollectAllResourcesSummary(request *model.CollectAllResourcesSummaryRequest) (*model.CollectAllResourcesSummaryResponse, error) {
+ requestDef := GenReqDefForCollectAllResourcesSummary()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CollectAllResourcesSummaryResponse), nil
+ }
+}
+
+// CollectAllResourcesSummaryInvoker 列举资源概要
+func (c *RmsClient) CollectAllResourcesSummaryInvoker(request *model.CollectAllResourcesSummaryRequest) *CollectAllResourcesSummaryInvoker {
+ requestDef := GenReqDefForCollectAllResourcesSummary()
+ return &CollectAllResourcesSummaryInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// CountAllResources 查询资源数量
+//
+// 查询当前帐号的资源数量。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) CountAllResources(request *model.CountAllResourcesRequest) (*model.CountAllResourcesResponse, error) {
+ requestDef := GenReqDefForCountAllResources()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CountAllResourcesResponse), nil
+ }
+}
+
+// CountAllResourcesInvoker 查询资源数量
+func (c *RmsClient) CountAllResourcesInvoker(request *model.CountAllResourcesRequest) *CountAllResourcesInvoker {
+ requestDef := GenReqDefForCountAllResources()
+ return &CountAllResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListAllResources 列举所有资源
//
// 返回当前用户下所有资源,需要当前用户有rms:resources:list权限。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListAllResources(request *model.ListAllResourcesRequest) (*model.ListAllResourcesResponse, error) {
requestDef := GenReqDefForListAllResources()
@@ -569,12 +1069,32 @@ func (c *RmsClient) ListAllResourcesInvoker(request *model.ListAllResourcesReque
return &ListAllResourcesInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListAllTags 列举资源标签
+//
+// 查询当前帐号下所有资源的标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ListAllTags(request *model.ListAllTagsRequest) (*model.ListAllTagsResponse, error) {
+ requestDef := GenReqDefForListAllTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListAllTagsResponse), nil
+ }
+}
+
+// ListAllTagsInvoker 列举资源标签
+func (c *RmsClient) ListAllTagsInvoker(request *model.ListAllTagsRequest) *ListAllTagsInvoker {
+ requestDef := GenReqDefForListAllTags()
+ return &ListAllTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ListProviders 列举云服务
//
// 查询RMS支持的云服务、资源、区域列表
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListProviders(request *model.ListProvidersRequest) (*model.ListProvidersResponse, error) {
requestDef := GenReqDefForListProviders()
@@ -595,8 +1115,7 @@ func (c *RmsClient) ListProvidersInvoker(request *model.ListProvidersRequest) *L
//
// 返回当前租户下特定资源类型的资源,需要当前用户有rms:resources:list权限。比如查询云服务器,对应的RMS资源类型是ecs.cloudservers,其中provider为ecs,type为cloudservers。 RMS支持的服务和资源类型参见[支持的服务和区域](https://console.huaweicloud.com/eps/#/resources/supported)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ListResources(request *model.ListResourcesRequest) (*model.ListResourcesResponse, error) {
requestDef := GenReqDefForListResources()
@@ -617,8 +1136,7 @@ func (c *RmsClient) ListResourcesInvoker(request *model.ListResourcesRequest) *L
//
// 指定资源ID,返回该资源的详细信息,需要当前用户有rms:resources:get权限。比如查询云服务器,对应的RMS资源类型是ecs.cloudservers,其中provider为ecs,type为cloudservers。RMS支持的服务和资源类型参见[支持的服务和区域](https://console.huaweicloud.com/eps/#/resources/supported)。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowResourceById(request *model.ShowResourceByIdRequest) (*model.ShowResourceByIdResponse, error) {
requestDef := GenReqDefForShowResourceById()
@@ -635,12 +1153,32 @@ func (c *RmsClient) ShowResourceByIdInvoker(request *model.ShowResourceByIdReque
return &ShowResourceByIdInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowResourceDetail 查询帐号下的单个资源
+//
+// 查询当前帐号下的单个资源。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RmsClient) ShowResourceDetail(request *model.ShowResourceDetailRequest) (*model.ShowResourceDetailResponse, error) {
+ requestDef := GenReqDefForShowResourceDetail()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowResourceDetailResponse), nil
+ }
+}
+
+// ShowResourceDetailInvoker 查询帐号下的单个资源
+func (c *RmsClient) ShowResourceDetailInvoker(request *model.ShowResourceDetailRequest) *ShowResourceDetailInvoker {
+ requestDef := GenReqDefForShowResourceDetail()
+ return &ShowResourceDetailInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreateTrackerConfig 创建或更新记录器
//
// 创建或更新资源记录器,只能存在一个资源记录器
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) CreateTrackerConfig(request *model.CreateTrackerConfigRequest) (*model.CreateTrackerConfigResponse, error) {
requestDef := GenReqDefForCreateTrackerConfig()
@@ -661,8 +1199,7 @@ func (c *RmsClient) CreateTrackerConfigInvoker(request *model.CreateTrackerConfi
//
// 删除资源记录器
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) DeleteTrackerConfig(request *model.DeleteTrackerConfigRequest) (*model.DeleteTrackerConfigResponse, error) {
requestDef := GenReqDefForDeleteTrackerConfig()
@@ -683,8 +1220,7 @@ func (c *RmsClient) DeleteTrackerConfigInvoker(request *model.DeleteTrackerConfi
//
// 查询资源记录器的详细信息
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RmsClient) ShowTrackerConfig(request *model.ShowTrackerConfigRequest) (*model.ShowTrackerConfigResponse, error) {
requestDef := GenReqDefForShowTrackerConfig()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_invoker.go
index 188148ad..dcb3d284 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_invoker.go
@@ -5,6 +5,186 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/model"
)
+type CreateAggregationAuthorizationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateAggregationAuthorizationInvoker) Invoke() (*model.CreateAggregationAuthorizationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateAggregationAuthorizationResponse), nil
+ }
+}
+
+type CreateConfigurationAggregatorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateConfigurationAggregatorInvoker) Invoke() (*model.CreateConfigurationAggregatorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateConfigurationAggregatorResponse), nil
+ }
+}
+
+type DeleteAggregationAuthorizationInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteAggregationAuthorizationInvoker) Invoke() (*model.DeleteAggregationAuthorizationResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteAggregationAuthorizationResponse), nil
+ }
+}
+
+type DeleteConfigurationAggregatorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteConfigurationAggregatorInvoker) Invoke() (*model.DeleteConfigurationAggregatorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteConfigurationAggregatorResponse), nil
+ }
+}
+
+type DeletePendingAggregationRequestInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeletePendingAggregationRequestInvoker) Invoke() (*model.DeletePendingAggregationRequestResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeletePendingAggregationRequestResponse), nil
+ }
+}
+
+type ListAggregateDiscoveredResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAggregateDiscoveredResourcesInvoker) Invoke() (*model.ListAggregateDiscoveredResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAggregateDiscoveredResourcesResponse), nil
+ }
+}
+
+type ListAggregationAuthorizationsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAggregationAuthorizationsInvoker) Invoke() (*model.ListAggregationAuthorizationsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAggregationAuthorizationsResponse), nil
+ }
+}
+
+type ListConfigurationAggregatorsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListConfigurationAggregatorsInvoker) Invoke() (*model.ListConfigurationAggregatorsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListConfigurationAggregatorsResponse), nil
+ }
+}
+
+type ListPendingAggregationRequestsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListPendingAggregationRequestsInvoker) Invoke() (*model.ListPendingAggregationRequestsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListPendingAggregationRequestsResponse), nil
+ }
+}
+
+type RunAggregateResourceQueryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *RunAggregateResourceQueryInvoker) Invoke() (*model.RunAggregateResourceQueryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.RunAggregateResourceQueryResponse), nil
+ }
+}
+
+type ShowAggregateDiscoveredResourceCountsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowAggregateDiscoveredResourceCountsInvoker) Invoke() (*model.ShowAggregateDiscoveredResourceCountsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowAggregateDiscoveredResourceCountsResponse), nil
+ }
+}
+
+type ShowAggregateResourceConfigInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowAggregateResourceConfigInvoker) Invoke() (*model.ShowAggregateResourceConfigResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowAggregateResourceConfigResponse), nil
+ }
+}
+
+type ShowConfigurationAggregatorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowConfigurationAggregatorInvoker) Invoke() (*model.ShowConfigurationAggregatorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowConfigurationAggregatorResponse), nil
+ }
+}
+
+type ShowConfigurationAggregatorSourcesStatusInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowConfigurationAggregatorSourcesStatusInvoker) Invoke() (*model.ShowConfigurationAggregatorSourcesStatusResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowConfigurationAggregatorSourcesStatusResponse), nil
+ }
+}
+
+type UpdateConfigurationAggregatorInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdateConfigurationAggregatorInvoker) Invoke() (*model.UpdateConfigurationAggregatorResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdateConfigurationAggregatorResponse), nil
+ }
+}
+
type ShowResourceHistoryInvoker struct {
*invoker.BaseInvoker
}
@@ -17,6 +197,18 @@ func (i *ShowResourceHistoryInvoker) Invoke() (*model.ShowResourceHistoryRespons
}
}
+type CreateOrganizationPolicyAssignmentInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateOrganizationPolicyAssignmentInvoker) Invoke() (*model.CreateOrganizationPolicyAssignmentResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
type CreatePolicyAssignmentsInvoker struct {
*invoker.BaseInvoker
}
@@ -29,6 +221,18 @@ func (i *CreatePolicyAssignmentsInvoker) Invoke() (*model.CreatePolicyAssignment
}
}
+type DeleteOrganizationPolicyAssignmentInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *DeleteOrganizationPolicyAssignmentInvoker) Invoke() (*model.DeleteOrganizationPolicyAssignmentResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.DeleteOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
type DeletePolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
@@ -77,6 +281,18 @@ func (i *ListBuiltInPolicyDefinitionsInvoker) Invoke() (*model.ListBuiltInPolicy
}
}
+type ListOrganizationPolicyAssignmentsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListOrganizationPolicyAssignmentsInvoker) Invoke() (*model.ListOrganizationPolicyAssignmentsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListOrganizationPolicyAssignmentsResponse), nil
+ }
+}
+
type ListPolicyAssignmentsInvoker struct {
*invoker.BaseInvoker
}
@@ -161,6 +377,42 @@ func (i *ShowEvaluationStateByAssignmentIdInvoker) Invoke() (*model.ShowEvaluati
}
}
+type ShowOrganizationPolicyAssignmentInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowOrganizationPolicyAssignmentInvoker) Invoke() (*model.ShowOrganizationPolicyAssignmentResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowOrganizationPolicyAssignmentResponse), nil
+ }
+}
+
+type ShowOrganizationPolicyAssignmentDetailedStatusInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowOrganizationPolicyAssignmentDetailedStatusInvoker) Invoke() (*model.ShowOrganizationPolicyAssignmentDetailedStatusResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowOrganizationPolicyAssignmentDetailedStatusResponse), nil
+ }
+}
+
+type ShowOrganizationPolicyAssignmentStatusesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowOrganizationPolicyAssignmentStatusesInvoker) Invoke() (*model.ShowOrganizationPolicyAssignmentStatusesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowOrganizationPolicyAssignmentStatusesResponse), nil
+ }
+}
+
type ShowPolicyAssignmentInvoker struct {
*invoker.BaseInvoker
}
@@ -185,6 +437,18 @@ func (i *UpdatePolicyAssignmentInvoker) Invoke() (*model.UpdatePolicyAssignmentR
}
}
+type UpdatePolicyStateInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *UpdatePolicyStateInvoker) Invoke() (*model.UpdatePolicyStateResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.UpdatePolicyStateResponse), nil
+ }
+}
+
type CreateStoredQueryInvoker struct {
*invoker.BaseInvoker
}
@@ -293,6 +557,42 @@ func (i *ShowResourceRelationsInvoker) Invoke() (*model.ShowResourceRelationsRes
}
}
+type ShowResourceRelationsDetailInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowResourceRelationsDetailInvoker) Invoke() (*model.ShowResourceRelationsDetailResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowResourceRelationsDetailResponse), nil
+ }
+}
+
+type CollectAllResourcesSummaryInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CollectAllResourcesSummaryInvoker) Invoke() (*model.CollectAllResourcesSummaryResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CollectAllResourcesSummaryResponse), nil
+ }
+}
+
+type CountAllResourcesInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CountAllResourcesInvoker) Invoke() (*model.CountAllResourcesResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CountAllResourcesResponse), nil
+ }
+}
+
type ListAllResourcesInvoker struct {
*invoker.BaseInvoker
}
@@ -305,6 +605,18 @@ func (i *ListAllResourcesInvoker) Invoke() (*model.ListAllResourcesResponse, err
}
}
+type ListAllTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListAllTagsInvoker) Invoke() (*model.ListAllTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListAllTagsResponse), nil
+ }
+}
+
type ListProvidersInvoker struct {
*invoker.BaseInvoker
}
@@ -341,6 +653,18 @@ func (i *ShowResourceByIdInvoker) Invoke() (*model.ShowResourceByIdResponse, err
}
}
+type ShowResourceDetailInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowResourceDetailInvoker) Invoke() (*model.ShowResourceDetailResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowResourceDetailResponse), nil
+ }
+}
+
type CreateTrackerConfigInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_meta.go
index 28256ea0..92a61ce0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rms/v1/rms_meta.go
@@ -7,6 +7,295 @@ import (
"net/http"
)
+func GenReqDefForCreateAggregationAuthorization() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization").
+ WithResponse(new(model.CreateAggregationAuthorizationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCreateConfigurationAggregator() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators").
+ WithResponse(new(model.CreateConfigurationAggregatorResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteAggregationAuthorization() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization/{authorized_account_id}").
+ WithResponse(new(model.DeleteAggregationAuthorizationResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AuthorizedAccountId").
+ WithJsonTag("authorized_account_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeleteConfigurationAggregator() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}").
+ WithResponse(new(model.DeleteConfigurationAggregatorResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorId").
+ WithJsonTag("aggregator_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForDeletePendingAggregationRequest() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/pending-aggregation-request/{requester_account_id}").
+ WithResponse(new(model.DeletePendingAggregationRequestResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RequesterAccountId").
+ WithJsonTag("requester_account_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAggregateDiscoveredResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregate-data/aggregate-discovered-resources").
+ WithResponse(new(model.ListAggregateDiscoveredResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAggregationAuthorizations() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregation-authorization").
+ WithResponse(new(model.ListAggregationAuthorizationsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AccountId").
+ WithJsonTag("account_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListConfigurationAggregators() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators").
+ WithResponse(new(model.ListConfigurationAggregatorsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorName").
+ WithJsonTag("aggregator_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListPendingAggregationRequests() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/pending-aggregation-request").
+ WithResponse(new(model.ListPendingAggregationRequestsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AccountId").
+ WithJsonTag("account_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForRunAggregateResourceQuery() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}/run-query").
+ WithResponse(new(model.RunAggregateResourceQueryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorId").
+ WithJsonTag("aggregator_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowAggregateDiscoveredResourceCounts() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregate-data/aggregate-discovered-resource-counts").
+ WithResponse(new(model.ShowAggregateDiscoveredResourceCountsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowAggregateResourceConfig() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/aggregate-resource-config").
+ WithResponse(new(model.ShowAggregateResourceConfigResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowConfigurationAggregator() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}").
+ WithResponse(new(model.ShowConfigurationAggregatorResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorId").
+ WithJsonTag("aggregator_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowConfigurationAggregatorSourcesStatus() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}/aggregator-sources-status").
+ WithResponse(new(model.ShowConfigurationAggregatorSourcesStatusResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorId").
+ WithJsonTag("aggregator_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("UpdateStatus").
+ WithJsonTag("update_status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForUpdateConfigurationAggregator() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/resource-manager/domains/{domain_id}/aggregators/{aggregator_id}").
+ WithResponse(new(model.UpdateConfigurationAggregatorResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("AggregatorId").
+ WithJsonTag("aggregator_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowResourceHistory() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -44,6 +333,26 @@ func GenReqDefForShowResourceHistory() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForCreateOrganizationPolicyAssignment() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignments").
+ WithResponse(new(model.CreateOrganizationPolicyAssignmentResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreatePolicyAssignments() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
@@ -59,6 +368,26 @@ func GenReqDefForCreatePolicyAssignments() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForDeleteOrganizationPolicyAssignment() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodDelete).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignments/{organization_policy_assignment_id}").
+ WithResponse(new(model.DeleteOrganizationPolicyAssignmentResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationPolicyAssignmentId").
+ WithJsonTag("organization_policy_assignment_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForDeletePolicyAssignment() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodDelete).
@@ -123,6 +452,35 @@ func GenReqDefForListBuiltInPolicyDefinitions() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForListOrganizationPolicyAssignments() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignments").
+ WithResponse(new(model.ListOrganizationPolicyAssignmentsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationPolicyAssignmentName").
+ WithJsonTag("organization_policy_assignment_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListPolicyAssignments() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -285,6 +643,88 @@ func GenReqDefForShowEvaluationStateByAssignmentId() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowOrganizationPolicyAssignment() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignments/{organization_policy_assignment_id}").
+ WithResponse(new(model.ShowOrganizationPolicyAssignmentResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationPolicyAssignmentId").
+ WithJsonTag("organization_policy_assignment_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowOrganizationPolicyAssignmentDetailedStatus() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignment-detailed-status").
+ WithResponse(new(model.ShowOrganizationPolicyAssignmentDetailedStatusResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationPolicyAssignmentName").
+ WithJsonTag("organization_policy_assignment_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Status").
+ WithJsonTag("status").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowOrganizationPolicyAssignmentStatuses() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/organizations/{organization_id}/policy-assignment-statuses").
+ WithResponse(new(model.ShowOrganizationPolicyAssignmentStatusesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationId").
+ WithJsonTag("organization_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("OrganizationPolicyAssignmentName").
+ WithJsonTag("organization_policy_assignment_name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowPolicyAssignment() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -321,6 +761,21 @@ func GenReqDefForUpdatePolicyAssignment() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForUpdatePolicyState() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPut).
+ WithPath("/v1/resource-manager/domains/{domain_id}/policy-states").
+ WithResponse(new(model.UpdatePolicyStateResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateStoredQuery() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -492,6 +947,115 @@ func GenReqDefForShowResourceRelations() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowResourceRelationsDetail() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/all-resources/{resource_id}/relations").
+ WithResponse(new(model.ShowResourceRelationsDetailResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Direction").
+ WithJsonTag("direction").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCollectAllResourcesSummary() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/all-resources/summary").
+ WithResponse(new(model.CollectAllResourcesSummaryResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RegionId").
+ WithJsonTag("region_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EpId").
+ WithJsonTag("ep_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ProjectId").
+ WithJsonTag("project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Tags").
+ WithJsonTag("tags").
+ WithLocationType(def.Query))
+
+ reqDefBuilder.WithResponseField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForCountAllResources() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/all-resources/count").
+ WithResponse(new(model.CountAllResourcesResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Type").
+ WithJsonTag("type").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("RegionId").
+ WithJsonTag("region_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("EpId").
+ WithJsonTag("ep_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ProjectId").
+ WithJsonTag("project_id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Tags").
+ WithJsonTag("tags").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForListAllResources() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -519,6 +1083,42 @@ func GenReqDefForListAllResources() *def.HttpRequestDef {
WithName("Marker").
WithJsonTag("marker").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Id").
+ WithJsonTag("id").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Name").
+ WithJsonTag("name").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Tags").
+ WithJsonTag("tags").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListAllTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/all-resources/tags").
+ WithResponse(new(model.ListAllTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Key").
+ WithJsonTag("key").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Marker").
+ WithJsonTag("marker").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -539,6 +1139,10 @@ func GenReqDefForListProviders() *def.HttpRequestDef {
WithName("Limit").
WithJsonTag("limit").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Track").
+ WithJsonTag("track").
+ WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("XLanguage").
@@ -614,6 +1218,22 @@ func GenReqDefForShowResourceById() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowResourceDetail() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v1/resource-manager/domains/{domain_id}/all-resources/{resource_id}").
+ WithResponse(new(model.ShowResourceDetailResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("ResourceId").
+ WithJsonTag("resource_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreateTrackerConfig() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPut).
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_request.go
new file mode 100644
index 00000000..653c012e
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_request.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type BatchCreateOrDeleteRocketmqTagRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ Body *BatchCreateOrDeleteTagReq `json:"body,omitempty"`
+}
+
+func (o BatchCreateOrDeleteRocketmqTagRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateOrDeleteRocketmqTagRequest struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateOrDeleteRocketmqTagRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_response.go
new file mode 100644
index 00000000..cd60b511
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_rocketmq_tag_response.go
@@ -0,0 +1,21 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type BatchCreateOrDeleteRocketmqTagResponse struct {
+ HttpStatusCode int `json:"-"`
+}
+
+func (o BatchCreateOrDeleteRocketmqTagResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateOrDeleteRocketmqTagResponse struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateOrDeleteRocketmqTagResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_tag_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_tag_req.go
new file mode 100644
index 00000000..4727818c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_create_or_delete_tag_req.go
@@ -0,0 +1,70 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type BatchCreateOrDeleteTagReq struct {
+
+ // 操作标识(仅支持小写): - create(创建) - delete(删除)
+ Action *BatchCreateOrDeleteTagReqAction `json:"action,omitempty"`
+
+ // 标签列表。
+ Tags *[]TagEntity `json:"tags,omitempty"`
+}
+
+func (o BatchCreateOrDeleteTagReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BatchCreateOrDeleteTagReq struct{}"
+ }
+
+ return strings.Join([]string{"BatchCreateOrDeleteTagReq", string(data)}, " ")
+}
+
+type BatchCreateOrDeleteTagReqAction struct {
+ value string
+}
+
+type BatchCreateOrDeleteTagReqActionEnum struct {
+ CREATE BatchCreateOrDeleteTagReqAction
+ DELETE BatchCreateOrDeleteTagReqAction
+}
+
+func GetBatchCreateOrDeleteTagReqActionEnum() BatchCreateOrDeleteTagReqActionEnum {
+ return BatchCreateOrDeleteTagReqActionEnum{
+ CREATE: BatchCreateOrDeleteTagReqAction{
+ value: "create",
+ },
+ DELETE: BatchCreateOrDeleteTagReqAction{
+ value: "delete",
+ },
+ }
+}
+
+func (c BatchCreateOrDeleteTagReqAction) Value() string {
+ return c.value
+}
+
+func (c BatchCreateOrDeleteTagReqAction) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BatchCreateOrDeleteTagReqAction) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_delete_instance_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_delete_instance_req.go
index a9c00492..1f368f14 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_delete_instance_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_batch_delete_instance_req.go
@@ -17,7 +17,7 @@ type BatchDeleteInstanceReq struct {
// 对实例的操作:delete
Action BatchDeleteInstanceReqAction `json:"action"`
- // 参数值为RocketMQ,表示删除租户所有创建失败的RocketMQ实例。
+ // 参数值为reliability,表示删除租户所有创建失败的RocketMQ实例。
AllFailure *BatchDeleteInstanceReqAllFailure `json:"all_failure,omitempty"`
}
@@ -73,17 +73,13 @@ type BatchDeleteInstanceReqAllFailure struct {
}
type BatchDeleteInstanceReqAllFailureEnum struct {
- TRUE BatchDeleteInstanceReqAllFailure
- FALSE BatchDeleteInstanceReqAllFailure
+ RELIABILITY BatchDeleteInstanceReqAllFailure
}
func GetBatchDeleteInstanceReqAllFailureEnum() BatchDeleteInstanceReqAllFailureEnum {
return BatchDeleteInstanceReqAllFailureEnum{
- TRUE: BatchDeleteInstanceReqAllFailure{
- value: "true",
- },
- FALSE: BatchDeleteInstanceReqAllFailure{
- value: "false",
+ RELIABILITY: BatchDeleteInstanceReqAllFailure{
+ value: "reliability",
},
}
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_bss_param.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_bss_param.go
new file mode 100644
index 00000000..cddd7ee4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_bss_param.go
@@ -0,0 +1,122 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 表示包周期计费模式的相关参数。 如果为空,则默认计费模式为按需计费;否则是包周期方式。
+type BssParam struct {
+
+ // 是否自动续订。 取值范围: - true: 自动续订。 - false: 不自动续订。 默认不自动续订。
+ IsAutoRenew *bool `json:"is_auto_renew,omitempty"`
+
+ // 计费模式。 功能说明:付费方式。 取值范围: - prePaid:预付费,即包年包月; - postPaid:后付费,即按需付费; 默认为postPaid。
+ ChargingMode *BssParamChargingMode `json:"charging_mode,omitempty"`
+
+ // 下单订购后,是否自动从客户的账户中支付,而不需要客户手动去进行支付。 取值范围: - true:是(自动支付) - false:否(需要客户手动支付) 默认为手动支付。
+ IsAutoPay *bool `json:"is_auto_pay,omitempty"`
+
+ // 订购周期类型。 取值范围: - month:月 - year:年 **chargingMode为prePaid时生效且为必选值。**
+ PeriodType *BssParamPeriodType `json:"period_type,omitempty"`
+
+ // 订购周期数。 取值范围: - periodType=month(周期类型为月)时,取值为[1,9]; - periodType=year(周期类型为年)时,取值为[1,3]; **chargingMode为prePaid时生效且为必选值。**
+ PeriodNum *int32 `json:"period_num,omitempty"`
+}
+
+func (o BssParam) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "BssParam struct{}"
+ }
+
+ return strings.Join([]string{"BssParam", string(data)}, " ")
+}
+
+type BssParamChargingMode struct {
+ value string
+}
+
+type BssParamChargingModeEnum struct {
+ PRE_PAID BssParamChargingMode
+ POST_PAID BssParamChargingMode
+}
+
+func GetBssParamChargingModeEnum() BssParamChargingModeEnum {
+ return BssParamChargingModeEnum{
+ PRE_PAID: BssParamChargingMode{
+ value: "prePaid",
+ },
+ POST_PAID: BssParamChargingMode{
+ value: "postPaid",
+ },
+ }
+}
+
+func (c BssParamChargingMode) Value() string {
+ return c.value
+}
+
+func (c BssParamChargingMode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BssParamChargingMode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type BssParamPeriodType struct {
+ value string
+}
+
+type BssParamPeriodTypeEnum struct {
+ MONTH BssParamPeriodType
+ YEAR BssParamPeriodType
+}
+
+func GetBssParamPeriodTypeEnum() BssParamPeriodTypeEnum {
+ return BssParamPeriodTypeEnum{
+ MONTH: BssParamPeriodType{
+ value: "month",
+ },
+ YEAR: BssParamPeriodType{
+ value: "year",
+ },
+ }
+}
+
+func (c BssParamPeriodType) Value() string {
+ return c.value
+}
+
+func (c BssParamPeriodType) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *BssParamPeriodType) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_consumer_group.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_consumer_group.go
index 55103216..acb4ccb9 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_consumer_group.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_consumer_group.go
@@ -8,7 +8,7 @@ import (
type ConsumerGroup struct {
- // 是否启用。
+ // 是否可以消费。
Enabled *bool `json:"enabled,omitempty"`
// 是否广播。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_consumer_group_or_batch_delete_consumer_group_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_consumer_group_or_batch_delete_consumer_group_req.go
index 6279e741..a842680b 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_consumer_group_or_batch_delete_consumer_group_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_consumer_group_or_batch_delete_consumer_group_req.go
@@ -11,7 +11,7 @@ type CreateConsumerGroupOrBatchDeleteConsumerGroupReq struct {
// 待删除的消费组列表。
Groups *[]string `json:"groups,omitempty"`
- // 是否启用。
+ // 是否可以消费。
Enabled *bool `json:"enabled,omitempty"`
// 是否广播。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_req.go
new file mode 100644
index 00000000..3473f1d5
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_req.go
@@ -0,0 +1,247 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// 创建实例请求体。
+type CreateInstanceByEngineReq struct {
+
+ // 实例名称。 由英文字符开头,只能由英文字母、数字、中划线、下划线组成,长度为4~64的字符。
+ Name string `json:"name"`
+
+ // 实例的描述信息。 长度不超过1024的字符串。 > \\与\"在json报文中属于特殊字符,如果参数值中需要显示\\或者\"字符,请在字符前增加转义字符\\,比如\\\\或者\\\"。
+ Description *string `json:"description,omitempty"`
+
+ // 消息引擎。取值填写为:reliability。
+ Engine CreateInstanceByEngineReqEngine `json:"engine"`
+
+ // 消息引擎的版本。取值填写为:4.8.0。
+ EngineVersion CreateInstanceByEngineReqEngineVersion `json:"engine_version"`
+
+ // 存储空间。
+ StorageSpace int32 `json:"storage_space"`
+
+ // 虚拟私有云ID。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在虚拟私有云的详情页面查找VPC ID。
+ VpcId string `json:"vpc_id"`
+
+ // 子网信息。 获取方法如下: - 登录虚拟私有云服务的控制台界面,单击VPC下的子网,进入子网详情页面,查找网络ID。
+ SubnetId string `json:"subnet_id"`
+
+ // 指定实例所属的安全组。 获取方法如下: - 登录虚拟私有云服务的控制台界面,在安全组的详情页面查找安全组ID。
+ SecurityGroupId string `json:"security_group_id"`
+
+ // 创建节点到指定且有资源的可用区ID。该参数不能为空数组或者数组的值为空, 请注意查看该可用区是否有资源。 创建RocketMQ实例,支持节点部署在1个或3个及3个以上的可用区。在为节点指定可用区时,用逗号分隔开。
+ AvailableZones []string `json:"available_zones"`
+
+ // RocketMQ实例规格。 - c6.4u8g.cluster:单个代理最大Topic数4000,单个代理最大消费组数4000 - c6.8u16g.cluster:单个代理最大Topic数8000,单个代理最大消费组数8000 - c6.12u24g.cluster:单个代理最大Topic数12000,单个代理最大消费组数12000 - c6.16u32g.cluster:单个代理最大Topic数16000,单个代理最大消费组数16000
+ ProductId CreateInstanceByEngineReqProductId `json:"product_id"`
+
+ // 是否打开SSL加密访问。 - true:打开SSL加密访问。 - false:不打开SSL加密访问。
+ SslEnable *bool `json:"ssl_enable,omitempty"`
+
+ // 存储IO规格。 - dms.physical.storage.high.v2: 高IO类型磁盘 - dms.physical.storage.ultra.v2: 超高IO类型磁盘
+ StorageSpecCode CreateInstanceByEngineReqStorageSpecCode `json:"storage_spec_code"`
+
+ // 企业项目ID。若为企业项目帐号,该参数必填。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 是否开启访问控制列表。
+ EnableAcl *bool `json:"enable_acl,omitempty"`
+
+ // 是否支持IPV6。 - true: 支持 - false:不支持
+ Ipv6Enable *bool `json:"ipv6_enable,omitempty"`
+
+ // 是否开启公网访问功能。默认不开启公网。 - true:开启 - false:不开启
+ EnablePublicip *bool `json:"enable_publicip,omitempty"`
+
+ // 实例绑定的弹性IP地址的ID。 以英文逗号隔开多个弹性IP地址的ID。 如果开启了公网访问功能(即enable_publicip为true),该字段为必选。
+ PublicipId *string `json:"publicip_id,omitempty"`
+
+ // 代理个数
+ BrokerNum int32 `json:"broker_num"`
+
+ BssParam *BssParam `json:"bss_param,omitempty"`
+}
+
+func (o CreateInstanceByEngineReq) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInstanceByEngineReq struct{}"
+ }
+
+ return strings.Join([]string{"CreateInstanceByEngineReq", string(data)}, " ")
+}
+
+type CreateInstanceByEngineReqEngine struct {
+ value string
+}
+
+type CreateInstanceByEngineReqEngineEnum struct {
+ RELIABILITY CreateInstanceByEngineReqEngine
+}
+
+func GetCreateInstanceByEngineReqEngineEnum() CreateInstanceByEngineReqEngineEnum {
+ return CreateInstanceByEngineReqEngineEnum{
+ RELIABILITY: CreateInstanceByEngineReqEngine{
+ value: "reliability",
+ },
+ }
+}
+
+func (c CreateInstanceByEngineReqEngine) Value() string {
+ return c.value
+}
+
+func (c CreateInstanceByEngineReqEngine) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateInstanceByEngineReqEngine) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateInstanceByEngineReqEngineVersion struct {
+ value string
+}
+
+type CreateInstanceByEngineReqEngineVersionEnum struct {
+ E_4_8_0 CreateInstanceByEngineReqEngineVersion
+}
+
+func GetCreateInstanceByEngineReqEngineVersionEnum() CreateInstanceByEngineReqEngineVersionEnum {
+ return CreateInstanceByEngineReqEngineVersionEnum{
+ E_4_8_0: CreateInstanceByEngineReqEngineVersion{
+ value: "4.8.0",
+ },
+ }
+}
+
+func (c CreateInstanceByEngineReqEngineVersion) Value() string {
+ return c.value
+}
+
+func (c CreateInstanceByEngineReqEngineVersion) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateInstanceByEngineReqEngineVersion) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateInstanceByEngineReqProductId struct {
+ value string
+}
+
+type CreateInstanceByEngineReqProductIdEnum struct {
+ C6_4U8G_CLUSTER CreateInstanceByEngineReqProductId
+ C6_8U16G_CLUSTER CreateInstanceByEngineReqProductId
+ C6_12U24G_CLUSTER CreateInstanceByEngineReqProductId
+ C6_16U32G_CLUSTER CreateInstanceByEngineReqProductId
+}
+
+func GetCreateInstanceByEngineReqProductIdEnum() CreateInstanceByEngineReqProductIdEnum {
+ return CreateInstanceByEngineReqProductIdEnum{
+ C6_4U8G_CLUSTER: CreateInstanceByEngineReqProductId{
+ value: "c6.4u8g.cluster",
+ },
+ C6_8U16G_CLUSTER: CreateInstanceByEngineReqProductId{
+ value: "c6.8u16g.cluster",
+ },
+ C6_12U24G_CLUSTER: CreateInstanceByEngineReqProductId{
+ value: "c6.12u24g.cluster",
+ },
+ C6_16U32G_CLUSTER: CreateInstanceByEngineReqProductId{
+ value: "c6.16u32g.cluster",
+ },
+ }
+}
+
+func (c CreateInstanceByEngineReqProductId) Value() string {
+ return c.value
+}
+
+func (c CreateInstanceByEngineReqProductId) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateInstanceByEngineReqProductId) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
+
+type CreateInstanceByEngineReqStorageSpecCode struct {
+ value string
+}
+
+type CreateInstanceByEngineReqStorageSpecCodeEnum struct {
+ DMS_PHYSICAL_STORAGE_HIGH_V2 CreateInstanceByEngineReqStorageSpecCode
+ DMS_PHYSICAL_STORAGE_ULTRA_V2 CreateInstanceByEngineReqStorageSpecCode
+}
+
+func GetCreateInstanceByEngineReqStorageSpecCodeEnum() CreateInstanceByEngineReqStorageSpecCodeEnum {
+ return CreateInstanceByEngineReqStorageSpecCodeEnum{
+ DMS_PHYSICAL_STORAGE_HIGH_V2: CreateInstanceByEngineReqStorageSpecCode{
+ value: "dms.physical.storage.high.v2",
+ },
+ DMS_PHYSICAL_STORAGE_ULTRA_V2: CreateInstanceByEngineReqStorageSpecCode{
+ value: "dms.physical.storage.ultra.v2",
+ },
+ }
+}
+
+func (c CreateInstanceByEngineReqStorageSpecCode) Value() string {
+ return c.value
+}
+
+func (c CreateInstanceByEngineReqStorageSpecCode) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateInstanceByEngineReqStorageSpecCode) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_request.go
new file mode 100644
index 00000000..b1d30b65
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_request.go
@@ -0,0 +1,66 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+// Request Object
+type CreateInstanceByEngineRequest struct {
+
+ // 消息引擎。
+ Engine CreateInstanceByEngineRequestEngine `json:"engine"`
+
+ Body *CreateInstanceByEngineReq `json:"body,omitempty"`
+}
+
+func (o CreateInstanceByEngineRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInstanceByEngineRequest struct{}"
+ }
+
+ return strings.Join([]string{"CreateInstanceByEngineRequest", string(data)}, " ")
+}
+
+type CreateInstanceByEngineRequestEngine struct {
+ value string
+}
+
+type CreateInstanceByEngineRequestEngineEnum struct {
+ RELIABILITY CreateInstanceByEngineRequestEngine
+}
+
+func GetCreateInstanceByEngineRequestEngineEnum() CreateInstanceByEngineRequestEngineEnum {
+ return CreateInstanceByEngineRequestEngineEnum{
+ RELIABILITY: CreateInstanceByEngineRequestEngine{
+ value: "reliability",
+ },
+ }
+}
+
+func (c CreateInstanceByEngineRequestEngine) Value() string {
+ return c.value
+}
+
+func (c CreateInstanceByEngineRequestEngine) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *CreateInstanceByEngineRequestEngine) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_response.go
new file mode 100644
index 00000000..e81716fd
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_instance_by_engine_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type CreateInstanceByEngineResponse struct {
+
+ // 实例ID。
+ InstanceId *string `json:"instance_id,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o CreateInstanceByEngineResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "CreateInstanceByEngineResponse struct{}"
+ }
+
+ return strings.Join([]string{"CreateInstanceByEngineResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_post_paid_instance_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_post_paid_instance_req.go
index 6c08b168..81ef98cb 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_post_paid_instance_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_create_post_paid_instance_req.go
@@ -48,6 +48,12 @@ type CreatePostPaidInstanceReq struct {
// 存储IO规格。 - dms.physical.storage.high.v2: 高IO类型磁盘 - dms.physical.storage.ultra.v2: 超高IO类型磁盘
StorageSpecCode CreatePostPaidInstanceReqStorageSpecCode `json:"storage_spec_code"`
+ // 企业项目ID。若为企业项目帐号,该参数必填。
+ EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 是否开启访问控制列表。
+ EnableAcl *bool `json:"enable_acl,omitempty"`
+
// 是否支持IPV6。 - true: 支持 - false:不支持
Ipv6Enable *bool `json:"ipv6_enable,omitempty"`
@@ -58,7 +64,7 @@ type CreatePostPaidInstanceReq struct {
PublicipId *string `json:"publicip_id,omitempty"`
// 代理个数
- BrokerNum *int32 `json:"broker_num,omitempty"`
+ BrokerNum int32 `json:"broker_num"`
}
func (o CreatePostPaidInstanceReq) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_access_policy_resp_policies.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_access_policy_resp_policies.go
index 8adadfb8..c38cd72e 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_access_policy_resp_policies.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_access_policy_resp_policies.go
@@ -8,9 +8,12 @@ import (
type ListAccessPolicyRespPolicies struct {
- // 秘钥。
+ // 用户名。
AccessKey *string `json:"access_key,omitempty"`
+ // 秘钥。
+ SecretKey *string `json:"secret_key,omitempty"`
+
// IP白名单。
WhiteRemoteAddress *string `json:"white_remote_address,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_consumer_group_of_topic_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_consumer_group_of_topic_request.go
index 36fed6e0..1781c848 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_consumer_group_of_topic_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_consumer_group_of_topic_request.go
@@ -14,6 +14,12 @@ type ListConsumerGroupOfTopicRequest struct {
// 主题名称。
Topic string `json:"topic"`
+
+ // 当次查询返回的最大个数,默认值为10,取值范围为1~50。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量,表示从此偏移量开始查询, offset大于等于0。
+ Offset *int32 `json:"offset,omitempty"`
}
func (o ListConsumerGroupOfTopicRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_instances_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_instances_request.go
index b572495a..cf870cce 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_instances_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_instances_request.go
@@ -32,6 +32,12 @@ type ListInstancesRequest struct {
// 企业项目ID。
EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
+
+ // 当次查询返回的最大个数,默认值为10,取值范围为1~50。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量,表示从此偏移量开始查询, offset大于等于0。
+ Offset *int32 `json:"offset,omitempty"`
}
func (o ListInstancesRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_request.go
new file mode 100644
index 00000000..ae58bf5c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_request.go
@@ -0,0 +1,29 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ListRocketInstanceTopicsRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+
+ // 查询数量。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量,表示从此偏移量开始查询, offset大于等于0。
+ Offset *int32 `json:"offset,omitempty"`
+}
+
+func (o ListRocketInstanceTopicsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRocketInstanceTopicsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ListRocketInstanceTopicsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_response.go
new file mode 100644
index 00000000..380dc9c8
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_list_rocket_instance_topics_response.go
@@ -0,0 +1,39 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ListRocketInstanceTopicsResponse struct {
+
+ // topic总数。
+ Total *int32 `json:"total,omitempty"`
+
+ // 最大可创建topic数量。
+ Max *int32 `json:"max,omitempty"`
+
+ // 剩余可创建topic数量。
+ Remaining *int32 `json:"remaining,omitempty"`
+
+ // 下个分页的offset。
+ NextOffset *int32 `json:"next_offset,omitempty"`
+
+ // 上个分页的offset。
+ PreviousOffset *int32 `json:"previous_offset,omitempty"`
+
+ // topic列表。
+ Topics *[]Topic `json:"topics,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ListRocketInstanceTopicsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ListRocketInstanceTopicsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ListRocketInstanceTopicsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_consumer_list_or_details_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_consumer_list_or_details_request.go
index a4de4a0c..f7e26192 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_consumer_list_or_details_request.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_consumer_list_or_details_request.go
@@ -17,6 +17,12 @@ type ShowConsumerListOrDetailsRequest struct {
// 待查询的topic,不指定时查询topic列表,指定时查询详情。
Topic *string `json:"topic,omitempty"`
+
+ // 当次查询返回的最大个数,默认值为10,取值范围为1~50。
+ Limit *int32 `json:"limit,omitempty"`
+
+ // 偏移量,表示从此偏移量开始查询, offset大于等于0。
+ Offset *int32 `json:"offset,omitempty"`
}
func (o ShowConsumerListOrDetailsRequest) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_group_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_group_response.go
index 27ce1c3f..e1781a16 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_group_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_group_response.go
@@ -9,7 +9,7 @@ import (
// Response Object
type ShowGroupResponse struct {
- // 是否启用。
+ // 是否可以消费。
Enabled *bool `json:"enabled,omitempty"`
// 是否广播。
@@ -24,9 +24,15 @@ type ShowGroupResponse struct {
// 最大重试次数。
RetryMaxTime float32 `json:"retry_max_time,omitempty"`
- // 是否重头消费。
- FromBeginning *bool `json:"from_beginning,omitempty"`
- HttpStatusCode int `json:"-"`
+ // 应用id。
+ AppId *string `json:"app_id,omitempty"`
+
+ // 应用名称。
+ AppName *string `json:"app_name,omitempty"`
+
+ // 权限。
+ Permissions *[]string `json:"permissions,omitempty"`
+ HttpStatusCode int `json:"-"`
}
func (o ShowGroupResponse) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_resp.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_resp.go
index 4cce4f73..a1a8dca5 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_resp.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_resp.go
@@ -35,7 +35,7 @@ type ShowInstanceResp struct {
// 实例ID。
InstanceId *string `json:"instance_id,omitempty"`
- // 付费模式,1表示按需计费,0表示包年/包月计费。
+ // [付费模式,1表示按需计费。](tag:hws_eu,hws_hk,)[付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,ctc) [计费模式,参数暂未使用。](tag:ocb,hws_ocb)
ChargingMode *int32 `json:"charging_mode,omitempty"`
// 私有云ID。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_response.go
index 57260ee7..b9075614 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_instance_response.go
@@ -36,7 +36,7 @@ type ShowInstanceResponse struct {
// 实例ID。
InstanceId *string `json:"instance_id,omitempty"`
- // 付费模式,1表示按需计费,0表示包年/包月计费。
+ // [付费模式,1表示按需计费。](tag:hws_eu,hws_hk,)[付费模式,1表示按需计费,0表示包年/包月计费。](tag:hws,ctc) [计费模式,参数暂未使用。](tag:ocb,hws_ocb)
ChargingMode *int32 `json:"charging_mode,omitempty"`
// 私有云ID。
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_one_topic_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_one_topic_response.go
index bd2db540..be53c7b8 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_one_topic_response.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_one_topic_response.go
@@ -12,6 +12,9 @@ import (
// Response Object
type ShowOneTopicResponse struct {
+ // topic名称。
+ Name *string `json:"name,omitempty"`
+
// 总读队列个数。
TotalReadQueueNum float32 `json:"total_read_queue_num,omitempty"`
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_request.go
new file mode 100644
index 00000000..1dbc2468
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_request.go
@@ -0,0 +1,20 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowRocketmqProjectTagsRequest struct {
+}
+
+func (o ShowRocketmqProjectTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRocketmqProjectTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRocketmqProjectTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_response.go
new file mode 100644
index 00000000..c30019b1
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_project_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRocketmqProjectTagsResponse struct {
+
+ // 标签列表
+ Tags *[]TagMultyValueEntity `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRocketmqProjectTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRocketmqProjectTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRocketmqProjectTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_request.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_request.go
new file mode 100644
index 00000000..0c17e80c
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_request.go
@@ -0,0 +1,23 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Request Object
+type ShowRocketmqTagsRequest struct {
+
+ // 实例ID。
+ InstanceId string `json:"instance_id"`
+}
+
+func (o ShowRocketmqTagsRequest) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRocketmqTagsRequest struct{}"
+ }
+
+ return strings.Join([]string{"ShowRocketmqTagsRequest", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_response.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_response.go
new file mode 100644
index 00000000..afa2bb84
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_show_rocketmq_tags_response.go
@@ -0,0 +1,24 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+// Response Object
+type ShowRocketmqTagsResponse struct {
+
+ // 标签列表
+ Tags *[]TagEntity `json:"tags,omitempty"`
+ HttpStatusCode int `json:"-"`
+}
+
+func (o ShowRocketmqTagsResponse) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "ShowRocketmqTagsResponse struct{}"
+ }
+
+ return strings.Join([]string{"ShowRocketmqTagsResponse", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_tag_multy_value_entity.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_tag_multy_value_entity.go
new file mode 100644
index 00000000..380c9947
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_tag_multy_value_entity.go
@@ -0,0 +1,25 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "strings"
+)
+
+type TagMultyValueEntity struct {
+
+ // 键。最大长度36个unicode字符。 key不能为空,不能为空字符串。 不能包含下列字符:非打印字符ASCII(0-31),“=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。
+ Key *string `json:"key,omitempty"`
+
+ // 值。每个值最大长度43个unicode字符。 value不能为空,可以空字符串。 不能包含下列字符:非打印字符ASCII(0-31), “=”,“*”,“<”,“>”,“\\”,“,”,“|”,“/”。
+ Values *[]string `json:"values,omitempty"`
+}
+
+func (o TagMultyValueEntity) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "TagMultyValueEntity struct{}"
+ }
+
+ return strings.Join([]string{"TagMultyValueEntity", string(data)}, " ")
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_topic.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_topic.go
new file mode 100644
index 00000000..efe0efe4
--- /dev/null
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_topic.go
@@ -0,0 +1,83 @@
+package model
+
+import (
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/utils"
+
+ "errors"
+ "github.com/huaweicloud/huaweicloud-sdk-go-v3/core/converter"
+
+ "strings"
+)
+
+type Topic struct {
+
+ // topic名称。
+ Name *string `json:"name,omitempty"`
+
+ // 总读队列个数。
+ TotalReadQueueNum float32 `json:"total_read_queue_num,omitempty"`
+
+ // 总写队列个数。
+ TotalWriteQueueNum float32 `json:"total_write_queue_num,omitempty"`
+
+ // 权限。
+ Permission *TopicPermission `json:"permission,omitempty"`
+
+ // 关联的代理。
+ Brokers *[]TopicBrokers `json:"brokers,omitempty"`
+}
+
+func (o Topic) String() string {
+ data, err := utils.Marshal(o)
+ if err != nil {
+ return "Topic struct{}"
+ }
+
+ return strings.Join([]string{"Topic", string(data)}, " ")
+}
+
+type TopicPermission struct {
+ value string
+}
+
+type TopicPermissionEnum struct {
+ SUB TopicPermission
+ PUB TopicPermission
+ ALL TopicPermission
+}
+
+func GetTopicPermissionEnum() TopicPermissionEnum {
+ return TopicPermissionEnum{
+ SUB: TopicPermission{
+ value: "sub",
+ },
+ PUB: TopicPermission{
+ value: "pub",
+ },
+ ALL: TopicPermission{
+ value: "all",
+ },
+ }
+}
+
+func (c TopicPermission) Value() string {
+ return c.value
+}
+
+func (c TopicPermission) MarshalJSON() ([]byte, error) {
+ return utils.Marshal(c.value)
+}
+
+func (c *TopicPermission) UnmarshalJSON(b []byte) error {
+ myConverter := converter.StringConverterFactory("string")
+ if myConverter != nil {
+ val, err := myConverter.CovertStringToInterface(strings.Trim(string(b[:]), "\""))
+ if err == nil {
+ c.value = val.(string)
+ return nil
+ }
+ return err
+ } else {
+ return errors.New("convert enum data to string error")
+ }
+}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_update_instance_req.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_update_instance_req.go
index 14046644..19b86ac0 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_update_instance_req.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model/model_update_instance_req.go
@@ -18,7 +18,7 @@ type UpdateInstanceReq struct {
SecurityGroupId *string `json:"security_group_id,omitempty"`
// ACL访问控制。
- RetentionPolicy *bool `json:"retention_policy,omitempty"`
+ EnableAcl *bool `json:"enable_acl,omitempty"`
}
func (o UpdateInstanceReq) String() string {
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_client.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_client.go
index cfe4f2d7..2c4400ef 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_client.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_client.go
@@ -19,12 +19,32 @@ func RocketMQClientBuilder() *http_client.HcHttpClientBuilder {
return builder
}
+// BatchCreateOrDeleteRocketmqTag 批量添加或删除实例标签
+//
+// 批量添加或删除实例标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RocketMQClient) BatchCreateOrDeleteRocketmqTag(request *model.BatchCreateOrDeleteRocketmqTagRequest) (*model.BatchCreateOrDeleteRocketmqTagResponse, error) {
+ requestDef := GenReqDefForBatchCreateOrDeleteRocketmqTag()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.BatchCreateOrDeleteRocketmqTagResponse), nil
+ }
+}
+
+// BatchCreateOrDeleteRocketmqTagInvoker 批量添加或删除实例标签
+func (c *RocketMQClient) BatchCreateOrDeleteRocketmqTagInvoker(request *model.BatchCreateOrDeleteRocketmqTagRequest) *BatchCreateOrDeleteRocketmqTagInvoker {
+ requestDef := GenReqDefForBatchCreateOrDeleteRocketmqTag()
+ return &BatchCreateOrDeleteRocketmqTagInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// BatchDeleteInstances 批量删除实例
//
-// 批量删除实例。**实例删除后,实例中原有的数据将被删除,且没有备份,请谨慎操。**
+// 批量删除实例。**实例删除后,实例中原有的数据将被删除,且没有备份,请谨慎操作。**
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) BatchDeleteInstances(request *model.BatchDeleteInstancesRequest) (*model.BatchDeleteInstancesResponse, error) {
requestDef := GenReqDefForBatchDeleteInstances()
@@ -45,8 +65,7 @@ func (c *RocketMQClient) BatchDeleteInstancesInvoker(request *model.BatchDeleteI
//
// 批量修改消费组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) BatchUpdateConsumerGroup(request *model.BatchUpdateConsumerGroupRequest) (*model.BatchUpdateConsumerGroupResponse, error) {
requestDef := GenReqDefForBatchUpdateConsumerGroup()
@@ -67,8 +86,7 @@ func (c *RocketMQClient) BatchUpdateConsumerGroupInvoker(request *model.BatchUpd
//
// 创建消费组或批量删除消费组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) CreateConsumerGroupOrBatchDeleteConsumerGroup(request *model.CreateConsumerGroupOrBatchDeleteConsumerGroupRequest) (*model.CreateConsumerGroupOrBatchDeleteConsumerGroupResponse, error) {
requestDef := GenReqDefForCreateConsumerGroupOrBatchDeleteConsumerGroup()
@@ -85,12 +103,32 @@ func (c *RocketMQClient) CreateConsumerGroupOrBatchDeleteConsumerGroupInvoker(re
return &CreateConsumerGroupOrBatchDeleteConsumerGroupInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// CreateInstanceByEngine 创建实例
+//
+// 该接口支持创建按需和包周期两种计费方式的实例。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RocketMQClient) CreateInstanceByEngine(request *model.CreateInstanceByEngineRequest) (*model.CreateInstanceByEngineResponse, error) {
+ requestDef := GenReqDefForCreateInstanceByEngine()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.CreateInstanceByEngineResponse), nil
+ }
+}
+
+// CreateInstanceByEngineInvoker 创建实例
+func (c *RocketMQClient) CreateInstanceByEngineInvoker(request *model.CreateInstanceByEngineRequest) *CreateInstanceByEngineInvoker {
+ requestDef := GenReqDefForCreateInstanceByEngine()
+ return &CreateInstanceByEngineInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// CreatePostPaidInstance 创建实例(按需)
//
// 创建实例,该接口创建的实例为按需计费的方式。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) CreatePostPaidInstance(request *model.CreatePostPaidInstanceRequest) (*model.CreatePostPaidInstanceResponse, error) {
requestDef := GenReqDefForCreatePostPaidInstance()
@@ -111,8 +149,7 @@ func (c *RocketMQClient) CreatePostPaidInstanceInvoker(request *model.CreatePost
//
// 创建用户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) CreateUser(request *model.CreateUserRequest) (*model.CreateUserResponse, error) {
requestDef := GenReqDefForCreateUser()
@@ -133,8 +170,7 @@ func (c *RocketMQClient) CreateUserInvoker(request *model.CreateUserRequest) *Cr
//
// 删除指定消费组。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) DeleteConsumerGroup(request *model.DeleteConsumerGroupRequest) (*model.DeleteConsumerGroupResponse, error) {
requestDef := GenReqDefForDeleteConsumerGroup()
@@ -155,8 +191,7 @@ func (c *RocketMQClient) DeleteConsumerGroupInvoker(request *model.DeleteConsume
//
// 删除指定的实例,释放该实例的所有资源。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) DeleteInstance(request *model.DeleteInstanceRequest) (*model.DeleteInstanceResponse, error) {
requestDef := GenReqDefForDeleteInstance()
@@ -177,8 +212,7 @@ func (c *RocketMQClient) DeleteInstanceInvoker(request *model.DeleteInstanceRequ
//
// 删除用户。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) DeleteUser(request *model.DeleteUserRequest) (*model.DeleteUserResponse, error) {
requestDef := GenReqDefForDeleteUser()
@@ -199,8 +233,7 @@ func (c *RocketMQClient) DeleteUserInvoker(request *model.DeleteUserRequest) *De
//
// 导出死信消息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ExportDlqMessage(request *model.ExportDlqMessageRequest) (*model.ExportDlqMessageResponse, error) {
requestDef := GenReqDefForExportDlqMessage()
@@ -221,8 +254,7 @@ func (c *RocketMQClient) ExportDlqMessageInvoker(request *model.ExportDlqMessage
//
// 在创建实例时,需要配置实例所在的可用区ID,可通过该接口查询可用区的ID。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListAvailableZones(request *model.ListAvailableZonesRequest) (*model.ListAvailableZonesResponse, error) {
requestDef := GenReqDefForListAvailableZones()
@@ -243,8 +275,7 @@ func (c *RocketMQClient) ListAvailableZonesInvoker(request *model.ListAvailableZ
//
// 查询代理列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListBrokers(request *model.ListBrokersRequest) (*model.ListBrokersResponse, error) {
requestDef := GenReqDefForListBrokers()
@@ -265,8 +296,7 @@ func (c *RocketMQClient) ListBrokersInvoker(request *model.ListBrokersRequest) *
//
// 查询消费组的授权用户列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListConsumeGroupAccessPolicy(request *model.ListConsumeGroupAccessPolicyRequest) (*model.ListConsumeGroupAccessPolicyResponse, error) {
requestDef := GenReqDefForListConsumeGroupAccessPolicy()
@@ -287,8 +317,7 @@ func (c *RocketMQClient) ListConsumeGroupAccessPolicyInvoker(request *model.List
//
// 查询消费组列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListInstanceConsumerGroups(request *model.ListInstanceConsumerGroupsRequest) (*model.ListInstanceConsumerGroupsResponse, error) {
requestDef := GenReqDefForListInstanceConsumerGroups()
@@ -309,8 +338,7 @@ func (c *RocketMQClient) ListInstanceConsumerGroupsInvoker(request *model.ListIn
//
// 查询租户的实例列表,支持按照条件查询。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListInstances(request *model.ListInstancesRequest) (*model.ListInstancesResponse, error) {
requestDef := GenReqDefForListInstances()
@@ -331,8 +359,7 @@ func (c *RocketMQClient) ListInstancesInvoker(request *model.ListInstancesReques
//
// 查询消息轨迹。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListMessageTrace(request *model.ListMessageTraceRequest) (*model.ListMessageTraceResponse, error) {
requestDef := GenReqDefForListMessageTrace()
@@ -353,8 +380,7 @@ func (c *RocketMQClient) ListMessageTraceInvoker(request *model.ListMessageTrace
//
// 查询消息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListMessages(request *model.ListMessagesRequest) (*model.ListMessagesResponse, error) {
requestDef := GenReqDefForListMessages()
@@ -375,8 +401,7 @@ func (c *RocketMQClient) ListMessagesInvoker(request *model.ListMessagesRequest)
//
// 查询主题的授权用户列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListTopicAccessPolicy(request *model.ListTopicAccessPolicyRequest) (*model.ListTopicAccessPolicyResponse, error) {
requestDef := GenReqDefForListTopicAccessPolicy()
@@ -397,8 +422,7 @@ func (c *RocketMQClient) ListTopicAccessPolicyInvoker(request *model.ListTopicAc
//
// 查询用户列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListUser(request *model.ListUserRequest) (*model.ListUserResponse, error) {
requestDef := GenReqDefForListUser()
@@ -419,8 +443,7 @@ func (c *RocketMQClient) ListUserInvoker(request *model.ListUserRequest) *ListUs
//
// 重置消费进度。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ResetConsumeOffset(request *model.ResetConsumeOffsetRequest) (*model.ResetConsumeOffsetResponse, error) {
requestDef := GenReqDefForResetConsumeOffset()
@@ -441,8 +464,7 @@ func (c *RocketMQClient) ResetConsumeOffsetInvoker(request *model.ResetConsumeOf
//
// 查询消费列表或详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowConsumerListOrDetails(request *model.ShowConsumerListOrDetailsRequest) (*model.ShowConsumerListOrDetailsResponse, error) {
requestDef := GenReqDefForShowConsumerListOrDetails()
@@ -463,8 +485,7 @@ func (c *RocketMQClient) ShowConsumerListOrDetailsInvoker(request *model.ShowCon
//
// 查询指定消费组详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowGroup(request *model.ShowGroupRequest) (*model.ShowGroupResponse, error) {
requestDef := GenReqDefForShowGroup()
@@ -485,8 +506,7 @@ func (c *RocketMQClient) ShowGroupInvoker(request *model.ShowGroupRequest) *Show
//
// 查询指定实例的详细信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowInstance(request *model.ShowInstanceRequest) (*model.ShowInstanceResponse, error) {
requestDef := GenReqDefForShowInstance()
@@ -503,12 +523,53 @@ func (c *RocketMQClient) ShowInstanceInvoker(request *model.ShowInstanceRequest)
return &ShowInstanceInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ShowRocketmqProjectTags 查询项目标签
+//
+// 查询项目标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RocketMQClient) ShowRocketmqProjectTags(request *model.ShowRocketmqProjectTagsRequest) (*model.ShowRocketmqProjectTagsResponse, error) {
+ requestDef := GenReqDefForShowRocketmqProjectTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRocketmqProjectTagsResponse), nil
+ }
+}
+
+// ShowRocketmqProjectTagsInvoker 查询项目标签
+func (c *RocketMQClient) ShowRocketmqProjectTagsInvoker(request *model.ShowRocketmqProjectTagsRequest) *ShowRocketmqProjectTagsInvoker {
+ requestDef := GenReqDefForShowRocketmqProjectTags()
+ return &ShowRocketmqProjectTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
+// ShowRocketmqTags 查询实例标签
+//
+// 查询实例标签。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RocketMQClient) ShowRocketmqTags(request *model.ShowRocketmqTagsRequest) (*model.ShowRocketmqTagsResponse, error) {
+ requestDef := GenReqDefForShowRocketmqTags()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ShowRocketmqTagsResponse), nil
+ }
+}
+
+// ShowRocketmqTagsInvoker 查询实例标签
+func (c *RocketMQClient) ShowRocketmqTagsInvoker(request *model.ShowRocketmqTagsRequest) *ShowRocketmqTagsInvoker {
+ requestDef := GenReqDefForShowRocketmqTags()
+ return &ShowRocketmqTagsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowUser 查询用户详情
//
// 查询用户详情。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowUser(request *model.ShowUserRequest) (*model.ShowUserResponse, error) {
requestDef := GenReqDefForShowUser()
@@ -529,8 +590,7 @@ func (c *RocketMQClient) ShowUserInvoker(request *model.ShowUserRequest) *ShowUs
//
// 修改指定消费组参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) UpdateConsumerGroup(request *model.UpdateConsumerGroupRequest) (*model.UpdateConsumerGroupResponse, error) {
requestDef := GenReqDefForUpdateConsumerGroup()
@@ -551,8 +611,7 @@ func (c *RocketMQClient) UpdateConsumerGroupInvoker(request *model.UpdateConsume
//
// 修改实例的名称和描述信息。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) UpdateInstance(request *model.UpdateInstanceRequest) (*model.UpdateInstanceResponse, error) {
requestDef := GenReqDefForUpdateInstance()
@@ -573,8 +632,7 @@ func (c *RocketMQClient) UpdateInstanceInvoker(request *model.UpdateInstanceRequ
//
// 修改用户参数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) UpdateUser(request *model.UpdateUserRequest) (*model.UpdateUserResponse, error) {
requestDef := GenReqDefForUpdateUser()
@@ -595,8 +653,7 @@ func (c *RocketMQClient) UpdateUserInvoker(request *model.UpdateUserRequest) *Up
//
// 创建主题或批量删除主题。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) CreateTopicOrBatchDeleteTopic(request *model.CreateTopicOrBatchDeleteTopicRequest) (*model.CreateTopicOrBatchDeleteTopicResponse, error) {
requestDef := GenReqDefForCreateTopicOrBatchDeleteTopic()
@@ -617,8 +674,7 @@ func (c *RocketMQClient) CreateTopicOrBatchDeleteTopicInvoker(request *model.Cre
//
// 删除指定主题。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) DeleteTopic(request *model.DeleteTopicRequest) (*model.DeleteTopicResponse, error) {
requestDef := GenReqDefForDeleteTopic()
@@ -639,8 +695,7 @@ func (c *RocketMQClient) DeleteTopicInvoker(request *model.DeleteTopicRequest) *
//
// 查询主题消费组列表。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ListConsumerGroupOfTopic(request *model.ListConsumerGroupOfTopicRequest) (*model.ListConsumerGroupOfTopicResponse, error) {
requestDef := GenReqDefForListConsumerGroupOfTopic()
@@ -657,12 +712,32 @@ func (c *RocketMQClient) ListConsumerGroupOfTopicInvoker(request *model.ListCons
return &ListConsumerGroupOfTopicInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
}
+// ListRocketInstanceTopics 查询主题列表
+//
+// 该接口用于查询指定RocketMQ实例的Topic列表。
+//
+// Please refer to HUAWEI cloud API Explorer for details.
+func (c *RocketMQClient) ListRocketInstanceTopics(request *model.ListRocketInstanceTopicsRequest) (*model.ListRocketInstanceTopicsResponse, error) {
+ requestDef := GenReqDefForListRocketInstanceTopics()
+
+ if resp, err := c.HcClient.Sync(request, requestDef); err != nil {
+ return nil, err
+ } else {
+ return resp.(*model.ListRocketInstanceTopicsResponse), nil
+ }
+}
+
+// ListRocketInstanceTopicsInvoker 查询主题列表
+func (c *RocketMQClient) ListRocketInstanceTopicsInvoker(request *model.ListRocketInstanceTopicsRequest) *ListRocketInstanceTopicsInvoker {
+ requestDef := GenReqDefForListRocketInstanceTopics()
+ return &ListRocketInstanceTopicsInvoker{invoker.NewBaseInvoker(c.HcClient, request, requestDef)}
+}
+
// ShowOneTopic 查询单个主题
//
// 查询单个主题。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowOneTopic(request *model.ShowOneTopicRequest) (*model.ShowOneTopicResponse, error) {
requestDef := GenReqDefForShowOneTopic()
@@ -683,8 +758,7 @@ func (c *RocketMQClient) ShowOneTopicInvoker(request *model.ShowOneTopicRequest)
//
// 查询主题的消息数。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) ShowTopicStatus(request *model.ShowTopicStatusRequest) (*model.ShowTopicStatusResponse, error) {
requestDef := GenReqDefForShowTopicStatus()
@@ -705,8 +779,7 @@ func (c *RocketMQClient) ShowTopicStatusInvoker(request *model.ShowTopicStatusRe
//
// 修改主题。
//
-// 详细说明请参考华为云API Explorer。
-// Please refer to Huawei cloud API Explorer for details.
+// Please refer to HUAWEI cloud API Explorer for details.
func (c *RocketMQClient) UpdateTopic(request *model.UpdateTopicRequest) (*model.UpdateTopicResponse, error) {
requestDef := GenReqDefForUpdateTopic()
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_invoker.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_invoker.go
index f6c87dce..e5294e07 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_invoker.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_invoker.go
@@ -5,6 +5,18 @@ import (
"github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/model"
)
+type BatchCreateOrDeleteRocketmqTagInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *BatchCreateOrDeleteRocketmqTagInvoker) Invoke() (*model.BatchCreateOrDeleteRocketmqTagResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.BatchCreateOrDeleteRocketmqTagResponse), nil
+ }
+}
+
type BatchDeleteInstancesInvoker struct {
*invoker.BaseInvoker
}
@@ -41,6 +53,18 @@ func (i *CreateConsumerGroupOrBatchDeleteConsumerGroupInvoker) Invoke() (*model.
}
}
+type CreateInstanceByEngineInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *CreateInstanceByEngineInvoker) Invoke() (*model.CreateInstanceByEngineResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.CreateInstanceByEngineResponse), nil
+ }
+}
+
type CreatePostPaidInstanceInvoker struct {
*invoker.BaseInvoker
}
@@ -269,6 +293,30 @@ func (i *ShowInstanceInvoker) Invoke() (*model.ShowInstanceResponse, error) {
}
}
+type ShowRocketmqProjectTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRocketmqProjectTagsInvoker) Invoke() (*model.ShowRocketmqProjectTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRocketmqProjectTagsResponse), nil
+ }
+}
+
+type ShowRocketmqTagsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ShowRocketmqTagsInvoker) Invoke() (*model.ShowRocketmqTagsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ShowRocketmqTagsResponse), nil
+ }
+}
+
type ShowUserInvoker struct {
*invoker.BaseInvoker
}
@@ -353,6 +401,18 @@ func (i *ListConsumerGroupOfTopicInvoker) Invoke() (*model.ListConsumerGroupOfTo
}
}
+type ListRocketInstanceTopicsInvoker struct {
+ *invoker.BaseInvoker
+}
+
+func (i *ListRocketInstanceTopicsInvoker) Invoke() (*model.ListRocketInstanceTopicsResponse, error) {
+ if result, err := i.BaseInvoker.Invoke(); err != nil {
+ return nil, err
+ } else {
+ return result.(*model.ListRocketInstanceTopicsResponse), nil
+ }
+}
+
type ShowOneTopicInvoker struct {
*invoker.BaseInvoker
}
diff --git a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_meta.go b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_meta.go
index 0cab8a13..6296959c 100644
--- a/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_meta.go
+++ b/vendor/github.com/huaweicloud/huaweicloud-sdk-go-v3/services/rocketmq/v2/rocketMQ_meta.go
@@ -7,6 +7,26 @@ import (
"net/http"
)
+func GenReqDefForBatchCreateOrDeleteRocketmqTag() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{project_id}/rocketmq/{instance_id}/tags/action").
+ WithResponse(new(model.BatchCreateOrDeleteRocketmqTagResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForBatchDeleteInstances() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -67,6 +87,26 @@ func GenReqDefForCreateConsumerGroupOrBatchDeleteConsumerGroup() *def.HttpReques
return requestDef
}
+func GenReqDefForCreateInstanceByEngine() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodPost).
+ WithPath("/v2/{engine}/{project_id}/instances").
+ WithResponse(new(model.CreateInstanceByEngineResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Engine").
+ WithJsonTag("engine").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Body").
+ WithLocationType(def.Body))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForCreatePostPaidInstance() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodPost).
@@ -306,6 +346,14 @@ func GenReqDefForListInstances() *def.HttpRequestDef {
WithName("EnterpriseProjectId").
WithJsonTag("enterprise_project_id").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -483,6 +531,14 @@ func GenReqDefForShowConsumerListOrDetails() *def.HttpRequestDef {
WithName("Topic").
WithJsonTag("topic").
WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
requestDef := reqDefBuilder.Build()
return requestDef
@@ -524,6 +580,33 @@ func GenReqDefForShowInstance() *def.HttpRequestDef {
return requestDef
}
+func GenReqDefForShowRocketmqProjectTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/rocketmq/tags").
+ WithResponse(new(model.ShowRocketmqProjectTagsResponse)).
+ WithContentType("application/json")
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForShowRocketmqTags() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/rocketmq/{instance_id}/tags").
+ WithResponse(new(model.ShowRocketmqTagsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
func GenReqDefForShowUser() *def.HttpRequestDef {
reqDefBuilder := def.NewHttpRequestDefBuilder().
WithMethod(http.MethodGet).
@@ -673,6 +756,40 @@ func GenReqDefForListConsumerGroupOfTopic() *def.HttpRequestDef {
WithJsonTag("topic").
WithLocationType(def.Path))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
+ requestDef := reqDefBuilder.Build()
+ return requestDef
+}
+
+func GenReqDefForListRocketInstanceTopics() *def.HttpRequestDef {
+ reqDefBuilder := def.NewHttpRequestDefBuilder().
+ WithMethod(http.MethodGet).
+ WithPath("/v2/{project_id}/instances/{instance_id}/topics").
+ WithResponse(new(model.ListRocketInstanceTopicsResponse)).
+ WithContentType("application/json")
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("InstanceId").
+ WithJsonTag("instance_id").
+ WithLocationType(def.Path))
+
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Limit").
+ WithJsonTag("limit").
+ WithLocationType(def.Query))
+ reqDefBuilder.WithRequestField(def.NewFieldDef().
+ WithName("Offset").
+ WithJsonTag("offset").
+ WithLocationType(def.Query))
+
requestDef := reqDefBuilder.Build()
return requestDef
}
diff --git a/vendor/gopkg.in/yaml.v2/LICENSE b/vendor/go.mongodb.org/mongo-driver/LICENSE
similarity index 99%
rename from vendor/gopkg.in/yaml.v2/LICENSE
rename to vendor/go.mongodb.org/mongo-driver/LICENSE
index 8dada3ed..261eeb9e 100644
--- a/vendor/gopkg.in/yaml.v2/LICENSE
+++ b/vendor/go.mongodb.org/mongo-driver/LICENSE
@@ -178,7 +178,7 @@
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "{}"
+ boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
@@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.
- Copyright {yyyy} {name of copyright owner}
+ Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bson.go b/vendor/go.mongodb.org/mongo-driver/bson/bson.go
new file mode 100644
index 00000000..a0d81858
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bson.go
@@ -0,0 +1,50 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+//
+// Based on gopkg.in/mgo.v2/bson by Gustavo Niemeyer
+// See THIRD-PARTY-NOTICES for original license terms.
+
+package bson // import "go.mongodb.org/mongo-driver/bson"
+
+import (
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+// Zeroer allows custom struct types to implement a report of zero
+// state. All struct types that don't implement Zeroer or where IsZero
+// returns false are considered to be not zero.
+type Zeroer interface {
+ IsZero() bool
+}
+
+// D is an ordered representation of a BSON document. This type should be used when the order of the elements matters,
+// such as MongoDB command documents. If the order of the elements does not matter, an M should be used instead.
+//
+// A D should not be constructed with duplicate key names, as that can cause undefined server behavior.
+//
+// Example usage:
+//
+// bson.D{{"foo", "bar"}, {"hello", "world"}, {"pi", 3.14159}}
+type D = primitive.D
+
+// E represents a BSON element for a D. It is usually used inside a D.
+type E = primitive.E
+
+// M is an unordered representation of a BSON document. This type should be used when the order of the elements does not
+// matter. This type is handled as a regular map[string]interface{} when encoding and decoding. Elements will be
+// serialized in an undefined, random order. If the order of the elements matters, a D should be used instead.
+//
+// Example usage:
+//
+// bson.M{"foo": "bar", "hello": "world", "pi": 3.14159}
+type M = primitive.M
+
+// An A is an ordered representation of a BSON array.
+//
+// Example usage:
+//
+// bson.A{"bar", "world", 3.14159, bson.D{{"qux", 12345}}}
+type A = primitive.A
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/array_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/array_codec.go
new file mode 100644
index 00000000..4e24f9ee
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/array_codec.go
@@ -0,0 +1,50 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
+)
+
+// ArrayCodec is the Codec used for bsoncore.Array values.
+type ArrayCodec struct{}
+
+var defaultArrayCodec = NewArrayCodec()
+
+// NewArrayCodec returns an ArrayCodec.
+func NewArrayCodec() *ArrayCodec {
+ return &ArrayCodec{}
+}
+
+// EncodeValue is the ValueEncoder for bsoncore.Array values.
+func (ac *ArrayCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tCoreArray {
+ return ValueEncoderError{Name: "CoreArrayEncodeValue", Types: []reflect.Type{tCoreArray}, Received: val}
+ }
+
+ arr := val.Interface().(bsoncore.Array)
+ return bsonrw.Copier{}.CopyArrayFromBytes(vw, arr)
+}
+
+// DecodeValue is the ValueDecoder for bsoncore.Array values.
+func (ac *ArrayCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tCoreArray {
+ return ValueDecoderError{Name: "CoreArrayDecodeValue", Types: []reflect.Type{tCoreArray}, Received: val}
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, 0))
+ }
+
+ val.SetLen(0)
+ arr, err := bsonrw.Copier{}.AppendArrayBytes(val.Interface().(bsoncore.Array), vr)
+ val.Set(reflect.ValueOf(arr))
+ return err
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/bsoncodec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/bsoncodec.go
new file mode 100644
index 00000000..098ed69f
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/bsoncodec.go
@@ -0,0 +1,238 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec // import "go.mongodb.org/mongo-driver/bson/bsoncodec"
+
+import (
+ "fmt"
+ "reflect"
+ "strings"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+var (
+ emptyValue = reflect.Value{}
+)
+
+// Marshaler is an interface implemented by types that can marshal themselves
+// into a BSON document represented as bytes. The bytes returned must be a valid
+// BSON document if the error is nil.
+type Marshaler interface {
+ MarshalBSON() ([]byte, error)
+}
+
+// ValueMarshaler is an interface implemented by types that can marshal
+// themselves into a BSON value as bytes. The type must be the valid type for
+// the bytes returned. The bytes and byte type together must be valid if the
+// error is nil.
+type ValueMarshaler interface {
+ MarshalBSONValue() (bsontype.Type, []byte, error)
+}
+
+// Unmarshaler is an interface implemented by types that can unmarshal a BSON
+// document representation of themselves. The BSON bytes can be assumed to be
+// valid. UnmarshalBSON must copy the BSON bytes if it wishes to retain the data
+// after returning.
+type Unmarshaler interface {
+ UnmarshalBSON([]byte) error
+}
+
+// ValueUnmarshaler is an interface implemented by types that can unmarshal a
+// BSON value representation of themselves. The BSON bytes and type can be
+// assumed to be valid. UnmarshalBSONValue must copy the BSON value bytes if it
+// wishes to retain the data after returning.
+type ValueUnmarshaler interface {
+ UnmarshalBSONValue(bsontype.Type, []byte) error
+}
+
+// ValueEncoderError is an error returned from a ValueEncoder when the provided value can't be
+// encoded by the ValueEncoder.
+type ValueEncoderError struct {
+ Name string
+ Types []reflect.Type
+ Kinds []reflect.Kind
+ Received reflect.Value
+}
+
+func (vee ValueEncoderError) Error() string {
+ typeKinds := make([]string, 0, len(vee.Types)+len(vee.Kinds))
+ for _, t := range vee.Types {
+ typeKinds = append(typeKinds, t.String())
+ }
+ for _, k := range vee.Kinds {
+ if k == reflect.Map {
+ typeKinds = append(typeKinds, "map[string]*")
+ continue
+ }
+ typeKinds = append(typeKinds, k.String())
+ }
+ received := vee.Received.Kind().String()
+ if vee.Received.IsValid() {
+ received = vee.Received.Type().String()
+ }
+ return fmt.Sprintf("%s can only encode valid %s, but got %s", vee.Name, strings.Join(typeKinds, ", "), received)
+}
+
+// ValueDecoderError is an error returned from a ValueDecoder when the provided value can't be
+// decoded by the ValueDecoder.
+type ValueDecoderError struct {
+ Name string
+ Types []reflect.Type
+ Kinds []reflect.Kind
+ Received reflect.Value
+}
+
+func (vde ValueDecoderError) Error() string {
+ typeKinds := make([]string, 0, len(vde.Types)+len(vde.Kinds))
+ for _, t := range vde.Types {
+ typeKinds = append(typeKinds, t.String())
+ }
+ for _, k := range vde.Kinds {
+ if k == reflect.Map {
+ typeKinds = append(typeKinds, "map[string]*")
+ continue
+ }
+ typeKinds = append(typeKinds, k.String())
+ }
+ received := vde.Received.Kind().String()
+ if vde.Received.IsValid() {
+ received = vde.Received.Type().String()
+ }
+ return fmt.Sprintf("%s can only decode valid and settable %s, but got %s", vde.Name, strings.Join(typeKinds, ", "), received)
+}
+
+// EncodeContext is the contextual information required for a Codec to encode a
+// value.
+type EncodeContext struct {
+ *Registry
+ MinSize bool
+}
+
+// DecodeContext is the contextual information required for a Codec to decode a
+// value.
+type DecodeContext struct {
+ *Registry
+ Truncate bool
+
+ // Ancestor is the type of a containing document. This is mainly used to determine what type
+ // should be used when decoding an embedded document into an empty interface. For example, if
+ // Ancestor is a bson.M, BSON embedded document values being decoded into an empty interface
+ // will be decoded into a bson.M.
+ //
+ // Deprecated: Use DefaultDocumentM or DefaultDocumentD instead.
+ Ancestor reflect.Type
+
+ // defaultDocumentType specifies the Go type to decode top-level and nested BSON documents into. In particular, the
+ // usage for this field is restricted to data typed as "interface{}" or "map[string]interface{}". If DocumentType is
+ // set to a type that a BSON document cannot be unmarshaled into (e.g. "string"), unmarshalling will result in an
+ // error. DocumentType overrides the Ancestor field.
+ defaultDocumentType reflect.Type
+}
+
+// DefaultDocumentM will decode empty documents using the primitive.M type. This behavior is restricted to data typed as
+// "interface{}" or "map[string]interface{}".
+func (dc *DecodeContext) DefaultDocumentM() {
+ dc.defaultDocumentType = reflect.TypeOf(primitive.M{})
+}
+
+// DefaultDocumentD will decode empty documents using the primitive.D type. This behavior is restricted to data typed as
+// "interface{}" or "map[string]interface{}".
+func (dc *DecodeContext) DefaultDocumentD() {
+ dc.defaultDocumentType = reflect.TypeOf(primitive.D{})
+}
+
+// ValueCodec is the interface that groups the methods to encode and decode
+// values.
+type ValueCodec interface {
+ ValueEncoder
+ ValueDecoder
+}
+
+// ValueEncoder is the interface implemented by types that can handle the encoding of a value.
+type ValueEncoder interface {
+ EncodeValue(EncodeContext, bsonrw.ValueWriter, reflect.Value) error
+}
+
+// ValueEncoderFunc is an adapter function that allows a function with the correct signature to be
+// used as a ValueEncoder.
+type ValueEncoderFunc func(EncodeContext, bsonrw.ValueWriter, reflect.Value) error
+
+// EncodeValue implements the ValueEncoder interface.
+func (fn ValueEncoderFunc) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ return fn(ec, vw, val)
+}
+
+// ValueDecoder is the interface implemented by types that can handle the decoding of a value.
+type ValueDecoder interface {
+ DecodeValue(DecodeContext, bsonrw.ValueReader, reflect.Value) error
+}
+
+// ValueDecoderFunc is an adapter function that allows a function with the correct signature to be
+// used as a ValueDecoder.
+type ValueDecoderFunc func(DecodeContext, bsonrw.ValueReader, reflect.Value) error
+
+// DecodeValue implements the ValueDecoder interface.
+func (fn ValueDecoderFunc) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ return fn(dc, vr, val)
+}
+
+// typeDecoder is the interface implemented by types that can handle the decoding of a value given its type.
+type typeDecoder interface {
+ decodeType(DecodeContext, bsonrw.ValueReader, reflect.Type) (reflect.Value, error)
+}
+
+// typeDecoderFunc is an adapter function that allows a function with the correct signature to be used as a typeDecoder.
+type typeDecoderFunc func(DecodeContext, bsonrw.ValueReader, reflect.Type) (reflect.Value, error)
+
+func (fn typeDecoderFunc) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ return fn(dc, vr, t)
+}
+
+// decodeAdapter allows two functions with the correct signatures to be used as both a ValueDecoder and typeDecoder.
+type decodeAdapter struct {
+ ValueDecoderFunc
+ typeDecoderFunc
+}
+
+var _ ValueDecoder = decodeAdapter{}
+var _ typeDecoder = decodeAdapter{}
+
+// decodeTypeOrValue calls decoder.decodeType is decoder is a typeDecoder. Otherwise, it allocates a new element of type
+// t and calls decoder.DecodeValue on it.
+func decodeTypeOrValue(decoder ValueDecoder, dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ td, _ := decoder.(typeDecoder)
+ return decodeTypeOrValueWithInfo(decoder, td, dc, vr, t, true)
+}
+
+func decodeTypeOrValueWithInfo(vd ValueDecoder, td typeDecoder, dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type, convert bool) (reflect.Value, error) {
+ if td != nil {
+ val, err := td.decodeType(dc, vr, t)
+ if err == nil && convert && val.Type() != t {
+ // This conversion step is necessary for slices and maps. If a user declares variables like:
+ //
+ // type myBool bool
+ // var m map[string]myBool
+ //
+ // and tries to decode BSON bytes into the map, the decoding will fail if this conversion is not present
+ // because we'll try to assign a value of type bool to one of type myBool.
+ val = val.Convert(t)
+ }
+ return val, err
+ }
+
+ val := reflect.New(t).Elem()
+ err := vd.DecodeValue(dc, vr, val)
+ return val, err
+}
+
+// CodecZeroer is the interface implemented by Codecs that can also determine if
+// a value of the type that would be encoded is zero.
+type CodecZeroer interface {
+ IsTypeZero(interface{}) bool
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/byte_slice_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/byte_slice_codec.go
new file mode 100644
index 00000000..5a916cc1
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/byte_slice_codec.go
@@ -0,0 +1,111 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "fmt"
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+// ByteSliceCodec is the Codec used for []byte values.
+type ByteSliceCodec struct {
+ EncodeNilAsEmpty bool
+}
+
+var (
+ defaultByteSliceCodec = NewByteSliceCodec()
+
+ _ ValueCodec = defaultByteSliceCodec
+ _ typeDecoder = defaultByteSliceCodec
+)
+
+// NewByteSliceCodec returns a StringCodec with options opts.
+func NewByteSliceCodec(opts ...*bsonoptions.ByteSliceCodecOptions) *ByteSliceCodec {
+ byteSliceOpt := bsonoptions.MergeByteSliceCodecOptions(opts...)
+ codec := ByteSliceCodec{}
+ if byteSliceOpt.EncodeNilAsEmpty != nil {
+ codec.EncodeNilAsEmpty = *byteSliceOpt.EncodeNilAsEmpty
+ }
+ return &codec
+}
+
+// EncodeValue is the ValueEncoder for []byte.
+func (bsc *ByteSliceCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tByteSlice {
+ return ValueEncoderError{Name: "ByteSliceEncodeValue", Types: []reflect.Type{tByteSlice}, Received: val}
+ }
+ if val.IsNil() && !bsc.EncodeNilAsEmpty {
+ return vw.WriteNull()
+ }
+ return vw.WriteBinary(val.Interface().([]byte))
+}
+
+func (bsc *ByteSliceCodec) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tByteSlice {
+ return emptyValue, ValueDecoderError{
+ Name: "ByteSliceDecodeValue",
+ Types: []reflect.Type{tByteSlice},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var data []byte
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.String:
+ str, err := vr.ReadString()
+ if err != nil {
+ return emptyValue, err
+ }
+ data = []byte(str)
+ case bsontype.Symbol:
+ sym, err := vr.ReadSymbol()
+ if err != nil {
+ return emptyValue, err
+ }
+ data = []byte(sym)
+ case bsontype.Binary:
+ var subtype byte
+ data, subtype, err = vr.ReadBinary()
+ if err != nil {
+ return emptyValue, err
+ }
+ if subtype != bsontype.BinaryGeneric && subtype != bsontype.BinaryBinaryOld {
+ return emptyValue, decodeBinaryError{subtype: subtype, typeName: "[]byte"}
+ }
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a []byte", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(data), nil
+}
+
+// DecodeValue is the ValueDecoder for []byte.
+func (bsc *ByteSliceCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tByteSlice {
+ return ValueDecoderError{Name: "ByteSliceDecodeValue", Types: []reflect.Type{tByteSlice}, Received: val}
+ }
+
+ elem, err := bsc.decodeType(dc, vr, tByteSlice)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/cond_addr_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/cond_addr_codec.go
new file mode 100644
index 00000000..cb8180f2
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/cond_addr_codec.go
@@ -0,0 +1,63 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+)
+
+// condAddrEncoder is the encoder used when a pointer to the encoding value has an encoder.
+type condAddrEncoder struct {
+ canAddrEnc ValueEncoder
+ elseEnc ValueEncoder
+}
+
+var _ ValueEncoder = (*condAddrEncoder)(nil)
+
+// newCondAddrEncoder returns an condAddrEncoder.
+func newCondAddrEncoder(canAddrEnc, elseEnc ValueEncoder) *condAddrEncoder {
+ encoder := condAddrEncoder{canAddrEnc: canAddrEnc, elseEnc: elseEnc}
+ return &encoder
+}
+
+// EncodeValue is the ValueEncoderFunc for a value that may be addressable.
+func (cae *condAddrEncoder) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if val.CanAddr() {
+ return cae.canAddrEnc.EncodeValue(ec, vw, val)
+ }
+ if cae.elseEnc != nil {
+ return cae.elseEnc.EncodeValue(ec, vw, val)
+ }
+ return ErrNoEncoder{Type: val.Type()}
+}
+
+// condAddrDecoder is the decoder used when a pointer to the value has a decoder.
+type condAddrDecoder struct {
+ canAddrDec ValueDecoder
+ elseDec ValueDecoder
+}
+
+var _ ValueDecoder = (*condAddrDecoder)(nil)
+
+// newCondAddrDecoder returns an CondAddrDecoder.
+func newCondAddrDecoder(canAddrDec, elseDec ValueDecoder) *condAddrDecoder {
+ decoder := condAddrDecoder{canAddrDec: canAddrDec, elseDec: elseDec}
+ return &decoder
+}
+
+// DecodeValue is the ValueDecoderFunc for a value that may be addressable.
+func (cad *condAddrDecoder) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if val.CanAddr() {
+ return cad.canAddrDec.DecodeValue(dc, vr, val)
+ }
+ if cad.elseDec != nil {
+ return cad.elseDec.DecodeValue(dc, vr, val)
+ }
+ return ErrNoDecoder{Type: val.Type()}
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_decoders.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_decoders.go
new file mode 100644
index 00000000..e95cab58
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_decoders.go
@@ -0,0 +1,1729 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "encoding/json"
+ "errors"
+ "fmt"
+ "math"
+ "net/url"
+ "reflect"
+ "strconv"
+ "time"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+ "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
+)
+
+var (
+ defaultValueDecoders DefaultValueDecoders
+ errCannotTruncate = errors.New("float64 can only be truncated to an integer type when truncation is enabled")
+)
+
+type decodeBinaryError struct {
+ subtype byte
+ typeName string
+}
+
+func (d decodeBinaryError) Error() string {
+ return fmt.Sprintf("only binary values with subtype 0x00 or 0x02 can be decoded into %s, but got subtype %v", d.typeName, d.subtype)
+}
+
+func newDefaultStructCodec() *StructCodec {
+ codec, err := NewStructCodec(DefaultStructTagParser)
+ if err != nil {
+ // This function is called from the codec registration path, so errors can't be propagated. If there's an error
+ // constructing the StructCodec, we panic to avoid losing it.
+ panic(fmt.Errorf("error creating default StructCodec: %v", err))
+ }
+ return codec
+}
+
+// DefaultValueDecoders is a namespace type for the default ValueDecoders used
+// when creating a registry.
+type DefaultValueDecoders struct{}
+
+// RegisterDefaultDecoders will register the decoder methods attached to DefaultValueDecoders with
+// the provided RegistryBuilder.
+//
+// There is no support for decoding map[string]interface{} because there is no decoder for
+// interface{}, so users must either register this decoder themselves or use the
+// EmptyInterfaceDecoder available in the bson package.
+func (dvd DefaultValueDecoders) RegisterDefaultDecoders(rb *RegistryBuilder) {
+ if rb == nil {
+ panic(errors.New("argument to RegisterDefaultDecoders must not be nil"))
+ }
+
+ intDecoder := decodeAdapter{dvd.IntDecodeValue, dvd.intDecodeType}
+ floatDecoder := decodeAdapter{dvd.FloatDecodeValue, dvd.floatDecodeType}
+
+ rb.
+ RegisterTypeDecoder(tD, ValueDecoderFunc(dvd.DDecodeValue)).
+ RegisterTypeDecoder(tBinary, decodeAdapter{dvd.BinaryDecodeValue, dvd.binaryDecodeType}).
+ RegisterTypeDecoder(tUndefined, decodeAdapter{dvd.UndefinedDecodeValue, dvd.undefinedDecodeType}).
+ RegisterTypeDecoder(tDateTime, decodeAdapter{dvd.DateTimeDecodeValue, dvd.dateTimeDecodeType}).
+ RegisterTypeDecoder(tNull, decodeAdapter{dvd.NullDecodeValue, dvd.nullDecodeType}).
+ RegisterTypeDecoder(tRegex, decodeAdapter{dvd.RegexDecodeValue, dvd.regexDecodeType}).
+ RegisterTypeDecoder(tDBPointer, decodeAdapter{dvd.DBPointerDecodeValue, dvd.dBPointerDecodeType}).
+ RegisterTypeDecoder(tTimestamp, decodeAdapter{dvd.TimestampDecodeValue, dvd.timestampDecodeType}).
+ RegisterTypeDecoder(tMinKey, decodeAdapter{dvd.MinKeyDecodeValue, dvd.minKeyDecodeType}).
+ RegisterTypeDecoder(tMaxKey, decodeAdapter{dvd.MaxKeyDecodeValue, dvd.maxKeyDecodeType}).
+ RegisterTypeDecoder(tJavaScript, decodeAdapter{dvd.JavaScriptDecodeValue, dvd.javaScriptDecodeType}).
+ RegisterTypeDecoder(tSymbol, decodeAdapter{dvd.SymbolDecodeValue, dvd.symbolDecodeType}).
+ RegisterTypeDecoder(tByteSlice, defaultByteSliceCodec).
+ RegisterTypeDecoder(tTime, defaultTimeCodec).
+ RegisterTypeDecoder(tEmpty, defaultEmptyInterfaceCodec).
+ RegisterTypeDecoder(tCoreArray, defaultArrayCodec).
+ RegisterTypeDecoder(tOID, decodeAdapter{dvd.ObjectIDDecodeValue, dvd.objectIDDecodeType}).
+ RegisterTypeDecoder(tDecimal, decodeAdapter{dvd.Decimal128DecodeValue, dvd.decimal128DecodeType}).
+ RegisterTypeDecoder(tJSONNumber, decodeAdapter{dvd.JSONNumberDecodeValue, dvd.jsonNumberDecodeType}).
+ RegisterTypeDecoder(tURL, decodeAdapter{dvd.URLDecodeValue, dvd.urlDecodeType}).
+ RegisterTypeDecoder(tCoreDocument, ValueDecoderFunc(dvd.CoreDocumentDecodeValue)).
+ RegisterTypeDecoder(tCodeWithScope, decodeAdapter{dvd.CodeWithScopeDecodeValue, dvd.codeWithScopeDecodeType}).
+ RegisterDefaultDecoder(reflect.Bool, decodeAdapter{dvd.BooleanDecodeValue, dvd.booleanDecodeType}).
+ RegisterDefaultDecoder(reflect.Int, intDecoder).
+ RegisterDefaultDecoder(reflect.Int8, intDecoder).
+ RegisterDefaultDecoder(reflect.Int16, intDecoder).
+ RegisterDefaultDecoder(reflect.Int32, intDecoder).
+ RegisterDefaultDecoder(reflect.Int64, intDecoder).
+ RegisterDefaultDecoder(reflect.Uint, defaultUIntCodec).
+ RegisterDefaultDecoder(reflect.Uint8, defaultUIntCodec).
+ RegisterDefaultDecoder(reflect.Uint16, defaultUIntCodec).
+ RegisterDefaultDecoder(reflect.Uint32, defaultUIntCodec).
+ RegisterDefaultDecoder(reflect.Uint64, defaultUIntCodec).
+ RegisterDefaultDecoder(reflect.Float32, floatDecoder).
+ RegisterDefaultDecoder(reflect.Float64, floatDecoder).
+ RegisterDefaultDecoder(reflect.Array, ValueDecoderFunc(dvd.ArrayDecodeValue)).
+ RegisterDefaultDecoder(reflect.Map, defaultMapCodec).
+ RegisterDefaultDecoder(reflect.Slice, defaultSliceCodec).
+ RegisterDefaultDecoder(reflect.String, defaultStringCodec).
+ RegisterDefaultDecoder(reflect.Struct, newDefaultStructCodec()).
+ RegisterDefaultDecoder(reflect.Ptr, NewPointerCodec()).
+ RegisterTypeMapEntry(bsontype.Double, tFloat64).
+ RegisterTypeMapEntry(bsontype.String, tString).
+ RegisterTypeMapEntry(bsontype.Array, tA).
+ RegisterTypeMapEntry(bsontype.Binary, tBinary).
+ RegisterTypeMapEntry(bsontype.Undefined, tUndefined).
+ RegisterTypeMapEntry(bsontype.ObjectID, tOID).
+ RegisterTypeMapEntry(bsontype.Boolean, tBool).
+ RegisterTypeMapEntry(bsontype.DateTime, tDateTime).
+ RegisterTypeMapEntry(bsontype.Regex, tRegex).
+ RegisterTypeMapEntry(bsontype.DBPointer, tDBPointer).
+ RegisterTypeMapEntry(bsontype.JavaScript, tJavaScript).
+ RegisterTypeMapEntry(bsontype.Symbol, tSymbol).
+ RegisterTypeMapEntry(bsontype.CodeWithScope, tCodeWithScope).
+ RegisterTypeMapEntry(bsontype.Int32, tInt32).
+ RegisterTypeMapEntry(bsontype.Int64, tInt64).
+ RegisterTypeMapEntry(bsontype.Timestamp, tTimestamp).
+ RegisterTypeMapEntry(bsontype.Decimal128, tDecimal).
+ RegisterTypeMapEntry(bsontype.MinKey, tMinKey).
+ RegisterTypeMapEntry(bsontype.MaxKey, tMaxKey).
+ RegisterTypeMapEntry(bsontype.Type(0), tD).
+ RegisterTypeMapEntry(bsontype.EmbeddedDocument, tD).
+ RegisterHookDecoder(tValueUnmarshaler, ValueDecoderFunc(dvd.ValueUnmarshalerDecodeValue)).
+ RegisterHookDecoder(tUnmarshaler, ValueDecoderFunc(dvd.UnmarshalerDecodeValue))
+}
+
+// DDecodeValue is the ValueDecoderFunc for primitive.D instances.
+func (dvd DefaultValueDecoders) DDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.IsValid() || !val.CanSet() || val.Type() != tD {
+ return ValueDecoderError{Name: "DDecodeValue", Kinds: []reflect.Kind{reflect.Slice}, Received: val}
+ }
+
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ dc.Ancestor = tD
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ default:
+ return fmt.Errorf("cannot decode %v into a primitive.D", vrType)
+ }
+
+ dr, err := vr.ReadDocument()
+ if err != nil {
+ return err
+ }
+
+ decoder, err := dc.LookupDecoder(tEmpty)
+ if err != nil {
+ return err
+ }
+ tEmptyTypeDecoder, _ := decoder.(typeDecoder)
+
+ // Use the elements in the provided value if it's non nil. Otherwise, allocate a new D instance.
+ var elems primitive.D
+ if !val.IsNil() {
+ val.SetLen(0)
+ elems = val.Interface().(primitive.D)
+ } else {
+ elems = make(primitive.D, 0)
+ }
+
+ for {
+ key, elemVr, err := dr.ReadElement()
+ if err == bsonrw.ErrEOD {
+ break
+ } else if err != nil {
+ return err
+ }
+
+ // Pass false for convert because we don't need to call reflect.Value.Convert for tEmpty.
+ elem, err := decodeTypeOrValueWithInfo(decoder, tEmptyTypeDecoder, dc, elemVr, tEmpty, false)
+ if err != nil {
+ return err
+ }
+
+ elems = append(elems, primitive.E{Key: key, Value: elem.Interface()})
+ }
+
+ val.Set(reflect.ValueOf(elems))
+ return nil
+}
+
+func (dvd DefaultValueDecoders) booleanDecodeType(dctx DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t.Kind() != reflect.Bool {
+ return emptyValue, ValueDecoderError{
+ Name: "BooleanDecodeValue",
+ Kinds: []reflect.Kind{reflect.Bool},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var b bool
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return emptyValue, err
+ }
+ b = (i32 != 0)
+ case bsontype.Int64:
+ i64, err := vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ b = (i64 != 0)
+ case bsontype.Double:
+ f64, err := vr.ReadDouble()
+ if err != nil {
+ return emptyValue, err
+ }
+ b = (f64 != 0)
+ case bsontype.Boolean:
+ b, err = vr.ReadBoolean()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a boolean", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(b), nil
+}
+
+// BooleanDecodeValue is the ValueDecoderFunc for bool types.
+func (dvd DefaultValueDecoders) BooleanDecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.IsValid() || !val.CanSet() || val.Kind() != reflect.Bool {
+ return ValueDecoderError{Name: "BooleanDecodeValue", Kinds: []reflect.Kind{reflect.Bool}, Received: val}
+ }
+
+ elem, err := dvd.booleanDecodeType(dctx, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.SetBool(elem.Bool())
+ return nil
+}
+
+func (DefaultValueDecoders) intDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ var i64 int64
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return emptyValue, err
+ }
+ i64 = int64(i32)
+ case bsontype.Int64:
+ i64, err = vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Double:
+ f64, err := vr.ReadDouble()
+ if err != nil {
+ return emptyValue, err
+ }
+ if !dc.Truncate && math.Floor(f64) != f64 {
+ return emptyValue, errCannotTruncate
+ }
+ if f64 > float64(math.MaxInt64) {
+ return emptyValue, fmt.Errorf("%g overflows int64", f64)
+ }
+ i64 = int64(f64)
+ case bsontype.Boolean:
+ b, err := vr.ReadBoolean()
+ if err != nil {
+ return emptyValue, err
+ }
+ if b {
+ i64 = 1
+ }
+ case bsontype.Null:
+ if err = vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err = vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into an integer type", vrType)
+ }
+
+ switch t.Kind() {
+ case reflect.Int8:
+ if i64 < math.MinInt8 || i64 > math.MaxInt8 {
+ return emptyValue, fmt.Errorf("%d overflows int8", i64)
+ }
+
+ return reflect.ValueOf(int8(i64)), nil
+ case reflect.Int16:
+ if i64 < math.MinInt16 || i64 > math.MaxInt16 {
+ return emptyValue, fmt.Errorf("%d overflows int16", i64)
+ }
+
+ return reflect.ValueOf(int16(i64)), nil
+ case reflect.Int32:
+ if i64 < math.MinInt32 || i64 > math.MaxInt32 {
+ return emptyValue, fmt.Errorf("%d overflows int32", i64)
+ }
+
+ return reflect.ValueOf(int32(i64)), nil
+ case reflect.Int64:
+ return reflect.ValueOf(i64), nil
+ case reflect.Int:
+ if int64(int(i64)) != i64 { // Can we fit this inside of an int
+ return emptyValue, fmt.Errorf("%d overflows int", i64)
+ }
+
+ return reflect.ValueOf(int(i64)), nil
+ default:
+ return emptyValue, ValueDecoderError{
+ Name: "IntDecodeValue",
+ Kinds: []reflect.Kind{reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int},
+ Received: reflect.Zero(t),
+ }
+ }
+}
+
+// IntDecodeValue is the ValueDecoderFunc for int types.
+func (dvd DefaultValueDecoders) IntDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() {
+ return ValueDecoderError{
+ Name: "IntDecodeValue",
+ Kinds: []reflect.Kind{reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int},
+ Received: val,
+ }
+ }
+
+ elem, err := dvd.intDecodeType(dc, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.SetInt(elem.Int())
+ return nil
+}
+
+// UintDecodeValue is the ValueDecoderFunc for uint types.
+//
+// Deprecated: UintDecodeValue is not registered by default. Use UintCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) UintDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ var i64 int64
+ var err error
+ switch vr.Type() {
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return err
+ }
+ i64 = int64(i32)
+ case bsontype.Int64:
+ i64, err = vr.ReadInt64()
+ if err != nil {
+ return err
+ }
+ case bsontype.Double:
+ f64, err := vr.ReadDouble()
+ if err != nil {
+ return err
+ }
+ if !dc.Truncate && math.Floor(f64) != f64 {
+ return errors.New("UintDecodeValue can only truncate float64 to an integer type when truncation is enabled")
+ }
+ if f64 > float64(math.MaxInt64) {
+ return fmt.Errorf("%g overflows int64", f64)
+ }
+ i64 = int64(f64)
+ case bsontype.Boolean:
+ b, err := vr.ReadBoolean()
+ if err != nil {
+ return err
+ }
+ if b {
+ i64 = 1
+ }
+ default:
+ return fmt.Errorf("cannot decode %v into an integer type", vr.Type())
+ }
+
+ if !val.CanSet() {
+ return ValueDecoderError{
+ Name: "UintDecodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: val,
+ }
+ }
+
+ switch val.Kind() {
+ case reflect.Uint8:
+ if i64 < 0 || i64 > math.MaxUint8 {
+ return fmt.Errorf("%d overflows uint8", i64)
+ }
+ case reflect.Uint16:
+ if i64 < 0 || i64 > math.MaxUint16 {
+ return fmt.Errorf("%d overflows uint16", i64)
+ }
+ case reflect.Uint32:
+ if i64 < 0 || i64 > math.MaxUint32 {
+ return fmt.Errorf("%d overflows uint32", i64)
+ }
+ case reflect.Uint64:
+ if i64 < 0 {
+ return fmt.Errorf("%d overflows uint64", i64)
+ }
+ case reflect.Uint:
+ if i64 < 0 || int64(uint(i64)) != i64 { // Can we fit this inside of an uint
+ return fmt.Errorf("%d overflows uint", i64)
+ }
+ default:
+ return ValueDecoderError{
+ Name: "UintDecodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: val,
+ }
+ }
+
+ val.SetUint(uint64(i64))
+ return nil
+}
+
+func (dvd DefaultValueDecoders) floatDecodeType(ec DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ var f float64
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return emptyValue, err
+ }
+ f = float64(i32)
+ case bsontype.Int64:
+ i64, err := vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ f = float64(i64)
+ case bsontype.Double:
+ f, err = vr.ReadDouble()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Boolean:
+ b, err := vr.ReadBoolean()
+ if err != nil {
+ return emptyValue, err
+ }
+ if b {
+ f = 1
+ }
+ case bsontype.Null:
+ if err = vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err = vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a float32 or float64 type", vrType)
+ }
+
+ switch t.Kind() {
+ case reflect.Float32:
+ if !ec.Truncate && float64(float32(f)) != f {
+ return emptyValue, errCannotTruncate
+ }
+
+ return reflect.ValueOf(float32(f)), nil
+ case reflect.Float64:
+ return reflect.ValueOf(f), nil
+ default:
+ return emptyValue, ValueDecoderError{
+ Name: "FloatDecodeValue",
+ Kinds: []reflect.Kind{reflect.Float32, reflect.Float64},
+ Received: reflect.Zero(t),
+ }
+ }
+}
+
+// FloatDecodeValue is the ValueDecoderFunc for float types.
+func (dvd DefaultValueDecoders) FloatDecodeValue(ec DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() {
+ return ValueDecoderError{
+ Name: "FloatDecodeValue",
+ Kinds: []reflect.Kind{reflect.Float32, reflect.Float64},
+ Received: val,
+ }
+ }
+
+ elem, err := dvd.floatDecodeType(ec, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.SetFloat(elem.Float())
+ return nil
+}
+
+// StringDecodeValue is the ValueDecoderFunc for string types.
+//
+// Deprecated: StringDecodeValue is not registered by default. Use StringCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) StringDecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ var str string
+ var err error
+ switch vr.Type() {
+ // TODO(GODRIVER-577): Handle JavaScript and Symbol BSON types when allowed.
+ case bsontype.String:
+ str, err = vr.ReadString()
+ if err != nil {
+ return err
+ }
+ default:
+ return fmt.Errorf("cannot decode %v into a string type", vr.Type())
+ }
+ if !val.CanSet() || val.Kind() != reflect.String {
+ return ValueDecoderError{Name: "StringDecodeValue", Kinds: []reflect.Kind{reflect.String}, Received: val}
+ }
+
+ val.SetString(str)
+ return nil
+}
+
+func (DefaultValueDecoders) javaScriptDecodeType(dctx DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tJavaScript {
+ return emptyValue, ValueDecoderError{
+ Name: "JavaScriptDecodeValue",
+ Types: []reflect.Type{tJavaScript},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var js string
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.JavaScript:
+ js, err = vr.ReadJavascript()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a primitive.JavaScript", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.JavaScript(js)), nil
+}
+
+// JavaScriptDecodeValue is the ValueDecoderFunc for the primitive.JavaScript type.
+func (dvd DefaultValueDecoders) JavaScriptDecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tJavaScript {
+ return ValueDecoderError{Name: "JavaScriptDecodeValue", Types: []reflect.Type{tJavaScript}, Received: val}
+ }
+
+ elem, err := dvd.javaScriptDecodeType(dctx, vr, tJavaScript)
+ if err != nil {
+ return err
+ }
+
+ val.SetString(elem.String())
+ return nil
+}
+
+func (DefaultValueDecoders) symbolDecodeType(dctx DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tSymbol {
+ return emptyValue, ValueDecoderError{
+ Name: "SymbolDecodeValue",
+ Types: []reflect.Type{tSymbol},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var symbol string
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.String:
+ symbol, err = vr.ReadString()
+ case bsontype.Symbol:
+ symbol, err = vr.ReadSymbol()
+ case bsontype.Binary:
+ data, subtype, err := vr.ReadBinary()
+ if err != nil {
+ return emptyValue, err
+ }
+
+ if subtype != bsontype.BinaryGeneric && subtype != bsontype.BinaryBinaryOld {
+ return emptyValue, decodeBinaryError{subtype: subtype, typeName: "primitive.Symbol"}
+ }
+ symbol = string(data)
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a primitive.Symbol", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Symbol(symbol)), nil
+}
+
+// SymbolDecodeValue is the ValueDecoderFunc for the primitive.Symbol type.
+func (dvd DefaultValueDecoders) SymbolDecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tSymbol {
+ return ValueDecoderError{Name: "SymbolDecodeValue", Types: []reflect.Type{tSymbol}, Received: val}
+ }
+
+ elem, err := dvd.symbolDecodeType(dctx, vr, tSymbol)
+ if err != nil {
+ return err
+ }
+
+ val.SetString(elem.String())
+ return nil
+}
+
+func (DefaultValueDecoders) binaryDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tBinary {
+ return emptyValue, ValueDecoderError{
+ Name: "BinaryDecodeValue",
+ Types: []reflect.Type{tBinary},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var data []byte
+ var subtype byte
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Binary:
+ data, subtype, err = vr.ReadBinary()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a Binary", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Binary{Subtype: subtype, Data: data}), nil
+}
+
+// BinaryDecodeValue is the ValueDecoderFunc for Binary.
+func (dvd DefaultValueDecoders) BinaryDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tBinary {
+ return ValueDecoderError{Name: "BinaryDecodeValue", Types: []reflect.Type{tBinary}, Received: val}
+ }
+
+ elem, err := dvd.binaryDecodeType(dc, vr, tBinary)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) undefinedDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tUndefined {
+ return emptyValue, ValueDecoderError{
+ Name: "UndefinedDecodeValue",
+ Types: []reflect.Type{tUndefined},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into an Undefined", vr.Type())
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Undefined{}), nil
+}
+
+// UndefinedDecodeValue is the ValueDecoderFunc for Undefined.
+func (dvd DefaultValueDecoders) UndefinedDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tUndefined {
+ return ValueDecoderError{Name: "UndefinedDecodeValue", Types: []reflect.Type{tUndefined}, Received: val}
+ }
+
+ elem, err := dvd.undefinedDecodeType(dc, vr, tUndefined)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+// Accept both 12-byte string and pretty-printed 24-byte hex string formats.
+func (dvd DefaultValueDecoders) objectIDDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tOID {
+ return emptyValue, ValueDecoderError{
+ Name: "ObjectIDDecodeValue",
+ Types: []reflect.Type{tOID},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var oid primitive.ObjectID
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.ObjectID:
+ oid, err = vr.ReadObjectID()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.String:
+ str, err := vr.ReadString()
+ if err != nil {
+ return emptyValue, err
+ }
+ if oid, err = primitive.ObjectIDFromHex(str); err == nil {
+ break
+ }
+ if len(str) != 12 {
+ return emptyValue, fmt.Errorf("an ObjectID string must be exactly 12 bytes long (got %v)", len(str))
+ }
+ byteArr := []byte(str)
+ copy(oid[:], byteArr)
+ case bsontype.Null:
+ if err = vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err = vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into an ObjectID", vrType)
+ }
+
+ return reflect.ValueOf(oid), nil
+}
+
+// ObjectIDDecodeValue is the ValueDecoderFunc for primitive.ObjectID.
+func (dvd DefaultValueDecoders) ObjectIDDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tOID {
+ return ValueDecoderError{Name: "ObjectIDDecodeValue", Types: []reflect.Type{tOID}, Received: val}
+ }
+
+ elem, err := dvd.objectIDDecodeType(dc, vr, tOID)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) dateTimeDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tDateTime {
+ return emptyValue, ValueDecoderError{
+ Name: "DateTimeDecodeValue",
+ Types: []reflect.Type{tDateTime},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var dt int64
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.DateTime:
+ dt, err = vr.ReadDateTime()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a DateTime", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.DateTime(dt)), nil
+}
+
+// DateTimeDecodeValue is the ValueDecoderFunc for DateTime.
+func (dvd DefaultValueDecoders) DateTimeDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tDateTime {
+ return ValueDecoderError{Name: "DateTimeDecodeValue", Types: []reflect.Type{tDateTime}, Received: val}
+ }
+
+ elem, err := dvd.dateTimeDecodeType(dc, vr, tDateTime)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) nullDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tNull {
+ return emptyValue, ValueDecoderError{
+ Name: "NullDecodeValue",
+ Types: []reflect.Type{tNull},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a Null", vr.Type())
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Null{}), nil
+}
+
+// NullDecodeValue is the ValueDecoderFunc for Null.
+func (dvd DefaultValueDecoders) NullDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tNull {
+ return ValueDecoderError{Name: "NullDecodeValue", Types: []reflect.Type{tNull}, Received: val}
+ }
+
+ elem, err := dvd.nullDecodeType(dc, vr, tNull)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) regexDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tRegex {
+ return emptyValue, ValueDecoderError{
+ Name: "RegexDecodeValue",
+ Types: []reflect.Type{tRegex},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var pattern, options string
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Regex:
+ pattern, options, err = vr.ReadRegex()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a Regex", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Regex{Pattern: pattern, Options: options}), nil
+}
+
+// RegexDecodeValue is the ValueDecoderFunc for Regex.
+func (dvd DefaultValueDecoders) RegexDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tRegex {
+ return ValueDecoderError{Name: "RegexDecodeValue", Types: []reflect.Type{tRegex}, Received: val}
+ }
+
+ elem, err := dvd.regexDecodeType(dc, vr, tRegex)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) dBPointerDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tDBPointer {
+ return emptyValue, ValueDecoderError{
+ Name: "DBPointerDecodeValue",
+ Types: []reflect.Type{tDBPointer},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var ns string
+ var pointer primitive.ObjectID
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.DBPointer:
+ ns, pointer, err = vr.ReadDBPointer()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a DBPointer", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.DBPointer{DB: ns, Pointer: pointer}), nil
+}
+
+// DBPointerDecodeValue is the ValueDecoderFunc for DBPointer.
+func (dvd DefaultValueDecoders) DBPointerDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tDBPointer {
+ return ValueDecoderError{Name: "DBPointerDecodeValue", Types: []reflect.Type{tDBPointer}, Received: val}
+ }
+
+ elem, err := dvd.dBPointerDecodeType(dc, vr, tDBPointer)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) timestampDecodeType(dc DecodeContext, vr bsonrw.ValueReader, reflectType reflect.Type) (reflect.Value, error) {
+ if reflectType != tTimestamp {
+ return emptyValue, ValueDecoderError{
+ Name: "TimestampDecodeValue",
+ Types: []reflect.Type{tTimestamp},
+ Received: reflect.Zero(reflectType),
+ }
+ }
+
+ var t, incr uint32
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Timestamp:
+ t, incr, err = vr.ReadTimestamp()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a Timestamp", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.Timestamp{T: t, I: incr}), nil
+}
+
+// TimestampDecodeValue is the ValueDecoderFunc for Timestamp.
+func (dvd DefaultValueDecoders) TimestampDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tTimestamp {
+ return ValueDecoderError{Name: "TimestampDecodeValue", Types: []reflect.Type{tTimestamp}, Received: val}
+ }
+
+ elem, err := dvd.timestampDecodeType(dc, vr, tTimestamp)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) minKeyDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tMinKey {
+ return emptyValue, ValueDecoderError{
+ Name: "MinKeyDecodeValue",
+ Types: []reflect.Type{tMinKey},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.MinKey:
+ err = vr.ReadMinKey()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a MinKey", vr.Type())
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.MinKey{}), nil
+}
+
+// MinKeyDecodeValue is the ValueDecoderFunc for MinKey.
+func (dvd DefaultValueDecoders) MinKeyDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tMinKey {
+ return ValueDecoderError{Name: "MinKeyDecodeValue", Types: []reflect.Type{tMinKey}, Received: val}
+ }
+
+ elem, err := dvd.minKeyDecodeType(dc, vr, tMinKey)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (DefaultValueDecoders) maxKeyDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tMaxKey {
+ return emptyValue, ValueDecoderError{
+ Name: "MaxKeyDecodeValue",
+ Types: []reflect.Type{tMaxKey},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.MaxKey:
+ err = vr.ReadMaxKey()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a MaxKey", vr.Type())
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(primitive.MaxKey{}), nil
+}
+
+// MaxKeyDecodeValue is the ValueDecoderFunc for MaxKey.
+func (dvd DefaultValueDecoders) MaxKeyDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tMaxKey {
+ return ValueDecoderError{Name: "MaxKeyDecodeValue", Types: []reflect.Type{tMaxKey}, Received: val}
+ }
+
+ elem, err := dvd.maxKeyDecodeType(dc, vr, tMaxKey)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (dvd DefaultValueDecoders) decimal128DecodeType(dctx DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tDecimal {
+ return emptyValue, ValueDecoderError{
+ Name: "Decimal128DecodeValue",
+ Types: []reflect.Type{tDecimal},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var d128 primitive.Decimal128
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Decimal128:
+ d128, err = vr.ReadDecimal128()
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a primitive.Decimal128", vr.Type())
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(d128), nil
+}
+
+// Decimal128DecodeValue is the ValueDecoderFunc for primitive.Decimal128.
+func (dvd DefaultValueDecoders) Decimal128DecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tDecimal {
+ return ValueDecoderError{Name: "Decimal128DecodeValue", Types: []reflect.Type{tDecimal}, Received: val}
+ }
+
+ elem, err := dvd.decimal128DecodeType(dctx, vr, tDecimal)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (dvd DefaultValueDecoders) jsonNumberDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tJSONNumber {
+ return emptyValue, ValueDecoderError{
+ Name: "JSONNumberDecodeValue",
+ Types: []reflect.Type{tJSONNumber},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var jsonNum json.Number
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Double:
+ f64, err := vr.ReadDouble()
+ if err != nil {
+ return emptyValue, err
+ }
+ jsonNum = json.Number(strconv.FormatFloat(f64, 'f', -1, 64))
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return emptyValue, err
+ }
+ jsonNum = json.Number(strconv.FormatInt(int64(i32), 10))
+ case bsontype.Int64:
+ i64, err := vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ jsonNum = json.Number(strconv.FormatInt(i64, 10))
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a json.Number", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(jsonNum), nil
+}
+
+// JSONNumberDecodeValue is the ValueDecoderFunc for json.Number.
+func (dvd DefaultValueDecoders) JSONNumberDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tJSONNumber {
+ return ValueDecoderError{Name: "JSONNumberDecodeValue", Types: []reflect.Type{tJSONNumber}, Received: val}
+ }
+
+ elem, err := dvd.jsonNumberDecodeType(dc, vr, tJSONNumber)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (dvd DefaultValueDecoders) urlDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tURL {
+ return emptyValue, ValueDecoderError{
+ Name: "URLDecodeValue",
+ Types: []reflect.Type{tURL},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ urlPtr := &url.URL{}
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.String:
+ var str string // Declare str here to avoid shadowing err during the ReadString call.
+ str, err = vr.ReadString()
+ if err != nil {
+ return emptyValue, err
+ }
+
+ urlPtr, err = url.Parse(str)
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a *url.URL", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(urlPtr).Elem(), nil
+}
+
+// URLDecodeValue is the ValueDecoderFunc for url.URL.
+func (dvd DefaultValueDecoders) URLDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tURL {
+ return ValueDecoderError{Name: "URLDecodeValue", Types: []reflect.Type{tURL}, Received: val}
+ }
+
+ elem, err := dvd.urlDecodeType(dc, vr, tURL)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+// TimeDecodeValue is the ValueDecoderFunc for time.Time.
+//
+// Deprecated: TimeDecodeValue is not registered by default. Use TimeCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) TimeDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if vr.Type() != bsontype.DateTime {
+ return fmt.Errorf("cannot decode %v into a time.Time", vr.Type())
+ }
+
+ dt, err := vr.ReadDateTime()
+ if err != nil {
+ return err
+ }
+
+ if !val.CanSet() || val.Type() != tTime {
+ return ValueDecoderError{Name: "TimeDecodeValue", Types: []reflect.Type{tTime}, Received: val}
+ }
+
+ val.Set(reflect.ValueOf(time.Unix(dt/1000, dt%1000*1000000).UTC()))
+ return nil
+}
+
+// ByteSliceDecodeValue is the ValueDecoderFunc for []byte.
+//
+// Deprecated: ByteSliceDecodeValue is not registered by default. Use ByteSliceCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) ByteSliceDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if vr.Type() != bsontype.Binary && vr.Type() != bsontype.Null {
+ return fmt.Errorf("cannot decode %v into a []byte", vr.Type())
+ }
+
+ if !val.CanSet() || val.Type() != tByteSlice {
+ return ValueDecoderError{Name: "ByteSliceDecodeValue", Types: []reflect.Type{tByteSlice}, Received: val}
+ }
+
+ if vr.Type() == bsontype.Null {
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ }
+
+ data, subtype, err := vr.ReadBinary()
+ if err != nil {
+ return err
+ }
+ if subtype != 0x00 {
+ return fmt.Errorf("ByteSliceDecodeValue can only be used to decode subtype 0x00 for %s, got %v", bsontype.Binary, subtype)
+ }
+
+ val.Set(reflect.ValueOf(data))
+ return nil
+}
+
+// MapDecodeValue is the ValueDecoderFunc for map[string]* types.
+//
+// Deprecated: MapDecodeValue is not registered by default. Use MapCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) MapDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.Map || val.Type().Key().Kind() != reflect.String {
+ return ValueDecoderError{Name: "MapDecodeValue", Kinds: []reflect.Kind{reflect.Map}, Received: val}
+ }
+
+ switch vr.Type() {
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ default:
+ return fmt.Errorf("cannot decode %v into a %s", vr.Type(), val.Type())
+ }
+
+ dr, err := vr.ReadDocument()
+ if err != nil {
+ return err
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeMap(val.Type()))
+ }
+
+ eType := val.Type().Elem()
+ decoder, err := dc.LookupDecoder(eType)
+ if err != nil {
+ return err
+ }
+
+ if eType == tEmpty {
+ dc.Ancestor = val.Type()
+ }
+
+ keyType := val.Type().Key()
+ for {
+ key, vr, err := dr.ReadElement()
+ if err == bsonrw.ErrEOD {
+ break
+ }
+ if err != nil {
+ return err
+ }
+
+ elem := reflect.New(eType).Elem()
+
+ err = decoder.DecodeValue(dc, vr, elem)
+ if err != nil {
+ return err
+ }
+
+ val.SetMapIndex(reflect.ValueOf(key).Convert(keyType), elem)
+ }
+ return nil
+}
+
+// ArrayDecodeValue is the ValueDecoderFunc for array types.
+func (dvd DefaultValueDecoders) ArrayDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Array {
+ return ValueDecoderError{Name: "ArrayDecodeValue", Kinds: []reflect.Kind{reflect.Array}, Received: val}
+ }
+
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Array:
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ if val.Type().Elem() != tE {
+ return fmt.Errorf("cannot decode document into %s", val.Type())
+ }
+ case bsontype.Binary:
+ if val.Type().Elem() != tByte {
+ return fmt.Errorf("ArrayDecodeValue can only be used to decode binary into a byte array, got %v", vrType)
+ }
+ data, subtype, err := vr.ReadBinary()
+ if err != nil {
+ return err
+ }
+ if subtype != bsontype.BinaryGeneric && subtype != bsontype.BinaryBinaryOld {
+ return fmt.Errorf("ArrayDecodeValue can only be used to decode subtype 0x00 or 0x02 for %s, got %v", bsontype.Binary, subtype)
+ }
+
+ if len(data) > val.Len() {
+ return fmt.Errorf("more elements returned in array than can fit inside %s", val.Type())
+ }
+
+ for idx, elem := range data {
+ val.Index(idx).Set(reflect.ValueOf(elem))
+ }
+ return nil
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ case bsontype.Undefined:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadUndefined()
+ default:
+ return fmt.Errorf("cannot decode %v into an array", vrType)
+ }
+
+ var elemsFunc func(DecodeContext, bsonrw.ValueReader, reflect.Value) ([]reflect.Value, error)
+ switch val.Type().Elem() {
+ case tE:
+ elemsFunc = dvd.decodeD
+ default:
+ elemsFunc = dvd.decodeDefault
+ }
+
+ elems, err := elemsFunc(dc, vr, val)
+ if err != nil {
+ return err
+ }
+
+ if len(elems) > val.Len() {
+ return fmt.Errorf("more elements returned in array than can fit inside %s, got %v elements", val.Type(), len(elems))
+ }
+
+ for idx, elem := range elems {
+ val.Index(idx).Set(elem)
+ }
+
+ return nil
+}
+
+// SliceDecodeValue is the ValueDecoderFunc for slice types.
+//
+// Deprecated: SliceDecodeValue is not registered by default. Use SliceCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) SliceDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.Slice {
+ return ValueDecoderError{Name: "SliceDecodeValue", Kinds: []reflect.Kind{reflect.Slice}, Received: val}
+ }
+
+ switch vr.Type() {
+ case bsontype.Array:
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ if val.Type().Elem() != tE {
+ return fmt.Errorf("cannot decode document into %s", val.Type())
+ }
+ default:
+ return fmt.Errorf("cannot decode %v into a slice", vr.Type())
+ }
+
+ var elemsFunc func(DecodeContext, bsonrw.ValueReader, reflect.Value) ([]reflect.Value, error)
+ switch val.Type().Elem() {
+ case tE:
+ dc.Ancestor = val.Type()
+ elemsFunc = dvd.decodeD
+ default:
+ elemsFunc = dvd.decodeDefault
+ }
+
+ elems, err := elemsFunc(dc, vr, val)
+ if err != nil {
+ return err
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, len(elems)))
+ }
+
+ val.SetLen(0)
+ val.Set(reflect.Append(val, elems...))
+
+ return nil
+}
+
+// ValueUnmarshalerDecodeValue is the ValueDecoderFunc for ValueUnmarshaler implementations.
+func (dvd DefaultValueDecoders) ValueUnmarshalerDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.IsValid() || (!val.Type().Implements(tValueUnmarshaler) && !reflect.PtrTo(val.Type()).Implements(tValueUnmarshaler)) {
+ return ValueDecoderError{Name: "ValueUnmarshalerDecodeValue", Types: []reflect.Type{tValueUnmarshaler}, Received: val}
+ }
+
+ if val.Kind() == reflect.Ptr && val.IsNil() {
+ if !val.CanSet() {
+ return ValueDecoderError{Name: "ValueUnmarshalerDecodeValue", Types: []reflect.Type{tValueUnmarshaler}, Received: val}
+ }
+ val.Set(reflect.New(val.Type().Elem()))
+ }
+
+ if !val.Type().Implements(tValueUnmarshaler) {
+ if !val.CanAddr() {
+ return ValueDecoderError{Name: "ValueUnmarshalerDecodeValue", Types: []reflect.Type{tValueUnmarshaler}, Received: val}
+ }
+ val = val.Addr() // If the type doesn't implement the interface, a pointer to it must.
+ }
+
+ t, src, err := bsonrw.Copier{}.CopyValueToBytes(vr)
+ if err != nil {
+ return err
+ }
+
+ fn := val.Convert(tValueUnmarshaler).MethodByName("UnmarshalBSONValue")
+ errVal := fn.Call([]reflect.Value{reflect.ValueOf(t), reflect.ValueOf(src)})[0]
+ if !errVal.IsNil() {
+ return errVal.Interface().(error)
+ }
+ return nil
+}
+
+// UnmarshalerDecodeValue is the ValueDecoderFunc for Unmarshaler implementations.
+func (dvd DefaultValueDecoders) UnmarshalerDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.IsValid() || (!val.Type().Implements(tUnmarshaler) && !reflect.PtrTo(val.Type()).Implements(tUnmarshaler)) {
+ return ValueDecoderError{Name: "UnmarshalerDecodeValue", Types: []reflect.Type{tUnmarshaler}, Received: val}
+ }
+
+ if val.Kind() == reflect.Ptr && val.IsNil() {
+ if !val.CanSet() {
+ return ValueDecoderError{Name: "UnmarshalerDecodeValue", Types: []reflect.Type{tUnmarshaler}, Received: val}
+ }
+ val.Set(reflect.New(val.Type().Elem()))
+ }
+
+ _, src, err := bsonrw.Copier{}.CopyValueToBytes(vr)
+ if err != nil {
+ return err
+ }
+
+ // If the target Go value is a pointer and the BSON field value is empty, set the value to the
+ // zero value of the pointer (nil) and don't call UnmarshalBSON. UnmarshalBSON has no way to
+ // change the pointer value from within the function (only the value at the pointer address),
+ // so it can't set the pointer to "nil" itself. Since the most common Go value for an empty BSON
+ // field value is "nil", we set "nil" here and don't call UnmarshalBSON. This behavior matches
+ // the behavior of the Go "encoding/json" unmarshaler when the target Go value is a pointer and
+ // the JSON field value is "null".
+ if val.Kind() == reflect.Ptr && len(src) == 0 {
+ val.Set(reflect.Zero(val.Type()))
+ return nil
+ }
+
+ if !val.Type().Implements(tUnmarshaler) {
+ if !val.CanAddr() {
+ return ValueDecoderError{Name: "UnmarshalerDecodeValue", Types: []reflect.Type{tUnmarshaler}, Received: val}
+ }
+ val = val.Addr() // If the type doesn't implement the interface, a pointer to it must.
+ }
+
+ fn := val.Convert(tUnmarshaler).MethodByName("UnmarshalBSON")
+ errVal := fn.Call([]reflect.Value{reflect.ValueOf(src)})[0]
+ if !errVal.IsNil() {
+ return errVal.Interface().(error)
+ }
+ return nil
+}
+
+// EmptyInterfaceDecodeValue is the ValueDecoderFunc for interface{}.
+//
+// Deprecated: EmptyInterfaceDecodeValue is not registered by default. Use EmptyInterfaceCodec.DecodeValue instead.
+func (dvd DefaultValueDecoders) EmptyInterfaceDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tEmpty {
+ return ValueDecoderError{Name: "EmptyInterfaceDecodeValue", Types: []reflect.Type{tEmpty}, Received: val}
+ }
+
+ rtype, err := dc.LookupTypeMapEntry(vr.Type())
+ if err != nil {
+ switch vr.Type() {
+ case bsontype.EmbeddedDocument:
+ if dc.Ancestor != nil {
+ rtype = dc.Ancestor
+ break
+ }
+ rtype = tD
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ default:
+ return err
+ }
+ }
+
+ decoder, err := dc.LookupDecoder(rtype)
+ if err != nil {
+ return err
+ }
+
+ elem := reflect.New(rtype).Elem()
+ err = decoder.DecodeValue(dc, vr, elem)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+// CoreDocumentDecodeValue is the ValueDecoderFunc for bsoncore.Document.
+func (DefaultValueDecoders) CoreDocumentDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tCoreDocument {
+ return ValueDecoderError{Name: "CoreDocumentDecodeValue", Types: []reflect.Type{tCoreDocument}, Received: val}
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, 0))
+ }
+
+ val.SetLen(0)
+
+ cdoc, err := bsonrw.Copier{}.AppendDocumentBytes(val.Interface().(bsoncore.Document), vr)
+ val.Set(reflect.ValueOf(cdoc))
+ return err
+}
+
+func (dvd DefaultValueDecoders) decodeDefault(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) ([]reflect.Value, error) {
+ elems := make([]reflect.Value, 0)
+
+ ar, err := vr.ReadArray()
+ if err != nil {
+ return nil, err
+ }
+
+ eType := val.Type().Elem()
+
+ decoder, err := dc.LookupDecoder(eType)
+ if err != nil {
+ return nil, err
+ }
+ eTypeDecoder, _ := decoder.(typeDecoder)
+
+ idx := 0
+ for {
+ vr, err := ar.ReadValue()
+ if err == bsonrw.ErrEOA {
+ break
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ elem, err := decodeTypeOrValueWithInfo(decoder, eTypeDecoder, dc, vr, eType, true)
+ if err != nil {
+ return nil, newDecodeError(strconv.Itoa(idx), err)
+ }
+ elems = append(elems, elem)
+ idx++
+ }
+
+ return elems, nil
+}
+
+func (dvd DefaultValueDecoders) readCodeWithScope(dc DecodeContext, vr bsonrw.ValueReader) (primitive.CodeWithScope, error) {
+ var cws primitive.CodeWithScope
+
+ code, dr, err := vr.ReadCodeWithScope()
+ if err != nil {
+ return cws, err
+ }
+
+ scope := reflect.New(tD).Elem()
+ elems, err := dvd.decodeElemsFromDocumentReader(dc, dr)
+ if err != nil {
+ return cws, err
+ }
+
+ scope.Set(reflect.MakeSlice(tD, 0, len(elems)))
+ scope.Set(reflect.Append(scope, elems...))
+
+ cws = primitive.CodeWithScope{
+ Code: primitive.JavaScript(code),
+ Scope: scope.Interface().(primitive.D),
+ }
+ return cws, nil
+}
+
+func (dvd DefaultValueDecoders) codeWithScopeDecodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tCodeWithScope {
+ return emptyValue, ValueDecoderError{
+ Name: "CodeWithScopeDecodeValue",
+ Types: []reflect.Type{tCodeWithScope},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var cws primitive.CodeWithScope
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.CodeWithScope:
+ cws, err = dvd.readCodeWithScope(dc, vr)
+ case bsontype.Null:
+ err = vr.ReadNull()
+ case bsontype.Undefined:
+ err = vr.ReadUndefined()
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a primitive.CodeWithScope", vrType)
+ }
+ if err != nil {
+ return emptyValue, err
+ }
+
+ return reflect.ValueOf(cws), nil
+}
+
+// CodeWithScopeDecodeValue is the ValueDecoderFunc for CodeWithScope.
+func (dvd DefaultValueDecoders) CodeWithScopeDecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tCodeWithScope {
+ return ValueDecoderError{Name: "CodeWithScopeDecodeValue", Types: []reflect.Type{tCodeWithScope}, Received: val}
+ }
+
+ elem, err := dvd.codeWithScopeDecodeType(dc, vr, tCodeWithScope)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+func (dvd DefaultValueDecoders) decodeD(dc DecodeContext, vr bsonrw.ValueReader, _ reflect.Value) ([]reflect.Value, error) {
+ switch vr.Type() {
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ default:
+ return nil, fmt.Errorf("cannot decode %v into a D", vr.Type())
+ }
+
+ dr, err := vr.ReadDocument()
+ if err != nil {
+ return nil, err
+ }
+
+ return dvd.decodeElemsFromDocumentReader(dc, dr)
+}
+
+func (DefaultValueDecoders) decodeElemsFromDocumentReader(dc DecodeContext, dr bsonrw.DocumentReader) ([]reflect.Value, error) {
+ decoder, err := dc.LookupDecoder(tEmpty)
+ if err != nil {
+ return nil, err
+ }
+
+ elems := make([]reflect.Value, 0)
+ for {
+ key, vr, err := dr.ReadElement()
+ if err == bsonrw.ErrEOD {
+ break
+ }
+ if err != nil {
+ return nil, err
+ }
+
+ val := reflect.New(tEmpty).Elem()
+ err = decoder.DecodeValue(dc, vr, val)
+ if err != nil {
+ return nil, newDecodeError(key, err)
+ }
+
+ elems = append(elems, reflect.ValueOf(primitive.E{Key: key, Value: val.Interface()}))
+ }
+
+ return elems, nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_encoders.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_encoders.go
new file mode 100644
index 00000000..6bdb43cb
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/default_value_encoders.go
@@ -0,0 +1,766 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "encoding/json"
+ "errors"
+ "fmt"
+ "math"
+ "net/url"
+ "reflect"
+ "sync"
+ "time"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+ "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
+)
+
+var defaultValueEncoders DefaultValueEncoders
+
+var bvwPool = bsonrw.NewBSONValueWriterPool()
+
+var errInvalidValue = errors.New("cannot encode invalid element")
+
+var sliceWriterPool = sync.Pool{
+ New: func() interface{} {
+ sw := make(bsonrw.SliceWriter, 0)
+ return &sw
+ },
+}
+
+func encodeElement(ec EncodeContext, dw bsonrw.DocumentWriter, e primitive.E) error {
+ vw, err := dw.WriteDocumentElement(e.Key)
+ if err != nil {
+ return err
+ }
+
+ if e.Value == nil {
+ return vw.WriteNull()
+ }
+ encoder, err := ec.LookupEncoder(reflect.TypeOf(e.Value))
+ if err != nil {
+ return err
+ }
+
+ err = encoder.EncodeValue(ec, vw, reflect.ValueOf(e.Value))
+ if err != nil {
+ return err
+ }
+ return nil
+}
+
+// DefaultValueEncoders is a namespace type for the default ValueEncoders used
+// when creating a registry.
+type DefaultValueEncoders struct{}
+
+// RegisterDefaultEncoders will register the encoder methods attached to DefaultValueEncoders with
+// the provided RegistryBuilder.
+func (dve DefaultValueEncoders) RegisterDefaultEncoders(rb *RegistryBuilder) {
+ if rb == nil {
+ panic(errors.New("argument to RegisterDefaultEncoders must not be nil"))
+ }
+ rb.
+ RegisterTypeEncoder(tByteSlice, defaultByteSliceCodec).
+ RegisterTypeEncoder(tTime, defaultTimeCodec).
+ RegisterTypeEncoder(tEmpty, defaultEmptyInterfaceCodec).
+ RegisterTypeEncoder(tCoreArray, defaultArrayCodec).
+ RegisterTypeEncoder(tOID, ValueEncoderFunc(dve.ObjectIDEncodeValue)).
+ RegisterTypeEncoder(tDecimal, ValueEncoderFunc(dve.Decimal128EncodeValue)).
+ RegisterTypeEncoder(tJSONNumber, ValueEncoderFunc(dve.JSONNumberEncodeValue)).
+ RegisterTypeEncoder(tURL, ValueEncoderFunc(dve.URLEncodeValue)).
+ RegisterTypeEncoder(tJavaScript, ValueEncoderFunc(dve.JavaScriptEncodeValue)).
+ RegisterTypeEncoder(tSymbol, ValueEncoderFunc(dve.SymbolEncodeValue)).
+ RegisterTypeEncoder(tBinary, ValueEncoderFunc(dve.BinaryEncodeValue)).
+ RegisterTypeEncoder(tUndefined, ValueEncoderFunc(dve.UndefinedEncodeValue)).
+ RegisterTypeEncoder(tDateTime, ValueEncoderFunc(dve.DateTimeEncodeValue)).
+ RegisterTypeEncoder(tNull, ValueEncoderFunc(dve.NullEncodeValue)).
+ RegisterTypeEncoder(tRegex, ValueEncoderFunc(dve.RegexEncodeValue)).
+ RegisterTypeEncoder(tDBPointer, ValueEncoderFunc(dve.DBPointerEncodeValue)).
+ RegisterTypeEncoder(tTimestamp, ValueEncoderFunc(dve.TimestampEncodeValue)).
+ RegisterTypeEncoder(tMinKey, ValueEncoderFunc(dve.MinKeyEncodeValue)).
+ RegisterTypeEncoder(tMaxKey, ValueEncoderFunc(dve.MaxKeyEncodeValue)).
+ RegisterTypeEncoder(tCoreDocument, ValueEncoderFunc(dve.CoreDocumentEncodeValue)).
+ RegisterTypeEncoder(tCodeWithScope, ValueEncoderFunc(dve.CodeWithScopeEncodeValue)).
+ RegisterDefaultEncoder(reflect.Bool, ValueEncoderFunc(dve.BooleanEncodeValue)).
+ RegisterDefaultEncoder(reflect.Int, ValueEncoderFunc(dve.IntEncodeValue)).
+ RegisterDefaultEncoder(reflect.Int8, ValueEncoderFunc(dve.IntEncodeValue)).
+ RegisterDefaultEncoder(reflect.Int16, ValueEncoderFunc(dve.IntEncodeValue)).
+ RegisterDefaultEncoder(reflect.Int32, ValueEncoderFunc(dve.IntEncodeValue)).
+ RegisterDefaultEncoder(reflect.Int64, ValueEncoderFunc(dve.IntEncodeValue)).
+ RegisterDefaultEncoder(reflect.Uint, defaultUIntCodec).
+ RegisterDefaultEncoder(reflect.Uint8, defaultUIntCodec).
+ RegisterDefaultEncoder(reflect.Uint16, defaultUIntCodec).
+ RegisterDefaultEncoder(reflect.Uint32, defaultUIntCodec).
+ RegisterDefaultEncoder(reflect.Uint64, defaultUIntCodec).
+ RegisterDefaultEncoder(reflect.Float32, ValueEncoderFunc(dve.FloatEncodeValue)).
+ RegisterDefaultEncoder(reflect.Float64, ValueEncoderFunc(dve.FloatEncodeValue)).
+ RegisterDefaultEncoder(reflect.Array, ValueEncoderFunc(dve.ArrayEncodeValue)).
+ RegisterDefaultEncoder(reflect.Map, defaultMapCodec).
+ RegisterDefaultEncoder(reflect.Slice, defaultSliceCodec).
+ RegisterDefaultEncoder(reflect.String, defaultStringCodec).
+ RegisterDefaultEncoder(reflect.Struct, newDefaultStructCodec()).
+ RegisterDefaultEncoder(reflect.Ptr, NewPointerCodec()).
+ RegisterHookEncoder(tValueMarshaler, ValueEncoderFunc(dve.ValueMarshalerEncodeValue)).
+ RegisterHookEncoder(tMarshaler, ValueEncoderFunc(dve.MarshalerEncodeValue)).
+ RegisterHookEncoder(tProxy, ValueEncoderFunc(dve.ProxyEncodeValue))
+}
+
+// BooleanEncodeValue is the ValueEncoderFunc for bool types.
+func (dve DefaultValueEncoders) BooleanEncodeValue(ectx EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Bool {
+ return ValueEncoderError{Name: "BooleanEncodeValue", Kinds: []reflect.Kind{reflect.Bool}, Received: val}
+ }
+ return vw.WriteBoolean(val.Bool())
+}
+
+func fitsIn32Bits(i int64) bool {
+ return math.MinInt32 <= i && i <= math.MaxInt32
+}
+
+// IntEncodeValue is the ValueEncoderFunc for int types.
+func (dve DefaultValueEncoders) IntEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ switch val.Kind() {
+ case reflect.Int8, reflect.Int16, reflect.Int32:
+ return vw.WriteInt32(int32(val.Int()))
+ case reflect.Int:
+ i64 := val.Int()
+ if fitsIn32Bits(i64) {
+ return vw.WriteInt32(int32(i64))
+ }
+ return vw.WriteInt64(i64)
+ case reflect.Int64:
+ i64 := val.Int()
+ if ec.MinSize && fitsIn32Bits(i64) {
+ return vw.WriteInt32(int32(i64))
+ }
+ return vw.WriteInt64(i64)
+ }
+
+ return ValueEncoderError{
+ Name: "IntEncodeValue",
+ Kinds: []reflect.Kind{reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int},
+ Received: val,
+ }
+}
+
+// UintEncodeValue is the ValueEncoderFunc for uint types.
+//
+// Deprecated: UintEncodeValue is not registered by default. Use UintCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) UintEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ switch val.Kind() {
+ case reflect.Uint8, reflect.Uint16:
+ return vw.WriteInt32(int32(val.Uint()))
+ case reflect.Uint, reflect.Uint32, reflect.Uint64:
+ u64 := val.Uint()
+ if ec.MinSize && u64 <= math.MaxInt32 {
+ return vw.WriteInt32(int32(u64))
+ }
+ if u64 > math.MaxInt64 {
+ return fmt.Errorf("%d overflows int64", u64)
+ }
+ return vw.WriteInt64(int64(u64))
+ }
+
+ return ValueEncoderError{
+ Name: "UintEncodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: val,
+ }
+}
+
+// FloatEncodeValue is the ValueEncoderFunc for float types.
+func (dve DefaultValueEncoders) FloatEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ switch val.Kind() {
+ case reflect.Float32, reflect.Float64:
+ return vw.WriteDouble(val.Float())
+ }
+
+ return ValueEncoderError{Name: "FloatEncodeValue", Kinds: []reflect.Kind{reflect.Float32, reflect.Float64}, Received: val}
+}
+
+// StringEncodeValue is the ValueEncoderFunc for string types.
+//
+// Deprecated: StringEncodeValue is not registered by default. Use StringCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) StringEncodeValue(ectx EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if val.Kind() != reflect.String {
+ return ValueEncoderError{
+ Name: "StringEncodeValue",
+ Kinds: []reflect.Kind{reflect.String},
+ Received: val,
+ }
+ }
+
+ return vw.WriteString(val.String())
+}
+
+// ObjectIDEncodeValue is the ValueEncoderFunc for primitive.ObjectID.
+func (dve DefaultValueEncoders) ObjectIDEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tOID {
+ return ValueEncoderError{Name: "ObjectIDEncodeValue", Types: []reflect.Type{tOID}, Received: val}
+ }
+ return vw.WriteObjectID(val.Interface().(primitive.ObjectID))
+}
+
+// Decimal128EncodeValue is the ValueEncoderFunc for primitive.Decimal128.
+func (dve DefaultValueEncoders) Decimal128EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tDecimal {
+ return ValueEncoderError{Name: "Decimal128EncodeValue", Types: []reflect.Type{tDecimal}, Received: val}
+ }
+ return vw.WriteDecimal128(val.Interface().(primitive.Decimal128))
+}
+
+// JSONNumberEncodeValue is the ValueEncoderFunc for json.Number.
+func (dve DefaultValueEncoders) JSONNumberEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tJSONNumber {
+ return ValueEncoderError{Name: "JSONNumberEncodeValue", Types: []reflect.Type{tJSONNumber}, Received: val}
+ }
+ jsnum := val.Interface().(json.Number)
+
+ // Attempt int first, then float64
+ if i64, err := jsnum.Int64(); err == nil {
+ return dve.IntEncodeValue(ec, vw, reflect.ValueOf(i64))
+ }
+
+ f64, err := jsnum.Float64()
+ if err != nil {
+ return err
+ }
+
+ return dve.FloatEncodeValue(ec, vw, reflect.ValueOf(f64))
+}
+
+// URLEncodeValue is the ValueEncoderFunc for url.URL.
+func (dve DefaultValueEncoders) URLEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tURL {
+ return ValueEncoderError{Name: "URLEncodeValue", Types: []reflect.Type{tURL}, Received: val}
+ }
+ u := val.Interface().(url.URL)
+ return vw.WriteString(u.String())
+}
+
+// TimeEncodeValue is the ValueEncoderFunc for time.TIme.
+//
+// Deprecated: TimeEncodeValue is not registered by default. Use TimeCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) TimeEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tTime {
+ return ValueEncoderError{Name: "TimeEncodeValue", Types: []reflect.Type{tTime}, Received: val}
+ }
+ tt := val.Interface().(time.Time)
+ dt := primitive.NewDateTimeFromTime(tt)
+ return vw.WriteDateTime(int64(dt))
+}
+
+// ByteSliceEncodeValue is the ValueEncoderFunc for []byte.
+//
+// Deprecated: ByteSliceEncodeValue is not registered by default. Use ByteSliceCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) ByteSliceEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tByteSlice {
+ return ValueEncoderError{Name: "ByteSliceEncodeValue", Types: []reflect.Type{tByteSlice}, Received: val}
+ }
+ if val.IsNil() {
+ return vw.WriteNull()
+ }
+ return vw.WriteBinary(val.Interface().([]byte))
+}
+
+// MapEncodeValue is the ValueEncoderFunc for map[string]* types.
+//
+// Deprecated: MapEncodeValue is not registered by default. Use MapCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) MapEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Map || val.Type().Key().Kind() != reflect.String {
+ return ValueEncoderError{Name: "MapEncodeValue", Kinds: []reflect.Kind{reflect.Map}, Received: val}
+ }
+
+ if val.IsNil() {
+ // If we have a nill map but we can't WriteNull, that means we're probably trying to encode
+ // to a TopLevel document. We can't currently tell if this is what actually happened, but if
+ // there's a deeper underlying problem, the error will also be returned from WriteDocument,
+ // so just continue. The operations on a map reflection value are valid, so we can call
+ // MapKeys within mapEncodeValue without a problem.
+ err := vw.WriteNull()
+ if err == nil {
+ return nil
+ }
+ }
+
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ return dve.mapEncodeValue(ec, dw, val, nil)
+}
+
+// mapEncodeValue handles encoding of the values of a map. The collisionFn returns
+// true if the provided key exists, this is mainly used for inline maps in the
+// struct codec.
+func (dve DefaultValueEncoders) mapEncodeValue(ec EncodeContext, dw bsonrw.DocumentWriter, val reflect.Value, collisionFn func(string) bool) error {
+
+ elemType := val.Type().Elem()
+ encoder, err := ec.LookupEncoder(elemType)
+ if err != nil && elemType.Kind() != reflect.Interface {
+ return err
+ }
+
+ keys := val.MapKeys()
+ for _, key := range keys {
+ if collisionFn != nil && collisionFn(key.String()) {
+ return fmt.Errorf("Key %s of inlined map conflicts with a struct field name", key)
+ }
+
+ currEncoder, currVal, lookupErr := dve.lookupElementEncoder(ec, encoder, val.MapIndex(key))
+ if lookupErr != nil && lookupErr != errInvalidValue {
+ return lookupErr
+ }
+
+ vw, err := dw.WriteDocumentElement(key.String())
+ if err != nil {
+ return err
+ }
+
+ if lookupErr == errInvalidValue {
+ err = vw.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ err = currEncoder.EncodeValue(ec, vw, currVal)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+}
+
+// ArrayEncodeValue is the ValueEncoderFunc for array types.
+func (dve DefaultValueEncoders) ArrayEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Array {
+ return ValueEncoderError{Name: "ArrayEncodeValue", Kinds: []reflect.Kind{reflect.Array}, Received: val}
+ }
+
+ // If we have a []primitive.E we want to treat it as a document instead of as an array.
+ if val.Type().Elem() == tE {
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ for idx := 0; idx < val.Len(); idx++ {
+ e := val.Index(idx).Interface().(primitive.E)
+ err = encodeElement(ec, dw, e)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+ }
+
+ // If we have a []byte we want to treat it as a binary instead of as an array.
+ if val.Type().Elem() == tByte {
+ var byteSlice []byte
+ for idx := 0; idx < val.Len(); idx++ {
+ byteSlice = append(byteSlice, val.Index(idx).Interface().(byte))
+ }
+ return vw.WriteBinary(byteSlice)
+ }
+
+ aw, err := vw.WriteArray()
+ if err != nil {
+ return err
+ }
+
+ elemType := val.Type().Elem()
+ encoder, err := ec.LookupEncoder(elemType)
+ if err != nil && elemType.Kind() != reflect.Interface {
+ return err
+ }
+
+ for idx := 0; idx < val.Len(); idx++ {
+ currEncoder, currVal, lookupErr := dve.lookupElementEncoder(ec, encoder, val.Index(idx))
+ if lookupErr != nil && lookupErr != errInvalidValue {
+ return lookupErr
+ }
+
+ vw, err := aw.WriteArrayElement()
+ if err != nil {
+ return err
+ }
+
+ if lookupErr == errInvalidValue {
+ err = vw.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ err = currEncoder.EncodeValue(ec, vw, currVal)
+ if err != nil {
+ return err
+ }
+ }
+ return aw.WriteArrayEnd()
+}
+
+// SliceEncodeValue is the ValueEncoderFunc for slice types.
+//
+// Deprecated: SliceEncodeValue is not registered by default. Use SliceCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) SliceEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Slice {
+ return ValueEncoderError{Name: "SliceEncodeValue", Kinds: []reflect.Kind{reflect.Slice}, Received: val}
+ }
+
+ if val.IsNil() {
+ return vw.WriteNull()
+ }
+
+ // If we have a []primitive.E we want to treat it as a document instead of as an array.
+ if val.Type().ConvertibleTo(tD) {
+ d := val.Convert(tD).Interface().(primitive.D)
+
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ for _, e := range d {
+ err = encodeElement(ec, dw, e)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+ }
+
+ aw, err := vw.WriteArray()
+ if err != nil {
+ return err
+ }
+
+ elemType := val.Type().Elem()
+ encoder, err := ec.LookupEncoder(elemType)
+ if err != nil && elemType.Kind() != reflect.Interface {
+ return err
+ }
+
+ for idx := 0; idx < val.Len(); idx++ {
+ currEncoder, currVal, lookupErr := dve.lookupElementEncoder(ec, encoder, val.Index(idx))
+ if lookupErr != nil && lookupErr != errInvalidValue {
+ return lookupErr
+ }
+
+ vw, err := aw.WriteArrayElement()
+ if err != nil {
+ return err
+ }
+
+ if lookupErr == errInvalidValue {
+ err = vw.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ err = currEncoder.EncodeValue(ec, vw, currVal)
+ if err != nil {
+ return err
+ }
+ }
+ return aw.WriteArrayEnd()
+}
+
+func (dve DefaultValueEncoders) lookupElementEncoder(ec EncodeContext, origEncoder ValueEncoder, currVal reflect.Value) (ValueEncoder, reflect.Value, error) {
+ if origEncoder != nil || (currVal.Kind() != reflect.Interface) {
+ return origEncoder, currVal, nil
+ }
+ currVal = currVal.Elem()
+ if !currVal.IsValid() {
+ return nil, currVal, errInvalidValue
+ }
+ currEncoder, err := ec.LookupEncoder(currVal.Type())
+
+ return currEncoder, currVal, err
+}
+
+// EmptyInterfaceEncodeValue is the ValueEncoderFunc for interface{}.
+//
+// Deprecated: EmptyInterfaceEncodeValue is not registered by default. Use EmptyInterfaceCodec.EncodeValue instead.
+func (dve DefaultValueEncoders) EmptyInterfaceEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tEmpty {
+ return ValueEncoderError{Name: "EmptyInterfaceEncodeValue", Types: []reflect.Type{tEmpty}, Received: val}
+ }
+
+ if val.IsNil() {
+ return vw.WriteNull()
+ }
+ encoder, err := ec.LookupEncoder(val.Elem().Type())
+ if err != nil {
+ return err
+ }
+
+ return encoder.EncodeValue(ec, vw, val.Elem())
+}
+
+// ValueMarshalerEncodeValue is the ValueEncoderFunc for ValueMarshaler implementations.
+func (dve DefaultValueEncoders) ValueMarshalerEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ // Either val or a pointer to val must implement ValueMarshaler
+ switch {
+ case !val.IsValid():
+ return ValueEncoderError{Name: "ValueMarshalerEncodeValue", Types: []reflect.Type{tValueMarshaler}, Received: val}
+ case val.Type().Implements(tValueMarshaler):
+ // If ValueMarshaler is implemented on a concrete type, make sure that val isn't a nil pointer
+ if isImplementationNil(val, tValueMarshaler) {
+ return vw.WriteNull()
+ }
+ case reflect.PtrTo(val.Type()).Implements(tValueMarshaler) && val.CanAddr():
+ val = val.Addr()
+ default:
+ return ValueEncoderError{Name: "ValueMarshalerEncodeValue", Types: []reflect.Type{tValueMarshaler}, Received: val}
+ }
+
+ fn := val.Convert(tValueMarshaler).MethodByName("MarshalBSONValue")
+ returns := fn.Call(nil)
+ if !returns[2].IsNil() {
+ return returns[2].Interface().(error)
+ }
+ t, data := returns[0].Interface().(bsontype.Type), returns[1].Interface().([]byte)
+ return bsonrw.Copier{}.CopyValueFromBytes(vw, t, data)
+}
+
+// MarshalerEncodeValue is the ValueEncoderFunc for Marshaler implementations.
+func (dve DefaultValueEncoders) MarshalerEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ // Either val or a pointer to val must implement Marshaler
+ switch {
+ case !val.IsValid():
+ return ValueEncoderError{Name: "MarshalerEncodeValue", Types: []reflect.Type{tMarshaler}, Received: val}
+ case val.Type().Implements(tMarshaler):
+ // If Marshaler is implemented on a concrete type, make sure that val isn't a nil pointer
+ if isImplementationNil(val, tMarshaler) {
+ return vw.WriteNull()
+ }
+ case reflect.PtrTo(val.Type()).Implements(tMarshaler) && val.CanAddr():
+ val = val.Addr()
+ default:
+ return ValueEncoderError{Name: "MarshalerEncodeValue", Types: []reflect.Type{tMarshaler}, Received: val}
+ }
+
+ fn := val.Convert(tMarshaler).MethodByName("MarshalBSON")
+ returns := fn.Call(nil)
+ if !returns[1].IsNil() {
+ return returns[1].Interface().(error)
+ }
+ data := returns[0].Interface().([]byte)
+ return bsonrw.Copier{}.CopyValueFromBytes(vw, bsontype.EmbeddedDocument, data)
+}
+
+// ProxyEncodeValue is the ValueEncoderFunc for Proxy implementations.
+func (dve DefaultValueEncoders) ProxyEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ // Either val or a pointer to val must implement Proxy
+ switch {
+ case !val.IsValid():
+ return ValueEncoderError{Name: "ProxyEncodeValue", Types: []reflect.Type{tProxy}, Received: val}
+ case val.Type().Implements(tProxy):
+ // If Proxy is implemented on a concrete type, make sure that val isn't a nil pointer
+ if isImplementationNil(val, tProxy) {
+ return vw.WriteNull()
+ }
+ case reflect.PtrTo(val.Type()).Implements(tProxy) && val.CanAddr():
+ val = val.Addr()
+ default:
+ return ValueEncoderError{Name: "ProxyEncodeValue", Types: []reflect.Type{tProxy}, Received: val}
+ }
+
+ fn := val.Convert(tProxy).MethodByName("ProxyBSON")
+ returns := fn.Call(nil)
+ if !returns[1].IsNil() {
+ return returns[1].Interface().(error)
+ }
+ data := returns[0]
+ var encoder ValueEncoder
+ var err error
+ if data.Elem().IsValid() {
+ encoder, err = ec.LookupEncoder(data.Elem().Type())
+ } else {
+ encoder, err = ec.LookupEncoder(nil)
+ }
+ if err != nil {
+ return err
+ }
+ return encoder.EncodeValue(ec, vw, data.Elem())
+}
+
+// JavaScriptEncodeValue is the ValueEncoderFunc for the primitive.JavaScript type.
+func (DefaultValueEncoders) JavaScriptEncodeValue(ectx EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tJavaScript {
+ return ValueEncoderError{Name: "JavaScriptEncodeValue", Types: []reflect.Type{tJavaScript}, Received: val}
+ }
+
+ return vw.WriteJavascript(val.String())
+}
+
+// SymbolEncodeValue is the ValueEncoderFunc for the primitive.Symbol type.
+func (DefaultValueEncoders) SymbolEncodeValue(ectx EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tSymbol {
+ return ValueEncoderError{Name: "SymbolEncodeValue", Types: []reflect.Type{tSymbol}, Received: val}
+ }
+
+ return vw.WriteSymbol(val.String())
+}
+
+// BinaryEncodeValue is the ValueEncoderFunc for Binary.
+func (DefaultValueEncoders) BinaryEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tBinary {
+ return ValueEncoderError{Name: "BinaryEncodeValue", Types: []reflect.Type{tBinary}, Received: val}
+ }
+ b := val.Interface().(primitive.Binary)
+
+ return vw.WriteBinaryWithSubtype(b.Data, b.Subtype)
+}
+
+// UndefinedEncodeValue is the ValueEncoderFunc for Undefined.
+func (DefaultValueEncoders) UndefinedEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tUndefined {
+ return ValueEncoderError{Name: "UndefinedEncodeValue", Types: []reflect.Type{tUndefined}, Received: val}
+ }
+
+ return vw.WriteUndefined()
+}
+
+// DateTimeEncodeValue is the ValueEncoderFunc for DateTime.
+func (DefaultValueEncoders) DateTimeEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tDateTime {
+ return ValueEncoderError{Name: "DateTimeEncodeValue", Types: []reflect.Type{tDateTime}, Received: val}
+ }
+
+ return vw.WriteDateTime(val.Int())
+}
+
+// NullEncodeValue is the ValueEncoderFunc for Null.
+func (DefaultValueEncoders) NullEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tNull {
+ return ValueEncoderError{Name: "NullEncodeValue", Types: []reflect.Type{tNull}, Received: val}
+ }
+
+ return vw.WriteNull()
+}
+
+// RegexEncodeValue is the ValueEncoderFunc for Regex.
+func (DefaultValueEncoders) RegexEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tRegex {
+ return ValueEncoderError{Name: "RegexEncodeValue", Types: []reflect.Type{tRegex}, Received: val}
+ }
+
+ regex := val.Interface().(primitive.Regex)
+
+ return vw.WriteRegex(regex.Pattern, regex.Options)
+}
+
+// DBPointerEncodeValue is the ValueEncoderFunc for DBPointer.
+func (DefaultValueEncoders) DBPointerEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tDBPointer {
+ return ValueEncoderError{Name: "DBPointerEncodeValue", Types: []reflect.Type{tDBPointer}, Received: val}
+ }
+
+ dbp := val.Interface().(primitive.DBPointer)
+
+ return vw.WriteDBPointer(dbp.DB, dbp.Pointer)
+}
+
+// TimestampEncodeValue is the ValueEncoderFunc for Timestamp.
+func (DefaultValueEncoders) TimestampEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tTimestamp {
+ return ValueEncoderError{Name: "TimestampEncodeValue", Types: []reflect.Type{tTimestamp}, Received: val}
+ }
+
+ ts := val.Interface().(primitive.Timestamp)
+
+ return vw.WriteTimestamp(ts.T, ts.I)
+}
+
+// MinKeyEncodeValue is the ValueEncoderFunc for MinKey.
+func (DefaultValueEncoders) MinKeyEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tMinKey {
+ return ValueEncoderError{Name: "MinKeyEncodeValue", Types: []reflect.Type{tMinKey}, Received: val}
+ }
+
+ return vw.WriteMinKey()
+}
+
+// MaxKeyEncodeValue is the ValueEncoderFunc for MaxKey.
+func (DefaultValueEncoders) MaxKeyEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tMaxKey {
+ return ValueEncoderError{Name: "MaxKeyEncodeValue", Types: []reflect.Type{tMaxKey}, Received: val}
+ }
+
+ return vw.WriteMaxKey()
+}
+
+// CoreDocumentEncodeValue is the ValueEncoderFunc for bsoncore.Document.
+func (DefaultValueEncoders) CoreDocumentEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tCoreDocument {
+ return ValueEncoderError{Name: "CoreDocumentEncodeValue", Types: []reflect.Type{tCoreDocument}, Received: val}
+ }
+
+ cdoc := val.Interface().(bsoncore.Document)
+
+ return bsonrw.Copier{}.CopyDocumentFromBytes(vw, cdoc)
+}
+
+// CodeWithScopeEncodeValue is the ValueEncoderFunc for CodeWithScope.
+func (dve DefaultValueEncoders) CodeWithScopeEncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tCodeWithScope {
+ return ValueEncoderError{Name: "CodeWithScopeEncodeValue", Types: []reflect.Type{tCodeWithScope}, Received: val}
+ }
+
+ cws := val.Interface().(primitive.CodeWithScope)
+
+ dw, err := vw.WriteCodeWithScope(string(cws.Code))
+ if err != nil {
+ return err
+ }
+
+ sw := sliceWriterPool.Get().(*bsonrw.SliceWriter)
+ defer sliceWriterPool.Put(sw)
+ *sw = (*sw)[:0]
+
+ scopeVW := bvwPool.Get(sw)
+ defer bvwPool.Put(scopeVW)
+
+ encoder, err := ec.LookupEncoder(reflect.TypeOf(cws.Scope))
+ if err != nil {
+ return err
+ }
+
+ err = encoder.EncodeValue(ec, scopeVW, reflect.ValueOf(cws.Scope))
+ if err != nil {
+ return err
+ }
+
+ err = bsonrw.Copier{}.CopyBytesToDocumentWriter(dw, *sw)
+ if err != nil {
+ return err
+ }
+ return dw.WriteDocumentEnd()
+}
+
+// isImplementationNil returns if val is a nil pointer and inter is implemented on a concrete type
+func isImplementationNil(val reflect.Value, inter reflect.Type) bool {
+ vt := val.Type()
+ for vt.Kind() == reflect.Ptr {
+ vt = vt.Elem()
+ }
+ return vt.Implements(inter) && val.Kind() == reflect.Ptr && val.IsNil()
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/doc.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/doc.go
new file mode 100644
index 00000000..5f903ebe
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/doc.go
@@ -0,0 +1,90 @@
+// Copyright (C) MongoDB, Inc. 2022-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+// Package bsoncodec provides a system for encoding values to BSON representations and decoding
+// values from BSON representations. This package considers both binary BSON and ExtendedJSON as
+// BSON representations. The types in this package enable a flexible system for handling this
+// encoding and decoding.
+//
+// The codec system is composed of two parts:
+//
+// 1) ValueEncoders and ValueDecoders that handle encoding and decoding Go values to and from BSON
+// representations.
+//
+// 2) A Registry that holds these ValueEncoders and ValueDecoders and provides methods for
+// retrieving them.
+//
+// # ValueEncoders and ValueDecoders
+//
+// The ValueEncoder interface is implemented by types that can encode a provided Go type to BSON.
+// The value to encode is provided as a reflect.Value and a bsonrw.ValueWriter is used within the
+// EncodeValue method to actually create the BSON representation. For convenience, ValueEncoderFunc
+// is provided to allow use of a function with the correct signature as a ValueEncoder. An
+// EncodeContext instance is provided to allow implementations to lookup further ValueEncoders and
+// to provide configuration information.
+//
+// The ValueDecoder interface is the inverse of the ValueEncoder. Implementations should ensure that
+// the value they receive is settable. Similar to ValueEncoderFunc, ValueDecoderFunc is provided to
+// allow the use of a function with the correct signature as a ValueDecoder. A DecodeContext
+// instance is provided and serves similar functionality to the EncodeContext.
+//
+// # Registry and RegistryBuilder
+//
+// A Registry is an immutable store for ValueEncoders, ValueDecoders, and a type map. See the Registry type
+// documentation for examples of registering various custom encoders and decoders. A Registry can be constructed using a
+// RegistryBuilder, which handles three main types of codecs:
+//
+// 1. Type encoders/decoders - These can be registered using the RegisterTypeEncoder and RegisterTypeDecoder methods.
+// The registered codec will be invoked when encoding/decoding a value whose type matches the registered type exactly.
+// If the registered type is an interface, the codec will be invoked when encoding or decoding values whose type is the
+// interface, but not for values with concrete types that implement the interface.
+//
+// 2. Hook encoders/decoders - These can be registered using the RegisterHookEncoder and RegisterHookDecoder methods.
+// These methods only accept interface types and the registered codecs will be invoked when encoding or decoding values
+// whose types implement the interface. An example of a hook defined by the driver is bson.Marshaler. The driver will
+// call the MarshalBSON method for any value whose type implements bson.Marshaler, regardless of the value's concrete
+// type.
+//
+// 3. Type map entries - This can be used to associate a BSON type with a Go type. These type associations are used when
+// decoding into a bson.D/bson.M or a struct field of type interface{}. For example, by default, BSON int32 and int64
+// values decode as Go int32 and int64 instances, respectively, when decoding into a bson.D. The following code would
+// change the behavior so these values decode as Go int instances instead:
+//
+// intType := reflect.TypeOf(int(0))
+// registryBuilder.RegisterTypeMapEntry(bsontype.Int32, intType).RegisterTypeMapEntry(bsontype.Int64, intType)
+//
+// 4. Kind encoder/decoders - These can be registered using the RegisterDefaultEncoder and RegisterDefaultDecoder
+// methods. The registered codec will be invoked when encoding or decoding values whose reflect.Kind matches the
+// registered reflect.Kind as long as the value's type doesn't match a registered type or hook encoder/decoder first.
+// These methods should be used to change the behavior for all values for a specific kind.
+//
+// # Registry Lookup Procedure
+//
+// When looking up an encoder in a Registry, the precedence rules are as follows:
+//
+// 1. A type encoder registered for the exact type of the value.
+//
+// 2. A hook encoder registered for an interface that is implemented by the value or by a pointer to the value. If the
+// value matches multiple hooks (e.g. the type implements bsoncodec.Marshaler and bsoncodec.ValueMarshaler), the first
+// one registered will be selected. Note that registries constructed using bson.NewRegistryBuilder have driver-defined
+// hooks registered for the bsoncodec.Marshaler, bsoncodec.ValueMarshaler, and bsoncodec.Proxy interfaces, so those
+// will take precedence over any new hooks.
+//
+// 3. A kind encoder registered for the value's kind.
+//
+// If all of these lookups fail to find an encoder, an error of type ErrNoEncoder is returned. The same precedence
+// rules apply for decoders, with the exception that an error of type ErrNoDecoder will be returned if no decoder is
+// found.
+//
+// # DefaultValueEncoders and DefaultValueDecoders
+//
+// The DefaultValueEncoders and DefaultValueDecoders types provide a full set of ValueEncoders and
+// ValueDecoders for handling a wide range of Go types, including all of the types within the
+// primitive package. To make registering these codecs easier, a helper method on each type is
+// provided. For the DefaultValueEncoders type the method is called RegisterDefaultEncoders and for
+// the DefaultValueDecoders type the method is called RegisterDefaultDecoders, this method also
+// handles registering type map entries for each BSON type.
+package bsoncodec
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/empty_interface_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/empty_interface_codec.go
new file mode 100644
index 00000000..eda417cf
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/empty_interface_codec.go
@@ -0,0 +1,147 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+// EmptyInterfaceCodec is the Codec used for interface{} values.
+type EmptyInterfaceCodec struct {
+ DecodeBinaryAsSlice bool
+}
+
+var (
+ defaultEmptyInterfaceCodec = NewEmptyInterfaceCodec()
+
+ _ ValueCodec = defaultEmptyInterfaceCodec
+ _ typeDecoder = defaultEmptyInterfaceCodec
+)
+
+// NewEmptyInterfaceCodec returns a EmptyInterfaceCodec with options opts.
+func NewEmptyInterfaceCodec(opts ...*bsonoptions.EmptyInterfaceCodecOptions) *EmptyInterfaceCodec {
+ interfaceOpt := bsonoptions.MergeEmptyInterfaceCodecOptions(opts...)
+
+ codec := EmptyInterfaceCodec{}
+ if interfaceOpt.DecodeBinaryAsSlice != nil {
+ codec.DecodeBinaryAsSlice = *interfaceOpt.DecodeBinaryAsSlice
+ }
+ return &codec
+}
+
+// EncodeValue is the ValueEncoderFunc for interface{}.
+func (eic EmptyInterfaceCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tEmpty {
+ return ValueEncoderError{Name: "EmptyInterfaceEncodeValue", Types: []reflect.Type{tEmpty}, Received: val}
+ }
+
+ if val.IsNil() {
+ return vw.WriteNull()
+ }
+ encoder, err := ec.LookupEncoder(val.Elem().Type())
+ if err != nil {
+ return err
+ }
+
+ return encoder.EncodeValue(ec, vw, val.Elem())
+}
+
+func (eic EmptyInterfaceCodec) getEmptyInterfaceDecodeType(dc DecodeContext, valueType bsontype.Type) (reflect.Type, error) {
+ isDocument := valueType == bsontype.Type(0) || valueType == bsontype.EmbeddedDocument
+ if isDocument {
+ if dc.defaultDocumentType != nil {
+ // If the bsontype is an embedded document and the DocumentType is set on the DecodeContext, then return
+ // that type.
+ return dc.defaultDocumentType, nil
+ }
+ if dc.Ancestor != nil {
+ // Using ancestor information rather than looking up the type map entry forces consistent decoding.
+ // If we're decoding into a bson.D, subdocuments should also be decoded as bson.D, even if a type map entry
+ // has been registered.
+ return dc.Ancestor, nil
+ }
+ }
+
+ rtype, err := dc.LookupTypeMapEntry(valueType)
+ if err == nil {
+ return rtype, nil
+ }
+
+ if isDocument {
+ // For documents, fallback to looking up a type map entry for bsontype.Type(0) or bsontype.EmbeddedDocument,
+ // depending on the original valueType.
+ var lookupType bsontype.Type
+ switch valueType {
+ case bsontype.Type(0):
+ lookupType = bsontype.EmbeddedDocument
+ case bsontype.EmbeddedDocument:
+ lookupType = bsontype.Type(0)
+ }
+
+ rtype, err = dc.LookupTypeMapEntry(lookupType)
+ if err == nil {
+ return rtype, nil
+ }
+ }
+
+ return nil, err
+}
+
+func (eic EmptyInterfaceCodec) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tEmpty {
+ return emptyValue, ValueDecoderError{Name: "EmptyInterfaceDecodeValue", Types: []reflect.Type{tEmpty}, Received: reflect.Zero(t)}
+ }
+
+ rtype, err := eic.getEmptyInterfaceDecodeType(dc, vr.Type())
+ if err != nil {
+ switch vr.Type() {
+ case bsontype.Null:
+ return reflect.Zero(t), vr.ReadNull()
+ default:
+ return emptyValue, err
+ }
+ }
+
+ decoder, err := dc.LookupDecoder(rtype)
+ if err != nil {
+ return emptyValue, err
+ }
+
+ elem, err := decodeTypeOrValue(decoder, dc, vr, rtype)
+ if err != nil {
+ return emptyValue, err
+ }
+
+ if eic.DecodeBinaryAsSlice && rtype == tBinary {
+ binElem := elem.Interface().(primitive.Binary)
+ if binElem.Subtype == bsontype.BinaryGeneric || binElem.Subtype == bsontype.BinaryBinaryOld {
+ elem = reflect.ValueOf(binElem.Data)
+ }
+ }
+
+ return elem, nil
+}
+
+// DecodeValue is the ValueDecoderFunc for interface{}.
+func (eic EmptyInterfaceCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tEmpty {
+ return ValueDecoderError{Name: "EmptyInterfaceDecodeValue", Types: []reflect.Type{tEmpty}, Received: val}
+ }
+
+ elem, err := eic.decodeType(dc, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/map_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/map_codec.go
new file mode 100644
index 00000000..e1fbef9c
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/map_codec.go
@@ -0,0 +1,309 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "encoding"
+ "fmt"
+ "reflect"
+ "strconv"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+var defaultMapCodec = NewMapCodec()
+
+// MapCodec is the Codec used for map values.
+type MapCodec struct {
+ DecodeZerosMap bool
+ EncodeNilAsEmpty bool
+ EncodeKeysWithStringer bool
+}
+
+var _ ValueCodec = &MapCodec{}
+
+// KeyMarshaler is the interface implemented by an object that can marshal itself into a string key.
+// This applies to types used as map keys and is similar to encoding.TextMarshaler.
+type KeyMarshaler interface {
+ MarshalKey() (key string, err error)
+}
+
+// KeyUnmarshaler is the interface implemented by an object that can unmarshal a string representation
+// of itself. This applies to types used as map keys and is similar to encoding.TextUnmarshaler.
+//
+// UnmarshalKey must be able to decode the form generated by MarshalKey.
+// UnmarshalKey must copy the text if it wishes to retain the text
+// after returning.
+type KeyUnmarshaler interface {
+ UnmarshalKey(key string) error
+}
+
+// NewMapCodec returns a MapCodec with options opts.
+func NewMapCodec(opts ...*bsonoptions.MapCodecOptions) *MapCodec {
+ mapOpt := bsonoptions.MergeMapCodecOptions(opts...)
+
+ codec := MapCodec{}
+ if mapOpt.DecodeZerosMap != nil {
+ codec.DecodeZerosMap = *mapOpt.DecodeZerosMap
+ }
+ if mapOpt.EncodeNilAsEmpty != nil {
+ codec.EncodeNilAsEmpty = *mapOpt.EncodeNilAsEmpty
+ }
+ if mapOpt.EncodeKeysWithStringer != nil {
+ codec.EncodeKeysWithStringer = *mapOpt.EncodeKeysWithStringer
+ }
+ return &codec
+}
+
+// EncodeValue is the ValueEncoder for map[*]* types.
+func (mc *MapCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Map {
+ return ValueEncoderError{Name: "MapEncodeValue", Kinds: []reflect.Kind{reflect.Map}, Received: val}
+ }
+
+ if val.IsNil() && !mc.EncodeNilAsEmpty {
+ // If we have a nil map but we can't WriteNull, that means we're probably trying to encode
+ // to a TopLevel document. We can't currently tell if this is what actually happened, but if
+ // there's a deeper underlying problem, the error will also be returned from WriteDocument,
+ // so just continue. The operations on a map reflection value are valid, so we can call
+ // MapKeys within mapEncodeValue without a problem.
+ err := vw.WriteNull()
+ if err == nil {
+ return nil
+ }
+ }
+
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ return mc.mapEncodeValue(ec, dw, val, nil)
+}
+
+// mapEncodeValue handles encoding of the values of a map. The collisionFn returns
+// true if the provided key exists, this is mainly used for inline maps in the
+// struct codec.
+func (mc *MapCodec) mapEncodeValue(ec EncodeContext, dw bsonrw.DocumentWriter, val reflect.Value, collisionFn func(string) bool) error {
+
+ elemType := val.Type().Elem()
+ encoder, err := ec.LookupEncoder(elemType)
+ if err != nil && elemType.Kind() != reflect.Interface {
+ return err
+ }
+
+ keys := val.MapKeys()
+ for _, key := range keys {
+ keyStr, err := mc.encodeKey(key)
+ if err != nil {
+ return err
+ }
+
+ if collisionFn != nil && collisionFn(keyStr) {
+ return fmt.Errorf("Key %s of inlined map conflicts with a struct field name", key)
+ }
+
+ currEncoder, currVal, lookupErr := defaultValueEncoders.lookupElementEncoder(ec, encoder, val.MapIndex(key))
+ if lookupErr != nil && lookupErr != errInvalidValue {
+ return lookupErr
+ }
+
+ vw, err := dw.WriteDocumentElement(keyStr)
+ if err != nil {
+ return err
+ }
+
+ if lookupErr == errInvalidValue {
+ err = vw.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ err = currEncoder.EncodeValue(ec, vw, currVal)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+}
+
+// DecodeValue is the ValueDecoder for map[string/decimal]* types.
+func (mc *MapCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if val.Kind() != reflect.Map || (!val.CanSet() && val.IsNil()) {
+ return ValueDecoderError{Name: "MapDecodeValue", Kinds: []reflect.Kind{reflect.Map}, Received: val}
+ }
+
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ case bsontype.Undefined:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadUndefined()
+ default:
+ return fmt.Errorf("cannot decode %v into a %s", vrType, val.Type())
+ }
+
+ dr, err := vr.ReadDocument()
+ if err != nil {
+ return err
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeMap(val.Type()))
+ }
+
+ if val.Len() > 0 && mc.DecodeZerosMap {
+ clearMap(val)
+ }
+
+ eType := val.Type().Elem()
+ decoder, err := dc.LookupDecoder(eType)
+ if err != nil {
+ return err
+ }
+ eTypeDecoder, _ := decoder.(typeDecoder)
+
+ if eType == tEmpty {
+ dc.Ancestor = val.Type()
+ }
+
+ keyType := val.Type().Key()
+
+ for {
+ key, vr, err := dr.ReadElement()
+ if err == bsonrw.ErrEOD {
+ break
+ }
+ if err != nil {
+ return err
+ }
+
+ k, err := mc.decodeKey(key, keyType)
+ if err != nil {
+ return err
+ }
+
+ elem, err := decodeTypeOrValueWithInfo(decoder, eTypeDecoder, dc, vr, eType, true)
+ if err != nil {
+ return newDecodeError(key, err)
+ }
+
+ val.SetMapIndex(k, elem)
+ }
+ return nil
+}
+
+func clearMap(m reflect.Value) {
+ var none reflect.Value
+ for _, k := range m.MapKeys() {
+ m.SetMapIndex(k, none)
+ }
+}
+
+func (mc *MapCodec) encodeKey(val reflect.Value) (string, error) {
+ if mc.EncodeKeysWithStringer {
+ return fmt.Sprint(val), nil
+ }
+
+ // keys of any string type are used directly
+ if val.Kind() == reflect.String {
+ return val.String(), nil
+ }
+ // KeyMarshalers are marshaled
+ if km, ok := val.Interface().(KeyMarshaler); ok {
+ if val.Kind() == reflect.Ptr && val.IsNil() {
+ return "", nil
+ }
+ buf, err := km.MarshalKey()
+ if err == nil {
+ return buf, nil
+ }
+ return "", err
+ }
+ // keys implement encoding.TextMarshaler are marshaled.
+ if km, ok := val.Interface().(encoding.TextMarshaler); ok {
+ if val.Kind() == reflect.Ptr && val.IsNil() {
+ return "", nil
+ }
+
+ buf, err := km.MarshalText()
+ if err != nil {
+ return "", err
+ }
+
+ return string(buf), nil
+ }
+
+ switch val.Kind() {
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ return strconv.FormatInt(val.Int(), 10), nil
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ return strconv.FormatUint(val.Uint(), 10), nil
+ }
+ return "", fmt.Errorf("unsupported key type: %v", val.Type())
+}
+
+var keyUnmarshalerType = reflect.TypeOf((*KeyUnmarshaler)(nil)).Elem()
+var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem()
+
+func (mc *MapCodec) decodeKey(key string, keyType reflect.Type) (reflect.Value, error) {
+ keyVal := reflect.ValueOf(key)
+ var err error
+ switch {
+ // First, if EncodeKeysWithStringer is not enabled, try to decode withKeyUnmarshaler
+ case !mc.EncodeKeysWithStringer && reflect.PtrTo(keyType).Implements(keyUnmarshalerType):
+ keyVal = reflect.New(keyType)
+ v := keyVal.Interface().(KeyUnmarshaler)
+ err = v.UnmarshalKey(key)
+ keyVal = keyVal.Elem()
+ // Try to decode encoding.TextUnmarshalers.
+ case reflect.PtrTo(keyType).Implements(textUnmarshalerType):
+ keyVal = reflect.New(keyType)
+ v := keyVal.Interface().(encoding.TextUnmarshaler)
+ err = v.UnmarshalText([]byte(key))
+ keyVal = keyVal.Elem()
+ // Otherwise, go to type specific behavior
+ default:
+ switch keyType.Kind() {
+ case reflect.String:
+ keyVal = reflect.ValueOf(key).Convert(keyType)
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ n, parseErr := strconv.ParseInt(key, 10, 64)
+ if parseErr != nil || reflect.Zero(keyType).OverflowInt(n) {
+ err = fmt.Errorf("failed to unmarshal number key %v", key)
+ }
+ keyVal = reflect.ValueOf(n).Convert(keyType)
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ n, parseErr := strconv.ParseUint(key, 10, 64)
+ if parseErr != nil || reflect.Zero(keyType).OverflowUint(n) {
+ err = fmt.Errorf("failed to unmarshal number key %v", key)
+ break
+ }
+ keyVal = reflect.ValueOf(n).Convert(keyType)
+ case reflect.Float32, reflect.Float64:
+ if mc.EncodeKeysWithStringer {
+ parsed, err := strconv.ParseFloat(key, 64)
+ if err != nil {
+ return keyVal, fmt.Errorf("Map key is defined to be a decimal type (%v) but got error %v", keyType.Kind(), err)
+ }
+ keyVal = reflect.ValueOf(parsed)
+ break
+ }
+ fallthrough
+ default:
+ return keyVal, fmt.Errorf("unsupported key type: %v", keyType)
+ }
+ }
+ return keyVal, err
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/mode.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/mode.go
new file mode 100644
index 00000000..fbd9f0a9
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/mode.go
@@ -0,0 +1,65 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import "fmt"
+
+type mode int
+
+const (
+ _ mode = iota
+ mTopLevel
+ mDocument
+ mArray
+ mValue
+ mElement
+ mCodeWithScope
+ mSpacer
+)
+
+func (m mode) String() string {
+ var str string
+
+ switch m {
+ case mTopLevel:
+ str = "TopLevel"
+ case mDocument:
+ str = "DocumentMode"
+ case mArray:
+ str = "ArrayMode"
+ case mValue:
+ str = "ValueMode"
+ case mElement:
+ str = "ElementMode"
+ case mCodeWithScope:
+ str = "CodeWithScopeMode"
+ case mSpacer:
+ str = "CodeWithScopeSpacerFrame"
+ default:
+ str = "UnknownMode"
+ }
+
+ return str
+}
+
+// TransitionError is an error returned when an invalid progressing a
+// ValueReader or ValueWriter state machine occurs.
+type TransitionError struct {
+ parent mode
+ current mode
+ destination mode
+}
+
+func (te TransitionError) Error() string {
+ if te.destination == mode(0) {
+ return fmt.Sprintf("invalid state transition: cannot read/write value while in %s", te.current)
+ }
+ if te.parent == mode(0) {
+ return fmt.Sprintf("invalid state transition: %s -> %s", te.current, te.destination)
+ }
+ return fmt.Sprintf("invalid state transition: %s -> %s; parent %s", te.current, te.destination, te.parent)
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/pointer_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/pointer_codec.go
new file mode 100644
index 00000000..616a3e70
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/pointer_codec.go
@@ -0,0 +1,109 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "reflect"
+ "sync"
+
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+var _ ValueEncoder = &PointerCodec{}
+var _ ValueDecoder = &PointerCodec{}
+
+// PointerCodec is the Codec used for pointers.
+type PointerCodec struct {
+ ecache map[reflect.Type]ValueEncoder
+ dcache map[reflect.Type]ValueDecoder
+ l sync.RWMutex
+}
+
+// NewPointerCodec returns a PointerCodec that has been initialized.
+func NewPointerCodec() *PointerCodec {
+ return &PointerCodec{
+ ecache: make(map[reflect.Type]ValueEncoder),
+ dcache: make(map[reflect.Type]ValueDecoder),
+ }
+}
+
+// EncodeValue handles encoding a pointer by either encoding it to BSON Null if the pointer is nil
+// or looking up an encoder for the type of value the pointer points to.
+func (pc *PointerCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if val.Kind() != reflect.Ptr {
+ if !val.IsValid() {
+ return vw.WriteNull()
+ }
+ return ValueEncoderError{Name: "PointerCodec.EncodeValue", Kinds: []reflect.Kind{reflect.Ptr}, Received: val}
+ }
+
+ if val.IsNil() {
+ return vw.WriteNull()
+ }
+
+ pc.l.RLock()
+ enc, ok := pc.ecache[val.Type()]
+ pc.l.RUnlock()
+ if ok {
+ if enc == nil {
+ return ErrNoEncoder{Type: val.Type()}
+ }
+ return enc.EncodeValue(ec, vw, val.Elem())
+ }
+
+ enc, err := ec.LookupEncoder(val.Type().Elem())
+ pc.l.Lock()
+ pc.ecache[val.Type()] = enc
+ pc.l.Unlock()
+ if err != nil {
+ return err
+ }
+
+ return enc.EncodeValue(ec, vw, val.Elem())
+}
+
+// DecodeValue handles decoding a pointer by looking up a decoder for the type it points to and
+// using that to decode. If the BSON value is Null, this method will set the pointer to nil.
+func (pc *PointerCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.Ptr {
+ return ValueDecoderError{Name: "PointerCodec.DecodeValue", Kinds: []reflect.Kind{reflect.Ptr}, Received: val}
+ }
+
+ if vr.Type() == bsontype.Null {
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ }
+ if vr.Type() == bsontype.Undefined {
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadUndefined()
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.New(val.Type().Elem()))
+ }
+
+ pc.l.RLock()
+ dec, ok := pc.dcache[val.Type()]
+ pc.l.RUnlock()
+ if ok {
+ if dec == nil {
+ return ErrNoDecoder{Type: val.Type()}
+ }
+ return dec.DecodeValue(dc, vr, val.Elem())
+ }
+
+ dec, err := dc.LookupDecoder(val.Type().Elem())
+ pc.l.Lock()
+ pc.dcache[val.Type()] = dec
+ pc.l.Unlock()
+ if err != nil {
+ return err
+ }
+
+ return dec.DecodeValue(dc, vr, val.Elem())
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/proxy.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/proxy.go
new file mode 100644
index 00000000..4cf2b01a
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/proxy.go
@@ -0,0 +1,14 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+// Proxy is an interface implemented by types that cannot themselves be directly encoded. Types
+// that implement this interface with have ProxyBSON called during the encoding process and that
+// value will be encoded in place for the implementer.
+type Proxy interface {
+ ProxyBSON() (interface{}, error)
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/registry.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/registry.go
new file mode 100644
index 00000000..80644023
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/registry.go
@@ -0,0 +1,469 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "errors"
+ "fmt"
+ "reflect"
+ "sync"
+
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+// ErrNilType is returned when nil is passed to either LookupEncoder or LookupDecoder.
+var ErrNilType = errors.New("cannot perform a decoder lookup on ")
+
+// ErrNotPointer is returned when a non-pointer type is provided to LookupDecoder.
+var ErrNotPointer = errors.New("non-pointer provided to LookupDecoder")
+
+// ErrNoEncoder is returned when there wasn't an encoder available for a type.
+type ErrNoEncoder struct {
+ Type reflect.Type
+}
+
+func (ene ErrNoEncoder) Error() string {
+ if ene.Type == nil {
+ return "no encoder found for "
+ }
+ return "no encoder found for " + ene.Type.String()
+}
+
+// ErrNoDecoder is returned when there wasn't a decoder available for a type.
+type ErrNoDecoder struct {
+ Type reflect.Type
+}
+
+func (end ErrNoDecoder) Error() string {
+ return "no decoder found for " + end.Type.String()
+}
+
+// ErrNoTypeMapEntry is returned when there wasn't a type available for the provided BSON type.
+type ErrNoTypeMapEntry struct {
+ Type bsontype.Type
+}
+
+func (entme ErrNoTypeMapEntry) Error() string {
+ return "no type map entry found for " + entme.Type.String()
+}
+
+// ErrNotInterface is returned when the provided type is not an interface.
+var ErrNotInterface = errors.New("The provided type is not an interface")
+
+// A RegistryBuilder is used to build a Registry. This type is not goroutine
+// safe.
+type RegistryBuilder struct {
+ typeEncoders map[reflect.Type]ValueEncoder
+ interfaceEncoders []interfaceValueEncoder
+ kindEncoders map[reflect.Kind]ValueEncoder
+
+ typeDecoders map[reflect.Type]ValueDecoder
+ interfaceDecoders []interfaceValueDecoder
+ kindDecoders map[reflect.Kind]ValueDecoder
+
+ typeMap map[bsontype.Type]reflect.Type
+}
+
+// A Registry is used to store and retrieve codecs for types and interfaces. This type is the main
+// typed passed around and Encoders and Decoders are constructed from it.
+type Registry struct {
+ typeEncoders map[reflect.Type]ValueEncoder
+ typeDecoders map[reflect.Type]ValueDecoder
+
+ interfaceEncoders []interfaceValueEncoder
+ interfaceDecoders []interfaceValueDecoder
+
+ kindEncoders map[reflect.Kind]ValueEncoder
+ kindDecoders map[reflect.Kind]ValueDecoder
+
+ typeMap map[bsontype.Type]reflect.Type
+
+ mu sync.RWMutex
+}
+
+// NewRegistryBuilder creates a new empty RegistryBuilder.
+func NewRegistryBuilder() *RegistryBuilder {
+ return &RegistryBuilder{
+ typeEncoders: make(map[reflect.Type]ValueEncoder),
+ typeDecoders: make(map[reflect.Type]ValueDecoder),
+
+ interfaceEncoders: make([]interfaceValueEncoder, 0),
+ interfaceDecoders: make([]interfaceValueDecoder, 0),
+
+ kindEncoders: make(map[reflect.Kind]ValueEncoder),
+ kindDecoders: make(map[reflect.Kind]ValueDecoder),
+
+ typeMap: make(map[bsontype.Type]reflect.Type),
+ }
+}
+
+func buildDefaultRegistry() *Registry {
+ rb := NewRegistryBuilder()
+ defaultValueEncoders.RegisterDefaultEncoders(rb)
+ defaultValueDecoders.RegisterDefaultDecoders(rb)
+ return rb.Build()
+}
+
+// RegisterCodec will register the provided ValueCodec for the provided type.
+func (rb *RegistryBuilder) RegisterCodec(t reflect.Type, codec ValueCodec) *RegistryBuilder {
+ rb.RegisterTypeEncoder(t, codec)
+ rb.RegisterTypeDecoder(t, codec)
+ return rb
+}
+
+// RegisterTypeEncoder will register the provided ValueEncoder for the provided type.
+//
+// The type will be used directly, so an encoder can be registered for a type and a different encoder can be registered
+// for a pointer to that type.
+//
+// If the given type is an interface, the encoder will be called when marshalling a type that is that interface. It
+// will not be called when marshalling a non-interface type that implements the interface.
+func (rb *RegistryBuilder) RegisterTypeEncoder(t reflect.Type, enc ValueEncoder) *RegistryBuilder {
+ rb.typeEncoders[t] = enc
+ return rb
+}
+
+// RegisterHookEncoder will register an encoder for the provided interface type t. This encoder will be called when
+// marshalling a type if the type implements t or a pointer to the type implements t. If the provided type is not
+// an interface (i.e. t.Kind() != reflect.Interface), this method will panic.
+func (rb *RegistryBuilder) RegisterHookEncoder(t reflect.Type, enc ValueEncoder) *RegistryBuilder {
+ if t.Kind() != reflect.Interface {
+ panicStr := fmt.Sprintf("RegisterHookEncoder expects a type with kind reflect.Interface, "+
+ "got type %s with kind %s", t, t.Kind())
+ panic(panicStr)
+ }
+
+ for idx, encoder := range rb.interfaceEncoders {
+ if encoder.i == t {
+ rb.interfaceEncoders[idx].ve = enc
+ return rb
+ }
+ }
+
+ rb.interfaceEncoders = append(rb.interfaceEncoders, interfaceValueEncoder{i: t, ve: enc})
+ return rb
+}
+
+// RegisterTypeDecoder will register the provided ValueDecoder for the provided type.
+//
+// The type will be used directly, so a decoder can be registered for a type and a different decoder can be registered
+// for a pointer to that type.
+//
+// If the given type is an interface, the decoder will be called when unmarshalling into a type that is that interface.
+// It will not be called when unmarshalling into a non-interface type that implements the interface.
+func (rb *RegistryBuilder) RegisterTypeDecoder(t reflect.Type, dec ValueDecoder) *RegistryBuilder {
+ rb.typeDecoders[t] = dec
+ return rb
+}
+
+// RegisterHookDecoder will register an decoder for the provided interface type t. This decoder will be called when
+// unmarshalling into a type if the type implements t or a pointer to the type implements t. If the provided type is not
+// an interface (i.e. t.Kind() != reflect.Interface), this method will panic.
+func (rb *RegistryBuilder) RegisterHookDecoder(t reflect.Type, dec ValueDecoder) *RegistryBuilder {
+ if t.Kind() != reflect.Interface {
+ panicStr := fmt.Sprintf("RegisterHookDecoder expects a type with kind reflect.Interface, "+
+ "got type %s with kind %s", t, t.Kind())
+ panic(panicStr)
+ }
+
+ for idx, decoder := range rb.interfaceDecoders {
+ if decoder.i == t {
+ rb.interfaceDecoders[idx].vd = dec
+ return rb
+ }
+ }
+
+ rb.interfaceDecoders = append(rb.interfaceDecoders, interfaceValueDecoder{i: t, vd: dec})
+ return rb
+}
+
+// RegisterEncoder registers the provided type and encoder pair.
+//
+// Deprecated: Use RegisterTypeEncoder or RegisterHookEncoder instead.
+func (rb *RegistryBuilder) RegisterEncoder(t reflect.Type, enc ValueEncoder) *RegistryBuilder {
+ if t == tEmpty {
+ rb.typeEncoders[t] = enc
+ return rb
+ }
+ switch t.Kind() {
+ case reflect.Interface:
+ for idx, ir := range rb.interfaceEncoders {
+ if ir.i == t {
+ rb.interfaceEncoders[idx].ve = enc
+ return rb
+ }
+ }
+
+ rb.interfaceEncoders = append(rb.interfaceEncoders, interfaceValueEncoder{i: t, ve: enc})
+ default:
+ rb.typeEncoders[t] = enc
+ }
+ return rb
+}
+
+// RegisterDecoder registers the provided type and decoder pair.
+//
+// Deprecated: Use RegisterTypeDecoder or RegisterHookDecoder instead.
+func (rb *RegistryBuilder) RegisterDecoder(t reflect.Type, dec ValueDecoder) *RegistryBuilder {
+ if t == nil {
+ rb.typeDecoders[nil] = dec
+ return rb
+ }
+ if t == tEmpty {
+ rb.typeDecoders[t] = dec
+ return rb
+ }
+ switch t.Kind() {
+ case reflect.Interface:
+ for idx, ir := range rb.interfaceDecoders {
+ if ir.i == t {
+ rb.interfaceDecoders[idx].vd = dec
+ return rb
+ }
+ }
+
+ rb.interfaceDecoders = append(rb.interfaceDecoders, interfaceValueDecoder{i: t, vd: dec})
+ default:
+ rb.typeDecoders[t] = dec
+ }
+ return rb
+}
+
+// RegisterDefaultEncoder will registr the provided ValueEncoder to the provided
+// kind.
+func (rb *RegistryBuilder) RegisterDefaultEncoder(kind reflect.Kind, enc ValueEncoder) *RegistryBuilder {
+ rb.kindEncoders[kind] = enc
+ return rb
+}
+
+// RegisterDefaultDecoder will register the provided ValueDecoder to the
+// provided kind.
+func (rb *RegistryBuilder) RegisterDefaultDecoder(kind reflect.Kind, dec ValueDecoder) *RegistryBuilder {
+ rb.kindDecoders[kind] = dec
+ return rb
+}
+
+// RegisterTypeMapEntry will register the provided type to the BSON type. The primary usage for this
+// mapping is decoding situations where an empty interface is used and a default type needs to be
+// created and decoded into.
+//
+// By default, BSON documents will decode into interface{} values as bson.D. To change the default type for BSON
+// documents, a type map entry for bsontype.EmbeddedDocument should be registered. For example, to force BSON documents
+// to decode to bson.Raw, use the following code:
+//
+// rb.RegisterTypeMapEntry(bsontype.EmbeddedDocument, reflect.TypeOf(bson.Raw{}))
+func (rb *RegistryBuilder) RegisterTypeMapEntry(bt bsontype.Type, rt reflect.Type) *RegistryBuilder {
+ rb.typeMap[bt] = rt
+ return rb
+}
+
+// Build creates a Registry from the current state of this RegistryBuilder.
+func (rb *RegistryBuilder) Build() *Registry {
+ registry := new(Registry)
+
+ registry.typeEncoders = make(map[reflect.Type]ValueEncoder)
+ for t, enc := range rb.typeEncoders {
+ registry.typeEncoders[t] = enc
+ }
+
+ registry.typeDecoders = make(map[reflect.Type]ValueDecoder)
+ for t, dec := range rb.typeDecoders {
+ registry.typeDecoders[t] = dec
+ }
+
+ registry.interfaceEncoders = make([]interfaceValueEncoder, len(rb.interfaceEncoders))
+ copy(registry.interfaceEncoders, rb.interfaceEncoders)
+
+ registry.interfaceDecoders = make([]interfaceValueDecoder, len(rb.interfaceDecoders))
+ copy(registry.interfaceDecoders, rb.interfaceDecoders)
+
+ registry.kindEncoders = make(map[reflect.Kind]ValueEncoder)
+ for kind, enc := range rb.kindEncoders {
+ registry.kindEncoders[kind] = enc
+ }
+
+ registry.kindDecoders = make(map[reflect.Kind]ValueDecoder)
+ for kind, dec := range rb.kindDecoders {
+ registry.kindDecoders[kind] = dec
+ }
+
+ registry.typeMap = make(map[bsontype.Type]reflect.Type)
+ for bt, rt := range rb.typeMap {
+ registry.typeMap[bt] = rt
+ }
+
+ return registry
+}
+
+// LookupEncoder inspects the registry for an encoder for the given type. The lookup precedence works as follows:
+//
+// 1. An encoder registered for the exact type. If the given type represents an interface, an encoder registered using
+// RegisterTypeEncoder for the interface will be selected.
+//
+// 2. An encoder registered using RegisterHookEncoder for an interface implemented by the type or by a pointer to the
+// type.
+//
+// 3. An encoder registered for the reflect.Kind of the value.
+//
+// If no encoder is found, an error of type ErrNoEncoder is returned.
+func (r *Registry) LookupEncoder(t reflect.Type) (ValueEncoder, error) {
+ encodererr := ErrNoEncoder{Type: t}
+ r.mu.RLock()
+ enc, found := r.lookupTypeEncoder(t)
+ r.mu.RUnlock()
+ if found {
+ if enc == nil {
+ return nil, ErrNoEncoder{Type: t}
+ }
+ return enc, nil
+ }
+
+ enc, found = r.lookupInterfaceEncoder(t, true)
+ if found {
+ r.mu.Lock()
+ r.typeEncoders[t] = enc
+ r.mu.Unlock()
+ return enc, nil
+ }
+
+ if t == nil {
+ r.mu.Lock()
+ r.typeEncoders[t] = nil
+ r.mu.Unlock()
+ return nil, encodererr
+ }
+
+ enc, found = r.kindEncoders[t.Kind()]
+ if !found {
+ r.mu.Lock()
+ r.typeEncoders[t] = nil
+ r.mu.Unlock()
+ return nil, encodererr
+ }
+
+ r.mu.Lock()
+ r.typeEncoders[t] = enc
+ r.mu.Unlock()
+ return enc, nil
+}
+
+func (r *Registry) lookupTypeEncoder(t reflect.Type) (ValueEncoder, bool) {
+ enc, found := r.typeEncoders[t]
+ return enc, found
+}
+
+func (r *Registry) lookupInterfaceEncoder(t reflect.Type, allowAddr bool) (ValueEncoder, bool) {
+ if t == nil {
+ return nil, false
+ }
+ for _, ienc := range r.interfaceEncoders {
+ if t.Implements(ienc.i) {
+ return ienc.ve, true
+ }
+ if allowAddr && t.Kind() != reflect.Ptr && reflect.PtrTo(t).Implements(ienc.i) {
+ // if *t implements an interface, this will catch if t implements an interface further ahead
+ // in interfaceEncoders
+ defaultEnc, found := r.lookupInterfaceEncoder(t, false)
+ if !found {
+ defaultEnc = r.kindEncoders[t.Kind()]
+ }
+ return newCondAddrEncoder(ienc.ve, defaultEnc), true
+ }
+ }
+ return nil, false
+}
+
+// LookupDecoder inspects the registry for an decoder for the given type. The lookup precedence works as follows:
+//
+// 1. A decoder registered for the exact type. If the given type represents an interface, a decoder registered using
+// RegisterTypeDecoder for the interface will be selected.
+//
+// 2. A decoder registered using RegisterHookDecoder for an interface implemented by the type or by a pointer to the
+// type.
+//
+// 3. A decoder registered for the reflect.Kind of the value.
+//
+// If no decoder is found, an error of type ErrNoDecoder is returned.
+func (r *Registry) LookupDecoder(t reflect.Type) (ValueDecoder, error) {
+ if t == nil {
+ return nil, ErrNilType
+ }
+ decodererr := ErrNoDecoder{Type: t}
+ r.mu.RLock()
+ dec, found := r.lookupTypeDecoder(t)
+ r.mu.RUnlock()
+ if found {
+ if dec == nil {
+ return nil, ErrNoDecoder{Type: t}
+ }
+ return dec, nil
+ }
+
+ dec, found = r.lookupInterfaceDecoder(t, true)
+ if found {
+ r.mu.Lock()
+ r.typeDecoders[t] = dec
+ r.mu.Unlock()
+ return dec, nil
+ }
+
+ dec, found = r.kindDecoders[t.Kind()]
+ if !found {
+ r.mu.Lock()
+ r.typeDecoders[t] = nil
+ r.mu.Unlock()
+ return nil, decodererr
+ }
+
+ r.mu.Lock()
+ r.typeDecoders[t] = dec
+ r.mu.Unlock()
+ return dec, nil
+}
+
+func (r *Registry) lookupTypeDecoder(t reflect.Type) (ValueDecoder, bool) {
+ dec, found := r.typeDecoders[t]
+ return dec, found
+}
+
+func (r *Registry) lookupInterfaceDecoder(t reflect.Type, allowAddr bool) (ValueDecoder, bool) {
+ for _, idec := range r.interfaceDecoders {
+ if t.Implements(idec.i) {
+ return idec.vd, true
+ }
+ if allowAddr && t.Kind() != reflect.Ptr && reflect.PtrTo(t).Implements(idec.i) {
+ // if *t implements an interface, this will catch if t implements an interface further ahead
+ // in interfaceDecoders
+ defaultDec, found := r.lookupInterfaceDecoder(t, false)
+ if !found {
+ defaultDec = r.kindDecoders[t.Kind()]
+ }
+ return newCondAddrDecoder(idec.vd, defaultDec), true
+ }
+ }
+ return nil, false
+}
+
+// LookupTypeMapEntry inspects the registry's type map for a Go type for the corresponding BSON
+// type. If no type is found, ErrNoTypeMapEntry is returned.
+func (r *Registry) LookupTypeMapEntry(bt bsontype.Type) (reflect.Type, error) {
+ t, ok := r.typeMap[bt]
+ if !ok || t == nil {
+ return nil, ErrNoTypeMapEntry{Type: bt}
+ }
+ return t, nil
+}
+
+type interfaceValueEncoder struct {
+ i reflect.Type
+ ve ValueEncoder
+}
+
+type interfaceValueDecoder struct {
+ i reflect.Type
+ vd ValueDecoder
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/slice_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/slice_codec.go
new file mode 100644
index 00000000..3c1b6b86
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/slice_codec.go
@@ -0,0 +1,199 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "fmt"
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+var defaultSliceCodec = NewSliceCodec()
+
+// SliceCodec is the Codec used for slice values.
+type SliceCodec struct {
+ EncodeNilAsEmpty bool
+}
+
+var _ ValueCodec = &MapCodec{}
+
+// NewSliceCodec returns a MapCodec with options opts.
+func NewSliceCodec(opts ...*bsonoptions.SliceCodecOptions) *SliceCodec {
+ sliceOpt := bsonoptions.MergeSliceCodecOptions(opts...)
+
+ codec := SliceCodec{}
+ if sliceOpt.EncodeNilAsEmpty != nil {
+ codec.EncodeNilAsEmpty = *sliceOpt.EncodeNilAsEmpty
+ }
+ return &codec
+}
+
+// EncodeValue is the ValueEncoder for slice types.
+func (sc SliceCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Slice {
+ return ValueEncoderError{Name: "SliceEncodeValue", Kinds: []reflect.Kind{reflect.Slice}, Received: val}
+ }
+
+ if val.IsNil() && !sc.EncodeNilAsEmpty {
+ return vw.WriteNull()
+ }
+
+ // If we have a []byte we want to treat it as a binary instead of as an array.
+ if val.Type().Elem() == tByte {
+ var byteSlice []byte
+ for idx := 0; idx < val.Len(); idx++ {
+ byteSlice = append(byteSlice, val.Index(idx).Interface().(byte))
+ }
+ return vw.WriteBinary(byteSlice)
+ }
+
+ // If we have a []primitive.E we want to treat it as a document instead of as an array.
+ if val.Type().ConvertibleTo(tD) {
+ d := val.Convert(tD).Interface().(primitive.D)
+
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ for _, e := range d {
+ err = encodeElement(ec, dw, e)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+ }
+
+ aw, err := vw.WriteArray()
+ if err != nil {
+ return err
+ }
+
+ elemType := val.Type().Elem()
+ encoder, err := ec.LookupEncoder(elemType)
+ if err != nil && elemType.Kind() != reflect.Interface {
+ return err
+ }
+
+ for idx := 0; idx < val.Len(); idx++ {
+ currEncoder, currVal, lookupErr := defaultValueEncoders.lookupElementEncoder(ec, encoder, val.Index(idx))
+ if lookupErr != nil && lookupErr != errInvalidValue {
+ return lookupErr
+ }
+
+ vw, err := aw.WriteArrayElement()
+ if err != nil {
+ return err
+ }
+
+ if lookupErr == errInvalidValue {
+ err = vw.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ err = currEncoder.EncodeValue(ec, vw, currVal)
+ if err != nil {
+ return err
+ }
+ }
+ return aw.WriteArrayEnd()
+}
+
+// DecodeValue is the ValueDecoder for slice types.
+func (sc *SliceCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.Slice {
+ return ValueDecoderError{Name: "SliceDecodeValue", Kinds: []reflect.Kind{reflect.Slice}, Received: val}
+ }
+
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Array:
+ case bsontype.Null:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadNull()
+ case bsontype.Undefined:
+ val.Set(reflect.Zero(val.Type()))
+ return vr.ReadUndefined()
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ if val.Type().Elem() != tE {
+ return fmt.Errorf("cannot decode document into %s", val.Type())
+ }
+ case bsontype.Binary:
+ if val.Type().Elem() != tByte {
+ return fmt.Errorf("SliceDecodeValue can only decode a binary into a byte array, got %v", vrType)
+ }
+ data, subtype, err := vr.ReadBinary()
+ if err != nil {
+ return err
+ }
+ if subtype != bsontype.BinaryGeneric && subtype != bsontype.BinaryBinaryOld {
+ return fmt.Errorf("SliceDecodeValue can only be used to decode subtype 0x00 or 0x02 for %s, got %v", bsontype.Binary, subtype)
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, len(data)))
+ }
+
+ val.SetLen(0)
+ for _, elem := range data {
+ val.Set(reflect.Append(val, reflect.ValueOf(elem)))
+ }
+ return nil
+ case bsontype.String:
+ if sliceType := val.Type().Elem(); sliceType != tByte {
+ return fmt.Errorf("SliceDecodeValue can only decode a string into a byte array, got %v", sliceType)
+ }
+ str, err := vr.ReadString()
+ if err != nil {
+ return err
+ }
+ byteStr := []byte(str)
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, len(byteStr)))
+ }
+
+ val.SetLen(0)
+ for _, elem := range byteStr {
+ val.Set(reflect.Append(val, reflect.ValueOf(elem)))
+ }
+ return nil
+ default:
+ return fmt.Errorf("cannot decode %v into a slice", vrType)
+ }
+
+ var elemsFunc func(DecodeContext, bsonrw.ValueReader, reflect.Value) ([]reflect.Value, error)
+ switch val.Type().Elem() {
+ case tE:
+ dc.Ancestor = val.Type()
+ elemsFunc = defaultValueDecoders.decodeD
+ default:
+ elemsFunc = defaultValueDecoders.decodeDefault
+ }
+
+ elems, err := elemsFunc(dc, vr, val)
+ if err != nil {
+ return err
+ }
+
+ if val.IsNil() {
+ val.Set(reflect.MakeSlice(val.Type(), 0, len(elems)))
+ }
+
+ val.SetLen(0)
+ val.Set(reflect.Append(val, elems...))
+
+ return nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/string_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/string_codec.go
new file mode 100644
index 00000000..5332b7c3
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/string_codec.go
@@ -0,0 +1,119 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "fmt"
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+// StringCodec is the Codec used for struct values.
+type StringCodec struct {
+ DecodeObjectIDAsHex bool
+}
+
+var (
+ defaultStringCodec = NewStringCodec()
+
+ _ ValueCodec = defaultStringCodec
+ _ typeDecoder = defaultStringCodec
+)
+
+// NewStringCodec returns a StringCodec with options opts.
+func NewStringCodec(opts ...*bsonoptions.StringCodecOptions) *StringCodec {
+ stringOpt := bsonoptions.MergeStringCodecOptions(opts...)
+ return &StringCodec{*stringOpt.DecodeObjectIDAsHex}
+}
+
+// EncodeValue is the ValueEncoder for string types.
+func (sc *StringCodec) EncodeValue(ectx EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if val.Kind() != reflect.String {
+ return ValueEncoderError{
+ Name: "StringEncodeValue",
+ Kinds: []reflect.Kind{reflect.String},
+ Received: val,
+ }
+ }
+
+ return vw.WriteString(val.String())
+}
+
+func (sc *StringCodec) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t.Kind() != reflect.String {
+ return emptyValue, ValueDecoderError{
+ Name: "StringDecodeValue",
+ Kinds: []reflect.Kind{reflect.String},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var str string
+ var err error
+ switch vr.Type() {
+ case bsontype.String:
+ str, err = vr.ReadString()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.ObjectID:
+ oid, err := vr.ReadObjectID()
+ if err != nil {
+ return emptyValue, err
+ }
+ if sc.DecodeObjectIDAsHex {
+ str = oid.Hex()
+ } else {
+ byteArray := [12]byte(oid)
+ str = string(byteArray[:])
+ }
+ case bsontype.Symbol:
+ str, err = vr.ReadSymbol()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Binary:
+ data, subtype, err := vr.ReadBinary()
+ if err != nil {
+ return emptyValue, err
+ }
+ if subtype != bsontype.BinaryGeneric && subtype != bsontype.BinaryBinaryOld {
+ return emptyValue, decodeBinaryError{subtype: subtype, typeName: "string"}
+ }
+ str = string(data)
+ case bsontype.Null:
+ if err = vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err = vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a string type", vr.Type())
+ }
+
+ return reflect.ValueOf(str), nil
+}
+
+// DecodeValue is the ValueDecoder for string types.
+func (sc *StringCodec) DecodeValue(dctx DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.String {
+ return ValueDecoderError{Name: "StringDecodeValue", Kinds: []reflect.Kind{reflect.String}, Received: val}
+ }
+
+ elem, err := sc.decodeType(dctx, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.SetString(elem.String())
+ return nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_codec.go
new file mode 100644
index 00000000..be3f2081
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_codec.go
@@ -0,0 +1,664 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "errors"
+ "fmt"
+ "reflect"
+ "sort"
+ "strings"
+ "sync"
+ "time"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+// DecodeError represents an error that occurs when unmarshalling BSON bytes into a native Go type.
+type DecodeError struct {
+ keys []string
+ wrapped error
+}
+
+// Unwrap returns the underlying error
+func (de *DecodeError) Unwrap() error {
+ return de.wrapped
+}
+
+// Error implements the error interface.
+func (de *DecodeError) Error() string {
+ // The keys are stored in reverse order because the de.keys slice is builtup while propagating the error up the
+ // stack of BSON keys, so we call de.Keys(), which reverses them.
+ keyPath := strings.Join(de.Keys(), ".")
+ return fmt.Sprintf("error decoding key %s: %v", keyPath, de.wrapped)
+}
+
+// Keys returns the BSON key path that caused an error as a slice of strings. The keys in the slice are in top-down
+// order. For example, if the document being unmarshalled was {a: {b: {c: 1}}} and the value for c was supposed to be
+// a string, the keys slice will be ["a", "b", "c"].
+func (de *DecodeError) Keys() []string {
+ reversedKeys := make([]string, 0, len(de.keys))
+ for idx := len(de.keys) - 1; idx >= 0; idx-- {
+ reversedKeys = append(reversedKeys, de.keys[idx])
+ }
+
+ return reversedKeys
+}
+
+// Zeroer allows custom struct types to implement a report of zero
+// state. All struct types that don't implement Zeroer or where IsZero
+// returns false are considered to be not zero.
+type Zeroer interface {
+ IsZero() bool
+}
+
+// StructCodec is the Codec used for struct values.
+type StructCodec struct {
+ cache map[reflect.Type]*structDescription
+ l sync.RWMutex
+ parser StructTagParser
+ DecodeZeroStruct bool
+ DecodeDeepZeroInline bool
+ EncodeOmitDefaultStruct bool
+ AllowUnexportedFields bool
+ OverwriteDuplicatedInlinedFields bool
+}
+
+var _ ValueEncoder = &StructCodec{}
+var _ ValueDecoder = &StructCodec{}
+
+// NewStructCodec returns a StructCodec that uses p for struct tag parsing.
+func NewStructCodec(p StructTagParser, opts ...*bsonoptions.StructCodecOptions) (*StructCodec, error) {
+ if p == nil {
+ return nil, errors.New("a StructTagParser must be provided to NewStructCodec")
+ }
+
+ structOpt := bsonoptions.MergeStructCodecOptions(opts...)
+
+ codec := &StructCodec{
+ cache: make(map[reflect.Type]*structDescription),
+ parser: p,
+ }
+
+ if structOpt.DecodeZeroStruct != nil {
+ codec.DecodeZeroStruct = *structOpt.DecodeZeroStruct
+ }
+ if structOpt.DecodeDeepZeroInline != nil {
+ codec.DecodeDeepZeroInline = *structOpt.DecodeDeepZeroInline
+ }
+ if structOpt.EncodeOmitDefaultStruct != nil {
+ codec.EncodeOmitDefaultStruct = *structOpt.EncodeOmitDefaultStruct
+ }
+ if structOpt.OverwriteDuplicatedInlinedFields != nil {
+ codec.OverwriteDuplicatedInlinedFields = *structOpt.OverwriteDuplicatedInlinedFields
+ }
+ if structOpt.AllowUnexportedFields != nil {
+ codec.AllowUnexportedFields = *structOpt.AllowUnexportedFields
+ }
+
+ return codec, nil
+}
+
+// EncodeValue handles encoding generic struct types.
+func (sc *StructCodec) EncodeValue(r EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Kind() != reflect.Struct {
+ return ValueEncoderError{Name: "StructCodec.EncodeValue", Kinds: []reflect.Kind{reflect.Struct}, Received: val}
+ }
+
+ sd, err := sc.describeStruct(r.Registry, val.Type())
+ if err != nil {
+ return err
+ }
+
+ dw, err := vw.WriteDocument()
+ if err != nil {
+ return err
+ }
+ var rv reflect.Value
+ for _, desc := range sd.fl {
+ if desc.inline == nil {
+ rv = val.Field(desc.idx)
+ } else {
+ rv, err = fieldByIndexErr(val, desc.inline)
+ if err != nil {
+ continue
+ }
+ }
+
+ desc.encoder, rv, err = defaultValueEncoders.lookupElementEncoder(r, desc.encoder, rv)
+
+ if err != nil && err != errInvalidValue {
+ return err
+ }
+
+ if err == errInvalidValue {
+ if desc.omitEmpty {
+ continue
+ }
+ vw2, err := dw.WriteDocumentElement(desc.name)
+ if err != nil {
+ return err
+ }
+ err = vw2.WriteNull()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ if desc.encoder == nil {
+ return ErrNoEncoder{Type: rv.Type()}
+ }
+
+ encoder := desc.encoder
+
+ var isZero bool
+ rvInterface := rv.Interface()
+ if cz, ok := encoder.(CodecZeroer); ok {
+ isZero = cz.IsTypeZero(rvInterface)
+ } else if rv.Kind() == reflect.Interface {
+ // sc.isZero will not treat an interface rv as an interface, so we need to check for the zero interface separately.
+ isZero = rv.IsNil()
+ } else {
+ isZero = sc.isZero(rvInterface)
+ }
+ if desc.omitEmpty && isZero {
+ continue
+ }
+
+ vw2, err := dw.WriteDocumentElement(desc.name)
+ if err != nil {
+ return err
+ }
+
+ ectx := EncodeContext{Registry: r.Registry, MinSize: desc.minSize}
+ err = encoder.EncodeValue(ectx, vw2, rv)
+ if err != nil {
+ return err
+ }
+ }
+
+ if sd.inlineMap >= 0 {
+ rv := val.Field(sd.inlineMap)
+ collisionFn := func(key string) bool {
+ _, exists := sd.fm[key]
+ return exists
+ }
+
+ return defaultMapCodec.mapEncodeValue(r, dw, rv, collisionFn)
+ }
+
+ return dw.WriteDocumentEnd()
+}
+
+func newDecodeError(key string, original error) error {
+ de, ok := original.(*DecodeError)
+ if !ok {
+ return &DecodeError{
+ keys: []string{key},
+ wrapped: original,
+ }
+ }
+
+ de.keys = append(de.keys, key)
+ return de
+}
+
+// DecodeValue implements the Codec interface.
+// By default, map types in val will not be cleared. If a map has existing key/value pairs, it will be extended with the new ones from vr.
+// For slices, the decoder will set the length of the slice to zero and append all elements. The underlying array will not be cleared.
+func (sc *StructCodec) DecodeValue(r DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Kind() != reflect.Struct {
+ return ValueDecoderError{Name: "StructCodec.DecodeValue", Kinds: []reflect.Kind{reflect.Struct}, Received: val}
+ }
+
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Type(0), bsontype.EmbeddedDocument:
+ case bsontype.Null:
+ if err := vr.ReadNull(); err != nil {
+ return err
+ }
+
+ val.Set(reflect.Zero(val.Type()))
+ return nil
+ case bsontype.Undefined:
+ if err := vr.ReadUndefined(); err != nil {
+ return err
+ }
+
+ val.Set(reflect.Zero(val.Type()))
+ return nil
+ default:
+ return fmt.Errorf("cannot decode %v into a %s", vrType, val.Type())
+ }
+
+ sd, err := sc.describeStruct(r.Registry, val.Type())
+ if err != nil {
+ return err
+ }
+
+ if sc.DecodeZeroStruct {
+ val.Set(reflect.Zero(val.Type()))
+ }
+ if sc.DecodeDeepZeroInline && sd.inline {
+ val.Set(deepZero(val.Type()))
+ }
+
+ var decoder ValueDecoder
+ var inlineMap reflect.Value
+ if sd.inlineMap >= 0 {
+ inlineMap = val.Field(sd.inlineMap)
+ decoder, err = r.LookupDecoder(inlineMap.Type().Elem())
+ if err != nil {
+ return err
+ }
+ }
+
+ dr, err := vr.ReadDocument()
+ if err != nil {
+ return err
+ }
+
+ for {
+ name, vr, err := dr.ReadElement()
+ if err == bsonrw.ErrEOD {
+ break
+ }
+ if err != nil {
+ return err
+ }
+
+ fd, exists := sd.fm[name]
+ if !exists {
+ // if the original name isn't found in the struct description, try again with the name in lowercase
+ // this could match if a BSON tag isn't specified because by default, describeStruct lowercases all field
+ // names
+ fd, exists = sd.fm[strings.ToLower(name)]
+ }
+
+ if !exists {
+ if sd.inlineMap < 0 {
+ // The encoding/json package requires a flag to return on error for non-existent fields.
+ // This functionality seems appropriate for the struct codec.
+ err = vr.Skip()
+ if err != nil {
+ return err
+ }
+ continue
+ }
+
+ if inlineMap.IsNil() {
+ inlineMap.Set(reflect.MakeMap(inlineMap.Type()))
+ }
+
+ elem := reflect.New(inlineMap.Type().Elem()).Elem()
+ r.Ancestor = inlineMap.Type()
+ err = decoder.DecodeValue(r, vr, elem)
+ if err != nil {
+ return err
+ }
+ inlineMap.SetMapIndex(reflect.ValueOf(name), elem)
+ continue
+ }
+
+ var field reflect.Value
+ if fd.inline == nil {
+ field = val.Field(fd.idx)
+ } else {
+ field, err = getInlineField(val, fd.inline)
+ if err != nil {
+ return err
+ }
+ }
+
+ if !field.CanSet() { // Being settable is a super set of being addressable.
+ innerErr := fmt.Errorf("field %v is not settable", field)
+ return newDecodeError(fd.name, innerErr)
+ }
+ if field.Kind() == reflect.Ptr && field.IsNil() {
+ field.Set(reflect.New(field.Type().Elem()))
+ }
+ field = field.Addr()
+
+ dctx := DecodeContext{Registry: r.Registry, Truncate: fd.truncate || r.Truncate}
+ if fd.decoder == nil {
+ return newDecodeError(fd.name, ErrNoDecoder{Type: field.Elem().Type()})
+ }
+
+ err = fd.decoder.DecodeValue(dctx, vr, field.Elem())
+ if err != nil {
+ return newDecodeError(fd.name, err)
+ }
+ }
+
+ return nil
+}
+
+func (sc *StructCodec) isZero(i interface{}) bool {
+ v := reflect.ValueOf(i)
+
+ // check the value validity
+ if !v.IsValid() {
+ return true
+ }
+
+ if z, ok := v.Interface().(Zeroer); ok && (v.Kind() != reflect.Ptr || !v.IsNil()) {
+ return z.IsZero()
+ }
+
+ switch v.Kind() {
+ case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
+ return v.Len() == 0
+ case reflect.Bool:
+ return !v.Bool()
+ case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64:
+ return v.Int() == 0
+ case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr:
+ return v.Uint() == 0
+ case reflect.Float32, reflect.Float64:
+ return v.Float() == 0
+ case reflect.Interface, reflect.Ptr:
+ return v.IsNil()
+ case reflect.Struct:
+ if sc.EncodeOmitDefaultStruct {
+ vt := v.Type()
+ if vt == tTime {
+ return v.Interface().(time.Time).IsZero()
+ }
+ for i := 0; i < v.NumField(); i++ {
+ if vt.Field(i).PkgPath != "" && !vt.Field(i).Anonymous {
+ continue // Private field
+ }
+ fld := v.Field(i)
+ if !sc.isZero(fld.Interface()) {
+ return false
+ }
+ }
+ return true
+ }
+ }
+
+ return false
+}
+
+type structDescription struct {
+ fm map[string]fieldDescription
+ fl []fieldDescription
+ inlineMap int
+ inline bool
+}
+
+type fieldDescription struct {
+ name string // BSON key name
+ fieldName string // struct field name
+ idx int
+ omitEmpty bool
+ minSize bool
+ truncate bool
+ inline []int
+ encoder ValueEncoder
+ decoder ValueDecoder
+}
+
+type byIndex []fieldDescription
+
+func (bi byIndex) Len() int { return len(bi) }
+
+func (bi byIndex) Swap(i, j int) { bi[i], bi[j] = bi[j], bi[i] }
+
+func (bi byIndex) Less(i, j int) bool {
+ // If a field is inlined, its index in the top level struct is stored at inline[0]
+ iIdx, jIdx := bi[i].idx, bi[j].idx
+ if len(bi[i].inline) > 0 {
+ iIdx = bi[i].inline[0]
+ }
+ if len(bi[j].inline) > 0 {
+ jIdx = bi[j].inline[0]
+ }
+ if iIdx != jIdx {
+ return iIdx < jIdx
+ }
+ for k, biik := range bi[i].inline {
+ if k >= len(bi[j].inline) {
+ return false
+ }
+ if biik != bi[j].inline[k] {
+ return biik < bi[j].inline[k]
+ }
+ }
+ return len(bi[i].inline) < len(bi[j].inline)
+}
+
+func (sc *StructCodec) describeStruct(r *Registry, t reflect.Type) (*structDescription, error) {
+ // We need to analyze the struct, including getting the tags, collecting
+ // information about inlining, and create a map of the field name to the field.
+ sc.l.RLock()
+ ds, exists := sc.cache[t]
+ sc.l.RUnlock()
+ if exists {
+ return ds, nil
+ }
+
+ numFields := t.NumField()
+ sd := &structDescription{
+ fm: make(map[string]fieldDescription, numFields),
+ fl: make([]fieldDescription, 0, numFields),
+ inlineMap: -1,
+ }
+
+ var fields []fieldDescription
+ for i := 0; i < numFields; i++ {
+ sf := t.Field(i)
+ if sf.PkgPath != "" && (!sc.AllowUnexportedFields || !sf.Anonymous) {
+ // field is private or unexported fields aren't allowed, ignore
+ continue
+ }
+
+ sfType := sf.Type
+ encoder, err := r.LookupEncoder(sfType)
+ if err != nil {
+ encoder = nil
+ }
+ decoder, err := r.LookupDecoder(sfType)
+ if err != nil {
+ decoder = nil
+ }
+
+ description := fieldDescription{
+ fieldName: sf.Name,
+ idx: i,
+ encoder: encoder,
+ decoder: decoder,
+ }
+
+ stags, err := sc.parser.ParseStructTags(sf)
+ if err != nil {
+ return nil, err
+ }
+ if stags.Skip {
+ continue
+ }
+ description.name = stags.Name
+ description.omitEmpty = stags.OmitEmpty
+ description.minSize = stags.MinSize
+ description.truncate = stags.Truncate
+
+ if stags.Inline {
+ sd.inline = true
+ switch sfType.Kind() {
+ case reflect.Map:
+ if sd.inlineMap >= 0 {
+ return nil, errors.New("(struct " + t.String() + ") multiple inline maps")
+ }
+ if sfType.Key() != tString {
+ return nil, errors.New("(struct " + t.String() + ") inline map must have a string keys")
+ }
+ sd.inlineMap = description.idx
+ case reflect.Ptr:
+ sfType = sfType.Elem()
+ if sfType.Kind() != reflect.Struct {
+ return nil, fmt.Errorf("(struct %s) inline fields must be a struct, a struct pointer, or a map", t.String())
+ }
+ fallthrough
+ case reflect.Struct:
+ inlinesf, err := sc.describeStruct(r, sfType)
+ if err != nil {
+ return nil, err
+ }
+ for _, fd := range inlinesf.fl {
+ if fd.inline == nil {
+ fd.inline = []int{i, fd.idx}
+ } else {
+ fd.inline = append([]int{i}, fd.inline...)
+ }
+ fields = append(fields, fd)
+
+ }
+ default:
+ return nil, fmt.Errorf("(struct %s) inline fields must be a struct, a struct pointer, or a map", t.String())
+ }
+ continue
+ }
+ fields = append(fields, description)
+ }
+
+ // Sort fieldDescriptions by name and use dominance rules to determine which should be added for each name
+ sort.Slice(fields, func(i, j int) bool {
+ x := fields
+ // sort field by name, breaking ties with depth, then
+ // breaking ties with index sequence.
+ if x[i].name != x[j].name {
+ return x[i].name < x[j].name
+ }
+ if len(x[i].inline) != len(x[j].inline) {
+ return len(x[i].inline) < len(x[j].inline)
+ }
+ return byIndex(x).Less(i, j)
+ })
+
+ for advance, i := 0, 0; i < len(fields); i += advance {
+ // One iteration per name.
+ // Find the sequence of fields with the name of this first field.
+ fi := fields[i]
+ name := fi.name
+ for advance = 1; i+advance < len(fields); advance++ {
+ fj := fields[i+advance]
+ if fj.name != name {
+ break
+ }
+ }
+ if advance == 1 { // Only one field with this name
+ sd.fl = append(sd.fl, fi)
+ sd.fm[name] = fi
+ continue
+ }
+ dominant, ok := dominantField(fields[i : i+advance])
+ if !ok || !sc.OverwriteDuplicatedInlinedFields {
+ return nil, fmt.Errorf("struct %s has duplicated key %s", t.String(), name)
+ }
+ sd.fl = append(sd.fl, dominant)
+ sd.fm[name] = dominant
+ }
+
+ sort.Sort(byIndex(sd.fl))
+
+ sc.l.Lock()
+ sc.cache[t] = sd
+ sc.l.Unlock()
+
+ return sd, nil
+}
+
+// dominantField looks through the fields, all of which are known to
+// have the same name, to find the single field that dominates the
+// others using Go's inlining rules. If there are multiple top-level
+// fields, the boolean will be false: This condition is an error in Go
+// and we skip all the fields.
+func dominantField(fields []fieldDescription) (fieldDescription, bool) {
+ // The fields are sorted in increasing index-length order, then by presence of tag.
+ // That means that the first field is the dominant one. We need only check
+ // for error cases: two fields at top level.
+ if len(fields) > 1 &&
+ len(fields[0].inline) == len(fields[1].inline) {
+ return fieldDescription{}, false
+ }
+ return fields[0], true
+}
+
+func fieldByIndexErr(v reflect.Value, index []int) (result reflect.Value, err error) {
+ defer func() {
+ if recovered := recover(); recovered != nil {
+ switch r := recovered.(type) {
+ case string:
+ err = fmt.Errorf("%s", r)
+ case error:
+ err = r
+ }
+ }
+ }()
+
+ result = v.FieldByIndex(index)
+ return
+}
+
+func getInlineField(val reflect.Value, index []int) (reflect.Value, error) {
+ field, err := fieldByIndexErr(val, index)
+ if err == nil {
+ return field, nil
+ }
+
+ // if parent of this element doesn't exist, fix its parent
+ inlineParent := index[:len(index)-1]
+ var fParent reflect.Value
+ if fParent, err = fieldByIndexErr(val, inlineParent); err != nil {
+ fParent, err = getInlineField(val, inlineParent)
+ if err != nil {
+ return fParent, err
+ }
+ }
+ fParent.Set(reflect.New(fParent.Type().Elem()))
+
+ return fieldByIndexErr(val, index)
+}
+
+// DeepZero returns recursive zero object
+func deepZero(st reflect.Type) (result reflect.Value) {
+ result = reflect.Indirect(reflect.New(st))
+
+ if result.Kind() == reflect.Struct {
+ for i := 0; i < result.NumField(); i++ {
+ if f := result.Field(i); f.Kind() == reflect.Ptr {
+ if f.CanInterface() {
+ if ft := reflect.TypeOf(f.Interface()); ft.Elem().Kind() == reflect.Struct {
+ result.Field(i).Set(recursivePointerTo(deepZero(ft.Elem())))
+ }
+ }
+ }
+ }
+ }
+
+ return
+}
+
+// recursivePointerTo calls reflect.New(v.Type) but recursively for its fields inside
+func recursivePointerTo(v reflect.Value) reflect.Value {
+ v = reflect.Indirect(v)
+ result := reflect.New(v.Type())
+ if v.Kind() == reflect.Struct {
+ for i := 0; i < v.NumField(); i++ {
+ if f := v.Field(i); f.Kind() == reflect.Ptr {
+ if f.Elem().Kind() == reflect.Struct {
+ result.Elem().Field(i).Set(recursivePointerTo(f))
+ }
+ }
+ }
+ }
+
+ return result
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_tag_parser.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_tag_parser.go
new file mode 100644
index 00000000..62708c5c
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/struct_tag_parser.go
@@ -0,0 +1,139 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "reflect"
+ "strings"
+)
+
+// StructTagParser returns the struct tags for a given struct field.
+type StructTagParser interface {
+ ParseStructTags(reflect.StructField) (StructTags, error)
+}
+
+// StructTagParserFunc is an adapter that allows a generic function to be used
+// as a StructTagParser.
+type StructTagParserFunc func(reflect.StructField) (StructTags, error)
+
+// ParseStructTags implements the StructTagParser interface.
+func (stpf StructTagParserFunc) ParseStructTags(sf reflect.StructField) (StructTags, error) {
+ return stpf(sf)
+}
+
+// StructTags represents the struct tag fields that the StructCodec uses during
+// the encoding and decoding process.
+//
+// In the case of a struct, the lowercased field name is used as the key for each exported
+// field but this behavior may be changed using a struct tag. The tag may also contain flags to
+// adjust the marshalling behavior for the field.
+//
+// The properties are defined below:
+//
+// OmitEmpty Only include the field if it's not set to the zero value for the type or to
+// empty slices or maps.
+//
+// MinSize Marshal an integer of a type larger than 32 bits value as an int32, if that's
+// feasible while preserving the numeric value.
+//
+// Truncate When unmarshaling a BSON double, it is permitted to lose precision to fit within
+// a float32.
+//
+// Inline Inline the field, which must be a struct or a map, causing all of its fields
+// or keys to be processed as if they were part of the outer struct. For maps,
+// keys must not conflict with the bson keys of other struct fields.
+//
+// Skip This struct field should be skipped. This is usually denoted by parsing a "-"
+// for the name.
+//
+// TODO(skriptble): Add tags for undefined as nil and for null as nil.
+type StructTags struct {
+ Name string
+ OmitEmpty bool
+ MinSize bool
+ Truncate bool
+ Inline bool
+ Skip bool
+}
+
+// DefaultStructTagParser is the StructTagParser used by the StructCodec by default.
+// It will handle the bson struct tag. See the documentation for StructTags to see
+// what each of the returned fields means.
+//
+// If there is no name in the struct tag fields, the struct field name is lowercased.
+// The tag formats accepted are:
+//
+// "[][,[,]]"
+//
+// `(...) bson:"[][,[,]]" (...)`
+//
+// An example:
+//
+// type T struct {
+// A bool
+// B int "myb"
+// C string "myc,omitempty"
+// D string `bson:",omitempty" json:"jsonkey"`
+// E int64 ",minsize"
+// F int64 "myf,omitempty,minsize"
+// }
+//
+// A struct tag either consisting entirely of '-' or with a bson key with a
+// value consisting entirely of '-' will return a StructTags with Skip true and
+// the remaining fields will be their default values.
+var DefaultStructTagParser StructTagParserFunc = func(sf reflect.StructField) (StructTags, error) {
+ key := strings.ToLower(sf.Name)
+ tag, ok := sf.Tag.Lookup("bson")
+ if !ok && !strings.Contains(string(sf.Tag), ":") && len(sf.Tag) > 0 {
+ tag = string(sf.Tag)
+ }
+ return parseTags(key, tag)
+}
+
+func parseTags(key string, tag string) (StructTags, error) {
+ var st StructTags
+ if tag == "-" {
+ st.Skip = true
+ return st, nil
+ }
+
+ for idx, str := range strings.Split(tag, ",") {
+ if idx == 0 && str != "" {
+ key = str
+ }
+ switch str {
+ case "omitempty":
+ st.OmitEmpty = true
+ case "minsize":
+ st.MinSize = true
+ case "truncate":
+ st.Truncate = true
+ case "inline":
+ st.Inline = true
+ }
+ }
+
+ st.Name = key
+
+ return st, nil
+}
+
+// JSONFallbackStructTagParser has the same behavior as DefaultStructTagParser
+// but will also fallback to parsing the json tag instead on a field where the
+// bson tag isn't available.
+var JSONFallbackStructTagParser StructTagParserFunc = func(sf reflect.StructField) (StructTags, error) {
+ key := strings.ToLower(sf.Name)
+ tag, ok := sf.Tag.Lookup("bson")
+ if !ok {
+ tag, ok = sf.Tag.Lookup("json")
+ }
+ if !ok && !strings.Contains(string(sf.Tag), ":") && len(sf.Tag) > 0 {
+ tag = string(sf.Tag)
+ }
+
+ return parseTags(key, tag)
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/time_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/time_codec.go
new file mode 100644
index 00000000..ec7e30f7
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/time_codec.go
@@ -0,0 +1,127 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "fmt"
+ "reflect"
+ "time"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+const (
+ timeFormatString = "2006-01-02T15:04:05.999Z07:00"
+)
+
+// TimeCodec is the Codec used for time.Time values.
+type TimeCodec struct {
+ UseLocalTimeZone bool
+}
+
+var (
+ defaultTimeCodec = NewTimeCodec()
+
+ _ ValueCodec = defaultTimeCodec
+ _ typeDecoder = defaultTimeCodec
+)
+
+// NewTimeCodec returns a TimeCodec with options opts.
+func NewTimeCodec(opts ...*bsonoptions.TimeCodecOptions) *TimeCodec {
+ timeOpt := bsonoptions.MergeTimeCodecOptions(opts...)
+
+ codec := TimeCodec{}
+ if timeOpt.UseLocalTimeZone != nil {
+ codec.UseLocalTimeZone = *timeOpt.UseLocalTimeZone
+ }
+ return &codec
+}
+
+func (tc *TimeCodec) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ if t != tTime {
+ return emptyValue, ValueDecoderError{
+ Name: "TimeDecodeValue",
+ Types: []reflect.Type{tTime},
+ Received: reflect.Zero(t),
+ }
+ }
+
+ var timeVal time.Time
+ switch vrType := vr.Type(); vrType {
+ case bsontype.DateTime:
+ dt, err := vr.ReadDateTime()
+ if err != nil {
+ return emptyValue, err
+ }
+ timeVal = time.Unix(dt/1000, dt%1000*1000000)
+ case bsontype.String:
+ // assume strings are in the isoTimeFormat
+ timeStr, err := vr.ReadString()
+ if err != nil {
+ return emptyValue, err
+ }
+ timeVal, err = time.Parse(timeFormatString, timeStr)
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Int64:
+ i64, err := vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ timeVal = time.Unix(i64/1000, i64%1000*1000000)
+ case bsontype.Timestamp:
+ t, _, err := vr.ReadTimestamp()
+ if err != nil {
+ return emptyValue, err
+ }
+ timeVal = time.Unix(int64(t), 0)
+ case bsontype.Null:
+ if err := vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err := vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into a time.Time", vrType)
+ }
+
+ if !tc.UseLocalTimeZone {
+ timeVal = timeVal.UTC()
+ }
+ return reflect.ValueOf(timeVal), nil
+}
+
+// DecodeValue is the ValueDecoderFunc for time.Time.
+func (tc *TimeCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() || val.Type() != tTime {
+ return ValueDecoderError{Name: "TimeDecodeValue", Types: []reflect.Type{tTime}, Received: val}
+ }
+
+ elem, err := tc.decodeType(dc, vr, tTime)
+ if err != nil {
+ return err
+ }
+
+ val.Set(elem)
+ return nil
+}
+
+// EncodeValue is the ValueEncoderFunc for time.TIme.
+func (tc *TimeCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ if !val.IsValid() || val.Type() != tTime {
+ return ValueEncoderError{Name: "TimeEncodeValue", Types: []reflect.Type{tTime}, Received: val}
+ }
+ tt := val.Interface().(time.Time)
+ dt := primitive.NewDateTimeFromTime(tt)
+ return vw.WriteDateTime(int64(dt))
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/types.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/types.go
new file mode 100644
index 00000000..07f4b70e
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/types.go
@@ -0,0 +1,57 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "encoding/json"
+ "net/url"
+ "reflect"
+ "time"
+
+ "go.mongodb.org/mongo-driver/bson/primitive"
+ "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
+)
+
+var tBool = reflect.TypeOf(false)
+var tFloat64 = reflect.TypeOf(float64(0))
+var tInt32 = reflect.TypeOf(int32(0))
+var tInt64 = reflect.TypeOf(int64(0))
+var tString = reflect.TypeOf("")
+var tTime = reflect.TypeOf(time.Time{})
+
+var tEmpty = reflect.TypeOf((*interface{})(nil)).Elem()
+var tByteSlice = reflect.TypeOf([]byte(nil))
+var tByte = reflect.TypeOf(byte(0x00))
+var tURL = reflect.TypeOf(url.URL{})
+var tJSONNumber = reflect.TypeOf(json.Number(""))
+
+var tValueMarshaler = reflect.TypeOf((*ValueMarshaler)(nil)).Elem()
+var tValueUnmarshaler = reflect.TypeOf((*ValueUnmarshaler)(nil)).Elem()
+var tMarshaler = reflect.TypeOf((*Marshaler)(nil)).Elem()
+var tUnmarshaler = reflect.TypeOf((*Unmarshaler)(nil)).Elem()
+var tProxy = reflect.TypeOf((*Proxy)(nil)).Elem()
+
+var tBinary = reflect.TypeOf(primitive.Binary{})
+var tUndefined = reflect.TypeOf(primitive.Undefined{})
+var tOID = reflect.TypeOf(primitive.ObjectID{})
+var tDateTime = reflect.TypeOf(primitive.DateTime(0))
+var tNull = reflect.TypeOf(primitive.Null{})
+var tRegex = reflect.TypeOf(primitive.Regex{})
+var tCodeWithScope = reflect.TypeOf(primitive.CodeWithScope{})
+var tDBPointer = reflect.TypeOf(primitive.DBPointer{})
+var tJavaScript = reflect.TypeOf(primitive.JavaScript(""))
+var tSymbol = reflect.TypeOf(primitive.Symbol(""))
+var tTimestamp = reflect.TypeOf(primitive.Timestamp{})
+var tDecimal = reflect.TypeOf(primitive.Decimal128{})
+var tMinKey = reflect.TypeOf(primitive.MinKey{})
+var tMaxKey = reflect.TypeOf(primitive.MaxKey{})
+var tD = reflect.TypeOf(primitive.D{})
+var tA = reflect.TypeOf(primitive.A{})
+var tE = reflect.TypeOf(primitive.E{})
+
+var tCoreDocument = reflect.TypeOf(bsoncore.Document{})
+var tCoreArray = reflect.TypeOf(bsoncore.Array{})
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/uint_codec.go b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/uint_codec.go
new file mode 100644
index 00000000..0b21ce99
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsoncodec/uint_codec.go
@@ -0,0 +1,173 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsoncodec
+
+import (
+ "fmt"
+ "math"
+ "reflect"
+
+ "go.mongodb.org/mongo-driver/bson/bsonoptions"
+ "go.mongodb.org/mongo-driver/bson/bsonrw"
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+// UIntCodec is the Codec used for uint values.
+type UIntCodec struct {
+ EncodeToMinSize bool
+}
+
+var (
+ defaultUIntCodec = NewUIntCodec()
+
+ _ ValueCodec = defaultUIntCodec
+ _ typeDecoder = defaultUIntCodec
+)
+
+// NewUIntCodec returns a UIntCodec with options opts.
+func NewUIntCodec(opts ...*bsonoptions.UIntCodecOptions) *UIntCodec {
+ uintOpt := bsonoptions.MergeUIntCodecOptions(opts...)
+
+ codec := UIntCodec{}
+ if uintOpt.EncodeToMinSize != nil {
+ codec.EncodeToMinSize = *uintOpt.EncodeToMinSize
+ }
+ return &codec
+}
+
+// EncodeValue is the ValueEncoder for uint types.
+func (uic *UIntCodec) EncodeValue(ec EncodeContext, vw bsonrw.ValueWriter, val reflect.Value) error {
+ switch val.Kind() {
+ case reflect.Uint8, reflect.Uint16:
+ return vw.WriteInt32(int32(val.Uint()))
+ case reflect.Uint, reflect.Uint32, reflect.Uint64:
+ u64 := val.Uint()
+
+ // If ec.MinSize or if encodeToMinSize is true for a non-uint64 value we should write val as an int32
+ useMinSize := ec.MinSize || (uic.EncodeToMinSize && val.Kind() != reflect.Uint64)
+
+ if u64 <= math.MaxInt32 && useMinSize {
+ return vw.WriteInt32(int32(u64))
+ }
+ if u64 > math.MaxInt64 {
+ return fmt.Errorf("%d overflows int64", u64)
+ }
+ return vw.WriteInt64(int64(u64))
+ }
+
+ return ValueEncoderError{
+ Name: "UintEncodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: val,
+ }
+}
+
+func (uic *UIntCodec) decodeType(dc DecodeContext, vr bsonrw.ValueReader, t reflect.Type) (reflect.Value, error) {
+ var i64 int64
+ var err error
+ switch vrType := vr.Type(); vrType {
+ case bsontype.Int32:
+ i32, err := vr.ReadInt32()
+ if err != nil {
+ return emptyValue, err
+ }
+ i64 = int64(i32)
+ case bsontype.Int64:
+ i64, err = vr.ReadInt64()
+ if err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Double:
+ f64, err := vr.ReadDouble()
+ if err != nil {
+ return emptyValue, err
+ }
+ if !dc.Truncate && math.Floor(f64) != f64 {
+ return emptyValue, errCannotTruncate
+ }
+ if f64 > float64(math.MaxInt64) {
+ return emptyValue, fmt.Errorf("%g overflows int64", f64)
+ }
+ i64 = int64(f64)
+ case bsontype.Boolean:
+ b, err := vr.ReadBoolean()
+ if err != nil {
+ return emptyValue, err
+ }
+ if b {
+ i64 = 1
+ }
+ case bsontype.Null:
+ if err = vr.ReadNull(); err != nil {
+ return emptyValue, err
+ }
+ case bsontype.Undefined:
+ if err = vr.ReadUndefined(); err != nil {
+ return emptyValue, err
+ }
+ default:
+ return emptyValue, fmt.Errorf("cannot decode %v into an integer type", vrType)
+ }
+
+ switch t.Kind() {
+ case reflect.Uint8:
+ if i64 < 0 || i64 > math.MaxUint8 {
+ return emptyValue, fmt.Errorf("%d overflows uint8", i64)
+ }
+
+ return reflect.ValueOf(uint8(i64)), nil
+ case reflect.Uint16:
+ if i64 < 0 || i64 > math.MaxUint16 {
+ return emptyValue, fmt.Errorf("%d overflows uint16", i64)
+ }
+
+ return reflect.ValueOf(uint16(i64)), nil
+ case reflect.Uint32:
+ if i64 < 0 || i64 > math.MaxUint32 {
+ return emptyValue, fmt.Errorf("%d overflows uint32", i64)
+ }
+
+ return reflect.ValueOf(uint32(i64)), nil
+ case reflect.Uint64:
+ if i64 < 0 {
+ return emptyValue, fmt.Errorf("%d overflows uint64", i64)
+ }
+
+ return reflect.ValueOf(uint64(i64)), nil
+ case reflect.Uint:
+ if i64 < 0 || int64(uint(i64)) != i64 { // Can we fit this inside of an uint
+ return emptyValue, fmt.Errorf("%d overflows uint", i64)
+ }
+
+ return reflect.ValueOf(uint(i64)), nil
+ default:
+ return emptyValue, ValueDecoderError{
+ Name: "UintDecodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: reflect.Zero(t),
+ }
+ }
+}
+
+// DecodeValue is the ValueDecoder for uint types.
+func (uic *UIntCodec) DecodeValue(dc DecodeContext, vr bsonrw.ValueReader, val reflect.Value) error {
+ if !val.CanSet() {
+ return ValueDecoderError{
+ Name: "UintDecodeValue",
+ Kinds: []reflect.Kind{reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint},
+ Received: val,
+ }
+ }
+
+ elem, err := uic.decodeType(dc, vr, val.Type())
+ if err != nil {
+ return err
+ }
+
+ val.SetUint(elem.Uint())
+ return nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/byte_slice_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/byte_slice_codec_options.go
new file mode 100644
index 00000000..b1256a4d
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/byte_slice_codec_options.go
@@ -0,0 +1,38 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// ByteSliceCodecOptions represents all possible options for byte slice encoding and decoding.
+type ByteSliceCodecOptions struct {
+ EncodeNilAsEmpty *bool // Specifies if a nil byte slice should encode as an empty binary instead of null. Defaults to false.
+}
+
+// ByteSliceCodec creates a new *ByteSliceCodecOptions
+func ByteSliceCodec() *ByteSliceCodecOptions {
+ return &ByteSliceCodecOptions{}
+}
+
+// SetEncodeNilAsEmpty specifies if a nil byte slice should encode as an empty binary instead of null. Defaults to false.
+func (bs *ByteSliceCodecOptions) SetEncodeNilAsEmpty(b bool) *ByteSliceCodecOptions {
+ bs.EncodeNilAsEmpty = &b
+ return bs
+}
+
+// MergeByteSliceCodecOptions combines the given *ByteSliceCodecOptions into a single *ByteSliceCodecOptions in a last one wins fashion.
+func MergeByteSliceCodecOptions(opts ...*ByteSliceCodecOptions) *ByteSliceCodecOptions {
+ bs := ByteSliceCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.EncodeNilAsEmpty != nil {
+ bs.EncodeNilAsEmpty = opt.EncodeNilAsEmpty
+ }
+ }
+
+ return bs
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/doc.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/doc.go
new file mode 100644
index 00000000..c40973c8
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/doc.go
@@ -0,0 +1,8 @@
+// Copyright (C) MongoDB, Inc. 2022-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+// Package bsonoptions defines the optional configurations for the BSON codecs.
+package bsonoptions
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/empty_interface_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/empty_interface_codec_options.go
new file mode 100644
index 00000000..6caaa000
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/empty_interface_codec_options.go
@@ -0,0 +1,38 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// EmptyInterfaceCodecOptions represents all possible options for interface{} encoding and decoding.
+type EmptyInterfaceCodecOptions struct {
+ DecodeBinaryAsSlice *bool // Specifies if Old and Generic type binarys should default to []slice instead of primitive.Binary. Defaults to false.
+}
+
+// EmptyInterfaceCodec creates a new *EmptyInterfaceCodecOptions
+func EmptyInterfaceCodec() *EmptyInterfaceCodecOptions {
+ return &EmptyInterfaceCodecOptions{}
+}
+
+// SetDecodeBinaryAsSlice specifies if Old and Generic type binarys should default to []slice instead of primitive.Binary. Defaults to false.
+func (e *EmptyInterfaceCodecOptions) SetDecodeBinaryAsSlice(b bool) *EmptyInterfaceCodecOptions {
+ e.DecodeBinaryAsSlice = &b
+ return e
+}
+
+// MergeEmptyInterfaceCodecOptions combines the given *EmptyInterfaceCodecOptions into a single *EmptyInterfaceCodecOptions in a last one wins fashion.
+func MergeEmptyInterfaceCodecOptions(opts ...*EmptyInterfaceCodecOptions) *EmptyInterfaceCodecOptions {
+ e := EmptyInterfaceCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.DecodeBinaryAsSlice != nil {
+ e.DecodeBinaryAsSlice = opt.DecodeBinaryAsSlice
+ }
+ }
+
+ return e
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/map_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/map_codec_options.go
new file mode 100644
index 00000000..7a6a880b
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/map_codec_options.go
@@ -0,0 +1,67 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// MapCodecOptions represents all possible options for map encoding and decoding.
+type MapCodecOptions struct {
+ DecodeZerosMap *bool // Specifies if the map should be zeroed before decoding into it. Defaults to false.
+ EncodeNilAsEmpty *bool // Specifies if a nil map should encode as an empty document instead of null. Defaults to false.
+ // Specifies how keys should be handled. If false, the behavior matches encoding/json, where the encoding key type must
+ // either be a string, an integer type, or implement bsoncodec.KeyMarshaler and the decoding key type must either be a
+ // string, an integer type, or implement bsoncodec.KeyUnmarshaler. If true, keys are encoded with fmt.Sprint() and the
+ // encoding key type must be a string, an integer type, or a float. If true, the use of Stringer will override
+ // TextMarshaler/TextUnmarshaler. Defaults to false.
+ EncodeKeysWithStringer *bool
+}
+
+// MapCodec creates a new *MapCodecOptions
+func MapCodec() *MapCodecOptions {
+ return &MapCodecOptions{}
+}
+
+// SetDecodeZerosMap specifies if the map should be zeroed before decoding into it. Defaults to false.
+func (t *MapCodecOptions) SetDecodeZerosMap(b bool) *MapCodecOptions {
+ t.DecodeZerosMap = &b
+ return t
+}
+
+// SetEncodeNilAsEmpty specifies if a nil map should encode as an empty document instead of null. Defaults to false.
+func (t *MapCodecOptions) SetEncodeNilAsEmpty(b bool) *MapCodecOptions {
+ t.EncodeNilAsEmpty = &b
+ return t
+}
+
+// SetEncodeKeysWithStringer specifies how keys should be handled. If false, the behavior matches encoding/json, where the
+// encoding key type must either be a string, an integer type, or implement bsoncodec.KeyMarshaler and the decoding key
+// type must either be a string, an integer type, or implement bsoncodec.KeyUnmarshaler. If true, keys are encoded with
+// fmt.Sprint() and the encoding key type must be a string, an integer type, or a float. If true, the use of Stringer
+// will override TextMarshaler/TextUnmarshaler. Defaults to false.
+func (t *MapCodecOptions) SetEncodeKeysWithStringer(b bool) *MapCodecOptions {
+ t.EncodeKeysWithStringer = &b
+ return t
+}
+
+// MergeMapCodecOptions combines the given *MapCodecOptions into a single *MapCodecOptions in a last one wins fashion.
+func MergeMapCodecOptions(opts ...*MapCodecOptions) *MapCodecOptions {
+ s := MapCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.DecodeZerosMap != nil {
+ s.DecodeZerosMap = opt.DecodeZerosMap
+ }
+ if opt.EncodeNilAsEmpty != nil {
+ s.EncodeNilAsEmpty = opt.EncodeNilAsEmpty
+ }
+ if opt.EncodeKeysWithStringer != nil {
+ s.EncodeKeysWithStringer = opt.EncodeKeysWithStringer
+ }
+ }
+
+ return s
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/slice_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/slice_codec_options.go
new file mode 100644
index 00000000..ef965e4b
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/slice_codec_options.go
@@ -0,0 +1,38 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// SliceCodecOptions represents all possible options for slice encoding and decoding.
+type SliceCodecOptions struct {
+ EncodeNilAsEmpty *bool // Specifies if a nil slice should encode as an empty array instead of null. Defaults to false.
+}
+
+// SliceCodec creates a new *SliceCodecOptions
+func SliceCodec() *SliceCodecOptions {
+ return &SliceCodecOptions{}
+}
+
+// SetEncodeNilAsEmpty specifies if a nil slice should encode as an empty array instead of null. Defaults to false.
+func (s *SliceCodecOptions) SetEncodeNilAsEmpty(b bool) *SliceCodecOptions {
+ s.EncodeNilAsEmpty = &b
+ return s
+}
+
+// MergeSliceCodecOptions combines the given *SliceCodecOptions into a single *SliceCodecOptions in a last one wins fashion.
+func MergeSliceCodecOptions(opts ...*SliceCodecOptions) *SliceCodecOptions {
+ s := SliceCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.EncodeNilAsEmpty != nil {
+ s.EncodeNilAsEmpty = opt.EncodeNilAsEmpty
+ }
+ }
+
+ return s
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/string_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/string_codec_options.go
new file mode 100644
index 00000000..65964f42
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/string_codec_options.go
@@ -0,0 +1,41 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+var defaultDecodeOIDAsHex = true
+
+// StringCodecOptions represents all possible options for string encoding and decoding.
+type StringCodecOptions struct {
+ DecodeObjectIDAsHex *bool // Specifies if we should decode ObjectID as the hex value. Defaults to true.
+}
+
+// StringCodec creates a new *StringCodecOptions
+func StringCodec() *StringCodecOptions {
+ return &StringCodecOptions{}
+}
+
+// SetDecodeObjectIDAsHex specifies if object IDs should be decoded as their hex representation. If false, a string made
+// from the raw object ID bytes will be used. Defaults to true.
+func (t *StringCodecOptions) SetDecodeObjectIDAsHex(b bool) *StringCodecOptions {
+ t.DecodeObjectIDAsHex = &b
+ return t
+}
+
+// MergeStringCodecOptions combines the given *StringCodecOptions into a single *StringCodecOptions in a last one wins fashion.
+func MergeStringCodecOptions(opts ...*StringCodecOptions) *StringCodecOptions {
+ s := &StringCodecOptions{&defaultDecodeOIDAsHex}
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.DecodeObjectIDAsHex != nil {
+ s.DecodeObjectIDAsHex = opt.DecodeObjectIDAsHex
+ }
+ }
+
+ return s
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/struct_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/struct_codec_options.go
new file mode 100644
index 00000000..78d1dd86
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/struct_codec_options.go
@@ -0,0 +1,87 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+var defaultOverwriteDuplicatedInlinedFields = true
+
+// StructCodecOptions represents all possible options for struct encoding and decoding.
+type StructCodecOptions struct {
+ DecodeZeroStruct *bool // Specifies if structs should be zeroed before decoding into them. Defaults to false.
+ DecodeDeepZeroInline *bool // Specifies if structs should be recursively zeroed when a inline value is decoded. Defaults to false.
+ EncodeOmitDefaultStruct *bool // Specifies if default structs should be considered empty by omitempty. Defaults to false.
+ AllowUnexportedFields *bool // Specifies if unexported fields should be marshaled/unmarshaled. Defaults to false.
+ OverwriteDuplicatedInlinedFields *bool // Specifies if fields in inlined structs can be overwritten by higher level struct fields with the same key. Defaults to true.
+}
+
+// StructCodec creates a new *StructCodecOptions
+func StructCodec() *StructCodecOptions {
+ return &StructCodecOptions{}
+}
+
+// SetDecodeZeroStruct specifies if structs should be zeroed before decoding into them. Defaults to false.
+func (t *StructCodecOptions) SetDecodeZeroStruct(b bool) *StructCodecOptions {
+ t.DecodeZeroStruct = &b
+ return t
+}
+
+// SetDecodeDeepZeroInline specifies if structs should be zeroed before decoding into them. Defaults to false.
+func (t *StructCodecOptions) SetDecodeDeepZeroInline(b bool) *StructCodecOptions {
+ t.DecodeDeepZeroInline = &b
+ return t
+}
+
+// SetEncodeOmitDefaultStruct specifies if default structs should be considered empty by omitempty. A default struct has all
+// its values set to their default value. Defaults to false.
+func (t *StructCodecOptions) SetEncodeOmitDefaultStruct(b bool) *StructCodecOptions {
+ t.EncodeOmitDefaultStruct = &b
+ return t
+}
+
+// SetOverwriteDuplicatedInlinedFields specifies if inlined struct fields can be overwritten by higher level struct fields with the
+// same bson key. When true and decoding, values will be written to the outermost struct with a matching key, and when
+// encoding, keys will have the value of the top-most matching field. When false, decoding and encoding will error if
+// there are duplicate keys after the struct is inlined. Defaults to true.
+func (t *StructCodecOptions) SetOverwriteDuplicatedInlinedFields(b bool) *StructCodecOptions {
+ t.OverwriteDuplicatedInlinedFields = &b
+ return t
+}
+
+// SetAllowUnexportedFields specifies if unexported fields should be marshaled/unmarshaled. Defaults to false.
+func (t *StructCodecOptions) SetAllowUnexportedFields(b bool) *StructCodecOptions {
+ t.AllowUnexportedFields = &b
+ return t
+}
+
+// MergeStructCodecOptions combines the given *StructCodecOptions into a single *StructCodecOptions in a last one wins fashion.
+func MergeStructCodecOptions(opts ...*StructCodecOptions) *StructCodecOptions {
+ s := &StructCodecOptions{
+ OverwriteDuplicatedInlinedFields: &defaultOverwriteDuplicatedInlinedFields,
+ }
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+
+ if opt.DecodeZeroStruct != nil {
+ s.DecodeZeroStruct = opt.DecodeZeroStruct
+ }
+ if opt.DecodeDeepZeroInline != nil {
+ s.DecodeDeepZeroInline = opt.DecodeDeepZeroInline
+ }
+ if opt.EncodeOmitDefaultStruct != nil {
+ s.EncodeOmitDefaultStruct = opt.EncodeOmitDefaultStruct
+ }
+ if opt.OverwriteDuplicatedInlinedFields != nil {
+ s.OverwriteDuplicatedInlinedFields = opt.OverwriteDuplicatedInlinedFields
+ }
+ if opt.AllowUnexportedFields != nil {
+ s.AllowUnexportedFields = opt.AllowUnexportedFields
+ }
+ }
+
+ return s
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/time_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/time_codec_options.go
new file mode 100644
index 00000000..13496d12
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/time_codec_options.go
@@ -0,0 +1,38 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// TimeCodecOptions represents all possible options for time.Time encoding and decoding.
+type TimeCodecOptions struct {
+ UseLocalTimeZone *bool // Specifies if we should decode into the local time zone. Defaults to false.
+}
+
+// TimeCodec creates a new *TimeCodecOptions
+func TimeCodec() *TimeCodecOptions {
+ return &TimeCodecOptions{}
+}
+
+// SetUseLocalTimeZone specifies if we should decode into the local time zone. Defaults to false.
+func (t *TimeCodecOptions) SetUseLocalTimeZone(b bool) *TimeCodecOptions {
+ t.UseLocalTimeZone = &b
+ return t
+}
+
+// MergeTimeCodecOptions combines the given *TimeCodecOptions into a single *TimeCodecOptions in a last one wins fashion.
+func MergeTimeCodecOptions(opts ...*TimeCodecOptions) *TimeCodecOptions {
+ t := TimeCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.UseLocalTimeZone != nil {
+ t.UseLocalTimeZone = opt.UseLocalTimeZone
+ }
+ }
+
+ return t
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/uint_codec_options.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/uint_codec_options.go
new file mode 100644
index 00000000..e08b7f19
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonoptions/uint_codec_options.go
@@ -0,0 +1,38 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonoptions
+
+// UIntCodecOptions represents all possible options for uint encoding and decoding.
+type UIntCodecOptions struct {
+ EncodeToMinSize *bool // Specifies if all uints except uint64 should be decoded to minimum size bsontype. Defaults to false.
+}
+
+// UIntCodec creates a new *UIntCodecOptions
+func UIntCodec() *UIntCodecOptions {
+ return &UIntCodecOptions{}
+}
+
+// SetEncodeToMinSize specifies if all uints except uint64 should be decoded to minimum size bsontype. Defaults to false.
+func (u *UIntCodecOptions) SetEncodeToMinSize(b bool) *UIntCodecOptions {
+ u.EncodeToMinSize = &b
+ return u
+}
+
+// MergeUIntCodecOptions combines the given *UIntCodecOptions into a single *UIntCodecOptions in a last one wins fashion.
+func MergeUIntCodecOptions(opts ...*UIntCodecOptions) *UIntCodecOptions {
+ u := UIntCodec()
+ for _, opt := range opts {
+ if opt == nil {
+ continue
+ }
+ if opt.EncodeToMinSize != nil {
+ u.EncodeToMinSize = opt.EncodeToMinSize
+ }
+ }
+
+ return u
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/copier.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/copier.go
new file mode 100644
index 00000000..5cdf6460
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/copier.go
@@ -0,0 +1,445 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonrw
+
+import (
+ "fmt"
+ "io"
+
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+ "go.mongodb.org/mongo-driver/x/bsonx/bsoncore"
+)
+
+// Copier is a type that allows copying between ValueReaders, ValueWriters, and
+// []byte values.
+type Copier struct{}
+
+// NewCopier creates a new copier with the given registry. If a nil registry is provided
+// a default registry is used.
+func NewCopier() Copier {
+ return Copier{}
+}
+
+// CopyDocument handles copying a document from src to dst.
+func CopyDocument(dst ValueWriter, src ValueReader) error {
+ return Copier{}.CopyDocument(dst, src)
+}
+
+// CopyDocument handles copying one document from the src to the dst.
+func (c Copier) CopyDocument(dst ValueWriter, src ValueReader) error {
+ dr, err := src.ReadDocument()
+ if err != nil {
+ return err
+ }
+
+ dw, err := dst.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ return c.copyDocumentCore(dw, dr)
+}
+
+// CopyArrayFromBytes copies the values from a BSON array represented as a
+// []byte to a ValueWriter.
+func (c Copier) CopyArrayFromBytes(dst ValueWriter, src []byte) error {
+ aw, err := dst.WriteArray()
+ if err != nil {
+ return err
+ }
+
+ err = c.CopyBytesToArrayWriter(aw, src)
+ if err != nil {
+ return err
+ }
+
+ return aw.WriteArrayEnd()
+}
+
+// CopyDocumentFromBytes copies the values from a BSON document represented as a
+// []byte to a ValueWriter.
+func (c Copier) CopyDocumentFromBytes(dst ValueWriter, src []byte) error {
+ dw, err := dst.WriteDocument()
+ if err != nil {
+ return err
+ }
+
+ err = c.CopyBytesToDocumentWriter(dw, src)
+ if err != nil {
+ return err
+ }
+
+ return dw.WriteDocumentEnd()
+}
+
+type writeElementFn func(key string) (ValueWriter, error)
+
+// CopyBytesToArrayWriter copies the values from a BSON Array represented as a []byte to an
+// ArrayWriter.
+func (c Copier) CopyBytesToArrayWriter(dst ArrayWriter, src []byte) error {
+ wef := func(_ string) (ValueWriter, error) {
+ return dst.WriteArrayElement()
+ }
+
+ return c.copyBytesToValueWriter(src, wef)
+}
+
+// CopyBytesToDocumentWriter copies the values from a BSON document represented as a []byte to a
+// DocumentWriter.
+func (c Copier) CopyBytesToDocumentWriter(dst DocumentWriter, src []byte) error {
+ wef := func(key string) (ValueWriter, error) {
+ return dst.WriteDocumentElement(key)
+ }
+
+ return c.copyBytesToValueWriter(src, wef)
+}
+
+func (c Copier) copyBytesToValueWriter(src []byte, wef writeElementFn) error {
+ // TODO(skriptble): Create errors types here. Anything thats a tag should be a property.
+ length, rem, ok := bsoncore.ReadLength(src)
+ if !ok {
+ return fmt.Errorf("couldn't read length from src, not enough bytes. length=%d", len(src))
+ }
+ if len(src) < int(length) {
+ return fmt.Errorf("length read exceeds number of bytes available. length=%d bytes=%d", len(src), length)
+ }
+ rem = rem[:length-4]
+
+ var t bsontype.Type
+ var key string
+ var val bsoncore.Value
+ for {
+ t, rem, ok = bsoncore.ReadType(rem)
+ if !ok {
+ return io.EOF
+ }
+ if t == bsontype.Type(0) {
+ if len(rem) != 0 {
+ return fmt.Errorf("document end byte found before end of document. remaining bytes=%v", rem)
+ }
+ break
+ }
+
+ key, rem, ok = bsoncore.ReadKey(rem)
+ if !ok {
+ return fmt.Errorf("invalid key found. remaining bytes=%v", rem)
+ }
+
+ // write as either array element or document element using writeElementFn
+ vw, err := wef(key)
+ if err != nil {
+ return err
+ }
+
+ val, rem, ok = bsoncore.ReadValue(rem, t)
+ if !ok {
+ return fmt.Errorf("not enough bytes available to read type. bytes=%d type=%s", len(rem), t)
+ }
+ err = c.CopyValueFromBytes(vw, t, val.Data)
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+// CopyDocumentToBytes copies an entire document from the ValueReader and
+// returns it as bytes.
+func (c Copier) CopyDocumentToBytes(src ValueReader) ([]byte, error) {
+ return c.AppendDocumentBytes(nil, src)
+}
+
+// AppendDocumentBytes functions the same as CopyDocumentToBytes, but will
+// append the result to dst.
+func (c Copier) AppendDocumentBytes(dst []byte, src ValueReader) ([]byte, error) {
+ if br, ok := src.(BytesReader); ok {
+ _, dst, err := br.ReadValueBytes(dst)
+ return dst, err
+ }
+
+ vw := vwPool.Get().(*valueWriter)
+ defer vwPool.Put(vw)
+
+ vw.reset(dst)
+
+ err := c.CopyDocument(vw, src)
+ dst = vw.buf
+ return dst, err
+}
+
+// AppendArrayBytes copies an array from the ValueReader to dst.
+func (c Copier) AppendArrayBytes(dst []byte, src ValueReader) ([]byte, error) {
+ if br, ok := src.(BytesReader); ok {
+ _, dst, err := br.ReadValueBytes(dst)
+ return dst, err
+ }
+
+ vw := vwPool.Get().(*valueWriter)
+ defer vwPool.Put(vw)
+
+ vw.reset(dst)
+
+ err := c.copyArray(vw, src)
+ dst = vw.buf
+ return dst, err
+}
+
+// CopyValueFromBytes will write the value represtend by t and src to dst.
+func (c Copier) CopyValueFromBytes(dst ValueWriter, t bsontype.Type, src []byte) error {
+ if wvb, ok := dst.(BytesWriter); ok {
+ return wvb.WriteValueBytes(t, src)
+ }
+
+ vr := vrPool.Get().(*valueReader)
+ defer vrPool.Put(vr)
+
+ vr.reset(src)
+ vr.pushElement(t)
+
+ return c.CopyValue(dst, vr)
+}
+
+// CopyValueToBytes copies a value from src and returns it as a bsontype.Type and a
+// []byte.
+func (c Copier) CopyValueToBytes(src ValueReader) (bsontype.Type, []byte, error) {
+ return c.AppendValueBytes(nil, src)
+}
+
+// AppendValueBytes functions the same as CopyValueToBytes, but will append the
+// result to dst.
+func (c Copier) AppendValueBytes(dst []byte, src ValueReader) (bsontype.Type, []byte, error) {
+ if br, ok := src.(BytesReader); ok {
+ return br.ReadValueBytes(dst)
+ }
+
+ vw := vwPool.Get().(*valueWriter)
+ defer vwPool.Put(vw)
+
+ start := len(dst)
+
+ vw.reset(dst)
+ vw.push(mElement)
+
+ err := c.CopyValue(vw, src)
+ if err != nil {
+ return 0, dst, err
+ }
+
+ return bsontype.Type(vw.buf[start]), vw.buf[start+2:], nil
+}
+
+// CopyValue will copy a single value from src to dst.
+func (c Copier) CopyValue(dst ValueWriter, src ValueReader) error {
+ var err error
+ switch src.Type() {
+ case bsontype.Double:
+ var f64 float64
+ f64, err = src.ReadDouble()
+ if err != nil {
+ break
+ }
+ err = dst.WriteDouble(f64)
+ case bsontype.String:
+ var str string
+ str, err = src.ReadString()
+ if err != nil {
+ return err
+ }
+ err = dst.WriteString(str)
+ case bsontype.EmbeddedDocument:
+ err = c.CopyDocument(dst, src)
+ case bsontype.Array:
+ err = c.copyArray(dst, src)
+ case bsontype.Binary:
+ var data []byte
+ var subtype byte
+ data, subtype, err = src.ReadBinary()
+ if err != nil {
+ break
+ }
+ err = dst.WriteBinaryWithSubtype(data, subtype)
+ case bsontype.Undefined:
+ err = src.ReadUndefined()
+ if err != nil {
+ break
+ }
+ err = dst.WriteUndefined()
+ case bsontype.ObjectID:
+ var oid primitive.ObjectID
+ oid, err = src.ReadObjectID()
+ if err != nil {
+ break
+ }
+ err = dst.WriteObjectID(oid)
+ case bsontype.Boolean:
+ var b bool
+ b, err = src.ReadBoolean()
+ if err != nil {
+ break
+ }
+ err = dst.WriteBoolean(b)
+ case bsontype.DateTime:
+ var dt int64
+ dt, err = src.ReadDateTime()
+ if err != nil {
+ break
+ }
+ err = dst.WriteDateTime(dt)
+ case bsontype.Null:
+ err = src.ReadNull()
+ if err != nil {
+ break
+ }
+ err = dst.WriteNull()
+ case bsontype.Regex:
+ var pattern, options string
+ pattern, options, err = src.ReadRegex()
+ if err != nil {
+ break
+ }
+ err = dst.WriteRegex(pattern, options)
+ case bsontype.DBPointer:
+ var ns string
+ var pointer primitive.ObjectID
+ ns, pointer, err = src.ReadDBPointer()
+ if err != nil {
+ break
+ }
+ err = dst.WriteDBPointer(ns, pointer)
+ case bsontype.JavaScript:
+ var js string
+ js, err = src.ReadJavascript()
+ if err != nil {
+ break
+ }
+ err = dst.WriteJavascript(js)
+ case bsontype.Symbol:
+ var symbol string
+ symbol, err = src.ReadSymbol()
+ if err != nil {
+ break
+ }
+ err = dst.WriteSymbol(symbol)
+ case bsontype.CodeWithScope:
+ var code string
+ var srcScope DocumentReader
+ code, srcScope, err = src.ReadCodeWithScope()
+ if err != nil {
+ break
+ }
+
+ var dstScope DocumentWriter
+ dstScope, err = dst.WriteCodeWithScope(code)
+ if err != nil {
+ break
+ }
+ err = c.copyDocumentCore(dstScope, srcScope)
+ case bsontype.Int32:
+ var i32 int32
+ i32, err = src.ReadInt32()
+ if err != nil {
+ break
+ }
+ err = dst.WriteInt32(i32)
+ case bsontype.Timestamp:
+ var t, i uint32
+ t, i, err = src.ReadTimestamp()
+ if err != nil {
+ break
+ }
+ err = dst.WriteTimestamp(t, i)
+ case bsontype.Int64:
+ var i64 int64
+ i64, err = src.ReadInt64()
+ if err != nil {
+ break
+ }
+ err = dst.WriteInt64(i64)
+ case bsontype.Decimal128:
+ var d128 primitive.Decimal128
+ d128, err = src.ReadDecimal128()
+ if err != nil {
+ break
+ }
+ err = dst.WriteDecimal128(d128)
+ case bsontype.MinKey:
+ err = src.ReadMinKey()
+ if err != nil {
+ break
+ }
+ err = dst.WriteMinKey()
+ case bsontype.MaxKey:
+ err = src.ReadMaxKey()
+ if err != nil {
+ break
+ }
+ err = dst.WriteMaxKey()
+ default:
+ err = fmt.Errorf("Cannot copy unknown BSON type %s", src.Type())
+ }
+
+ return err
+}
+
+func (c Copier) copyArray(dst ValueWriter, src ValueReader) error {
+ ar, err := src.ReadArray()
+ if err != nil {
+ return err
+ }
+
+ aw, err := dst.WriteArray()
+ if err != nil {
+ return err
+ }
+
+ for {
+ vr, err := ar.ReadValue()
+ if err == ErrEOA {
+ break
+ }
+ if err != nil {
+ return err
+ }
+
+ vw, err := aw.WriteArrayElement()
+ if err != nil {
+ return err
+ }
+
+ err = c.CopyValue(vw, vr)
+ if err != nil {
+ return err
+ }
+ }
+
+ return aw.WriteArrayEnd()
+}
+
+func (c Copier) copyDocumentCore(dw DocumentWriter, dr DocumentReader) error {
+ for {
+ key, vr, err := dr.ReadElement()
+ if err == ErrEOD {
+ break
+ }
+ if err != nil {
+ return err
+ }
+
+ vw, err := dw.WriteDocumentElement(key)
+ if err != nil {
+ return err
+ }
+
+ err = c.CopyValue(vw, vr)
+ if err != nil {
+ return err
+ }
+ }
+
+ return dw.WriteDocumentEnd()
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/doc.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/doc.go
new file mode 100644
index 00000000..750b0d2a
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/doc.go
@@ -0,0 +1,9 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+// Package bsonrw contains abstractions for reading and writing
+// BSON and BSON like types from sources.
+package bsonrw // import "go.mongodb.org/mongo-driver/bson/bsonrw"
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go
new file mode 100644
index 00000000..54c76bf7
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_parser.go
@@ -0,0 +1,806 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonrw
+
+import (
+ "encoding/base64"
+ "encoding/hex"
+ "errors"
+ "fmt"
+ "io"
+ "strings"
+
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+)
+
+const maxNestingDepth = 200
+
+// ErrInvalidJSON indicates the JSON input is invalid
+var ErrInvalidJSON = errors.New("invalid JSON input")
+
+type jsonParseState byte
+
+const (
+ jpsStartState jsonParseState = iota
+ jpsSawBeginObject
+ jpsSawEndObject
+ jpsSawBeginArray
+ jpsSawEndArray
+ jpsSawColon
+ jpsSawComma
+ jpsSawKey
+ jpsSawValue
+ jpsDoneState
+ jpsInvalidState
+)
+
+type jsonParseMode byte
+
+const (
+ jpmInvalidMode jsonParseMode = iota
+ jpmObjectMode
+ jpmArrayMode
+)
+
+type extJSONValue struct {
+ t bsontype.Type
+ v interface{}
+}
+
+type extJSONObject struct {
+ keys []string
+ values []*extJSONValue
+}
+
+type extJSONParser struct {
+ js *jsonScanner
+ s jsonParseState
+ m []jsonParseMode
+ k string
+ v *extJSONValue
+
+ err error
+ canonical bool
+ depth int
+ maxDepth int
+
+ emptyObject bool
+ relaxedUUID bool
+}
+
+// newExtJSONParser returns a new extended JSON parser, ready to to begin
+// parsing from the first character of the argued json input. It will not
+// perform any read-ahead and will therefore not report any errors about
+// malformed JSON at this point.
+func newExtJSONParser(r io.Reader, canonical bool) *extJSONParser {
+ return &extJSONParser{
+ js: &jsonScanner{r: r},
+ s: jpsStartState,
+ m: []jsonParseMode{},
+ canonical: canonical,
+ maxDepth: maxNestingDepth,
+ }
+}
+
+// peekType examines the next value and returns its BSON Type
+func (ejp *extJSONParser) peekType() (bsontype.Type, error) {
+ var t bsontype.Type
+ var err error
+ initialState := ejp.s
+
+ ejp.advanceState()
+ switch ejp.s {
+ case jpsSawValue:
+ t = ejp.v.t
+ case jpsSawBeginArray:
+ t = bsontype.Array
+ case jpsInvalidState:
+ err = ejp.err
+ case jpsSawComma:
+ // in array mode, seeing a comma means we need to progress again to actually observe a type
+ if ejp.peekMode() == jpmArrayMode {
+ return ejp.peekType()
+ }
+ case jpsSawEndArray:
+ // this would only be a valid state if we were in array mode, so return end-of-array error
+ err = ErrEOA
+ case jpsSawBeginObject:
+ // peek key to determine type
+ ejp.advanceState()
+ switch ejp.s {
+ case jpsSawEndObject: // empty embedded document
+ t = bsontype.EmbeddedDocument
+ ejp.emptyObject = true
+ case jpsInvalidState:
+ err = ejp.err
+ case jpsSawKey:
+ if initialState == jpsStartState {
+ return bsontype.EmbeddedDocument, nil
+ }
+ t = wrapperKeyBSONType(ejp.k)
+
+ // if $uuid is encountered, parse as binary subtype 4
+ if ejp.k == "$uuid" {
+ ejp.relaxedUUID = true
+ t = bsontype.Binary
+ }
+
+ switch t {
+ case bsontype.JavaScript:
+ // just saw $code, need to check for $scope at same level
+ _, err = ejp.readValue(bsontype.JavaScript)
+ if err != nil {
+ break
+ }
+
+ switch ejp.s {
+ case jpsSawEndObject: // type is TypeJavaScript
+ case jpsSawComma:
+ ejp.advanceState()
+
+ if ejp.s == jpsSawKey && ejp.k == "$scope" {
+ t = bsontype.CodeWithScope
+ } else {
+ err = fmt.Errorf("invalid extended JSON: unexpected key %s in CodeWithScope object", ejp.k)
+ }
+ case jpsInvalidState:
+ err = ejp.err
+ default:
+ err = ErrInvalidJSON
+ }
+ case bsontype.CodeWithScope:
+ err = errors.New("invalid extended JSON: code with $scope must contain $code before $scope")
+ }
+ }
+ }
+
+ return t, err
+}
+
+// readKey parses the next key and its type and returns them
+func (ejp *extJSONParser) readKey() (string, bsontype.Type, error) {
+ if ejp.emptyObject {
+ ejp.emptyObject = false
+ return "", 0, ErrEOD
+ }
+
+ // advance to key (or return with error)
+ switch ejp.s {
+ case jpsStartState:
+ ejp.advanceState()
+ if ejp.s == jpsSawBeginObject {
+ ejp.advanceState()
+ }
+ case jpsSawBeginObject:
+ ejp.advanceState()
+ case jpsSawValue, jpsSawEndObject, jpsSawEndArray:
+ ejp.advanceState()
+ switch ejp.s {
+ case jpsSawBeginObject, jpsSawComma:
+ ejp.advanceState()
+ case jpsSawEndObject:
+ return "", 0, ErrEOD
+ case jpsDoneState:
+ return "", 0, io.EOF
+ case jpsInvalidState:
+ return "", 0, ejp.err
+ default:
+ return "", 0, ErrInvalidJSON
+ }
+ case jpsSawKey: // do nothing (key was peeked before)
+ default:
+ return "", 0, invalidRequestError("key")
+ }
+
+ // read key
+ var key string
+
+ switch ejp.s {
+ case jpsSawKey:
+ key = ejp.k
+ case jpsSawEndObject:
+ return "", 0, ErrEOD
+ case jpsInvalidState:
+ return "", 0, ejp.err
+ default:
+ return "", 0, invalidRequestError("key")
+ }
+
+ // check for colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, key); err != nil {
+ return "", 0, err
+ }
+
+ // peek at the value to determine type
+ t, err := ejp.peekType()
+ if err != nil {
+ return "", 0, err
+ }
+
+ return key, t, nil
+}
+
+// readValue returns the value corresponding to the Type returned by peekType
+func (ejp *extJSONParser) readValue(t bsontype.Type) (*extJSONValue, error) {
+ if ejp.s == jpsInvalidState {
+ return nil, ejp.err
+ }
+
+ var v *extJSONValue
+
+ switch t {
+ case bsontype.Null, bsontype.Boolean, bsontype.String:
+ if ejp.s != jpsSawValue {
+ return nil, invalidRequestError(t.String())
+ }
+ v = ejp.v
+ case bsontype.Int32, bsontype.Int64, bsontype.Double:
+ // relaxed version allows these to be literal number values
+ if ejp.s == jpsSawValue {
+ v = ejp.v
+ break
+ }
+ fallthrough
+ case bsontype.Decimal128, bsontype.Symbol, bsontype.ObjectID, bsontype.MinKey, bsontype.MaxKey, bsontype.Undefined:
+ switch ejp.s {
+ case jpsSawKey:
+ // read colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, ejp.k); err != nil {
+ return nil, err
+ }
+
+ // read value
+ ejp.advanceState()
+ if ejp.s != jpsSawValue || !ejp.ensureExtValueType(t) {
+ return nil, invalidJSONErrorForType("value", t)
+ }
+
+ v = ejp.v
+
+ // read end object
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, invalidJSONErrorForType("} after value", t)
+ }
+ default:
+ return nil, invalidRequestError(t.String())
+ }
+ case bsontype.Binary, bsontype.Regex, bsontype.Timestamp, bsontype.DBPointer:
+ if ejp.s != jpsSawKey {
+ return nil, invalidRequestError(t.String())
+ }
+ // read colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, ejp.k); err != nil {
+ return nil, err
+ }
+
+ ejp.advanceState()
+ if t == bsontype.Binary && ejp.s == jpsSawValue {
+ // convert relaxed $uuid format
+ if ejp.relaxedUUID {
+ defer func() { ejp.relaxedUUID = false }()
+ uuid, err := ejp.v.parseSymbol()
+ if err != nil {
+ return nil, err
+ }
+
+ // RFC 4122 defines the length of a UUID as 36 and the hyphens in a UUID as appearing
+ // in the 8th, 13th, 18th, and 23rd characters.
+ //
+ // See https://tools.ietf.org/html/rfc4122#section-3
+ valid := len(uuid) == 36 &&
+ string(uuid[8]) == "-" &&
+ string(uuid[13]) == "-" &&
+ string(uuid[18]) == "-" &&
+ string(uuid[23]) == "-"
+ if !valid {
+ return nil, fmt.Errorf("$uuid value does not follow RFC 4122 format regarding length and hyphens")
+ }
+
+ // remove hyphens
+ uuidNoHyphens := strings.Replace(uuid, "-", "", -1)
+ if len(uuidNoHyphens) != 32 {
+ return nil, fmt.Errorf("$uuid value does not follow RFC 4122 format regarding length and hyphens")
+ }
+
+ // convert hex to bytes
+ bytes, err := hex.DecodeString(uuidNoHyphens)
+ if err != nil {
+ return nil, fmt.Errorf("$uuid value does not follow RFC 4122 format regarding hex bytes: %v", err)
+ }
+
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, invalidJSONErrorForType("$uuid and value and then }", bsontype.Binary)
+ }
+
+ base64 := &extJSONValue{
+ t: bsontype.String,
+ v: base64.StdEncoding.EncodeToString(bytes),
+ }
+ subType := &extJSONValue{
+ t: bsontype.String,
+ v: "04",
+ }
+
+ v = &extJSONValue{
+ t: bsontype.EmbeddedDocument,
+ v: &extJSONObject{
+ keys: []string{"base64", "subType"},
+ values: []*extJSONValue{base64, subType},
+ },
+ }
+
+ break
+ }
+
+ // convert legacy $binary format
+ base64 := ejp.v
+
+ ejp.advanceState()
+ if ejp.s != jpsSawComma {
+ return nil, invalidJSONErrorForType(",", bsontype.Binary)
+ }
+
+ ejp.advanceState()
+ key, t, err := ejp.readKey()
+ if err != nil {
+ return nil, err
+ }
+ if key != "$type" {
+ return nil, invalidJSONErrorForType("$type", bsontype.Binary)
+ }
+
+ subType, err := ejp.readValue(t)
+ if err != nil {
+ return nil, err
+ }
+
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, invalidJSONErrorForType("2 key-value pairs and then }", bsontype.Binary)
+ }
+
+ v = &extJSONValue{
+ t: bsontype.EmbeddedDocument,
+ v: &extJSONObject{
+ keys: []string{"base64", "subType"},
+ values: []*extJSONValue{base64, subType},
+ },
+ }
+ break
+ }
+
+ // read KV pairs
+ if ejp.s != jpsSawBeginObject {
+ return nil, invalidJSONErrorForType("{", t)
+ }
+
+ keys, vals, err := ejp.readObject(2, true)
+ if err != nil {
+ return nil, err
+ }
+
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, invalidJSONErrorForType("2 key-value pairs and then }", t)
+ }
+
+ v = &extJSONValue{t: bsontype.EmbeddedDocument, v: &extJSONObject{keys: keys, values: vals}}
+
+ case bsontype.DateTime:
+ switch ejp.s {
+ case jpsSawValue:
+ v = ejp.v
+ case jpsSawKey:
+ // read colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, ejp.k); err != nil {
+ return nil, err
+ }
+
+ ejp.advanceState()
+ switch ejp.s {
+ case jpsSawBeginObject:
+ keys, vals, err := ejp.readObject(1, true)
+ if err != nil {
+ return nil, err
+ }
+ v = &extJSONValue{t: bsontype.EmbeddedDocument, v: &extJSONObject{keys: keys, values: vals}}
+ case jpsSawValue:
+ if ejp.canonical {
+ return nil, invalidJSONError("{")
+ }
+ v = ejp.v
+ default:
+ if ejp.canonical {
+ return nil, invalidJSONErrorForType("object", t)
+ }
+ return nil, invalidJSONErrorForType("ISO-8601 Internet Date/Time Format as described in RFC-3339", t)
+ }
+
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, invalidJSONErrorForType("value and then }", t)
+ }
+ default:
+ return nil, invalidRequestError(t.String())
+ }
+ case bsontype.JavaScript:
+ switch ejp.s {
+ case jpsSawKey:
+ // read colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, ejp.k); err != nil {
+ return nil, err
+ }
+
+ // read value
+ ejp.advanceState()
+ if ejp.s != jpsSawValue {
+ return nil, invalidJSONErrorForType("value", t)
+ }
+ v = ejp.v
+
+ // read end object or comma and just return
+ ejp.advanceState()
+ case jpsSawEndObject:
+ v = ejp.v
+ default:
+ return nil, invalidRequestError(t.String())
+ }
+ case bsontype.CodeWithScope:
+ if ejp.s == jpsSawKey && ejp.k == "$scope" {
+ v = ejp.v // this is the $code string from earlier
+
+ // read colon
+ ejp.advanceState()
+ if err := ensureColon(ejp.s, ejp.k); err != nil {
+ return nil, err
+ }
+
+ // read {
+ ejp.advanceState()
+ if ejp.s != jpsSawBeginObject {
+ return nil, invalidJSONError("$scope to be embedded document")
+ }
+ } else {
+ return nil, invalidRequestError(t.String())
+ }
+ case bsontype.EmbeddedDocument, bsontype.Array:
+ return nil, invalidRequestError(t.String())
+ }
+
+ return v, nil
+}
+
+// readObject is a utility method for reading full objects of known (or expected) size
+// it is useful for extended JSON types such as binary, datetime, regex, and timestamp
+func (ejp *extJSONParser) readObject(numKeys int, started bool) ([]string, []*extJSONValue, error) {
+ keys := make([]string, numKeys)
+ vals := make([]*extJSONValue, numKeys)
+
+ if !started {
+ ejp.advanceState()
+ if ejp.s != jpsSawBeginObject {
+ return nil, nil, invalidJSONError("{")
+ }
+ }
+
+ for i := 0; i < numKeys; i++ {
+ key, t, err := ejp.readKey()
+ if err != nil {
+ return nil, nil, err
+ }
+
+ switch ejp.s {
+ case jpsSawKey:
+ v, err := ejp.readValue(t)
+ if err != nil {
+ return nil, nil, err
+ }
+
+ keys[i] = key
+ vals[i] = v
+ case jpsSawValue:
+ keys[i] = key
+ vals[i] = ejp.v
+ default:
+ return nil, nil, invalidJSONError("value")
+ }
+ }
+
+ ejp.advanceState()
+ if ejp.s != jpsSawEndObject {
+ return nil, nil, invalidJSONError("}")
+ }
+
+ return keys, vals, nil
+}
+
+// advanceState reads the next JSON token from the scanner and transitions
+// from the current state based on that token's type
+func (ejp *extJSONParser) advanceState() {
+ if ejp.s == jpsDoneState || ejp.s == jpsInvalidState {
+ return
+ }
+
+ jt, err := ejp.js.nextToken()
+
+ if err != nil {
+ ejp.err = err
+ ejp.s = jpsInvalidState
+ return
+ }
+
+ valid := ejp.validateToken(jt.t)
+ if !valid {
+ ejp.err = unexpectedTokenError(jt)
+ ejp.s = jpsInvalidState
+ return
+ }
+
+ switch jt.t {
+ case jttBeginObject:
+ ejp.s = jpsSawBeginObject
+ ejp.pushMode(jpmObjectMode)
+ ejp.depth++
+
+ if ejp.depth > ejp.maxDepth {
+ ejp.err = nestingDepthError(jt.p, ejp.depth)
+ ejp.s = jpsInvalidState
+ }
+ case jttEndObject:
+ ejp.s = jpsSawEndObject
+ ejp.depth--
+
+ if ejp.popMode() != jpmObjectMode {
+ ejp.err = unexpectedTokenError(jt)
+ ejp.s = jpsInvalidState
+ }
+ case jttBeginArray:
+ ejp.s = jpsSawBeginArray
+ ejp.pushMode(jpmArrayMode)
+ case jttEndArray:
+ ejp.s = jpsSawEndArray
+
+ if ejp.popMode() != jpmArrayMode {
+ ejp.err = unexpectedTokenError(jt)
+ ejp.s = jpsInvalidState
+ }
+ case jttColon:
+ ejp.s = jpsSawColon
+ case jttComma:
+ ejp.s = jpsSawComma
+ case jttEOF:
+ ejp.s = jpsDoneState
+ if len(ejp.m) != 0 {
+ ejp.err = unexpectedTokenError(jt)
+ ejp.s = jpsInvalidState
+ }
+ case jttString:
+ switch ejp.s {
+ case jpsSawComma:
+ if ejp.peekMode() == jpmArrayMode {
+ ejp.s = jpsSawValue
+ ejp.v = extendJSONToken(jt)
+ return
+ }
+ fallthrough
+ case jpsSawBeginObject:
+ ejp.s = jpsSawKey
+ ejp.k = jt.v.(string)
+ return
+ }
+ fallthrough
+ default:
+ ejp.s = jpsSawValue
+ ejp.v = extendJSONToken(jt)
+ }
+}
+
+var jpsValidTransitionTokens = map[jsonParseState]map[jsonTokenType]bool{
+ jpsStartState: {
+ jttBeginObject: true,
+ jttBeginArray: true,
+ jttInt32: true,
+ jttInt64: true,
+ jttDouble: true,
+ jttString: true,
+ jttBool: true,
+ jttNull: true,
+ jttEOF: true,
+ },
+ jpsSawBeginObject: {
+ jttEndObject: true,
+ jttString: true,
+ },
+ jpsSawEndObject: {
+ jttEndObject: true,
+ jttEndArray: true,
+ jttComma: true,
+ jttEOF: true,
+ },
+ jpsSawBeginArray: {
+ jttBeginObject: true,
+ jttBeginArray: true,
+ jttEndArray: true,
+ jttInt32: true,
+ jttInt64: true,
+ jttDouble: true,
+ jttString: true,
+ jttBool: true,
+ jttNull: true,
+ },
+ jpsSawEndArray: {
+ jttEndObject: true,
+ jttEndArray: true,
+ jttComma: true,
+ jttEOF: true,
+ },
+ jpsSawColon: {
+ jttBeginObject: true,
+ jttBeginArray: true,
+ jttInt32: true,
+ jttInt64: true,
+ jttDouble: true,
+ jttString: true,
+ jttBool: true,
+ jttNull: true,
+ },
+ jpsSawComma: {
+ jttBeginObject: true,
+ jttBeginArray: true,
+ jttInt32: true,
+ jttInt64: true,
+ jttDouble: true,
+ jttString: true,
+ jttBool: true,
+ jttNull: true,
+ },
+ jpsSawKey: {
+ jttColon: true,
+ },
+ jpsSawValue: {
+ jttEndObject: true,
+ jttEndArray: true,
+ jttComma: true,
+ jttEOF: true,
+ },
+ jpsDoneState: {},
+ jpsInvalidState: {},
+}
+
+func (ejp *extJSONParser) validateToken(jtt jsonTokenType) bool {
+ switch ejp.s {
+ case jpsSawEndObject:
+ // if we are at depth zero and the next token is a '{',
+ // we can consider it valid only if we are not in array mode.
+ if jtt == jttBeginObject && ejp.depth == 0 {
+ return ejp.peekMode() != jpmArrayMode
+ }
+ case jpsSawComma:
+ switch ejp.peekMode() {
+ // the only valid next token after a comma inside a document is a string (a key)
+ case jpmObjectMode:
+ return jtt == jttString
+ case jpmInvalidMode:
+ return false
+ }
+ }
+
+ _, ok := jpsValidTransitionTokens[ejp.s][jtt]
+ return ok
+}
+
+// ensureExtValueType returns true if the current value has the expected
+// value type for single-key extended JSON types. For example,
+// {"$numberInt": v} v must be TypeString
+func (ejp *extJSONParser) ensureExtValueType(t bsontype.Type) bool {
+ switch t {
+ case bsontype.MinKey, bsontype.MaxKey:
+ return ejp.v.t == bsontype.Int32
+ case bsontype.Undefined:
+ return ejp.v.t == bsontype.Boolean
+ case bsontype.Int32, bsontype.Int64, bsontype.Double, bsontype.Decimal128, bsontype.Symbol, bsontype.ObjectID:
+ return ejp.v.t == bsontype.String
+ default:
+ return false
+ }
+}
+
+func (ejp *extJSONParser) pushMode(m jsonParseMode) {
+ ejp.m = append(ejp.m, m)
+}
+
+func (ejp *extJSONParser) popMode() jsonParseMode {
+ l := len(ejp.m)
+ if l == 0 {
+ return jpmInvalidMode
+ }
+
+ m := ejp.m[l-1]
+ ejp.m = ejp.m[:l-1]
+
+ return m
+}
+
+func (ejp *extJSONParser) peekMode() jsonParseMode {
+ l := len(ejp.m)
+ if l == 0 {
+ return jpmInvalidMode
+ }
+
+ return ejp.m[l-1]
+}
+
+func extendJSONToken(jt *jsonToken) *extJSONValue {
+ var t bsontype.Type
+
+ switch jt.t {
+ case jttInt32:
+ t = bsontype.Int32
+ case jttInt64:
+ t = bsontype.Int64
+ case jttDouble:
+ t = bsontype.Double
+ case jttString:
+ t = bsontype.String
+ case jttBool:
+ t = bsontype.Boolean
+ case jttNull:
+ t = bsontype.Null
+ default:
+ return nil
+ }
+
+ return &extJSONValue{t: t, v: jt.v}
+}
+
+func ensureColon(s jsonParseState, key string) error {
+ if s != jpsSawColon {
+ return fmt.Errorf("invalid JSON input: missing colon after key \"%s\"", key)
+ }
+
+ return nil
+}
+
+func invalidRequestError(s string) error {
+ return fmt.Errorf("invalid request to read %s", s)
+}
+
+func invalidJSONError(expected string) error {
+ return fmt.Errorf("invalid JSON input; expected %s", expected)
+}
+
+func invalidJSONErrorForType(expected string, t bsontype.Type) error {
+ return fmt.Errorf("invalid JSON input; expected %s for %s", expected, t)
+}
+
+func unexpectedTokenError(jt *jsonToken) error {
+ switch jt.t {
+ case jttInt32, jttInt64, jttDouble:
+ return fmt.Errorf("invalid JSON input; unexpected number (%v) at position %d", jt.v, jt.p)
+ case jttString:
+ return fmt.Errorf("invalid JSON input; unexpected string (\"%v\") at position %d", jt.v, jt.p)
+ case jttBool:
+ return fmt.Errorf("invalid JSON input; unexpected boolean literal (%v) at position %d", jt.v, jt.p)
+ case jttNull:
+ return fmt.Errorf("invalid JSON input; unexpected null literal at position %d", jt.p)
+ case jttEOF:
+ return fmt.Errorf("invalid JSON input; unexpected end of input at position %d", jt.p)
+ default:
+ return fmt.Errorf("invalid JSON input; unexpected %c at position %d", jt.v.(byte), jt.p)
+ }
+}
+
+func nestingDepthError(p, depth int) error {
+ return fmt.Errorf("invalid JSON input; nesting too deep (%d levels) at position %d", depth, p)
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_reader.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_reader.go
new file mode 100644
index 00000000..35832d73
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_reader.go
@@ -0,0 +1,644 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+
+package bsonrw
+
+import (
+ "fmt"
+ "io"
+ "sync"
+
+ "go.mongodb.org/mongo-driver/bson/bsontype"
+ "go.mongodb.org/mongo-driver/bson/primitive"
+)
+
+// ExtJSONValueReaderPool is a pool for ValueReaders that read ExtJSON.
+type ExtJSONValueReaderPool struct {
+ pool sync.Pool
+}
+
+// NewExtJSONValueReaderPool instantiates a new ExtJSONValueReaderPool.
+func NewExtJSONValueReaderPool() *ExtJSONValueReaderPool {
+ return &ExtJSONValueReaderPool{
+ pool: sync.Pool{
+ New: func() interface{} {
+ return new(extJSONValueReader)
+ },
+ },
+ }
+}
+
+// Get retrieves a ValueReader from the pool and uses src as the underlying ExtJSON.
+func (bvrp *ExtJSONValueReaderPool) Get(r io.Reader, canonical bool) (ValueReader, error) {
+ vr := bvrp.pool.Get().(*extJSONValueReader)
+ return vr.reset(r, canonical)
+}
+
+// Put inserts a ValueReader into the pool. If the ValueReader is not a ExtJSON ValueReader nothing
+// is inserted into the pool and ok will be false.
+func (bvrp *ExtJSONValueReaderPool) Put(vr ValueReader) (ok bool) {
+ bvr, ok := vr.(*extJSONValueReader)
+ if !ok {
+ return false
+ }
+
+ bvr, _ = bvr.reset(nil, false)
+ bvrp.pool.Put(bvr)
+ return true
+}
+
+type ejvrState struct {
+ mode mode
+ vType bsontype.Type
+ depth int
+}
+
+// extJSONValueReader is for reading extended JSON.
+type extJSONValueReader struct {
+ p *extJSONParser
+
+ stack []ejvrState
+ frame int
+}
+
+// NewExtJSONValueReader creates a new ValueReader from a given io.Reader
+// It will interpret the JSON of r as canonical or relaxed according to the
+// given canonical flag
+func NewExtJSONValueReader(r io.Reader, canonical bool) (ValueReader, error) {
+ return newExtJSONValueReader(r, canonical)
+}
+
+func newExtJSONValueReader(r io.Reader, canonical bool) (*extJSONValueReader, error) {
+ ejvr := new(extJSONValueReader)
+ return ejvr.reset(r, canonical)
+}
+
+func (ejvr *extJSONValueReader) reset(r io.Reader, canonical bool) (*extJSONValueReader, error) {
+ p := newExtJSONParser(r, canonical)
+ typ, err := p.peekType()
+
+ if err != nil {
+ return nil, ErrInvalidJSON
+ }
+
+ var m mode
+ switch typ {
+ case bsontype.EmbeddedDocument:
+ m = mTopLevel
+ case bsontype.Array:
+ m = mArray
+ default:
+ m = mValue
+ }
+
+ stack := make([]ejvrState, 1, 5)
+ stack[0] = ejvrState{
+ mode: m,
+ vType: typ,
+ }
+ return &extJSONValueReader{
+ p: p,
+ stack: stack,
+ }, nil
+}
+
+func (ejvr *extJSONValueReader) advanceFrame() {
+ if ejvr.frame+1 >= len(ejvr.stack) { // We need to grow the stack
+ length := len(ejvr.stack)
+ if length+1 >= cap(ejvr.stack) {
+ // double it
+ buf := make([]ejvrState, 2*cap(ejvr.stack)+1)
+ copy(buf, ejvr.stack)
+ ejvr.stack = buf
+ }
+ ejvr.stack = ejvr.stack[:length+1]
+ }
+ ejvr.frame++
+
+ // Clean the stack
+ ejvr.stack[ejvr.frame].mode = 0
+ ejvr.stack[ejvr.frame].vType = 0
+ ejvr.stack[ejvr.frame].depth = 0
+}
+
+func (ejvr *extJSONValueReader) pushDocument() {
+ ejvr.advanceFrame()
+
+ ejvr.stack[ejvr.frame].mode = mDocument
+ ejvr.stack[ejvr.frame].depth = ejvr.p.depth
+}
+
+func (ejvr *extJSONValueReader) pushCodeWithScope() {
+ ejvr.advanceFrame()
+
+ ejvr.stack[ejvr.frame].mode = mCodeWithScope
+}
+
+func (ejvr *extJSONValueReader) pushArray() {
+ ejvr.advanceFrame()
+
+ ejvr.stack[ejvr.frame].mode = mArray
+}
+
+func (ejvr *extJSONValueReader) push(m mode, t bsontype.Type) {
+ ejvr.advanceFrame()
+
+ ejvr.stack[ejvr.frame].mode = m
+ ejvr.stack[ejvr.frame].vType = t
+}
+
+func (ejvr *extJSONValueReader) pop() {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mElement, mValue:
+ ejvr.frame--
+ case mDocument, mArray, mCodeWithScope:
+ ejvr.frame -= 2 // we pop twice to jump over the vrElement: vrDocument -> vrElement -> vrDocument/TopLevel/etc...
+ }
+}
+
+func (ejvr *extJSONValueReader) skipObject() {
+ // read entire object until depth returns to 0 (last ending } or ] seen)
+ depth := 1
+ for depth > 0 {
+ ejvr.p.advanceState()
+
+ // If object is empty, raise depth and continue. When emptyObject is true, the
+ // parser has already read both the opening and closing brackets of an empty
+ // object ("{}"), so the next valid token will be part of the parent document,
+ // not part of the nested document.
+ //
+ // If there is a comma, there are remaining fields, emptyObject must be set back
+ // to false, and comma must be skipped with advanceState().
+ if ejvr.p.emptyObject {
+ if ejvr.p.s == jpsSawComma {
+ ejvr.p.emptyObject = false
+ ejvr.p.advanceState()
+ }
+ depth--
+ continue
+ }
+
+ switch ejvr.p.s {
+ case jpsSawBeginObject, jpsSawBeginArray:
+ depth++
+ case jpsSawEndObject, jpsSawEndArray:
+ depth--
+ }
+ }
+}
+
+func (ejvr *extJSONValueReader) invalidTransitionErr(destination mode, name string, modes []mode) error {
+ te := TransitionError{
+ name: name,
+ current: ejvr.stack[ejvr.frame].mode,
+ destination: destination,
+ modes: modes,
+ action: "read",
+ }
+ if ejvr.frame != 0 {
+ te.parent = ejvr.stack[ejvr.frame-1].mode
+ }
+ return te
+}
+
+func (ejvr *extJSONValueReader) typeError(t bsontype.Type) error {
+ return fmt.Errorf("positioned on %s, but attempted to read %s", ejvr.stack[ejvr.frame].vType, t)
+}
+
+func (ejvr *extJSONValueReader) ensureElementValue(t bsontype.Type, destination mode, callerName string, addModes ...mode) error {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mElement, mValue:
+ if ejvr.stack[ejvr.frame].vType != t {
+ return ejvr.typeError(t)
+ }
+ default:
+ modes := []mode{mElement, mValue}
+ if addModes != nil {
+ modes = append(modes, addModes...)
+ }
+ return ejvr.invalidTransitionErr(destination, callerName, modes)
+ }
+
+ return nil
+}
+
+func (ejvr *extJSONValueReader) Type() bsontype.Type {
+ return ejvr.stack[ejvr.frame].vType
+}
+
+func (ejvr *extJSONValueReader) Skip() error {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mElement, mValue:
+ default:
+ return ejvr.invalidTransitionErr(0, "Skip", []mode{mElement, mValue})
+ }
+
+ defer ejvr.pop()
+
+ t := ejvr.stack[ejvr.frame].vType
+ switch t {
+ case bsontype.Array, bsontype.EmbeddedDocument, bsontype.CodeWithScope:
+ // read entire array, doc or CodeWithScope
+ ejvr.skipObject()
+ default:
+ _, err := ejvr.p.readValue(t)
+ if err != nil {
+ return err
+ }
+ }
+
+ return nil
+}
+
+func (ejvr *extJSONValueReader) ReadArray() (ArrayReader, error) {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mTopLevel: // allow reading array from top level
+ case mArray:
+ return ejvr, nil
+ default:
+ if err := ejvr.ensureElementValue(bsontype.Array, mArray, "ReadArray", mTopLevel, mArray); err != nil {
+ return nil, err
+ }
+ }
+
+ ejvr.pushArray()
+
+ return ejvr, nil
+}
+
+func (ejvr *extJSONValueReader) ReadBinary() (b []byte, btype byte, err error) {
+ if err := ejvr.ensureElementValue(bsontype.Binary, 0, "ReadBinary"); err != nil {
+ return nil, 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Binary)
+ if err != nil {
+ return nil, 0, err
+ }
+
+ b, btype, err = v.parseBinary()
+
+ ejvr.pop()
+ return b, btype, err
+}
+
+func (ejvr *extJSONValueReader) ReadBoolean() (bool, error) {
+ if err := ejvr.ensureElementValue(bsontype.Boolean, 0, "ReadBoolean"); err != nil {
+ return false, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Boolean)
+ if err != nil {
+ return false, err
+ }
+
+ if v.t != bsontype.Boolean {
+ return false, fmt.Errorf("expected type bool, but got type %s", v.t)
+ }
+
+ ejvr.pop()
+ return v.v.(bool), nil
+}
+
+func (ejvr *extJSONValueReader) ReadDocument() (DocumentReader, error) {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mTopLevel:
+ return ejvr, nil
+ case mElement, mValue:
+ if ejvr.stack[ejvr.frame].vType != bsontype.EmbeddedDocument {
+ return nil, ejvr.typeError(bsontype.EmbeddedDocument)
+ }
+
+ ejvr.pushDocument()
+ return ejvr, nil
+ default:
+ return nil, ejvr.invalidTransitionErr(mDocument, "ReadDocument", []mode{mTopLevel, mElement, mValue})
+ }
+}
+
+func (ejvr *extJSONValueReader) ReadCodeWithScope() (code string, dr DocumentReader, err error) {
+ if err = ejvr.ensureElementValue(bsontype.CodeWithScope, 0, "ReadCodeWithScope"); err != nil {
+ return "", nil, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.CodeWithScope)
+ if err != nil {
+ return "", nil, err
+ }
+
+ code, err = v.parseJavascript()
+
+ ejvr.pushCodeWithScope()
+ return code, ejvr, err
+}
+
+func (ejvr *extJSONValueReader) ReadDBPointer() (ns string, oid primitive.ObjectID, err error) {
+ if err = ejvr.ensureElementValue(bsontype.DBPointer, 0, "ReadDBPointer"); err != nil {
+ return "", primitive.NilObjectID, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.DBPointer)
+ if err != nil {
+ return "", primitive.NilObjectID, err
+ }
+
+ ns, oid, err = v.parseDBPointer()
+
+ ejvr.pop()
+ return ns, oid, err
+}
+
+func (ejvr *extJSONValueReader) ReadDateTime() (int64, error) {
+ if err := ejvr.ensureElementValue(bsontype.DateTime, 0, "ReadDateTime"); err != nil {
+ return 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.DateTime)
+ if err != nil {
+ return 0, err
+ }
+
+ d, err := v.parseDateTime()
+
+ ejvr.pop()
+ return d, err
+}
+
+func (ejvr *extJSONValueReader) ReadDecimal128() (primitive.Decimal128, error) {
+ if err := ejvr.ensureElementValue(bsontype.Decimal128, 0, "ReadDecimal128"); err != nil {
+ return primitive.Decimal128{}, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Decimal128)
+ if err != nil {
+ return primitive.Decimal128{}, err
+ }
+
+ d, err := v.parseDecimal128()
+
+ ejvr.pop()
+ return d, err
+}
+
+func (ejvr *extJSONValueReader) ReadDouble() (float64, error) {
+ if err := ejvr.ensureElementValue(bsontype.Double, 0, "ReadDouble"); err != nil {
+ return 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Double)
+ if err != nil {
+ return 0, err
+ }
+
+ d, err := v.parseDouble()
+
+ ejvr.pop()
+ return d, err
+}
+
+func (ejvr *extJSONValueReader) ReadInt32() (int32, error) {
+ if err := ejvr.ensureElementValue(bsontype.Int32, 0, "ReadInt32"); err != nil {
+ return 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Int32)
+ if err != nil {
+ return 0, err
+ }
+
+ i, err := v.parseInt32()
+
+ ejvr.pop()
+ return i, err
+}
+
+func (ejvr *extJSONValueReader) ReadInt64() (int64, error) {
+ if err := ejvr.ensureElementValue(bsontype.Int64, 0, "ReadInt64"); err != nil {
+ return 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Int64)
+ if err != nil {
+ return 0, err
+ }
+
+ i, err := v.parseInt64()
+
+ ejvr.pop()
+ return i, err
+}
+
+func (ejvr *extJSONValueReader) ReadJavascript() (code string, err error) {
+ if err = ejvr.ensureElementValue(bsontype.JavaScript, 0, "ReadJavascript"); err != nil {
+ return "", err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.JavaScript)
+ if err != nil {
+ return "", err
+ }
+
+ code, err = v.parseJavascript()
+
+ ejvr.pop()
+ return code, err
+}
+
+func (ejvr *extJSONValueReader) ReadMaxKey() error {
+ if err := ejvr.ensureElementValue(bsontype.MaxKey, 0, "ReadMaxKey"); err != nil {
+ return err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.MaxKey)
+ if err != nil {
+ return err
+ }
+
+ err = v.parseMinMaxKey("max")
+
+ ejvr.pop()
+ return err
+}
+
+func (ejvr *extJSONValueReader) ReadMinKey() error {
+ if err := ejvr.ensureElementValue(bsontype.MinKey, 0, "ReadMinKey"); err != nil {
+ return err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.MinKey)
+ if err != nil {
+ return err
+ }
+
+ err = v.parseMinMaxKey("min")
+
+ ejvr.pop()
+ return err
+}
+
+func (ejvr *extJSONValueReader) ReadNull() error {
+ if err := ejvr.ensureElementValue(bsontype.Null, 0, "ReadNull"); err != nil {
+ return err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Null)
+ if err != nil {
+ return err
+ }
+
+ if v.t != bsontype.Null {
+ return fmt.Errorf("expected type null but got type %s", v.t)
+ }
+
+ ejvr.pop()
+ return nil
+}
+
+func (ejvr *extJSONValueReader) ReadObjectID() (primitive.ObjectID, error) {
+ if err := ejvr.ensureElementValue(bsontype.ObjectID, 0, "ReadObjectID"); err != nil {
+ return primitive.ObjectID{}, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.ObjectID)
+ if err != nil {
+ return primitive.ObjectID{}, err
+ }
+
+ oid, err := v.parseObjectID()
+
+ ejvr.pop()
+ return oid, err
+}
+
+func (ejvr *extJSONValueReader) ReadRegex() (pattern string, options string, err error) {
+ if err = ejvr.ensureElementValue(bsontype.Regex, 0, "ReadRegex"); err != nil {
+ return "", "", err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Regex)
+ if err != nil {
+ return "", "", err
+ }
+
+ pattern, options, err = v.parseRegex()
+
+ ejvr.pop()
+ return pattern, options, err
+}
+
+func (ejvr *extJSONValueReader) ReadString() (string, error) {
+ if err := ejvr.ensureElementValue(bsontype.String, 0, "ReadString"); err != nil {
+ return "", err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.String)
+ if err != nil {
+ return "", err
+ }
+
+ if v.t != bsontype.String {
+ return "", fmt.Errorf("expected type string but got type %s", v.t)
+ }
+
+ ejvr.pop()
+ return v.v.(string), nil
+}
+
+func (ejvr *extJSONValueReader) ReadSymbol() (symbol string, err error) {
+ if err = ejvr.ensureElementValue(bsontype.Symbol, 0, "ReadSymbol"); err != nil {
+ return "", err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Symbol)
+ if err != nil {
+ return "", err
+ }
+
+ symbol, err = v.parseSymbol()
+
+ ejvr.pop()
+ return symbol, err
+}
+
+func (ejvr *extJSONValueReader) ReadTimestamp() (t uint32, i uint32, err error) {
+ if err = ejvr.ensureElementValue(bsontype.Timestamp, 0, "ReadTimestamp"); err != nil {
+ return 0, 0, err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Timestamp)
+ if err != nil {
+ return 0, 0, err
+ }
+
+ t, i, err = v.parseTimestamp()
+
+ ejvr.pop()
+ return t, i, err
+}
+
+func (ejvr *extJSONValueReader) ReadUndefined() error {
+ if err := ejvr.ensureElementValue(bsontype.Undefined, 0, "ReadUndefined"); err != nil {
+ return err
+ }
+
+ v, err := ejvr.p.readValue(bsontype.Undefined)
+ if err != nil {
+ return err
+ }
+
+ err = v.parseUndefined()
+
+ ejvr.pop()
+ return err
+}
+
+func (ejvr *extJSONValueReader) ReadElement() (string, ValueReader, error) {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mTopLevel, mDocument, mCodeWithScope:
+ default:
+ return "", nil, ejvr.invalidTransitionErr(mElement, "ReadElement", []mode{mTopLevel, mDocument, mCodeWithScope})
+ }
+
+ name, t, err := ejvr.p.readKey()
+
+ if err != nil {
+ if err == ErrEOD {
+ if ejvr.stack[ejvr.frame].mode == mCodeWithScope {
+ _, err := ejvr.p.peekType()
+ if err != nil {
+ return "", nil, err
+ }
+ }
+
+ ejvr.pop()
+ }
+
+ return "", nil, err
+ }
+
+ ejvr.push(mElement, t)
+ return name, ejvr, nil
+}
+
+func (ejvr *extJSONValueReader) ReadValue() (ValueReader, error) {
+ switch ejvr.stack[ejvr.frame].mode {
+ case mArray:
+ default:
+ return nil, ejvr.invalidTransitionErr(mValue, "ReadValue", []mode{mArray})
+ }
+
+ t, err := ejvr.p.peekType()
+ if err != nil {
+ if err == ErrEOA {
+ ejvr.pop()
+ }
+
+ return nil, err
+ }
+
+ ejvr.push(mValue, t)
+ return ejvr, nil
+}
diff --git a/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_tables.go b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_tables.go
new file mode 100644
index 00000000..ba39c960
--- /dev/null
+++ b/vendor/go.mongodb.org/mongo-driver/bson/bsonrw/extjson_tables.go
@@ -0,0 +1,223 @@
+// Copyright (C) MongoDB, Inc. 2017-present.
+//
+// Licensed under the Apache License, Version 2.0 (the "License"); you may
+// not use this file except in compliance with the License. You may obtain
+// a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
+//
+// Based on github.com/golang/go by The Go Authors
+// See THIRD-PARTY-NOTICES for original license terms.
+
+package bsonrw
+
+import "unicode/utf8"
+
+// safeSet holds the value true if the ASCII character with the given array
+// position can be represented inside a JSON string without any further
+// escaping.
+//
+// All values are true except for the ASCII control characters (0-31), the
+// double quote ("), and the backslash character ("\").
+var safeSet = [utf8.RuneSelf]bool{
+ ' ': true,
+ '!': true,
+ '"': false,
+ '#': true,
+ '$': true,
+ '%': true,
+ '&': true,
+ '\'': true,
+ '(': true,
+ ')': true,
+ '*': true,
+ '+': true,
+ ',': true,
+ '-': true,
+ '.': true,
+ '/': true,
+ '0': true,
+ '1': true,
+ '2': true,
+ '3': true,
+ '4': true,
+ '5': true,
+ '6': true,
+ '7': true,
+ '8': true,
+ '9': true,
+ ':': true,
+ ';': true,
+ '<': true,
+ '=': true,
+ '>': true,
+ '?': true,
+ '@': true,
+ 'A': true,
+ 'B': true,
+ 'C': true,
+ 'D': true,
+ 'E': true,
+ 'F': true,
+ 'G': true,
+ 'H': true,
+ 'I': true,
+ 'J': true,
+ 'K': true,
+ 'L': true,
+ 'M': true,
+ 'N': true,
+ 'O': true,
+ 'P': true,
+ 'Q': true,
+ 'R': true,
+ 'S': true,
+ 'T': true,
+ 'U': true,
+ 'V': true,
+ 'W': true,
+ 'X': true,
+ 'Y': true,
+ 'Z': true,
+ '[': true,
+ '\\': false,
+ ']': true,
+ '^': true,
+ '_': true,
+ '`': true,
+ 'a': true,
+ 'b': true,
+ 'c': true,
+ 'd': true,
+ 'e': true,
+ 'f': true,
+ 'g': true,
+ 'h': true,
+ 'i': true,
+ 'j': true,
+ 'k': true,
+ 'l': true,
+ 'm': true,
+ 'n': true,
+ 'o': true,
+ 'p': true,
+ 'q': true,
+ 'r': true,
+ 's': true,
+ 't': true,
+ 'u': true,
+ 'v': true,
+ 'w': true,
+ 'x': true,
+ 'y': true,
+ 'z': true,
+ '{': true,
+ '|': true,
+ '}': true,
+ '~': true,
+ '\u007f': true,
+}
+
+// htmlSafeSet holds the value true if the ASCII character with the given
+// array position can be safely represented inside a JSON string, embedded
+// inside of HTML