From 2cfdbf8711df34d291efcf49bbd93c02bc80e5d5 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 8 Feb 2023 03:41:48 +0000 Subject: [PATCH] Generated 2019-05-06 for sae. --- ChangeLog.txt | 4 + .../sae/create_application_scaling_rule.go | 4 + services/sae/create_grey_tag_route.go | 1 + services/sae/create_namespace.go | 1 + .../sae/delete_application_scaling_rule.go | 4 + services/sae/delete_namespace.go | 3 +- services/sae/deploy_application.go | 1 + .../sae/describe_application_scaling_rule.go | 4 + .../sae/describe_application_scaling_rules.go | 4 + services/sae/describe_namespace.go | 3 +- services/sae/describe_namespace_resources.go | 3 +- .../sae/disable_application_scaling_rule.go | 4 + .../sae/enable_application_scaling_rule.go | 4 + services/sae/get_arms_top_n_metric.go | 106 +++++++++++ services/sae/get_availability_metric.go | 103 +++++++++++ services/sae/get_change_order_metric.go | 105 +++++++++++ services/sae/get_scale_app_metric.go | 103 +++++++++++ services/sae/get_warning_event_metric.go | 105 +++++++++++ services/sae/struct_alb_rule.go | 24 +++ .../struct_alb_rule_in_list_grey_tag_route.go | 25 +++ ...ct_alb_rules_in_describe_grey_tag_route.go | 21 +++ ...struct_alb_rules_in_list_grey_tag_route.go | 21 +++ services/sae/struct_arms_metric_dto.go | 26 +++ .../sae/struct_availability_metric_dto.go | 27 +++ .../sae/struct_change_order_metric_dto.go | 26 +++ services/sae/struct_data.go | 165 +++++++++--------- .../struct_data_in_get_arms_top_n_metric.go | 21 +++ .../struct_data_in_get_availability_metric.go | 21 +++ .../struct_data_in_get_change_order_metric.go | 21 +++ .../struct_data_in_get_scale_app_metric.go | 21 +++ ...struct_data_in_get_warning_event_metric.go | 21 +++ services/sae/struct_event_metric_dto.go | 24 +++ services/sae/struct_namespace.go | 1 + services/sae/struct_region_list.go | 1 + services/sae/struct_result_item.go | 15 +- services/sae/struct_scale_app_metric_dto.go | 25 +++ services/sae/struct_scrulesitem.go | 6 +- services/sae/struct_svc.go | 25 +++ services/sae/struct_svcs.go | 21 +++ .../sae/update_application_scaling_rule.go | 4 + services/sae/update_grey_tag_route.go | 1 + services/sae/update_namespace.go | 1 + services/sae/update_namespace_vpc.go | 5 +- 43 files changed, 1035 insertions(+), 96 deletions(-) create mode 100644 services/sae/get_arms_top_n_metric.go create mode 100644 services/sae/get_availability_metric.go create mode 100644 services/sae/get_change_order_metric.go create mode 100644 services/sae/get_scale_app_metric.go create mode 100644 services/sae/get_warning_event_metric.go create mode 100644 services/sae/struct_alb_rule.go create mode 100644 services/sae/struct_alb_rule_in_list_grey_tag_route.go create mode 100644 services/sae/struct_alb_rules_in_describe_grey_tag_route.go create mode 100644 services/sae/struct_alb_rules_in_list_grey_tag_route.go create mode 100644 services/sae/struct_arms_metric_dto.go create mode 100644 services/sae/struct_availability_metric_dto.go create mode 100644 services/sae/struct_change_order_metric_dto.go create mode 100644 services/sae/struct_data_in_get_arms_top_n_metric.go create mode 100644 services/sae/struct_data_in_get_availability_metric.go create mode 100644 services/sae/struct_data_in_get_change_order_metric.go create mode 100644 services/sae/struct_data_in_get_scale_app_metric.go create mode 100644 services/sae/struct_data_in_get_warning_event_metric.go create mode 100644 services/sae/struct_event_metric_dto.go create mode 100644 services/sae/struct_scale_app_metric_dto.go create mode 100644 services/sae/struct_svc.go create mode 100644 services/sae/struct_svcs.go diff --git a/ChangeLog.txt b/ChangeLog.txt index 7f28f069ca..8e3392ecdf 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2023-02-08 Version: v1.62.156 +- Generated 2019-05-06 for `sae`. +- Add metric api. + 2023-02-07 Version: v1.62.155 - Generated 2017-12-14 for `BssOpenApi`. - Add other language. diff --git a/services/sae/create_application_scaling_rule.go b/services/sae/create_application_scaling_rule.go index f7c9012d12..808806b980 100644 --- a/services/sae/create_application_scaling_rule.go +++ b/services/sae/create_application_scaling_rule.go @@ -86,6 +86,10 @@ type CreateApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` Data Data `json:"Data" xml:"Data"` } diff --git a/services/sae/create_grey_tag_route.go b/services/sae/create_grey_tag_route.go index f3c4472969..5723a5a347 100644 --- a/services/sae/create_grey_tag_route.go +++ b/services/sae/create_grey_tag_route.go @@ -75,6 +75,7 @@ type CreateGreyTagRouteRequest struct { Name string `position:"Query" name:"Name"` Description string `position:"Query" name:"Description"` DubboRules string `position:"Query" name:"DubboRules"` + AlbRules string `position:"Query" name:"AlbRules"` ScRules string `position:"Query" name:"ScRules"` } diff --git a/services/sae/create_namespace.go b/services/sae/create_namespace.go index 02f99b1ab7..055b74a657 100644 --- a/services/sae/create_namespace.go +++ b/services/sae/create_namespace.go @@ -74,6 +74,7 @@ type CreateNamespaceRequest struct { NamespaceName string `position:"Query" name:"NamespaceName"` NamespaceDescription string `position:"Query" name:"NamespaceDescription"` NamespaceId string `position:"Query" name:"NamespaceId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // CreateNamespaceResponse is the response struct for api CreateNamespace diff --git a/services/sae/delete_application_scaling_rule.go b/services/sae/delete_application_scaling_rule.go index bda30ce6df..c67f7ffb8c 100644 --- a/services/sae/delete_application_scaling_rule.go +++ b/services/sae/delete_application_scaling_rule.go @@ -80,6 +80,10 @@ type DeleteApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` } // CreateDeleteApplicationScalingRuleRequest creates a request to invoke DeleteApplicationScalingRule API diff --git a/services/sae/delete_namespace.go b/services/sae/delete_namespace.go index 67e61109b9..1233440431 100644 --- a/services/sae/delete_namespace.go +++ b/services/sae/delete_namespace.go @@ -71,7 +71,8 @@ func (client *Client) DeleteNamespaceWithCallback(request *DeleteNamespaceReques // DeleteNamespaceRequest is the request struct for api DeleteNamespace type DeleteNamespaceRequest struct { *requests.RoaRequest - NamespaceId string `position:"Query" name:"NamespaceId"` + NamespaceId string `position:"Query" name:"NamespaceId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // DeleteNamespaceResponse is the response struct for api DeleteNamespace diff --git a/services/sae/deploy_application.go b/services/sae/deploy_application.go index 40551959cd..7bd8949ffa 100644 --- a/services/sae/deploy_application.go +++ b/services/sae/deploy_application.go @@ -93,6 +93,7 @@ type DeployApplicationRequest struct { ChangeOrderDesc string `position:"Query" name:"ChangeOrderDesc"` MinReadyInstanceRatio requests.Integer `position:"Query" name:"MinReadyInstanceRatio"` AutoEnableApplicationScalingRule requests.Boolean `position:"Query" name:"AutoEnableApplicationScalingRule"` + PackageType string `position:"Query" name:"PackageType"` PostStart string `position:"Query" name:"PostStart"` PhpExtensions string `position:"Body" name:"PhpExtensions"` AssociateEip requests.Boolean `position:"Body" name:"AssociateEip"` diff --git a/services/sae/describe_application_scaling_rule.go b/services/sae/describe_application_scaling_rule.go index 97683bf042..82392384e2 100644 --- a/services/sae/describe_application_scaling_rule.go +++ b/services/sae/describe_application_scaling_rule.go @@ -80,6 +80,10 @@ type DescribeApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` Data Data `json:"Data" xml:"Data"` } diff --git a/services/sae/describe_application_scaling_rules.go b/services/sae/describe_application_scaling_rules.go index 0dd6c6931d..e0797f93ce 100644 --- a/services/sae/describe_application_scaling_rules.go +++ b/services/sae/describe_application_scaling_rules.go @@ -79,6 +79,10 @@ type DescribeApplicationScalingRulesResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` Data Data `json:"Data" xml:"Data"` } diff --git a/services/sae/describe_namespace.go b/services/sae/describe_namespace.go index ff7fb82c7d..9e41e03786 100644 --- a/services/sae/describe_namespace.go +++ b/services/sae/describe_namespace.go @@ -71,7 +71,8 @@ func (client *Client) DescribeNamespaceWithCallback(request *DescribeNamespaceRe // DescribeNamespaceRequest is the request struct for api DescribeNamespace type DescribeNamespaceRequest struct { *requests.RoaRequest - NamespaceId string `position:"Query" name:"NamespaceId"` + NamespaceId string `position:"Query" name:"NamespaceId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // DescribeNamespaceResponse is the response struct for api DescribeNamespace diff --git a/services/sae/describe_namespace_resources.go b/services/sae/describe_namespace_resources.go index 8a02a734bf..0c606f1e40 100644 --- a/services/sae/describe_namespace_resources.go +++ b/services/sae/describe_namespace_resources.go @@ -71,7 +71,8 @@ func (client *Client) DescribeNamespaceResourcesWithCallback(request *DescribeNa // DescribeNamespaceResourcesRequest is the request struct for api DescribeNamespaceResources type DescribeNamespaceResourcesRequest struct { *requests.RoaRequest - NamespaceId string `position:"Query" name:"NamespaceId"` + NamespaceId string `position:"Query" name:"NamespaceId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // DescribeNamespaceResourcesResponse is the response struct for api DescribeNamespaceResources diff --git a/services/sae/disable_application_scaling_rule.go b/services/sae/disable_application_scaling_rule.go index 1c2ee2a9e5..9ecf51aa1b 100644 --- a/services/sae/disable_application_scaling_rule.go +++ b/services/sae/disable_application_scaling_rule.go @@ -80,6 +80,10 @@ type DisableApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` } // CreateDisableApplicationScalingRuleRequest creates a request to invoke DisableApplicationScalingRule API diff --git a/services/sae/enable_application_scaling_rule.go b/services/sae/enable_application_scaling_rule.go index 522fae1993..1d36b68b11 100644 --- a/services/sae/enable_application_scaling_rule.go +++ b/services/sae/enable_application_scaling_rule.go @@ -80,6 +80,10 @@ type EnableApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` } // CreateEnableApplicationScalingRuleRequest creates a request to invoke EnableApplicationScalingRule API diff --git a/services/sae/get_arms_top_n_metric.go b/services/sae/get_arms_top_n_metric.go new file mode 100644 index 0000000000..46fd7f2c2d --- /dev/null +++ b/services/sae/get_arms_top_n_metric.go @@ -0,0 +1,106 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetArmsTopNMetric invokes the sae.GetArmsTopNMetric API synchronously +func (client *Client) GetArmsTopNMetric(request *GetArmsTopNMetricRequest) (response *GetArmsTopNMetricResponse, err error) { + response = CreateGetArmsTopNMetricResponse() + err = client.DoAction(request, response) + return +} + +// GetArmsTopNMetricWithChan invokes the sae.GetArmsTopNMetric API asynchronously +func (client *Client) GetArmsTopNMetricWithChan(request *GetArmsTopNMetricRequest) (<-chan *GetArmsTopNMetricResponse, <-chan error) { + responseChan := make(chan *GetArmsTopNMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetArmsTopNMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetArmsTopNMetricWithCallback invokes the sae.GetArmsTopNMetric API asynchronously +func (client *Client) GetArmsTopNMetricWithCallback(request *GetArmsTopNMetricRequest, callback func(response *GetArmsTopNMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetArmsTopNMetricResponse + var err error + defer close(result) + response, err = client.GetArmsTopNMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetArmsTopNMetricRequest is the request struct for api GetArmsTopNMetric +type GetArmsTopNMetricRequest struct { + *requests.RoaRequest + Limit requests.Integer `position:"Path" name:"Limit"` + OrderBy string `position:"Path" name:"OrderBy"` + EndTime requests.Integer `position:"Path" name:"EndTime"` + StartTime requests.Integer `position:"Path" name:"StartTime"` +} + +// GetArmsTopNMetricResponse is the response struct for api GetArmsTopNMetric +type GetArmsTopNMetricResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []ArmsMetricDto `json:"Data" xml:"Data"` +} + +// CreateGetArmsTopNMetricRequest creates a request to invoke GetArmsTopNMetric API +func CreateGetArmsTopNMetricRequest() (request *GetArmsTopNMetricRequest) { + request = &GetArmsTopNMetricRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("sae", "2019-05-06", "GetArmsTopNMetric", "/pop/v1/sam/getArmsTopNMetric", "serverless", "openAPI") + request.Method = requests.GET + return +} + +// CreateGetArmsTopNMetricResponse creates a response to parse from GetArmsTopNMetric response +func CreateGetArmsTopNMetricResponse() (response *GetArmsTopNMetricResponse) { + response = &GetArmsTopNMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/sae/get_availability_metric.go b/services/sae/get_availability_metric.go new file mode 100644 index 0000000000..9d3b687841 --- /dev/null +++ b/services/sae/get_availability_metric.go @@ -0,0 +1,103 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetAvailabilityMetric invokes the sae.GetAvailabilityMetric API synchronously +func (client *Client) GetAvailabilityMetric(request *GetAvailabilityMetricRequest) (response *GetAvailabilityMetricResponse, err error) { + response = CreateGetAvailabilityMetricResponse() + err = client.DoAction(request, response) + return +} + +// GetAvailabilityMetricWithChan invokes the sae.GetAvailabilityMetric API asynchronously +func (client *Client) GetAvailabilityMetricWithChan(request *GetAvailabilityMetricRequest) (<-chan *GetAvailabilityMetricResponse, <-chan error) { + responseChan := make(chan *GetAvailabilityMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetAvailabilityMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetAvailabilityMetricWithCallback invokes the sae.GetAvailabilityMetric API asynchronously +func (client *Client) GetAvailabilityMetricWithCallback(request *GetAvailabilityMetricRequest, callback func(response *GetAvailabilityMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetAvailabilityMetricResponse + var err error + defer close(result) + response, err = client.GetAvailabilityMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetAvailabilityMetricRequest is the request struct for api GetAvailabilityMetric +type GetAvailabilityMetricRequest struct { + *requests.RoaRequest + Limit requests.Integer `position:"Path" name:"Limit"` +} + +// GetAvailabilityMetricResponse is the response struct for api GetAvailabilityMetric +type GetAvailabilityMetricResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []AvailabilityMetricDto `json:"Data" xml:"Data"` +} + +// CreateGetAvailabilityMetricRequest creates a request to invoke GetAvailabilityMetric API +func CreateGetAvailabilityMetricRequest() (request *GetAvailabilityMetricRequest) { + request = &GetAvailabilityMetricRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("sae", "2019-05-06", "GetAvailabilityMetric", "/pop/v1/sam/getAvailabilityMetric", "serverless", "openAPI") + request.Method = requests.GET + return +} + +// CreateGetAvailabilityMetricResponse creates a response to parse from GetAvailabilityMetric response +func CreateGetAvailabilityMetricResponse() (response *GetAvailabilityMetricResponse) { + response = &GetAvailabilityMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/sae/get_change_order_metric.go b/services/sae/get_change_order_metric.go new file mode 100644 index 0000000000..217cc67cea --- /dev/null +++ b/services/sae/get_change_order_metric.go @@ -0,0 +1,105 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetChangeOrderMetric invokes the sae.GetChangeOrderMetric API synchronously +func (client *Client) GetChangeOrderMetric(request *GetChangeOrderMetricRequest) (response *GetChangeOrderMetricResponse, err error) { + response = CreateGetChangeOrderMetricResponse() + err = client.DoAction(request, response) + return +} + +// GetChangeOrderMetricWithChan invokes the sae.GetChangeOrderMetric API asynchronously +func (client *Client) GetChangeOrderMetricWithChan(request *GetChangeOrderMetricRequest) (<-chan *GetChangeOrderMetricResponse, <-chan error) { + responseChan := make(chan *GetChangeOrderMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetChangeOrderMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetChangeOrderMetricWithCallback invokes the sae.GetChangeOrderMetric API asynchronously +func (client *Client) GetChangeOrderMetricWithCallback(request *GetChangeOrderMetricRequest, callback func(response *GetChangeOrderMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetChangeOrderMetricResponse + var err error + defer close(result) + response, err = client.GetChangeOrderMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetChangeOrderMetricRequest is the request struct for api GetChangeOrderMetric +type GetChangeOrderMetricRequest struct { + *requests.RoaRequest + CreateTime string `position:"Path" name:"CreateTime"` + Limit requests.Integer `position:"Path" name:"Limit"` + OrderBy string `position:"Path" name:"OrderBy"` +} + +// GetChangeOrderMetricResponse is the response struct for api GetChangeOrderMetric +type GetChangeOrderMetricResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []ChangeOrderMetricDto `json:"Data" xml:"Data"` +} + +// CreateGetChangeOrderMetricRequest creates a request to invoke GetChangeOrderMetric API +func CreateGetChangeOrderMetricRequest() (request *GetChangeOrderMetricRequest) { + request = &GetChangeOrderMetricRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("sae", "2019-05-06", "GetChangeOrderMetric", "/pop/v1/sam/getChangeOrderMetric", "serverless", "openAPI") + request.Method = requests.GET + return +} + +// CreateGetChangeOrderMetricResponse creates a response to parse from GetChangeOrderMetric response +func CreateGetChangeOrderMetricResponse() (response *GetChangeOrderMetricResponse) { + response = &GetChangeOrderMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/sae/get_scale_app_metric.go b/services/sae/get_scale_app_metric.go new file mode 100644 index 0000000000..f857990609 --- /dev/null +++ b/services/sae/get_scale_app_metric.go @@ -0,0 +1,103 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetScaleAppMetric invokes the sae.GetScaleAppMetric API synchronously +func (client *Client) GetScaleAppMetric(request *GetScaleAppMetricRequest) (response *GetScaleAppMetricResponse, err error) { + response = CreateGetScaleAppMetricResponse() + err = client.DoAction(request, response) + return +} + +// GetScaleAppMetricWithChan invokes the sae.GetScaleAppMetric API asynchronously +func (client *Client) GetScaleAppMetricWithChan(request *GetScaleAppMetricRequest) (<-chan *GetScaleAppMetricResponse, <-chan error) { + responseChan := make(chan *GetScaleAppMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetScaleAppMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetScaleAppMetricWithCallback invokes the sae.GetScaleAppMetric API asynchronously +func (client *Client) GetScaleAppMetricWithCallback(request *GetScaleAppMetricRequest, callback func(response *GetScaleAppMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetScaleAppMetricResponse + var err error + defer close(result) + response, err = client.GetScaleAppMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetScaleAppMetricRequest is the request struct for api GetScaleAppMetric +type GetScaleAppMetricRequest struct { + *requests.RoaRequest + Limit requests.Integer `position:"Path" name:"Limit"` +} + +// GetScaleAppMetricResponse is the response struct for api GetScaleAppMetric +type GetScaleAppMetricResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []ScaleAppMetricDto `json:"Data" xml:"Data"` +} + +// CreateGetScaleAppMetricRequest creates a request to invoke GetScaleAppMetric API +func CreateGetScaleAppMetricRequest() (request *GetScaleAppMetricRequest) { + request = &GetScaleAppMetricRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("sae", "2019-05-06", "GetScaleAppMetric", "/pop/v1/sam/getScaleAppMetric", "serverless", "openAPI") + request.Method = requests.GET + return +} + +// CreateGetScaleAppMetricResponse creates a response to parse from GetScaleAppMetric response +func CreateGetScaleAppMetricResponse() (response *GetScaleAppMetricResponse) { + response = &GetScaleAppMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/sae/get_warning_event_metric.go b/services/sae/get_warning_event_metric.go new file mode 100644 index 0000000000..417a89b13c --- /dev/null +++ b/services/sae/get_warning_event_metric.go @@ -0,0 +1,105 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +import ( + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests" + "github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses" +) + +// GetWarningEventMetric invokes the sae.GetWarningEventMetric API synchronously +func (client *Client) GetWarningEventMetric(request *GetWarningEventMetricRequest) (response *GetWarningEventMetricResponse, err error) { + response = CreateGetWarningEventMetricResponse() + err = client.DoAction(request, response) + return +} + +// GetWarningEventMetricWithChan invokes the sae.GetWarningEventMetric API asynchronously +func (client *Client) GetWarningEventMetricWithChan(request *GetWarningEventMetricRequest) (<-chan *GetWarningEventMetricResponse, <-chan error) { + responseChan := make(chan *GetWarningEventMetricResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetWarningEventMetric(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetWarningEventMetricWithCallback invokes the sae.GetWarningEventMetric API asynchronously +func (client *Client) GetWarningEventMetricWithCallback(request *GetWarningEventMetricRequest, callback func(response *GetWarningEventMetricResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetWarningEventMetricResponse + var err error + defer close(result) + response, err = client.GetWarningEventMetric(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetWarningEventMetricRequest is the request struct for api GetWarningEventMetric +type GetWarningEventMetricRequest struct { + *requests.RoaRequest + Limit requests.Integer `position:"Path" name:"Limit"` + EndTime requests.Integer `position:"Path" name:"EndTime"` + StartTime requests.Integer `position:"Path" name:"StartTime"` +} + +// GetWarningEventMetricResponse is the response struct for api GetWarningEventMetric +type GetWarningEventMetricResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data []EventMetricDto `json:"Data" xml:"Data"` +} + +// CreateGetWarningEventMetricRequest creates a request to invoke GetWarningEventMetric API +func CreateGetWarningEventMetricRequest() (request *GetWarningEventMetricRequest) { + request = &GetWarningEventMetricRequest{ + RoaRequest: &requests.RoaRequest{}, + } + request.InitWithApiInfo("sae", "2019-05-06", "GetWarningEventMetric", "/pop/v1/sam/getWarningEventMetric", "serverless", "openAPI") + request.Method = requests.GET + return +} + +// CreateGetWarningEventMetricResponse creates a response to parse from GetWarningEventMetric response +func CreateGetWarningEventMetricResponse() (response *GetWarningEventMetricResponse) { + response = &GetWarningEventMetricResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/sae/struct_alb_rule.go b/services/sae/struct_alb_rule.go new file mode 100644 index 0000000000..14c7d58154 --- /dev/null +++ b/services/sae/struct_alb_rule.go @@ -0,0 +1,24 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbRule is a nested struct in sae response +type AlbRule struct { + ServiceId string `json:"serviceId" xml:"serviceId"` + Condition string `json:"condition" xml:"condition"` + IngressId string `json:"ingressId" xml:"ingressId"` + Items []Scrulesitem `json:"items" xml:"items"` +} diff --git a/services/sae/struct_alb_rule_in_list_grey_tag_route.go b/services/sae/struct_alb_rule_in_list_grey_tag_route.go new file mode 100644 index 0000000000..fc0f5b0c1a --- /dev/null +++ b/services/sae/struct_alb_rule_in_list_grey_tag_route.go @@ -0,0 +1,25 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbRuleInListGreyTagRoute is a nested struct in sae response +type AlbRuleInListGreyTagRoute struct { + ServiceId string `json:"serviceId" xml:"serviceId"` + IngressId string `json:"ingressId" xml:"ingressId"` + Condition string `json:"condition" xml:"condition"` + ServiceName string `json:"serviceName" xml:"serviceName"` + Items []Item `json:"items" xml:"items"` +} diff --git a/services/sae/struct_alb_rules_in_describe_grey_tag_route.go b/services/sae/struct_alb_rules_in_describe_grey_tag_route.go new file mode 100644 index 0000000000..9dbed194c4 --- /dev/null +++ b/services/sae/struct_alb_rules_in_describe_grey_tag_route.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbRulesInDescribeGreyTagRoute is a nested struct in sae response +type AlbRulesInDescribeGreyTagRoute struct { + AlbRule []AlbRule `json:"albRule" xml:"albRule"` +} diff --git a/services/sae/struct_alb_rules_in_list_grey_tag_route.go b/services/sae/struct_alb_rules_in_list_grey_tag_route.go new file mode 100644 index 0000000000..9192b73921 --- /dev/null +++ b/services/sae/struct_alb_rules_in_list_grey_tag_route.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AlbRulesInListGreyTagRoute is a nested struct in sae response +type AlbRulesInListGreyTagRoute struct { + AlbRule []AlbRuleInListGreyTagRoute `json:"albRule" xml:"albRule"` +} diff --git a/services/sae/struct_arms_metric_dto.go b/services/sae/struct_arms_metric_dto.go new file mode 100644 index 0000000000..bdbaa7c6cc --- /dev/null +++ b/services/sae/struct_arms_metric_dto.go @@ -0,0 +1,26 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ArmsMetricDto is a nested struct in sae response +type ArmsMetricDto struct { + AppId string `json:"AppId" xml:"AppId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + Count int64 `json:"Count" xml:"Count"` + Error int64 `json:"Error" xml:"Error"` + Rt int64 `json:"Rt" xml:"Rt"` +} diff --git a/services/sae/struct_availability_metric_dto.go b/services/sae/struct_availability_metric_dto.go new file mode 100644 index 0000000000..b4df7901fa --- /dev/null +++ b/services/sae/struct_availability_metric_dto.go @@ -0,0 +1,27 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// AvailabilityMetricDto is a nested struct in sae response +type AvailabilityMetricDto struct { + AppId string `json:"AppId" xml:"AppId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + Runnings int64 `json:"Runnings" xml:"Runnings"` + Instances int64 `json:"Instances" xml:"Instances"` + ErrorInstances int64 `json:"ErrorInstances" xml:"ErrorInstances"` + EnableAutoscale int64 `json:"EnableAutoscale" xml:"EnableAutoscale"` +} diff --git a/services/sae/struct_change_order_metric_dto.go b/services/sae/struct_change_order_metric_dto.go new file mode 100644 index 0000000000..c9fca5a8e0 --- /dev/null +++ b/services/sae/struct_change_order_metric_dto.go @@ -0,0 +1,26 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ChangeOrderMetricDto is a nested struct in sae response +type ChangeOrderMetricDto struct { + AppId string `json:"AppId" xml:"AppId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + Total int64 `json:"Total" xml:"Total"` + Error int64 `json:"Error" xml:"Error"` + ErrorPercent float64 `json:"ErrorPercent" xml:"ErrorPercent"` +} diff --git a/services/sae/struct_data.go b/services/sae/struct_data.go index dbd155beea..c1dcb2e797 100644 --- a/services/sae/struct_data.go +++ b/services/sae/struct_data.go @@ -21,187 +21,190 @@ type Data struct { LoadBalanceType string `json:"LoadBalanceType" xml:"LoadBalanceType"` LastDisableTime int64 `json:"LastDisableTime" xml:"LastDisableTime"` VpcName string `json:"VpcName" xml:"VpcName"` - TomcatConfig string `json:"TomcatConfig" xml:"TomcatConfig"` Logo string `json:"Logo" xml:"Logo"` - VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` Python string `json:"Python" xml:"Python"` + NasId string `json:"NasId" xml:"NasId"` + CompletionTime int64 `json:"CompletionTime" xml:"CompletionTime"` + PreStop string `json:"PreStop" xml:"PreStop"` + NamespaceDescription string `json:"NamespaceDescription" xml:"NamespaceDescription"` + Message string `json:"Message" xml:"Message"` + CertIds string `json:"CertIds" xml:"CertIds"` + JarStartArgs string `json:"JarStartArgs" xml:"JarStartArgs"` + InternetSlbId string `json:"InternetSlbId" xml:"InternetSlbId"` + InternetSlbExpired bool `json:"InternetSlbExpired" xml:"InternetSlbExpired"` + RepoTag string `json:"RepoTag" xml:"RepoTag"` + UpdateStrategy string `json:"UpdateStrategy" xml:"UpdateStrategy"` + Name string `json:"Name" xml:"Name"` + IntranetSlbId string `json:"IntranetSlbId" xml:"IntranetSlbId"` + Timeout int64 `json:"Timeout" xml:"Timeout"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + Group string `json:"Group" xml:"Group"` + PackageVersion string `json:"PackageVersion" xml:"PackageVersion"` + NameSpaceShortId string `json:"NameSpaceShortId" xml:"NameSpaceShortId"` + EnableGreyTagRoute bool `json:"EnableGreyTagRoute" xml:"EnableGreyTagRoute"` + Replicas int `json:"Replicas" xml:"Replicas"` + PhpConfigLocation string `json:"PhpConfigLocation" xml:"PhpConfigLocation"` + CoStatus string `json:"CoStatus" xml:"CoStatus"` + SecretData map[string]interface{} `json:"SecretData" xml:"SecretData"` + TenantId string `json:"TenantId" xml:"TenantId"` + NamespaceName string `json:"NamespaceName" xml:"NamespaceName"` + JobId string `json:"JobId" xml:"JobId"` + VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` + PackageRuntimeCustomBuild string `json:"PackageRuntimeCustomBuild" xml:"PackageRuntimeCustomBuild"` + PostStart string `json:"PostStart" xml:"PostStart"` + ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` + RepoName string `json:"RepoName" xml:"RepoName"` + EnableAhas string `json:"EnableAhas" xml:"EnableAhas"` + BackoffLimit int64 `json:"BackoffLimit" xml:"BackoffLimit"` + State string `json:"State" xml:"State"` + NextToken string `json:"NextToken" xml:"NextToken"` + SpringApplicationName string `json:"SpringApplicationName" xml:"SpringApplicationName"` + PackageUrl string `json:"PackageUrl" xml:"PackageUrl"` + PackageType string `json:"PackageType" xml:"PackageType"` + LastChangeOrderRunning bool `json:"LastChangeOrderRunning" xml:"LastChangeOrderRunning"` + Failed int64 `json:"Failed" xml:"Failed"` + KafkaConfigs string `json:"KafkaConfigs" xml:"KafkaConfigs"` + SlbType string `json:"SlbType" xml:"SlbType"` + EdasAppName string `json:"EdasAppName" xml:"EdasAppName"` + OssAkSecret string `json:"OssAkSecret" xml:"OssAkSecret"` + LastChangeOrderStatus string `json:"LastChangeOrderStatus" xml:"LastChangeOrderStatus"` + VpcId string `json:"VpcId" xml:"VpcId"` + CertId string `json:"CertId" xml:"CertId"` + SecretType string `json:"SecretType" xml:"SecretType"` + CrUrl string `json:"CrUrl" xml:"CrUrl"` + Jdk string `json:"Jdk" xml:"Jdk"` + Metadata map[string]interface{} `json:"Metadata" xml:"Metadata"` + Php string `json:"Php" xml:"Php"` + MicroRegistration string `json:"MicroRegistration" xml:"MicroRegistration"` + JumpServerAppId string `json:"JumpServerAppId" xml:"JumpServerAppId"` + Cpu int `json:"Cpu" xml:"Cpu"` + PipelineStatus int `json:"PipelineStatus" xml:"PipelineStatus"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + AppDescription string `json:"AppDescription" xml:"AppDescription"` + PhpPECLExtensions string `json:"PhpPECLExtensions" xml:"PhpPECLExtensions"` + TriggerConfig string `json:"TriggerConfig" xml:"TriggerConfig"` + WarStartOptions string `json:"WarStartOptions" xml:"WarStartOptions"` + Workload string `json:"Workload" xml:"Workload"` + ProgrammingLanguage string `json:"ProgrammingLanguage" xml:"ProgrammingLanguage"` + Description string `json:"Description" xml:"Description"` + IsNeedApproval bool `json:"IsNeedApproval" xml:"IsNeedApproval"` + IngressId int64 `json:"IngressId" xml:"IngressId"` + NamespaceId string `json:"NamespaceId" xml:"NamespaceId"` + Data map[string]interface{} `json:"Data" xml:"Data"` + SecretName string `json:"SecretName" xml:"SecretName"` + IntranetSlbExpired bool `json:"IntranetSlbExpired" xml:"IntranetSlbExpired"` + TomcatConfig string `json:"TomcatConfig" xml:"TomcatConfig"` + VSwitchName string `json:"VSwitchName" xml:"VSwitchName"` LastChangeOrderId string `json:"LastChangeOrderId" xml:"LastChangeOrderId"` EdasContainerVersion string `json:"EdasContainerVersion" xml:"EdasContainerVersion"` SlsConfigs string `json:"SlsConfigs" xml:"SlsConfigs"` - NasId string `json:"NasId" xml:"NasId"` - CompletionTime int64 `json:"CompletionTime" xml:"CompletionTime"` Suspend bool `json:"Suspend" xml:"Suspend"` Slice bool `json:"Slice" xml:"Slice"` - PreStop string `json:"PreStop" xml:"PreStop"` ListenerPort int `json:"ListenerPort" xml:"ListenerPort"` PipelineName string `json:"PipelineName" xml:"PipelineName"` MseApplicationId string `json:"MseApplicationId" xml:"MseApplicationId"` - NamespaceDescription string `json:"NamespaceDescription" xml:"NamespaceDescription"` - Message string `json:"Message" xml:"Message"` UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` - CertIds string `json:"CertIds" xml:"CertIds"` - JarStartArgs string `json:"JarStartArgs" xml:"JarStartArgs"` Id int64 `json:"Id" xml:"Id"` GreyTagRouteId int64 `json:"GreyTagRouteId" xml:"GreyTagRouteId"` Command string `json:"Command" xml:"Command"` - InternetSlbId string `json:"InternetSlbId" xml:"InternetSlbId"` NasConfigs string `json:"NasConfigs" xml:"NasConfigs"` JarStartOptions string `json:"JarStartOptions" xml:"JarStartOptions"` PhpExtensions string `json:"PhpExtensions" xml:"PhpExtensions"` - InternetSlbExpired bool `json:"InternetSlbExpired" xml:"InternetSlbExpired"` PhpConfig string `json:"PhpConfig" xml:"PhpConfig"` Envs string `json:"Envs" xml:"Envs"` - RepoTag string `json:"RepoTag" xml:"RepoTag"` RepoType string `json:"RepoType" xml:"RepoType"` SlbId string `json:"SlbId" xml:"SlbId"` TotalSize int `json:"TotalSize" xml:"TotalSize"` NotificationExpired bool `json:"NotificationExpired" xml:"NotificationExpired"` - UpdateStrategy string `json:"UpdateStrategy" xml:"UpdateStrategy"` - Name string `json:"Name" xml:"Name"` - IntranetSlbId string `json:"IntranetSlbId" xml:"IntranetSlbId"` - Timeout int64 `json:"Timeout" xml:"Timeout"` ChangeOrderId string `json:"ChangeOrderId" xml:"ChangeOrderId"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - Group string `json:"Group" xml:"Group"` Timezone string `json:"Timezone" xml:"Timezone"` OssAkId string `json:"OssAkId" xml:"OssAkId"` - PackageVersion string `json:"PackageVersion" xml:"PackageVersion"` PageSize int `json:"PageSize" xml:"PageSize"` MinReadyInstanceRatio int `json:"MinReadyInstanceRatio" xml:"MinReadyInstanceRatio"` - EnableGreyTagRoute bool `json:"EnableGreyTagRoute" xml:"EnableGreyTagRoute"` - Replicas int `json:"Replicas" xml:"Replicas"` - PhpConfigLocation string `json:"PhpConfigLocation" xml:"PhpConfigLocation"` PvtzDiscovery string `json:"PvtzDiscovery" xml:"PvtzDiscovery"` - CoStatus string `json:"CoStatus" xml:"CoStatus"` - SecretData map[string]interface{} `json:"SecretData" xml:"SecretData"` CustomHostAlias string `json:"CustomHostAlias" xml:"CustomHostAlias"` - TenantId string `json:"TenantId" xml:"TenantId"` - NamespaceName string `json:"NamespaceName" xml:"NamespaceName"` EnableImageAccl bool `json:"EnableImageAccl" xml:"EnableImageAccl"` - JobId string `json:"JobId" xml:"JobId"` NextPipelineId string `json:"NextPipelineId" xml:"NextPipelineId"` Memory int `json:"Memory" xml:"Memory"` - VSwitchId string `json:"VSwitchId" xml:"VSwitchId"` PhpArmsConfigLocation string `json:"PhpArmsConfigLocation" xml:"PhpArmsConfigLocation"` ImagePullSecrets string `json:"ImagePullSecrets" xml:"ImagePullSecrets"` - PackageRuntimeCustomBuild string `json:"PackageRuntimeCustomBuild" xml:"PackageRuntimeCustomBuild"` Version string `json:"Version" xml:"Version"` - PostStart string `json:"PostStart" xml:"PostStart"` RepoNamespace string `json:"RepoNamespace" xml:"RepoNamespace"` Liveness string `json:"Liveness" xml:"Liveness"` - ListenerProtocol string `json:"ListenerProtocol" xml:"ListenerProtocol"` - RepoName string `json:"RepoName" xml:"RepoName"` - EnableAhas string `json:"EnableAhas" xml:"EnableAhas"` CurrentPage int `json:"CurrentPage" xml:"CurrentPage"` - BackoffLimit int64 `json:"BackoffLimit" xml:"BackoffLimit"` - State string `json:"State" xml:"State"` AcrInstanceId string `json:"AcrInstanceId" xml:"AcrInstanceId"` - NextToken string `json:"NextToken" xml:"NextToken"` - SpringApplicationName string `json:"SpringApplicationName" xml:"SpringApplicationName"` AppName string `json:"AppName" xml:"AppName"` - PackageUrl string `json:"PackageUrl" xml:"PackageUrl"` DubboApplicationName string `json:"DubboApplicationName" xml:"DubboApplicationName"` JumpServerIp string `json:"JumpServerIp" xml:"JumpServerIp"` - PackageType string `json:"PackageType" xml:"PackageType"` - LastChangeOrderRunning bool `json:"LastChangeOrderRunning" xml:"LastChangeOrderRunning"` - Failed int64 `json:"Failed" xml:"Failed"` - KafkaConfigs string `json:"KafkaConfigs" xml:"KafkaConfigs"` RefAppId string `json:"RefAppId" xml:"RefAppId"` MountHost string `json:"MountHost" xml:"MountHost"` - SlbType string `json:"SlbType" xml:"SlbType"` - EdasAppName string `json:"EdasAppName" xml:"EdasAppName"` StartTime int64 `json:"StartTime" xml:"StartTime"` CurrentPoint int `json:"CurrentPoint" xml:"CurrentPoint"` ImageUrl string `json:"ImageUrl" xml:"ImageUrl"` - OssAkSecret string `json:"OssAkSecret" xml:"OssAkSecret"` - LastChangeOrderStatus string `json:"LastChangeOrderStatus" xml:"LastChangeOrderStatus"` - VpcId string `json:"VpcId" xml:"VpcId"` Active int64 `json:"Active" xml:"Active"` IntranetIp string `json:"IntranetIp" xml:"IntranetIp"` ServiceType string `json:"ServiceType" xml:"ServiceType"` ServiceName string `json:"ServiceName" xml:"ServiceName"` - CertId string `json:"CertId" xml:"CertId"` ShowBatch bool `json:"ShowBatch" xml:"ShowBatch"` BatchWaitTime int `json:"BatchWaitTime" xml:"BatchWaitTime"` - SecretType string `json:"SecretType" xml:"SecretType"` RepoId int `json:"RepoId" xml:"RepoId"` SliceEnvs string `json:"SliceEnvs" xml:"SliceEnvs"` BelongRegion string `json:"BelongRegion" xml:"BelongRegion"` - CrUrl string `json:"CrUrl" xml:"CrUrl"` - Jdk string `json:"Jdk" xml:"Jdk"` AppId string `json:"AppId" xml:"AppId"` - Metadata map[string]interface{} `json:"Metadata" xml:"Metadata"` - Php string `json:"Php" xml:"Php"` ScaleRuleName string `json:"ScaleRuleName" xml:"ScaleRuleName"` AcrAssumeRoleArn string `json:"AcrAssumeRoleArn" xml:"AcrAssumeRoleArn"` - MicroRegistration string `json:"MicroRegistration" xml:"MicroRegistration"` - JumpServerAppId string `json:"JumpServerAppId" xml:"JumpServerAppId"` - Cpu int `json:"Cpu" xml:"Cpu"` Succeeded int64 `json:"Succeeded" xml:"Succeeded"` TerminationGracePeriodSeconds int `json:"TerminationGracePeriodSeconds" xml:"TerminationGracePeriodSeconds"` WebContainer string `json:"WebContainer" xml:"WebContainer"` AssociateEip bool `json:"AssociateEip" xml:"AssociateEip"` RepoOriginType string `json:"RepoOriginType" xml:"RepoOriginType"` - PipelineStatus int `json:"PipelineStatus" xml:"PipelineStatus"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` MinReadyInstances int `json:"MinReadyInstances" xml:"MinReadyInstances"` CommandArgs string `json:"CommandArgs" xml:"CommandArgs"` CurrentStageId string `json:"CurrentStageId" xml:"CurrentStageId"` - AppDescription string `json:"AppDescription" xml:"AppDescription"` - PhpPECLExtensions string `json:"PhpPECLExtensions" xml:"PhpPECLExtensions"` RegionId string `json:"RegionId" xml:"RegionId"` - TriggerConfig string `json:"TriggerConfig" xml:"TriggerConfig"` PipelineId string `json:"PipelineId" xml:"PipelineId"` - WarStartOptions string `json:"WarStartOptions" xml:"WarStartOptions"` UserId string `json:"UserId" xml:"UserId"` - Workload string `json:"Workload" xml:"Workload"` - ProgrammingLanguage string `json:"ProgrammingLanguage" xml:"ProgrammingLanguage"` - Description string `json:"Description" xml:"Description"` ScaleRuleEnabled bool `json:"ScaleRuleEnabled" xml:"ScaleRuleEnabled"` InternetIp string `json:"InternetIp" xml:"InternetIp"` AppCount int64 `json:"AppCount" xml:"AppCount"` ConfigMapId int64 `json:"ConfigMapId" xml:"ConfigMapId"` - IsNeedApproval bool `json:"IsNeedApproval" xml:"IsNeedApproval"` ConcurrencyPolicy string `json:"ConcurrencyPolicy" xml:"ConcurrencyPolicy"` - IngressId int64 `json:"IngressId" xml:"IngressId"` Readiness string `json:"Readiness" xml:"Readiness"` ScaleRuleType string `json:"ScaleRuleType" xml:"ScaleRuleType"` SecretId int64 `json:"SecretId" xml:"SecretId"` - NamespaceId string `json:"NamespaceId" xml:"NamespaceId"` - Data map[string]interface{} `json:"Data" xml:"Data"` - SecretName string `json:"SecretName" xml:"SecretName"` - IntranetSlbExpired bool `json:"IntranetSlbExpired" xml:"IntranetSlbExpired"` VpcWebHookUrls []string `json:"VpcWebHookUrls" xml:"VpcWebHookUrls"` RefedAppIds []string `json:"RefedAppIds" xml:"RefedAppIds"` PublicWebHookUrls []string `json:"PublicWebHookUrls" xml:"PublicWebHookUrls"` - Timer Timer `json:"Timer" xml:"Timer"` Order Order `json:"Order" xml:"Order"` RealTimeRes RealTimeRes `json:"RealTimeRes" xml:"RealTimeRes"` DefaultRule DefaultRule `json:"DefaultRule" xml:"DefaultRule"` Metric Metric `json:"Metric" xml:"Metric"` BagUsage BagUsage `json:"BagUsage" xml:"BagUsage"` + Timer Timer `json:"Timer" xml:"Timer"` Summary Summary `json:"Summary" xml:"Summary"` OssMountDescs []OssMountDesc `json:"OssMountDescs" xml:"OssMountDescs"` + TagResources []TagResource `json:"TagResources" xml:"TagResources"` + Rules []Rule `json:"Rules" xml:"Rules"` + Intranet []IntranetItem `json:"Intranet" xml:"Intranet"` + DubboRules []DubboRule `json:"DubboRules" xml:"DubboRules"` + Tags []Tag `json:"Tags" xml:"Tags"` + Instances []Instance `json:"Instances" xml:"Instances"` + Methods []Method `json:"Methods" xml:"Methods"` + Internet []InternetItem `json:"Internet" xml:"Internet"` MountDesc []MountDescItem `json:"MountDesc" xml:"MountDesc"` ConfigMaps []ConfigMap `json:"ConfigMaps" xml:"ConfigMaps"` RelateApps []RelateApp `json:"RelateApps" xml:"RelateApps"` - TagResources []TagResource `json:"TagResources" xml:"TagResources"` - Rules []Rule `json:"Rules" xml:"Rules"` LogConfigs []LogConfig `json:"LogConfigs" xml:"LogConfigs"` - Intranet []IntranetItem `json:"Intranet" xml:"Intranet"` ScRules []ScRule `json:"ScRules" xml:"ScRules"` Applications []Application `json:"Applications" xml:"Applications"` ChangeOrderList []ChangeOrder `json:"ChangeOrderList" xml:"ChangeOrderList"` IngressList []Ingress `json:"IngressList" xml:"IngressList"` + Svcs []Svc `json:"Svcs" xml:"Svcs"` Secrets []Secret `json:"Secrets" xml:"Secrets"` ConfigMapMountDesc []ConfigMapMountDescItem `json:"ConfigMapMountDesc" xml:"ConfigMapMountDesc"` - DubboRules []DubboRule `json:"DubboRules" xml:"DubboRules"` - Tags []Tag `json:"Tags" xml:"Tags"` - Instances []Instance `json:"Instances" xml:"Instances"` - Methods []Method `json:"Methods" xml:"Methods"` + AlbRules []AlbRule `json:"AlbRules" xml:"AlbRules"` ApplicationScalingRules []ApplicationScalingRule `json:"ApplicationScalingRules" xml:"ApplicationScalingRules"` - Internet []InternetItem `json:"Internet" xml:"Internet"` + Namespaces []Namespace `json:"Namespaces" xml:"Namespaces"` AppEventEntity []AppEventEntityItem `json:"AppEventEntity" xml:"AppEventEntity"` StageList []Stage `json:"StageList" xml:"StageList"` - Namespaces []Namespace `json:"Namespaces" xml:"Namespaces"` } diff --git a/services/sae/struct_data_in_get_arms_top_n_metric.go b/services/sae/struct_data_in_get_arms_top_n_metric.go new file mode 100644 index 0000000000..a09015252b --- /dev/null +++ b/services/sae/struct_data_in_get_arms_top_n_metric.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetArmsTopNMetric is a nested struct in sae response +type DataInGetArmsTopNMetric struct { + ArmsMetricDto []ArmsMetricDto `json:"ArmsMetricDto" xml:"ArmsMetricDto"` +} diff --git a/services/sae/struct_data_in_get_availability_metric.go b/services/sae/struct_data_in_get_availability_metric.go new file mode 100644 index 0000000000..705e8ec05a --- /dev/null +++ b/services/sae/struct_data_in_get_availability_metric.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetAvailabilityMetric is a nested struct in sae response +type DataInGetAvailabilityMetric struct { + AvailabilityMetricDto []AvailabilityMetricDto `json:"AvailabilityMetricDto" xml:"AvailabilityMetricDto"` +} diff --git a/services/sae/struct_data_in_get_change_order_metric.go b/services/sae/struct_data_in_get_change_order_metric.go new file mode 100644 index 0000000000..629fb14db2 --- /dev/null +++ b/services/sae/struct_data_in_get_change_order_metric.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetChangeOrderMetric is a nested struct in sae response +type DataInGetChangeOrderMetric struct { + ChangeOrderMetricDto []ChangeOrderMetricDto `json:"ChangeOrderMetricDto" xml:"ChangeOrderMetricDto"` +} diff --git a/services/sae/struct_data_in_get_scale_app_metric.go b/services/sae/struct_data_in_get_scale_app_metric.go new file mode 100644 index 0000000000..3b1b5f2e23 --- /dev/null +++ b/services/sae/struct_data_in_get_scale_app_metric.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetScaleAppMetric is a nested struct in sae response +type DataInGetScaleAppMetric struct { + ScaleAppMetricDto []ScaleAppMetricDto `json:"ScaleAppMetricDto" xml:"ScaleAppMetricDto"` +} diff --git a/services/sae/struct_data_in_get_warning_event_metric.go b/services/sae/struct_data_in_get_warning_event_metric.go new file mode 100644 index 0000000000..62f3472687 --- /dev/null +++ b/services/sae/struct_data_in_get_warning_event_metric.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// DataInGetWarningEventMetric is a nested struct in sae response +type DataInGetWarningEventMetric struct { + EventMetricDto []EventMetricDto `json:"EventMetricDto" xml:"EventMetricDto"` +} diff --git a/services/sae/struct_event_metric_dto.go b/services/sae/struct_event_metric_dto.go new file mode 100644 index 0000000000..78ac8ed457 --- /dev/null +++ b/services/sae/struct_event_metric_dto.go @@ -0,0 +1,24 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// EventMetricDto is a nested struct in sae response +type EventMetricDto struct { + AppId string `json:"AppId" xml:"AppId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + WarningCount int64 `json:"WarningCount" xml:"WarningCount"` +} diff --git a/services/sae/struct_namespace.go b/services/sae/struct_namespace.go index 7ebe72ca87..f49532b156 100644 --- a/services/sae/struct_namespace.go +++ b/services/sae/struct_namespace.go @@ -25,4 +25,5 @@ type Namespace struct { NamespaceName string `json:"NamespaceName" xml:"NamespaceName"` TenantId string `json:"TenantId" xml:"TenantId"` RegionId string `json:"RegionId" xml:"RegionId"` + NameSpaceShortId string `json:"NameSpaceShortId" xml:"NameSpaceShortId"` } diff --git a/services/sae/struct_region_list.go b/services/sae/struct_region_list.go index ae51e9d50a..540784b14c 100644 --- a/services/sae/struct_region_list.go +++ b/services/sae/struct_region_list.go @@ -27,4 +27,5 @@ type RegionList struct { Current bool `json:"Current" xml:"Current"` NamespaceName string `json:"NamespaceName" xml:"NamespaceName"` RegionId string `json:"RegionId" xml:"RegionId"` + NameSpaceShortId string `json:"NameSpaceShortId" xml:"NameSpaceShortId"` } diff --git a/services/sae/struct_result_item.go b/services/sae/struct_result_item.go index a052d4bcfa..1025dcadaf 100644 --- a/services/sae/struct_result_item.go +++ b/services/sae/struct_result_item.go @@ -17,11 +17,12 @@ package sae // ResultItem is a nested struct in sae response type ResultItem struct { - GreyTagRouteId int64 `json:"GreyTagRouteId" xml:"GreyTagRouteId"` - Name string `json:"Name" xml:"Name"` - Description string `json:"Description" xml:"Description"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` - ScRules []ScRuleInListGreyTagRoute `json:"ScRules" xml:"ScRules"` - DubboRules []DubboRule `json:"DubboRules" xml:"DubboRules"` + GreyTagRouteId int64 `json:"GreyTagRouteId" xml:"GreyTagRouteId"` + Name string `json:"Name" xml:"Name"` + Description string `json:"Description" xml:"Description"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + ScRules []ScRuleInListGreyTagRoute `json:"ScRules" xml:"ScRules"` + AlbRules []AlbRuleInListGreyTagRoute `json:"AlbRules" xml:"AlbRules"` + DubboRules []DubboRule `json:"DubboRules" xml:"DubboRules"` } diff --git a/services/sae/struct_scale_app_metric_dto.go b/services/sae/struct_scale_app_metric_dto.go new file mode 100644 index 0000000000..fbc5b65bdb --- /dev/null +++ b/services/sae/struct_scale_app_metric_dto.go @@ -0,0 +1,25 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ScaleAppMetricDto is a nested struct in sae response +type ScaleAppMetricDto struct { + AppId string `json:"AppId" xml:"AppId"` + Name string `json:"Name" xml:"Name"` + RegionId string `json:"RegionId" xml:"RegionId"` + Runnings int64 `json:"Runnings" xml:"Runnings"` + MaxReplicas int64 `json:"MaxReplicas" xml:"MaxReplicas"` +} diff --git a/services/sae/struct_scrulesitem.go b/services/sae/struct_scrulesitem.go index 74357545eb..30dc50ada7 100644 --- a/services/sae/struct_scrulesitem.go +++ b/services/sae/struct_scrulesitem.go @@ -18,10 +18,10 @@ package sae // Scrulesitem is a nested struct in sae response type Scrulesitem struct { Type string `json:"type" xml:"type"` + Expr string `json:"expr" xml:"expr"` + Value string `json:"value" xml:"value"` Name string `json:"name" xml:"name"` + Index int `json:"index" xml:"index"` Operator string `json:"operator" xml:"operator"` - Value string `json:"value" xml:"value"` Cond string `json:"cond" xml:"cond"` - Index int `json:"index" xml:"index"` - Expr string `json:"expr" xml:"expr"` } diff --git a/services/sae/struct_svc.go b/services/sae/struct_svc.go new file mode 100644 index 0000000000..10d8131fb8 --- /dev/null +++ b/services/sae/struct_svc.go @@ -0,0 +1,25 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Svc is a nested struct in sae response +type Svc struct { + Id int64 `json:"id" xml:"id"` + AppId string `json:"appId" xml:"appId"` + BackendProtocol string `json:"backendProtocol" xml:"backendProtocol"` + BackendPort int `json:"backendPort" xml:"backendPort"` + Name string `json:"name" xml:"name"` +} diff --git a/services/sae/struct_svcs.go b/services/sae/struct_svcs.go new file mode 100644 index 0000000000..473f7c79c8 --- /dev/null +++ b/services/sae/struct_svcs.go @@ -0,0 +1,21 @@ +package sae + +//Licensed under the Apache License, Version 2.0 (the "License"); +//you may not use this file except in compliance with the License. +//You may obtain a copy of the License at +// +//http://www.apache.org/licenses/LICENSE-2.0 +// +//Unless required by applicable law or agreed to in writing, software +//distributed under the License is distributed on an "AS IS" BASIS, +//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +//See the License for the specific language governing permissions and +//limitations under the License. +// +// Code generated by Alibaba Cloud SDK Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// Svcs is a nested struct in sae response +type Svcs struct { + Svc []Svc `json:"Svc" xml:"Svc"` +} diff --git a/services/sae/update_application_scaling_rule.go b/services/sae/update_application_scaling_rule.go index c1f9e4a22b..8682b68d1c 100644 --- a/services/sae/update_application_scaling_rule.go +++ b/services/sae/update_application_scaling_rule.go @@ -84,6 +84,10 @@ type UpdateApplicationScalingRuleResponse struct { *responses.BaseResponse RequestId string `json:"RequestId" xml:"RequestId"` TraceId string `json:"TraceId" xml:"TraceId"` + Message string `json:"Message" xml:"Message"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Code string `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` Data Data `json:"Data" xml:"Data"` } diff --git a/services/sae/update_grey_tag_route.go b/services/sae/update_grey_tag_route.go index 3d85230072..4c1ee26a84 100644 --- a/services/sae/update_grey_tag_route.go +++ b/services/sae/update_grey_tag_route.go @@ -74,6 +74,7 @@ type UpdateGreyTagRouteRequest struct { GreyTagRouteId requests.Integer `position:"Query" name:"GreyTagRouteId"` Description string `position:"Query" name:"Description"` DubboRules string `position:"Query" name:"DubboRules"` + AlbRules string `position:"Query" name:"AlbRules"` ScRules string `position:"Query" name:"ScRules"` } diff --git a/services/sae/update_namespace.go b/services/sae/update_namespace.go index b019c54e2d..f7e3b807fe 100644 --- a/services/sae/update_namespace.go +++ b/services/sae/update_namespace.go @@ -74,6 +74,7 @@ type UpdateNamespaceRequest struct { NamespaceName string `position:"Query" name:"NamespaceName"` NamespaceDescription string `position:"Query" name:"NamespaceDescription"` NamespaceId string `position:"Query" name:"NamespaceId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // UpdateNamespaceResponse is the response struct for api UpdateNamespace diff --git a/services/sae/update_namespace_vpc.go b/services/sae/update_namespace_vpc.go index 155e06b58c..d78e2c671d 100644 --- a/services/sae/update_namespace_vpc.go +++ b/services/sae/update_namespace_vpc.go @@ -71,8 +71,9 @@ func (client *Client) UpdateNamespaceVpcWithCallback(request *UpdateNamespaceVpc // UpdateNamespaceVpcRequest is the request struct for api UpdateNamespaceVpc type UpdateNamespaceVpcRequest struct { *requests.RoaRequest - NamespaceId string `position:"Query" name:"NamespaceId"` - VpcId string `position:"Query" name:"VpcId"` + NamespaceId string `position:"Query" name:"NamespaceId"` + VpcId string `position:"Query" name:"VpcId"` + NameSpaceShortId string `position:"Query" name:"NameSpaceShortId"` } // UpdateNamespaceVpcResponse is the response struct for api UpdateNamespaceVpc