From b6d79282bdff20cb59d47cdafc24198f68b6fd1b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 23 Oct 2024 09:57:10 +0000 Subject: [PATCH] Generated 2024-04-15 for Gwlb. --- ChangeLog.txt | 4 +++ services/gwlb/add_servers_to_server_group.go | 2 +- services/gwlb/client.go | 25 +++++++++++++++++++ services/gwlb/create_listener.go | 2 +- services/gwlb/create_load_balancer.go | 2 +- services/gwlb/create_server_group.go | 2 +- services/gwlb/delete_listener.go | 2 +- services/gwlb/delete_load_balancer.go | 2 +- services/gwlb/delete_server_group.go | 2 +- services/gwlb/describe_regions.go | 2 +- services/gwlb/describe_zones.go | 2 +- services/gwlb/endpoint.go | 20 +++++++++++++++ services/gwlb/get_listener_attribute.go | 2 +- services/gwlb/get_listener_health_status.go | 2 +- services/gwlb/get_load_balancer_attribute.go | 2 +- services/gwlb/list_listeners.go | 2 +- services/gwlb/list_load_balancers.go | 2 +- services/gwlb/list_server_group_servers.go | 2 +- services/gwlb/list_server_groups.go | 2 +- services/gwlb/list_tag_resources.go | 2 +- services/gwlb/move_resource_group.go | 2 +- .../gwlb/remove_servers_from_server_group.go | 2 +- services/gwlb/tag_resources.go | 2 +- services/gwlb/untag_resources.go | 2 +- services/gwlb/update_listener_attribute.go | 2 +- .../gwlb/update_load_balancer_attribute.go | 2 +- services/gwlb/update_load_balancer_zones.go | 2 +- .../gwlb/update_server_group_attribute.go | 2 +- 28 files changed, 74 insertions(+), 25 deletions(-) create mode 100644 services/gwlb/endpoint.go diff --git a/ChangeLog.txt b/ChangeLog.txt index c66b9d656..e7fd8fa6f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-10-23 Version: v1.63.36 +- Generated 2024-04-15 for `Gwlb`. +- Update Endpoint. + 2024-10-23 Version: v1.63.35 - Generated 2019-08-15 for `Ims`. ListUsers,ListUserBasicInfos api新增支持status字段 diff --git a/services/gwlb/add_servers_to_server_group.go b/services/gwlb/add_servers_to_server_group.go index 0dd0f993e..1fe5ae494 100644 --- a/services/gwlb/add_servers_to_server_group.go +++ b/services/gwlb/add_servers_to_server_group.go @@ -96,7 +96,7 @@ func CreateAddServersToServerGroupRequest() (request *AddServersToServerGroupReq request = &AddServersToServerGroupRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "AddServersToServerGroup", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "AddServersToServerGroup", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/client.go b/services/gwlb/client.go index 59bbf2d5f..078588e7a 100644 --- a/services/gwlb/client.go +++ b/services/gwlb/client.go @@ -16,6 +16,8 @@ package gwlb // Changes may cause incorrect behavior and will be lost if the code is regenerated. import ( + "reflect" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth" "github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth/credentials/provider" @@ -26,10 +28,25 @@ type Client struct { sdk.Client } +// SetClientProperty Set Property by Reflect +func SetClientProperty(client *Client, propertyName string, propertyValue interface{}) { + v := reflect.ValueOf(client).Elem() + if v.FieldByName(propertyName).IsValid() && v.FieldByName(propertyName).CanSet() { + v.FieldByName(propertyName).Set(reflect.ValueOf(propertyValue)) + } +} + +// SetEndpointDataToClient Set EndpointMap and ENdpointType +func SetEndpointDataToClient(client *Client) { + SetClientProperty(client, "EndpointMap", GetEndpointMap()) + SetClientProperty(client, "EndpointType", GetEndpointType()) +} + // NewClient creates a sdk client with environment variables func NewClient() (client *Client, err error) { client = &Client{} err = client.Init() + SetEndpointDataToClient(client) return } @@ -44,6 +61,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli pc = provider.NewProviderChain(providers) } err = client.InitWithProviderChain(regionId, pc) + SetEndpointDataToClient(client) return } @@ -52,6 +70,7 @@ func NewClientWithProvider(regionId string, providers ...provider.Provider) (cli func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.Credential) (client *Client, err error) { client = &Client{} err = client.InitWithOptions(regionId, config, credential) + SetEndpointDataToClient(client) return } @@ -60,6 +79,7 @@ func NewClientWithOptions(regionId string, config *sdk.Config, credential auth.C func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (client *Client, err error) { client = &Client{} err = client.InitWithAccessKey(regionId, accessKeyId, accessKeySecret) + SetEndpointDataToClient(client) return } @@ -68,6 +88,7 @@ func NewClientWithAccessKey(regionId, accessKeyId, accessKeySecret string) (clie func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken string) (client *Client, err error) { client = &Client{} err = client.InitWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToken) + SetEndpointDataToClient(client) return } @@ -76,6 +97,7 @@ func NewClientWithStsToken(regionId, stsAccessKeyId, stsAccessKeySecret, stsToke func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName string) (client *Client, err error) { client = &Client{} err = client.InitWithRamRoleArn(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName) + SetEndpointDataToClient(client) return } @@ -84,6 +106,7 @@ func NewClientWithRamRoleArn(regionId string, accessKeyId, accessKeySecret, role func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy string) (client *Client, err error) { client = &Client{} err = client.InitWithRamRoleArnAndPolicy(regionId, accessKeyId, accessKeySecret, roleArn, roleSessionName, policy) + SetEndpointDataToClient(client) return } @@ -92,6 +115,7 @@ func NewClientWithRamRoleArnAndPolicy(regionId string, accessKeyId, accessKeySec func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, err error) { client = &Client{} err = client.InitWithEcsRamRole(regionId, roleName) + SetEndpointDataToClient(client) return } @@ -100,5 +124,6 @@ func NewClientWithEcsRamRole(regionId string, roleName string) (client *Client, func NewClientWithRsaKeyPair(regionId string, publicKeyId, privateKey string, sessionExpiration int) (client *Client, err error) { client = &Client{} err = client.InitWithRsaKeyPair(regionId, publicKeyId, privateKey, sessionExpiration) + SetEndpointDataToClient(client) return } diff --git a/services/gwlb/create_listener.go b/services/gwlb/create_listener.go index e05da0bbb..2d7fcffd4 100644 --- a/services/gwlb/create_listener.go +++ b/services/gwlb/create_listener.go @@ -97,7 +97,7 @@ func CreateCreateListenerRequest() (request *CreateListenerRequest) { request = &CreateListenerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateListener", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateListener", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/create_load_balancer.go b/services/gwlb/create_load_balancer.go index e11f24242..6660aaee5 100644 --- a/services/gwlb/create_load_balancer.go +++ b/services/gwlb/create_load_balancer.go @@ -106,7 +106,7 @@ func CreateCreateLoadBalancerRequest() (request *CreateLoadBalancerRequest) { request = &CreateLoadBalancerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateLoadBalancer", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateLoadBalancer", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/create_server_group.go b/services/gwlb/create_server_group.go index 4a19e1626..2e73141e0 100644 --- a/services/gwlb/create_server_group.go +++ b/services/gwlb/create_server_group.go @@ -122,7 +122,7 @@ func CreateCreateServerGroupRequest() (request *CreateServerGroupRequest) { request = &CreateServerGroupRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateServerGroup", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "CreateServerGroup", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/delete_listener.go b/services/gwlb/delete_listener.go index cf62721cc..a235ab255 100644 --- a/services/gwlb/delete_listener.go +++ b/services/gwlb/delete_listener.go @@ -87,7 +87,7 @@ func CreateDeleteListenerRequest() (request *DeleteListenerRequest) { request = &DeleteListenerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteListener", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteListener", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/delete_load_balancer.go b/services/gwlb/delete_load_balancer.go index ca5fd0a2e..fedfc7544 100644 --- a/services/gwlb/delete_load_balancer.go +++ b/services/gwlb/delete_load_balancer.go @@ -87,7 +87,7 @@ func CreateDeleteLoadBalancerRequest() (request *DeleteLoadBalancerRequest) { request = &DeleteLoadBalancerRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteLoadBalancer", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteLoadBalancer", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/delete_server_group.go b/services/gwlb/delete_server_group.go index b300f19f6..517df18d9 100644 --- a/services/gwlb/delete_server_group.go +++ b/services/gwlb/delete_server_group.go @@ -87,7 +87,7 @@ func CreateDeleteServerGroupRequest() (request *DeleteServerGroupRequest) { request = &DeleteServerGroupRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteServerGroup", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "DeleteServerGroup", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/describe_regions.go b/services/gwlb/describe_regions.go index 1974f3e27..467056cb5 100644 --- a/services/gwlb/describe_regions.go +++ b/services/gwlb/describe_regions.go @@ -86,7 +86,7 @@ func CreateDescribeRegionsRequest() (request *DescribeRegionsRequest) { request = &DescribeRegionsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "DescribeRegions", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "DescribeRegions", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/describe_zones.go b/services/gwlb/describe_zones.go index 1038f608c..a6de57959 100644 --- a/services/gwlb/describe_zones.go +++ b/services/gwlb/describe_zones.go @@ -86,7 +86,7 @@ func CreateDescribeZonesRequest() (request *DescribeZonesRequest) { request = &DescribeZonesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "DescribeZones", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "DescribeZones", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/endpoint.go b/services/gwlb/endpoint.go new file mode 100644 index 000000000..8877e2895 --- /dev/null +++ b/services/gwlb/endpoint.go @@ -0,0 +1,20 @@ +package gwlb + +// EndpointMap Endpoint Data +var EndpointMap map[string]string + +// EndpointType regional or central +var EndpointType = "regional" + +// GetEndpointMap Get Endpoint Data Map +func GetEndpointMap() map[string]string { + if EndpointMap == nil { + EndpointMap = map[string]string{} + } + return EndpointMap +} + +// GetEndpointType Get Endpoint Type Value +func GetEndpointType() string { + return EndpointType +} diff --git a/services/gwlb/get_listener_attribute.go b/services/gwlb/get_listener_attribute.go index 865d245b5..554607961 100644 --- a/services/gwlb/get_listener_attribute.go +++ b/services/gwlb/get_listener_attribute.go @@ -92,7 +92,7 @@ func CreateGetListenerAttributeRequest() (request *GetListenerAttributeRequest) request = &GetListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "GetListenerAttribute", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "GetListenerAttribute", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/get_listener_health_status.go b/services/gwlb/get_listener_health_status.go index 3af7221c6..143df2434 100644 --- a/services/gwlb/get_listener_health_status.go +++ b/services/gwlb/get_listener_health_status.go @@ -99,7 +99,7 @@ func CreateGetListenerHealthStatusRequest() (request *GetListenerHealthStatusReq request = &GetListenerHealthStatusRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "GetListenerHealthStatus", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "GetListenerHealthStatus", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/get_load_balancer_attribute.go b/services/gwlb/get_load_balancer_attribute.go index 63d3ee02c..21bcc6a9c 100644 --- a/services/gwlb/get_load_balancer_attribute.go +++ b/services/gwlb/get_load_balancer_attribute.go @@ -96,7 +96,7 @@ func CreateGetLoadBalancerAttributeRequest() (request *GetLoadBalancerAttributeR request = &GetLoadBalancerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "GetLoadBalancerAttribute", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "GetLoadBalancerAttribute", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/list_listeners.go b/services/gwlb/list_listeners.go index e564d570b..5ec9c7b80 100644 --- a/services/gwlb/list_listeners.go +++ b/services/gwlb/list_listeners.go @@ -100,7 +100,7 @@ func CreateListListenersRequest() (request *ListListenersRequest) { request = &ListListenersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "ListListeners", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "ListListeners", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/list_load_balancers.go b/services/gwlb/list_load_balancers.go index c6fbe9981..583b991ea 100644 --- a/services/gwlb/list_load_balancers.go +++ b/services/gwlb/list_load_balancers.go @@ -106,7 +106,7 @@ func CreateListLoadBalancersRequest() (request *ListLoadBalancersRequest) { request = &ListLoadBalancersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "ListLoadBalancers", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "ListLoadBalancers", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/list_server_group_servers.go b/services/gwlb/list_server_group_servers.go index 6b58539cd..87ced2964 100644 --- a/services/gwlb/list_server_group_servers.go +++ b/services/gwlb/list_server_group_servers.go @@ -94,7 +94,7 @@ func CreateListServerGroupServersRequest() (request *ListServerGroupServersReque request = &ListServerGroupServersRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "ListServerGroupServers", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "ListServerGroupServers", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/list_server_groups.go b/services/gwlb/list_server_groups.go index 458d32156..455a6f9f4 100644 --- a/services/gwlb/list_server_groups.go +++ b/services/gwlb/list_server_groups.go @@ -103,7 +103,7 @@ func CreateListServerGroupsRequest() (request *ListServerGroupsRequest) { request = &ListServerGroupsRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "ListServerGroups", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "ListServerGroups", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/list_tag_resources.go b/services/gwlb/list_tag_resources.go index 95c9592a6..4cfd84319 100644 --- a/services/gwlb/list_tag_resources.go +++ b/services/gwlb/list_tag_resources.go @@ -97,7 +97,7 @@ func CreateListTagResourcesRequest() (request *ListTagResourcesRequest) { request = &ListTagResourcesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "ListTagResources", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "ListTagResources", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/move_resource_group.go b/services/gwlb/move_resource_group.go index 3a4729144..fef5d633d 100644 --- a/services/gwlb/move_resource_group.go +++ b/services/gwlb/move_resource_group.go @@ -89,7 +89,7 @@ func CreateMoveResourceGroupRequest() (request *MoveResourceGroupRequest) { request = &MoveResourceGroupRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "MoveResourceGroup", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "MoveResourceGroup", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/remove_servers_from_server_group.go b/services/gwlb/remove_servers_from_server_group.go index d0cb13b7b..1b8926f4c 100644 --- a/services/gwlb/remove_servers_from_server_group.go +++ b/services/gwlb/remove_servers_from_server_group.go @@ -96,7 +96,7 @@ func CreateRemoveServersFromServerGroupRequest() (request *RemoveServersFromServ request = &RemoveServersFromServerGroupRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "RemoveServersFromServerGroup", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "RemoveServersFromServerGroup", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/tag_resources.go b/services/gwlb/tag_resources.go index 2a097544b..a80082d72 100644 --- a/services/gwlb/tag_resources.go +++ b/services/gwlb/tag_resources.go @@ -95,7 +95,7 @@ func CreateTagResourcesRequest() (request *TagResourcesRequest) { request = &TagResourcesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "TagResources", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "TagResources", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/untag_resources.go b/services/gwlb/untag_resources.go index 98c2a9699..2559a9f8e 100644 --- a/services/gwlb/untag_resources.go +++ b/services/gwlb/untag_resources.go @@ -90,7 +90,7 @@ func CreateUntagResourcesRequest() (request *UntagResourcesRequest) { request = &UntagResourcesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "UntagResources", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "UntagResources", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/update_listener_attribute.go b/services/gwlb/update_listener_attribute.go index 295aa5b32..75e88eff8 100644 --- a/services/gwlb/update_listener_attribute.go +++ b/services/gwlb/update_listener_attribute.go @@ -89,7 +89,7 @@ func CreateUpdateListenerAttributeRequest() (request *UpdateListenerAttributeReq request = &UpdateListenerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateListenerAttribute", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateListenerAttribute", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/update_load_balancer_attribute.go b/services/gwlb/update_load_balancer_attribute.go index 2046790b4..a4b0114cb 100644 --- a/services/gwlb/update_load_balancer_attribute.go +++ b/services/gwlb/update_load_balancer_attribute.go @@ -89,7 +89,7 @@ func CreateUpdateLoadBalancerAttributeRequest() (request *UpdateLoadBalancerAttr request = &UpdateLoadBalancerAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateLoadBalancerAttribute", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateLoadBalancerAttribute", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/update_load_balancer_zones.go b/services/gwlb/update_load_balancer_zones.go index 29a15dde3..f821f719a 100644 --- a/services/gwlb/update_load_balancer_zones.go +++ b/services/gwlb/update_load_balancer_zones.go @@ -94,7 +94,7 @@ func CreateUpdateLoadBalancerZonesRequest() (request *UpdateLoadBalancerZonesReq request = &UpdateLoadBalancerZonesRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateLoadBalancerZones", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateLoadBalancerZones", "gwlb", "openAPI") request.Method = requests.POST return } diff --git a/services/gwlb/update_server_group_attribute.go b/services/gwlb/update_server_group_attribute.go index 5c31dbab5..05796c7a4 100644 --- a/services/gwlb/update_server_group_attribute.go +++ b/services/gwlb/update_server_group_attribute.go @@ -111,7 +111,7 @@ func CreateUpdateServerGroupAttributeRequest() (request *UpdateServerGroupAttrib request = &UpdateServerGroupAttributeRequest{ RpcRequest: &requests.RpcRequest{}, } - request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateServerGroupAttribute", "", "") + request.InitWithApiInfo("Gwlb", "2024-04-15", "UpdateServerGroupAttribute", "gwlb", "openAPI") request.Method = requests.POST return }