@@ -33,21 +33,24 @@ type CreateAgRequest struct {
3333 /* 高可用组名称,只支持中文、数字、大小写字母、英文下划线 “_” 及中划线 “-”,且不能超过 32 字符 */
3434 AgName string `json:"agName"`
3535
36- /* 高可用组类型 ,支持vm (Optional) */
36+ /* 高可用组资源类型 ,支持vm (Optional) */
3737 AgType * string `json:"agType"`
3838
39- /* 实例模板的Id */
39+ /* 实例模板的ID */
4040 InstanceTemplateId string `json:"instanceTemplateId"`
4141
4242 /* 描述,长度不超过 256 字符 (Optional) */
4343 Description * string `json:"description"`
44+
45+ /* 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional) */
46+ ConfigurationType * string `json:"configurationType"`
4447}
4548
4649/*
4750 * param regionId: 地域 (Required)
4851 * param azs: 支持的可用区,最少一个 (Required)
4952 * param agName: 高可用组名称,只支持中文、数字、大小写字母、英文下划线 “_” 及中划线 “-”,且不能超过 32 字符 (Required)
50- * param instanceTemplateId: 实例模板的Id (Required)
53+ * param instanceTemplateId: 实例模板的ID (Required)
5154 *
5255 * @Deprecated, not compatible when mandatory parameters changed
5356 */
@@ -76,9 +79,10 @@ func NewCreateAgRequest(
7679 * param regionId: 地域 (Required)
7780 * param azs: 支持的可用区,最少一个 (Required)
7881 * param agName: 高可用组名称,只支持中文、数字、大小写字母、英文下划线 “_” 及中划线 “-”,且不能超过 32 字符 (Required)
79- * param agType: 高可用组类型 ,支持vm (Optional)
80- * param instanceTemplateId: 实例模板的Id (Required)
82+ * param agType: 高可用组资源类型 ,支持vm (Optional)
83+ * param instanceTemplateId: 实例模板的ID (Required)
8184 * param description: 描述,长度不超过 256 字符 (Optional)
85+ * param configurationType: 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional)
8286 */
8387func NewCreateAgRequestWithAllParams (
8488 regionId string ,
@@ -87,6 +91,7 @@ func NewCreateAgRequestWithAllParams(
8791 agType * string ,
8892 instanceTemplateId string ,
8993 description * string ,
94+ configurationType * string ,
9095) * CreateAgRequest {
9196
9297 return & CreateAgRequest {
@@ -102,6 +107,7 @@ func NewCreateAgRequestWithAllParams(
102107 AgType : agType ,
103108 InstanceTemplateId : instanceTemplateId ,
104109 Description : description ,
110+ ConfigurationType : configurationType ,
105111 }
106112}
107113
@@ -133,12 +139,12 @@ func (r *CreateAgRequest) SetAgName(agName string) {
133139 r .AgName = agName
134140}
135141
136- /* param agType: 高可用组类型 ,支持vm(Optional) */
142+ /* param agType: 高可用组资源类型 ,支持vm(Optional) */
137143func (r * CreateAgRequest ) SetAgType (agType string ) {
138144 r .AgType = & agType
139145}
140146
141- /* param instanceTemplateId: 实例模板的Id (Required) */
147+ /* param instanceTemplateId: 实例模板的ID (Required) */
142148func (r * CreateAgRequest ) SetInstanceTemplateId (instanceTemplateId string ) {
143149 r .InstanceTemplateId = instanceTemplateId
144150}
@@ -148,6 +154,11 @@ func (r *CreateAgRequest) SetDescription(description string) {
148154 r .Description = & description
149155}
150156
157+ /* param configurationType: 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型)(Optional) */
158+ func (r * CreateAgRequest ) SetConfigurationType (configurationType string ) {
159+ r .ConfigurationType = & configurationType
160+ }
161+
151162// GetRegionId returns path parameter 'regionId' if exist,
152163// otherwise return empty string
153164func (r CreateAgRequest ) GetRegionId () string {
0 commit comments