Skip to content

Commit 5d6beed

Browse files
committed
Update API DescribeDBInstanceAttribute: update response param.
1 parent ad505e5 commit 5d6beed

File tree

2 files changed

+35
-8
lines changed

2 files changed

+35
-8
lines changed

ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2024-12-02 Version: v4.0.1
2+
- Update API DescribeDBInstanceAttribute: update response param.
3+
4+
15
2024-11-14 Version: v4.0.0
26
- Support API DescribeAllDBInstanceClass.
37
- Support API DescribeDBClusterConfig.

client/client.go

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,16 +2414,24 @@ type DescribeDBInstanceAttributeResponseBody struct {
24142414
// nolock
24152415
LockReason *string `json:"LockReason,omitempty" xml:"LockReason,omitempty"`
24162416
// The end time of the instance maintenance window.
2417+
//
2418+
// example:
2419+
//
2420+
// 1970-01-01T05:00Z
24172421
MaintainEndtime *string `json:"MaintainEndtime,omitempty" xml:"MaintainEndtime,omitempty"`
24182422
// The start time of the instance maintenance window.
2423+
//
2424+
// example:
2425+
//
2426+
// 1970-01-01T02:00Z
24192427
MaintainStarttime *string `json:"MaintainStarttime,omitempty" xml:"MaintainStarttime,omitempty"`
24202428
// The storage capacity of the instance.
24212429
//
24222430
// example:
24232431
//
24242432
// 0
24252433
ObjectStoreSize *int64 `json:"ObjectStoreSize,omitempty" xml:"ObjectStoreSize,omitempty"`
2426-
// 地域ID。
2434+
// The Region ID.
24272435
//
24282436
// example:
24292437
//
@@ -2471,20 +2479,21 @@ type DescribeDBInstanceAttributeResponseBody struct {
24712479
//
24722480
// 400
24732481
StorageSize *int64 `json:"StorageSize,omitempty" xml:"StorageSize,omitempty"`
2474-
// The zone ID.
2482+
// The subdomain zone ID.
24752483
//
24762484
// example:
24772485
//
24782486
// cn-beijing-h-aliyun
2479-
SubDomain *string `json:"SubDomain,omitempty" xml:"SubDomain,omitempty"`
2480-
Tags []*DescribeDBInstanceAttributeResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
2481-
// VPC ID。
2487+
SubDomain *string `json:"SubDomain,omitempty" xml:"SubDomain,omitempty"`
2488+
// The tags that are added to the instances. Each tag is a key-value pair that consists of two parts: TagKey and TagValue. Format: `{"key1":"value1"}`.
2489+
Tags []*DescribeDBInstanceAttributeResponseBodyTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"`
2490+
// The VPC ID.
24822491
//
24832492
// example:
24842493
//
24852494
// vpc-bp175iuvg8nxqraf2****
24862495
VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"`
2487-
// 实例可用区ID
2496+
// The Zone ID.
24882497
//
24892498
// example:
24902499
//
@@ -2698,14 +2707,18 @@ type DescribeDBInstanceAttributeResponseBodyDBClusterList struct {
26982707
// test01
26992708
DbClusterName *string `json:"DbClusterName,omitempty" xml:"DbClusterName,omitempty"`
27002709
// The instance name.
2710+
//
2711+
// example:
2712+
//
2713+
// test instance
27012714
DbInstanceName *string `json:"DbInstanceName,omitempty" xml:"DbInstanceName,omitempty"`
27022715
// The memory size.
27032716
//
27042717
// example:
27052718
//
27062719
// 64
27072720
Memory *int64 `json:"Memory,omitempty" xml:"Memory,omitempty"`
2708-
// 修改时间。
2721+
// The modified time.
27092722
//
27102723
// example:
27112724
//
@@ -2716,7 +2729,8 @@ type DescribeDBInstanceAttributeResponseBodyDBClusterList struct {
27162729
// example:
27172730
//
27182731
// PL1
2719-
PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"`
2732+
PerformanceLevel *string `json:"PerformanceLevel,omitempty" xml:"PerformanceLevel,omitempty"`
2733+
ScalingRulesEnable *bool `json:"ScalingRulesEnable,omitempty" xml:"ScalingRulesEnable,omitempty"`
27202734
// The time when the cluster started.
27212735
//
27222736
// example:
@@ -2811,6 +2825,11 @@ func (s *DescribeDBInstanceAttributeResponseBodyDBClusterList) SetPerformanceLev
28112825
return s
28122826
}
28132827

2828+
func (s *DescribeDBInstanceAttributeResponseBodyDBClusterList) SetScalingRulesEnable(v bool) *DescribeDBInstanceAttributeResponseBodyDBClusterList {
2829+
s.ScalingRulesEnable = &v
2830+
return s
2831+
}
2832+
28142833
func (s *DescribeDBInstanceAttributeResponseBodyDBClusterList) SetStartTime(v string) *DescribeDBInstanceAttributeResponseBodyDBClusterList {
28152834
s.StartTime = &v
28162835
return s
@@ -2822,10 +2841,14 @@ func (s *DescribeDBInstanceAttributeResponseBodyDBClusterList) SetStatus(v strin
28222841
}
28232842

28242843
type DescribeDBInstanceAttributeResponseBodyTags struct {
2844+
// The tag key.
2845+
//
28252846
// example:
28262847
//
28272848
// testKey
28282849
TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"`
2850+
// The tag value.
2851+
//
28292852
// example:
28302853
//
28312854
// testValue

0 commit comments

Comments
 (0)