diff --git a/go.mod b/go.mod index 301a32ae15..2a56fa0fbb 100644 --- a/go.mod +++ b/go.mod @@ -6,9 +6,9 @@ tool github.com/golang/mock/mockgen require ( github.com/alibabacloud-go/darabonba-openapi v0.1.16 - github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.13 + github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.14 github.com/alibabacloud-go/ecs-20140526/v7 v7.4.2 - github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.0 + github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.6 github.com/alibabacloud-go/ens-20171110/v3 v3.0.2 github.com/alibabacloud-go/nas-20170626/v4 v4.2.0 github.com/alibabacloud-go/sts-20150401/v2 v2.0.4 diff --git a/go.sum b/go.sum index b388de76a3..f3602d89c3 100644 --- a/go.sum +++ b/go.sum @@ -32,8 +32,9 @@ github.com/alibabacloud-go/darabonba-map v0.0.2/go.mod h1:28AJaX8FOE/ym8OUFWga+M github.com/alibabacloud-go/darabonba-openapi v0.1.16 h1:f6ZspWKTBurQzyLpZKMVxO51HAePY8aedicwuX3+E20= github.com/alibabacloud-go/darabonba-openapi v0.1.16/go.mod h1:ZjyqRbbZOaUBSh7keeH8VQN/BzCPvxCQwMuJGDdbmXQ= github.com/alibabacloud-go/darabonba-openapi/v2 v2.0.11/go.mod h1:wHxkgZT1ClZdcwEVP/pDgYK/9HucsnCfMipmJgCz4xY= -github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.13 h1:Q00FU3H94Ts0ZIHDmY+fYGgB7dV9D/YX6FGsgorQPgw= github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.13/go.mod h1:lxFGfobinVsQ49ntjpgWghXmIF0/Sm4+wvBJ1h5RtaE= +github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.14 h1:iIamPRvehxQvVnTOvz77rZR+/YME1lR7X8kHonQSU6Y= +github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.14/go.mod h1:lxFGfobinVsQ49ntjpgWghXmIF0/Sm4+wvBJ1h5RtaE= github.com/alibabacloud-go/darabonba-signature-util v0.0.7 h1:UzCnKvsjPFzApvODDNEYqBHMFt1w98wC7FOo0InLyxg= github.com/alibabacloud-go/darabonba-signature-util v0.0.7/go.mod h1:oUzCYV2fcCH797xKdL6BDH8ADIHlzrtKVjeRtunBNTQ= github.com/alibabacloud-go/darabonba-string v1.0.0/go.mod h1:93cTfV3vuPhhEwGGpKKqhVW4jLe7tDpo3LUM0i0g6mA= @@ -45,8 +46,8 @@ github.com/alibabacloud-go/debug v1.0.1 h1:MsW9SmUtbb1Fnt3ieC6NNZi6aEwrXfDksD4QA github.com/alibabacloud-go/debug v1.0.1/go.mod h1:8gfgZCCAC3+SCzjWtY053FrOcd4/qlH6IHTI4QyICOc= github.com/alibabacloud-go/ecs-20140526/v7 v7.4.2 h1:A+rE0e+5XlrniPd+68bUHIq8Fh9fG1SIVpn6szd/6ac= github.com/alibabacloud-go/ecs-20140526/v7 v7.4.2/go.mod h1:Jwyp6loA3nt1hZu5fmyZahVMjZxNr2eDeXadPUnSKA0= -github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.0 h1:pZLIXOMPzHy49K891UCgwC4ihgoUYnTwvK4VIExkwzs= -github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.0/go.mod h1:SKN9dFS7vtPV1hfeLYE0iu4lB8OiFWz/4lq6FRkdapc= +github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.6 h1:c7JAUzc3Dn2dApAFasVNETlqmntjDSswktErpG84y0U= +github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.6/go.mod h1:YJZ8116Kx8bomgyHN4BEfQezM71ySKhiRgNjqRmVswc= github.com/alibabacloud-go/endpoint-util v1.1.0 h1:r/4D3VSw888XGaeNpP994zDUaxdgTSHBbVfZlzf6b5Q= github.com/alibabacloud-go/endpoint-util v1.1.0/go.mod h1:O5FuCALmCKs2Ff7JFJMudHs0I5EBgecXXxZRyswlEjE= github.com/alibabacloud-go/ens-20171110/v3 v3.0.2 h1:MOcjqAf7cACXaPKAv37WMjp7zHARcrdmGQm08PYiiPM= diff --git a/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/utils/client.go b/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/utils/client.go index 650110f518..f10d7ed52b 100644 --- a/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/utils/client.go +++ b/vendor/github.com/alibabacloud-go/darabonba-openapi/v2/utils/client.go @@ -827,3 +827,125 @@ func StringifyMapValue(a map[string]interface{}) map[string]*string { } return res } + +// MapToFlatStyle transforms a map to a flat style map where keys are prefixed with length info. +// Map keys are transformed from "key" to "#length#key" format. +func MapToFlatStyle(object interface{}) interface{} { + if object == nil { + return object + } + + val := reflect.ValueOf(object) + if !val.IsValid() { + return object + } + + // Handle pointer types + if val.Kind() == reflect.Ptr { + if val.IsNil() { + return object + } + val = val.Elem() + } + + // Handle slice/array (List) + if val.Kind() == reflect.Slice || val.Kind() == reflect.Array { + result := make([]interface{}, val.Len()) + for i := 0; i < val.Len(); i++ { + result[i] = MapToFlatStyle(val.Index(i).Interface()) + } + return result + } + + // Handle struct (TeaModel equivalent) + if val.Kind() == reflect.Struct { + // Create a pointer to the struct so we can modify it + if reflect.TypeOf(object).Kind() == reflect.Ptr { + // Already a pointer + val = reflect.ValueOf(object).Elem() + } else { + // Make a copy and work with pointer + ptrVal := reflect.New(val.Type()) + ptrVal.Elem().Set(val) + val = ptrVal.Elem() + object = ptrVal.Interface() + } + + valType := val.Type() + for i := 0; i < val.NumField(); i++ { + field := val.Field(i) + fieldType := valType.Field(i) + + // Skip unexported fields + if !field.CanSet() { + continue + } + + fieldValue := field.Interface() + + // Check if field is a map + if field.Kind() == reflect.Map { + flatMap := make(map[string]interface{}) + iter := field.MapRange() + for iter.Next() { + key := iter.Key() + value := iter.Value() + keyStr := fmt.Sprintf("%v", key.Interface()) + flatKey := fmt.Sprintf("#%d#%s", len(keyStr), keyStr) + flatMap[flatKey] = MapToFlatStyle(value.Interface()) + } + + // Set the flattened map back to the field + newMapValue := reflect.MakeMap(field.Type()) + for k, v := range flatMap { + keyVal := reflect.ValueOf(k) + valVal := reflect.ValueOf(v) + if valVal.IsValid() && valVal.Type().AssignableTo(field.Type().Elem()) { + newMapValue.SetMapIndex(keyVal, valVal) + } else if valVal.IsValid() { + // Try to convert the value + if field.Type().Elem().Kind() == reflect.Interface { + newMapValue.SetMapIndex(keyVal, valVal) + } + } + } + if newMapValue.Len() > 0 { + field.Set(newMapValue) + } + } else { + // Recursively process other fields + processed := MapToFlatStyle(fieldValue) + if processed != nil && field.CanSet() { + processedVal := reflect.ValueOf(processed) + if processedVal.IsValid() { + // Only set if types are compatible + if processedVal.Type().AssignableTo(fieldType.Type) { + field.Set(processedVal) + } else if fieldType.Type.Kind() == reflect.Interface { + field.Set(processedVal) + } else if processedVal.Type().ConvertibleTo(fieldType.Type) { + field.Set(processedVal.Convert(fieldType.Type)) + } + } + } + } + } + return object + } + + // Handle map + if val.Kind() == reflect.Map { + flatMap := make(map[string]interface{}) + iter := val.MapRange() + for iter.Next() { + key := iter.Key() + value := iter.Value() + keyStr := fmt.Sprintf("%v", key.Interface()) + flatKey := fmt.Sprintf("#%d#%s", len(keyStr), keyStr) + flatMap[flatKey] = MapToFlatStyle(value.Interface()) + } + return flatMap + } + + return object +} diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client.go index 5c9c845daa..24f9ffbe31 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client.go @@ -24,7 +24,7 @@ func (client *Client) Init(config *openapiutil.Config) (_err error) { if _err != nil { return _err } - client.EndpointRule = dara.String("") + client.EndpointRule = dara.String("regional") _err = client.CheckConfig(config) if _err != nil { return _err @@ -58,7 +58,7 @@ func (client *Client) GetEndpoint(productId *string, regionId *string, endpointR // Summary: // -// Approves an O\\&M operation. +// Approves an O\\\\\\&M operation. // // @param request - ApproveOperationRequest // @@ -106,7 +106,7 @@ func (client *Client) ApproveOperationWithOptions(request *ApproveOperationReque // Summary: // -// Approves an O\\&M operation. +// Approves an O\\\\\\&M operation. // // @param request - ApproveOperationRequest // @@ -1164,7 +1164,7 @@ func (client *Client) DeleteNode(request *DeleteNodeRequest) (_result *DeleteNod // Summary: // -// 删除节点分组 +// # Delete Node Group // // @param request - DeleteNodeGroupRequest // @@ -1212,7 +1212,7 @@ func (client *Client) DeleteNodeGroupWithOptions(request *DeleteNodeGroupRequest // Summary: // -// 删除节点分组 +// # Delete Node Group // // @param request - DeleteNodeGroupRequest // @@ -1492,7 +1492,7 @@ func (client *Client) DescribeHyperNode(request *DescribeHyperNodeRequest) (_res // Summary: // -// Queries the execution list and status of O\\&M Assistant commands. +// Queries the execution list and status of O\\\\\\&M Assistant commands. // // @param request - DescribeInvocationsRequest // @@ -1548,7 +1548,7 @@ func (client *Client) DescribeInvocationsWithOptions(request *DescribeInvocation // Summary: // -// Queries the execution list and status of O\\&M Assistant commands. +// Queries the execution list and status of O\\\\\\&M Assistant commands. // // @param request - DescribeInvocationsRequest // @@ -1752,7 +1752,7 @@ func (client *Client) DescribeNodeGroup(request *DescribeNodeGroupRequest) (_res // Summary: // -// 创建Web Terminal会话 +// 查询节点规格详情 // // @param request - DescribeNodeTypeRequest // @@ -1796,7 +1796,7 @@ func (client *Client) DescribeNodeTypeWithOptions(request *DescribeNodeTypeReque // Summary: // -// 创建Web Terminal会话 +// 查询节点规格详情 // // @param request - DescribeNodeTypeRequest // @@ -1876,7 +1876,7 @@ func (client *Client) DescribeRegions(request *DescribeRegionsRequest) (_result // Summary: // -// Queries the files that are sent by an O\\&M assistant and the status of the files. +// Queries the files that are sent by an O\\\\\\&M assistant and the status of the files. // // @param request - DescribeSendFileResultsRequest // @@ -1924,7 +1924,7 @@ func (client *Client) DescribeSendFileResultsWithOptions(request *DescribeSendFi // Summary: // -// Queries the files that are sent by an O\\&M assistant and the status of the files. +// Queries the files that are sent by an O\\\\\\&M assistant and the status of the files. // // @param request - DescribeSendFileResultsRequest // @@ -2722,18 +2722,41 @@ func (client *Client) ListFreeNodes(request *ListFreeNodesRequest) (_result *Lis // // 机器列表 // -// @param request - ListHyperNodesRequest +// @param tmpReq - ListHyperNodesRequest // // @param runtime - runtime options for this request RuntimeOptions // // @return ListHyperNodesResponse -func (client *Client) ListHyperNodesWithOptions(request *ListHyperNodesRequest, runtime *dara.RuntimeOptions) (_result *ListHyperNodesResponse, _err error) { +func (client *Client) ListHyperNodesWithOptions(tmpReq *ListHyperNodesRequest, runtime *dara.RuntimeOptions) (_result *ListHyperNodesResponse, _err error) { if dara.BoolValue(client.EnableValidate) == true { - _err = request.Validate() + _err = tmpReq.Validate() if _err != nil { return _result, _err } } + request := &ListHyperNodesShrinkRequest{} + openapiutil.Convert(tmpReq, request) + if !dara.IsNil(tmpReq.HyperNodeIds) { + request.HyperNodeIdsShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.HyperNodeIds, dara.String("HyperNodeIds"), dara.String("json")) + } + + if !dara.IsNil(tmpReq.OperatingStates) { + request.OperatingStatesShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.OperatingStates, dara.String("OperatingStates"), dara.String("json")) + } + + query := map[string]interface{}{} + if !dara.IsNil(request.CommodityCode) { + query["CommodityCode"] = request.CommodityCode + } + + if !dara.IsNil(request.HyperNodeIdsShrink) { + query["HyperNodeIds"] = request.HyperNodeIdsShrink + } + + if !dara.IsNil(request.OperatingStatesShrink) { + query["OperatingStates"] = request.OperatingStatesShrink + } + body := map[string]interface{}{} if !dara.IsNil(request.ClusterName) { body["ClusterName"] = request.ClusterName @@ -2776,7 +2799,8 @@ func (client *Client) ListHyperNodesWithOptions(request *ListHyperNodesRequest, } req := &openapiutil.OpenApiRequest{ - Body: openapiutil.ParseToMap(body), + Query: openapiutil.Query(query), + Body: openapiutil.ParseToMap(body), } params := &openapiutil.Params{ Action: dara.String("ListHyperNodes"), @@ -4031,7 +4055,7 @@ func (client *Client) ShrinkCluster(request *ShrinkClusterRequest) (_result *Shr // Summary: // -// Stops the O\\&M assistant command execution. +// Stops the O\\\\\\&M assistant command execution. // // @param tmpReq - StopInvocationRequest // @@ -4085,7 +4109,7 @@ func (client *Client) StopInvocationWithOptions(tmpReq *StopInvocationRequest, r // Summary: // -// Stops the O\\&M assistant command execution. +// Stops the O\\\\\\&M assistant command execution. // // @param request - StopInvocationRequest // @@ -4366,6 +4390,10 @@ func (client *Client) UpdateNodeGroupWithOptions(request *UpdateNodeGroupRequest body["NodeGroupId"] = request.NodeGroupId } + if !dara.IsNil(request.RamRoleName) { + body["RamRoleName"] = request.RamRoleName + } + if !dara.IsNil(request.UserData) { body["UserData"] = request.UserData } diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client_context_func.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client_context_func.go index a1c017552a..b377b85b30 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client_context_func.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/client_context_func.go @@ -9,7 +9,7 @@ import ( // Summary: // -// Approves an O\\&M operation. +// Approves an O\\\\\\&M operation. // // @param request - ApproveOperationRequest // @@ -855,7 +855,7 @@ func (client *Client) DeleteNodeWithContext(ctx context.Context, request *Delete // Summary: // -// 删除节点分组 +// # Delete Node Group // // @param request - DeleteNodeGroupRequest // @@ -1089,7 +1089,7 @@ func (client *Client) DescribeHyperNodeWithContext(ctx context.Context, request // Summary: // -// Queries the execution list and status of O\\&M Assistant commands. +// Queries the execution list and status of O\\\\\\&M Assistant commands. // // @param request - DescribeInvocationsRequest // @@ -1277,7 +1277,7 @@ func (client *Client) DescribeNodeGroupWithContext(ctx context.Context, request // Summary: // -// 创建Web Terminal会话 +// 查询节点规格详情 // // @param request - DescribeNodeTypeRequest // @@ -1365,7 +1365,7 @@ func (client *Client) DescribeRegionsWithContext(ctx context.Context, request *D // Summary: // -// Queries the files that are sent by an O\\&M assistant and the status of the files. +// Queries the files that are sent by an O\\\\\\&M assistant and the status of the files. // // @param request - DescribeSendFileResultsRequest // @@ -2013,18 +2013,41 @@ func (client *Client) ListFreeNodesWithContext(ctx context.Context, request *Lis // // 机器列表 // -// @param request - ListHyperNodesRequest +// @param tmpReq - ListHyperNodesRequest // // @param runtime - runtime options for this request RuntimeOptions // // @return ListHyperNodesResponse -func (client *Client) ListHyperNodesWithContext(ctx context.Context, request *ListHyperNodesRequest, runtime *dara.RuntimeOptions) (_result *ListHyperNodesResponse, _err error) { +func (client *Client) ListHyperNodesWithContext(ctx context.Context, tmpReq *ListHyperNodesRequest, runtime *dara.RuntimeOptions) (_result *ListHyperNodesResponse, _err error) { if dara.BoolValue(client.EnableValidate) == true { - _err = request.Validate() + _err = tmpReq.Validate() if _err != nil { return _result, _err } } + request := &ListHyperNodesShrinkRequest{} + openapiutil.Convert(tmpReq, request) + if !dara.IsNil(tmpReq.HyperNodeIds) { + request.HyperNodeIdsShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.HyperNodeIds, dara.String("HyperNodeIds"), dara.String("json")) + } + + if !dara.IsNil(tmpReq.OperatingStates) { + request.OperatingStatesShrink = openapiutil.ArrayToStringWithSpecifiedStyle(tmpReq.OperatingStates, dara.String("OperatingStates"), dara.String("json")) + } + + query := map[string]interface{}{} + if !dara.IsNil(request.CommodityCode) { + query["CommodityCode"] = request.CommodityCode + } + + if !dara.IsNil(request.HyperNodeIdsShrink) { + query["HyperNodeIds"] = request.HyperNodeIdsShrink + } + + if !dara.IsNil(request.OperatingStatesShrink) { + query["OperatingStates"] = request.OperatingStatesShrink + } + body := map[string]interface{}{} if !dara.IsNil(request.ClusterName) { body["ClusterName"] = request.ClusterName @@ -2067,7 +2090,8 @@ func (client *Client) ListHyperNodesWithContext(ctx context.Context, request *Li } req := &openapiutil.OpenApiRequest{ - Body: openapiutil.ParseToMap(body), + Query: openapiutil.Query(query), + Body: openapiutil.ParseToMap(body), } params := &openapiutil.Params{ Action: dara.String("ListHyperNodes"), @@ -3001,7 +3025,7 @@ func (client *Client) ShrinkClusterWithContext(ctx context.Context, tmpReq *Shri // Summary: // -// Stops the O\\&M assistant command execution. +// Stops the O\\\\\\&M assistant command execution. // // @param tmpReq - StopInvocationRequest // @@ -3264,6 +3288,10 @@ func (client *Client) UpdateNodeGroupWithContext(ctx context.Context, request *U body["NodeGroupId"] = request.NodeGroupId } + if !dara.IsNil(request.RamRoleName) { + body["RamRoleName"] = request.RamRoleName + } + if !dara.IsNil(request.UserData) { body["UserData"] = request.UserData } diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_cluster_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_cluster_request_model.go index 6dda6228aa..be2c8c82e6 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_cluster_request_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_cluster_request_model.go @@ -1154,7 +1154,8 @@ type CreateClusterRequestNodeGroups struct { // emr-default NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` // Node list - Nodes []*CreateClusterRequestNodeGroupsNodes `json:"Nodes,omitempty" xml:"Nodes,omitempty" type:"Repeated"` + Nodes []*CreateClusterRequestNodeGroupsNodes `json:"Nodes,omitempty" xml:"Nodes,omitempty" type:"Repeated"` + RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // System disk information SystemDisk *CreateClusterRequestNodeGroupsSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // Instance custom data. It needs to be encoded in Base64, and the original data should not exceed 16 KB. @@ -1221,6 +1222,10 @@ func (s *CreateClusterRequestNodeGroups) GetNodes() []*CreateClusterRequestNodeG return s.Nodes } +func (s *CreateClusterRequestNodeGroups) GetRamRoleName() *string { + return s.RamRoleName +} + func (s *CreateClusterRequestNodeGroups) GetSystemDisk() *CreateClusterRequestNodeGroupsSystemDisk { return s.SystemDisk } @@ -1282,6 +1287,11 @@ func (s *CreateClusterRequestNodeGroups) SetNodes(v []*CreateClusterRequestNodeG return s } +func (s *CreateClusterRequestNodeGroups) SetRamRoleName(v string) *CreateClusterRequestNodeGroups { + s.RamRoleName = &v + return s +} + func (s *CreateClusterRequestNodeGroups) SetSystemDisk(v *CreateClusterRequestNodeGroupsSystemDisk) *CreateClusterRequestNodeGroups { s.SystemDisk = v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_node_group_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_node_group_request_model.go index 0dda3ff8e9..1c1711793f 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_node_group_request_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/create_node_group_request_model.go @@ -139,6 +139,7 @@ type CreateNodeGroupRequestNodeGroup struct { // // PAI-LINGJUN NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` + RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // Details of the node system disk configuration. SystemDisk *CreateNodeGroupRequestNodeGroupSystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` // User-defined data @@ -199,6 +200,10 @@ func (s *CreateNodeGroupRequestNodeGroup) GetNodeGroupName() *string { return s.NodeGroupName } +func (s *CreateNodeGroupRequestNodeGroup) GetRamRoleName() *string { + return s.RamRoleName +} + func (s *CreateNodeGroupRequestNodeGroup) GetSystemDisk() *CreateNodeGroupRequestNodeGroupSystemDisk { return s.SystemDisk } @@ -251,6 +256,11 @@ func (s *CreateNodeGroupRequestNodeGroup) SetNodeGroupName(v string) *CreateNode return s } +func (s *CreateNodeGroupRequestNodeGroup) SetRamRoleName(v string) *CreateNodeGroupRequestNodeGroup { + s.RamRoleName = &v + return s +} + func (s *CreateNodeGroupRequestNodeGroup) SetSystemDisk(v *CreateNodeGroupRequestNodeGroupSystemDisk) *CreateNodeGroupRequestNodeGroup { s.SystemDisk = v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_group_response_body_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_group_response_body_model.go index c1d4ac6b74..4ade9b434b 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_group_response_body_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_group_response_body_model.go @@ -37,6 +37,8 @@ type iDescribeNodeGroupResponseBody interface { GetNodeGroupId() *string SetNodeGroupName(v string) *DescribeNodeGroupResponseBody GetNodeGroupName() *string + SetRamRoleName(v string) *DescribeNodeGroupResponseBody + GetRamRoleName() *string SetRequestId(v string) *DescribeNodeGroupResponseBody GetRequestId() *string SetSystemDisk(v *DescribeNodeGroupResponseBodySystemDisk) *DescribeNodeGroupResponseBody @@ -64,6 +66,7 @@ type DescribeNodeGroupResponseBody struct { NodeGroupDescription *string `json:"NodeGroupDescription,omitempty" xml:"NodeGroupDescription,omitempty"` NodeGroupId *string `json:"NodeGroupId,omitempty" xml:"NodeGroupId,omitempty"` NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` + RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // Id of the request RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` SystemDisk *DescribeNodeGroupResponseBodySystemDisk `json:"SystemDisk,omitempty" xml:"SystemDisk,omitempty" type:"Struct"` @@ -136,6 +139,10 @@ func (s *DescribeNodeGroupResponseBody) GetNodeGroupName() *string { return s.NodeGroupName } +func (s *DescribeNodeGroupResponseBody) GetRamRoleName() *string { + return s.RamRoleName +} + func (s *DescribeNodeGroupResponseBody) GetRequestId() *string { return s.RequestId } @@ -226,6 +233,11 @@ func (s *DescribeNodeGroupResponseBody) SetNodeGroupName(v string) *DescribeNode return s } +func (s *DescribeNodeGroupResponseBody) SetRamRoleName(v string) *DescribeNodeGroupResponseBody { + s.RamRoleName = &v + return s +} + func (s *DescribeNodeGroupResponseBody) SetRequestId(v string) *DescribeNodeGroupResponseBody { s.RequestId = &v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_response_body_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_response_body_model.go index 0b0b185b73..d32be9ebba 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_response_body_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/describe_node_response_body_model.go @@ -567,13 +567,15 @@ type DescribeNodeResponseBodyNetworks struct { // example: // // 47.254.235.44 - Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"` + Ip *string `json:"Ip,omitempty" xml:"Ip,omitempty"` + SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // The subnet ID. // // example: // // vsw-uf68v51fldm5egmui5a6k - SubnetId *string `json:"SubnetId,omitempty" xml:"SubnetId,omitempty"` + SubnetId *string `json:"SubnetId,omitempty" xml:"SubnetId,omitempty"` + VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` // The ID of the cluster network. // // example: @@ -598,10 +600,18 @@ func (s *DescribeNodeResponseBodyNetworks) GetIp() *string { return s.Ip } +func (s *DescribeNodeResponseBodyNetworks) GetSecurityGroupId() *string { + return s.SecurityGroupId +} + func (s *DescribeNodeResponseBodyNetworks) GetSubnetId() *string { return s.SubnetId } +func (s *DescribeNodeResponseBodyNetworks) GetVSwitchId() *string { + return s.VSwitchId +} + func (s *DescribeNodeResponseBodyNetworks) GetVpdId() *string { return s.VpdId } @@ -616,11 +626,21 @@ func (s *DescribeNodeResponseBodyNetworks) SetIp(v string) *DescribeNodeResponse return s } +func (s *DescribeNodeResponseBodyNetworks) SetSecurityGroupId(v string) *DescribeNodeResponseBodyNetworks { + s.SecurityGroupId = &v + return s +} + func (s *DescribeNodeResponseBodyNetworks) SetSubnetId(v string) *DescribeNodeResponseBodyNetworks { s.SubnetId = &v return s } +func (s *DescribeNodeResponseBodyNetworks) SetVSwitchId(v string) *DescribeNodeResponseBodyNetworks { + s.VSwitchId = &v + return s +} + func (s *DescribeNodeResponseBodyNetworks) SetVpdId(v string) *DescribeNodeResponseBodyNetworks { s.VpdId = &v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/extend_cluster_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/extend_cluster_request_model.go index 1f7d2f84ec..57afbc2c16 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/extend_cluster_request_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/extend_cluster_request_model.go @@ -747,6 +747,7 @@ type ExtendClusterRequestNodeGroupsHyperNodes struct { Hostname *string `json:"Hostname,omitempty" xml:"Hostname,omitempty"` HyperNodeId *string `json:"HyperNodeId,omitempty" xml:"HyperNodeId,omitempty"` LoginPassword *string `json:"LoginPassword,omitempty" xml:"LoginPassword,omitempty"` + SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` VSwitchId *string `json:"VSwitchId,omitempty" xml:"VSwitchId,omitempty"` VpcId *string `json:"VpcId,omitempty" xml:"VpcId,omitempty"` } @@ -775,6 +776,10 @@ func (s *ExtendClusterRequestNodeGroupsHyperNodes) GetLoginPassword() *string { return s.LoginPassword } +func (s *ExtendClusterRequestNodeGroupsHyperNodes) GetSecurityGroupId() *string { + return s.SecurityGroupId +} + func (s *ExtendClusterRequestNodeGroupsHyperNodes) GetVSwitchId() *string { return s.VSwitchId } @@ -803,6 +808,11 @@ func (s *ExtendClusterRequestNodeGroupsHyperNodes) SetLoginPassword(v string) *E return s } +func (s *ExtendClusterRequestNodeGroupsHyperNodes) SetSecurityGroupId(v string) *ExtendClusterRequestNodeGroupsHyperNodes { + s.SecurityGroupId = &v + return s +} + func (s *ExtendClusterRequestNodeGroupsHyperNodes) SetVSwitchId(v string) *ExtendClusterRequestNodeGroupsHyperNodes { s.VSwitchId = &v return s @@ -967,6 +977,7 @@ type ExtendClusterRequestNodeGroupsNodes struct { // // e01-cn-zvp2zdpy601 NodeId *string `json:"NodeId,omitempty" xml:"NodeId,omitempty"` + SecurityGroupId *string `json:"SecurityGroupId,omitempty" xml:"SecurityGroupId,omitempty"` // VSwitch ID // // example: @@ -1005,6 +1016,10 @@ func (s *ExtendClusterRequestNodeGroupsNodes) GetNodeId() *string { return s.NodeId } +func (s *ExtendClusterRequestNodeGroupsNodes) GetSecurityGroupId() *string { + return s.SecurityGroupId +} + func (s *ExtendClusterRequestNodeGroupsNodes) GetVSwitchId() *string { return s.VSwitchId } @@ -1033,6 +1048,11 @@ func (s *ExtendClusterRequestNodeGroupsNodes) SetNodeId(v string) *ExtendCluster return s } +func (s *ExtendClusterRequestNodeGroupsNodes) SetSecurityGroupId(v string) *ExtendClusterRequestNodeGroupsNodes { + s.SecurityGroupId = &v + return s +} + func (s *ExtendClusterRequestNodeGroupsNodes) SetVSwitchId(v string) *ExtendClusterRequestNodeGroupsNodes { s.VSwitchId = &v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_cluster_nodes_response_body_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_cluster_nodes_response_body_model.go index 62c29b5d73..b21f2df769 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_cluster_nodes_response_body_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_cluster_nodes_response_body_model.go @@ -160,7 +160,8 @@ type ListClusterNodesResponseBodyNodes struct { // example: // // e01-cn-2r42tmj4z02 - NodeId *string `json:"NodeId,omitempty" xml:"NodeId,omitempty"` + NodeId *string `json:"NodeId,omitempty" xml:"NodeId,omitempty"` + NodeType *string `json:"NodeType,omitempty" xml:"NodeType,omitempty"` // The node status. // // Valid values: @@ -293,6 +294,10 @@ func (s *ListClusterNodesResponseBodyNodes) GetNodeId() *string { return s.NodeId } +func (s *ListClusterNodesResponseBodyNodes) GetNodeType() *string { + return s.NodeType +} + func (s *ListClusterNodesResponseBodyNodes) GetOperatingState() *string { return s.OperatingState } @@ -391,6 +396,11 @@ func (s *ListClusterNodesResponseBodyNodes) SetNodeId(v string) *ListClusterNode return s } +func (s *ListClusterNodesResponseBodyNodes) SetNodeType(v string) *ListClusterNodesResponseBodyNodes { + s.NodeType = &v + return s +} + func (s *ListClusterNodesResponseBodyNodes) SetOperatingState(v string) *ListClusterNodesResponseBodyNodes { s.OperatingState = &v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_request_model.go index 544a52896b..3dba7906fe 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_request_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_request_model.go @@ -11,10 +11,14 @@ type iListHyperNodesRequest interface { GoString() string SetClusterName(v string) *ListHyperNodesRequest GetClusterName() *string + SetCommodityCode(v string) *ListHyperNodesRequest + GetCommodityCode() *string SetHpnZone(v string) *ListHyperNodesRequest GetHpnZone() *string SetHyperNodeId(v string) *ListHyperNodesRequest GetHyperNodeId() *string + SetHyperNodeIds(v []*string) *ListHyperNodesRequest + GetHyperNodeIds() []*string SetMachineType(v string) *ListHyperNodesRequest GetMachineType() *string SetMaxResults(v int32) *ListHyperNodesRequest @@ -23,6 +27,8 @@ type iListHyperNodesRequest interface { GetNextToken() *string SetNodeGroupName(v string) *ListHyperNodesRequest GetNodeGroupName() *string + SetOperatingStates(v []*string) *ListHyperNodesRequest + GetOperatingStates() []*string SetResourceGroupId(v string) *ListHyperNodesRequest GetResourceGroupId() *string SetTags(v []*ListHyperNodesRequestTags) *ListHyperNodesRequest @@ -35,7 +41,8 @@ type ListHyperNodesRequest struct { // example: // // Standard_Cluster - ClusterName *string `json:"ClusterName,omitempty" xml:"ClusterName,omitempty"` + ClusterName *string `json:"ClusterName,omitempty" xml:"ClusterName,omitempty"` + CommodityCode *string `json:"CommodityCode,omitempty" xml:"CommodityCode,omitempty"` // example: // // A1 @@ -43,7 +50,8 @@ type ListHyperNodesRequest struct { // example: // // e01-cn-zvp2tgykr08 - HyperNodeId *string `json:"HyperNodeId,omitempty" xml:"HyperNodeId,omitempty"` + HyperNodeId *string `json:"HyperNodeId,omitempty" xml:"HyperNodeId,omitempty"` + HyperNodeIds []*string `json:"HyperNodeIds,omitempty" xml:"HyperNodeIds,omitempty" type:"Repeated"` // example: // // efg1.nvga1 @@ -59,7 +67,8 @@ type ListHyperNodesRequest struct { // example: // // emr-default - NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` + NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` + OperatingStates []*string `json:"OperatingStates,omitempty" xml:"OperatingStates,omitempty" type:"Repeated"` // example: // // rg-acfmwfm33rlt6zi @@ -83,6 +92,10 @@ func (s *ListHyperNodesRequest) GetClusterName() *string { return s.ClusterName } +func (s *ListHyperNodesRequest) GetCommodityCode() *string { + return s.CommodityCode +} + func (s *ListHyperNodesRequest) GetHpnZone() *string { return s.HpnZone } @@ -91,6 +104,10 @@ func (s *ListHyperNodesRequest) GetHyperNodeId() *string { return s.HyperNodeId } +func (s *ListHyperNodesRequest) GetHyperNodeIds() []*string { + return s.HyperNodeIds +} + func (s *ListHyperNodesRequest) GetMachineType() *string { return s.MachineType } @@ -107,6 +124,10 @@ func (s *ListHyperNodesRequest) GetNodeGroupName() *string { return s.NodeGroupName } +func (s *ListHyperNodesRequest) GetOperatingStates() []*string { + return s.OperatingStates +} + func (s *ListHyperNodesRequest) GetResourceGroupId() *string { return s.ResourceGroupId } @@ -124,6 +145,11 @@ func (s *ListHyperNodesRequest) SetClusterName(v string) *ListHyperNodesRequest return s } +func (s *ListHyperNodesRequest) SetCommodityCode(v string) *ListHyperNodesRequest { + s.CommodityCode = &v + return s +} + func (s *ListHyperNodesRequest) SetHpnZone(v string) *ListHyperNodesRequest { s.HpnZone = &v return s @@ -134,6 +160,11 @@ func (s *ListHyperNodesRequest) SetHyperNodeId(v string) *ListHyperNodesRequest return s } +func (s *ListHyperNodesRequest) SetHyperNodeIds(v []*string) *ListHyperNodesRequest { + s.HyperNodeIds = v + return s +} + func (s *ListHyperNodesRequest) SetMachineType(v string) *ListHyperNodesRequest { s.MachineType = &v return s @@ -154,6 +185,11 @@ func (s *ListHyperNodesRequest) SetNodeGroupName(v string) *ListHyperNodesReques return s } +func (s *ListHyperNodesRequest) SetOperatingStates(v []*string) *ListHyperNodesRequest { + s.OperatingStates = v + return s +} + func (s *ListHyperNodesRequest) SetResourceGroupId(v string) *ListHyperNodesRequest { s.ResourceGroupId = &v return s diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_shrink_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_shrink_request_model.go new file mode 100644 index 0000000000..6beda01110 --- /dev/null +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_hyper_nodes_shrink_request_model.go @@ -0,0 +1,260 @@ +// This file is auto-generated, don't edit it. Thanks. +package client + +import ( + "github.com/alibabacloud-go/tea/dara" +) + +type iListHyperNodesShrinkRequest interface { + dara.Model + String() string + GoString() string + SetClusterName(v string) *ListHyperNodesShrinkRequest + GetClusterName() *string + SetCommodityCode(v string) *ListHyperNodesShrinkRequest + GetCommodityCode() *string + SetHpnZone(v string) *ListHyperNodesShrinkRequest + GetHpnZone() *string + SetHyperNodeId(v string) *ListHyperNodesShrinkRequest + GetHyperNodeId() *string + SetHyperNodeIdsShrink(v string) *ListHyperNodesShrinkRequest + GetHyperNodeIdsShrink() *string + SetMachineType(v string) *ListHyperNodesShrinkRequest + GetMachineType() *string + SetMaxResults(v int32) *ListHyperNodesShrinkRequest + GetMaxResults() *int32 + SetNextToken(v string) *ListHyperNodesShrinkRequest + GetNextToken() *string + SetNodeGroupName(v string) *ListHyperNodesShrinkRequest + GetNodeGroupName() *string + SetOperatingStatesShrink(v string) *ListHyperNodesShrinkRequest + GetOperatingStatesShrink() *string + SetResourceGroupId(v string) *ListHyperNodesShrinkRequest + GetResourceGroupId() *string + SetTags(v []*ListHyperNodesShrinkRequestTags) *ListHyperNodesShrinkRequest + GetTags() []*ListHyperNodesShrinkRequestTags + SetZoneId(v string) *ListHyperNodesShrinkRequest + GetZoneId() *string +} + +type ListHyperNodesShrinkRequest struct { + // example: + // + // Standard_Cluster + ClusterName *string `json:"ClusterName,omitempty" xml:"ClusterName,omitempty"` + CommodityCode *string `json:"CommodityCode,omitempty" xml:"CommodityCode,omitempty"` + // example: + // + // A1 + HpnZone *string `json:"HpnZone,omitempty" xml:"HpnZone,omitempty"` + // example: + // + // e01-cn-zvp2tgykr08 + HyperNodeId *string `json:"HyperNodeId,omitempty" xml:"HyperNodeId,omitempty"` + HyperNodeIdsShrink *string `json:"HyperNodeIds,omitempty" xml:"HyperNodeIds,omitempty"` + // example: + // + // efg1.nvga1 + MachineType *string `json:"MachineType,omitempty" xml:"MachineType,omitempty"` + // example: + // + // 100 + MaxResults *int32 `json:"MaxResults,omitempty" xml:"MaxResults,omitempty"` + // example: + // + // 3a6b93229825ac667104463b56790c91 + NextToken *string `json:"NextToken,omitempty" xml:"NextToken,omitempty"` + // example: + // + // emr-default + NodeGroupName *string `json:"NodeGroupName,omitempty" xml:"NodeGroupName,omitempty"` + OperatingStatesShrink *string `json:"OperatingStates,omitempty" xml:"OperatingStates,omitempty"` + // example: + // + // rg-acfmwfm33rlt6zi + ResourceGroupId *string `json:"ResourceGroupId,omitempty" xml:"ResourceGroupId,omitempty"` + Tags []*ListHyperNodesShrinkRequestTags `json:"Tags,omitempty" xml:"Tags,omitempty" type:"Repeated"` + // example: + // + // cn-hangzhou-i + ZoneId *string `json:"ZoneId,omitempty" xml:"ZoneId,omitempty"` +} + +func (s ListHyperNodesShrinkRequest) String() string { + return dara.Prettify(s) +} + +func (s ListHyperNodesShrinkRequest) GoString() string { + return s.String() +} + +func (s *ListHyperNodesShrinkRequest) GetClusterName() *string { + return s.ClusterName +} + +func (s *ListHyperNodesShrinkRequest) GetCommodityCode() *string { + return s.CommodityCode +} + +func (s *ListHyperNodesShrinkRequest) GetHpnZone() *string { + return s.HpnZone +} + +func (s *ListHyperNodesShrinkRequest) GetHyperNodeId() *string { + return s.HyperNodeId +} + +func (s *ListHyperNodesShrinkRequest) GetHyperNodeIdsShrink() *string { + return s.HyperNodeIdsShrink +} + +func (s *ListHyperNodesShrinkRequest) GetMachineType() *string { + return s.MachineType +} + +func (s *ListHyperNodesShrinkRequest) GetMaxResults() *int32 { + return s.MaxResults +} + +func (s *ListHyperNodesShrinkRequest) GetNextToken() *string { + return s.NextToken +} + +func (s *ListHyperNodesShrinkRequest) GetNodeGroupName() *string { + return s.NodeGroupName +} + +func (s *ListHyperNodesShrinkRequest) GetOperatingStatesShrink() *string { + return s.OperatingStatesShrink +} + +func (s *ListHyperNodesShrinkRequest) GetResourceGroupId() *string { + return s.ResourceGroupId +} + +func (s *ListHyperNodesShrinkRequest) GetTags() []*ListHyperNodesShrinkRequestTags { + return s.Tags +} + +func (s *ListHyperNodesShrinkRequest) GetZoneId() *string { + return s.ZoneId +} + +func (s *ListHyperNodesShrinkRequest) SetClusterName(v string) *ListHyperNodesShrinkRequest { + s.ClusterName = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetCommodityCode(v string) *ListHyperNodesShrinkRequest { + s.CommodityCode = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetHpnZone(v string) *ListHyperNodesShrinkRequest { + s.HpnZone = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetHyperNodeId(v string) *ListHyperNodesShrinkRequest { + s.HyperNodeId = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetHyperNodeIdsShrink(v string) *ListHyperNodesShrinkRequest { + s.HyperNodeIdsShrink = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetMachineType(v string) *ListHyperNodesShrinkRequest { + s.MachineType = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetMaxResults(v int32) *ListHyperNodesShrinkRequest { + s.MaxResults = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetNextToken(v string) *ListHyperNodesShrinkRequest { + s.NextToken = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetNodeGroupName(v string) *ListHyperNodesShrinkRequest { + s.NodeGroupName = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetOperatingStatesShrink(v string) *ListHyperNodesShrinkRequest { + s.OperatingStatesShrink = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetResourceGroupId(v string) *ListHyperNodesShrinkRequest { + s.ResourceGroupId = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetTags(v []*ListHyperNodesShrinkRequestTags) *ListHyperNodesShrinkRequest { + s.Tags = v + return s +} + +func (s *ListHyperNodesShrinkRequest) SetZoneId(v string) *ListHyperNodesShrinkRequest { + s.ZoneId = &v + return s +} + +func (s *ListHyperNodesShrinkRequest) Validate() error { + if s.Tags != nil { + for _, item := range s.Tags { + if item != nil { + if err := item.Validate(); err != nil { + return err + } + } + } + } + return nil +} + +type ListHyperNodesShrinkRequestTags struct { + // example: + // + // alarm_xdc + Key *string `json:"Key,omitempty" xml:"Key,omitempty"` + // example: + // + // 129 + Value *string `json:"Value,omitempty" xml:"Value,omitempty"` +} + +func (s ListHyperNodesShrinkRequestTags) String() string { + return dara.Prettify(s) +} + +func (s ListHyperNodesShrinkRequestTags) GoString() string { + return s.String() +} + +func (s *ListHyperNodesShrinkRequestTags) GetKey() *string { + return s.Key +} + +func (s *ListHyperNodesShrinkRequestTags) GetValue() *string { + return s.Value +} + +func (s *ListHyperNodesShrinkRequestTags) SetKey(v string) *ListHyperNodesShrinkRequestTags { + s.Key = &v + return s +} + +func (s *ListHyperNodesShrinkRequestTags) SetValue(v string) *ListHyperNodesShrinkRequestTags { + s.Value = &v + return s +} + +func (s *ListHyperNodesShrinkRequestTags) Validate() error { + return dara.Validate(s) +} diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_tag_resources_response_body_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_tag_resources_response_body_model.go index 647ee1ceea..e48675bb9d 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_tag_resources_response_body_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/list_tag_resources_response_body_model.go @@ -29,8 +29,7 @@ type ListTagResourcesResponseBody struct { // example: // // 8F208B6D-4C42-5FD3-B6BE-E826E92A44DD - RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` - // The tags. + RequestId *string `json:"RequestId,omitempty" xml:"RequestId,omitempty"` TagResources *ListTagResourcesResponseBodyTagResources `json:"TagResources,omitempty" xml:"TagResources,omitempty" type:"Struct"` } @@ -113,35 +112,15 @@ func (s *ListTagResourcesResponseBodyTagResources) Validate() error { } type ListTagResourcesResponseBodyTagResourcesTagResource struct { - // The resource ID. - // - // example: - // - // i15azeddnvf7uhw2oij57o0 - ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` - // The resource type. - // - // Valid values: - // - // - Node - // - // - Cluster - // - // example: - // - // Cluster + ResourceId *string `json:"ResourceId,omitempty" xml:"ResourceId,omitempty"` ResourceType *string `json:"ResourceType,omitempty" xml:"ResourceType,omitempty"` - // The tag key. - // // example: // - // env + // TestKey TagKey *string `json:"TagKey,omitempty" xml:"TagKey,omitempty"` - // The tag value. - // // example: // - // dev + // TestValue TagValue *string `json:"TagValue,omitempty" xml:"TagValue,omitempty"` } diff --git a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/update_node_group_request_model.go b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/update_node_group_request_model.go index 407a4623e9..c7132a5d15 100644 --- a/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/update_node_group_request_model.go +++ b/vendor/github.com/alibabacloud-go/eflo-controller-20221215/v3/client/update_node_group_request_model.go @@ -21,6 +21,8 @@ type iUpdateNodeGroupRequest interface { GetNewNodeGroupName() *string SetNodeGroupId(v string) *UpdateNodeGroupRequest GetNodeGroupId() *string + SetRamRoleName(v string) *UpdateNodeGroupRequest + GetRamRoleName() *string SetUserData(v string) *UpdateNodeGroupRequest GetUserData() *string } @@ -62,6 +64,7 @@ type UpdateNodeGroupRequest struct { // // i120021051733814190732 NodeGroupId *string `json:"NodeGroupId,omitempty" xml:"NodeGroupId,omitempty"` + RamRoleName *string `json:"RamRoleName,omitempty" xml:"RamRoleName,omitempty"` // User-defined script // // example: @@ -106,6 +109,10 @@ func (s *UpdateNodeGroupRequest) GetNodeGroupId() *string { return s.NodeGroupId } +func (s *UpdateNodeGroupRequest) GetRamRoleName() *string { + return s.RamRoleName +} + func (s *UpdateNodeGroupRequest) GetUserData() *string { return s.UserData } @@ -140,6 +147,11 @@ func (s *UpdateNodeGroupRequest) SetNodeGroupId(v string) *UpdateNodeGroupReques return s } +func (s *UpdateNodeGroupRequest) SetRamRoleName(v string) *UpdateNodeGroupRequest { + s.RamRoleName = &v + return s +} + func (s *UpdateNodeGroupRequest) SetUserData(v string) *UpdateNodeGroupRequest { s.UserData = &v return s diff --git a/vendor/modules.txt b/vendor/modules.txt index 02e56baef9..3d8dc92538 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -4,7 +4,7 @@ github.com/alibabacloud-go/alibabacloud-gateway-spi/client # github.com/alibabacloud-go/darabonba-openapi v0.1.16 ## explicit; go 1.14 github.com/alibabacloud-go/darabonba-openapi/client -# github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.13 +# github.com/alibabacloud-go/darabonba-openapi/v2 v2.1.14 ## explicit; go 1.14 github.com/alibabacloud-go/darabonba-openapi/v2/client github.com/alibabacloud-go/darabonba-openapi/v2/models @@ -15,7 +15,7 @@ github.com/alibabacloud-go/debug/debug # github.com/alibabacloud-go/ecs-20140526/v7 v7.4.2 ## explicit; go 1.14 github.com/alibabacloud-go/ecs-20140526/v7/client -# github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.0 +# github.com/alibabacloud-go/eflo-controller-20221215/v3 v3.0.6 ## explicit; go 1.14 github.com/alibabacloud-go/eflo-controller-20221215/v3/client # github.com/alibabacloud-go/endpoint-util v1.1.0