@@ -44,6 +44,10 @@ type CreateAgRequest struct {
4444
4545 /* 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional) */
4646 ConfigurationType * string `json:"configurationType"`
47+
48+ /* 高可用资源放置类型,支持fd、switch、host (Optional) */
49+ PlacementType * string `json:"placementType"`
50+
4751}
4852
4953/*
@@ -80,6 +84,7 @@ func NewCreateAgRequest(
8084 * param instanceTemplateId: 实例模板的ID (Optional)
8185 * param description: 描述,长度不超过 256 字符 (Optional)
8286 * param configurationType: 高可用组配置类型,支持strict(关联模板型)、loose(自定义配置型) (Optional)
87+ * param placementType: 高可用资源放置类型,支持fd、switch、host (Optional)
8388 */
8489func NewCreateAgRequestWithAllParams (
8590 regionId string ,
@@ -89,6 +94,7 @@ func NewCreateAgRequestWithAllParams(
8994 instanceTemplateId * string ,
9095 description * string ,
9196 configurationType * string ,
97+ placementType * string ,
9298) * CreateAgRequest {
9399
94100 return & CreateAgRequest {
@@ -105,6 +111,7 @@ func NewCreateAgRequestWithAllParams(
105111 InstanceTemplateId : instanceTemplateId ,
106112 Description : description ,
107113 ConfigurationType : configurationType ,
114+ PlacementType : placementType ,
108115 }
109116}
110117
@@ -156,6 +163,12 @@ func (r *CreateAgRequest) SetConfigurationType(configurationType string) {
156163 r .ConfigurationType = & configurationType
157164}
158165
166+ /* param placementType: 高可用资源放置类型,支持fd、switch、host(Optional) */
167+ func (r * CreateAgRequest ) SetPlacementType (placementType string ) {
168+ r .PlacementType = & placementType
169+ }
170+
171+
159172// GetRegionId returns path parameter 'regionId' if exist,
160173// otherwise return empty string
161174func (r CreateAgRequest ) GetRegionId () string {
0 commit comments