From 43a4f28db7bbed367de44c8ee03f30fbf034b128 Mon Sep 17 00:00:00 2001 From: ShiChangkuo Date: Sat, 17 Apr 2021 16:48:19 +0800 Subject: [PATCH] feat: add ChargeInfo into rds instance list response --- openstack/rds/v3/instances/results.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openstack/rds/v3/instances/results.go b/openstack/rds/v3/instances/results.go index 6251201a..54fc43da 100644 --- a/openstack/rds/v3/instances/results.go +++ b/openstack/rds/v3/instances/results.go @@ -56,7 +56,11 @@ type Instance struct { VpcId string `json:"vpc_id"` SubnetId string `json:"subnet_id"` SecurityGroupId string `json:"security_group_id"` - ChargeInfo ChargeInfo `json:"charge_info"` + ChargeInfo ChargeResponse `json:"charge_info"` +} + +type ChargeResponse struct { + ChargeMode string `json:"charge_mode"` } type CreateResponse struct { @@ -151,6 +155,7 @@ type RdsInstanceResponse struct { Volume Volume `json:"volume"` SwitchStrategy string `json:"switch_strategy"` BackupStrategy BackupStrategy `json:"backup_strategy"` + ChargeInfo ChargeResponse `json:"charge_info"` MaintenanceWindow string `json:"maintenance_window"` Nodes []Nodes `json:"nodes"` RelatedInstance []RelatedInstance `json:"related_instance"`