diff --git a/cmd/jdcloudcli/main.go b/cmd/jdcloudcli/main.go
index fb5fd6aaa9..56b3cfa98a 100644
--- a/cmd/jdcloudcli/main.go
+++ b/cmd/jdcloudcli/main.go
@@ -89,7 +89,7 @@ func newClient(options *Options) (*jdcloud.SRegion, error) {
if regionId == "" {
regionId = jdcloud.JDCLOUD_DEFAULT_REGION
}
- region := jdcloud.NewRegion(regionId, options.AccessKey, options.AccessSecret, nil)
+ region := jdcloud.NewRegion(regionId, options.AccessKey, options.AccessSecret, nil, options.Debug)
if region == nil {
return nil, fmt.Errorf("no such region %s", regionId)
}
diff --git a/go.mod b/go.mod
index 11cd4ec061..7853edc5b3 100644
--- a/go.mod
+++ b/go.mod
@@ -154,7 +154,7 @@ require (
yunion.io/x/ovsdb v0.0.0-20200526071744-27bf0940cbc7
yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e
- yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008
+ yunion.io/x/sqlchemy v0.0.0-20210619142628-653684d2c4f8
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce
)
diff --git a/go.sum b/go.sum
index fbc74bc728..04c6525f6c 100644
--- a/go.sum
+++ b/go.sum
@@ -919,7 +919,7 @@ yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c h1:J/joqbA1N2mAlOl0Uqd4LpAq3+
yunion.io/x/pkg v0.0.0-20210218105412-13a69f60034c/go.mod h1:t6rEGG2sQ4J7DhFxSZVOTjNd0YO/KlfWQyK1W4tog+E=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e h1:v+EzIadodSwkdZ/7bremd7J8J50Cise/HCylsOJngmo=
yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e/go.mod h1:0iFKpOs1y4lbCxeOmq3Xx/0AcQoewVPwj62eRluioEo=
-yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008 h1:h3jv9rx8LhvuuRigVee6vPveMtIybbz66jaMkutCtF4=
-yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI=
+yunion.io/x/sqlchemy v0.0.0-20210619142628-653684d2c4f8 h1:+kywPlOttXAZvbxsVqR73B5GbSVgG3Xdo4socLWRkcg=
+yunion.io/x/sqlchemy v0.0.0-20210619142628-653684d2c4f8/go.mod h1:FTdwPdGhMgh4E+UFXc9klI1Ok34fMuybTT+jLhOaIjI=
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce h1:kU8xE7O5uZ1GSJVMZHoJ+jrNL7csUQHYGyAPW9QfNpE=
yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce/go.mod h1:EP6NSv2C0zzqBDTKumv8hPWLb3XvgMZDHQRfyuOrQng=
diff --git a/pkg/multicloud/jdcloud/balance.go b/pkg/multicloud/jdcloud/balance.go
new file mode 100644
index 0000000000..ef2f3b1fea
--- /dev/null
+++ b/pkg/multicloud/jdcloud/balance.go
@@ -0,0 +1,37 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/asset/client"
+
+ "yunion.io/x/pkg/errors"
+)
+
+type SBalance struct {
+ apis.DescribeAccountAmountResult
+}
+
+func (self *SRegion) DescribeAccountAmount() (*SBalance, error) {
+ req := apis.NewDescribeAccountAmountRequest(self.ID)
+ client := client.NewAssetClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeAccountAmount(req)
+ if err != nil {
+ return nil, errors.Wrapf(err, "DescribeAccountAmoun")
+ }
+ return &SBalance{DescribeAccountAmountResult: resp.Result}, nil
+}
diff --git a/pkg/multicloud/jdcloud/monitor.go b/pkg/multicloud/jdcloud/monitor.go
index d195564a51..6a9907008d 100644
--- a/pkg/multicloud/jdcloud/monitor.go
+++ b/pkg/multicloud/jdcloud/monitor.go
@@ -18,6 +18,7 @@ func (r *SRegion) GetMetricsData(req *DescribeMetricDataRequest) (*DescribeMetri
req.RegionId = r.GetId()
}
monitorClient := client.NewMonitorClient(r.Credential)
+ monitorClient.Logger = Logger{}
response, err := monitorClient.DescribeMetricData(req.DescribeMetricDataRequest)
if err != nil {
return nil, err
diff --git a/pkg/multicloud/jdcloud/provider/provider.go b/pkg/multicloud/jdcloud/provider/provider.go
index c3f1e38624..c0371f40c0 100644
--- a/pkg/multicloud/jdcloud/provider/provider.go
+++ b/pkg/multicloud/jdcloud/provider/provider.go
@@ -17,6 +17,7 @@ package provider
import (
"context"
"fmt"
+ "strconv"
"strings"
"yunion.io/x/jsonutils"
@@ -141,7 +142,7 @@ func (p *SJdcloudProvider) GetIRegions() []cloudprovider.ICloudRegion {
if p.iregion != nil {
return p.iregion
}
- regions := jdcloud.AllRegions(p.accessKey, p.secret, &p.cfg)
+ regions := jdcloud.AllRegions(p.accessKey, p.secret, &p.cfg, false)
iregions := make([]cloudprovider.ICloudRegion, len(regions))
for i := range iregions {
iregions[i] = ®ions[i]
@@ -171,6 +172,21 @@ func (p *SJdcloudProvider) GetIRegionById(id string) (cloudprovider.ICloudRegion
}
func (p *SJdcloudProvider) GetBalance() (float64, string, error) {
+ regions := p.GetIRegions()
+ if len(regions) > 0 {
+ region := regions[0].(*jdcloud.SRegion)
+ balance, err := region.DescribeAccountAmount()
+ if err != nil {
+ return 0.0, api.CLOUD_PROVIDER_HEALTH_NO_PERMISSION, errors.Wrap(err, "DescribeAccountAmount")
+ }
+ amount, _ := strconv.ParseFloat(balance.TotalAmount, 32)
+ if amount < 0 {
+ return amount, api.CLOUD_PROVIDER_HEALTH_ARREARS, nil
+ } else if amount < 50 {
+ return amount, api.CLOUD_PROVIDER_HEALTH_INSUFFICIENT, nil
+ }
+ return amount, api.CLOUD_PROVIDER_HEALTH_NORMAL, nil
+ }
return 0.0, api.CLOUD_PROVIDER_HEALTH_NORMAL, cloudprovider.ErrNotSupported
}
@@ -199,6 +215,7 @@ func (p *SJdcloudProvider) GetCapabilities() []string {
caps := []string{
cloudprovider.CLOUD_CAPABILITY_COMPUTE,
cloudprovider.CLOUD_CAPABILITY_NETWORK,
+ cloudprovider.CLOUD_CAPABILITY_RDS,
}
return caps
}
diff --git a/pkg/multicloud/jdcloud/rds.go b/pkg/multicloud/jdcloud/rds.go
new file mode 100644
index 0000000000..8687fd1b52
--- /dev/null
+++ b/pkg/multicloud/jdcloud/rds.go
@@ -0,0 +1,234 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "fmt"
+ "strconv"
+ "time"
+
+ commodels "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+
+ "yunion.io/x/jsonutils"
+ "yunion.io/x/pkg/errors"
+
+ api "yunion.io/x/onecloud/pkg/apis/compute"
+ "yunion.io/x/onecloud/pkg/cloudprovider"
+ "yunion.io/x/onecloud/pkg/multicloud"
+)
+
+type SDBInstance struct {
+ multicloud.SDBInstanceBase
+ multicloud.JdcloudTags
+ region *SRegion
+
+ models.DBInstance
+}
+
+func (self *SDBInstance) GetName() string {
+ return self.InstanceName
+}
+
+func (self *SDBInstance) GetInstanceType() string {
+ return self.InstanceClass
+}
+
+func (self *SDBInstance) GetCategory() string {
+ return self.InstanceType
+}
+
+func (self *SDBInstance) GetDiskSizeGB() int {
+ return self.InstanceStorageGB
+}
+
+func (self *SDBInstance) GetEngine() string {
+ return self.Engine
+}
+
+func (self *SDBInstance) GetEngineVersion() string {
+ return self.EngineVersion
+}
+
+func (self *SDBInstance) GetGlobalId() string {
+ return self.InstanceId
+}
+
+func (self *SDBInstance) GetId() string {
+ return self.InstanceId
+}
+
+func (self *SDBInstance) GetIVpcId() string {
+ return self.VpcId
+}
+
+func (self *SDBInstance) GetMaintainTime() string {
+ return ""
+}
+
+func (self *SDBInstance) GetMasterInstanceId() string {
+ return self.SourceInstanceId
+}
+
+func (self *SDBInstance) GetPort() int {
+ port, _ := strconv.Atoi(self.InstancePort)
+ return int(port)
+}
+
+func (self *SDBInstance) GetCreatedAt() time.Time {
+ return parseTime(self.CreateTime)
+}
+
+func (self *SDBInstance) GetExpiredAt() time.Time {
+ return expireAt(&self.Charge)
+}
+
+func (self *SDBInstance) GetStatus() string {
+ switch self.InstanceStatus {
+ case "BUILDING", "DDLING", "PARAMETERGROUP_MODIFYING", "AUDIT_OPENING", "AUDIT_CLOSING", "SECURITY_OPENING", "SECURITY_CLOSING", "SSL_OPENING", "SSL_CLOSING":
+ return api.DBINSTANCE_DEPLOYING
+ case "RUNNING":
+ return api.DBINSTANCE_RUNNING
+ case "DELETING":
+ return api.DBINSTANCE_DELETING
+ case "FAILOVER", "AZ_MIGRATING":
+ return api.DBINSTANCE_MIGRATING
+ case "RESTORING", "DB_RESTORING":
+ return api.DBINSTANCE_RESTORING
+ case "MODIFYING":
+ return api.DBINSTANCE_CHANGE_CONFIG
+ case "BUILD_READONLY":
+ return api.DBINSTANCE_DEPLOYING
+ case "REBOOTING":
+ return api.DBINSTANCE_REBOOTING
+ case "MAINTENANCE":
+ return api.DBINSTANCE_MAINTENANCE
+ default:
+ return self.InstanceStatus
+ }
+}
+
+func (self *SDBInstance) GetStorageType() string {
+ return self.InstanceStorageType
+}
+
+func (self *SDBInstance) GetVcpuCount() int {
+ return self.InstanceCPU
+}
+
+func (self *SDBInstance) GetVmemSizeMB() int {
+ return self.InstanceMemoryMB
+}
+
+func (self *SDBInstance) GetZone1Id() string {
+ if len(self.AzId) > 0 {
+ return self.AzId[0]
+ }
+ return ""
+}
+
+func (self *SDBInstance) GetZone2Id() string {
+ if len(self.AzId) > 1 {
+ return self.AzId[1]
+ }
+ return ""
+}
+
+func (self *SDBInstance) GetZone3Id() string {
+ if len(self.AzId) > 2 {
+ return self.AzId[2]
+ }
+ return ""
+}
+
+func (self *SDBInstance) GetConnectionStr() string {
+ return self.PublicDomainName
+}
+
+func (self *SDBInstance) GetInternalConnectionStr() string {
+ return self.InternalDomainName
+}
+
+func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error) {
+ rds := []SDBInstance{}
+ n := 1
+ for {
+ part, total, err := self.GetDBInstances(n, 100)
+ if err != nil {
+ return nil, errors.Wrapf(err, "GetDBInstances")
+ }
+ rds = append(rds, part...)
+ if len(rds) >= total {
+ break
+ }
+ n++
+ }
+ ret := []cloudprovider.ICloudDBInstance{}
+ for i := range rds {
+ ret = append(ret, &rds[i])
+ }
+ return ret, nil
+}
+
+func (self *SRegion) GetIDBInstanceById(id string) (cloudprovider.ICloudDBInstance, error) {
+ rds, err := self.GetDBInstance(id)
+ if err != nil {
+ return nil, errors.Wrapf(err, "GetDBInstance(%s)", id)
+ }
+ return rds, nil
+}
+
+func (self *SRegion) GetDBInstance(id string) (*SDBInstance, error) {
+ req := apis.NewDescribeInstanceAttributesRequest(self.ID, id)
+ client := client.NewRdsClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeInstanceAttributes(req)
+ if err != nil {
+ return nil, errors.Wrapf(err, "DescribeInstanceAttributes")
+ }
+ if resp.Error.Code == 404 {
+ return nil, errors.Wrapf(cloudprovider.ErrNotFound, jsonutils.Marshal(resp.Error).String())
+ }
+ ret := SDBInstance{
+ region: self,
+ }
+ jsonutils.Update(&ret.DBInstance, resp.Result.DbInstanceAttributes)
+ return &ret, nil
+}
+
+func (self *SRegion) GetDBInstances(pageNumber int, pageSize int) ([]SDBInstance, int, error) {
+ req := apis.NewDescribeInstancesRequestWithAllParams(self.ID, &pageNumber, &pageSize, []commodels.Filter{}, []commodels.TagFilter{})
+ client := client.NewRdsClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeInstances(req)
+ if err != nil {
+ return nil, 0, errors.Wrapf(err, "DescribeInstances")
+ }
+ if resp.Error.Code >= 400 {
+ err = fmt.Errorf(resp.Error.Message)
+ return nil, 0, err
+ }
+ total := resp.Result.TotalCount
+ ret := []SDBInstance{}
+ for i := range resp.Result.DbInstances {
+ ret = append(ret, SDBInstance{
+ region: self,
+ DBInstance: resp.Result.DbInstances[i],
+ })
+ }
+ return ret, total, nil
+}
diff --git a/pkg/multicloud/jdcloud/rds_account.go b/pkg/multicloud/jdcloud/rds_account.go
new file mode 100644
index 0000000000..44e48f265e
--- /dev/null
+++ b/pkg/multicloud/jdcloud/rds_account.go
@@ -0,0 +1,117 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "fmt"
+
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+
+ "yunion.io/x/pkg/errors"
+
+ api "yunion.io/x/onecloud/pkg/apis/compute"
+ "yunion.io/x/onecloud/pkg/cloudprovider"
+ "yunion.io/x/onecloud/pkg/multicloud"
+)
+
+type SDBInstanceAccount struct {
+ multicloud.SDBInstanceAccountBase
+ multicloud.JdcloudTags
+
+ rds *SDBInstance
+ models.Account
+}
+
+func (self *SDBInstanceAccount) GetGlobalId() string {
+ return self.AccountName
+}
+
+func (self *SDBInstanceAccount) GetId() string {
+ return self.AccountName
+}
+
+func (self *SDBInstanceAccount) GetName() string {
+ return self.AccountName
+}
+
+func (self *SDBInstanceAccount) GetStatus() string {
+ switch self.AccountStatus {
+ case "BUILDING":
+ return api.DBINSTANCE_USER_CREATING
+ case "RUNNING":
+ return api.DBINSTANCE_USER_AVAILABLE
+ case "DELETING":
+ return api.DBINSTANCE_USER_DELETING
+ default:
+ return api.DBINSTANCE_USER_AVAILABLE
+ }
+}
+
+func (self *SDBInstanceAccount) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error) {
+ ret := []cloudprovider.ICloudDBInstanceAccountPrivilege{}
+ for i := range self.AccountPrivileges {
+ ret = append(ret, &SDBInstanceAccountPrivilege{
+ Account: self.AccountName,
+ AccountPrivilege: self.AccountPrivileges[i],
+ })
+ }
+ return ret, nil
+}
+
+func (self *SRegion) GetDBInstanceAccounts(id string, pageNumber, pageSize int) ([]SDBInstanceAccount, int, error) {
+ req := apis.NewDescribeAccountsRequestWithAllParams(self.ID, id, &pageNumber, &pageSize)
+ client := client.NewRdsClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeAccounts(req)
+ if err != nil {
+ return nil, 0, errors.Wrapf(err, "DescribeAccounts")
+ }
+ if resp.Error.Code >= 400 {
+ err = fmt.Errorf(resp.Error.Message)
+ return nil, 0, err
+ }
+ total := resp.Result.TotalCount
+ ret := []SDBInstanceAccount{}
+ for i := range resp.Result.Accounts {
+ ret = append(ret, SDBInstanceAccount{
+ Account: resp.Result.Accounts[i],
+ })
+ }
+ return ret, total, nil
+}
+
+func (self *SDBInstance) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error) {
+ accounts := []SDBInstanceAccount{}
+ n := 1
+ for {
+ part, total, err := self.region.GetDBInstanceAccounts(self.InstanceId, n, 100)
+ if err != nil {
+ return nil, errors.Wrapf(err, "GetDBInstanceAccounts")
+ }
+ accounts = append(accounts, part...)
+ if len(accounts) >= total {
+ break
+ }
+ n++
+ }
+ ret := []cloudprovider.ICloudDBInstanceAccount{}
+ for i := range accounts {
+ accounts[i].rds = self
+ ret = append(ret, &accounts[i])
+ }
+ return ret, nil
+}
diff --git a/pkg/multicloud/jdcloud/rds_backup.go b/pkg/multicloud/jdcloud/rds_backup.go
new file mode 100644
index 0000000000..34e3840acb
--- /dev/null
+++ b/pkg/multicloud/jdcloud/rds_backup.go
@@ -0,0 +1,150 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "fmt"
+ "time"
+
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+
+ "yunion.io/x/pkg/errors"
+
+ api "yunion.io/x/onecloud/pkg/apis/compute"
+ "yunion.io/x/onecloud/pkg/cloudprovider"
+ "yunion.io/x/onecloud/pkg/multicloud"
+)
+
+type SDBInstanceBackup struct {
+ multicloud.SDBInstanceBackupBase
+ multicloud.JdcloudTags
+
+ rds *SDBInstance
+ models.Backup
+}
+
+func (self *SDBInstanceBackup) GetGlobalId() string {
+ return self.BackupId
+}
+
+func (self *SDBInstanceBackup) GetId() string {
+ return self.BackupId
+}
+
+func (self *SDBInstanceBackup) GetName() string {
+ return self.BackupName
+}
+
+func (self *SDBInstanceBackup) GetBackupMethod() cloudprovider.TBackupMethod {
+ return cloudprovider.TBackupMethod(self.BackupMethod)
+}
+
+func (self *SDBInstanceBackup) GetBackupMode() string {
+ switch self.BackupMode {
+ case "auto":
+ return api.BACKUP_MODE_AUTOMATED
+ default:
+ return self.BackupMode
+ }
+}
+
+func (self *SDBInstanceBackup) GetBackupSizeMb() int {
+ return int(self.BackupSizeByte / 1024 / 1024)
+}
+
+func (self *SDBInstanceBackup) GetDBInstanceId() string {
+ return self.rds.GetGlobalId()
+}
+
+func (self *SDBInstanceBackup) GetEngine() string {
+ return self.rds.GetEngine()
+}
+
+func (self *SDBInstanceBackup) GetEngineVersion() string {
+ return self.rds.GetEngineVersion()
+}
+
+func (self *SDBInstanceBackup) GetEndTime() time.Time {
+ return parseTime(self.BackupEndTime)
+}
+
+func (self *SDBInstanceBackup) GetStartTime() time.Time {
+ return parseTime(self.BackupStartTime)
+}
+
+func (self *SDBInstanceBackup) GetDBNames() string {
+ return ""
+}
+
+func (self *SDBInstanceBackup) GetStatus() string {
+ switch self.BackupStatus {
+ case "ERROR":
+ return api.DBINSTANCE_BACKUP_CREATE_FAILED
+ case "COMPLETED":
+ return api.DBINSTANCE_BACKUP_READY
+ case "BUILDING":
+ return api.DBINSTANCE_BACKUP_CREATING
+ case "DELETING":
+ return api.DBINSTANCE_BACKUP_DELETING
+ default:
+ return api.DBINSTANCE_BACKUP_READY
+ }
+}
+
+func (self *SRegion) GetDBInstanceBackups(id string, pageNumber, pageSize int) ([]SDBInstanceBackup, int, error) {
+ req := apis.NewDescribeBackupsRequest(self.ID, id, pageNumber, pageSize)
+ client := client.NewRdsClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeBackups(req)
+ if err != nil {
+ return nil, 0, errors.Wrapf(err, "DescribeBackups")
+ }
+ if resp.Error.Code >= 400 {
+ err = fmt.Errorf(resp.Error.Message)
+ return nil, 0, err
+ }
+ total := resp.Result.TotalCount
+ ret := []SDBInstanceBackup{}
+ for i := range resp.Result.Backup {
+ ret = append(ret, SDBInstanceBackup{
+ Backup: resp.Result.Backup[i],
+ })
+ }
+ return ret, total, nil
+}
+
+func (self *SDBInstance) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error) {
+ backups := []SDBInstanceBackup{}
+ n := 1
+ for {
+ part, total, err := self.region.GetDBInstanceBackups(self.InstanceId, n, 100)
+ if err != nil {
+ return nil, errors.Wrapf(err, "GetDBInstanceBackups")
+ }
+ backups = append(backups, part...)
+ if len(backups) >= total {
+ break
+ }
+ n++
+ }
+ ret := []cloudprovider.ICloudDBInstanceBackup{}
+ for i := range backups {
+ backups[i].rds = self
+ ret = append(ret, &backups[i])
+ }
+ return ret, nil
+}
diff --git a/pkg/multicloud/jdcloud/rds_database.go b/pkg/multicloud/jdcloud/rds_database.go
new file mode 100644
index 0000000000..a04c1daa9b
--- /dev/null
+++ b/pkg/multicloud/jdcloud/rds_database.go
@@ -0,0 +1,102 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "fmt"
+
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client"
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+
+ "yunion.io/x/pkg/errors"
+
+ api "yunion.io/x/onecloud/pkg/apis/compute"
+ "yunion.io/x/onecloud/pkg/cloudprovider"
+ "yunion.io/x/onecloud/pkg/multicloud"
+)
+
+type SDBInstanceDatabase struct {
+ multicloud.SDBInstanceDatabaseBase
+ multicloud.JdcloudTags
+
+ rds *SDBInstance
+ models.Database
+}
+
+func (self *SDBInstanceDatabase) GetCharacterSet() string {
+ return self.CharacterSetName
+}
+
+func (self *SDBInstanceDatabase) GetGlobalId() string {
+ return self.DbName
+}
+
+func (self *SDBInstanceDatabase) GetId() string {
+ return self.DbName
+}
+
+func (self *SDBInstanceDatabase) GetName() string {
+ return self.DbName
+}
+
+func (self *SDBInstanceDatabase) GetStatus() string {
+ return api.DBINSTANCE_DATABASE_RUNNING
+}
+
+func (self *SRegion) GetDBInstanceDatabases(id string, pageNumber, pageSize int) ([]SDBInstanceDatabase, int, error) {
+
+ req := apis.NewDescribeDatabasesRequestWithAllParams(self.ID, id, nil, &pageNumber, &pageSize)
+ client := client.NewRdsClient(self.Credential)
+ client.Logger = Logger{}
+ resp, err := client.DescribeDatabases(req)
+ if err != nil {
+ return nil, 0, errors.Wrapf(err, "DescribeDatabases")
+ }
+ if resp.Error.Code >= 400 {
+ err = fmt.Errorf(resp.Error.Message)
+ return nil, 0, err
+ }
+ total := resp.Result.TotalCount
+ ret := []SDBInstanceDatabase{}
+ for i := range resp.Result.Databases {
+ ret = append(ret, SDBInstanceDatabase{
+ Database: resp.Result.Databases[i],
+ })
+ }
+ return ret, total, nil
+}
+
+func (self *SDBInstance) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error) {
+ dbs := []SDBInstanceDatabase{}
+ n := 1
+ for {
+ part, total, err := self.region.GetDBInstanceDatabases(self.InstanceId, n, 100)
+ if err != nil {
+ return nil, errors.Wrapf(err, "GetDBInstanceDatabases")
+ }
+ dbs = append(dbs, part...)
+ if len(dbs) >= total {
+ break
+ }
+ n++
+ }
+ ret := []cloudprovider.ICloudDBInstanceDatabase{}
+ for i := range dbs {
+ dbs[i].rds = self
+ ret = append(ret, &dbs[i])
+ }
+ return ret, nil
+}
diff --git a/pkg/multicloud/jdcloud/rds_privilege.go b/pkg/multicloud/jdcloud/rds_privilege.go
new file mode 100644
index 0000000000..361c253302
--- /dev/null
+++ b/pkg/multicloud/jdcloud/rds_privilege.go
@@ -0,0 +1,44 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 jdcloud
+
+import (
+ "fmt"
+
+ "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type SDBInstanceAccountPrivilege struct {
+ models.AccountPrivilege
+ Account string
+}
+
+func (self *SDBInstanceAccountPrivilege) GetDBName() string {
+ if self.DbName != nil {
+ return *self.DbName
+ }
+ return ""
+}
+
+func (self *SDBInstanceAccountPrivilege) GetGlobalId() string {
+ return fmt.Sprintf("%s-%s-%s", self.GetDBName(), self.Account, self.GetPrivilege())
+}
+
+func (self *SDBInstanceAccountPrivilege) GetPrivilege() string {
+ if self.Privilege != nil {
+ return *self.Privilege
+ }
+ return ""
+}
diff --git a/pkg/multicloud/jdcloud/region.go b/pkg/multicloud/jdcloud/region.go
index 782602329a..114ec31193 100644
--- a/pkg/multicloud/jdcloud/region.go
+++ b/pkg/multicloud/jdcloud/region.go
@@ -18,6 +18,9 @@ import (
"fmt"
"github.com/jdcloud-api/jdcloud-sdk-go/core"
+ "github.com/sirupsen/logrus"
+
+ "yunion.io/x/log"
api "yunion.io/x/onecloud/pkg/apis/compute"
"yunion.io/x/onecloud/pkg/cloudprovider"
@@ -55,7 +58,7 @@ type SRegion struct {
ivpcs []cloudprovider.ICloudVpc
}
-func AllRegions(accessKey, secretKey string, config *cloudprovider.ProviderConfig) []SRegion {
+func AllRegions(accessKey, secretKey string, config *cloudprovider.ProviderConfig, debug bool) []SRegion {
regions := make([]SRegion, 0, len(regionList))
for id, name := range regionList {
regions = append(regions, SRegion{
@@ -65,10 +68,15 @@ func AllRegions(accessKey, secretKey string, config *cloudprovider.ProviderConfi
cpcfg: *config,
})
}
+ if debug {
+ log.SetLogLevel(log.Logger(), logrus.DebugLevel)
+ } else {
+ log.SetLogLevel(log.Logger(), logrus.InfoLevel)
+ }
return regions
}
-func NewRegion(regionId, accessKey, secretKey string, config *cloudprovider.ProviderConfig) *SRegion {
+func NewRegion(regionId, accessKey, secretKey string, config *cloudprovider.ProviderConfig, debug bool) *SRegion {
name, ok := regionList[regionId]
if !ok {
return nil
@@ -81,6 +89,11 @@ func NewRegion(regionId, accessKey, secretKey string, config *cloudprovider.Prov
if config != nil {
region.cpcfg = *config
}
+ if debug {
+ log.SetLogLevel(log.Logger(), logrus.DebugLevel)
+ } else {
+ log.SetLogLevel(log.Logger(), logrus.InfoLevel)
+ }
return region
}
diff --git a/pkg/multicloud/jdcloud/shell/balance.go b/pkg/multicloud/jdcloud/shell/balance.go
new file mode 100644
index 0000000000..a8e860d12e
--- /dev/null
+++ b/pkg/multicloud/jdcloud/shell/balance.go
@@ -0,0 +1,33 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 shell
+
+import (
+ "yunion.io/x/onecloud/pkg/multicloud/jdcloud"
+ "yunion.io/x/onecloud/pkg/util/shellutils"
+)
+
+func init() {
+ type BalanceShowOptions struct {
+ }
+ shellutils.R(&BalanceShowOptions{}, "balance-show", "Show balance", func(cli *jdcloud.SRegion, args *BalanceShowOptions) error {
+ balance, err := cli.DescribeAccountAmount()
+ if err != nil {
+ return err
+ }
+ printObject(balance)
+ return nil
+ })
+}
diff --git a/pkg/multicloud/jdcloud/shell/rds.go b/pkg/multicloud/jdcloud/shell/rds.go
new file mode 100644
index 0000000000..4324e6f1eb
--- /dev/null
+++ b/pkg/multicloud/jdcloud/shell/rds.go
@@ -0,0 +1,95 @@
+// Copyright 2019 Yunion
+//
+// 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
+//
+// 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 shell
+
+import (
+ "yunion.io/x/onecloud/pkg/multicloud/jdcloud"
+ "yunion.io/x/onecloud/pkg/util/shellutils"
+)
+
+func init() {
+ type DBInstanceListOptions struct {
+ PageNumber int `default:"1"`
+ PageSize int `default:"100"`
+ }
+
+ shellutils.R(&DBInstanceListOptions{}, "dbinstance-list", "List rds", func(cli *jdcloud.SRegion, args *DBInstanceListOptions) error {
+ dbs, _, err := cli.GetDBInstances(args.PageNumber, args.PageSize)
+ if err != nil {
+ return err
+ }
+ printList(dbs, 0, 0, 0, nil)
+ return nil
+ })
+
+ type DBInstanceShowOptions struct {
+ ID string
+ }
+
+ shellutils.R(&DBInstanceShowOptions{}, "dbinstance-show", "Show rds", func(cli *jdcloud.SRegion, args *DBInstanceShowOptions) error {
+ rds, err := cli.GetDBInstance(args.ID)
+ if err != nil {
+ return err
+ }
+ printObject(rds)
+ return nil
+ })
+
+ type DBInstanceAccountListOptions struct {
+ PageNumber int `default:"1"`
+ PageSize int `default:"100"`
+ ID string
+ }
+
+ shellutils.R(&DBInstanceAccountListOptions{}, "dbinstance-account-list", "List rds account", func(cli *jdcloud.SRegion, args *DBInstanceAccountListOptions) error {
+ accounts, _, err := cli.GetDBInstanceAccounts(args.ID, args.PageNumber, args.PageSize)
+ if err != nil {
+ return err
+ }
+ printList(accounts, 0, 0, 0, nil)
+ return nil
+ })
+
+ type DBInstanceDatabaseListOptions struct {
+ PageNumber int `default:"1"`
+ PageSize int `default:"100"`
+ ID string
+ }
+
+ shellutils.R(&DBInstanceDatabaseListOptions{}, "dbinstance-database-list", "List rds database", func(cli *jdcloud.SRegion, args *DBInstanceDatabaseListOptions) error {
+ databases, _, err := cli.GetDBInstanceDatabases(args.ID, args.PageNumber, args.PageSize)
+ if err != nil {
+ return err
+ }
+ printList(databases, 0, 0, 0, nil)
+ return nil
+ })
+
+ type DBInstanceBackupListOptions struct {
+ PageNumber int `default:"1"`
+ PageSize int `default:"100"`
+ ID string
+ }
+
+ shellutils.R(&DBInstanceBackupListOptions{}, "dbinstance-backup-list", "List rds backup", func(cli *jdcloud.SRegion, args *DBInstanceBackupListOptions) error {
+ backups, _, err := cli.GetDBInstanceBackups(args.ID, args.PageNumber, args.PageSize)
+ if err != nil {
+ return err
+ }
+ printList(backups, 0, 0, 0, nil)
+ return nil
+ })
+
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/DescribeAccountAmount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/DescribeAccountAmount.go
new file mode 100644
index 0000000000..0e14af66f6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/DescribeAccountAmount.go
@@ -0,0 +1,105 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeAccountAmountRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAccountAmountRequest(
+ regionId string,
+) *DescribeAccountAmountRequest {
+
+ return &DescribeAccountAmountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:describeAccountAmount",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ */
+func NewDescribeAccountAmountRequestWithAllParams(
+ regionId string,
+) *DescribeAccountAmountRequest {
+
+ return &DescribeAccountAmountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:describeAccountAmount",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAccountAmountRequestWithoutParam() *DescribeAccountAmountRequest {
+
+ return &DescribeAccountAmountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:describeAccountAmount",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeAccountAmountRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAccountAmountRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAccountAmountResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAccountAmountResult `json:"result"`
+}
+
+type DescribeAccountAmountResult struct {
+ TotalAmount string `json:"totalAmount"`
+ AvailableAmount string `json:"availableAmount"`
+ FrozenAmount string `json:"frozenAmount"`
+ EnableWithdrawAmount string `json:"enableWithdrawAmount"`
+ WithdrawingAmount string `json:"withdrawingAmount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/ModifyBalanceWarningInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/ModifyBalanceWarningInfo.go
new file mode 100644
index 0000000000..312b03fee4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis/ModifyBalanceWarningInfo.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ asset "github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models"
+)
+
+type ModifyBalanceWarningInfoRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* */
+ BalanceWarningInfoVo *asset.BalanceWarningInfoVo `json:"balanceWarningInfoVo"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param balanceWarningInfoVo: (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyBalanceWarningInfoRequest(
+ regionId string,
+ balanceWarningInfoVo *asset.BalanceWarningInfoVo,
+) *ModifyBalanceWarningInfoRequest {
+
+ return &ModifyBalanceWarningInfoRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:modifyBalanceWarningInfo",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BalanceWarningInfoVo: balanceWarningInfoVo,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param balanceWarningInfoVo: (Required)
+ */
+func NewModifyBalanceWarningInfoRequestWithAllParams(
+ regionId string,
+ balanceWarningInfoVo *asset.BalanceWarningInfoVo,
+) *ModifyBalanceWarningInfoRequest {
+
+ return &ModifyBalanceWarningInfoRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:modifyBalanceWarningInfo",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BalanceWarningInfoVo: balanceWarningInfoVo,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyBalanceWarningInfoRequestWithoutParam() *ModifyBalanceWarningInfoRequest {
+
+ return &ModifyBalanceWarningInfoRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/assets:modifyBalanceWarningInfo",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *ModifyBalanceWarningInfoRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param balanceWarningInfoVo: (Required) */
+func (r *ModifyBalanceWarningInfoRequest) SetBalanceWarningInfoVo(balanceWarningInfoVo *asset.BalanceWarningInfoVo) {
+ r.BalanceWarningInfoVo = balanceWarningInfoVo
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyBalanceWarningInfoRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyBalanceWarningInfoResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyBalanceWarningInfoResult `json:"result"`
+}
+
+type ModifyBalanceWarningInfoResult struct {
+ Status bool `json:"status"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/client/AssetClient.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/client/AssetClient.go
new file mode 100644
index 0000000000..7d6d7b205c
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/client/AssetClient.go
@@ -0,0 +1,99 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package client
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ asset "github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis"
+ "encoding/json"
+ "errors"
+)
+
+type AssetClient struct {
+ core.JDCloudClient
+}
+
+func NewAssetClient(credential *core.Credential) *AssetClient {
+ if credential == nil {
+ return nil
+ }
+
+ config := core.NewConfig()
+ config.SetEndpoint("asset.jdcloud-api.com")
+
+ return &AssetClient{
+ core.JDCloudClient{
+ Credential: *credential,
+ Config: *config,
+ ServiceName: "asset",
+ Revision: "0.0.3",
+ Logger: core.NewDefaultLogger(core.LogInfo),
+ }}
+}
+
+func (c *AssetClient) SetConfig(config *core.Config) {
+ c.Config = *config
+}
+
+func (c *AssetClient) SetLogger(logger core.Logger) {
+ c.Logger = logger
+}
+
+func (c *AssetClient) DisableLogger() {
+ c.Logger = core.NewDummyLogger()
+}
+
+/* 查询账户金额(总金额、可用金额、冻结金额、可提现金额、提现中金额) */
+func (c *AssetClient) DescribeAccountAmount(request *asset.DescribeAccountAmountRequest) (*asset.DescribeAccountAmountResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &asset.DescribeAccountAmountResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 设置余额预警信息 */
+func (c *AssetClient) ModifyBalanceWarningInfo(request *asset.ModifyBalanceWarningInfoRequest) (*asset.ModifyBalanceWarningInfoResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &asset.ModifyBalanceWarningInfoResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningInfoVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningInfoVo.go
new file mode 100644
index 0000000000..6e8118797c
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningInfoVo.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BalanceWarningInfoVo struct {
+
+ /* 余额预警状态:1-启用;2-停用(状态不为空时修改状态) (Optional) */
+ Status *string `json:"status"`
+
+ /* 余额预警阈值 (Optional) */
+ Threshold *string `json:"threshold"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningStatusVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningStatusVo.go
new file mode 100644
index 0000000000..a4211b01b9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningStatusVo.go
@@ -0,0 +1,24 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BalanceWarningStatusVo struct {
+
+ /* 余额预警状态 (Optional) */
+ Status string `json:"status"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningThresholdVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningThresholdVo.go
new file mode 100644
index 0000000000..78f5686185
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BalanceWarningThresholdVo.go
@@ -0,0 +1,24 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BalanceWarningThresholdVo struct {
+
+ /* 余额预警阈值 (Optional) */
+ Threshold string `json:"threshold"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BankInfoVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BankInfoVo.go
new file mode 100644
index 0000000000..b7cc80044f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/BankInfoVo.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BankInfoVo struct {
+
+ /* 银行代码 (Optional) */
+ Key string `json:"key"`
+
+ /* 是否可用:1-可用;0-不可用 (Optional) */
+ Value string `json:"value"`
+
+ /* 银行描述 (Optional) */
+ Description string `json:"description"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OffLineRemittanceBillInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OffLineRemittanceBillInfo.go
new file mode 100644
index 0000000000..a9149f8b23
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OffLineRemittanceBillInfo.go
@@ -0,0 +1,69 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type OffLineRemittanceBillInfo struct {
+
+ /* 当前id (Optional) */
+ Id string `json:"id"`
+
+ /* 用户pin (Optional) */
+ Pin string `json:"pin"`
+
+ /* 汇款人账号名称 (Optional) */
+ RemittorAccount string `json:"remittorAccount"`
+
+ /* 汇款人银行账号 (Optional) */
+ RemittorBankAccount string `json:"remittorBankAccount"`
+
+ /* 汇款金额 (Optional) */
+ RemitAmount string `json:"remitAmount"`
+
+ /* 汇款银行名称 (Optional) */
+ RemitBankName string `json:"remitBankName"`
+
+ /* 汇款时间 (Optional) */
+ RemitTime string `json:"remitTime"`
+
+ /* 联系人手机 (Optional) */
+ ContactsPhone string `json:"contactsPhone"`
+
+ /* 状态 (Optional) */
+ Status string `json:"status"`
+
+ /* 汇款底单扫描件 (Optional) */
+ RemitPicture string `json:"remitPicture"`
+
+ /* 创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 更新时间 (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* 备查id (Optional) */
+ ClaId string `json:"claId"`
+
+ /* 充值单号 (Optional) */
+ ErpOrderId string `json:"erpOrderId"`
+
+ /* 提交起始时间 (Optional) */
+ CreateBeginTime string `json:"createBeginTime"`
+
+ /* 提交截止时间 (Optional) */
+ CreateEndTime string `json:"createEndTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatement.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatement.go
new file mode 100644
index 0000000000..2bccd424d6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatement.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type OperatingStatement struct {
+
+ /* 用户pin (Optional) */
+ Pin string `json:"pin"`
+
+ /* 流水单号 (Optional) */
+ TradeNumber string `json:"tradeNumber"`
+
+ /* 交易类型:1-充值(11.在线充值 12.退单充值 13.线下汇款非人工认领 14.线下汇款人工认领 15.补单充值 16.退款充值);2-消费;3-提现 (Optional) */
+ TradeType string `json:"tradeType"`
+
+ /* 交易额 (Optional) */
+ TradeAmount string `json:"tradeAmount"`
+
+ /* 交易状态:1-成功 2-失败 31-提现全部成功 32-提现全部失败 33-提现部分成功 34-运营待审核 35-运营通过 36-运营驳回 37-处理中 38-预占充值单失败 (Optional) */
+ TradeStatus string `json:"tradeStatus"`
+
+ /* 创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 更新时间 (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* 可用金额 (Optional) */
+ AvailableAmount string `json:"availableAmount"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatementVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatementVo.go
new file mode 100644
index 0000000000..7c69c68812
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/OperatingStatementVo.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type OperatingStatementVo struct {
+
+ /* 交易类型:1-充值(11.在线充值 12.退单充值 13.线下汇款非人工认领 14.线下汇款人工认领 15.补单充值 16.退款充值);2-消费;3-提现 (Optional) */
+ TradeType string `json:"tradeType"`
+
+ /* 交易状态:1-成功 2-失败 31-提现全部成功 32-提现全部失败 33-提现部分成功 34-运营待审核 35-运营通过 36-运营驳回 37-处理中 38-预占充值单失败 (Optional) */
+ TradeStatus string `json:"tradeStatus"`
+
+ /* 开始时间 (Optional) */
+ BeginTime string `json:"beginTime"`
+
+ /* 结束时间 (Optional) */
+ EndTime string `json:"endTime"`
+
+ /* 当前页码 (Optional) */
+ PageIndex string `json:"pageIndex"`
+
+ /* 每页条数 (Optional) */
+ PageSize string `json:"pageSize"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PageInfoVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PageInfoVo.go
new file mode 100644
index 0000000000..168abbe3d1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PageInfoVo.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type PageInfoVo struct {
+
+ /* 当前页码 (Optional) */
+ CurrentPage int `json:"currentPage"`
+
+ /* 每页条数 (Optional) */
+ PageSize int `json:"pageSize"`
+
+ /* 总条数 (Optional) */
+ TotalRecord int `json:"totalRecord"`
+
+ /* 总页数 (Optional) */
+ TotalPage int `json:"totalPage"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PayTypeVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PayTypeVo.go
new file mode 100644
index 0000000000..7c972cc674
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/PayTypeVo.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type PayTypeVo struct {
+
+ /* 支付方式 (Optional) */
+ PayType string `json:"payType"`
+
+ /* 是否可用:1-可用;0-不可用 (Optional) */
+ IsEnable string `json:"isEnable"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReceiptsResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReceiptsResult.go
new file mode 100644
index 0000000000..8088680dc2
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReceiptsResult.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ReceiptsResult struct {
+
+ /* (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* (Optional) */
+ Fee float64 `json:"fee"`
+
+ /* (Optional) */
+ Pin string `json:"pin"`
+
+ /* (Optional) */
+ Status int `json:"status"`
+
+ /* (Optional) */
+ Trade_no string `json:"trade_no"`
+
+ /* (Optional) */
+ Trade_type int `json:"trade_type"`
+
+ /* (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* (Optional) */
+ UsableFee float64 `json:"usableFee"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/RechargeVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/RechargeVo.go
new file mode 100644
index 0000000000..de9aced21d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/RechargeVo.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type RechargeVo struct {
+
+ /* 充值方式 (Optional) */
+ RechargeType string `json:"rechargeType"`
+
+ /* 充值金额 (Optional) */
+ RechargeAmount string `json:"rechargeAmount"`
+
+ /* 银行代码 (Optional) */
+ BankCode string `json:"bankCode"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReduceBalanceParam.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReduceBalanceParam.go
new file mode 100644
index 0000000000..caeda776cb
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/ReduceBalanceParam.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ReduceBalanceParam struct {
+
+ /* 要扣减余额的pin */
+ Pin string `json:"pin"`
+
+ /* 当前余额 */
+ CurrentBalance string `json:"currentBalance"`
+
+ /* 要扣减的金额:不能大于当前余额,不能为0,不能为负数,只支持两位小数 */
+ ReducedAmount string `json:"reducedAmount"`
+
+ /* 扣减原因 */
+ ReducedReason string `json:"reducedReason"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/Voucher.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/Voucher.go
new file mode 100644
index 0000000000..04c0b30d08
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/Voucher.go
@@ -0,0 +1,63 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Voucher struct {
+
+ /* (Optional) */
+ CashingFee float64 `json:"cashingFee"`
+
+ /* (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* (Optional) */
+ EndTime string `json:"endTime"`
+
+ /* (Optional) */
+ ErpOrderId string `json:"erpOrderId"`
+
+ /* (Optional) */
+ Fee float64 `json:"fee"`
+
+ /* (Optional) */
+ Id int `json:"id"`
+
+ /* (Optional) */
+ PaymentChannel int `json:"paymentChannel"`
+
+ /* (Optional) */
+ PaymentNumber string `json:"paymentNumber"`
+
+ /* (Optional) */
+ Pin string `json:"pin"`
+
+ /* (Optional) */
+ RechargeType int `json:"rechargeType"`
+
+ /* (Optional) */
+ Status int `json:"status"`
+
+ /* (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* (Optional) */
+ UsableFee float64 `json:"usableFee"`
+
+ /* (Optional) */
+ UserAllFee float64 `json:"userAllFee"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedGroupVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedGroupVo.go
new file mode 100644
index 0000000000..bc9a7c56e4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedGroupVo.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WarnedGroupVo struct {
+
+ /* 联系组名称 (Optional) */
+ GroupName string `json:"groupName"`
+
+ /* 联系组手机 (Optional) */
+ Mobile string `json:"mobile"`
+
+ /* 联系组邮箱 (Optional) */
+ Email string `json:"email"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedUserVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedUserVo.go
new file mode 100644
index 0000000000..7798e5cdf6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarnedUserVo.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WarnedUserVo struct {
+
+ /* 联系人名称 (Optional) */
+ UserName string `json:"userName"`
+
+ /* 联系人手机 (Optional) */
+ Mobile string `json:"mobile"`
+
+ /* 联系人邮箱 (Optional) */
+ Email string `json:"email"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarningInfoVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarningInfoVo.go
new file mode 100644
index 0000000000..2e48aa78a8
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WarningInfoVo.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WarningInfoVo struct {
+
+ /* 余额预警状态:1-开启;2-关闭 (Optional) */
+ Status string `json:"status"`
+
+ /* 余额预警阈值 (Optional) */
+ Threshold string `json:"threshold"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawAmountVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawAmountVo.go
new file mode 100644
index 0000000000..a99ad7182e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawAmountVo.go
@@ -0,0 +1,24 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WithdrawAmountVo struct {
+
+ /* 提现金额 (Optional) */
+ Amount string `json:"amount"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsCondition.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsCondition.go
new file mode 100644
index 0000000000..dedf9ee95d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsCondition.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WithdrawalsCondition struct {
+
+ /* (Optional) */
+ BeginTime string `json:"beginTime"`
+
+ /* (Optional) */
+ EndTime string `json:"endTime"`
+
+ /* (Optional) */
+ PageNum int `json:"pageNum"`
+
+ /* (Optional) */
+ PageSize int `json:"pageSize"`
+
+ /* (Optional) */
+ Pin string `json:"pin"`
+
+ /* (Optional) */
+ Sort int `json:"sort"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsVo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsVo.go
new file mode 100644
index 0000000000..89a2f12db2
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models/WithdrawalsVo.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WithdrawalsVo struct {
+
+ /* (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* (Optional) */
+ Fee float64 `json:"fee"`
+
+ /* (Optional) */
+ Id int64 `json:"id"`
+
+ /* (Optional) */
+ Pin string `json:"pin"`
+
+ /* (Optional) */
+ Remark string `json:"remark"`
+
+ /* (Optional) */
+ Status int `json:"status"`
+
+ /* (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* (Optional) */
+ UsableFee float64 `json:"usableFee"`
+
+ /* (Optional) */
+ WithdrawalsId string `json:"withdrawalsId"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/AlterTableWithOnlineDDL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/AlterTableWithOnlineDDL.go
new file mode 100644
index 0000000000..093da1dfb7
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/AlterTableWithOnlineDDL.go
@@ -0,0 +1,156 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type AlterTableWithOnlineDDLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* DDL命令修改的库名 */
+ Database string `json:"database"`
+
+ /* DDL命令修改的表名 */
+ Table string `json:"table"`
+
+ /* 需要执行的的DDL命令 */
+ Command string `json:"command"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param database: DDL命令修改的库名 (Required)
+ * param table: DDL命令修改的表名 (Required)
+ * param command: 需要执行的的DDL命令 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewAlterTableWithOnlineDDLRequest(
+ regionId string,
+ instanceId string,
+ database string,
+ table string,
+ command string,
+) *AlterTableWithOnlineDDLRequest {
+
+ return &AlterTableWithOnlineDDLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:alterTableWithOnlineDDL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Database: database,
+ Table: table,
+ Command: command,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param database: DDL命令修改的库名 (Required)
+ * param table: DDL命令修改的表名 (Required)
+ * param command: 需要执行的的DDL命令 (Required)
+ */
+func NewAlterTableWithOnlineDDLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ database string,
+ table string,
+ command string,
+) *AlterTableWithOnlineDDLRequest {
+
+ return &AlterTableWithOnlineDDLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:alterTableWithOnlineDDL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Database: database,
+ Table: table,
+ Command: command,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewAlterTableWithOnlineDDLRequestWithoutParam() *AlterTableWithOnlineDDLRequest {
+
+ return &AlterTableWithOnlineDDLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:alterTableWithOnlineDDL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *AlterTableWithOnlineDDLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *AlterTableWithOnlineDDLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param database: DDL命令修改的库名(Required) */
+func (r *AlterTableWithOnlineDDLRequest) SetDatabase(database string) {
+ r.Database = database
+}
+
+/* param table: DDL命令修改的表名(Required) */
+func (r *AlterTableWithOnlineDDLRequest) SetTable(table string) {
+ r.Table = table
+}
+
+/* param command: 需要执行的的DDL命令(Required) */
+func (r *AlterTableWithOnlineDDLRequest) SetCommand(command string) {
+ r.Command = command
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r AlterTableWithOnlineDDLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type AlterTableWithOnlineDDLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result AlterTableWithOnlineDDLResult `json:"result"`
+}
+
+type AlterTableWithOnlineDDLResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ClearBinlogs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ClearBinlogs.go
new file mode 100644
index 0000000000..627f848548
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ClearBinlogs.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ClearBinlogsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewClearBinlogsRequest(
+ regionId string,
+ instanceId string,
+) *ClearBinlogsRequest {
+
+ return &ClearBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs:clearBinlogs",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewClearBinlogsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *ClearBinlogsRequest {
+
+ return &ClearBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs:clearBinlogs",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewClearBinlogsRequestWithoutParam() *ClearBinlogsRequest {
+
+ return &ClearBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs:clearBinlogs",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ClearBinlogsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ClearBinlogsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ClearBinlogsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ClearBinlogsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ClearBinlogsResult `json:"result"`
+}
+
+type ClearBinlogsResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CopyParameterGroup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CopyParameterGroup.go
new file mode 100644
index 0000000000..0e2c2ff060
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CopyParameterGroup.go
@@ -0,0 +1,140 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CopyParameterGroupRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* 参数组ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 参数组的名字 */
+ ParameterGroupName string `json:"parameterGroupName"`
+
+ /* 参数组的描述 (Optional) */
+ Description *string `json:"description"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: 参数组ID (Required)
+ * param parameterGroupName: 参数组的名字 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCopyParameterGroupRequest(
+ regionId string,
+ parameterGroupId string,
+ parameterGroupName string,
+) *CopyParameterGroupRequest {
+
+ return &CopyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups:copyParameterGroup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ ParameterGroupName: parameterGroupName,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: 参数组ID (Required)
+ * param parameterGroupName: 参数组的名字 (Required)
+ * param description: 参数组的描述 (Optional)
+ */
+func NewCopyParameterGroupRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+ parameterGroupName string,
+ description *string,
+) *CopyParameterGroupRequest {
+
+ return &CopyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups:copyParameterGroup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ ParameterGroupName: parameterGroupName,
+ Description: description,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCopyParameterGroupRequestWithoutParam() *CopyParameterGroupRequest {
+
+ return &CopyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups:copyParameterGroup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *CopyParameterGroupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: 参数组ID(Required) */
+func (r *CopyParameterGroupRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+/* param parameterGroupName: 参数组的名字(Required) */
+func (r *CopyParameterGroupRequest) SetParameterGroupName(parameterGroupName string) {
+ r.ParameterGroupName = parameterGroupName
+}
+
+/* param description: 参数组的描述(Optional) */
+func (r *CopyParameterGroupRequest) SetDescription(description string) {
+ r.Description = &description
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CopyParameterGroupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CopyParameterGroupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CopyParameterGroupResult `json:"result"`
+}
+
+type CopyParameterGroupResult struct {
+ ParameterGroupId string `json:"parameterGroupId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccount.go
new file mode 100644
index 0000000000..02997c4d03
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccount.go
@@ -0,0 +1,153 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateAccountRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ AccountName string `json:"accountName"`
+
+ /* 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ AccountPassword string `json:"accountPassword"`
+
+ /* 备注信息,仅支持PostgreSQL (Optional) */
+ Notes *string `json:"notes"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateAccountRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+) *CreateAccountRequest {
+
+ return &CreateAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param notes: 备注信息,仅支持PostgreSQL (Optional)
+ */
+func NewCreateAccountRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+ notes *string,
+) *CreateAccountRequest {
+
+ return &CreateAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ Notes: notes,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateAccountRequestWithoutParam() *CreateAccountRequest {
+
+ return &CreateAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateAccountRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateAccountRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateAccountRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateAccountRequest) SetAccountPassword(accountPassword string) {
+ r.AccountPassword = accountPassword
+}
+
+/* param notes: 备注信息,仅支持PostgreSQL(Optional) */
+func (r *CreateAccountRequest) SetNotes(notes string) {
+ r.Notes = ¬es
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateAccountRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateAccountResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateAccountResult `json:"result"`
+}
+
+type CreateAccountResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccountForOps.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccountForOps.go
new file mode 100644
index 0000000000..ab7acd73bd
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAccountForOps.go
@@ -0,0 +1,125 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateAccountForOpsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 运维账号到期时间,UTC时间格式 (Optional) */
+ ExpiredTime *string `json:"expiredTime"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateAccountForOpsRequest(
+ regionId string,
+ instanceId string,
+) *CreateAccountForOpsRequest {
+
+ return &CreateAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param expiredTime: 运维账号到期时间,UTC时间格式 (Optional)
+ */
+func NewCreateAccountForOpsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ expiredTime *string,
+) *CreateAccountForOpsRequest {
+
+ return &CreateAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ExpiredTime: expiredTime,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateAccountForOpsRequestWithoutParam() *CreateAccountForOpsRequest {
+
+ return &CreateAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateAccountForOpsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateAccountForOpsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param expiredTime: 运维账号到期时间,UTC时间格式(Optional) */
+func (r *CreateAccountForOpsRequest) SetExpiredTime(expiredTime string) {
+ r.ExpiredTime = &expiredTime
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateAccountForOpsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateAccountForOpsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateAccountForOpsResult `json:"result"`
+}
+
+type CreateAccountForOpsResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAudit.go
new file mode 100644
index 0000000000..850a6a9bb1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateAudit.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 要开启的审计选项,各个选项之间用英文逗号或空格进行分割,例如:DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROU等
各个数据库版本支持的审计选项可以通过接口[describeAuditOptions](./describeAuditOptions.md)获得,各个审计项的具体含义可以参看微软的官方文档 */
+ Enabled string `json:"enabled"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param enabled: 要开启的审计选项,各个选项之间用英文逗号或空格进行分割,例如:DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROU等
各个数据库版本支持的审计选项可以通过接口[describeAuditOptions](./describeAuditOptions.md)获得,各个审计项的具体含义可以参看微软的官方文档 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateAuditRequest(
+ regionId string,
+ instanceId string,
+ enabled string,
+) *CreateAuditRequest {
+
+ return &CreateAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Enabled: enabled,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param enabled: 要开启的审计选项,各个选项之间用英文逗号或空格进行分割,例如:DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROU等
各个数据库版本支持的审计选项可以通过接口[describeAuditOptions](./describeAuditOptions.md)获得,各个审计项的具体含义可以参看微软的官方文档 (Required)
+ */
+func NewCreateAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ enabled string,
+) *CreateAuditRequest {
+
+ return &CreateAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Enabled: enabled,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateAuditRequestWithoutParam() *CreateAuditRequest {
+
+ return &CreateAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param enabled: 要开启的审计选项,各个选项之间用英文逗号或空格进行分割,例如:DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROU等
各个数据库版本支持的审计选项可以通过接口[describeAuditOptions](./describeAuditOptions.md)获得,各个审计项的具体含义可以参看微软的官方文档(Required) */
+func (r *CreateAuditRequest) SetEnabled(enabled string) {
+ r.Enabled = enabled
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateAuditResult `json:"result"`
+}
+
+type CreateAuditResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackup.go
new file mode 100644
index 0000000000..469f2e5411
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackup.go
@@ -0,0 +1,124 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateBackupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS实例ID,唯一标识一个实例 (Optional) */
+ InstanceId *string `json:"instanceId"`
+
+ /* 备份规格 (Optional) */
+ BackupSpec *rds.BackupSpec `json:"backupSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateBackupRequest(
+ regionId string,
+) *CreateBackupRequest {
+
+ return &CreateBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS实例ID,唯一标识一个实例 (Optional)
+ * param backupSpec: 备份规格 (Optional)
+ */
+func NewCreateBackupRequestWithAllParams(
+ regionId string,
+ instanceId *string,
+ backupSpec *rds.BackupSpec,
+) *CreateBackupRequest {
+
+ return &CreateBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ BackupSpec: backupSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateBackupRequestWithoutParam() *CreateBackupRequest {
+
+ return &CreateBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateBackupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS实例ID,唯一标识一个实例(Optional) */
+func (r *CreateBackupRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = &instanceId
+}
+
+/* param backupSpec: 备份规格(Optional) */
+func (r *CreateBackupRequest) SetBackupSpec(backupSpec *rds.BackupSpec) {
+ r.BackupSpec = backupSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateBackupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateBackupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateBackupResult `json:"result"`
+}
+
+type CreateBackupResult struct {
+ BackupId string `json:"backupId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackupSynchronicity.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackupSynchronicity.go
new file mode 100644
index 0000000000..98788316b6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateBackupSynchronicity.go
@@ -0,0 +1,129 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateBackupSynchronicityRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 源实例ID */
+ InstanceId string `json:"instanceId"`
+
+ /* 备份同步的目标地域 */
+ DestRegion string `json:"destRegion"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: 源实例ID (Required)
+ * param destRegion: 备份同步的目标地域 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateBackupSynchronicityRequest(
+ regionId string,
+ instanceId string,
+ destRegion string,
+) *CreateBackupSynchronicityRequest {
+
+ return &CreateBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DestRegion: destRegion,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: 源实例ID (Required)
+ * param destRegion: 备份同步的目标地域 (Required)
+ */
+func NewCreateBackupSynchronicityRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ destRegion string,
+) *CreateBackupSynchronicityRequest {
+
+ return &CreateBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DestRegion: destRegion,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateBackupSynchronicityRequestWithoutParam() *CreateBackupSynchronicityRequest {
+
+ return &CreateBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateBackupSynchronicityRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: 源实例ID(Required) */
+func (r *CreateBackupSynchronicityRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param destRegion: 备份同步的目标地域(Required) */
+func (r *CreateBackupSynchronicityRequest) SetDestRegion(destRegion string) {
+ r.DestRegion = destRegion
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateBackupSynchronicityRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateBackupSynchronicityResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateBackupSynchronicityResult `json:"result"`
+}
+
+type CreateBackupSynchronicityResult struct {
+ ServiceId string `json:"serviceId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateDatabase.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateDatabase.go
new file mode 100644
index 0000000000..87a9034ee2
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateDatabase.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateDatabaseRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 数据库名,数据库名称的限制请参考[帮助中心文档](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ DbName string `json:"dbName"`
+
+ /* 数据库的字符集名,当前支持的字符集请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ CharacterSetName string `json:"characterSetName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 数据库名,数据库名称的限制请参考[帮助中心文档](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param characterSetName: 数据库的字符集名,当前支持的字符集请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateDatabaseRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+ characterSetName string,
+) *CreateDatabaseRequest {
+
+ return &CreateDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ CharacterSetName: characterSetName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 数据库名,数据库名称的限制请参考[帮助中心文档](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param characterSetName: 数据库的字符集名,当前支持的字符集请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ */
+func NewCreateDatabaseRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+ characterSetName string,
+) *CreateDatabaseRequest {
+
+ return &CreateDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ CharacterSetName: characterSetName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateDatabaseRequestWithoutParam() *CreateDatabaseRequest {
+
+ return &CreateDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateDatabaseRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateDatabaseRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 数据库名,数据库名称的限制请参考[帮助中心文档](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateDatabaseRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+/* param characterSetName: 数据库的字符集名,当前支持的字符集请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Required) */
+func (r *CreateDatabaseRequest) SetCharacterSetName(characterSetName string) {
+ r.CharacterSetName = characterSetName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateDatabaseRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateDatabaseResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateDatabaseResult `json:"result"`
+}
+
+type CreateDatabaseResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstance.go
new file mode 100644
index 0000000000..7ba25d9ae2
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstance.go
@@ -0,0 +1,117 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 新建实例规格 */
+ InstanceSpec *rds.DBInstanceSpec `json:"instanceSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateInstanceRequest(
+ regionId string,
+ instanceSpec *rds.DBInstanceSpec,
+) *CreateInstanceRequest {
+
+ return &CreateInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ */
+func NewCreateInstanceRequestWithAllParams(
+ regionId string,
+ instanceSpec *rds.DBInstanceSpec,
+) *CreateInstanceRequest {
+
+ return &CreateInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateInstanceRequestWithoutParam() *CreateInstanceRequest {
+
+ return &CreateInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceSpec: 新建实例规格(Required) */
+func (r *CreateInstanceRequest) SetInstanceSpec(instanceSpec *rds.DBInstanceSpec) {
+ r.InstanceSpec = instanceSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateInstanceResult `json:"result"`
+}
+
+type CreateInstanceResult struct {
+ InstanceId string `json:"instanceId"`
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTime.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTime.go
new file mode 100644
index 0000000000..ff7faadfeb
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTime.go
@@ -0,0 +1,145 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateInstanceByTimeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 根据源实例的哪个时间点创建新实例 */
+ RestoreTime string `json:"restoreTime"`
+
+ /* 新建实例规格 */
+ InstanceSpec *rds.RestoredNewDBInstanceSpec `json:"instanceSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateInstanceByTimeRequest(
+ regionId string,
+ instanceId string,
+ restoreTime string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceByTimeRequest {
+
+ return &CreateInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ RestoreTime: restoreTime,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ */
+func NewCreateInstanceByTimeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ restoreTime string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceByTimeRequest {
+
+ return &CreateInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ RestoreTime: restoreTime,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateInstanceByTimeRequestWithoutParam() *CreateInstanceByTimeRequest {
+
+ return &CreateInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateInstanceByTimeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateInstanceByTimeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param restoreTime: 根据源实例的哪个时间点创建新实例(Required) */
+func (r *CreateInstanceByTimeRequest) SetRestoreTime(restoreTime string) {
+ r.RestoreTime = restoreTime
+}
+
+/* param instanceSpec: 新建实例规格(Required) */
+func (r *CreateInstanceByTimeRequest) SetInstanceSpec(instanceSpec *rds.RestoredNewDBInstanceSpec) {
+ r.InstanceSpec = instanceSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateInstanceByTimeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateInstanceByTimeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateInstanceByTimeResult `json:"result"`
+}
+
+type CreateInstanceByTimeResult struct {
+ InstanceId string `json:"instanceId"`
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTimeInCrossRegion.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTimeInCrossRegion.go
new file mode 100644
index 0000000000..980c5f99d1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceByTimeInCrossRegion.go
@@ -0,0 +1,145 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateInstanceByTimeInCrossRegionRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 根据源实例的哪个时间点创建新实例 */
+ RestoreTime string `json:"restoreTime"`
+
+ /* 跨地域备份同步服务ID */
+ ServiceId string `json:"serviceId"`
+
+ /* 新建实例规格 */
+ InstanceSpec *rds.RestoredNewDBInstanceSpec `json:"instanceSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param serviceId: 跨地域备份同步服务ID (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateInstanceByTimeInCrossRegionRequest(
+ regionId string,
+ restoreTime string,
+ serviceId string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceByTimeInCrossRegionRequest {
+
+ return &CreateInstanceByTimeInCrossRegionRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities:createInstanceByTimeInCrossRegion",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ RestoreTime: restoreTime,
+ ServiceId: serviceId,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param serviceId: 跨地域备份同步服务ID (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ */
+func NewCreateInstanceByTimeInCrossRegionRequestWithAllParams(
+ regionId string,
+ restoreTime string,
+ serviceId string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceByTimeInCrossRegionRequest {
+
+ return &CreateInstanceByTimeInCrossRegionRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities:createInstanceByTimeInCrossRegion",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ RestoreTime: restoreTime,
+ ServiceId: serviceId,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateInstanceByTimeInCrossRegionRequestWithoutParam() *CreateInstanceByTimeInCrossRegionRequest {
+
+ return &CreateInstanceByTimeInCrossRegionRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities:createInstanceByTimeInCrossRegion",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateInstanceByTimeInCrossRegionRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param restoreTime: 根据源实例的哪个时间点创建新实例(Required) */
+func (r *CreateInstanceByTimeInCrossRegionRequest) SetRestoreTime(restoreTime string) {
+ r.RestoreTime = restoreTime
+}
+
+/* param serviceId: 跨地域备份同步服务ID(Required) */
+func (r *CreateInstanceByTimeInCrossRegionRequest) SetServiceId(serviceId string) {
+ r.ServiceId = serviceId
+}
+
+/* param instanceSpec: 新建实例规格(Required) */
+func (r *CreateInstanceByTimeInCrossRegionRequest) SetInstanceSpec(instanceSpec *rds.RestoredNewDBInstanceSpec) {
+ r.InstanceSpec = instanceSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateInstanceByTimeInCrossRegionRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateInstanceByTimeInCrossRegionResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateInstanceByTimeInCrossRegionResult `json:"result"`
+}
+
+type CreateInstanceByTimeInCrossRegionResult struct {
+ InstanceId string `json:"instanceId"`
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceFromBackup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceFromBackup.go
new file mode 100644
index 0000000000..67a56372c1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateInstanceFromBackup.go
@@ -0,0 +1,145 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateInstanceFromBackupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 备份ID */
+ BackupId string `json:"backupId"`
+
+ /* 标识是创建什么类型的实例,例如MySQL,SQL Server等,具体可参见文档[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
**注意:备份来源实例的engine和要创建的实例的engine必须一致** */
+ Engine string `json:"engine"`
+
+ /* 新建实例规格 */
+ InstanceSpec *rds.RestoredNewDBInstanceSpec `json:"instanceSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ * param engine: 标识是创建什么类型的实例,例如MySQL,SQL Server等,具体可参见文档[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
**注意:备份来源实例的engine和要创建的实例的engine必须一致** (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateInstanceFromBackupRequest(
+ regionId string,
+ backupId string,
+ engine string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceFromBackupRequest {
+
+ return &CreateInstanceFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:createInstanceFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ Engine: engine,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ * param engine: 标识是创建什么类型的实例,例如MySQL,SQL Server等,具体可参见文档[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
**注意:备份来源实例的engine和要创建的实例的engine必须一致** (Required)
+ * param instanceSpec: 新建实例规格 (Required)
+ */
+func NewCreateInstanceFromBackupRequestWithAllParams(
+ regionId string,
+ backupId string,
+ engine string,
+ instanceSpec *rds.RestoredNewDBInstanceSpec,
+) *CreateInstanceFromBackupRequest {
+
+ return &CreateInstanceFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:createInstanceFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ Engine: engine,
+ InstanceSpec: instanceSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateInstanceFromBackupRequestWithoutParam() *CreateInstanceFromBackupRequest {
+
+ return &CreateInstanceFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:createInstanceFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateInstanceFromBackupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param backupId: 备份ID(Required) */
+func (r *CreateInstanceFromBackupRequest) SetBackupId(backupId string) {
+ r.BackupId = backupId
+}
+
+/* param engine: 标识是创建什么类型的实例,例如MySQL,SQL Server等,具体可参见文档[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
**注意:备份来源实例的engine和要创建的实例的engine必须一致**(Required) */
+func (r *CreateInstanceFromBackupRequest) SetEngine(engine string) {
+ r.Engine = engine
+}
+
+/* param instanceSpec: 新建实例规格(Required) */
+func (r *CreateInstanceFromBackupRequest) SetInstanceSpec(instanceSpec *rds.RestoredNewDBInstanceSpec) {
+ r.InstanceSpec = instanceSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateInstanceFromBackupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateInstanceFromBackupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateInstanceFromBackupResult `json:"result"`
+}
+
+type CreateInstanceFromBackupResult struct {
+ InstanceId string `json:"instanceId"`
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateParameterGroup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateParameterGroup.go
new file mode 100644
index 0000000000..16f2074933
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateParameterGroup.go
@@ -0,0 +1,154 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateParameterGroupRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 参数组的名字 */
+ ParameterGroupName string `json:"parameterGroupName"`
+
+ /* 参数组的描述 (Optional) */
+ Description *string `json:"description"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param engine: 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ * param engineVersion: 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ * param parameterGroupName: 参数组的名字 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateParameterGroupRequest(
+ regionId string,
+ engine string,
+ engineVersion string,
+ parameterGroupName string,
+) *CreateParameterGroupRequest {
+
+ return &CreateParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ EngineVersion: engineVersion,
+ ParameterGroupName: parameterGroupName,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param engine: 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ * param engineVersion: 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ * param parameterGroupName: 参数组的名字 (Required)
+ * param description: 参数组的描述 (Optional)
+ */
+func NewCreateParameterGroupRequestWithAllParams(
+ regionId string,
+ engine string,
+ engineVersion string,
+ parameterGroupName string,
+ description *string,
+) *CreateParameterGroupRequest {
+
+ return &CreateParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ EngineVersion: engineVersion,
+ ParameterGroupName: parameterGroupName,
+ Description: description,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateParameterGroupRequestWithoutParam() *CreateParameterGroupRequest {
+
+ return &CreateParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *CreateParameterGroupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param engine: 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Required) */
+func (r *CreateParameterGroupRequest) SetEngine(engine string) {
+ r.Engine = engine
+}
+
+/* param engineVersion: 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Required) */
+func (r *CreateParameterGroupRequest) SetEngineVersion(engineVersion string) {
+ r.EngineVersion = engineVersion
+}
+
+/* param parameterGroupName: 参数组的名字(Required) */
+func (r *CreateParameterGroupRequest) SetParameterGroupName(parameterGroupName string) {
+ r.ParameterGroupName = parameterGroupName
+}
+
+/* param description: 参数组的描述(Optional) */
+func (r *CreateParameterGroupRequest) SetDescription(description string) {
+ r.Description = &description
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateParameterGroupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateParameterGroupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateParameterGroupResult `json:"result"`
+}
+
+type CreateParameterGroupResult struct {
+ ParameterGroupId string `json:"parameterGroupId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateROInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateROInstance.go
new file mode 100644
index 0000000000..c74f41ded8
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateROInstance.go
@@ -0,0 +1,249 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateROInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ InstanceName string `json:"instanceName"`
+
+ /* 只读实例规格FlavorId */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md),缺省值为:LOCAL_SSD (Optional) */
+ InstanceStorageType *string `json:"instanceStorageType"`
+
+ /* 磁盘空间 */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* 可用区ID */
+ AzId string `json:"azId"`
+
+ /* VPC的ID,如果没有填写就保持和常规实例一样的VPC (Optional) */
+ VpcId *string `json:"vpcId"`
+
+ /* 子网ID,如果没有填写就保持和常规实例一样的subnet (Optional) */
+ SubnetId *string `json:"subnetId"`
+
+ /* 参数组ID,缺省采用和常规实例一样的参数组 (Optional) */
+ ParameterGroup *string `json:"parameterGroup"`
+
+ /* 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密;true:加密。缺省为false。 (Optional) */
+ StorageEncrypted *bool `json:"storageEncrypted"`
+
+ /* 创建只读实例的数目,缺省为1 (Optional) */
+ Count *int `json:"count"`
+
+ /* 只读代理服务的ID,缺省值为 “NULL”,表示不绑定代理服务 (Optional) */
+ RoInstanceProxy *string `json:"roInstanceProxy"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param instanceName: 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param instanceClass: 只读实例规格FlavorId (Required)
+ * param instanceStorageGB: 磁盘空间 (Required)
+ * param azId: 可用区ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateROInstanceRequest(
+ regionId string,
+ instanceId string,
+ instanceName string,
+ instanceClass string,
+ instanceStorageGB int,
+ azId string,
+) *CreateROInstanceRequest {
+
+ return &CreateROInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createROInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ InstanceName: instanceName,
+ InstanceClass: instanceClass,
+ InstanceStorageGB: instanceStorageGB,
+ AzId: azId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param instanceName: 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param instanceClass: 只读实例规格FlavorId (Required)
+ * param instanceStorageType: 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md),缺省值为:LOCAL_SSD (Optional)
+ * param instanceStorageGB: 磁盘空间 (Required)
+ * param azId: 可用区ID (Required)
+ * param vpcId: VPC的ID,如果没有填写就保持和常规实例一样的VPC (Optional)
+ * param subnetId: 子网ID,如果没有填写就保持和常规实例一样的subnet (Optional)
+ * param parameterGroup: 参数组ID,缺省采用和常规实例一样的参数组 (Optional)
+ * param storageEncrypted: 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密;true:加密。缺省为false。 (Optional)
+ * param count: 创建只读实例的数目,缺省为1 (Optional)
+ * param roInstanceProxy: 只读代理服务的ID,缺省值为 “NULL”,表示不绑定代理服务 (Optional)
+ */
+func NewCreateROInstanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ instanceName string,
+ instanceClass string,
+ instanceStorageType *string,
+ instanceStorageGB int,
+ azId string,
+ vpcId *string,
+ subnetId *string,
+ parameterGroup *string,
+ storageEncrypted *bool,
+ count *int,
+ roInstanceProxy *string,
+) *CreateROInstanceRequest {
+
+ return &CreateROInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createROInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ InstanceName: instanceName,
+ InstanceClass: instanceClass,
+ InstanceStorageType: instanceStorageType,
+ InstanceStorageGB: instanceStorageGB,
+ AzId: azId,
+ VpcId: vpcId,
+ SubnetId: subnetId,
+ ParameterGroup: parameterGroup,
+ StorageEncrypted: storageEncrypted,
+ Count: count,
+ RoInstanceProxy: roInstanceProxy,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateROInstanceRequestWithoutParam() *CreateROInstanceRequest {
+
+ return &CreateROInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:createROInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateROInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateROInstanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param instanceName: 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateROInstanceRequest) SetInstanceName(instanceName string) {
+ r.InstanceName = instanceName
+}
+
+/* param instanceClass: 只读实例规格FlavorId(Required) */
+func (r *CreateROInstanceRequest) SetInstanceClass(instanceClass string) {
+ r.InstanceClass = instanceClass
+}
+
+/* param instanceStorageType: 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md),缺省值为:LOCAL_SSD(Optional) */
+func (r *CreateROInstanceRequest) SetInstanceStorageType(instanceStorageType string) {
+ r.InstanceStorageType = &instanceStorageType
+}
+
+/* param instanceStorageGB: 磁盘空间(Required) */
+func (r *CreateROInstanceRequest) SetInstanceStorageGB(instanceStorageGB int) {
+ r.InstanceStorageGB = instanceStorageGB
+}
+
+/* param azId: 可用区ID(Required) */
+func (r *CreateROInstanceRequest) SetAzId(azId string) {
+ r.AzId = azId
+}
+
+/* param vpcId: VPC的ID,如果没有填写就保持和常规实例一样的VPC(Optional) */
+func (r *CreateROInstanceRequest) SetVpcId(vpcId string) {
+ r.VpcId = &vpcId
+}
+
+/* param subnetId: 子网ID,如果没有填写就保持和常规实例一样的subnet(Optional) */
+func (r *CreateROInstanceRequest) SetSubnetId(subnetId string) {
+ r.SubnetId = &subnetId
+}
+
+/* param parameterGroup: 参数组ID,缺省采用和常规实例一样的参数组(Optional) */
+func (r *CreateROInstanceRequest) SetParameterGroup(parameterGroup string) {
+ r.ParameterGroup = ¶meterGroup
+}
+
+/* param storageEncrypted: 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密;true:加密。缺省为false。(Optional) */
+func (r *CreateROInstanceRequest) SetStorageEncrypted(storageEncrypted bool) {
+ r.StorageEncrypted = &storageEncrypted
+}
+
+/* param count: 创建只读实例的数目,缺省为1(Optional) */
+func (r *CreateROInstanceRequest) SetCount(count int) {
+ r.Count = &count
+}
+
+/* param roInstanceProxy: 只读代理服务的ID,缺省值为 “NULL”,表示不绑定代理服务(Optional) */
+func (r *CreateROInstanceRequest) SetRoInstanceProxy(roInstanceProxy string) {
+ r.RoInstanceProxy = &roInstanceProxy
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateROInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateROInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateROInstanceResult `json:"result"`
+}
+
+type CreateROInstanceResult struct {
+ RoInstanceId []string `json:"roInstanceId"`
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateReadWriteProxy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateReadWriteProxy.go
new file mode 100644
index 0000000000..54c2284c99
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateReadWriteProxy.go
@@ -0,0 +1,149 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type CreateReadWriteProxyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID */
+ InstanceId string `json:"instanceId"`
+
+ /* 延迟阈值,范围是0~1000,单位:秒,默认为100 (Optional) */
+ DelayThreshold *int `json:"delayThreshold"`
+
+ /* 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ LoadBalancerPolicy *string `json:"loadBalancerPolicy"`
+
+ /* 后端实例健康检查配置 (Optional) */
+ HealthCheckSpec *rds.HealthCheckSpec `json:"healthCheckSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateReadWriteProxyRequest(
+ regionId string,
+ instanceId string,
+) *CreateReadWriteProxyRequest {
+
+ return &CreateReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID (Required)
+ * param delayThreshold: 延迟阈值,范围是0~1000,单位:秒,默认为100 (Optional)
+ * param loadBalancerPolicy: 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional)
+ * param healthCheckSpec: 后端实例健康检查配置 (Optional)
+ */
+func NewCreateReadWriteProxyRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ delayThreshold *int,
+ loadBalancerPolicy *string,
+ healthCheckSpec *rds.HealthCheckSpec,
+) *CreateReadWriteProxyRequest {
+
+ return &CreateReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DelayThreshold: delayThreshold,
+ LoadBalancerPolicy: loadBalancerPolicy,
+ HealthCheckSpec: healthCheckSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateReadWriteProxyRequestWithoutParam() *CreateReadWriteProxyRequest {
+
+ return &CreateReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateReadWriteProxyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID(Required) */
+func (r *CreateReadWriteProxyRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param delayThreshold: 延迟阈值,范围是0~1000,单位:秒,默认为100(Optional) */
+func (r *CreateReadWriteProxyRequest) SetDelayThreshold(delayThreshold int) {
+ r.DelayThreshold = &delayThreshold
+}
+
+/* param loadBalancerPolicy: 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Optional) */
+func (r *CreateReadWriteProxyRequest) SetLoadBalancerPolicy(loadBalancerPolicy string) {
+ r.LoadBalancerPolicy = &loadBalancerPolicy
+}
+
+/* param healthCheckSpec: 后端实例健康检查配置(Optional) */
+func (r *CreateReadWriteProxyRequest) SetHealthCheckSpec(healthCheckSpec *rds.HealthCheckSpec) {
+ r.HealthCheckSpec = healthCheckSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateReadWriteProxyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateReadWriteProxyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateReadWriteProxyResult `json:"result"`
+}
+
+type CreateReadWriteProxyResult struct {
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateSuperAccount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateSuperAccount.go
new file mode 100644
index 0000000000..f4ae7abc79
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/CreateSuperAccount.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type CreateSuperAccountRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ AccountName string `json:"accountName"`
+
+ /* 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ AccountPassword string `json:"accountPassword"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewCreateSuperAccountRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+) *CreateSuperAccountRequest {
+
+ return &CreateSuperAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts:createSuperAccount",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ * param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ */
+func NewCreateSuperAccountRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+) *CreateSuperAccountRequest {
+
+ return &CreateSuperAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts:createSuperAccount",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewCreateSuperAccountRequestWithoutParam() *CreateSuperAccountRequest {
+
+ return &CreateSuperAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts:createSuperAccount",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *CreateSuperAccountRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *CreateSuperAccountRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个RDS实例中,账号名不能重复。账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateSuperAccountRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param accountPassword: 密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *CreateSuperAccountRequest) SetAccountPassword(accountPassword string) {
+ r.AccountPassword = accountPassword
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r CreateSuperAccountRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type CreateSuperAccountResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result CreateSuperAccountResult `json:"result"`
+}
+
+type CreateSuperAccountResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAccount.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAccount.go
new file mode 100644
index 0000000000..c470fc8671
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAccount.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteAccountRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteAccountRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+) *DeleteAccountRequest {
+
+ return &DeleteAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ */
+func NewDeleteAccountRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+) *DeleteAccountRequest {
+
+ return &DeleteAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteAccountRequestWithoutParam() *DeleteAccountRequest {
+
+ return &DeleteAccountRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteAccountRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DeleteAccountRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *DeleteAccountRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteAccountRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteAccountResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteAccountResult `json:"result"`
+}
+
+type DeleteAccountResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAudit.go
new file mode 100644
index 0000000000..6c10561e66
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteAudit.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteAuditRequest(
+ regionId string,
+ instanceId string,
+) *DeleteAuditRequest {
+
+ return &DeleteAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDeleteAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DeleteAuditRequest {
+
+ return &DeleteAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteAuditRequestWithoutParam() *DeleteAuditRequest {
+
+ return &DeleteAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DeleteAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteAuditResult `json:"result"`
+}
+
+type DeleteAuditResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackup.go
new file mode 100644
index 0000000000..b9b76bec1b
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackup.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteBackupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 备份ID */
+ BackupId string `json:"backupId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteBackupRequest(
+ regionId string,
+ backupId string,
+) *DeleteBackupRequest {
+
+ return &DeleteBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ */
+func NewDeleteBackupRequestWithAllParams(
+ regionId string,
+ backupId string,
+) *DeleteBackupRequest {
+
+ return &DeleteBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteBackupRequestWithoutParam() *DeleteBackupRequest {
+
+ return &DeleteBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteBackupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param backupId: 备份ID(Required) */
+func (r *DeleteBackupRequest) SetBackupId(backupId string) {
+ r.BackupId = backupId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteBackupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteBackupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteBackupResult `json:"result"`
+}
+
+type DeleteBackupResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackupSynchronicity.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackupSynchronicity.go
new file mode 100644
index 0000000000..743f6ca94a
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteBackupSynchronicity.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteBackupSynchronicityRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 跨地域备份同步服务ID */
+ ServiceId string `json:"serviceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param serviceId: 跨地域备份同步服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteBackupSynchronicityRequest(
+ regionId string,
+ serviceId string,
+) *DeleteBackupSynchronicityRequest {
+
+ return &DeleteBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities/{serviceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ServiceId: serviceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param serviceId: 跨地域备份同步服务ID (Required)
+ */
+func NewDeleteBackupSynchronicityRequestWithAllParams(
+ regionId string,
+ serviceId string,
+) *DeleteBackupSynchronicityRequest {
+
+ return &DeleteBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities/{serviceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ServiceId: serviceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteBackupSynchronicityRequestWithoutParam() *DeleteBackupSynchronicityRequest {
+
+ return &DeleteBackupSynchronicityRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities/{serviceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteBackupSynchronicityRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param serviceId: 跨地域备份同步服务ID(Required) */
+func (r *DeleteBackupSynchronicityRequest) SetServiceId(serviceId string) {
+ r.ServiceId = serviceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteBackupSynchronicityRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteBackupSynchronicityResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteBackupSynchronicityResult `json:"result"`
+}
+
+type DeleteBackupSynchronicityResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteDatabase.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteDatabase.go
new file mode 100644
index 0000000000..a28bbba0d6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteDatabase.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteDatabaseRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 库名称 */
+ DbName string `json:"dbName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteDatabaseRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+) *DeleteDatabaseRequest {
+
+ return &DeleteDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ */
+func NewDeleteDatabaseRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+) *DeleteDatabaseRequest {
+
+ return &DeleteDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteDatabaseRequestWithoutParam() *DeleteDatabaseRequest {
+
+ return &DeleteDatabaseRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteDatabaseRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DeleteDatabaseRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 库名称(Required) */
+func (r *DeleteDatabaseRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteDatabaseRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteDatabaseResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteDatabaseResult `json:"result"`
+}
+
+type DeleteDatabaseResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteImportFile.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteImportFile.go
new file mode 100644
index 0000000000..1cdf4ed36f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteImportFile.go
@@ -0,0 +1,139 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteImportFileRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 单库上云文件名 */
+ FileName string `json:"fileName"`
+
+ /* 共享文件的全局ID,可从上传文件查询接口describeImportFiles中获取;如果该文件不是共享文件,则无须输入该字段 (Optional) */
+ SharedFileGid *string `json:"sharedFileGid"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 单库上云文件名 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteImportFileRequest(
+ regionId string,
+ instanceId string,
+ fileName string,
+) *DeleteImportFileRequest {
+
+ return &DeleteImportFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 单库上云文件名 (Required)
+ * param sharedFileGid: 共享文件的全局ID,可从上传文件查询接口describeImportFiles中获取;如果该文件不是共享文件,则无须输入该字段 (Optional)
+ */
+func NewDeleteImportFileRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ fileName string,
+ sharedFileGid *string,
+) *DeleteImportFileRequest {
+
+ return &DeleteImportFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ SharedFileGid: sharedFileGid,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteImportFileRequestWithoutParam() *DeleteImportFileRequest {
+
+ return &DeleteImportFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteImportFileRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DeleteImportFileRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param fileName: 单库上云文件名(Required) */
+func (r *DeleteImportFileRequest) SetFileName(fileName string) {
+ r.FileName = fileName
+}
+
+/* param sharedFileGid: 共享文件的全局ID,可从上传文件查询接口describeImportFiles中获取;如果该文件不是共享文件,则无须输入该字段(Optional) */
+func (r *DeleteImportFileRequest) SetSharedFileGid(sharedFileGid string) {
+ r.SharedFileGid = &sharedFileGid
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteImportFileRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteImportFileResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteImportFileResult `json:"result"`
+}
+
+type DeleteImportFileResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteInstance.go
new file mode 100644
index 0000000000..b5aff3ffa6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteInstance.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteInstanceRequest(
+ regionId string,
+ instanceId string,
+) *DeleteInstanceRequest {
+
+ return &DeleteInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDeleteInstanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DeleteInstanceRequest {
+
+ return &DeleteInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteInstanceRequestWithoutParam() *DeleteInstanceRequest {
+
+ return &DeleteInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DeleteInstanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteInstanceResult `json:"result"`
+}
+
+type DeleteInstanceResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteParameterGroup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteParameterGroup.go
new file mode 100644
index 0000000000..0c9dcd0a21
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteParameterGroup.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteParameterGroupRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteParameterGroupRequest(
+ regionId string,
+ parameterGroupId string,
+) *DeleteParameterGroupRequest {
+
+ return &DeleteParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ */
+func NewDeleteParameterGroupRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+) *DeleteParameterGroupRequest {
+
+ return &DeleteParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteParameterGroupRequestWithoutParam() *DeleteParameterGroupRequest {
+
+ return &DeleteParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DeleteParameterGroupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *DeleteParameterGroupRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteParameterGroupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteParameterGroupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteParameterGroupResult `json:"result"`
+}
+
+type DeleteParameterGroupResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteReadWriteProxy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteReadWriteProxy.go
new file mode 100644
index 0000000000..7fb7b47814
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DeleteReadWriteProxy.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DeleteReadWriteProxyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 读写分离代理服务ID */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDeleteReadWriteProxyRequest(
+ regionId string,
+ readWriteProxyId string,
+) *DeleteReadWriteProxyRequest {
+
+ return &DeleteReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ */
+func NewDeleteReadWriteProxyRequestWithAllParams(
+ regionId string,
+ readWriteProxyId string,
+) *DeleteReadWriteProxyRequest {
+
+ return &DeleteReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDeleteReadWriteProxyRequestWithoutParam() *DeleteReadWriteProxyRequest {
+
+ return &DeleteReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "DELETE",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DeleteReadWriteProxyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param readWriteProxyId: 读写分离代理服务ID(Required) */
+func (r *DeleteReadWriteProxyRequest) SetReadWriteProxyId(readWriteProxyId string) {
+ r.ReadWriteProxyId = readWriteProxyId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DeleteReadWriteProxyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DeleteReadWriteProxyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DeleteReadWriteProxyResult `json:"result"`
+}
+
+type DeleteReadWriteProxyResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountPrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountPrivilege.go
new file mode 100644
index 0000000000..72b2385322
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountPrivilege.go
@@ -0,0 +1,131 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeAccountPrivilegeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAccountPrivilegeRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+) *DescribeAccountPrivilegeRequest {
+
+ return &DescribeAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ */
+func NewDescribeAccountPrivilegeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+) *DescribeAccountPrivilegeRequest {
+
+ return &DescribeAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAccountPrivilegeRequestWithoutParam() *DescribeAccountPrivilegeRequest {
+
+ return &DescribeAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAccountPrivilegeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAccountPrivilegeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *DescribeAccountPrivilegeRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAccountPrivilegeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAccountPrivilegeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAccountPrivilegeResult `json:"result"`
+}
+
+type DescribeAccountPrivilegeResult struct {
+ DatabasePrivileges []rds.DatabasePrivilege `json:"databasePrivileges"`
+ GlobalPrivileges []string `json:"globalPrivileges"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccounts.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccounts.go
new file mode 100644
index 0000000000..c6cc5e64ba
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccounts.go
@@ -0,0 +1,139 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeAccountsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAccountsRequest(
+ regionId string,
+ instanceId string,
+) *DescribeAccountsRequest {
+
+ return &DescribeAccountsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional)
+ */
+func NewDescribeAccountsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeAccountsRequest {
+
+ return &DescribeAccountsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAccountsRequestWithoutParam() *DescribeAccountsRequest {
+
+ return &DescribeAccountsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAccountsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAccountsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeAccountsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口(Optional) */
+func (r *DescribeAccountsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAccountsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAccountsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAccountsResult `json:"result"`
+}
+
+type DescribeAccountsResult struct {
+ Accounts []rds.Account `json:"accounts"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountsForOps.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountsForOps.go
new file mode 100644
index 0000000000..865e9867fa
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAccountsForOps.go
@@ -0,0 +1,117 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeAccountsForOpsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAccountsForOpsRequest(
+ regionId string,
+ instanceId string,
+) *DescribeAccountsForOpsRequest {
+
+ return &DescribeAccountsForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeAccountsForOpsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeAccountsForOpsRequest {
+
+ return &DescribeAccountsForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAccountsForOpsRequestWithoutParam() *DescribeAccountsForOpsRequest {
+
+ return &DescribeAccountsForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAccountsForOpsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAccountsForOpsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAccountsForOpsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAccountsForOpsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAccountsForOpsResult `json:"result"`
+}
+
+type DescribeAccountsForOpsResult struct {
+ Accounts []rds.DBInstanceAccountForOps `json:"accounts"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeActiveQueryPerformance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeActiveQueryPerformance.go
new file mode 100644
index 0000000000..5ff8d38120
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeActiveQueryPerformance.go
@@ -0,0 +1,163 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeActiveQueryPerformanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库 (Optional) */
+ Db *string `json:"db"`
+
+ /* 返回执行时间大于等于threshold的记录,默认10,单位秒 (Optional) */
+ Threshold *int `json:"threshold"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeActiveQueryPerformanceRequest(
+ regionId string,
+ instanceId string,
+) *DescribeActiveQueryPerformanceRequest {
+
+ return &DescribeActiveQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeActiveQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param db: 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库 (Optional)
+ * param threshold: 返回执行时间大于等于threshold的记录,默认10,单位秒 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数 (Optional)
+ */
+func NewDescribeActiveQueryPerformanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ db *string,
+ threshold *int,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeActiveQueryPerformanceRequest {
+
+ return &DescribeActiveQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeActiveQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Db: db,
+ Threshold: threshold,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeActiveQueryPerformanceRequestWithoutParam() *DescribeActiveQueryPerformanceRequest {
+
+ return &DescribeActiveQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeActiveQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeActiveQueryPerformanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeActiveQueryPerformanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param db: 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库(Optional) */
+func (r *DescribeActiveQueryPerformanceRequest) SetDb(db string) {
+ r.Db = &db
+}
+
+/* param threshold: 返回执行时间大于等于threshold的记录,默认10,单位秒(Optional) */
+func (r *DescribeActiveQueryPerformanceRequest) SetThreshold(threshold int) {
+ r.Threshold = &threshold
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeActiveQueryPerformanceRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数(Optional) */
+func (r *DescribeActiveQueryPerformanceRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeActiveQueryPerformanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeActiveQueryPerformanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeActiveQueryPerformanceResult `json:"result"`
+}
+
+type DescribeActiveQueryPerformanceResult struct {
+ ActiveQueryPerformanceResult []rds.ActiveQueryPerformanceResult `json:"activeQueryPerformanceResult"`
+ TotalCount int `json:"totalCount"`
+ PageNumber int `json:"pageNumber"`
+ PageSize int `json:"pageSize"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAudit.go
new file mode 100644
index 0000000000..334d775483
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAudit.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAuditRequest(
+ regionId string,
+ instanceId string,
+) *DescribeAuditRequest {
+
+ return &DescribeAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeAuditRequest {
+
+ return &DescribeAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAuditRequestWithoutParam() *DescribeAuditRequest {
+
+ return &DescribeAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAuditResult `json:"result"`
+}
+
+type DescribeAuditResult struct {
+ Enabled []string `json:"enabled"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditDownloadURL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditDownloadURL.go
new file mode 100644
index 0000000000..dbeb2087e4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditDownloadURL.go
@@ -0,0 +1,130 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeAuditDownloadURLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 审计文件名 */
+ FileName string `json:"fileName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 审计文件名 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAuditDownloadURLRequest(
+ regionId string,
+ instanceId string,
+ fileName string,
+) *DescribeAuditDownloadURLRequest {
+
+ return &DescribeAuditDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 审计文件名 (Required)
+ */
+func NewDescribeAuditDownloadURLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ fileName string,
+) *DescribeAuditDownloadURLRequest {
+
+ return &DescribeAuditDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAuditDownloadURLRequestWithoutParam() *DescribeAuditDownloadURLRequest {
+
+ return &DescribeAuditDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAuditDownloadURLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAuditDownloadURLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param fileName: 审计文件名(Required) */
+func (r *DescribeAuditDownloadURLRequest) SetFileName(fileName string) {
+ r.FileName = fileName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAuditDownloadURLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAuditDownloadURLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAuditDownloadURLResult `json:"result"`
+}
+
+type DescribeAuditDownloadURLResult struct {
+ PublicURL string `json:"publicURL"`
+ InternalURL string `json:"internalURL"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditFiles.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditFiles.go
new file mode 100644
index 0000000000..30a63fade1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditFiles.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeAuditFilesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAuditFilesRequest(
+ regionId string,
+ instanceId string,
+) *DescribeAuditFilesRequest {
+
+ return &DescribeAuditFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeAuditFilesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeAuditFilesRequest {
+
+ return &DescribeAuditFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAuditFilesRequestWithoutParam() *DescribeAuditFilesRequest {
+
+ return &DescribeAuditFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAuditFilesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAuditFilesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAuditFilesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAuditFilesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAuditFilesResult `json:"result"`
+}
+
+type DescribeAuditFilesResult struct {
+ AuditFiles []rds.AuditFile `json:"auditFiles"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditOptions.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditOptions.go
new file mode 100644
index 0000000000..a6a656c44c
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditOptions.go
@@ -0,0 +1,130 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeAuditOptionsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 审计选项类别,**大小写敏感**,目前支持两种类型:
(1)AuditOptions开头:在disalbed参数中返回SQL Server各个版本支持的所有选项,支持的名称为
AuditOptions2008R2
AuditOptions2012
AuditOptions2014
AuditOptions2016
例如输入参数为"AuditOptions2016",则在disabled字段中返回SQL Server 2016 版本所支持的所有的审计选项
(2)AuditDefault开头:京东云建议的默认选项,在enabled参数中返回建议开启的选项,在disabled参数中返回不开启的选项,支持的名称为:
AuditDefault2008R2
AuditDefault2012
AuditDefault2014
AuditDefault2016
例如输入参数为"AuditDefault2016",则在enabled字段返回SQL Server 2016 版本中京东云建议开启的审计选项,在disabled字段中返回建议不开启的选项 */
+ Name string `json:"name"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param name: 审计选项类别,**大小写敏感**,目前支持两种类型:
(1)AuditOptions开头:在disalbed参数中返回SQL Server各个版本支持的所有选项,支持的名称为
AuditOptions2008R2
AuditOptions2012
AuditOptions2014
AuditOptions2016
例如输入参数为"AuditOptions2016",则在disabled字段中返回SQL Server 2016 版本所支持的所有的审计选项
(2)AuditDefault开头:京东云建议的默认选项,在enabled参数中返回建议开启的选项,在disabled参数中返回不开启的选项,支持的名称为:
AuditDefault2008R2
AuditDefault2012
AuditDefault2014
AuditDefault2016
例如输入参数为"AuditDefault2016",则在enabled字段返回SQL Server 2016 版本中京东云建议开启的审计选项,在disabled字段中返回建议不开启的选项 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAuditOptionsRequest(
+ regionId string,
+ instanceId string,
+ name string,
+) *DescribeAuditOptionsRequest {
+
+ return &DescribeAuditOptionsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditOptions",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Name: name,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param name: 审计选项类别,**大小写敏感**,目前支持两种类型:
(1)AuditOptions开头:在disalbed参数中返回SQL Server各个版本支持的所有选项,支持的名称为
AuditOptions2008R2
AuditOptions2012
AuditOptions2014
AuditOptions2016
例如输入参数为"AuditOptions2016",则在disabled字段中返回SQL Server 2016 版本所支持的所有的审计选项
(2)AuditDefault开头:京东云建议的默认选项,在enabled参数中返回建议开启的选项,在disabled参数中返回不开启的选项,支持的名称为:
AuditDefault2008R2
AuditDefault2012
AuditDefault2014
AuditDefault2016
例如输入参数为"AuditDefault2016",则在enabled字段返回SQL Server 2016 版本中京东云建议开启的审计选项,在disabled字段中返回建议不开启的选项 (Required)
+ */
+func NewDescribeAuditOptionsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ name string,
+) *DescribeAuditOptionsRequest {
+
+ return &DescribeAuditOptionsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditOptions",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Name: name,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAuditOptionsRequestWithoutParam() *DescribeAuditOptionsRequest {
+
+ return &DescribeAuditOptionsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditOptions",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAuditOptionsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAuditOptionsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param name: 审计选项类别,**大小写敏感**,目前支持两种类型:
(1)AuditOptions开头:在disalbed参数中返回SQL Server各个版本支持的所有选项,支持的名称为
AuditOptions2008R2
AuditOptions2012
AuditOptions2014
AuditOptions2016
例如输入参数为"AuditOptions2016",则在disabled字段中返回SQL Server 2016 版本所支持的所有的审计选项
(2)AuditDefault开头:京东云建议的默认选项,在enabled参数中返回建议开启的选项,在disabled参数中返回不开启的选项,支持的名称为:
AuditDefault2008R2
AuditDefault2012
AuditDefault2014
AuditDefault2016
例如输入参数为"AuditDefault2016",则在enabled字段返回SQL Server 2016 版本中京东云建议开启的审计选项,在disabled字段中返回建议不开启的选项(Required) */
+func (r *DescribeAuditOptionsRequest) SetName(name string) {
+ r.Name = name
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAuditOptionsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAuditOptionsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAuditOptionsResult `json:"result"`
+}
+
+type DescribeAuditOptionsResult struct {
+ Enabled []string `json:"enabled"`
+ Disabled []string `json:"disabled"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditResult.go
new file mode 100644
index 0000000000..03e5f2cebc
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAuditResult.go
@@ -0,0 +1,210 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+ common "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+)
+
+type DescribeAuditResultRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间不能早于当前时间30天 */
+ StartTime string `json:"startTime"`
+
+ /* 查询截止时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不能超过3天 */
+ EndTime string `json:"endTime"`
+
+ /* 数据库名 (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 账号名 (Optional) */
+ AccountName *string `json:"accountName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞) (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、50 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+operation
+ (Optional) */
+ Filters []common.Filter `json:"filters"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间不能早于当前时间30天 (Required)
+ * param endTime: 查询截止时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不能超过3天 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAuditResultRequest(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+) *DescribeAuditResultRequest {
+
+ return &DescribeAuditResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间不能早于当前时间30天 (Required)
+ * param endTime: 查询截止时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不能超过3天 (Required)
+ * param dbName: 数据库名 (Optional)
+ * param accountName: 账号名 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞) (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、50 (Optional)
+ * param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+operation
+ (Optional)
+ */
+func NewDescribeAuditResultRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+ dbName *string,
+ accountName *string,
+ pageNumber *int,
+ pageSize *int,
+ filters []common.Filter,
+) *DescribeAuditResultRequest {
+
+ return &DescribeAuditResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ DbName: dbName,
+ AccountName: accountName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ Filters: filters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAuditResultRequestWithoutParam() *DescribeAuditResultRequest {
+
+ return &DescribeAuditResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:describeAuditResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAuditResultRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeAuditResultRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间不能早于当前时间30天(Required) */
+func (r *DescribeAuditResultRequest) SetStartTime(startTime string) {
+ r.StartTime = startTime
+}
+
+/* param endTime: 查询截止时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不能超过3天(Required) */
+func (r *DescribeAuditResultRequest) SetEndTime(endTime string) {
+ r.EndTime = endTime
+}
+
+/* param dbName: 数据库名(Optional) */
+func (r *DescribeAuditResultRequest) SetDbName(dbName string) {
+ r.DbName = &dbName
+}
+
+/* param accountName: 账号名(Optional) */
+func (r *DescribeAuditResultRequest) SetAccountName(accountName string) {
+ r.AccountName = &accountName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)(Optional) */
+func (r *DescribeAuditResultRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、50(Optional) */
+func (r *DescribeAuditResultRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+operation
+(Optional) */
+func (r *DescribeAuditResultRequest) SetFilters(filters []common.Filter) {
+ r.Filters = filters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAuditResultRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAuditResultResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAuditResultResult `json:"result"`
+}
+
+type DescribeAuditResultResult struct {
+ AuditResult []rds.AuditResult `json:"auditResult"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAzs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAzs.go
new file mode 100644
index 0000000000..0df12652d1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeAzs.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeAzsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ Engine string `json:"engine"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: RDS引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeAzsRequest(
+ regionId string,
+ engine string,
+) *DescribeAzsRequest {
+
+ return &DescribeAzsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/azs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: RDS引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Required)
+ */
+func NewDescribeAzsRequestWithAllParams(
+ regionId string,
+ engine string,
+) *DescribeAzsRequest {
+
+ return &DescribeAzsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/azs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeAzsRequestWithoutParam() *DescribeAzsRequest {
+
+ return &DescribeAzsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/azs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeAzsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param engine: RDS引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Required) */
+func (r *DescribeAzsRequest) SetEngine(engine string) {
+ r.Engine = engine
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeAzsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeAzsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeAzsResult `json:"result"`
+}
+
+type DescribeAzsResult struct {
+ Azs []string `json:"azs"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupCharge.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupCharge.go
new file mode 100644
index 0000000000..05000e4299
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupCharge.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
+)
+
+type DescribeBackupChargeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 实例引擎类型 */
+ Engine string `json:"engine"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: 实例引擎类型 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupChargeRequest(
+ regionId string,
+ engine string,
+) *DescribeBackupChargeRequest {
+
+ return &DescribeBackupChargeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:describeBackupCharge",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: 实例引擎类型 (Required)
+ */
+func NewDescribeBackupChargeRequestWithAllParams(
+ regionId string,
+ engine string,
+) *DescribeBackupChargeRequest {
+
+ return &DescribeBackupChargeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:describeBackupCharge",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupChargeRequestWithoutParam() *DescribeBackupChargeRequest {
+
+ return &DescribeBackupChargeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances:describeBackupCharge",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupChargeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param engine: 实例引擎类型(Required) */
+func (r *DescribeBackupChargeRequest) SetEngine(engine string) {
+ r.Engine = engine
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupChargeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupChargeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupChargeResult `json:"result"`
+}
+
+type DescribeBackupChargeResult struct {
+ Charge charge.Charge `json:"charge"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupDownloadURL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupDownloadURL.go
new file mode 100644
index 0000000000..772b326334
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupDownloadURL.go
@@ -0,0 +1,138 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeBackupDownloadURLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 备份ID */
+ BackupId string `json:"backupId"`
+
+ /* 文件名称
- MySQL:不支持该参数
- SQL Server:必须输入该参数,指定该备份中需要获取下载链接的文件名称。备份中的文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份 (Optional) */
+ FileName *string `json:"fileName"`
+
+ /* 指定下载链接的过期时间,单位秒, 取值范围为 1 ~ 86400 秒;支持 SQL Server:缺省为 86400 秒。支持 MySQL, Percona, MariaDB:缺省为 300 秒。 (Optional) */
+ UrlExpirationSecond *string `json:"urlExpirationSecond"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupDownloadURLRequest(
+ regionId string,
+ backupId string,
+) *DescribeBackupDownloadURLRequest {
+
+ return &DescribeBackupDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}:describeBackupDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param backupId: 备份ID (Required)
+ * param fileName: 文件名称
- MySQL:不支持该参数
- SQL Server:必须输入该参数,指定该备份中需要获取下载链接的文件名称。备份中的文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份 (Optional)
+ * param urlExpirationSecond: 指定下载链接的过期时间,单位秒, 取值范围为 1 ~ 86400 秒;支持 SQL Server:缺省为 86400 秒。支持 MySQL, Percona, MariaDB:缺省为 300 秒。 (Optional)
+ */
+func NewDescribeBackupDownloadURLRequestWithAllParams(
+ regionId string,
+ backupId string,
+ fileName *string,
+ urlExpirationSecond *string,
+) *DescribeBackupDownloadURLRequest {
+
+ return &DescribeBackupDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}:describeBackupDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ BackupId: backupId,
+ FileName: fileName,
+ UrlExpirationSecond: urlExpirationSecond,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupDownloadURLRequestWithoutParam() *DescribeBackupDownloadURLRequest {
+
+ return &DescribeBackupDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups/{backupId}:describeBackupDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupDownloadURLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param backupId: 备份ID(Required) */
+func (r *DescribeBackupDownloadURLRequest) SetBackupId(backupId string) {
+ r.BackupId = backupId
+}
+
+/* param fileName: 文件名称
- MySQL:不支持该参数
- SQL Server:必须输入该参数,指定该备份中需要获取下载链接的文件名称。备份中的文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份(Optional) */
+func (r *DescribeBackupDownloadURLRequest) SetFileName(fileName string) {
+ r.FileName = &fileName
+}
+
+/* param urlExpirationSecond: 指定下载链接的过期时间,单位秒, 取值范围为 1 ~ 86400 秒;支持 SQL Server:缺省为 86400 秒。支持 MySQL, Percona, MariaDB:缺省为 300 秒。(Optional) */
+func (r *DescribeBackupDownloadURLRequest) SetUrlExpirationSecond(urlExpirationSecond string) {
+ r.UrlExpirationSecond = &urlExpirationSecond
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupDownloadURLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupDownloadURLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupDownloadURLResult `json:"result"`
+}
+
+type DescribeBackupDownloadURLResult struct {
+ PublicURL string `json:"publicURL"`
+ InternalURL string `json:"internalURL"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupPolicy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupPolicy.go
new file mode 100644
index 0000000000..10407ec9fc
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupPolicy.go
@@ -0,0 +1,121 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeBackupPolicyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupPolicyRequest(
+ regionId string,
+ instanceId string,
+) *DescribeBackupPolicyRequest {
+
+ return &DescribeBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupPolicy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeBackupPolicyRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeBackupPolicyRequest {
+
+ return &DescribeBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupPolicy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupPolicyRequestWithoutParam() *DescribeBackupPolicyRequest {
+
+ return &DescribeBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupPolicy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupPolicyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeBackupPolicyRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupPolicyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupPolicyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupPolicyResult `json:"result"`
+}
+
+type DescribeBackupPolicyResult struct {
+ StartWindow string `json:"startWindow"`
+ RetentionPeriod int `json:"retentionPeriod"`
+ BinlogRetentionPeriod int `json:"binlogRetentionPeriod"`
+ BinlogUsageLimit int `json:"binlogUsageLimit"`
+ CycleMode int `json:"cycleMode"`
+ BackupBinlog string `json:"backupBinlog"`
+ EnhancedBackup string `json:"enhancedBackup"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSpace.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSpace.go
new file mode 100644
index 0000000000..f21c84383b
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSpace.go
@@ -0,0 +1,117 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeBackupSpaceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupSpaceRequest(
+ regionId string,
+ instanceId string,
+) *DescribeBackupSpaceRequest {
+
+ return &DescribeBackupSpaceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupSpace",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeBackupSpaceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeBackupSpaceRequest {
+
+ return &DescribeBackupSpaceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupSpace",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupSpaceRequestWithoutParam() *DescribeBackupSpaceRequest {
+
+ return &DescribeBackupSpaceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeBackupSpace",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupSpaceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeBackupSpaceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupSpaceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupSpaceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupSpaceResult `json:"result"`
+}
+
+type DescribeBackupSpaceResult struct {
+ TotalFreeSpace float64 `json:"totalFreeSpace"`
+ TotalUsedSpace float64 `json:"totalUsedSpace"`
+ Current float64 `json:"current"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSynchronicities.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSynchronicities.go
new file mode 100644
index 0000000000..cc8648a396
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackupSynchronicities.go
@@ -0,0 +1,125 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeBackupSynchronicitiesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[1,∞),页码超过总页数时,显示最后一页,用于查询列表的接口 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupSynchronicitiesRequest(
+ regionId string,
+) *DescribeBackupSynchronicitiesRequest {
+
+ return &DescribeBackupSynchronicitiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[1,∞),页码超过总页数时,显示最后一页,用于查询列表的接口 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional)
+ */
+func NewDescribeBackupSynchronicitiesRequestWithAllParams(
+ regionId string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeBackupSynchronicitiesRequest {
+
+ return &DescribeBackupSynchronicitiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupSynchronicitiesRequestWithoutParam() *DescribeBackupSynchronicitiesRequest {
+
+ return &DescribeBackupSynchronicitiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backupSynchronicities",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupSynchronicitiesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[1,∞),页码超过总页数时,显示最后一页,用于查询列表的接口(Optional) */
+func (r *DescribeBackupSynchronicitiesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Optional) */
+func (r *DescribeBackupSynchronicitiesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupSynchronicitiesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupSynchronicitiesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupSynchronicitiesResult `json:"result"`
+}
+
+type DescribeBackupSynchronicitiesResult struct {
+ BackupSynchronicities []rds.BackupSynchronicity `json:"backupSynchronicities"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackups.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackups.go
new file mode 100644
index 0000000000..3c6fbe65f3
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBackups.go
@@ -0,0 +1,200 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeBackupsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS实例ID,唯一标识一个实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 查询备份类型,0为手动备份,1为自动备份,不传表示全部.
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional) */
+ Auto *int `json:"auto"`
+
+ /* 返回backupType等于指定值的备份列表。full为全量备份,diff为增量备份
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional) */
+ BackupTypeFilter *string `json:"backupTypeFilter"`
+
+ /* 返回dbName等于指定值的备份列表,不传或为空返回全部
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional) */
+ DbNameFilter *string `json:"dbNameFilter"`
+
+ /* 返回备份开始时间大于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional) */
+ BackupTimeRangeStartFilter *string `json:"backupTimeRangeStartFilter"`
+
+ /* 返回备份开始时间小于等于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional) */
+ BackupTimeRangeEndFilter *string `json:"backupTimeRangeEndFilter"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 */
+ PageNumber int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 */
+ PageSize int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS实例ID,唯一标识一个实例 (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Required)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBackupsRequest(
+ regionId string,
+ instanceId string,
+ pageNumber int,
+ pageSize int,
+) *DescribeBackupsRequest {
+
+ return &DescribeBackupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS实例ID,唯一标识一个实例 (Required)
+ * param auto: 查询备份类型,0为手动备份,1为自动备份,不传表示全部.
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional)
+ * param backupTypeFilter: 返回backupType等于指定值的备份列表。full为全量备份,diff为增量备份
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional)
+ * param dbNameFilter: 返回dbName等于指定值的备份列表,不传或为空返回全部
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional)
+ * param backupTimeRangeStartFilter: 返回备份开始时间大于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional)
+ * param backupTimeRangeEndFilter: 返回备份开始时间小于等于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代** (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Required)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Required)
+ */
+func NewDescribeBackupsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ auto *int,
+ backupTypeFilter *string,
+ dbNameFilter *string,
+ backupTimeRangeStartFilter *string,
+ backupTimeRangeEndFilter *string,
+ pageNumber int,
+ pageSize int,
+) *DescribeBackupsRequest {
+
+ return &DescribeBackupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Auto: auto,
+ BackupTypeFilter: backupTypeFilter,
+ DbNameFilter: dbNameFilter,
+ BackupTimeRangeStartFilter: backupTimeRangeStartFilter,
+ BackupTimeRangeEndFilter: backupTimeRangeEndFilter,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBackupsRequestWithoutParam() *DescribeBackupsRequest {
+
+ return &DescribeBackupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/backups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBackupsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS实例ID,唯一标识一个实例(Required) */
+func (r *DescribeBackupsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param auto: 查询备份类型,0为手动备份,1为自动备份,不传表示全部.
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代**(Optional) */
+func (r *DescribeBackupsRequest) SetAuto(auto int) {
+ r.Auto = &auto
+}
+
+/* param backupTypeFilter: 返回backupType等于指定值的备份列表。full为全量备份,diff为增量备份
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代**(Optional) */
+func (r *DescribeBackupsRequest) SetBackupTypeFilter(backupTypeFilter string) {
+ r.BackupTypeFilter = &backupTypeFilter
+}
+
+/* param dbNameFilter: 返回dbName等于指定值的备份列表,不传或为空返回全部
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代**(Optional) */
+func (r *DescribeBackupsRequest) SetDbNameFilter(dbNameFilter string) {
+ r.DbNameFilter = &dbNameFilter
+}
+
+/* param backupTimeRangeStartFilter: 返回备份开始时间大于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代**(Optional) */
+func (r *DescribeBackupsRequest) SetBackupTimeRangeStartFilter(backupTimeRangeStartFilter string) {
+ r.BackupTimeRangeStartFilter = &backupTimeRangeStartFilter
+}
+
+/* param backupTimeRangeEndFilter: 返回备份开始时间小于等于该时间的备份列表
**- 测试参数,仅支持SQL Server,后续可能被其他参数取代**(Optional) */
+func (r *DescribeBackupsRequest) SetBackupTimeRangeEndFilter(backupTimeRangeEndFilter string) {
+ r.BackupTimeRangeEndFilter = &backupTimeRangeEndFilter
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Required) */
+func (r *DescribeBackupsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Required) */
+func (r *DescribeBackupsRequest) SetPageSize(pageSize int) {
+ r.PageSize = pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBackupsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBackupsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBackupsResult `json:"result"`
+}
+
+type DescribeBackupsResult struct {
+ Backup []rds.Backup `json:"backup"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogDownloadURL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogDownloadURL.go
new file mode 100644
index 0000000000..67eee2a309
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogDownloadURL.go
@@ -0,0 +1,141 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeBinlogDownloadURLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* binlog的备份ID,可以通过describeBinlogs获得 */
+ BinlogBackupId string `json:"binlogBackupId"`
+
+ /* 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒 (Optional) */
+ Seconds *int `json:"seconds"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param binlogBackupId: binlog的备份ID,可以通过describeBinlogs获得 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBinlogDownloadURLRequest(
+ regionId string,
+ instanceId string,
+ binlogBackupId string,
+) *DescribeBinlogDownloadURLRequest {
+
+ return &DescribeBinlogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs/{binlogBackupId}:describeBinlogDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ BinlogBackupId: binlogBackupId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param binlogBackupId: binlog的备份ID,可以通过describeBinlogs获得 (Required)
+ * param seconds: 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒 (Optional)
+ */
+func NewDescribeBinlogDownloadURLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ binlogBackupId string,
+ seconds *int,
+) *DescribeBinlogDownloadURLRequest {
+
+ return &DescribeBinlogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs/{binlogBackupId}:describeBinlogDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ BinlogBackupId: binlogBackupId,
+ Seconds: seconds,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBinlogDownloadURLRequestWithoutParam() *DescribeBinlogDownloadURLRequest {
+
+ return &DescribeBinlogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs/{binlogBackupId}:describeBinlogDownloadURL",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBinlogDownloadURLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeBinlogDownloadURLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param binlogBackupId: binlog的备份ID,可以通过describeBinlogs获得(Required) */
+func (r *DescribeBinlogDownloadURLRequest) SetBinlogBackupId(binlogBackupId string) {
+ r.BinlogBackupId = binlogBackupId
+}
+
+/* param seconds: 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒(Optional) */
+func (r *DescribeBinlogDownloadURLRequest) SetSeconds(seconds int) {
+ r.Seconds = &seconds
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBinlogDownloadURLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBinlogDownloadURLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBinlogDownloadURLResult `json:"result"`
+}
+
+type DescribeBinlogDownloadURLResult struct {
+ PublicURL string `json:"publicURL"`
+ InternalURL string `json:"internalURL"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogs.go
new file mode 100644
index 0000000000..1129cf9f16
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeBinlogs.go
@@ -0,0 +1,161 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeBinlogsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天 (Optional) */
+ StartTime *string `json:"startTime"`
+
+ /* 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天 (Optional) */
+ EndTime *string `json:"endTime"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeBinlogsRequest(
+ regionId string,
+ instanceId string,
+) *DescribeBinlogsRequest {
+
+ return &DescribeBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional)
+ * param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天 (Optional)
+ * param endTime: 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天 (Optional)
+ */
+func NewDescribeBinlogsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ pageNumber *int,
+ pageSize *int,
+ startTime *string,
+ endTime *string,
+) *DescribeBinlogsRequest {
+
+ return &DescribeBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeBinlogsRequestWithoutParam() *DescribeBinlogsRequest {
+
+ return &DescribeBinlogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/binlogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeBinlogsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeBinlogsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeBinlogsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Optional) */
+func (r *DescribeBinlogsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天(Optional) */
+func (r *DescribeBinlogsRequest) SetStartTime(startTime string) {
+ r.StartTime = &startTime
+}
+
+/* param endTime: 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到结束时间不超过三天(Optional) */
+func (r *DescribeBinlogsRequest) SetEndTime(endTime string) {
+ r.EndTime = &endTime
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeBinlogsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeBinlogsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeBinlogsResult `json:"result"`
+}
+
+type DescribeBinlogsResult struct {
+ TotalCount int `json:"totalCount"`
+ Binlogs []rds.Binlog `json:"binlogs"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeDatabases.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeDatabases.go
new file mode 100644
index 0000000000..07dd588370
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeDatabases.go
@@ -0,0 +1,150 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeDatabasesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 数据库名。如果不指定数据库名,则返回所有数据库列表
- **MySQL:不支持该字段**
- **SQL Server:支持该字段** (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeDatabasesRequest(
+ regionId string,
+ instanceId string,
+) *DescribeDatabasesRequest {
+
+ return &DescribeDatabasesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 数据库名。如果不指定数据库名,则返回所有数据库列表
- **MySQL:不支持该字段**
- **SQL Server:支持该字段** (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional)
+ */
+func NewDescribeDatabasesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName *string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeDatabasesRequest {
+
+ return &DescribeDatabasesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeDatabasesRequestWithoutParam() *DescribeDatabasesRequest {
+
+ return &DescribeDatabasesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeDatabasesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeDatabasesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 数据库名。如果不指定数据库名,则返回所有数据库列表
- **MySQL:不支持该字段**
- **SQL Server:支持该字段**(Optional) */
+func (r *DescribeDatabasesRequest) SetDbName(dbName string) {
+ r.DbName = &dbName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeDatabasesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口(Optional) */
+func (r *DescribeDatabasesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeDatabasesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeDatabasesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeDatabasesResult `json:"result"`
+}
+
+type DescribeDatabasesResult struct {
+ Databases []rds.Database `json:"databases"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLog.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLog.go
new file mode 100644
index 0000000000..b19fc8d2c6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLog.go
@@ -0,0 +1,178 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeErrorLogRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ StartTime string `json:"startTime"`
+
+ /* 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ EndTime string `json:"endTime"`
+
+ /* 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeErrorLogRequest(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+) *DescribeErrorLogRequest {
+
+ return &DescribeErrorLogRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeErrorLog",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional)
+ */
+func NewDescribeErrorLogRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+ dbName *string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeErrorLogRequest {
+
+ return &DescribeErrorLogRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeErrorLog",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ DbName: dbName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeErrorLogRequestWithoutParam() *DescribeErrorLogRequest {
+
+ return &DescribeErrorLogRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeErrorLog",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeErrorLogRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeErrorLogRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeErrorLogRequest) SetStartTime(startTime string) {
+ r.StartTime = startTime
+}
+
+/* param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeErrorLogRequest) SetEndTime(endTime string) {
+ r.EndTime = endTime
+}
+
+/* param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志(Optional) */
+func (r *DescribeErrorLogRequest) SetDbName(dbName string) {
+ r.DbName = &dbName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeErrorLogRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Optional) */
+func (r *DescribeErrorLogRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeErrorLogRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeErrorLogResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeErrorLogResult `json:"result"`
+}
+
+type DescribeErrorLogResult struct {
+ ErrorLogs []rds.ErrorLogDigest `json:"errorLogs"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLogs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLogs.go
new file mode 100644
index 0000000000..29aa0063f4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeErrorLogs.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeErrorLogsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeErrorLogsRequest(
+ regionId string,
+ instanceId string,
+) *DescribeErrorLogsRequest {
+
+ return &DescribeErrorLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/errorLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeErrorLogsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeErrorLogsRequest {
+
+ return &DescribeErrorLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/errorLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeErrorLogsRequestWithoutParam() *DescribeErrorLogsRequest {
+
+ return &DescribeErrorLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/errorLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeErrorLogsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeErrorLogsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeErrorLogsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeErrorLogsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeErrorLogsResult `json:"result"`
+}
+
+type DescribeErrorLogsResult struct {
+ ErrorLogs []rds.ErrorLog `json:"errorLogs"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeImportFiles.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeImportFiles.go
new file mode 100644
index 0000000000..f559687fb9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeImportFiles.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeImportFilesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeImportFilesRequest(
+ regionId string,
+ instanceId string,
+) *DescribeImportFilesRequest {
+
+ return &DescribeImportFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeImportFilesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeImportFilesRequest {
+
+ return &DescribeImportFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeImportFilesRequestWithoutParam() *DescribeImportFilesRequest {
+
+ return &DescribeImportFilesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeImportFilesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeImportFilesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeImportFilesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeImportFilesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeImportFilesResult `json:"result"`
+}
+
+type DescribeImportFilesResult struct {
+ ImportFiles []rds.ImportFile `json:"importFiles"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIndexPerformance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIndexPerformance.go
new file mode 100644
index 0000000000..21f8e21f51
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIndexPerformance.go
@@ -0,0 +1,167 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeIndexPerformanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
Missing:缺失索引
Size:索引大小,单位KB
Updates:索引更新次数
Scans:表扫描次数
Used:最少使用
*/
+ QueryType string `json:"queryType"`
+
+ /* 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库 (Optional) */
+ Db *string `json:"db"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
Missing:缺失索引
Size:索引大小,单位KB
Updates:索引更新次数
Scans:表扫描次数
Used:最少使用
(Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeIndexPerformanceRequest(
+ regionId string,
+ instanceId string,
+ queryType string,
+) *DescribeIndexPerformanceRequest {
+
+ return &DescribeIndexPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeIndexPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ QueryType: queryType,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
Missing:缺失索引
Size:索引大小,单位KB
Updates:索引更新次数
Scans:表扫描次数
Used:最少使用
(Required)
+ * param db: 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口 (Optional)
+ */
+func NewDescribeIndexPerformanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ queryType string,
+ db *string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeIndexPerformanceRequest {
+
+ return &DescribeIndexPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeIndexPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ QueryType: queryType,
+ Db: db,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeIndexPerformanceRequestWithoutParam() *DescribeIndexPerformanceRequest {
+
+ return &DescribeIndexPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeIndexPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeIndexPerformanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeIndexPerformanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
Missing:缺失索引
Size:索引大小,单位KB
Updates:索引更新次数
Scans:表扫描次数
Used:最少使用
(Required) */
+func (r *DescribeIndexPerformanceRequest) SetQueryType(queryType string) {
+ r.QueryType = queryType
+}
+
+/* param db: 需要查询的数据库名,多个数据库名之间用英文逗号分隔,默认所有数据库(Optional) */
+func (r *DescribeIndexPerformanceRequest) SetDb(db string) {
+ r.Db = &db
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeIndexPerformanceRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口(Optional) */
+func (r *DescribeIndexPerformanceRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeIndexPerformanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeIndexPerformanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeIndexPerformanceResult `json:"result"`
+}
+
+type DescribeIndexPerformanceResult struct {
+ MissingIndexResult []rds.MissingIndexResult `json:"missingIndexResult"`
+ IndexPerformanceResult []rds.IndexPerformanceResult `json:"indexPerformanceResult"`
+ TotalCount int `json:"totalCount"`
+ PageNumber int `json:"pageNumber"`
+ PageSize int `json:"pageSize"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstanceAttributes.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstanceAttributes.go
new file mode 100644
index 0000000000..a0abf0c268
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstanceAttributes.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeInstanceAttributesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeInstanceAttributesRequest(
+ regionId string,
+ instanceId string,
+) *DescribeInstanceAttributesRequest {
+
+ return &DescribeInstanceAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeInstanceAttributesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeInstanceAttributesRequest {
+
+ return &DescribeInstanceAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeInstanceAttributesRequestWithoutParam() *DescribeInstanceAttributesRequest {
+
+ return &DescribeInstanceAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeInstanceAttributesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeInstanceAttributesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeInstanceAttributesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeInstanceAttributesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeInstanceAttributesResult `json:"result"`
+}
+
+type DescribeInstanceAttributesResult struct {
+ DbInstanceAttributes rds.DBInstanceAttribute `json:"dbInstanceAttributes"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstances.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstances.go
new file mode 100644
index 0000000000..00b74fc6ab
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInstances.go
@@ -0,0 +1,181 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+ common "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+)
+
+type DescribeInstancesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+instanceId, 支持operator选项:eq
+instanceName, 支持operator选项:eq, like
+engine, 支持operator选项:eq
+engineVersion, 支持operator选项:eq
+instanceStatus, 支持operator选项:eq
+vpcId, 支持operator选项:eq
+instanceType, 支持operator选项:eq
+internalDomainName, 支持operator选项:eq
+publicDomainName, 支持operator选项:eq
+ (Optional) */
+ Filters []common.Filter `json:"filters"`
+
+ /* 资源标签 (Optional) */
+ TagFilters []common.TagFilter `json:"tagFilters"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeInstancesRequest(
+ regionId string,
+) *DescribeInstancesRequest {
+
+ return &DescribeInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional)
+ * param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+instanceId, 支持operator选项:eq
+instanceName, 支持operator选项:eq, like
+engine, 支持operator选项:eq
+engineVersion, 支持operator选项:eq
+instanceStatus, 支持operator选项:eq
+vpcId, 支持operator选项:eq
+instanceType, 支持operator选项:eq
+internalDomainName, 支持operator选项:eq
+publicDomainName, 支持operator选项:eq
+ (Optional)
+ * param tagFilters: 资源标签 (Optional)
+ */
+func NewDescribeInstancesRequestWithAllParams(
+ regionId string,
+ pageNumber *int,
+ pageSize *int,
+ filters []common.Filter,
+ tagFilters []common.TagFilter,
+) *DescribeInstancesRequest {
+
+ return &DescribeInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ Filters: filters,
+ TagFilters: tagFilters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeInstancesRequestWithoutParam() *DescribeInstancesRequest {
+
+ return &DescribeInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeInstancesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeInstancesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍(Optional) */
+func (r *DescribeInstancesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:
+instanceId, 支持operator选项:eq
+instanceName, 支持operator选项:eq, like
+engine, 支持operator选项:eq
+engineVersion, 支持operator选项:eq
+instanceStatus, 支持operator选项:eq
+vpcId, 支持operator选项:eq
+instanceType, 支持operator选项:eq
+internalDomainName, 支持operator选项:eq
+publicDomainName, 支持operator选项:eq
+(Optional) */
+func (r *DescribeInstancesRequest) SetFilters(filters []common.Filter) {
+ r.Filters = filters
+}
+
+/* param tagFilters: 资源标签(Optional) */
+func (r *DescribeInstancesRequest) SetTagFilters(tagFilters []common.TagFilter) {
+ r.TagFilters = tagFilters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeInstancesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeInstancesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeInstancesResult `json:"result"`
+}
+
+type DescribeInstancesResult struct {
+ DbInstances []rds.DBInstance `json:"dbInstances"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIntercept.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIntercept.go
new file mode 100644
index 0000000000..355faa53ed
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeIntercept.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeInterceptRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeInterceptRequest(
+ regionId string,
+ instanceId string,
+) *DescribeInterceptRequest {
+
+ return &DescribeInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ */
+func NewDescribeInterceptRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeInterceptRequest {
+
+ return &DescribeInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeInterceptRequestWithoutParam() *DescribeInterceptRequest {
+
+ return &DescribeInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeInterceptRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *DescribeInterceptRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeInterceptRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeInterceptResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeInterceptResult `json:"result"`
+}
+
+type DescribeInterceptResult struct {
+ Available bool `json:"available"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInterceptResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInterceptResult.go
new file mode 100644
index 0000000000..83e3544368
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeInterceptResult.go
@@ -0,0 +1,139 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeInterceptResultRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeInterceptResultRequest(
+ regionId string,
+ instanceId string,
+) *DescribeInterceptResultRequest {
+
+ return &DescribeInterceptResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:describeInterceptResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional)
+ */
+func NewDescribeInterceptResultRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeInterceptResultRequest {
+
+ return &DescribeInterceptResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:describeInterceptResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeInterceptResultRequestWithoutParam() *DescribeInterceptResultRequest {
+
+ return &DescribeInterceptResultRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:describeInterceptResult",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeInterceptResultRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *DescribeInterceptResultRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeInterceptResultRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍(Optional) */
+func (r *DescribeInterceptResultRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeInterceptResultRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeInterceptResultResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeInterceptResultResult `json:"result"`
+}
+
+type DescribeInterceptResultResult struct {
+ InterceptResult []rds.InterceptResult `json:"interceptResult"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLatestRestoreTime.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLatestRestoreTime.go
new file mode 100644
index 0000000000..c6ab25f22e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLatestRestoreTime.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeLatestRestoreTimeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeLatestRestoreTimeRequest(
+ regionId string,
+ instanceId string,
+) *DescribeLatestRestoreTimeRequest {
+
+ return &DescribeLatestRestoreTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeLatestRestoreTime",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeLatestRestoreTimeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeLatestRestoreTimeRequest {
+
+ return &DescribeLatestRestoreTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeLatestRestoreTime",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeLatestRestoreTimeRequestWithoutParam() *DescribeLatestRestoreTimeRequest {
+
+ return &DescribeLatestRestoreTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:describeLatestRestoreTime",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeLatestRestoreTimeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeLatestRestoreTimeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeLatestRestoreTimeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeLatestRestoreTimeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeLatestRestoreTimeResult `json:"result"`
+}
+
+type DescribeLatestRestoreTimeResult struct {
+ LatestRestoreTime string `json:"latestRestoreTime"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogDownloadURL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogDownloadURL.go
new file mode 100644
index 0000000000..c13ec14e3d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogDownloadURL.go
@@ -0,0 +1,141 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeLogDownloadURLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 日志文件ID */
+ LogId string `json:"logId"`
+
+ /* 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒 (Optional) */
+ Seconds *int `json:"seconds"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param logId: 日志文件ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeLogDownloadURLRequest(
+ regionId string,
+ instanceId string,
+ logId string,
+) *DescribeLogDownloadURLRequest {
+
+ return &DescribeLogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:describeLogDownloadURL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ LogId: logId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param logId: 日志文件ID (Required)
+ * param seconds: 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒 (Optional)
+ */
+func NewDescribeLogDownloadURLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ logId string,
+ seconds *int,
+) *DescribeLogDownloadURLRequest {
+
+ return &DescribeLogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:describeLogDownloadURL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ LogId: logId,
+ Seconds: seconds,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeLogDownloadURLRequestWithoutParam() *DescribeLogDownloadURLRequest {
+
+ return &DescribeLogDownloadURLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:describeLogDownloadURL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeLogDownloadURLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeLogDownloadURLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param logId: 日志文件ID(Required) */
+func (r *DescribeLogDownloadURLRequest) SetLogId(logId string) {
+ r.LogId = logId
+}
+
+/* param seconds: 设置链接地址的过期时间,单位是秒,默认值是 300 秒,最长不能超过取值范围为 1 ~ 86400 秒(Optional) */
+func (r *DescribeLogDownloadURLRequest) SetSeconds(seconds int) {
+ r.Seconds = &seconds
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeLogDownloadURLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeLogDownloadURLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeLogDownloadURLResult `json:"result"`
+}
+
+type DescribeLogDownloadURLResult struct {
+ PublicURL string `json:"publicURL"`
+ InternalURL string `json:"internalURL"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogs.go
new file mode 100644
index 0000000000..8cbe6a4c03
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeLogs.go
@@ -0,0 +1,157 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+ common "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+)
+
+type DescribeLogsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:logType, 支持operator选项:eq, 仅支持 MySQL,Percona,MariaDB
+ (Optional) */
+ Filters []common.Filter `json:"filters"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeLogsRequest(
+ regionId string,
+ instanceId string,
+) *DescribeLogsRequest {
+
+ return &DescribeLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log:describeLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional)
+ * param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:logType, 支持operator选项:eq, 仅支持 MySQL,Percona,MariaDB
+ (Optional)
+ */
+func NewDescribeLogsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ pageNumber *int,
+ pageSize *int,
+ filters []common.Filter,
+) *DescribeLogsRequest {
+
+ return &DescribeLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log:describeLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ Filters: filters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeLogsRequestWithoutParam() *DescribeLogsRequest {
+
+ return &DescribeLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log:describeLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeLogsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeLogsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeLogsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口(Optional) */
+func (r *DescribeLogsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param filters: 过滤参数,多个过滤参数之间的关系为“与”(and)
+支持以下属性的过滤:logType, 支持operator选项:eq, 仅支持 MySQL,Percona,MariaDB
+(Optional) */
+func (r *DescribeLogsRequest) SetFilters(filters []common.Filter) {
+ r.Filters = filters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeLogsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeLogsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeLogsResult `json:"result"`
+}
+
+type DescribeLogsResult struct {
+ Logs []rds.Log `json:"logs"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupAttachedInstances.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupAttachedInstances.go
new file mode 100644
index 0000000000..55ddd044e8
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupAttachedInstances.go
@@ -0,0 +1,139 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeParameterGroupAttachedInstancesRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeParameterGroupAttachedInstancesRequest(
+ regionId string,
+ parameterGroupId string,
+) *DescribeParameterGroupAttachedInstancesRequest {
+
+ return &DescribeParameterGroupAttachedInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional)
+ */
+func NewDescribeParameterGroupAttachedInstancesRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeParameterGroupAttachedInstancesRequest {
+
+ return &DescribeParameterGroupAttachedInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeParameterGroupAttachedInstancesRequestWithoutParam() *DescribeParameterGroupAttachedInstancesRequest {
+
+ return &DescribeParameterGroupAttachedInstancesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/instances",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeParameterGroupAttachedInstancesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *DescribeParameterGroupAttachedInstancesRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页(Optional) */
+func (r *DescribeParameterGroupAttachedInstancesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍(Optional) */
+func (r *DescribeParameterGroupAttachedInstancesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeParameterGroupAttachedInstancesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeParameterGroupAttachedInstancesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeParameterGroupAttachedInstancesResult `json:"result"`
+}
+
+type DescribeParameterGroupAttachedInstancesResult struct {
+ Instances []rds.AttachedDBInstance `json:"instances"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupParameters.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupParameters.go
new file mode 100644
index 0000000000..4b0b512758
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroupParameters.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeParameterGroupParametersRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeParameterGroupParametersRequest(
+ regionId string,
+ parameterGroupId string,
+) *DescribeParameterGroupParametersRequest {
+
+ return &DescribeParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ */
+func NewDescribeParameterGroupParametersRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+) *DescribeParameterGroupParametersRequest {
+
+ return &DescribeParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeParameterGroupParametersRequestWithoutParam() *DescribeParameterGroupParametersRequest {
+
+ return &DescribeParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeParameterGroupParametersRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *DescribeParameterGroupParametersRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeParameterGroupParametersRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeParameterGroupParametersResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeParameterGroupParametersResult `json:"result"`
+}
+
+type DescribeParameterGroupParametersResult struct {
+ Parameters []rds.ParameterGroupParameter `json:"parameters"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroups.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroups.go
new file mode 100644
index 0000000000..9e713f2fe9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterGroups.go
@@ -0,0 +1,125 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeParameterGroupsRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeParameterGroupsRequest(
+ regionId string,
+) *DescribeParameterGroupsRequest {
+
+ return &DescribeParameterGroupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional)
+ */
+func NewDescribeParameterGroupsRequestWithAllParams(
+ regionId string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeParameterGroupsRequest {
+
+ return &DescribeParameterGroupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeParameterGroupsRequestWithoutParam() *DescribeParameterGroupsRequest {
+
+ return &DescribeParameterGroupsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeParameterGroupsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeParameterGroupsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍(Optional) */
+func (r *DescribeParameterGroupsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeParameterGroupsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeParameterGroupsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeParameterGroupsResult `json:"result"`
+}
+
+type DescribeParameterGroupsResult struct {
+ ParameterGroups []rds.ParameterGroup `json:"parameterGroups"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterModifyRecords.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterModifyRecords.go
new file mode 100644
index 0000000000..96ca451077
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameterModifyRecords.go
@@ -0,0 +1,161 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeParameterModifyRecordsRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ StartTime *string `json:"startTime"`
+
+ /* 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ EndTime *string `json:"endTime"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeParameterModifyRecordsRequest(
+ regionId string,
+ parameterGroupId string,
+) *DescribeParameterModifyRecordsRequest {
+
+ return &DescribeParameterModifyRecordsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/records",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍 (Optional)
+ * param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional)
+ * param endTime: 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss (Optional)
+ */
+func NewDescribeParameterModifyRecordsRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+ pageNumber *int,
+ pageSize *int,
+ startTime *string,
+ endTime *string,
+) *DescribeParameterModifyRecordsRequest {
+
+ return &DescribeParameterModifyRecordsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/records",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeParameterModifyRecordsRequestWithoutParam() *DescribeParameterModifyRecordsRequest {
+
+ return &DescribeParameterModifyRecordsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/records",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeParameterModifyRecordsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *DescribeParameterModifyRecordsRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeParameterModifyRecordsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:[10,100],且为10的整数倍(Optional) */
+func (r *DescribeParameterModifyRecordsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param startTime: 查询开始时间,格式为:YYYY-MM-DD HH:mm:ss(Optional) */
+func (r *DescribeParameterModifyRecordsRequest) SetStartTime(startTime string) {
+ r.StartTime = &startTime
+}
+
+/* param endTime: 查询结束时间,格式为:YYYY-MM-DD HH:mm:ss(Optional) */
+func (r *DescribeParameterModifyRecordsRequest) SetEndTime(endTime string) {
+ r.EndTime = &endTime
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeParameterModifyRecordsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeParameterModifyRecordsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeParameterModifyRecordsResult `json:"result"`
+}
+
+type DescribeParameterModifyRecordsResult struct {
+ Records []rds.ParameterModifyRecords `json:"records"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameters.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameters.go
new file mode 100644
index 0000000000..36ba4124ce
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeParameters.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeParametersRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeParametersRequest(
+ regionId string,
+ instanceId string,
+) *DescribeParametersRequest {
+
+ return &DescribeParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ */
+func NewDescribeParametersRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeParametersRequest {
+
+ return &DescribeParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeParametersRequestWithoutParam() *DescribeParametersRequest {
+
+ return &DescribeParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DescribeParametersRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *DescribeParametersRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeParametersRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeParametersResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeParametersResult `json:"result"`
+}
+
+type DescribeParametersResult struct {
+ Parameters []rds.DBInstanceParameter `json:"parameters"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribePrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribePrivilege.go
new file mode 100644
index 0000000000..2a6e05c3d5
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribePrivilege.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribePrivilegeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 设置可见的引擎类型,如 MySQL 等 */
+ Engine string `json:"engine"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 (Optional) */
+ InstanceId *string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: 设置可见的引擎类型,如 MySQL 等 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribePrivilegeRequest(
+ regionId string,
+ engine string,
+) *DescribePrivilegeRequest {
+
+ return &DescribePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/common:describePrivilege",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param engine: 设置可见的引擎类型,如 MySQL 等 (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Optional)
+ */
+func NewDescribePrivilegeRequestWithAllParams(
+ regionId string,
+ engine string,
+ instanceId *string,
+) *DescribePrivilegeRequest {
+
+ return &DescribePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/common:describePrivilege",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ Engine: engine,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribePrivilegeRequestWithoutParam() *DescribePrivilegeRequest {
+
+ return &DescribePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/common:describePrivilege",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribePrivilegeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param engine: 设置可见的引擎类型,如 MySQL 等(Required) */
+func (r *DescribePrivilegeRequest) SetEngine(engine string) {
+ r.Engine = engine
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Optional) */
+func (r *DescribePrivilegeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = &instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribePrivilegeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribePrivilegeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribePrivilegeResult `json:"result"`
+}
+
+type DescribePrivilegeResult struct {
+ GlobalPrivileges []string `json:"globalPrivileges"`
+ DatabasePrivileges []string `json:"databasePrivileges"`
+ TablePrivileges []string `json:"tablePrivileges"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeQueryPerformance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeQueryPerformance.go
new file mode 100644
index 0000000000..fbde97cb07
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeQueryPerformance.go
@@ -0,0 +1,166 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeQueryPerformanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
ExecutionCount:执行次数
LastRows:上次返回行数
ElapsedTime:平均执行时间
CPUTime:平均CPU时间
LogicalReads:平均逻辑读
LogicalWrites:平均逻辑写
PhysicalReads:平均物理读
*/
+ QueryType string `json:"queryType"`
+
+ /* 只返回查询条件大于等于threshold的记录,默认为0 (Optional) */
+ Threshold *int `json:"threshold"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000]。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
ExecutionCount:执行次数
LastRows:上次返回行数
ElapsedTime:平均执行时间
CPUTime:平均CPU时间
LogicalReads:平均逻辑读
LogicalWrites:平均逻辑写
PhysicalReads:平均物理读
(Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeQueryPerformanceRequest(
+ regionId string,
+ instanceId string,
+ queryType string,
+) *DescribeQueryPerformanceRequest {
+
+ return &DescribeQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ QueryType: queryType,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
ExecutionCount:执行次数
LastRows:上次返回行数
ElapsedTime:平均执行时间
CPUTime:平均CPU时间
LogicalReads:平均逻辑读
LogicalWrites:平均逻辑写
PhysicalReads:平均物理读
(Required)
+ * param threshold: 只返回查询条件大于等于threshold的记录,默认为0 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000]。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口 (Optional)
+ */
+func NewDescribeQueryPerformanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ queryType string,
+ threshold *int,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeQueryPerformanceRequest {
+
+ return &DescribeQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ QueryType: queryType,
+ Threshold: threshold,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeQueryPerformanceRequestWithoutParam() *DescribeQueryPerformanceRequest {
+
+ return &DescribeQueryPerformanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeQueryPerformance",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeQueryPerformanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeQueryPerformanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param queryType: 查询类型,不同的查询类型按照相应的字段从高到低返回结果。
支持如下类型:
ExecutionCount:执行次数
LastRows:上次返回行数
ElapsedTime:平均执行时间
CPUTime:平均CPU时间
LogicalReads:平均逻辑读
LogicalWrites:平均逻辑写
PhysicalReads:平均物理读
(Required) */
+func (r *DescribeQueryPerformanceRequest) SetQueryType(queryType string) {
+ r.QueryType = queryType
+}
+
+/* param threshold: 只返回查询条件大于等于threshold的记录,默认为0(Optional) */
+func (r *DescribeQueryPerformanceRequest) SetThreshold(threshold int) {
+ r.Threshold = &threshold
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000]。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeQueryPerformanceRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为50,取值范围:[1,100],只能为10的倍数,用于查询列表的接口(Optional) */
+func (r *DescribeQueryPerformanceRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeQueryPerformanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeQueryPerformanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeQueryPerformanceResult `json:"result"`
+}
+
+type DescribeQueryPerformanceResult struct {
+ QueryPerformanceResult []rds.QueryPerformanceResult `json:"queryPerformanceResult"`
+ TotalCount int `json:"totalCount"`
+ PageNumber int `json:"pageNumber"`
+ PageSize int `json:"pageSize"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxies.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxies.go
new file mode 100644
index 0000000000..4b06e6f376
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxies.go
@@ -0,0 +1,117 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeReadWriteProxiesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS实例ID,唯一标识一个实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS实例ID,唯一标识一个实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeReadWriteProxiesRequest(
+ regionId string,
+ instanceId string,
+) *DescribeReadWriteProxiesRequest {
+
+ return &DescribeReadWriteProxiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS实例ID,唯一标识一个实例 (Required)
+ */
+func NewDescribeReadWriteProxiesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeReadWriteProxiesRequest {
+
+ return &DescribeReadWriteProxiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeReadWriteProxiesRequestWithoutParam() *DescribeReadWriteProxiesRequest {
+
+ return &DescribeReadWriteProxiesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeReadWriteProxiesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS实例ID,唯一标识一个实例(Required) */
+func (r *DescribeReadWriteProxiesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeReadWriteProxiesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeReadWriteProxiesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeReadWriteProxiesResult `json:"result"`
+}
+
+type DescribeReadWriteProxiesResult struct {
+ ReadWriteProxies []rds.ReadWriteProxy `json:"readWriteProxies"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxyAttribute.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxyAttribute.go
new file mode 100644
index 0000000000..a3c4f77b61
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeReadWriteProxyAttribute.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeReadWriteProxyAttributeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 读写分离代理服务ID */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeReadWriteProxyAttributeRequest(
+ regionId string,
+ readWriteProxyId string,
+) *DescribeReadWriteProxyAttributeRequest {
+
+ return &DescribeReadWriteProxyAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ */
+func NewDescribeReadWriteProxyAttributeRequestWithAllParams(
+ regionId string,
+ readWriteProxyId string,
+) *DescribeReadWriteProxyAttributeRequest {
+
+ return &DescribeReadWriteProxyAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeReadWriteProxyAttributeRequestWithoutParam() *DescribeReadWriteProxyAttributeRequest {
+
+ return &DescribeReadWriteProxyAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeReadWriteProxyAttributeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param readWriteProxyId: 读写分离代理服务ID(Required) */
+func (r *DescribeReadWriteProxyAttributeRequest) SetReadWriteProxyId(readWriteProxyId string) {
+ r.ReadWriteProxyId = readWriteProxyId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeReadWriteProxyAttributeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeReadWriteProxyAttributeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeReadWriteProxyAttributeResult `json:"result"`
+}
+
+type DescribeReadWriteProxyAttributeResult struct {
+ ReadWriteProxy rds.ReadWriteProxy `json:"readWriteProxy"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSSL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSSL.go
new file mode 100644
index 0000000000..3c3dc15085
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSSL.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeSSLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeSSLRequest(
+ regionId string,
+ instanceId string,
+) *DescribeSSLRequest {
+
+ return &DescribeSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeSSLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeSSLRequest {
+
+ return &DescribeSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeSSLRequestWithoutParam() *DescribeSSLRequest {
+
+ return &DescribeSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeSSLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeSSLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeSSLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeSSLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeSSLResult `json:"result"`
+}
+
+type DescribeSSLResult struct {
+ Available bool `json:"available"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogAttributes.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogAttributes.go
new file mode 100644
index 0000000000..942ae23d38
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogAttributes.go
@@ -0,0 +1,201 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+ common "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+)
+
+type DescribeSlowLogAttributesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ StartTime string `json:"startTime"`
+
+ /* 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ EndTime string `json:"endTime"`
+
+ /* 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* 慢日志明细的排序规则,不指定时按上报日志的时间戳降序返回所有的日志 (Optional) */
+ Sorts []common.Sort `json:"sorts"`
+
+ /* (Optional) */
+ Filters []common.Filter `json:"filters"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeSlowLogAttributesRequest(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+) *DescribeSlowLogAttributesRequest {
+
+ return &DescribeSlowLogAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogAttributes",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional)
+ * param sorts: 慢日志明细的排序规则,不指定时按上报日志的时间戳降序返回所有的日志 (Optional)
+ * param filters: (Optional)
+ */
+func NewDescribeSlowLogAttributesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+ dbName *string,
+ pageNumber *int,
+ pageSize *int,
+ sorts []common.Sort,
+ filters []common.Filter,
+) *DescribeSlowLogAttributesRequest {
+
+ return &DescribeSlowLogAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogAttributes",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ DbName: dbName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ Sorts: sorts,
+ Filters: filters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeSlowLogAttributesRequestWithoutParam() *DescribeSlowLogAttributesRequest {
+
+ return &DescribeSlowLogAttributesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogAttributes",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeSlowLogAttributesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeSlowLogAttributesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeSlowLogAttributesRequest) SetStartTime(startTime string) {
+ r.StartTime = startTime
+}
+
+/* param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天, 开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeSlowLogAttributesRequest) SetEndTime(endTime string) {
+ r.EndTime = endTime
+}
+
+/* param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志(Optional) */
+func (r *DescribeSlowLogAttributesRequest) SetDbName(dbName string) {
+ r.DbName = &dbName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeSlowLogAttributesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Optional) */
+func (r *DescribeSlowLogAttributesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param sorts: 慢日志明细的排序规则,不指定时按上报日志的时间戳降序返回所有的日志(Optional) */
+func (r *DescribeSlowLogAttributesRequest) SetSorts(sorts []common.Sort) {
+ r.Sorts = sorts
+}
+
+/* param filters: (Optional) */
+func (r *DescribeSlowLogAttributesRequest) SetFilters(filters []common.Filter) {
+ r.Filters = filters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeSlowLogAttributesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeSlowLogAttributesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeSlowLogAttributesResult `json:"result"`
+}
+
+type DescribeSlowLogAttributesResult struct {
+ SlowLogsAttributes []rds.SlowLogAttributes `json:"slowLogsAttributes"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogs.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogs.go
new file mode 100644
index 0000000000..5cc907ff83
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeSlowLogs.go
@@ -0,0 +1,190 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+ common "github.com/jdcloud-api/jdcloud-sdk-go/services/common/models"
+)
+
+type DescribeSlowLogsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ StartTime string `json:"startTime"`
+
+ /* 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 */
+ EndTime string `json:"endTime"`
+
+ /* 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional) */
+ PageSize *int `json:"pageSize"`
+
+ /* (Optional) */
+ Filters []common.Filter `json:"filters"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeSlowLogsRequest(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+) *DescribeSlowLogsRequest {
+
+ return &DescribeSlowLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间 (Required)
+ * param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志 (Optional)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。 (Optional)
+ * param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100 (Optional)
+ * param filters: (Optional)
+ */
+func NewDescribeSlowLogsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ startTime string,
+ endTime string,
+ dbName *string,
+ pageNumber *int,
+ pageSize *int,
+ filters []common.Filter,
+) *DescribeSlowLogsRequest {
+
+ return &DescribeSlowLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartTime: startTime,
+ EndTime: endTime,
+ DbName: dbName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ Filters: filters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeSlowLogsRequestWithoutParam() *DescribeSlowLogsRequest {
+
+ return &DescribeSlowLogsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/performance:describeSlowLogs",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeSlowLogsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeSlowLogsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param startTime: 慢日志开始时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeSlowLogsRequest) SetStartTime(startTime string) {
+ r.StartTime = startTime
+}
+
+/* param endTime: 慢日志结束时间,格式为:YYYY-MM-DD HH:mm:ss,开始时间到当前时间不能大于 7 天,开始时间不能大于结束时间,结束时间不能大于当前时间(Required) */
+func (r *DescribeSlowLogsRequest) SetEndTime(endTime string) {
+ r.EndTime = endTime
+}
+
+/* param dbName: 查询哪个数据库的慢日志,不填表示返回所有数据库的慢日志(Optional) */
+func (r *DescribeSlowLogsRequest) SetDbName(dbName string) {
+ r.DbName = &dbName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,1000)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页。(Optional) */
+func (r *DescribeSlowLogsRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为10,取值范围:10、20、30、50、100(Optional) */
+func (r *DescribeSlowLogsRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+/* param filters: (Optional) */
+func (r *DescribeSlowLogsRequest) SetFilters(filters []common.Filter) {
+ r.Filters = filters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeSlowLogsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeSlowLogsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeSlowLogsResult `json:"result"`
+}
+
+type DescribeSlowLogsResult struct {
+ SlowLogs []rds.SlowLogDigest `json:"slowLogs"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTables.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTables.go
new file mode 100644
index 0000000000..9d0368325f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTables.go
@@ -0,0 +1,152 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DescribeTablesRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 库名称 */
+ DbName string `json:"dbName"`
+
+ /* 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional) */
+ PageNumber *int `json:"pageNumber"`
+
+ /* 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional) */
+ PageSize *int `json:"pageSize"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeTablesRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+) *DescribeTablesRequest {
+
+ return &DescribeTablesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}/tables",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页; (Optional)
+ * param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口 (Optional)
+ */
+func NewDescribeTablesRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+ pageNumber *int,
+ pageSize *int,
+) *DescribeTablesRequest {
+
+ return &DescribeTablesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}/tables",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ PageNumber: pageNumber,
+ PageSize: pageSize,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeTablesRequestWithoutParam() *DescribeTablesRequest {
+
+ return &DescribeTablesRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}/tables",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeTablesRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeTablesRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 库名称(Required) */
+func (r *DescribeTablesRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+/* param pageNumber: 显示数据的页码,默认为1,取值范围:[-1,∞)。pageNumber为-1时,返回所有数据页码;超过总页数时,显示最后一页;(Optional) */
+func (r *DescribeTablesRequest) SetPageNumber(pageNumber int) {
+ r.PageNumber = &pageNumber
+}
+
+/* param pageSize: 每页显示的数据条数,默认为100,取值范围:[10,100],用于查询列表的接口(Optional) */
+func (r *DescribeTablesRequest) SetPageSize(pageSize int) {
+ r.PageSize = &pageSize
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeTablesRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeTablesResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeTablesResult `json:"result"`
+}
+
+type DescribeTablesResult struct {
+ Tables []string `json:"tables"`
+ TotalCount int `json:"totalCount"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTde.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTde.go
new file mode 100644
index 0000000000..b2fc91998e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeTde.go
@@ -0,0 +1,117 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeTdeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeTdeRequest(
+ regionId string,
+ instanceId string,
+) *DescribeTdeRequest {
+
+ return &DescribeTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeTdeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeTdeRequest {
+
+ return &DescribeTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeTdeRequestWithoutParam() *DescribeTdeRequest {
+
+ return &DescribeTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeTdeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeTdeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeTdeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeTdeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeTdeResult `json:"result"`
+}
+
+type DescribeTdeResult struct {
+ Status string `json:"status"`
+ StatusDetail rds.StatusDetail `json:"statusDetail"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeWhiteList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeWhiteList.go
new file mode 100644
index 0000000000..4ee16ec610
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DescribeWhiteList.go
@@ -0,0 +1,116 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type DescribeWhiteListRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDescribeWhiteListRequest(
+ regionId string,
+ instanceId string,
+) *DescribeWhiteListRequest {
+
+ return &DescribeWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDescribeWhiteListRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DescribeWhiteListRequest {
+
+ return &DescribeWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDescribeWhiteListRequestWithoutParam() *DescribeWhiteListRequest {
+
+ return &DescribeWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "GET",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DescribeWhiteListRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DescribeWhiteListRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DescribeWhiteListRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DescribeWhiteListResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DescribeWhiteListResult `json:"result"`
+}
+
+type DescribeWhiteListResult struct {
+ WhiteLists []rds.WhiteList `json:"whiteLists"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableAudit.go
new file mode 100644
index 0000000000..fa699f1875
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableAudit.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DisableAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDisableAuditRequest(
+ regionId string,
+ instanceId string,
+) *DisableAuditRequest {
+
+ return &DisableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:disableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDisableAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DisableAuditRequest {
+
+ return &DisableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:disableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDisableAuditRequestWithoutParam() *DisableAuditRequest {
+
+ return &DisableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:disableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DisableAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DisableAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DisableAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DisableAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DisableAuditResult `json:"result"`
+}
+
+type DisableAuditResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableIntercept.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableIntercept.go
new file mode 100644
index 0000000000..93119427b4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableIntercept.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DisableInterceptRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDisableInterceptRequest(
+ regionId string,
+ instanceId string,
+) *DisableInterceptRequest {
+
+ return &DisableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:disableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ */
+func NewDisableInterceptRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DisableInterceptRequest {
+
+ return &DisableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:disableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDisableInterceptRequestWithoutParam() *DisableInterceptRequest {
+
+ return &DisableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:disableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *DisableInterceptRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *DisableInterceptRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DisableInterceptRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DisableInterceptResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DisableInterceptResult `json:"result"`
+}
+
+type DisableInterceptResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableInternetAccess.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableInternetAccess.go
new file mode 100644
index 0000000000..1ecb72dea5
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableInternetAccess.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DisableInternetAccessRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDisableInternetAccessRequest(
+ regionId string,
+ instanceId string,
+) *DisableInternetAccessRequest {
+
+ return &DisableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:disableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDisableInternetAccessRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DisableInternetAccessRequest {
+
+ return &DisableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:disableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDisableInternetAccessRequestWithoutParam() *DisableInternetAccessRequest {
+
+ return &DisableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:disableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DisableInternetAccessRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DisableInternetAccessRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DisableInternetAccessRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DisableInternetAccessResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DisableInternetAccessResult `json:"result"`
+}
+
+type DisableInternetAccessResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableReadWriteProxyInternetAccess.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableReadWriteProxyInternetAccess.go
new file mode 100644
index 0000000000..db8114b73e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableReadWriteProxyInternetAccess.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DisableReadWriteProxyInternetAccessRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 读写分离代理服务ID */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDisableReadWriteProxyInternetAccessRequest(
+ regionId string,
+ readWriteProxyId string,
+) *DisableReadWriteProxyInternetAccessRequest {
+
+ return &DisableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:disableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ */
+func NewDisableReadWriteProxyInternetAccessRequestWithAllParams(
+ regionId string,
+ readWriteProxyId string,
+) *DisableReadWriteProxyInternetAccessRequest {
+
+ return &DisableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:disableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDisableReadWriteProxyInternetAccessRequestWithoutParam() *DisableReadWriteProxyInternetAccessRequest {
+
+ return &DisableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:disableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DisableReadWriteProxyInternetAccessRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param readWriteProxyId: 读写分离代理服务ID(Required) */
+func (r *DisableReadWriteProxyInternetAccessRequest) SetReadWriteProxyId(readWriteProxyId string) {
+ r.ReadWriteProxyId = readWriteProxyId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DisableReadWriteProxyInternetAccessRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DisableReadWriteProxyInternetAccessResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DisableReadWriteProxyInternetAccessResult `json:"result"`
+}
+
+type DisableReadWriteProxyInternetAccessResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableSSL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableSSL.go
new file mode 100644
index 0000000000..4645c80811
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/DisableSSL.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type DisableSSLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewDisableSSLRequest(
+ regionId string,
+ instanceId string,
+) *DisableSSLRequest {
+
+ return &DisableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:disableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewDisableSSLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *DisableSSLRequest {
+
+ return &DisableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:disableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewDisableSSLRequestWithoutParam() *DisableSSLRequest {
+
+ return &DisableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:disableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *DisableSSLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *DisableSSLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r DisableSSLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type DisableSSLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result DisableSSLResult `json:"result"`
+}
+
+type DisableSSLResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableAudit.go
new file mode 100644
index 0000000000..af83ed32ae
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableAudit.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableAuditRequest(
+ regionId string,
+ instanceId string,
+) *EnableAuditRequest {
+
+ return &EnableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:enableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewEnableAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableAuditRequest {
+
+ return &EnableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:enableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableAuditRequestWithoutParam() *EnableAuditRequest {
+
+ return &EnableAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:enableAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *EnableAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableAuditResult `json:"result"`
+}
+
+type EnableAuditResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableEnhancedBackup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableEnhancedBackup.go
new file mode 100644
index 0000000000..c01bbb9dc9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableEnhancedBackup.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableEnhancedBackupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableEnhancedBackupRequest(
+ regionId string,
+ instanceId string,
+) *EnableEnhancedBackupRequest {
+
+ return &EnableEnhancedBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableEnhancedBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewEnableEnhancedBackupRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableEnhancedBackupRequest {
+
+ return &EnableEnhancedBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableEnhancedBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableEnhancedBackupRequestWithoutParam() *EnableEnhancedBackupRequest {
+
+ return &EnableEnhancedBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableEnhancedBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableEnhancedBackupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *EnableEnhancedBackupRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableEnhancedBackupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableEnhancedBackupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableEnhancedBackupResult `json:"result"`
+}
+
+type EnableEnhancedBackupResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableIntercept.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableIntercept.go
new file mode 100644
index 0000000000..d64aaeb078
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableIntercept.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableInterceptRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableInterceptRequest(
+ regionId string,
+ instanceId string,
+) *EnableInterceptRequest {
+
+ return &EnableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:enableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ */
+func NewEnableInterceptRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableInterceptRequest {
+
+ return &EnableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:enableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableInterceptRequestWithoutParam() *EnableInterceptRequest {
+
+ return &EnableInterceptRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/intercept:enableIntercept",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *EnableInterceptRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *EnableInterceptRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableInterceptRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableInterceptResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableInterceptResult `json:"result"`
+}
+
+type EnableInterceptResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableInternetAccess.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableInternetAccess.go
new file mode 100644
index 0000000000..7ca3be2e98
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableInternetAccess.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableInternetAccessRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableInternetAccessRequest(
+ regionId string,
+ instanceId string,
+) *EnableInternetAccessRequest {
+
+ return &EnableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewEnableInternetAccessRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableInternetAccessRequest {
+
+ return &EnableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableInternetAccessRequestWithoutParam() *EnableInternetAccessRequest {
+
+ return &EnableInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:enableInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableInternetAccessRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *EnableInternetAccessRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableInternetAccessRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableInternetAccessResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableInternetAccessResult `json:"result"`
+}
+
+type EnableInternetAccessResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableReadWriteProxyInternetAccess.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableReadWriteProxyInternetAccess.go
new file mode 100644
index 0000000000..f92b95e204
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableReadWriteProxyInternetAccess.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableReadWriteProxyInternetAccessRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 读写分离代理服务ID */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableReadWriteProxyInternetAccessRequest(
+ regionId string,
+ readWriteProxyId string,
+) *EnableReadWriteProxyInternetAccessRequest {
+
+ return &EnableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:enableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ */
+func NewEnableReadWriteProxyInternetAccessRequestWithAllParams(
+ regionId string,
+ readWriteProxyId string,
+) *EnableReadWriteProxyInternetAccessRequest {
+
+ return &EnableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:enableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableReadWriteProxyInternetAccessRequestWithoutParam() *EnableReadWriteProxyInternetAccessRequest {
+
+ return &EnableReadWriteProxyInternetAccessRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:enableReadWriteProxyInternetAccess",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableReadWriteProxyInternetAccessRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param readWriteProxyId: 读写分离代理服务ID(Required) */
+func (r *EnableReadWriteProxyInternetAccessRequest) SetReadWriteProxyId(readWriteProxyId string) {
+ r.ReadWriteProxyId = readWriteProxyId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableReadWriteProxyInternetAccessRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableReadWriteProxyInternetAccessResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableReadWriteProxyInternetAccessResult `json:"result"`
+}
+
+type EnableReadWriteProxyInternetAccessResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableSSL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableSSL.go
new file mode 100644
index 0000000000..5c606fa027
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableSSL.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableSSLRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableSSLRequest(
+ regionId string,
+ instanceId string,
+) *EnableSSLRequest {
+
+ return &EnableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:enableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewEnableSSLRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableSSLRequest {
+
+ return &EnableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:enableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableSSLRequestWithoutParam() *EnableSSLRequest {
+
+ return &EnableSSLRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/ssl:enableSSL",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableSSLRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *EnableSSLRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableSSLRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableSSLResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableSSLResult `json:"result"`
+}
+
+type EnableSSLResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableTde.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableTde.go
new file mode 100644
index 0000000000..9708dfb795
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/EnableTde.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type EnableTdeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewEnableTdeRequest(
+ regionId string,
+ instanceId string,
+) *EnableTdeRequest {
+
+ return &EnableTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde:enableTde",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewEnableTdeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *EnableTdeRequest {
+
+ return &EnableTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde:enableTde",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewEnableTdeRequestWithoutParam() *EnableTdeRequest {
+
+ return &EnableTdeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/tde:enableTde",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *EnableTdeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *EnableTdeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r EnableTdeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type EnableTdeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result EnableTdeResult `json:"result"`
+}
+
+type EnableTdeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ExchangeInstanceDns.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ExchangeInstanceDns.go
new file mode 100644
index 0000000000..bb787caa0c
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ExchangeInstanceDns.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ExchangeInstanceDnsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 要交换的实例ID */
+ TargetInstanceId string `json:"targetInstanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param targetInstanceId: 要交换的实例ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewExchangeInstanceDnsRequest(
+ regionId string,
+ instanceId string,
+ targetInstanceId string,
+) *ExchangeInstanceDnsRequest {
+
+ return &ExchangeInstanceDnsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:exchangeInstanceDns",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ TargetInstanceId: targetInstanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param targetInstanceId: 要交换的实例ID (Required)
+ */
+func NewExchangeInstanceDnsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ targetInstanceId string,
+) *ExchangeInstanceDnsRequest {
+
+ return &ExchangeInstanceDnsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:exchangeInstanceDns",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ TargetInstanceId: targetInstanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewExchangeInstanceDnsRequestWithoutParam() *ExchangeInstanceDnsRequest {
+
+ return &ExchangeInstanceDnsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:exchangeInstanceDns",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ExchangeInstanceDnsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ExchangeInstanceDnsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param targetInstanceId: 要交换的实例ID(Required) */
+func (r *ExchangeInstanceDnsRequest) SetTargetInstanceId(targetInstanceId string) {
+ r.TargetInstanceId = targetInstanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ExchangeInstanceDnsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ExchangeInstanceDnsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ExchangeInstanceDnsResult `json:"result"`
+}
+
+type ExchangeInstanceDnsResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/FailoverInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/FailoverInstance.go
new file mode 100644
index 0000000000..f56b59b399
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/FailoverInstance.go
@@ -0,0 +1,114 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type FailoverInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewFailoverInstanceRequest(
+ regionId string,
+ instanceId string,
+) *FailoverInstanceRequest {
+
+ return &FailoverInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:failoverInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewFailoverInstanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *FailoverInstanceRequest {
+
+ return &FailoverInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:failoverInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewFailoverInstanceRequestWithoutParam() *FailoverInstanceRequest {
+
+ return &FailoverInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:failoverInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *FailoverInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *FailoverInstanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r FailoverInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type FailoverInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result FailoverInstanceResult `json:"result"`
+}
+
+type FailoverInstanceResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GetUploadKey.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GetUploadKey.go
new file mode 100644
index 0000000000..98fa06524f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GetUploadKey.go
@@ -0,0 +1,115 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type GetUploadKeyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewGetUploadKeyRequest(
+ regionId string,
+ instanceId string,
+) *GetUploadKeyRequest {
+
+ return &GetUploadKeyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles:getUploadKey",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ */
+func NewGetUploadKeyRequestWithAllParams(
+ regionId string,
+ instanceId string,
+) *GetUploadKeyRequest {
+
+ return &GetUploadKeyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles:getUploadKey",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewGetUploadKeyRequestWithoutParam() *GetUploadKeyRequest {
+
+ return &GetUploadKeyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles:getUploadKey",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *GetUploadKeyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *GetUploadKeyRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r GetUploadKeyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type GetUploadKeyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result GetUploadKeyResult `json:"result"`
+}
+
+type GetUploadKeyResult struct {
+ Key string `json:"key"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantAccountPrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantAccountPrivilege.go
new file mode 100644
index 0000000000..9d5aec8496
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantAccountPrivilege.go
@@ -0,0 +1,151 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type GrantAccountPrivilegeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+
+ /* 设置数据库细粒度权限内容 (Optional) */
+ DatabasePrivileges []rds.DatabasePrivilege `json:"databasePrivileges"`
+
+ /* 设置全局权限,权限的具体定义参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ GlobalPrivileges []string `json:"globalPrivileges"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewGrantAccountPrivilegeRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+) *GrantAccountPrivilegeRequest {
+
+ return &GrantAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantAccountPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param databasePrivileges: 设置数据库细粒度权限内容 (Optional)
+ * param globalPrivileges: 设置全局权限,权限的具体定义参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional)
+ */
+func NewGrantAccountPrivilegeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ databasePrivileges []rds.DatabasePrivilege,
+ globalPrivileges []string,
+) *GrantAccountPrivilegeRequest {
+
+ return &GrantAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantAccountPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ DatabasePrivileges: databasePrivileges,
+ GlobalPrivileges: globalPrivileges,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewGrantAccountPrivilegeRequestWithoutParam() *GrantAccountPrivilegeRequest {
+
+ return &GrantAccountPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantAccountPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *GrantAccountPrivilegeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *GrantAccountPrivilegeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *GrantAccountPrivilegeRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param databasePrivileges: 设置数据库细粒度权限内容(Optional) */
+func (r *GrantAccountPrivilegeRequest) SetDatabasePrivileges(databasePrivileges []rds.DatabasePrivilege) {
+ r.DatabasePrivileges = databasePrivileges
+}
+
+/* param globalPrivileges: 设置全局权限,权限的具体定义参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Optional) */
+func (r *GrantAccountPrivilegeRequest) SetGlobalPrivileges(globalPrivileges []string) {
+ r.GlobalPrivileges = globalPrivileges
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r GrantAccountPrivilegeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type GrantAccountPrivilegeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result GrantAccountPrivilegeResult `json:"result"`
+}
+
+type GrantAccountPrivilegeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantPrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantPrivilege.go
new file mode 100644
index 0000000000..aaa3a50400
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/GrantPrivilege.go
@@ -0,0 +1,143 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type GrantPrivilegeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+
+ /* 账号的访问权限 */
+ AccountPrivileges []rds.AccountPrivilege `json:"accountPrivileges"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param accountPrivileges: 账号的访问权限 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewGrantPrivilegeRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPrivileges []rds.AccountPrivilege,
+) *GrantPrivilegeRequest {
+
+ return &GrantPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPrivileges: accountPrivileges,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param accountPrivileges: 账号的访问权限 (Required)
+ */
+func NewGrantPrivilegeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPrivileges []rds.AccountPrivilege,
+) *GrantPrivilegeRequest {
+
+ return &GrantPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPrivileges: accountPrivileges,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewGrantPrivilegeRequestWithoutParam() *GrantPrivilegeRequest {
+
+ return &GrantPrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:grantPrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *GrantPrivilegeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *GrantPrivilegeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *GrantPrivilegeRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param accountPrivileges: 账号的访问权限(Required) */
+func (r *GrantPrivilegeRequest) SetAccountPrivileges(accountPrivileges []rds.AccountPrivilege) {
+ r.AccountPrivileges = accountPrivileges
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r GrantPrivilegeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type GrantPrivilegeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result GrantPrivilegeResult `json:"result"`
+}
+
+type GrantPrivilegeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAccountForOps.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAccountForOps.go
new file mode 100644
index 0000000000..254da15910
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAccountForOps.go
@@ -0,0 +1,125 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyAccountForOpsRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 运维账号到期时间,UTC时间格式 (Optional) */
+ ExpiredTime *string `json:"expiredTime"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyAccountForOpsRequest(
+ regionId string,
+ instanceId string,
+) *ModifyAccountForOpsRequest {
+
+ return &ModifyAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param expiredTime: 运维账号到期时间,UTC时间格式 (Optional)
+ */
+func NewModifyAccountForOpsRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ expiredTime *string,
+) *ModifyAccountForOpsRequest {
+
+ return &ModifyAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ExpiredTime: expiredTime,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyAccountForOpsRequestWithoutParam() *ModifyAccountForOpsRequest {
+
+ return &ModifyAccountForOpsRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accountsForOps",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyAccountForOpsRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyAccountForOpsRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param expiredTime: 运维账号到期时间,UTC时间格式(Optional) */
+func (r *ModifyAccountForOpsRequest) SetExpiredTime(expiredTime string) {
+ r.ExpiredTime = &expiredTime
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyAccountForOpsRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyAccountForOpsResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyAccountForOpsResult `json:"result"`
+}
+
+type ModifyAccountForOpsResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyActiveDirectory.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyActiveDirectory.go
new file mode 100644
index 0000000000..d029a29563
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyActiveDirectory.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyActiveDirectoryRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 目录服务的资源ID
- 加入目录服务:要加入的目录服务的资源ID
- 修改目录服务:新目录服务的资源ID
- 移除目录服务:传入字符串“none”,不区分大小写 */
+ AdResourceId string `json:"adResourceId"`
+
+ /* 修改后,是否强制重启实例,使修改生效。
- true 修改后立即重启
- false:默认值,修改后不重启,需用户自行重启 */
+ ForceRestart string `json:"forceRestart"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param adResourceId: 目录服务的资源ID
- 加入目录服务:要加入的目录服务的资源ID
- 修改目录服务:新目录服务的资源ID
- 移除目录服务:传入字符串“none”,不区分大小写 (Required)
+ * param forceRestart: 修改后,是否强制重启实例,使修改生效。
- true 修改后立即重启
- false:默认值,修改后不重启,需用户自行重启 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyActiveDirectoryRequest(
+ regionId string,
+ instanceId string,
+ adResourceId string,
+ forceRestart string,
+) *ModifyActiveDirectoryRequest {
+
+ return &ModifyActiveDirectoryRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyActiveDirectory",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AdResourceId: adResourceId,
+ ForceRestart: forceRestart,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param adResourceId: 目录服务的资源ID
- 加入目录服务:要加入的目录服务的资源ID
- 修改目录服务:新目录服务的资源ID
- 移除目录服务:传入字符串“none”,不区分大小写 (Required)
+ * param forceRestart: 修改后,是否强制重启实例,使修改生效。
- true 修改后立即重启
- false:默认值,修改后不重启,需用户自行重启 (Required)
+ */
+func NewModifyActiveDirectoryRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ adResourceId string,
+ forceRestart string,
+) *ModifyActiveDirectoryRequest {
+
+ return &ModifyActiveDirectoryRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyActiveDirectory",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AdResourceId: adResourceId,
+ ForceRestart: forceRestart,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyActiveDirectoryRequestWithoutParam() *ModifyActiveDirectoryRequest {
+
+ return &ModifyActiveDirectoryRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyActiveDirectory",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyActiveDirectoryRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyActiveDirectoryRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param adResourceId: 目录服务的资源ID
- 加入目录服务:要加入的目录服务的资源ID
- 修改目录服务:新目录服务的资源ID
- 移除目录服务:传入字符串“none”,不区分大小写(Required) */
+func (r *ModifyActiveDirectoryRequest) SetAdResourceId(adResourceId string) {
+ r.AdResourceId = adResourceId
+}
+
+/* param forceRestart: 修改后,是否强制重启实例,使修改生效。
- true 修改后立即重启
- false:默认值,修改后不重启,需用户自行重启(Required) */
+func (r *ModifyActiveDirectoryRequest) SetForceRestart(forceRestart string) {
+ r.ForceRestart = forceRestart
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyActiveDirectoryRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyActiveDirectoryResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyActiveDirectoryResult `json:"result"`
+}
+
+type ModifyActiveDirectoryResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAudit.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAudit.go
new file mode 100644
index 0000000000..ffb1b2641a
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyAudit.go
@@ -0,0 +1,136 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyAuditRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 在原有审计项基础上,增加新的审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP (Optional) */
+ Add *string `json:"add"`
+
+ /* 删除审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP
如删除了所有审计项,则审计自动关闭 (Optional) */
+ Drop *string `json:"drop"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyAuditRequest(
+ regionId string,
+ instanceId string,
+) *ModifyAuditRequest {
+
+ return &ModifyAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:modifyAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param add: 在原有审计项基础上,增加新的审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP (Optional)
+ * param drop: 删除审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP
如删除了所有审计项,则审计自动关闭 (Optional)
+ */
+func NewModifyAuditRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ add *string,
+ drop *string,
+) *ModifyAuditRequest {
+
+ return &ModifyAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:modifyAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Add: add,
+ Drop: drop,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyAuditRequestWithoutParam() *ModifyAuditRequest {
+
+ return &ModifyAuditRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/audit:modifyAudit",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyAuditRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyAuditRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param add: 在原有审计项基础上,增加新的审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP(Optional) */
+func (r *ModifyAuditRequest) SetAdd(add string) {
+ r.Add = &add
+}
+
+/* param drop: 删除审计项,多个审计项之间用英文逗号,分号或空格分隔,例如DATABASE_OBJECT_ACCESS_GROUP,ACKUP_RESTORE_GROUP
如删除了所有审计项,则审计自动关闭(Optional) */
+func (r *ModifyAuditRequest) SetDrop(drop string) {
+ r.Drop = &drop
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyAuditRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyAuditResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyAuditResult `json:"result"`
+}
+
+type ModifyAuditResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyBackupPolicy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyBackupPolicy.go
new file mode 100644
index 0000000000..2a4a1c479d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyBackupPolicy.go
@@ -0,0 +1,169 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyBackupPolicyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 自动备份开始时间窗口,例如:00:00-01:00,表示0点到1点开始进行数据库自动备份,备份完成时间则跟实例大小有关,不一定在这个时间范围中
SQL Server:范围00:00-23:59,时间范围差不得小于30分钟。
MySQL,只能是以下取值:
00:00-01:00
01:00-02:00
......
23:00-24:00 (Optional) */
+ StartWindow *string `json:"startWindow"`
+
+ /* binlog本地保留周期,单位小时,范围1-168 (Optional) */
+ BinlogRetentionPeriod *int `json:"binlogRetentionPeriod"`
+
+ /* binlog本地占用空间上限,单位%,范围1-50 (Optional) */
+ BinlogUsageLimit *int `json:"binlogUsageLimit"`
+
+ /* 自动备份保留周期,单位天,范围7-730
当enhancedBackup为true时可修改
- 仅支持SQL Server (Optional) */
+ RetentionPeriod *int `json:"retentionPeriod"`
+
+ /* 自动备份循环模式
1:表示每天都是全量备份
2:表示自动备份按照全量、增量、增量这样的方式进行,例如第1天是全量备份,第2、3天是增量备份;第4天又是全量备份,以此类推
当enhancedBackup为true时可修改
- 仅支持SQL Server (Optional) */
+ CycleMode *int `json:"cycleMode"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyBackupPolicyRequest(
+ regionId string,
+ instanceId string,
+) *ModifyBackupPolicyRequest {
+
+ return &ModifyBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyBackupPolicy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param startWindow: 自动备份开始时间窗口,例如:00:00-01:00,表示0点到1点开始进行数据库自动备份,备份完成时间则跟实例大小有关,不一定在这个时间范围中
SQL Server:范围00:00-23:59,时间范围差不得小于30分钟。
MySQL,只能是以下取值:
00:00-01:00
01:00-02:00
......
23:00-24:00 (Optional)
+ * param binlogRetentionPeriod: binlog本地保留周期,单位小时,范围1-168 (Optional)
+ * param binlogUsageLimit: binlog本地占用空间上限,单位%,范围1-50 (Optional)
+ * param retentionPeriod: 自动备份保留周期,单位天,范围7-730
当enhancedBackup为true时可修改
- 仅支持SQL Server (Optional)
+ * param cycleMode: 自动备份循环模式
1:表示每天都是全量备份
2:表示自动备份按照全量、增量、增量这样的方式进行,例如第1天是全量备份,第2、3天是增量备份;第4天又是全量备份,以此类推
当enhancedBackup为true时可修改
- 仅支持SQL Server (Optional)
+ */
+func NewModifyBackupPolicyRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ startWindow *string,
+ binlogRetentionPeriod *int,
+ binlogUsageLimit *int,
+ retentionPeriod *int,
+ cycleMode *int,
+) *ModifyBackupPolicyRequest {
+
+ return &ModifyBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyBackupPolicy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ StartWindow: startWindow,
+ BinlogRetentionPeriod: binlogRetentionPeriod,
+ BinlogUsageLimit: binlogUsageLimit,
+ RetentionPeriod: retentionPeriod,
+ CycleMode: cycleMode,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyBackupPolicyRequestWithoutParam() *ModifyBackupPolicyRequest {
+
+ return &ModifyBackupPolicyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyBackupPolicy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyBackupPolicyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyBackupPolicyRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param startWindow: 自动备份开始时间窗口,例如:00:00-01:00,表示0点到1点开始进行数据库自动备份,备份完成时间则跟实例大小有关,不一定在这个时间范围中
SQL Server:范围00:00-23:59,时间范围差不得小于30分钟。
MySQL,只能是以下取值:
00:00-01:00
01:00-02:00
......
23:00-24:00(Optional) */
+func (r *ModifyBackupPolicyRequest) SetStartWindow(startWindow string) {
+ r.StartWindow = &startWindow
+}
+
+/* param binlogRetentionPeriod: binlog本地保留周期,单位小时,范围1-168(Optional) */
+func (r *ModifyBackupPolicyRequest) SetBinlogRetentionPeriod(binlogRetentionPeriod int) {
+ r.BinlogRetentionPeriod = &binlogRetentionPeriod
+}
+
+/* param binlogUsageLimit: binlog本地占用空间上限,单位%,范围1-50(Optional) */
+func (r *ModifyBackupPolicyRequest) SetBinlogUsageLimit(binlogUsageLimit int) {
+ r.BinlogUsageLimit = &binlogUsageLimit
+}
+
+/* param retentionPeriod: 自动备份保留周期,单位天,范围7-730
当enhancedBackup为true时可修改
- 仅支持SQL Server(Optional) */
+func (r *ModifyBackupPolicyRequest) SetRetentionPeriod(retentionPeriod int) {
+ r.RetentionPeriod = &retentionPeriod
+}
+
+/* param cycleMode: 自动备份循环模式
1:表示每天都是全量备份
2:表示自动备份按照全量、增量、增量这样的方式进行,例如第1天是全量备份,第2、3天是增量备份;第4天又是全量备份,以此类推
当enhancedBackup为true时可修改
- 仅支持SQL Server(Optional) */
+func (r *ModifyBackupPolicyRequest) SetCycleMode(cycleMode int) {
+ r.CycleMode = &cycleMode
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyBackupPolicyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyBackupPolicyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyBackupPolicyResult `json:"result"`
+}
+
+type ModifyBackupPolicyResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyConnectionMode.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyConnectionMode.go
new file mode 100644
index 0000000000..4d8f7a060a
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyConnectionMode.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyConnectionModeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 连接模式
- standard:标准模式(缺省),响应时间短,但没有 SQL 审计和拦截的能力
- security:高安全模式,具备一定的 SQL注入拦截能力,并可开启 SQL 审计,但会增加一定的响应时间 */
+ ConnectionMode string `json:"connectionMode"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param connectionMode: 连接模式
- standard:标准模式(缺省),响应时间短,但没有 SQL 审计和拦截的能力
- security:高安全模式,具备一定的 SQL注入拦截能力,并可开启 SQL 审计,但会增加一定的响应时间 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyConnectionModeRequest(
+ regionId string,
+ instanceId string,
+ connectionMode string,
+) *ModifyConnectionModeRequest {
+
+ return &ModifyConnectionModeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyConnectionMode",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ConnectionMode: connectionMode,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param connectionMode: 连接模式
- standard:标准模式(缺省),响应时间短,但没有 SQL 审计和拦截的能力
- security:高安全模式,具备一定的 SQL注入拦截能力,并可开启 SQL 审计,但会增加一定的响应时间 (Required)
+ */
+func NewModifyConnectionModeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ connectionMode string,
+) *ModifyConnectionModeRequest {
+
+ return &ModifyConnectionModeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyConnectionMode",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ConnectionMode: connectionMode,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyConnectionModeRequestWithoutParam() *ModifyConnectionModeRequest {
+
+ return &ModifyConnectionModeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyConnectionMode",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyConnectionModeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyConnectionModeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param connectionMode: 连接模式
- standard:标准模式(缺省),响应时间短,但没有 SQL 审计和拦截的能力
- security:高安全模式,具备一定的 SQL注入拦截能力,并可开启 SQL 审计,但会增加一定的响应时间(Required) */
+func (r *ModifyConnectionModeRequest) SetConnectionMode(connectionMode string) {
+ r.ConnectionMode = connectionMode
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyConnectionModeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyConnectionModeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyConnectionModeResult `json:"result"`
+}
+
+type ModifyConnectionModeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceAz.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceAz.go
new file mode 100644
index 0000000000..e932167877
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceAz.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyInstanceAzRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 新可用区ID。 如果是单机实例,只需输入一个可用区;如果是主备实例,则必须输入两个可用区ID:第一个为主节点所在可用区,第二个为备节点所在可用区。主备两个可用区可以相同,也可以不同 */
+ NewAzId []string `json:"newAzId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param newAzId: 新可用区ID。 如果是单机实例,只需输入一个可用区;如果是主备实例,则必须输入两个可用区ID:第一个为主节点所在可用区,第二个为备节点所在可用区。主备两个可用区可以相同,也可以不同 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyInstanceAzRequest(
+ regionId string,
+ instanceId string,
+ newAzId []string,
+) *ModifyInstanceAzRequest {
+
+ return &ModifyInstanceAzRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceAz",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ NewAzId: newAzId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param newAzId: 新可用区ID。 如果是单机实例,只需输入一个可用区;如果是主备实例,则必须输入两个可用区ID:第一个为主节点所在可用区,第二个为备节点所在可用区。主备两个可用区可以相同,也可以不同 (Required)
+ */
+func NewModifyInstanceAzRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ newAzId []string,
+) *ModifyInstanceAzRequest {
+
+ return &ModifyInstanceAzRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceAz",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ NewAzId: newAzId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyInstanceAzRequestWithoutParam() *ModifyInstanceAzRequest {
+
+ return &ModifyInstanceAzRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceAz",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyInstanceAzRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyInstanceAzRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param newAzId: 新可用区ID。 如果是单机实例,只需输入一个可用区;如果是主备实例,则必须输入两个可用区ID:第一个为主节点所在可用区,第二个为备节点所在可用区。主备两个可用区可以相同,也可以不同(Required) */
+func (r *ModifyInstanceAzRequest) SetNewAzId(newAzId []string) {
+ r.NewAzId = newAzId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyInstanceAzRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyInstanceAzResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyInstanceAzResult `json:"result"`
+}
+
+type ModifyInstanceAzResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceName.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceName.go
new file mode 100644
index 0000000000..ffdcd6e70d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceName.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyInstanceNameRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,名称支持中文,实例名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ InstanceName string `json:"instanceName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param instanceName: 实例名称,名称支持中文,实例名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyInstanceNameRequest(
+ regionId string,
+ instanceId string,
+ instanceName string,
+) *ModifyInstanceNameRequest {
+
+ return &ModifyInstanceNameRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceName",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ InstanceName: instanceName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param instanceName: 实例名称,名称支持中文,实例名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ */
+func NewModifyInstanceNameRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ instanceName string,
+) *ModifyInstanceNameRequest {
+
+ return &ModifyInstanceNameRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceName",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ InstanceName: instanceName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyInstanceNameRequestWithoutParam() *ModifyInstanceNameRequest {
+
+ return &ModifyInstanceNameRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceName",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyInstanceNameRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyInstanceNameRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param instanceName: 实例名称,名称支持中文,实例名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *ModifyInstanceNameRequest) SetInstanceName(instanceName string) {
+ r.InstanceName = instanceName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyInstanceNameRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyInstanceNameResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyInstanceNameResult `json:"result"`
+}
+
+type ModifyInstanceNameResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceSpec.go
new file mode 100644
index 0000000000..ec974a7424
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyInstanceSpec.go
@@ -0,0 +1,176 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyInstanceSpecRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 扩容后实例规格 */
+ NewInstanceClass string `json:"newInstanceClass"`
+
+ /* 扩容后实例磁盘大小 */
+ NewInstanceStorageGB int `json:"newInstanceStorageGB"`
+
+ /* 存储类型,如果不指定,默认会采用实例原存储类型. (Optional) */
+ NewInstanceStorageType *string `json:"newInstanceStorageType"`
+
+ /* 实例数据加密(存储类型为云硬盘才支持数据加密). false:不加密; true:加密. 如果实例从本地盘变为云硬盘,缺省为false. 如果实例本来就是使用云硬盘的,缺省和源实例保持一致 (Optional) */
+ StorageEncrypted *bool `json:"storageEncrypted"`
+
+ /* 变配后的子网ID (Optional) */
+ SubnetId *string `json:"subnetId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param newInstanceClass: 扩容后实例规格 (Required)
+ * param newInstanceStorageGB: 扩容后实例磁盘大小 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyInstanceSpecRequest(
+ regionId string,
+ instanceId string,
+ newInstanceClass string,
+ newInstanceStorageGB int,
+) *ModifyInstanceSpecRequest {
+
+ return &ModifyInstanceSpecRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceSpec",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ NewInstanceClass: newInstanceClass,
+ NewInstanceStorageGB: newInstanceStorageGB,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param newInstanceClass: 扩容后实例规格 (Required)
+ * param newInstanceStorageGB: 扩容后实例磁盘大小 (Required)
+ * param newInstanceStorageType: 存储类型,如果不指定,默认会采用实例原存储类型. (Optional)
+ * param storageEncrypted: 实例数据加密(存储类型为云硬盘才支持数据加密). false:不加密; true:加密. 如果实例从本地盘变为云硬盘,缺省为false. 如果实例本来就是使用云硬盘的,缺省和源实例保持一致 (Optional)
+ * param subnetId: 变配后的子网ID (Optional)
+ */
+func NewModifyInstanceSpecRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ newInstanceClass string,
+ newInstanceStorageGB int,
+ newInstanceStorageType *string,
+ storageEncrypted *bool,
+ subnetId *string,
+) *ModifyInstanceSpecRequest {
+
+ return &ModifyInstanceSpecRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceSpec",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ NewInstanceClass: newInstanceClass,
+ NewInstanceStorageGB: newInstanceStorageGB,
+ NewInstanceStorageType: newInstanceStorageType,
+ StorageEncrypted: storageEncrypted,
+ SubnetId: subnetId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyInstanceSpecRequestWithoutParam() *ModifyInstanceSpecRequest {
+
+ return &ModifyInstanceSpecRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyInstanceSpec",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyInstanceSpecRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyInstanceSpecRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param newInstanceClass: 扩容后实例规格(Required) */
+func (r *ModifyInstanceSpecRequest) SetNewInstanceClass(newInstanceClass string) {
+ r.NewInstanceClass = newInstanceClass
+}
+
+/* param newInstanceStorageGB: 扩容后实例磁盘大小(Required) */
+func (r *ModifyInstanceSpecRequest) SetNewInstanceStorageGB(newInstanceStorageGB int) {
+ r.NewInstanceStorageGB = newInstanceStorageGB
+}
+
+/* param newInstanceStorageType: 存储类型,如果不指定,默认会采用实例原存储类型.(Optional) */
+func (r *ModifyInstanceSpecRequest) SetNewInstanceStorageType(newInstanceStorageType string) {
+ r.NewInstanceStorageType = &newInstanceStorageType
+}
+
+/* param storageEncrypted: 实例数据加密(存储类型为云硬盘才支持数据加密). false:不加密; true:加密. 如果实例从本地盘变为云硬盘,缺省为false. 如果实例本来就是使用云硬盘的,缺省和源实例保持一致(Optional) */
+func (r *ModifyInstanceSpecRequest) SetStorageEncrypted(storageEncrypted bool) {
+ r.StorageEncrypted = &storageEncrypted
+}
+
+/* param subnetId: 变配后的子网ID(Optional) */
+func (r *ModifyInstanceSpecRequest) SetSubnetId(subnetId string) {
+ r.SubnetId = &subnetId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyInstanceSpecRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyInstanceSpecResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyInstanceSpecResult `json:"result"`
+}
+
+type ModifyInstanceSpecResult struct {
+ OrderId string `json:"orderId"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroup.go
new file mode 100644
index 0000000000..b6ce52ef54
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroup.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyParameterGroupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 参数组ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param parameterGroupId: 参数组ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyParameterGroupRequest(
+ regionId string,
+ instanceId string,
+ parameterGroupId string,
+) *ModifyParameterGroupRequest {
+
+ return &ModifyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyParameterGroup",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param parameterGroupId: 参数组ID (Required)
+ */
+func NewModifyParameterGroupRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ parameterGroupId string,
+) *ModifyParameterGroupRequest {
+
+ return &ModifyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyParameterGroup",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ ParameterGroupId: parameterGroupId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyParameterGroupRequestWithoutParam() *ModifyParameterGroupRequest {
+
+ return &ModifyParameterGroupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:modifyParameterGroup",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyParameterGroupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyParameterGroupRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param parameterGroupId: 参数组ID(Required) */
+func (r *ModifyParameterGroupRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyParameterGroupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyParameterGroupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyParameterGroupResult `json:"result"`
+}
+
+type ModifyParameterGroupResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupAttribute.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupAttribute.go
new file mode 100644
index 0000000000..759fad6cea
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupAttribute.go
@@ -0,0 +1,139 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyParameterGroupAttributeRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 参数组名称 */
+ ParameterGroupName string `json:"parameterGroupName"`
+
+ /* 参数组描述 (Optional) */
+ Description *string `json:"description"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param parameterGroupName: 参数组名称 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyParameterGroupAttributeRequest(
+ regionId string,
+ parameterGroupId string,
+ parameterGroupName string,
+) *ModifyParameterGroupAttributeRequest {
+
+ return &ModifyParameterGroupAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}:modifyParameterGroupAttribute",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ ParameterGroupName: parameterGroupName,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param parameterGroupName: 参数组名称 (Required)
+ * param description: 参数组描述 (Optional)
+ */
+func NewModifyParameterGroupAttributeRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+ parameterGroupName string,
+ description *string,
+) *ModifyParameterGroupAttributeRequest {
+
+ return &ModifyParameterGroupAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}:modifyParameterGroupAttribute",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ ParameterGroupName: parameterGroupName,
+ Description: description,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyParameterGroupAttributeRequestWithoutParam() *ModifyParameterGroupAttributeRequest {
+
+ return &ModifyParameterGroupAttributeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}:modifyParameterGroupAttribute",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *ModifyParameterGroupAttributeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *ModifyParameterGroupAttributeRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+/* param parameterGroupName: 参数组名称(Required) */
+func (r *ModifyParameterGroupAttributeRequest) SetParameterGroupName(parameterGroupName string) {
+ r.ParameterGroupName = parameterGroupName
+}
+
+/* param description: 参数组描述(Optional) */
+func (r *ModifyParameterGroupAttributeRequest) SetDescription(description string) {
+ r.Description = &description
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyParameterGroupAttributeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyParameterGroupAttributeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyParameterGroupAttributeResult `json:"result"`
+}
+
+type ModifyParameterGroupAttributeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupParameters.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupParameters.go
new file mode 100644
index 0000000000..3bc195bf80
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameterGroupParameters.go
@@ -0,0 +1,129 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type ModifyParameterGroupParametersRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Parameter Group ID */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 修改的参数 */
+ Parameters []rds.Parameter `json:"parameters"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param parameters: 修改的参数 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyParameterGroupParametersRequest(
+ regionId string,
+ parameterGroupId string,
+ parameters []rds.Parameter,
+) *ModifyParameterGroupParametersRequest {
+
+ return &ModifyParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ Parameters: parameters,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param parameterGroupId: Parameter Group ID (Required)
+ * param parameters: 修改的参数 (Required)
+ */
+func NewModifyParameterGroupParametersRequestWithAllParams(
+ regionId string,
+ parameterGroupId string,
+ parameters []rds.Parameter,
+) *ModifyParameterGroupParametersRequest {
+
+ return &ModifyParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ParameterGroupId: parameterGroupId,
+ Parameters: parameters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyParameterGroupParametersRequestWithoutParam() *ModifyParameterGroupParametersRequest {
+
+ return &ModifyParameterGroupParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/parameterGroups/{parameterGroupId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *ModifyParameterGroupParametersRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param parameterGroupId: Parameter Group ID(Required) */
+func (r *ModifyParameterGroupParametersRequest) SetParameterGroupId(parameterGroupId string) {
+ r.ParameterGroupId = parameterGroupId
+}
+
+/* param parameters: 修改的参数(Required) */
+func (r *ModifyParameterGroupParametersRequest) SetParameters(parameters []rds.Parameter) {
+ r.Parameters = parameters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyParameterGroupParametersRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyParameterGroupParametersResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyParameterGroupParametersResult `json:"result"`
+}
+
+type ModifyParameterGroupParametersResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameters.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameters.go
new file mode 100644
index 0000000000..3893af8f03
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyParameters.go
@@ -0,0 +1,129 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type ModifyParametersRequest struct {
+
+ core.JDCloudRequest
+
+ /* Region ID */
+ RegionId string `json:"regionId"`
+
+ /* Instance ID */
+ InstanceId string `json:"instanceId"`
+
+ /* 修改的实例参数 */
+ Parameters []rds.Parameter `json:"parameters"`
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ * param parameters: 修改的实例参数 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyParametersRequest(
+ regionId string,
+ instanceId string,
+ parameters []rds.Parameter,
+) *ModifyParametersRequest {
+
+ return &ModifyParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Parameters: parameters,
+ }
+}
+
+/*
+ * param regionId: Region ID (Required)
+ * param instanceId: Instance ID (Required)
+ * param parameters: 修改的实例参数 (Required)
+ */
+func NewModifyParametersRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ parameters []rds.Parameter,
+) *ModifyParametersRequest {
+
+ return &ModifyParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Parameters: parameters,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyParametersRequestWithoutParam() *ModifyParametersRequest {
+
+ return &ModifyParametersRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/parameters",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: Region ID(Required) */
+func (r *ModifyParametersRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: Instance ID(Required) */
+func (r *ModifyParametersRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param parameters: 修改的实例参数(Required) */
+func (r *ModifyParametersRequest) SetParameters(parameters []rds.Parameter) {
+ r.Parameters = parameters
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyParametersRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyParametersResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyParametersResult `json:"result"`
+}
+
+type ModifyParametersResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyReadWriteProxy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyReadWriteProxy.go
new file mode 100644
index 0000000000..ebb6063854
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyReadWriteProxy.go
@@ -0,0 +1,148 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type ModifyReadWriteProxyRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* 读写分离代理服务ID */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+
+ /* 延迟阈值,范围是0~1000,单位:秒,默认为100 (Optional) */
+ DelayThreshold *int `json:"delayThreshold"`
+
+ /* 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ LoadBalancerPolicy *string `json:"loadBalancerPolicy"`
+
+ /* 后端实例健康检查配置 (Optional) */
+ HealthCheckSpec *rds.HealthCheckSpec `json:"healthCheckSpec"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyReadWriteProxyRequest(
+ regionId string,
+ readWriteProxyId string,
+) *ModifyReadWriteProxyRequest {
+
+ return &ModifyReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:modifyReadWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param readWriteProxyId: 读写分离代理服务ID (Required)
+ * param delayThreshold: 延迟阈值,范围是0~1000,单位:秒,默认为100 (Optional)
+ * param loadBalancerPolicy: 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional)
+ * param healthCheckSpec: 后端实例健康检查配置 (Optional)
+ */
+func NewModifyReadWriteProxyRequestWithAllParams(
+ regionId string,
+ readWriteProxyId string,
+ delayThreshold *int,
+ loadBalancerPolicy *string,
+ healthCheckSpec *rds.HealthCheckSpec,
+) *ModifyReadWriteProxyRequest {
+
+ return &ModifyReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:modifyReadWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ ReadWriteProxyId: readWriteProxyId,
+ DelayThreshold: delayThreshold,
+ LoadBalancerPolicy: loadBalancerPolicy,
+ HealthCheckSpec: healthCheckSpec,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyReadWriteProxyRequestWithoutParam() *ModifyReadWriteProxyRequest {
+
+ return &ModifyReadWriteProxyRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/readWriteProxy/{readWriteProxyId}:modifyReadWriteProxy",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyReadWriteProxyRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param readWriteProxyId: 读写分离代理服务ID(Required) */
+func (r *ModifyReadWriteProxyRequest) SetReadWriteProxyId(readWriteProxyId string) {
+ r.ReadWriteProxyId = readWriteProxyId
+}
+
+/* param delayThreshold: 延迟阈值,范围是0~1000,单位:秒,默认为100(Optional) */
+func (r *ModifyReadWriteProxyRequest) SetDelayThreshold(delayThreshold int) {
+ r.DelayThreshold = &delayThreshold
+}
+
+/* param loadBalancerPolicy: 读写分离代理后端实例负载均衡策略,默认值为LEAST_CURRENT_OPERATIONS;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)(Optional) */
+func (r *ModifyReadWriteProxyRequest) SetLoadBalancerPolicy(loadBalancerPolicy string) {
+ r.LoadBalancerPolicy = &loadBalancerPolicy
+}
+
+/* param healthCheckSpec: 后端实例健康检查配置(Optional) */
+func (r *ModifyReadWriteProxyRequest) SetHealthCheckSpec(healthCheckSpec *rds.HealthCheckSpec) {
+ r.HealthCheckSpec = healthCheckSpec
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyReadWriteProxyRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyReadWriteProxyResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyReadWriteProxyResult `json:"result"`
+}
+
+type ModifyReadWriteProxyResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyWhiteList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyWhiteList.go
new file mode 100644
index 0000000000..0f8d2f0b56
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ModifyWhiteList.go
@@ -0,0 +1,128 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ModifyWhiteListRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 */
+ Ips string `json:"ips"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param ips: IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewModifyWhiteListRequest(
+ regionId string,
+ instanceId string,
+ ips string,
+) *ModifyWhiteListRequest {
+
+ return &ModifyWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Ips: ips,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param ips: IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 (Required)
+ */
+func NewModifyWhiteListRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ ips string,
+) *ModifyWhiteListRequest {
+
+ return &ModifyWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ Ips: ips,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewModifyWhiteListRequestWithoutParam() *ModifyWhiteListRequest {
+
+ return &ModifyWhiteListRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/whiteList",
+ Method: "PUT",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ModifyWhiteListRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ModifyWhiteListRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param ips: IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10(Required) */
+func (r *ModifyWhiteListRequest) SetIps(ips string) {
+ r.Ips = ips
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ModifyWhiteListRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ModifyWhiteListResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ModifyWhiteListResult `json:"result"`
+}
+
+type ModifyWhiteListResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RebootInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RebootInstance.go
new file mode 100644
index 0000000000..e85673d808
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RebootInstance.go
@@ -0,0 +1,136 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RebootInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 是否重启主节点。
- 仅SQL Server 支持该参数 (Optional) */
+ RebootMaster *bool `json:"rebootMaster"`
+
+ /* 是否重启备节点。
- 仅SQL Server 支持该参数 (Optional) */
+ RebootSlave *bool `json:"rebootSlave"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRebootInstanceRequest(
+ regionId string,
+ instanceId string,
+) *RebootInstanceRequest {
+
+ return &RebootInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:rebootInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param rebootMaster: 是否重启主节点。
- 仅SQL Server 支持该参数 (Optional)
+ * param rebootSlave: 是否重启备节点。
- 仅SQL Server 支持该参数 (Optional)
+ */
+func NewRebootInstanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ rebootMaster *bool,
+ rebootSlave *bool,
+) *RebootInstanceRequest {
+
+ return &RebootInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:rebootInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ RebootMaster: rebootMaster,
+ RebootSlave: rebootSlave,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRebootInstanceRequestWithoutParam() *RebootInstanceRequest {
+
+ return &RebootInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:rebootInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RebootInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RebootInstanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param rebootMaster: 是否重启主节点。
- 仅SQL Server 支持该参数(Optional) */
+func (r *RebootInstanceRequest) SetRebootMaster(rebootMaster bool) {
+ r.RebootMaster = &rebootMaster
+}
+
+/* param rebootSlave: 是否重启备节点。
- 仅SQL Server 支持该参数(Optional) */
+func (r *RebootInstanceRequest) SetRebootSlave(rebootSlave bool) {
+ r.RebootSlave = &rebootSlave
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RebootInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RebootInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RebootInstanceResult `json:"result"`
+}
+
+type RebootInstanceResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ResetPassword.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ResetPassword.go
new file mode 100644
index 0000000000..eaf6bbf1c6
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/ResetPassword.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type ResetPasswordRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+
+ /* 新密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+ AccountPassword string `json:"accountPassword"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param accountPassword: 新密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewResetPasswordRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+) *ResetPasswordRequest {
+
+ return &ResetPasswordRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:resetPassword",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param accountPassword: 新密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Required)
+ */
+func NewResetPasswordRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ accountPassword string,
+) *ResetPasswordRequest {
+
+ return &ResetPasswordRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:resetPassword",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ AccountPassword: accountPassword,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewResetPasswordRequestWithoutParam() *ResetPasswordRequest {
+
+ return &ResetPasswordRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:resetPassword",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *ResetPasswordRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *ResetPasswordRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *ResetPasswordRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param accountPassword: 新密码,密码的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md)(Required) */
+func (r *ResetPasswordRequest) SetAccountPassword(accountPassword string) {
+ r.AccountPassword = accountPassword
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r ResetPasswordRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type ResetPasswordResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result ResetPasswordResult `json:"result"`
+}
+
+type ResetPasswordResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromBackup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromBackup.go
new file mode 100644
index 0000000000..33d14f9394
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromBackup.go
@@ -0,0 +1,156 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RestoreDatabaseFromBackupRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 库名称 */
+ DbName string `json:"dbName"`
+
+ /* 备份ID,可从备份查询接口describeBackups获取 */
+ BackupId string `json:"backupId"`
+
+ /* 指定该备份中用于恢复数据库的文件名称。通常情况下文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份 */
+ BackupFileName string `json:"backupFileName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param backupId: 备份ID,可从备份查询接口describeBackups获取 (Required)
+ * param backupFileName: 指定该备份中用于恢复数据库的文件名称。通常情况下文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRestoreDatabaseFromBackupRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+ backupId string,
+ backupFileName string,
+) *RestoreDatabaseFromBackupRequest {
+
+ return &RestoreDatabaseFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ BackupId: backupId,
+ BackupFileName: backupFileName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param backupId: 备份ID,可从备份查询接口describeBackups获取 (Required)
+ * param backupFileName: 指定该备份中用于恢复数据库的文件名称。通常情况下文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份 (Required)
+ */
+func NewRestoreDatabaseFromBackupRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+ backupId string,
+ backupFileName string,
+) *RestoreDatabaseFromBackupRequest {
+
+ return &RestoreDatabaseFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ BackupId: backupId,
+ BackupFileName: backupFileName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRestoreDatabaseFromBackupRequestWithoutParam() *RestoreDatabaseFromBackupRequest {
+
+ return &RestoreDatabaseFromBackupRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromBackup",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RestoreDatabaseFromBackupRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RestoreDatabaseFromBackupRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 库名称(Required) */
+func (r *RestoreDatabaseFromBackupRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+/* param backupId: 备份ID,可从备份查询接口describeBackups获取(Required) */
+func (r *RestoreDatabaseFromBackupRequest) SetBackupId(backupId string) {
+ r.BackupId = backupId
+}
+
+/* param backupFileName: 指定该备份中用于恢复数据库的文件名称。通常情况下文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份(Required) */
+func (r *RestoreDatabaseFromBackupRequest) SetBackupFileName(backupFileName string) {
+ r.BackupFileName = backupFileName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RestoreDatabaseFromBackupRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RestoreDatabaseFromBackupResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RestoreDatabaseFromBackupResult `json:"result"`
+}
+
+type RestoreDatabaseFromBackupResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromFile.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromFile.go
new file mode 100644
index 0000000000..476cd9a6d9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromFile.go
@@ -0,0 +1,153 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RestoreDatabaseFromFileRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 库名称 */
+ DbName string `json:"dbName"`
+
+ /* 共享文件的全局ID,可从上传文件查询接口[describeImportFiles](../Cloud-on-Single-Database/describeImportFiles.md)获取;如果该文件不是共享文件,则不用输入该参数 (Optional) */
+ SharedFileGid *string `json:"sharedFileGid"`
+
+ /* 用户上传的备份文件名称(包括文件后缀名),例如mydb1.bak */
+ FileName string `json:"fileName"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param fileName: 用户上传的备份文件名称(包括文件后缀名),例如mydb1.bak (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRestoreDatabaseFromFileRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+ fileName string,
+) *RestoreDatabaseFromFileRequest {
+
+ return &RestoreDatabaseFromFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromFile",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ FileName: fileName,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param sharedFileGid: 共享文件的全局ID,可从上传文件查询接口[describeImportFiles](../Cloud-on-Single-Database/describeImportFiles.md)获取;如果该文件不是共享文件,则不用输入该参数 (Optional)
+ * param fileName: 用户上传的备份文件名称(包括文件后缀名),例如mydb1.bak (Required)
+ */
+func NewRestoreDatabaseFromFileRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+ sharedFileGid *string,
+ fileName string,
+) *RestoreDatabaseFromFileRequest {
+
+ return &RestoreDatabaseFromFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromFile",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ SharedFileGid: sharedFileGid,
+ FileName: fileName,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRestoreDatabaseFromFileRequestWithoutParam() *RestoreDatabaseFromFileRequest {
+
+ return &RestoreDatabaseFromFileRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromFile",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RestoreDatabaseFromFileRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RestoreDatabaseFromFileRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 库名称(Required) */
+func (r *RestoreDatabaseFromFileRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+/* param sharedFileGid: 共享文件的全局ID,可从上传文件查询接口[describeImportFiles](../Cloud-on-Single-Database/describeImportFiles.md)获取;如果该文件不是共享文件,则不用输入该参数(Optional) */
+func (r *RestoreDatabaseFromFileRequest) SetSharedFileGid(sharedFileGid string) {
+ r.SharedFileGid = &sharedFileGid
+}
+
+/* param fileName: 用户上传的备份文件名称(包括文件后缀名),例如mydb1.bak(Required) */
+func (r *RestoreDatabaseFromFileRequest) SetFileName(fileName string) {
+ r.FileName = fileName
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RestoreDatabaseFromFileRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RestoreDatabaseFromFileResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RestoreDatabaseFromFileResult `json:"result"`
+}
+
+type RestoreDatabaseFromFileResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromOSS.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromOSS.go
new file mode 100644
index 0000000000..669f1ba41f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreDatabaseFromOSS.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RestoreDatabaseFromOSSRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 库名称 */
+ DbName string `json:"dbName"`
+
+ /* 用户上传到对象存储OSS上的备份文件的路径。
例如用户备份上传的bucket为db_backup,文件为test_server/db1.bak,那么ossULR为db_backup/test_server/db1.bak。
**授权说明**:需要授予账户ID:785455908940,对这个bucket的读取权限,具体步骤可以查看[文档](https://docs.jdcloud.com/cn/object-storage-service/set-bucket-policy-2)。 */
+ OssURL string `json:"ossURL"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param ossURL: 用户上传到对象存储OSS上的备份文件的路径。
例如用户备份上传的bucket为db_backup,文件为test_server/db1.bak,那么ossULR为db_backup/test_server/db1.bak。
**授权说明**:需要授予账户ID:785455908940,对这个bucket的读取权限,具体步骤可以查看[文档](https://docs.jdcloud.com/cn/object-storage-service/set-bucket-policy-2)。 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRestoreDatabaseFromOSSRequest(
+ regionId string,
+ instanceId string,
+ dbName string,
+ ossURL string,
+) *RestoreDatabaseFromOSSRequest {
+
+ return &RestoreDatabaseFromOSSRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromOSS",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ OssURL: ossURL,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param dbName: 库名称 (Required)
+ * param ossURL: 用户上传到对象存储OSS上的备份文件的路径。
例如用户备份上传的bucket为db_backup,文件为test_server/db1.bak,那么ossULR为db_backup/test_server/db1.bak。
**授权说明**:需要授予账户ID:785455908940,对这个bucket的读取权限,具体步骤可以查看[文档](https://docs.jdcloud.com/cn/object-storage-service/set-bucket-policy-2)。 (Required)
+ */
+func NewRestoreDatabaseFromOSSRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ dbName string,
+ ossURL string,
+) *RestoreDatabaseFromOSSRequest {
+
+ return &RestoreDatabaseFromOSSRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromOSS",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ DbName: dbName,
+ OssURL: ossURL,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRestoreDatabaseFromOSSRequestWithoutParam() *RestoreDatabaseFromOSSRequest {
+
+ return &RestoreDatabaseFromOSSRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/databases/{dbName}:restoreDatabaseFromOSS",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RestoreDatabaseFromOSSRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RestoreDatabaseFromOSSRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param dbName: 库名称(Required) */
+func (r *RestoreDatabaseFromOSSRequest) SetDbName(dbName string) {
+ r.DbName = dbName
+}
+
+/* param ossURL: 用户上传到对象存储OSS上的备份文件的路径。
例如用户备份上传的bucket为db_backup,文件为test_server/db1.bak,那么ossULR为db_backup/test_server/db1.bak。
**授权说明**:需要授予账户ID:785455908940,对这个bucket的读取权限,具体步骤可以查看[文档](https://docs.jdcloud.com/cn/object-storage-service/set-bucket-policy-2)。(Required) */
+func (r *RestoreDatabaseFromOSSRequest) SetOssURL(ossURL string) {
+ r.OssURL = ossURL
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RestoreDatabaseFromOSSRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RestoreDatabaseFromOSSResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RestoreDatabaseFromOSSResult `json:"result"`
+}
+
+type RestoreDatabaseFromOSSResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstance.go
new file mode 100644
index 0000000000..6b96051558
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstance.go
@@ -0,0 +1,125 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RestoreInstanceRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 用于恢复的备份Id,仅限于本实例生成的备份 (Optional) */
+ BackupId *string `json:"backupId"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRestoreInstanceRequest(
+ regionId string,
+ instanceId string,
+) *RestoreInstanceRequest {
+
+ return &RestoreInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param backupId: 用于恢复的备份Id,仅限于本实例生成的备份 (Optional)
+ */
+func NewRestoreInstanceRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ backupId *string,
+) *RestoreInstanceRequest {
+
+ return &RestoreInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ BackupId: backupId,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRestoreInstanceRequestWithoutParam() *RestoreInstanceRequest {
+
+ return &RestoreInstanceRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstance",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RestoreInstanceRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RestoreInstanceRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param backupId: 用于恢复的备份Id,仅限于本实例生成的备份(Optional) */
+func (r *RestoreInstanceRequest) SetBackupId(backupId string) {
+ r.BackupId = &backupId
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RestoreInstanceRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RestoreInstanceResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RestoreInstanceResult `json:"result"`
+}
+
+type RestoreInstanceResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstanceByTime.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstanceByTime.go
new file mode 100644
index 0000000000..5c24e508f1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RestoreInstanceByTime.go
@@ -0,0 +1,143 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models"
+)
+
+type RestoreInstanceByTimeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 根据源实例的哪个时间点创建新实例 */
+ RestoreTime string `json:"restoreTime"`
+
+ /* 需要进行单库,单表恢复的概要信息 */
+ RestoreSchema []rds.Schema `json:"restoreSchema"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param restoreSchema: 需要进行单库,单表恢复的概要信息 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRestoreInstanceByTimeRequest(
+ regionId string,
+ instanceId string,
+ restoreTime string,
+ restoreSchema []rds.Schema,
+) *RestoreInstanceByTimeRequest {
+
+ return &RestoreInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ RestoreTime: restoreTime,
+ RestoreSchema: restoreSchema,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param restoreTime: 根据源实例的哪个时间点创建新实例 (Required)
+ * param restoreSchema: 需要进行单库,单表恢复的概要信息 (Required)
+ */
+func NewRestoreInstanceByTimeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ restoreTime string,
+ restoreSchema []rds.Schema,
+) *RestoreInstanceByTimeRequest {
+
+ return &RestoreInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ RestoreTime: restoreTime,
+ RestoreSchema: restoreSchema,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRestoreInstanceByTimeRequestWithoutParam() *RestoreInstanceByTimeRequest {
+
+ return &RestoreInstanceByTimeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}:restoreInstanceByTime",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RestoreInstanceByTimeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RestoreInstanceByTimeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param restoreTime: 根据源实例的哪个时间点创建新实例(Required) */
+func (r *RestoreInstanceByTimeRequest) SetRestoreTime(restoreTime string) {
+ r.RestoreTime = restoreTime
+}
+
+/* param restoreSchema: 需要进行单库,单表恢复的概要信息(Required) */
+func (r *RestoreInstanceByTimeRequest) SetRestoreSchema(restoreSchema []rds.Schema) {
+ r.RestoreSchema = restoreSchema
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RestoreInstanceByTimeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RestoreInstanceByTimeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RestoreInstanceByTimeResult `json:"result"`
+}
+
+type RestoreInstanceByTimeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RevokePrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RevokePrivilege.go
new file mode 100644
index 0000000000..bf9a5ab8cc
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/RevokePrivilege.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type RevokePrivilegeRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 账号名,在同一个实例中账号名不能重复 */
+ AccountName string `json:"accountName"`
+
+ /* 需要取消授权的数据库的名称。权限取消后,该账号将不能访问此数据库 */
+ DbNames []string `json:"dbNames"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param dbNames: 需要取消授权的数据库的名称。权限取消后,该账号将不能访问此数据库 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewRevokePrivilegeRequest(
+ regionId string,
+ instanceId string,
+ accountName string,
+ dbNames []string,
+) *RevokePrivilegeRequest {
+
+ return &RevokePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:revokePrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ DbNames: dbNames,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param accountName: 账号名,在同一个实例中账号名不能重复 (Required)
+ * param dbNames: 需要取消授权的数据库的名称。权限取消后,该账号将不能访问此数据库 (Required)
+ */
+func NewRevokePrivilegeRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ accountName string,
+ dbNames []string,
+) *RevokePrivilegeRequest {
+
+ return &RevokePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:revokePrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ AccountName: accountName,
+ DbNames: dbNames,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewRevokePrivilegeRequestWithoutParam() *RevokePrivilegeRequest {
+
+ return &RevokePrivilegeRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/accounts/{accountName}:revokePrivilege",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *RevokePrivilegeRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *RevokePrivilegeRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param accountName: 账号名,在同一个实例中账号名不能重复(Required) */
+func (r *RevokePrivilegeRequest) SetAccountName(accountName string) {
+ r.AccountName = accountName
+}
+
+/* param dbNames: 需要取消授权的数据库的名称。权限取消后,该账号将不能访问此数据库(Required) */
+func (r *RevokePrivilegeRequest) SetDbNames(dbNames []string) {
+ r.DbNames = dbNames
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r RevokePrivilegeRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type RevokePrivilegeResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result RevokePrivilegeResult `json:"result"`
+}
+
+type RevokePrivilegeResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/SetImportFileShared.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/SetImportFileShared.go
new file mode 100644
index 0000000000..47d9e7d0e0
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/SetImportFileShared.go
@@ -0,0 +1,142 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type SetImportFileSharedRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 单库上云文件名 */
+ FileName string `json:"fileName"`
+
+ /* 文件是否共享
true:共享
false:不共享 */
+ Shared string `json:"shared"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 单库上云文件名 (Required)
+ * param shared: 文件是否共享
true:共享
false:不共享 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewSetImportFileSharedRequest(
+ regionId string,
+ instanceId string,
+ fileName string,
+ shared string,
+) *SetImportFileSharedRequest {
+
+ return &SetImportFileSharedRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}:setShared",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ Shared: shared,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param fileName: 单库上云文件名 (Required)
+ * param shared: 文件是否共享
true:共享
false:不共享 (Required)
+ */
+func NewSetImportFileSharedRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ fileName string,
+ shared string,
+) *SetImportFileSharedRequest {
+
+ return &SetImportFileSharedRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}:setShared",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ FileName: fileName,
+ Shared: shared,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewSetImportFileSharedRequestWithoutParam() *SetImportFileSharedRequest {
+
+ return &SetImportFileSharedRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/importFiles/{fileName}:setShared",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *SetImportFileSharedRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *SetImportFileSharedRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param fileName: 单库上云文件名(Required) */
+func (r *SetImportFileSharedRequest) SetFileName(fileName string) {
+ r.FileName = fileName
+}
+
+/* param shared: 文件是否共享
true:共享
false:不共享(Required) */
+func (r *SetImportFileSharedRequest) SetShared(shared string) {
+ r.Shared = shared
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r SetImportFileSharedRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type SetImportFileSharedResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result SetImportFileSharedResult `json:"result"`
+}
+
+type SetImportFileSharedResult struct {
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/UpdateLogDownloadURLInternal.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/UpdateLogDownloadURLInternal.go
new file mode 100644
index 0000000000..5e810cfa0e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis/UpdateLogDownloadURLInternal.go
@@ -0,0 +1,144 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package apis
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+)
+
+type UpdateLogDownloadURLInternalRequest struct {
+
+ core.JDCloudRequest
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) */
+ RegionId string `json:"regionId"`
+
+ /* RDS 实例ID,唯一标识一个RDS实例 */
+ InstanceId string `json:"instanceId"`
+
+ /* 日志文件ID */
+ LogId string `json:"logId"`
+
+ /* 设置链接地址的过期时间,单位是秒,最长不能超过取值范围为 1 ~ 86400 秒 */
+ Seconds int `json:"seconds"`
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param logId: 日志文件ID (Required)
+ * param seconds: 设置链接地址的过期时间,单位是秒,最长不能超过取值范围为 1 ~ 86400 秒 (Required)
+ *
+ * @Deprecated, not compatible when mandatory parameters changed
+ */
+func NewUpdateLogDownloadURLInternalRequest(
+ regionId string,
+ instanceId string,
+ logId string,
+ seconds int,
+) *UpdateLogDownloadURLInternalRequest {
+
+ return &UpdateLogDownloadURLInternalRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:updateLogDownloadURLInternal",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ LogId: logId,
+ Seconds: seconds,
+ }
+}
+
+/*
+ * param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Required)
+ * param instanceId: RDS 实例ID,唯一标识一个RDS实例 (Required)
+ * param logId: 日志文件ID (Required)
+ * param seconds: 设置链接地址的过期时间,单位是秒,最长不能超过取值范围为 1 ~ 86400 秒 (Required)
+ */
+func NewUpdateLogDownloadURLInternalRequestWithAllParams(
+ regionId string,
+ instanceId string,
+ logId string,
+ seconds int,
+) *UpdateLogDownloadURLInternalRequest {
+
+ return &UpdateLogDownloadURLInternalRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:updateLogDownloadURLInternal",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ RegionId: regionId,
+ InstanceId: instanceId,
+ LogId: logId,
+ Seconds: seconds,
+ }
+}
+
+/* This constructor has better compatible ability when API parameters changed */
+func NewUpdateLogDownloadURLInternalRequestWithoutParam() *UpdateLogDownloadURLInternalRequest {
+
+ return &UpdateLogDownloadURLInternalRequest{
+ JDCloudRequest: core.JDCloudRequest{
+ URL: "/regions/{regionId}/instances/{instanceId}/log/{logId}:updateLogDownloadURLInternal",
+ Method: "POST",
+ Header: nil,
+ Version: "v1",
+ },
+ }
+}
+
+/* param regionId: 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md)(Required) */
+func (r *UpdateLogDownloadURLInternalRequest) SetRegionId(regionId string) {
+ r.RegionId = regionId
+}
+
+/* param instanceId: RDS 实例ID,唯一标识一个RDS实例(Required) */
+func (r *UpdateLogDownloadURLInternalRequest) SetInstanceId(instanceId string) {
+ r.InstanceId = instanceId
+}
+
+/* param logId: 日志文件ID(Required) */
+func (r *UpdateLogDownloadURLInternalRequest) SetLogId(logId string) {
+ r.LogId = logId
+}
+
+/* param seconds: 设置链接地址的过期时间,单位是秒,最长不能超过取值范围为 1 ~ 86400 秒(Required) */
+func (r *UpdateLogDownloadURLInternalRequest) SetSeconds(seconds int) {
+ r.Seconds = seconds
+}
+
+// GetRegionId returns path parameter 'regionId' if exist,
+// otherwise return empty string
+func (r UpdateLogDownloadURLInternalRequest) GetRegionId() string {
+ return r.RegionId
+}
+
+type UpdateLogDownloadURLInternalResponse struct {
+ RequestID string `json:"requestId"`
+ Error core.ErrorResponse `json:"error"`
+ Result UpdateLogDownloadURLInternalResult `json:"result"`
+}
+
+type UpdateLogDownloadURLInternalResult struct {
+ PublicURL string `json:"publicURL"`
+ InternalURL string `json:"internalURL"`
+}
\ No newline at end of file
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client/RdsClient.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client/RdsClient.go
new file mode 100644
index 0000000000..6f14560ceb
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client/RdsClient.go
@@ -0,0 +1,2299 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package client
+
+import (
+ "github.com/jdcloud-api/jdcloud-sdk-go/core"
+ rds "github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis"
+ "encoding/json"
+ "errors"
+)
+
+type RdsClient struct {
+ core.JDCloudClient
+}
+
+func NewRdsClient(credential *core.Credential) *RdsClient {
+ if credential == nil {
+ return nil
+ }
+
+ config := core.NewConfig()
+ config.SetEndpoint("rds.jdcloud-api.com")
+
+ return &RdsClient{
+ core.JDCloudClient{
+ Credential: *credential,
+ Config: *config,
+ ServiceName: "rds",
+ Revision: "0.10.7",
+ Logger: core.NewDefaultLogger(core.LogInfo),
+ }}
+}
+
+func (c *RdsClient) SetConfig(config *core.Config) {
+ c.Config = *config
+}
+
+func (c *RdsClient) SetLogger(logger core.Logger) {
+ c.Logger = logger
+}
+
+func (c *RdsClient) DisableLogger() {
+ c.Logger = core.NewDummyLogger()
+}
+
+/* 获取某个审计文件的下载链接,同时支持内链和外链,链接的有效时间为24小时
- 仅支持SQL Server */
+func (c *RdsClient) DescribeAuditDownloadURL(request *rds.DescribeAuditDownloadURLRequest) (*rds.DescribeAuditDownloadURLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAuditDownloadURLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看开启高安全模式后,当前实例的 SQL 拦截记录
- 仅支持MySQL */
+func (c *RdsClient) DescribeInterceptResult(request *rds.DescribeInterceptResultRequest) (*rds.DescribeInterceptResultResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeInterceptResultResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取整个备份或备份中单个文件的下载链接。
- 当输入参数中有文件名时,获取该文件的下载链接。
- 输入参数中无文件名时,获取整个备份的下载链接。
由于备份机制的差异,使用该接口下载备份时,SQL Server必须输入文件名,每个文件逐一下载,不支持下载整个备份。SQL Server备份中的文件名(不包括后缀)即为备份的数据库名。例如文件名为my_test_db.bak,表示该文件是my_test_db数据库的备份。
MySQL可下载整个备份集,但不支持单个文件的下载。 */
+func (c *RdsClient) DescribeBackupDownloadURL(request *rds.DescribeBackupDownloadURLRequest) (*rds.DescribeBackupDownloadURLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupDownloadURLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 拷贝参数组 */
+func (c *RdsClient) CopyParameterGroup(request *rds.CopyParameterGroupRequest) (*rds.CopyParameterGroupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CopyParameterGroupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 通过 PT-OSC 服务来处理 DDL 命令, 避免锁表。此接口暂是对部分用户开放 */
+func (c *RdsClient) AlterTableWithOnlineDDL(request *rds.AlterTableWithOnlineDDLRequest) (*rds.AlterTableWithOnlineDDLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.AlterTableWithOnlineDDLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改实例的可用区,例如将实例的可用区从单可用区调整为多可用区 */
+func (c *RdsClient) ModifyInstanceAz(request *rds.ModifyInstanceAzRequest) (*rds.ModifyInstanceAzResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyInstanceAzResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据源实例备份创建一个新实例,并通过追加日志的方式,将新实例的数据恢复到跟源实例指定时间点的数据状态一样。
例如根据实例A在“2018-06-18 23:00:00”时间点创建一个实例B,就是新建一个实例B,该实例B的数据跟实例A在“2018-06-18 23:00:00”这个时间点的数据完全一致。
对于SQL Server,主备切换后30分钟内,不支持按时间点恢复/创建,例如在10:05分用户进行了主备切换,那么10:05 ~ 10:35这个时间段不能进行按时间点恢复/创建。 */
+func (c *RdsClient) CreateInstanceByTime(request *rds.CreateInstanceByTimeRequest) (*rds.CreateInstanceByTimeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateInstanceByTimeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前实例下的所有审计结果文件的列表
- 仅支持SQL Server */
+func (c *RdsClient) DescribeAuditFiles(request *rds.DescribeAuditFilesRequest) (*rds.DescribeAuditFilesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAuditFilesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建数据库账号,用户可以使用客户端,应用程序等通过该账号和密码登录RDS数据库实例。
为便于管理和恢复,RDS对账号进行了限制,数据库账号只能通过控制台或者OpenAPI进行创建、删除账号以及对账号授权等,用户不能通过SQL语句对账号进行相关操作。 */
+func (c *RdsClient) CreateAccount(request *rds.CreateAccountRequest) (*rds.CreateAccountResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateAccountResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 授予账号的数据库访问权限,即该账号对数据库拥有什么权限。一个账号可以对多个数据库具有访问权限。
为便于管理,RDS对权限进行了归类,目前提供以下两种权限
- ro:只读权限,用户只能读取数据库中的数据,不能进行创建、插入、删除、更改等操作。
- rw:读写权限,用户可以对数据库进行增删改查等操作 */
+func (c *RdsClient) GrantPrivilege(request *rds.GrantPrivilegeRequest) (*rds.GrantPrivilegeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.GrantPrivilegeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 关闭读写分离代理服务的外网访问功能。关闭后,用户无法通过 Internet 连接读写分离代理服务,但可以在京东云内网通过内网域名连接
- 仅支持MySQL */
+func (c *RdsClient) DisableReadWriteProxyInternetAccess(request *rds.DisableReadWriteProxyInternetAccessRequest) (*rds.DisableReadWriteProxyInternetAccessResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DisableReadWriteProxyInternetAccessResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看指定RDS读写分离代理详情
- 仅支持MySQL */
+func (c *RdsClient) DescribeReadWriteProxyAttribute(request *rds.DescribeReadWriteProxyAttributeRequest) (*rds.DescribeReadWriteProxyAttributeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeReadWriteProxyAttributeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看指定地域下各种RDS数据库支持的可用区,不同类型的RDS支持的可用区不一样 */
+func (c *RdsClient) DescribeAzs(request *rds.DescribeAzsRequest) (*rds.DescribeAzsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAzsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取单库上云工具上传文件的需要的Key。单库上云工具需要正确的key值方能连接到京东云
- 仅支持SQL Server */
+func (c *RdsClient) GetUploadKey(request *rds.GetUploadKeyRequest) (*rds.GetUploadKeyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.GetUploadKeyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 从用户通过单库上云工具上传到云上的备份文件中恢复单个数据库
- 仅支持SQL Server */
+func (c *RdsClient) RestoreDatabaseFromFile(request *rds.RestoreDatabaseFromFileRequest) (*rds.RestoreDatabaseFromFileResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RestoreDatabaseFromFileResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询RDS实例(MySQL、SQL Server等)的详细信息以及MySQL/PostgreSQL只读实例详细信息 */
+func (c *RdsClient) DescribeInstanceAttributes(request *rds.DescribeInstanceAttributesRequest) (*rds.DescribeInstanceAttributesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeInstanceAttributesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 实例扩容,支持升级实例的CPU,内存及磁盘。 */
+func (c *RdsClient) ModifyInstanceSpec(request *rds.ModifyInstanceSpecRequest) (*rds.ModifyInstanceSpecResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyInstanceSpecResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除一个跨地域备份同步服务。 */
+func (c *RdsClient) DeleteBackupSynchronicity(request *rds.DeleteBackupSynchronicityRequest) (*rds.DeleteBackupSynchronicityResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteBackupSynchronicityResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除用户通过单库上云工具上传的数据库备份文件
- 仅支持SQL Server */
+func (c *RdsClient) DeleteImportFile(request *rds.DeleteImportFileRequest) (*rds.DeleteImportFileResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteImportFileResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改当前的审计选项。当前已有审计选项可以通过describeAudit获得,支持的全部选项可以通过getAuditOptions获得。
- 仅支持SQL Server */
+func (c *RdsClient) ModifyAudit(request *rds.ModifyAuditRequest) (*rds.ModifyAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取SQL Server实例按时间点恢复/创建时,可恢复到的最后的一个时间点
- 仅支持SQL Server */
+func (c *RdsClient) DescribeLatestRestoreTime(request *rds.DescribeLatestRestoreTimeRequest) (*rds.DescribeLatestRestoreTimeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeLatestRestoreTimeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取SQL Server 错误日志及下载信息
- 仅支持SQL Server */
+func (c *RdsClient) DescribeErrorLogs(request *rds.DescribeErrorLogsRequest) (*rds.DescribeErrorLogsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeErrorLogsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启数据库的TDE功能 */
+func (c *RdsClient) EnableTde(request *rds.EnableTdeRequest) (*rds.EnableTdeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableTdeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据源实例全量备份创建一个新实例,新实例的数据跟源实例在创建备份时的数据状态一样。
例如根据源实例A的一个全量备份“mybak”新建一个实例B,该备份是在“‘2018-8-18 03:23:54”创建的。那么新建实例B的数据状态跟实例A‘2018-8-18 03:23:54’的状态一致 */
+func (c *RdsClient) CreateInstanceFromBackup(request *rds.CreateInstanceFromBackupRequest) (*rds.CreateInstanceFromBackupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateInstanceFromBackupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看SQL Server实例的配置参数
- 仅支持SQL Server */
+func (c *RdsClient) DescribeParameters(request *rds.DescribeParametersRequest) (*rds.DescribeParametersResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeParametersResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改SQL Server实例的配置参数,目前支持以下参数:max_worker_threads,max_degree_of_parallelism,max_server_memory_(MB)。 部分参数修改后,需要重启才能生效,具体可以参考微软的相关文档。
- 仅支持SQL Server */
+func (c *RdsClient) ModifyParameters(request *rds.ModifyParametersRequest) (*rds.ModifyParametersResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyParametersResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 设置日志文件的下载链接过期时间,重新生成 PostgreSQL 的日志文件下载地址 */
+func (c *RdsClient) UpdateLogDownloadURLInternal(request *rds.UpdateLogDownloadURLInternalRequest) (*rds.UpdateLogDownloadURLInternalResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.UpdateLogDownloadURLInternalResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据日志文件的下载链接过期时间,生成日志文件下载地址 仅支持 PostgreSQL, MySQL, Percona, MariaDB */
+func (c *RdsClient) DescribeLogDownloadURL(request *rds.DescribeLogDownloadURLRequest) (*rds.DescribeLogDownloadURLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeLogDownloadURLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询PostgreSQL实例的错误日志的概要信息。
- 仅支持PostgreSQL */
+func (c *RdsClient) DescribeErrorLog(request *rds.DescribeErrorLogRequest) (*rds.DescribeErrorLogResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeErrorLogResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 交换两个实例的域名,包括内网域名和外网域名。如果一个实例有外网域名,一个没有,则不允许交换。
- 仅支持SQL Server */
+func (c *RdsClient) ExchangeInstanceDns(request *rds.ExchangeInstanceDnsRequest) (*rds.ExchangeInstanceDnsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ExchangeInstanceDnsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 关闭数据库的高安全模式
- 仅支持MySQL */
+func (c *RdsClient) DisableIntercept(request *rds.DisableInterceptRequest) (*rds.DisableInterceptResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DisableInterceptResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 仅支持MySQL实例关闭数据库审计
- 仅支持 MySQL 5.6, MySQL 5.7, Percona, MariaDB, PostgreSQL */
+func (c *RdsClient) DisableAudit(request *rds.DisableAuditRequest) (*rds.DisableAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DisableAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建一个数据库。 为了实例的管理和数据恢复,RDS对用户权限进行了限制,用户仅能通过控制台或本接口创建数据库 */
+func (c *RdsClient) CreateDatabase(request *rds.CreateDatabaseRequest) (*rds.CreateDatabaseResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateDatabaseResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 设置或取消上传文件是否共享给同一账号下的其他实例。缺省情况下,文件仅在上传的实例上可见并可导入,其他实例不可见不可导入。如果需要该文件在其他实例上也可导入,可将此文件设置为共享
- 仅支持SQL Server */
+func (c *RdsClient) SetImportFileShared(request *rds.SetImportFileSharedRequest) (*rds.SetImportFileSharedResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.SetImportFileSharedResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前实例的所有数据库详细信息的列表 */
+func (c *RdsClient) DescribeDatabases(request *rds.DescribeDatabasesRequest) (*rds.DescribeDatabasesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeDatabasesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启数据库的加密连接, 同时会重启数据库实例 */
+func (c *RdsClient) EnableSSL(request *rds.EnableSSLRequest) (*rds.EnableSSLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableSSLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据用户定义的查询条件,获取索引性能的统计信息,并提供缺失索引及索引创建建议。用户可以根据这些信息查找与索引相关的性能瓶颈,并进行优化。
- 仅支持SQL Server */
+func (c *RdsClient) DescribeIndexPerformance(request *rds.DescribeIndexPerformanceRequest) (*rds.DescribeIndexPerformanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeIndexPerformanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看RDS实例的账号的权限信息 - 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) DescribeAccountPrivilege(request *rds.DescribeAccountPrivilegeRequest) (*rds.DescribeAccountPrivilegeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAccountPrivilegeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启SQL Server的数据库审计功能,目前支持实例级的数据库审计。用户可以根据需要开启、关闭审计、自定义审计策略,并下载审计文件。审计文件为原生的SQL Server审计文件,缺省保存6个月。
- 仅支持SQL Server */
+func (c *RdsClient) CreateAudit(request *rds.CreateAuditRequest) (*rds.CreateAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改实例名称,可支持中文,实例名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) */
+func (c *RdsClient) ModifyInstanceName(request *rds.ModifyInstanceNameRequest) (*rds.ModifyInstanceNameResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyInstanceNameResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除RDS 实例的读写分离代理
- 仅支持MySQL */
+func (c *RdsClient) DeleteReadWriteProxy(request *rds.DeleteReadWriteProxyRequest) (*rds.DeleteReadWriteProxyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteReadWriteProxyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 仅支持MySQL实例开启数据库审计
- 仅支持 MySQL 5.6, MySQL 5.7, Percona, MariaDB, PostgreSQL */
+func (c *RdsClient) EnableAudit(request *rds.EnableAuditRequest) (*rds.EnableAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启读写分离代理服务的外网访问功能。开启后,用户可以通过 internet 连接读写分离代理服务
- 仅支持MySQL */
+func (c *RdsClient) EnableReadWriteProxyInternetAccess(request *rds.EnableReadWriteProxyInternetAccessRequest) (*rds.EnableReadWriteProxyInternetAccessResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableReadWriteProxyInternetAccessResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建一个RDS实例全量备份,可以对整个实例或者部分数据库(仅SQL Server支持)进行全量备份。同一时间点,只能有一个正在运行的备份任务 */
+func (c *RdsClient) CreateBackup(request *rds.CreateBackupRequest) (*rds.CreateBackupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateBackupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改RDS实例备份策略,目前仅支持用户修改“自动备份开始时间窗口”这个参数,其他参数暂不开放修改 */
+func (c *RdsClient) ModifyBackupPolicy(request *rds.ModifyBackupPolicyRequest) (*rds.ModifyBackupPolicyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyBackupPolicyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 使用实例的全量备份覆盖恢复当前实例 */
+func (c *RdsClient) RestoreInstance(request *rds.RestoreInstanceRequest) (*rds.RestoreInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RestoreInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取用户通过单库上云工具上传到该实例上的文件列表
- 仅支持SQL Server */
+func (c *RdsClient) DescribeImportFiles(request *rds.DescribeImportFilesRequest) (*rds.DescribeImportFilesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeImportFilesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前账号下所有的参数组列表
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) DescribeParameterGroups(request *rds.DescribeParameterGroupsRequest) (*rds.DescribeParameterGroupsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeParameterGroupsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 授予账号的数据库细粒度的访问权限 - 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) GrantAccountPrivilege(request *rds.GrantAccountPrivilegeRequest) (*rds.GrantAccountPrivilegeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.GrantAccountPrivilegeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 从备份中恢复单个数据库,支持从其他实例(但必须是同一个账号下的实例)备份中恢复。例如可以从生产环境的数据库实例的备份恢复到测试环境的数据库中。
- 仅支持SQL Server */
+func (c *RdsClient) RestoreDatabaseFromBackup(request *rds.RestoreDatabaseFromBackupRequest) (*rds.RestoreDatabaseFromBackupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RestoreDatabaseFromBackupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建数据库读写分离代理服务
- 仅支持MySQL */
+func (c *RdsClient) CreateReadWriteProxy(request *rds.CreateReadWriteProxyRequest) (*rds.CreateReadWriteProxyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateReadWriteProxyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看RDS实例当前白名单。白名单是允许访问当前实例的IP/IP段列表,缺省情况下,白名单对本VPC开放。如果用户开启了外网访问的功能,还需要对外网的IP配置白名单。 */
+func (c *RdsClient) DescribeWhiteList(request *rds.DescribeWhiteListRequest) (*rds.DescribeWhiteListResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeWhiteListResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 对RDS实例进行主备切换。
注意:如果实例正在进行备份,那么主备切换将会终止备份操作。可以查看备份策略中的备份开始时间确认是否有备份正在运行。如果确实需要在实例备份时进行主备切换,建议切换完成 后,手工进行一次实例的全备
对于SQL Server,主备切换后30分钟内,不支持按时间点恢复/创建,例如在10:05分用户进行了主备切换,那么10:05 ~ 10:35这个时间段不能进行按时间点恢复/创建。
- 仅支持SQL Server */
+func (c *RdsClient) FailoverInstance(request *rds.FailoverInstanceRequest) (*rds.FailoverInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.FailoverInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启增强备份模式,开启后,备份保留天数可大于7天。 免费备份额度外的备份将按照备份占用的空间收费。开启后,不支持关闭。
- 仅支持SQL Server */
+func (c *RdsClient) EnableEnhancedBackup(request *rds.EnableEnhancedBackupRequest) (*rds.EnableEnhancedBackupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableEnhancedBackupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看当前实例已开启的安全模式。如果开启数据库的高安全模式,会返回配置信息
- 仅支持MySQL */
+func (c *RdsClient) DescribeIntercept(request *rds.DescribeInterceptRequest) (*rds.DescribeInterceptResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeInterceptResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看云数据库 RDS 的权限信息 - 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) DescribePrivilege(request *rds.DescribePrivilegeRequest) (*rds.DescribePrivilegeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribePrivilegeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 清理本地的binlog并释放空间。 系统只会清理已经备份到存储的binlog,不会影响MySQL实例的备份恢复
- 仅支持MySQL */
+func (c *RdsClient) ClearBinlogs(request *rds.ClearBinlogsRequest) (*rds.ClearBinlogsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ClearBinlogsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看RDS实例备份策略。根据数据库类型的不同,支持的备份策略也略有差异,具体请看返回参数中的详细说明 */
+func (c *RdsClient) DescribeBackupPolicy(request *rds.DescribeBackupPolicyRequest) (*rds.DescribeBackupPolicyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupPolicyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取MySQL实例中binlog的详细信息
- 仅支持 MySQL, Percona, MariaDB */
+func (c *RdsClient) DescribeBinlogs(request *rds.DescribeBinlogsRequest) (*rds.DescribeBinlogsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBinlogsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除一个RDS实例或者MySQL/PostgreSQL的只读实例。删除MySQL/PostgreSQL主实例时,会同时将对应的MySQL/PostgreSQL只读实例也删除 [MFA enabled] */
+func (c *RdsClient) DeleteInstance(request *rds.DeleteInstanceRequest) (*rds.DeleteInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建一个参数组
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) CreateParameterGroup(request *rds.CreateParameterGroupRequest) (*rds.CreateParameterGroupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateParameterGroupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改数据库临时运维账号属性。
- 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) ModifyAccountForOps(request *rds.ModifyAccountForOpsRequest) (*rds.ModifyAccountForOpsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyAccountForOpsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看该RDS实例下所有备份的详细信息,返回的备份列表按照备份开始时间(backupStartTime)降序排列。 */
+func (c *RdsClient) DescribeBackups(request *rds.DescribeBackupsRequest) (*rds.DescribeBackupsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改MySQL实例的连接模式:标准模式(standard) 和高安全模式(security).
- **标准模式**:响应时间短,但没有 SQL 审计和拦截的能力。
- **高安全模式**:具备一定的 SQL注入拦截能力(通过分析表达式、关键系统函数等来实现防御 SQL 注入攻击),并可开启 SQL 审计,但会增加一定的响应时间。
- 仅支持MySQL */
+func (c *RdsClient) ModifyConnectionMode(request *rds.ModifyConnectionModeRequest) (*rds.ModifyConnectionModeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyConnectionModeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 关闭数据库审计。关闭数据库审计后,以前生成的审计结果文件并不会被立即删除。审计结果文件会过期后由系统自动删除,过期时间缺省为6个月
- 仅支持SQL Server */
+func (c *RdsClient) DeleteAudit(request *rds.DeleteAuditRequest) (*rds.DeleteAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看某个RDS实例下所有账号信息,包括账号名称、对各个数据库的访问权限信息等 */
+func (c *RdsClient) DescribeAccounts(request *rds.DescribeAccountsRequest) (*rds.DescribeAccountsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAccountsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启RDS实例的外网访问功能。开启后,用户可以通过internet访问RDS实例 */
+func (c *RdsClient) EnableInternetAccess(request *rds.EnableInternetAccessRequest) (*rds.EnableInternetAccessResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableInternetAccessResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改RDS实例的参数组
- 仅支持MySQL */
+func (c *RdsClient) ModifyParameterGroup(request *rds.ModifyParameterGroupRequest) (*rds.ModifyParameterGroupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyParameterGroupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看参数的修改历史
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) DescribeParameterModifyRecords(request *rds.DescribeParameterModifyRecordsRequest) (*rds.DescribeParameterModifyRecordsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeParameterModifyRecordsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取MySQL实例的binlog的下载链接
- 仅支持 MySQL, Percona, MariaDB */
+func (c *RdsClient) DescribeBinlogDownloadURL(request *rds.DescribeBinlogDownloadURLRequest) (*rds.DescribeBinlogDownloadURLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBinlogDownloadURLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前实例的指定库的表列表信息 - 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) DescribeTables(request *rds.DescribeTablesRequest) (*rds.DescribeTablesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeTablesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 取消该账号对某个数据库的所有权限。权限取消后,该账号将不能访问此数据库。取消账号对某个数据库的访问权限,不影响该账号对其他数据库的访问权限 */
+func (c *RdsClient) RevokePrivilege(request *rds.RevokePrivilegeRequest) (*rds.RevokePrivilegeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RevokePrivilegeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建数据库临时运维账号。
如果在使用数据库过程中需要京东云提供技术支持,并且需要对您的实例进行操作,您可以把临时运维账号提供给技术支持人员。
临时运维账号默认授予全局Select、Process权限,且账号只能通过控制台或者OpenAPI进行创建、删除账号以及对账号授权等,用户不能通过SQL语句对账号进行相关操作。
- 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) CreateAccountForOps(request *rds.CreateAccountForOpsRequest) (*rds.CreateAccountForOpsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateAccountForOpsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改SQL Server对接的Active Directory 服务。支持SQL Server 2012 及2012以上以上的版本。
注意:修改目录服务后,需重启SQL Server实例才能生效 */
+func (c *RdsClient) ModifyActiveDirectory(request *rds.ModifyActiveDirectoryRequest) (*rds.ModifyActiveDirectoryResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyActiveDirectoryResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看当前实例已开启的审计选项。如当前实例未开启审计,则返回空
- 仅支持SQL Server */
+func (c *RdsClient) DescribeAudit(request *rds.DescribeAuditRequest) (*rds.DescribeAuditResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAuditResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据用户定义的查询条件,获取SQL执行的性能统计信息,例如慢SQL等。用户可以根据这些信息查找与SQL执行相关的性能瓶颈,并进行优化。
- 仅支持SQL Server */
+func (c *RdsClient) DescribeQueryPerformance(request *rds.DescribeQueryPerformanceRequest) (*rds.DescribeQueryPerformanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeQueryPerformanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看参数组绑定的云数据库实例
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) DescribeParameterGroupAttachedInstances(request *rds.DescribeParameterGroupAttachedInstancesRequest) (*rds.DescribeParameterGroupAttachedInstancesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeParameterGroupAttachedInstancesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看当前实例是否开启TDE */
+func (c *RdsClient) DescribeTde(request *rds.DescribeTdeRequest) (*rds.DescribeTdeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeTdeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建一个跨地域备份同步服务。 */
+func (c *RdsClient) CreateBackupSynchronicity(request *rds.CreateBackupSynchronicityRequest) (*rds.CreateBackupSynchronicityResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateBackupSynchronicityResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询MySQL实例的慢日志的详细信息。
- 仅支持MySQL */
+func (c *RdsClient) DescribeSlowLogAttributes(request *rds.DescribeSlowLogAttributesRequest) (*rds.DescribeSlowLogAttributesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeSlowLogAttributesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改参数组名称,描述
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) ModifyParameterGroupAttribute(request *rds.ModifyParameterGroupAttributeRequest) (*rds.ModifyParameterGroupAttributeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyParameterGroupAttributeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 仅支持查看MySQL实例的审计内容
- 仅支持 MySQL 5.6, MySQL 5.7, Percona, MariaDB, PostgreSQL */
+func (c *RdsClient) DescribeAuditResult(request *rds.DescribeAuditResultRequest) (*rds.DescribeAuditResultResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAuditResultResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询MySQL实例的慢日志的概要信息。
- 仅支持MySQL */
+func (c *RdsClient) DescribeSlowLogs(request *rds.DescribeSlowLogsRequest) (*rds.DescribeSlowLogsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeSlowLogsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 从RDS实例中删除数据库。为便于管理和数据恢复,RDS对用户权限进行了控制,用户仅能通过控制台或本接口删除数据库 [MFA enabled] */
+func (c *RdsClient) DeleteDatabase(request *rds.DeleteDatabaseRequest) (*rds.DeleteDatabaseResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteDatabaseResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据用户定义的查询条件,获取正在执行中的SQL执行的性能信息。用户可以根据这些信息查找与SQL执行相关的性能瓶颈,并进行优化。
- 仅支持SQL Server */
+func (c *RdsClient) DescribeActiveQueryPerformance(request *rds.DescribeActiveQueryPerformanceRequest) (*rds.DescribeActiveQueryPerformanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeActiveQueryPerformanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建数据库账号,用户可以使用客户端,应用程序等通过该账号和密码登录RDS数据库实例。
为便于管理和恢复,RDS对账号进行了限制,数据库账号只能通过控制台或者OpenAPI进行创建、删除账号以及对账号授权等,用户不能通过SQL语句对账号进行相关操作。 */
+func (c *RdsClient) CreateSuperAccount(request *rds.CreateSuperAccountRequest) (*rds.CreateSuperAccountResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateSuperAccountResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 重置数据库账号密码。如果用户忘记账号的密码,可以使用该接口重置指定账号密码。密码重置后,以前的密码将无法使用,必须使用重置后的新密码登录或连接数据库实例。 */
+func (c *RdsClient) ResetPassword(request *rds.ResetPasswordRequest) (*rds.ResetPasswordResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ResetPasswordResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 关闭数据库的加密连接, 需要重启数据库实例才生效
- 仅支持SQL Server */
+func (c *RdsClient) DisableSSL(request *rds.DisableSSLRequest) (*rds.DisableSSLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DisableSSLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改允许访问实例的IP白名单。白名单是允许访问当前实例的IP/IP段列表,缺省情况下,白名单对本VPC开放。如果用户开启了外网访问的功能,还需要对外网的IP配置白名单。 */
+func (c *RdsClient) ModifyWhiteList(request *rds.ModifyWhiteListRequest) (*rds.ModifyWhiteListResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyWhiteListResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 开启数据库的高安全模式
- 仅支持MySQL */
+func (c *RdsClient) EnableIntercept(request *rds.EnableInterceptRequest) (*rds.EnableInterceptResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.EnableInterceptResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 重启RDS实例,例如修改了一些配置参数后,需要重启实例才能生效。可以结合主备切换的功能,轮流重启备机,降低对业务的影响
**注意:如果实例正在进行备份,那么重启主实例将会终止备份操作。** 可以查看备份策略中的备份开始时间确认是否有备份正在运行。如果确实需要在实例备份时重启主实例,建议重启后,手工进行一次实例的全备。 */
+func (c *RdsClient) RebootInstance(request *rds.RebootInstanceRequest) (*rds.RebootInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RebootInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看当前实例已开启加密连接。 */
+func (c *RdsClient) DescribeSSL(request *rds.DescribeSSLRequest) (*rds.DescribeSSLResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeSSLResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看RDS读写分离代理列表
- 仅支持MySQL */
+func (c *RdsClient) DescribeReadWriteProxies(request *rds.DescribeReadWriteProxiesRequest) (*rds.DescribeReadWriteProxiesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeReadWriteProxiesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看某个RDS实例下的运维账号信息。
- 仅支持 MySQL,Percona,MariaDB */
+func (c *RdsClient) DescribeAccountsForOps(request *rds.DescribeAccountsForOpsRequest) (*rds.DescribeAccountsForOpsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAccountsForOpsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询该用户pin关联的备份的计费信息。仅当该用户开启了增强备份后有效。如用户未开启增强备份,返回null
- 仅支持SQL Server */
+func (c *RdsClient) DescribeBackupCharge(request *rds.DescribeBackupChargeRequest) (*rds.DescribeBackupChargeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupChargeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除参数组
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) DeleteParameterGroup(request *rds.DeleteParameterGroupRequest) (*rds.DeleteParameterGroupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteParameterGroupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建一个RDS实例,用户可以使用相应的数据库客户端或者应用程序通过域名和端口链接到该RDS实例上,进行操作。 */
+func (c *RdsClient) CreateInstance(request *rds.CreateInstanceRequest) (*rds.CreateInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取日志文件列表
- 仅支持PostgreSQL, MySQL, Percona, MariaDB */
+func (c *RdsClient) DescribeLogs(request *rds.DescribeLogsRequest) (*rds.DescribeLogsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeLogsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 从上传到OSS的备份文件中恢复单个数据库
- 仅支持SQL Server */
+func (c *RdsClient) RestoreDatabaseFromOSS(request *rds.RestoreDatabaseFromOSSRequest) (*rds.RestoreDatabaseFromOSSResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RestoreDatabaseFromOSSResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除RDS实例备份,仅允许删除用户生成的备份,系统自动备份不允许删除。 */
+func (c *RdsClient) DeleteBackup(request *rds.DeleteBackupRequest) (*rds.DeleteBackupResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteBackupResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查询跨地域备份同步服务列表。 */
+func (c *RdsClient) DescribeBackupSynchronicities(request *rds.DescribeBackupSynchronicitiesRequest) (*rds.DescribeBackupSynchronicitiesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupSynchronicitiesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 查看参数组的参数
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) DescribeParameterGroupParameters(request *rds.DescribeParameterGroupParametersRequest) (*rds.DescribeParameterGroupParametersResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeParameterGroupParametersResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 当实例开启增强备份模式后,查询实例备份的空间使用情况
- 仅支持SQL Server */
+func (c *RdsClient) DescribeBackupSpace(request *rds.DescribeBackupSpaceRequest) (*rds.DescribeBackupSpaceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeBackupSpaceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改数据库读写分离代理服务配置
- 仅支持MySQL */
+func (c *RdsClient) ModifyReadWriteProxy(request *rds.ModifyReadWriteProxyRequest) (*rds.ModifyReadWriteProxyResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyReadWriteProxyResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 关闭RDS实例的外网访问功能。关闭后,用户无法通过Internet访问RDS,但可以在京东云内网通过内网域名访问 */
+func (c *RdsClient) DisableInternetAccess(request *rds.DisableInternetAccessRequest) (*rds.DisableInternetAccessResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DisableInternetAccessResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前账号下所有RDS实例及MySQL/PostgreSQL只读实例的概要信息,例如实例类型,版本,计费信息等 */
+func (c *RdsClient) DescribeInstances(request *rds.DescribeInstancesRequest) (*rds.DescribeInstancesResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeInstancesResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 创建MySQL的只读实例
- 仅支持MySQL
- 创建的只读实例跟主实例在同一个VPC同一个子网中
* 只读实例只支持按配置计费 */
+func (c *RdsClient) CreateROInstance(request *rds.CreateROInstanceRequest) (*rds.CreateROInstanceResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateROInstanceResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 获取当前系统所支持的各种数据库版本的审计选项及相应的推荐选项
- 仅支持SQL Server */
+func (c *RdsClient) DescribeAuditOptions(request *rds.DescribeAuditOptionsRequest) (*rds.DescribeAuditOptionsResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DescribeAuditOptionsResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 删除数据库账号,账号删除后不可恢复,用户无法再使用该账号登录RDS实例 */
+func (c *RdsClient) DeleteAccount(request *rds.DeleteAccountRequest) (*rds.DeleteAccountResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.DeleteAccountResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 修改参数组的参数
- 仅支持MySQL,Percona,MariaDB,PostgreSQL */
+func (c *RdsClient) ModifyParameterGroupParameters(request *rds.ModifyParameterGroupParametersRequest) (*rds.ModifyParameterGroupParametersResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.ModifyParameterGroupParametersResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据跨地域备份同步服务时间点创建实例。 */
+func (c *RdsClient) CreateInstanceByTimeInCrossRegion(request *rds.CreateInstanceByTimeInCrossRegionRequest) (*rds.CreateInstanceByTimeInCrossRegionResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.CreateInstanceByTimeInCrossRegionResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
+/* 根据时间点,选择单表恢复当前实例
- 仅支持MySQL */
+func (c *RdsClient) RestoreInstanceByTime(request *rds.RestoreInstanceByTimeRequest) (*rds.RestoreInstanceByTimeResponse, error) {
+ if request == nil {
+ return nil, errors.New("Request object is nil. ")
+ }
+ resp, err := c.Send(request, c.ServiceName)
+ if err != nil {
+ return nil, err
+ }
+
+ jdResp := &rds.RestoreInstanceByTimeResponse{}
+ err = json.Unmarshal(resp, jdResp)
+ if err != nil {
+ c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
+ return nil, err
+ }
+
+ return jdResp, err
+}
+
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ADService.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ADService.go
new file mode 100644
index 0000000000..3bbd6eea36
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ADService.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ADService struct {
+
+ /* 对接的目录服务的资源ID (Optional) */
+ AdResourceId string `json:"adResourceId"`
+
+ /* 目录服务的状态 (Optional) */
+ AdStatus string `json:"adStatus"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Account.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Account.go
new file mode 100644
index 0000000000..50102f8348
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Account.go
@@ -0,0 +1,42 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Account struct {
+
+ /* 账号名,账号名的具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ AccountName string `json:"accountName"`
+
+ /* 账号状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- **MySQL:不支持,不返回该字段**
- **SQL Server:返回该字段** (Optional) */
+ AccountStatus string `json:"accountStatus"`
+
+ /* 账号类型,normal:普通,super:高权限
- 仅支持SQL Server (Optional) */
+ AccountType string `json:"accountType"`
+
+ /* 创建账号时间,格式为:YYYY-MM-DD HH:mm:ss
- 仅支持PostgreSQL (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 修改账号时间,格式为:YYYY-MM-DD HH:mm:ss
- 仅支持PostgreSQL (Optional) */
+ UpdateTime string `json:"updateTime"`
+
+ /* 账号备注内容
- 仅支持PostgreSQL (Optional) */
+ Notes string `json:"notes"`
+
+ /* 具有的权限 (Optional) */
+ AccountPrivileges []AccountPrivilege `json:"accountPrivileges"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AccountPrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AccountPrivilege.go
new file mode 100644
index 0000000000..88107243fa
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AccountPrivilege.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type AccountPrivilege struct {
+
+ /* 数据库名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ DbName *string `json:"dbName"`
+
+ /* 账号对数据库所具有的权限,权限的具体定义可以参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Privilege *string `json:"privilege"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ActiveQueryPerformanceResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ActiveQueryPerformanceResult.go
new file mode 100644
index 0000000000..911b32f95f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ActiveQueryPerformanceResult.go
@@ -0,0 +1,42 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ActiveQueryPerformanceResult struct {
+
+ /* sql语句 (Optional) */
+ Sql string `json:"sql"`
+
+ /* 开始执行时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ StartTime string `json:"startTime"`
+
+ /* 执行时长,单位秒 (Optional) */
+ ElapsedTime int `json:"elapsedTime"`
+
+ /* 数据库名 (Optional) */
+ Db string `json:"db"`
+
+ /* 该SQL执行时的Session ID (Optional) */
+ SessionId string `json:"sessionId"`
+
+ /* 执行该SQL的用户名 (Optional) */
+ User string `json:"user"`
+
+ /* SQL 的执行状态 (Optional) */
+ Status string `json:"status"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AttachedDBInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AttachedDBInstance.go
new file mode 100644
index 0000000000..9b413a3b4d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AttachedDBInstance.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type AttachedDBInstance struct {
+
+ /* 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例类型,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceType string `json:"instanceType"`
+
+ /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 参数组ID (Optional) */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 参数的状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ ParameterStatus string `json:"parameterStatus"`
+
+ /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStatus string `json:"instanceStatus"`
+
+ /* 实例创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditFile.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditFile.go
new file mode 100644
index 0000000000..6d6e1ae1d9
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditFile.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type AuditFile struct {
+
+ /* 审计日志文件名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 审计日志文件大小,单位Byte (Optional) */
+ SizeByte int64 `json:"sizeByte"`
+
+ /* 审计日志文件最后更新时间 (Optional) */
+ LastUpdateTime string `json:"lastUpdateTime"`
+
+ /* 审计日志文件上传时间 (Optional) */
+ UploadTime string `json:"uploadTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditResult.go
new file mode 100644
index 0000000000..141d510b8d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/AuditResult.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type AuditResult struct {
+
+ /* SQL开始执行时间 (Optional) */
+ StartTime string `json:"startTime"`
+
+ /* 源IP (Optional) */
+ Ip string `json:"ip"`
+
+ /* 账号名 (Optional) */
+ AccountName string `json:"accountName"`
+
+ /* 操作类型 (Optional) */
+ Operation string `json:"operation"`
+
+ /* 线程ID (Optional) */
+ ThreadId string `json:"threadId"`
+
+ /* 线程ID,仅 PostgreSQL 支持此参数 (Optional) */
+ ProcessId string `json:"processId"`
+
+ /* 数据库名 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* sql语句 (Optional) */
+ Sql string `json:"sql"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Backup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Backup.go
new file mode 100644
index 0000000000..0671443f30
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Backup.go
@@ -0,0 +1,57 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Backup struct {
+
+ /* 备份ID (Optional) */
+ BackupId string `json:"backupId"`
+
+ /* 备份名称,最长支持64个英文字符或等长的中文字符 (Optional) */
+ BackupName string `json:"backupName"`
+
+ /* 备份所属实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 备份状态,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ BackupStatus string `json:"backupStatus"`
+
+ /* 备份开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ BackupStartTime string `json:"backupStartTime"`
+
+ /* 备份结束时间,格式为:YYYY-MM-DD HH:mm:ss
- **SQL Server支持**
- **MySQL不支持** (Optional) */
+ BackupEndTime string `json:"backupEndTime"`
+
+ /* 备份类型,全量备份或增量备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- **SQL Server支持**
- **MySQL不支持** (Optional) */
+ BackupType string `json:"backupType"`
+
+ /* 备份模式,系统自动备份或手动备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ BackupMode string `json:"backupMode"`
+
+ /* 备份方法,支持物理备份和快照备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- **仅支持 MySQL、MariaDB、Percona** (Optional) */
+ BackupMethod string `json:"backupMethod"`
+
+ /* 备份粒度,实例备份或者多库备份,请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- **SQL Server支持**
- **MySQL不支持** (Optional) */
+ BackupUnit string `json:"backupUnit"`
+
+ /* 备份文件列表
- **SQL Server支持**,备份可以有多个文件,文件名的命名规则为:
(1)全备:数据库名+.bak
(2)增量:数据库名+.diff
- **MySQL不支持** (Optional) */
+ BackupFiles []string `json:"backupFiles"`
+
+ /* 整个备份集大小,单位:Byte (Optional) */
+ BackupSizeByte int64 `json:"backupSizeByte"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSpec.go
new file mode 100644
index 0000000000..ebd79470f4
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSpec.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BackupSpec struct {
+
+ /* 备份名称
SQL Server:最长支持64个英文字符或等长的中文字符
MySQL:只允许数字、小写字母及英文下划线“_”,不超过32字符 (Optional) */
+ BackupName *string `json:"backupName"`
+
+ /* 需要备份的数据库名称列表。如不填,则备份整个实例
- **MySQL:不支持该参数**
- **SQL Server:支持** (Optional) */
+ DbNames []string `json:"dbNames"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicity.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicity.go
new file mode 100644
index 0000000000..69d7b43e97
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicity.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BackupSynchronicity struct {
+
+ /* 跨地域备份同步服务ID (Optional) */
+ ServiceId string `json:"serviceId"`
+
+ /* RDS 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 跨地域备份同步服务状态,正常,running;错误,error (Optional) */
+ ServiceStatus string `json:"serviceStatus"`
+
+ /* 源实例所在地域 (Optional) */
+ SrcRegion string `json:"srcRegion"`
+
+ /* 备份同步的目标地域 (Optional) */
+ DestRegion string `json:"destRegion"`
+
+ /* 数据库类型 (Optional) */
+ Engine string `json:"engine"`
+
+ /* 数据库版本 (Optional) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 跨地域备份的最新数据时间点 (Optional) */
+ NewestDataTime string `json:"newestDataTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicityAbstract.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicityAbstract.go
new file mode 100644
index 0000000000..0a846e08fd
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/BackupSynchronicityAbstract.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type BackupSynchronicityAbstract struct {
+
+ /* 跨地域备份同步服务ID (Optional) */
+ ServiceId string `json:"serviceId"`
+
+ /* 备份同步的目标地域 (Optional) */
+ DestRegion string `json:"destRegion"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Binlog.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Binlog.go
new file mode 100644
index 0000000000..e8fca4d517
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Binlog.go
@@ -0,0 +1,36 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Binlog struct {
+
+ /* binlog日志备份ID (Optional) */
+ BinlogBackupId string `json:"binlogBackupId"`
+
+ /* binlog日志名称 (Optional) */
+ BinlogName string `json:"binlogName"`
+
+ /* binlog日志大小,单位KB (Optional) */
+ BinlogSizeKB int64 `json:"binlogSizeKB"`
+
+ /* binlog开始时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ BinlogStartTime string `json:"binlogStartTime"`
+
+ /* binlog结束时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ BinlogEndTime string `json:"binlogEndTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBAccessPrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBAccessPrivilege.go
new file mode 100644
index 0000000000..97dadd4c41
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBAccessPrivilege.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBAccessPrivilege struct {
+
+ /* 账号名称 (Optional) */
+ AccountName string `json:"accountName"`
+
+ /* 该账号对数据库具有的权限,权限的具体定义可以参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Privilege string `json:"privilege"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstance.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstance.go
new file mode 100644
index 0000000000..3658ef1117
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstance.go
@@ -0,0 +1,94 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
+
+type DBInstance struct {
+
+ /* 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例类别,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceType string `json:"instanceType"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- 仅支持MySQL,Percona,MariaDB, SQL Server (Optional) */
+ InstanceStorageType string `json:"instanceStorageType"`
+
+ /* 实例数据加密. false:不加密; true:加密 (Optional) */
+ StorageEncrypted bool `json:"storageEncrypted"`
+
+ /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 实例规格代码 (Optional) */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 磁盘,单位GB (Optional) */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* CPU核数 (Optional) */
+ InstanceCPU int `json:"instanceCPU"`
+
+ /* 内存,单位MB (Optional) */
+ InstanceMemoryMB int `json:"instanceMemoryMB"`
+
+ /* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ RegionId string `json:"regionId"`
+
+ /* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ AzId []string `json:"azId"`
+
+ /* VPC的ID (Optional) */
+ VpcId string `json:"vpcId"`
+
+ /* 子网的ID (Optional) */
+ SubnetId string `json:"subnetId"`
+
+ /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStatus string `json:"instanceStatus"`
+
+ /* 实例公网域名
- 仅支持MySQL (Optional) */
+ PublicDomainName string `json:"publicDomainName"`
+
+ /* 实例内网域名
- 仅支持MySQL (Optional) */
+ InternalDomainName string `json:"internalDomainName"`
+
+ /* 实例创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 实例跨地域备份服务开启相关信息 (Optional) */
+ BackupSynchronicity []BackupSynchronicityAbstract `json:"backupSynchronicity"`
+
+ /* 计费配置 (Optional) */
+ Charge charge.Charge `json:"charge"`
+
+ /* 标签信息 (Optional) */
+ Tags []Tag `json:"tags"`
+
+ /* MySQL、PostgreSQL只读实例对应的主实例ID (Optional) */
+ SourceInstanceId string `json:"sourceInstanceId"`
+
+ /* 应用访问端口
- 仅支持MySQL (Optional) */
+ InstancePort string `json:"instancePort"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAccountForOps.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAccountForOps.go
new file mode 100644
index 0000000000..84d88f52e0
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAccountForOps.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBInstanceAccountForOps struct {
+
+ /* 运维账号的名称,默认为jcloud-ops-ro (Optional) */
+ AccountName string `json:"accountName"`
+
+ /* 运维账号创建时间,UTC时间格式 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 运维账号到期时间,UTC时间格式 (Optional) */
+ ExpiredTime string `json:"expiredTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAttribute.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAttribute.go
new file mode 100644
index 0000000000..4ed4ca7cfe
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceAttribute.go
@@ -0,0 +1,133 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
+
+type DBInstanceAttribute struct {
+
+ /* 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例类型,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceType string `json:"instanceType"`
+
+ /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 实例规格代码 (Optional) */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStorageType string `json:"instanceStorageType"`
+
+ /* 实例数据加密. false:不加密; true:加密 (Optional) */
+ StorageEncrypted bool `json:"storageEncrypted"`
+
+ /* 磁盘,单位GB (Optional) */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* CPU核数 (Optional) */
+ InstanceCPU int `json:"instanceCPU"`
+
+ /* 内存大小,单位MB (Optional) */
+ InstanceMemoryMB int `json:"instanceMemoryMB"`
+
+ /* 地域ID,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ RegionId string `json:"regionId"`
+
+ /* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ AzId []string `json:"azId"`
+
+ /* VPC的ID (Optional) */
+ VpcId string `json:"vpcId"`
+
+ /* 子网的ID (Optional) */
+ SubnetId string `json:"subnetId"`
+
+ /* 参数组的ID
- 仅支持MySQL (Optional) */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 参数组的名称
- 仅支持MySQL (Optional) */
+ ParameterGroupName string `json:"parameterGroupName"`
+
+ /* 参数的状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- 仅支持MySQL (Optional) */
+ ParameterStatus string `json:"parameterStatus"`
+
+ /* 实例内网域名 (Optional) */
+ InternalDomainName string `json:"internalDomainName"`
+
+ /* 实例公网域名 (Optional) */
+ PublicDomainName string `json:"publicDomainName"`
+
+ /* 应用访问端口 (Optional) */
+ InstancePort string `json:"instancePort"`
+
+ /* 访问模式,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- 仅支持MySQL (Optional) */
+ ConnectionMode string `json:"connectionMode"`
+
+ /* 审计状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- 仅支持MySQL (Optional) */
+ AuditStatus string `json:"auditStatus"`
+
+ /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStatus string `json:"instanceStatus"`
+
+ /* 实例创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 计费配置 (Optional) */
+ Charge charge.Charge `json:"charge"`
+
+ /* MySQL只读实例对应的主实例ID
- 仅支持MySQL (Optional) */
+ SourceInstanceId string `json:"sourceInstanceId"`
+
+ /* 只读实例ID列表
- 仅支持MySQL (Optional) */
+ RoInstanceIds []string `json:"roInstanceIds"`
+
+ /* 高可用集群中主节点的信息
- 仅支持SQL Server (Optional) */
+ PrimaryNode DBInstanceNode `json:"primaryNode"`
+
+ /* 高可用集群中从节点的信息
- 仅支持SQL Server (Optional) */
+ SecondaryNode DBInstanceNode `json:"secondaryNode"`
+
+ /* 标签信息 (Optional) */
+ Tags []Tag `json:"tags"`
+
+ /* 对接的目录服务的相关信息
仅支SQL Server (Optional) */
+ ActiveDirectory ADService `json:"activeDirectory"`
+
+ /* 只读代理服务 ID (Optional) */
+ RoInstanceProxyID string `json:"roInstanceProxyID"`
+
+ /* 只读代理服务 名称 (Optional) */
+ RoInstanceProxyName string `json:"roInstanceProxyName"`
+
+ /* 读写分离代理服务 ID (Optional) */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+
+ /* 实例关联的数据同步任务Id;未关联数据同步任务时返回空 (Optional) */
+ SyncTaskId string `json:"syncTaskId"`
+
+ /* 实例内网域名解析到的内网IP地址
仅支持MySQL, Percona, MariaDB (Optional) */
+ InstanceVip string `json:"instanceVip"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceInternal.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceInternal.go
new file mode 100644
index 0000000000..b278240349
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceInternal.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBInstanceInternal struct {
+
+ /* 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Engine string `json:"engine"`
+
+ /* 实例类别,例如主实例,只读实例等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceType string `json:"instanceType"`
+
+ /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStatus string `json:"instanceStatus"`
+
+ /* 实例的网络状态;0表示实例的网络处于中断状态,1表示实例的网络处于正常状态 (Optional) */
+ AccessibleStatus int `json:"accessibleStatus"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceNode.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceNode.go
new file mode 100644
index 0000000000..1d29446c00
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceNode.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBInstanceNode struct {
+
+ /* 节点id (Optional) */
+ Id string `json:"id"`
+
+ /* 节点名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 节点状态 (Optional) */
+ Status string `json:"status"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceParameter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceParameter.go
new file mode 100644
index 0000000000..24960a3563
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceParameter.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBInstanceParameter struct {
+
+ /* 参数名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 参数描述 (Optional) */
+ Description string `json:"description"`
+
+ /* 参数修改后的数值,但不一定生效,需要视该参数生效是否需要重启 (Optional) */
+ ConfigureValue string `json:"configureValue"`
+
+ /* 当前在实例中生效的数值 (Optional) */
+ RunningValue string `json:"runningValue"`
+
+ /* 该参数数值的允许范围 (Optional) */
+ Range string `json:"range"`
+
+ /* 修改是否需要重启生效.- true:参数需要重启才能生效- false:参数生效无需重启 (Optional) */
+ NeedRestart string `json:"needRestart"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpec.go
new file mode 100644
index 0000000000..5b6e0101af
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpec.go
@@ -0,0 +1,64 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
+
+type DBInstanceSpec struct {
+
+ /* 实例名,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName *string `json:"instanceName"`
+
+ /* 实例引擎类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 实例规格代码,可以查看文档[MySQL 实例规格](../Instance-Specifications/Instance-Specifications-MySQL.md)、[SQL Server实例规格](../Instance-Specifications/Instance-Specifications-SQLServer.md) */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 磁盘大小,单位GB,可以查看文档[MySQL 实例规格](../Instance-Specifications/Instance-Specifications-MySQL.md)、[SQL Server实例规格](../Instance-Specifications/Instance-Specifications-SQLServer.md) */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* 可用区ID, 第一个ID必须为主实例所在的可用区。如两个可用区一样,也需输入两个azId */
+ AzId []string `json:"azId"`
+
+ /* VPC的ID */
+ VpcId string `json:"vpcId"`
+
+ /* 子网ID */
+ SubnetId string `json:"subnetId"`
+
+ /* 参数组ID, 缺省系统会创建一个默认参数组
- 仅支持MySQL (Optional) */
+ ParameterGroup *string `json:"parameterGroup"`
+
+ /* 计费规格,包括计费类型,计费周期等 */
+ ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md), 缺省值为:LOCAL_SSD
- 仅支持MySQL (Optional) */
+ InstanceStorageType *string `json:"instanceStorageType"`
+
+ /* 应用访问端口,支持的端口范围:1150~5999。MySQL、Percona、MariaDB的默认值为 3306;SQL SQL Server的默认值为1433,不支持5022;PostgreSQL的默认端口号为5432; (Optional) */
+ InstancePort *string `json:"instancePort"`
+
+ /* 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密,true:加密,缺省为false
- 仅支持MySQL (Optional) */
+ StorageEncrypted *bool `json:"storageEncrypted"`
+
+ /* 实例的高可用架构。standalone:单机,cluster:主备双机架构,缺省为cluster
- 仅支持SQL Server (Optional) */
+ InstanceType *string `json:"instanceType"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpecWithoutCharge.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpecWithoutCharge.go
new file mode 100644
index 0000000000..507e921f03
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DBInstanceSpecWithoutCharge.go
@@ -0,0 +1,57 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DBInstanceSpecWithoutCharge struct {
+
+ /* 实例名,具体规则可参见帮助中心文档:[名称及密码限制](https://docs.jdcloud.com/cn/rds/sqlserver-restrictions) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例引擎类型,参见[枚举参数定义](https://docs.jdcloud.com/cn/rds/api/enum-definitions) */
+ Engine string `json:"engine"`
+
+ /* 实例引擎版本,参见[枚举参数定义](https://docs.jdcloud.com/cn/rds/api/enum-definitions) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 实例规格代码,可以查看文档[MySQL 实例规格](https://docs.jdcloud.com/cn/rds/api/instance-specifications-mysql)、[SQL Server实例规格](https://docs.jdcloud.com/cn/rds/api/instance-specifications-sqlserver) */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 磁盘大小,单位GB,可以查看文档[MySQL 实例规格](https://docs.jdcloud.com/cn/rds/api/instance-specifications-mysql)、[SQL Server实例规格](https://docs.jdcloud.com/cn/rds/api/instance-specifications-sqlserver) */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* 可用区ID, 第一个ID必须为主实例所在的可用区。如两个可用区一样,也需输入两个azId */
+ AzId []string `json:"azId"`
+
+ /* VPC的ID */
+ VpcId string `json:"vpcId"`
+
+ /* 子网ID */
+ SubnetId string `json:"subnetId"`
+
+ /* 参数组ID, 缺省系统会创建一个默认参数组
- 仅支持MySQL (Optional) */
+ ParameterGroup string `json:"parameterGroup"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md), 缺省值为:LOCAL_SSD
- 仅支持MySQL (Optional) */
+ InstanceStorageType string `json:"instanceStorageType"`
+
+ /* 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密,true:加密,缺省为false
- 仅支持MySQL (Optional) */
+ StorageEncrypted bool `json:"storageEncrypted"`
+
+ /* 实例的高可用架构。standalone:单机,cluster:主备双机架构,缺省为cluster
- 仅支持SQL Server (Optional) */
+ InstanceType string `json:"instanceType"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Database.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Database.go
new file mode 100644
index 0000000000..25bd370632
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Database.go
@@ -0,0 +1,36 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Database struct {
+
+ /* 数据库名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ DbName string `json:"dbName"`
+
+ /* 数据库状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md)
- **MySQL:不支持,不返回该字段**
- **SQL Server:返回该字段** (Optional) */
+ DbStatus string `json:"dbStatus"`
+
+ /* 字符集,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ CharacterSetName string `json:"characterSetName"`
+
+ /* 数据库创建时间,格式YYYY-MM-DD HH:mm:ss
- 仅支持SQL Server (Optional) */
+ CreateTime string `json:"createTime"`
+
+ /* 该数据库相关账户权限列表 (Optional) */
+ AccessPrivilege []DBAccessPrivilege `json:"accessPrivilege"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DatabasePrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DatabasePrivilege.go
new file mode 100644
index 0000000000..40fa8ac6c1
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DatabasePrivilege.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DatabasePrivilege struct {
+
+ /* 数据库名称 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* 账号对数据库所具有的细粒度权限,权限的具体定义参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Privileges []string `json:"privileges"`
+
+ /* 数据库表的细粒度权限内容 (Optional) */
+ TablePrivileges []TablePrivilege `json:"tablePrivileges"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DigestData.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DigestData.go
new file mode 100644
index 0000000000..a299e34421
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/DigestData.go
@@ -0,0 +1,36 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type DigestData struct {
+
+ /* 表示执行结果中95% 数据小于或等于此数值 (Optional) */
+ Pct95 float32 `json:"pct95"`
+
+ /* 执行结果的最大值 (Optional) */
+ Max float32 `json:"max"`
+
+ /* 执行结果的平均值 (Optional) */
+ Avg float32 `json:"avg"`
+
+ /* 执行结果的最小值 (Optional) */
+ Min float32 `json:"min"`
+
+ /* 执行结果的合计值 (Optional) */
+ Total float64 `json:"total"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLog.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLog.go
new file mode 100644
index 0000000000..204a1a85bb
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLog.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ErrorLog struct {
+
+ /* 错误日志文件名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 错误日志文件大小,单位Byte (Optional) */
+ SizeByte int64 `json:"sizeByte"`
+
+ /* 错误日志最后更新时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ LastUpdateTime string `json:"lastUpdateTime"`
+
+ /* 错误日志上传时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ UploadTime string `json:"uploadTime"`
+
+ /* 公网下载链接 (Optional) */
+ PublicURL string `json:"publicURL"`
+
+ /* 内网下载链接 (Optional) */
+ InternalURL string `json:"internalURL"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLogDigest.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLogDigest.go
new file mode 100644
index 0000000000..6de2308d3a
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ErrorLogDigest.go
@@ -0,0 +1,36 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ErrorLogDigest struct {
+
+ /* 错误日志开始执行时间 (Optional) */
+ StartTime string `json:"startTime"`
+
+ /* 数据库名,表示该SQL是在哪个数据库中执行的 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* 数据库账号,表示该数据库在哪个账号下面 (Optional) */
+ DbNameAccount string `json:"dbNameAccount"`
+
+ /* 错误日志信息 (Optional) */
+ ErrorLogInformation string `json:"errorLogInformation"`
+
+ /* 错误日志级别 (Optional) */
+ ErrorSeverity string `json:"errorSeverity"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/File.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/File.go
new file mode 100644
index 0000000000..b8b2e3aa17
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/File.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type File struct {
+
+ /* 文件名 (Optional) */
+ Name string `json:"name"`
+
+ /* 文件大小,单位Byte (Optional) */
+ SizeByte int `json:"sizeByte"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/FileDownloadURL.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/FileDownloadURL.go
new file mode 100644
index 0000000000..626183be70
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/FileDownloadURL.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type FileDownloadURL struct {
+
+ /* 公网下载链接,若当前不可下载,则为空串 (Optional) */
+ PublicURL string `json:"publicURL"`
+
+ /* 内网下载链接,若当前不可下载,则为空串 (Optional) */
+ InternalURL string `json:"internalURL"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheck.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheck.go
new file mode 100644
index 0000000000..6d72d4aa77
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheck.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type HealthCheck struct {
+
+ /* 健康检查时间间隔,范围为1~600,单位为秒;默认值为100 (Optional) */
+ MonitorInterval int `json:"monitorInterval"`
+
+ /* 后端实例连接超时时间,范围为1~60,单位为秒;默认值为3 (Optional) */
+ BackendConnectTimeout int `json:"backendConnectTimeout"`
+
+ /* 后端实例连接重试次数,范围为1~10,单位为次;默认值为1 (Optional) */
+ BackendConnectAttempts int `json:"backendConnectAttempts"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheckSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheckSpec.go
new file mode 100644
index 0000000000..0835907497
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/HealthCheckSpec.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type HealthCheckSpec struct {
+
+ /* 健康检查时间间隔,范围为1~600,单位为秒;默认值为100 (Optional) */
+ MonitorInterval *int `json:"monitorInterval"`
+
+ /* 后端实例连接超时时间,范围为1~60,单位为秒;默认值为3 (Optional) */
+ BackendConnectTimeout *int `json:"backendConnectTimeout"`
+
+ /* 后端实例连接重试次数,范围为1~10,单位为次;默认值为1 (Optional) */
+ BackendConnectAttempts *int `json:"backendConnectAttempts"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ImportFile.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ImportFile.go
new file mode 100644
index 0000000000..23c8f56e36
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ImportFile.go
@@ -0,0 +1,42 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ImportFile struct {
+
+ /* 文件名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 如果该文件是共享文件,则有全局ID,如不是共享文件,则为空。该全局ID在文件删除时,需要用到 (Optional) */
+ SharedFileGid string `json:"sharedFileGid"`
+
+ /* 文件大小,单位Byte (Optional) */
+ SizeByte int `json:"sizeByte"`
+
+ /* 文件上传完成时间,格式为:YYYY-MM-DD HH:mm:ss (Optional) */
+ UploadTime string `json:"uploadTime"`
+
+ /* 是否所属当前实例.
1:当前实例;
0:不是当前实例,为共享文件 (Optional) */
+ IsLocal string `json:"isLocal"`
+
+ /* 文件状态
- 仅支持SQL Server (Optional) */
+ Status string `json:"status"`
+
+ /* 导入完成时间,格式为:YYYY-MM-DD HH:mm:ss
- 仅支持SQL Server (Optional) */
+ ImportTime string `json:"importTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/IndexPerformanceResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/IndexPerformanceResult.go
new file mode 100644
index 0000000000..f108aee5a5
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/IndexPerformanceResult.go
@@ -0,0 +1,51 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type IndexPerformanceResult struct {
+
+ /* 数据库名 (Optional) */
+ Db string `json:"db"`
+
+ /* 表名 (Optional) */
+ Table string `json:"table"`
+
+ /* 索引名 (Optional) */
+ Index string `json:"index"`
+
+ /* 索引大小,单位KB (Optional) */
+ SizeKB int `json:"sizeKB"`
+
+ /* 服务器启动以来,累计索引搜索次数 (Optional) */
+ UserSeeks int `json:"userSeeks"`
+
+ /* 服务器启动以来,累计表扫描次数 (Optional) */
+ UserScans int `json:"userScans"`
+
+ /* 服务器启动以来,累计索引更新次数 (Optional) */
+ UserUpdates int `json:"userUpdates"`
+
+ /* 最近索引搜索时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ LastUserSeek string `json:"lastUserSeek"`
+
+ /* 最近表扫描时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ LastUserScan string `json:"lastUserScan"`
+
+ /* 最近索引更新时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ LastUserUpdate string `json:"lastUserUpdate"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/InterceptResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/InterceptResult.go
new file mode 100644
index 0000000000..042589828b
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/InterceptResult.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type InterceptResult struct {
+
+ /* SQL开始执行时间 (Optional) */
+ StartTime string `json:"startTime"`
+
+ /* 源IP (Optional) */
+ Ip string `json:"ip"`
+
+ /* 账号名 (Optional) */
+ AccountName string `json:"accountName"`
+
+ /* 线程ID (Optional) */
+ ThreadId string `json:"threadId"`
+
+ /* 数据库名 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* sql语句 (Optional) */
+ Sql string `json:"sql"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Log.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Log.go
new file mode 100644
index 0000000000..a01936e54f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Log.go
@@ -0,0 +1,39 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Log struct {
+
+ /* 日志文件id (Optional) */
+ Id string `json:"id"`
+
+ /* 日志文件名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 日志文件大小,单位Byte (Optional) */
+ SizeByte int `json:"sizeByte"`
+
+ /* 日志最后更改时间 (Optional) */
+ LastModified string `json:"lastModified"`
+
+ /* 公网下载链接 (Optional) */
+ PublicURL string `json:"publicURL"`
+
+ /* 内网下载链接 (Optional) */
+ InternalURL string `json:"internalURL"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/MissingIndexResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/MissingIndexResult.go
new file mode 100644
index 0000000000..fa54d0952e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/MissingIndexResult.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type MissingIndexResult struct {
+
+ /* 数据库名 (Optional) */
+ Db string `json:"db"`
+
+ /* 表名 (Optional) */
+ Table string `json:"table"`
+
+ /* 构成相等谓词的列的逗号分隔列表,谓词的形式如下:
table.column =constant_value (Optional) */
+ EqualityColumns string `json:"equalityColumns"`
+
+ /* 用于查询的涵盖列的逗号分隔列表,即创建索引的SQL语句中,Include后的字段 (Optional) */
+ InequalityColumns string `json:"inequalityColumns"`
+
+ /* 构成不等谓词的列的逗号分隔列表,例如以下形式的谓词:
table.column > constant_value
“=”之外的任何比较运算符都表示不相等。 (Optional) */
+ IncludedColumns string `json:"includedColumns"`
+
+ /* 实现此缺失索引后,用户查询可能获得的平均百分比收益。 该值表示如果实现此缺失索引,则查询成本将按此百分比平均下降。 (Optional) */
+ AvgUserImpact float32 `json:"avgUserImpact"`
+
+ /* 由可能使用了组中建议索引的用户查询所导致的扫描次数。 (Optional) */
+ UserScans int `json:"userScans"`
+
+ /* 由可能使用了组中建议索引的用户查询所导致的搜索次数。 (Optional) */
+ UserSeeks int `json:"userSeeks"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Parameter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Parameter.go
new file mode 100644
index 0000000000..b9e924e068
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Parameter.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Parameter struct {
+
+ /* 参数名称 */
+ Name string `json:"name"`
+
+ /* 参数修改值 */
+ Value string `json:"value"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroup.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroup.go
new file mode 100644
index 0000000000..ae93246169
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroup.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ParameterGroup struct {
+
+ /* 参数组ID (Optional) */
+ ParameterGroupId string `json:"parameterGroupId"`
+
+ /* 参数组名称 (Optional) */
+ ParameterGroupName string `json:"parameterGroupName"`
+
+ /* 参数组状态 (Optional) */
+ ParameterGroupStatus string `json:"parameterGroupStatus"`
+
+ /* 参数组描述 (Optional) */
+ Description string `json:"description"`
+
+ /* 实例引擎类型 (Optional) */
+ Engine string `json:"engine"`
+
+ /* 数据库版本 (Optional) */
+ EngineVersion string `json:"engineVersion"`
+
+ /* 地域代码,取值范围参见[《各地域及可用区对照表》](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ RegionId string `json:"regionId"`
+
+ /* 参数组创建时间 (Optional) */
+ CreateTime string `json:"createTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroupParameter.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroupParameter.go
new file mode 100644
index 0000000000..cf9d65277e
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterGroupParameter.go
@@ -0,0 +1,42 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ParameterGroupParameter struct {
+
+ /* 参数名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 参数描述 (Optional) */
+ Description string `json:"description"`
+
+ /* 参数修改后的数值,但不一定生效,需要视该参数生效是否需要重启 (Optional) */
+ ConfigureValue string `json:"configureValue"`
+
+ /* 参数默认值 (Optional) */
+ DefaultValue string `json:"defaultValue"`
+
+ /* 该参数数值的允许修改范围 (Optional) */
+ Range string `json:"range"`
+
+ /* 参数数值的类型 (Optional) */
+ Type string `json:"type"`
+
+ /* 参数修改是否需要重启生效.- true:参数需要重启才能生效- false:参数生效无需重启 (Optional) */
+ NeedRestart string `json:"needRestart"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterModifyRecords.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterModifyRecords.go
new file mode 100644
index 0000000000..457abe9fe7
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ParameterModifyRecords.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ParameterModifyRecords struct {
+
+ /* 参数名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 修改前的参数值 (Optional) */
+ PreModify string `json:"preModify"`
+
+ /* 修改后的参数值 (Optional) */
+ PostModify string `json:"postModify"`
+
+ /* 修改时间 (Optional) */
+ UpdateTime string `json:"updateTime"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/QueryPerformanceResult.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/QueryPerformanceResult.go
new file mode 100644
index 0000000000..4cde5dc5a7
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/QueryPerformanceResult.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type QueryPerformanceResult struct {
+
+ /* sql语句 (Optional) */
+ Sql string `json:"sql"`
+
+ /* 上次执行时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ LastExecutionTime string `json:"lastExecutionTime"`
+
+ /* 平均执行时长,单位毫秒(ms) (Optional) */
+ ElapsedTime int `json:"elapsedTime"`
+
+ /* 执行次数 (Optional) */
+ ExecutionCount int `json:"executionCount"`
+
+ /* 平均CPU使用时间,单位毫秒(ms) (Optional) */
+ WorkerTime int `json:"workerTime"`
+
+ /* 平均逻辑读次数 (Optional) */
+ LogicalReads int `json:"logicalReads"`
+
+ /* 平均逻辑写次数 (Optional) */
+ LogicalWrites int `json:"logicalWrites"`
+
+ /* 平均物理读次数 (Optional) */
+ PhysicalReads int `json:"physicalReads"`
+
+ /* 上次返回记录数 (Optional) */
+ LastRows int `json:"lastRows"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ROInstanceProxyAttribute.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ROInstanceProxyAttribute.go
new file mode 100644
index 0000000000..77e5e87581
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ROInstanceProxyAttribute.go
@@ -0,0 +1,45 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ROInstanceProxyAttribute struct {
+
+ /* 只读代理服务 ID (Optional) */
+ RoInstanceProxyID string `json:"roInstanceProxyID"`
+
+ /* 只读代理服务名称 (Optional) */
+ Name string `json:"name"`
+
+ /* 只读代理服务公网域名 (Optional) */
+ PublicDomainName string `json:"publicDomainName"`
+
+ /* 只读代理服务内网域名 (Optional) */
+ InternalDomainName string `json:"internalDomainName"`
+
+ /* 只读代理服务访问端口 (Optional) */
+ Port string `json:"port"`
+
+ /* 只读代理服务转发策略 (Optional) */
+ Strategy string `json:"strategy"`
+
+ /* 绑定的只读实例 ID 列表 (Optional) */
+ RoInstanceId []string `json:"roInstanceId"`
+
+ /* 只读实例列表 (Optional) */
+ RoInstanceList []RoInstanceList `json:"roInstanceList"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ReadWriteProxy.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ReadWriteProxy.go
new file mode 100644
index 0000000000..309a278de7
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ReadWriteProxy.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ReadWriteProxy struct {
+
+ /* 读写分离代理服务 ID (Optional) */
+ ReadWriteProxyId string `json:"readWriteProxyId"`
+
+ /* 读写分离代理服务的状态;参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Status string `json:"status"`
+
+ /* 读写分离代理服务关联的RDS实例 ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 读写分离代理服务公网域名 (Optional) */
+ PublicDomainName string `json:"publicDomainName"`
+
+ /* 读写分离代理服务内网域名 (Optional) */
+ InternalDomainName string `json:"internalDomainName"`
+
+ /* 读写分离代理服务访问端口 (Optional) */
+ Port string `json:"port"`
+
+ /* 延迟阈值 (Optional) */
+ DelayThreshold int `json:"delayThreshold"`
+
+ /* 读写分离代理后端实例负载均衡策略;当前支持的负载均衡策略请查看[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ LoadBalancerPolicy string `json:"loadBalancerPolicy"`
+
+ /* 后端实例健康检查配置详情 (Optional) */
+ HealthCheck HealthCheck `json:"healthCheck"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ResourceInfo.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ResourceInfo.go
new file mode 100644
index 0000000000..dea1e1eb78
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/ResourceInfo.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type ResourceInfo struct {
+
+ /* 实例id (Optional) */
+ ResourceId string `json:"resourceId"`
+
+ /* 实例名称 (Optional) */
+ ResourceName string `json:"resourceName"`
+
+ /* 备注 (Optional) */
+ Remark string `json:"remark"`
+
+ /* 绑定的资源 (Optional) */
+ Bind []ResourceInfo `json:"bind"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RestoredNewDBInstanceSpec.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RestoredNewDBInstanceSpec.go
new file mode 100644
index 0000000000..9fdf2ef659
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RestoredNewDBInstanceSpec.go
@@ -0,0 +1,58 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+import charge "github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models"
+
+type RestoredNewDBInstanceSpec struct {
+
+ /* 数据库实例名,名称的限制可参考[帮助中心文档](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName *string `json:"instanceName"`
+
+ /* 实例规格代码,可以查看文档[MySQL 实例规格](../Instance-Specifications/Instance-Specifications-MySQL.md)、[SQL Server实例规格](../Instance-Specifications/Instance-Specifications-SQLServer.md) */
+ InstanceClass string `json:"instanceClass"`
+
+ /* 磁盘大小,单位GB */
+ InstanceStorageGB int `json:"instanceStorageGB"`
+
+ /* 可用区ID, 第一个ID必须为主实例所在的可用区。如两个可用区一样,也需输入两个azId */
+ AzId []string `json:"azId"`
+
+ /* VPC的ID */
+ VpcId string `json:"vpcId"`
+
+ /* 子网ID */
+ SubnetId string `json:"subnetId"`
+
+ /* 参数组ID, 缺省系统会创建一个默认参数组
- 仅支持MySQL (Optional) */
+ ParameterGroup *string `json:"parameterGroup"`
+
+ /* 计费规格,包括计费类型,计费周期等 */
+ ChargeSpec *charge.ChargeSpec `json:"chargeSpec"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md), 缺省值为:LOCAL_SSD
- 仅支持MySQL (Optional) */
+ InstanceStorageType *string `json:"instanceStorageType"`
+
+ /* 应用访问端口,支持的端口范围:1150~5999。MySQL、Percona、MariaDB的默认值为 3306;PostgreSQL的默认端口号为5432; (Optional) */
+ InstancePort *string `json:"instancePort"`
+
+ /* 实例数据加密(存储类型为云硬盘才支持数据加密)。false:不加密,true:加密,缺省为false
- 仅支持MySQL (Optional) */
+ StorageEncrypted *bool `json:"storageEncrypted"`
+
+ /* 实例的高可用架构。standalone:单机,cluster:主备双机架构,缺省为cluster
- 仅支持SQL Server (Optional) */
+ InstanceType *string `json:"instanceType"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RoInstanceList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RoInstanceList.go
new file mode 100644
index 0000000000..b8c387aa37
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/RoInstanceList.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type RoInstanceList struct {
+
+ /* 只读实例ID (Optional) */
+ Id string `json:"id"`
+
+ /* 只读实例名称 (Optional) */
+ Name string `json:"name"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Schema.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Schema.go
new file mode 100644
index 0000000000..fd1237ab04
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Schema.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Schema struct {
+
+ /* 原数据库名 */
+ DbName string `json:"dbName"`
+
+ /* 新数据库名 */
+ NewDBName string `json:"newDBName"`
+
+ /* 原数据库表名 (Optional) */
+ TableName string `json:"tableName"`
+
+ /* 新数据库表名 (Optional) */
+ NewTableName string `json:"newTableName"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogAttributes.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogAttributes.go
new file mode 100644
index 0000000000..f9984da6f7
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogAttributes.go
@@ -0,0 +1,42 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type SlowLogAttributes struct {
+
+ /* 数据库名,表示该SQL是在哪个数据库中执行的 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* SQL语句 (Optional) */
+ Sql string `json:"sql"`
+
+ /* SQL语句执行的开始时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ ExecutionTime string `json:"executionTime"`
+
+ /* SQL语句执行的时长,单位秒 (Optional) */
+ ElapsedTime float32 `json:"elapsedTime"`
+
+ /* SQL语句等待锁的时间,单位秒 (Optional) */
+ LockTime float32 `json:"lockTime"`
+
+ /* SQL语句扫描的行数 (Optional) */
+ RowsExamined int `json:"rowsExamined"`
+
+ /* SQL语句返回的行数 (Optional) */
+ RowsReturned int `json:"rowsReturned"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogDigest.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogDigest.go
new file mode 100644
index 0000000000..253319949d
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SlowLogDigest.go
@@ -0,0 +1,48 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type SlowLogDigest struct {
+
+ /* 数据库名,表示该SQL是在哪个数据库中执行的 (Optional) */
+ DbName string `json:"dbName"`
+
+ /* SQL语句 (Optional) */
+ Sql string `json:"sql"`
+
+ /* SQL语句执行的开始时间,格式为YYYY-MM-DD hh:mm:ss (Optional) */
+ ExecutionTime string `json:"executionTime"`
+
+ /* SQL语句的执行次数 (Optional) */
+ ExecutionCount int `json:"executionCount"`
+
+ /* SQL语句执行的时长,单位秒 (Optional) */
+ ElapsedTime DigestData `json:"elapsedTime"`
+
+ /* SQL语句等待锁的时间,单位秒 (Optional) */
+ LockTime DigestData `json:"lockTime"`
+
+ /* SQL语句的长度 (Optional) */
+ SqlLength DigestData `json:"sqlLength"`
+
+ /* SQL语句扫描的行数 (Optional) */
+ RowsExamined DigestData `json:"rowsExamined"`
+
+ /* SQL语句返回的行数 (Optional) */
+ RowsReturned DigestData `json:"rowsReturned"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SoldOut.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SoldOut.go
new file mode 100644
index 0000000000..6f20eac83f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/SoldOut.go
@@ -0,0 +1,30 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type SoldOut struct {
+
+ /* 实例引擎类型,如MySQL或SQL Server等,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Engine string `json:"engine"`
+
+ /* 存储类型,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStorageType string `json:"instanceStorageType"`
+
+ /* 可用区ID,第一个为主实例在的可用区,参见[地域及可用区对照表](../Enum-Definitions/Regions-AZ.md) (Optional) */
+ AzId []string `json:"azId"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/StatusDetail.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/StatusDetail.go
new file mode 100644
index 0000000000..9ea1a95823
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/StatusDetail.go
@@ -0,0 +1,33 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type StatusDetail struct {
+
+ /* 实例ID (Optional) */
+ InstanceId string `json:"instanceId"`
+
+ /* 实例名称,具体规则可参见帮助中心文档:[名称及密码限制](../../../documentation/Database-and-Cache-Service/RDS/Introduction/Restrictions/SQLServer-Restrictions.md) (Optional) */
+ InstanceName string `json:"instanceName"`
+
+ /* 实例状态,参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ InstanceStatus string `json:"instanceStatus"`
+
+ /* 开启TDE加密后,实例级别的TDE生效状态,TDE加密已生效,返回true;如未生效,返回false; (Optional) */
+ TdeStatus string `json:"tdeStatus"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/TablePrivilege.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/TablePrivilege.go
new file mode 100644
index 0000000000..f3478a65ed
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/TablePrivilege.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type TablePrivilege struct {
+
+ /* 数据库表名称 (Optional) */
+ TableName string `json:"tableName"`
+
+ /* 账号对数据库表所具有的细粒度权限,权限的具体定义参见[枚举参数定义](../Enum-Definitions/Enum-Definitions.md) (Optional) */
+ Privileges []string `json:"privileges"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Tag.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Tag.go
new file mode 100644
index 0000000000..0fa1a9aee8
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/Tag.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type Tag struct {
+
+ /* 标签键 (Optional) */
+ Key string `json:"key"`
+
+ /* 标签值 (Optional) */
+ Value string `json:"value"`
+}
diff --git a/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/WhiteList.go b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/WhiteList.go
new file mode 100644
index 0000000000..e7cae0023f
--- /dev/null
+++ b/vendor/github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models/WhiteList.go
@@ -0,0 +1,27 @@
+// Copyright 2018 JDCLOUD.COM
+//
+// 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
+//
+// 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.
+//
+// NOTE: This class is auto generated by the jdcloud code generator program.
+
+package models
+
+
+type WhiteList struct {
+
+ /* 白名单名称 (Optional) */
+ Name string `json:"name"`
+
+ /* IP或IP段,不同的IP/IP段之间用英文逗号分隔,例如0.0.0.0/0,192.168.0.10 (Optional) */
+ Ips string `json:"ips"`
+}
diff --git a/vendor/modules.txt b/vendor/modules.txt
index 8be7800a12..323e49c077 100644
--- a/vendor/modules.txt
+++ b/vendor/modules.txt
@@ -403,6 +403,9 @@ github.com/huandu/xstrings
github.com/imdario/mergo
# github.com/jdcloud-api/jdcloud-sdk-go v1.55.0
github.com/jdcloud-api/jdcloud-sdk-go/core
+github.com/jdcloud-api/jdcloud-sdk-go/services/asset/apis
+github.com/jdcloud-api/jdcloud-sdk-go/services/asset/client
+github.com/jdcloud-api/jdcloud-sdk-go/services/asset/models
github.com/jdcloud-api/jdcloud-sdk-go/services/charge/models
github.com/jdcloud-api/jdcloud-sdk-go/services/common/models
github.com/jdcloud-api/jdcloud-sdk-go/services/disk/apis
@@ -411,6 +414,9 @@ github.com/jdcloud-api/jdcloud-sdk-go/services/disk/models
github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/apis
github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/client
github.com/jdcloud-api/jdcloud-sdk-go/services/monitor/models
+github.com/jdcloud-api/jdcloud-sdk-go/services/rds/apis
+github.com/jdcloud-api/jdcloud-sdk-go/services/rds/client
+github.com/jdcloud-api/jdcloud-sdk-go/services/rds/models
github.com/jdcloud-api/jdcloud-sdk-go/services/vm/apis
github.com/jdcloud-api/jdcloud-sdk-go/services/vm/client
github.com/jdcloud-api/jdcloud-sdk-go/services/vm/models
@@ -1196,7 +1202,7 @@ yunion.io/x/pkg/util/workqueue
yunion.io/x/pkg/utils
# yunion.io/x/s3cli v0.0.0-20190917004522-13ac36d8687e
yunion.io/x/s3cli
-# yunion.io/x/sqlchemy v0.0.0-20210519174758-cb08030e2008
+# yunion.io/x/sqlchemy v0.0.0-20210619142628-653684d2c4f8
yunion.io/x/sqlchemy
# yunion.io/x/structarg v0.0.0-20200720093445-9f850fa222ce
yunion.io/x/structarg
diff --git a/vendor/yunion.io/x/sqlchemy/table.go b/vendor/yunion.io/x/sqlchemy/table.go
index 193199f7d7..9eb6bca34c 100644
--- a/vendor/yunion.io/x/sqlchemy/table.go
+++ b/vendor/yunion.io/x/sqlchemy/table.go
@@ -196,9 +196,9 @@ func (tbl *STable) Fields() []IQueryField {
func (c *STableField) Expression() string {
if len(c.alias) > 0 {
- return fmt.Sprintf("%s.%s as `%s`", c.table.Alias(), c.spec.Name(), c.alias)
+ return fmt.Sprintf("`%s`.`%s` as `%s`", c.table.Alias(), c.spec.Name(), c.alias)
} else {
- return fmt.Sprintf("%s.%s", c.table.Alias(), c.spec.Name())
+ return fmt.Sprintf("`%s`.`%s`", c.table.Alias(), c.spec.Name())
}
}
diff --git a/vendor/yunion.io/x/sqlchemy/union.go b/vendor/yunion.io/x/sqlchemy/union.go
index b755ba8cd6..7af8c7174a 100644
--- a/vendor/yunion.io/x/sqlchemy/union.go
+++ b/vendor/yunion.io/x/sqlchemy/union.go
@@ -30,7 +30,11 @@ type SUnionQueryField struct {
}
func (sqf *SUnionQueryField) Expression() string {
- return sqf.name
+ if len(sqf.alias) > 0 {
+ return fmt.Sprintf("`%s`.`%s` as `%s`", sqf.union.Alias(), sqf.name, sqf.alias)
+ } else {
+ return fmt.Sprintf("`%s`.`%s`", sqf.union.Alias(), sqf.name)
+ }
}
func (sqf *SUnionQueryField) Name() string {
@@ -42,7 +46,7 @@ func (sqf *SUnionQueryField) Name() string {
}
func (sqf *SUnionQueryField) Reference() string {
- return fmt.Sprintf("`%s`.`%s`", sqf.union.Alias(), sqf.name)
+ return fmt.Sprintf("`%s`.`%s`", sqf.union.Alias(), sqf.Name())
}
func (sqf *SUnionQueryField) Label(label string) IQueryField {