From fcebef0c190f630dd2b50b35dc571fd82779851d Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 10 Apr 2023 06:38:50 +0000 Subject: [PATCH] Generated 2019-05-06 for sae. --- ChangeLog.txt | 4 ++++ services/sae/create_application.go | 1 + services/sae/restart_application.go | 7 ++++--- services/sae/struct_application.go | 3 ++- 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 7af9ed9c05..17f38ce472 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-04-10 Version: v1.62.275 +- Generated 2019-05-06 for `sae`. +- Support Restartapplication AutoEnableApplicationScalingRule. + 2023-04-10 Version: v1.62.274 - Generated 2019-09-01 for `OceanBasePro`. - Update SDK. diff --git a/services/sae/create_application.go b/services/sae/create_application.go index db87b42c1d..71d5dd2a9e 100644 --- a/services/sae/create_application.go +++ b/services/sae/create_application.go @@ -95,6 +95,7 @@ type CreateApplicationRequest struct { Python string `position:"Query" name:"Python"` Cpu requests.Integer `position:"Query" name:"Cpu"` VSwitchId string `position:"Query" name:"VSwitchId"` + EnableEbpf string `position:"Query" name:"EnableEbpf"` PackageType string `position:"Query" name:"PackageType"` PostStart string `position:"Query" name:"PostStart"` PhpExtensions string `position:"Body" name:"PhpExtensions"` diff --git a/services/sae/restart_application.go b/services/sae/restart_application.go index fdc571fbc7..cd5362f249 100644 --- a/services/sae/restart_application.go +++ b/services/sae/restart_application.go @@ -71,9 +71,10 @@ func (client *Client) RestartApplicationWithCallback(request *RestartApplication // RestartApplicationRequest is the request struct for api RestartApplication type RestartApplicationRequest struct { *requests.RoaRequest - MinReadyInstances requests.Integer `position:"Query" name:"MinReadyInstances"` - AppId string `position:"Query" name:"AppId"` - MinReadyInstanceRatio requests.Integer `position:"Query" name:"MinReadyInstanceRatio"` + MinReadyInstances requests.Integer `position:"Query" name:"MinReadyInstances"` + AppId string `position:"Query" name:"AppId"` + MinReadyInstanceRatio requests.Integer `position:"Query" name:"MinReadyInstanceRatio"` + AutoEnableApplicationScalingRule requests.Boolean `position:"Query" name:"AutoEnableApplicationScalingRule"` } // RestartApplicationResponse is the response struct for api RestartApplication diff --git a/services/sae/struct_application.go b/services/sae/struct_application.go index 6709049dcc..8c46446099 100644 --- a/services/sae/struct_application.go +++ b/services/sae/struct_application.go @@ -18,6 +18,7 @@ package sae // Application is a nested struct in sae response type Application struct { LastStartTime int64 `json:"LastStartTime" xml:"LastStartTime"` + Message string `json:"Message" xml:"Message"` ScaleRuleEnabled bool `json:"ScaleRuleEnabled" xml:"ScaleRuleEnabled"` Instances int `json:"Instances" xml:"Instances"` Failed int64 `json:"Failed" xml:"Failed"` @@ -34,8 +35,8 @@ type Application struct { NamespaceId string `json:"NamespaceId" xml:"NamespaceId"` CompletionTime int64 `json:"CompletionTime" xml:"CompletionTime"` Suspend bool `json:"Suspend" xml:"Suspend"` - Active int64 `json:"Active" xml:"Active"` Cpu int `json:"Cpu" xml:"Cpu"` + Active int64 `json:"Active" xml:"Active"` AppName string `json:"AppName" xml:"AppName"` Succeeded int64 `json:"Succeeded" xml:"Succeeded"` Tags []TagsItem `json:"Tags" xml:"Tags"`