diff --git a/ChangeLog.txt b/ChangeLog.txt index d9dc4f12d..86ca29e00 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-10-28 Version: v1.63.40 +- Generated 2019-05-31 for `mse`. +- Support config content from data. + 2024-10-25 Version: v1.63.39 - Generated 2017-11-10 for `Ens`. undefined diff --git a/services/mse/add_gateway.go b/services/mse/add_gateway.go index 89d6828bd..c087addbb 100644 --- a/services/mse/add_gateway.go +++ b/services/mse/add_gateway.go @@ -86,10 +86,13 @@ type AddGatewayRequest struct { SlbSpec string `position:"Query" name:"SlbSpec"` Name string `position:"Query" name:"Name"` Region string `position:"Query" name:"Region"` + MserVersion string `position:"Query" name:"MserVersion"` ZoneInfo *[]AddGatewayZoneInfo `position:"Query" name:"ZoneInfo" type:"Json"` XtraceRatio string `position:"Query" name:"XtraceRatio"` VSwitchId2 string `position:"Query" name:"VSwitchId2"` + ClbNetworkType string `position:"Query" name:"ClbNetworkType"` Vpc string `position:"Query" name:"Vpc"` + NlbNetworkType string `position:"Query" name:"NlbNetworkType"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` ChargeType string `position:"Query" name:"ChargeType"` } diff --git a/services/mse/add_gateway_auth.go b/services/mse/add_gateway_auth.go new file mode 100644 index 000000000..de24fb039 --- /dev/null +++ b/services/mse/add_gateway_auth.go @@ -0,0 +1,157 @@ +package mse + +//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" +) + +// AddGatewayAuth invokes the mse.AddGatewayAuth API synchronously +func (client *Client) AddGatewayAuth(request *AddGatewayAuthRequest) (response *AddGatewayAuthResponse, err error) { + response = CreateAddGatewayAuthResponse() + err = client.DoAction(request, response) + return +} + +// AddGatewayAuthWithChan invokes the mse.AddGatewayAuth API asynchronously +func (client *Client) AddGatewayAuthWithChan(request *AddGatewayAuthRequest) (<-chan *AddGatewayAuthResponse, <-chan error) { + responseChan := make(chan *AddGatewayAuthResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddGatewayAuth(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddGatewayAuthWithCallback invokes the mse.AddGatewayAuth API asynchronously +func (client *Client) AddGatewayAuthWithCallback(request *AddGatewayAuthRequest, callback func(response *AddGatewayAuthResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddGatewayAuthResponse + var err error + defer close(result) + response, err = client.AddGatewayAuth(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddGatewayAuthRequest is the request struct for api AddGatewayAuth +type AddGatewayAuthRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + ClientId string `position:"Query" name:"ClientId"` + Type string `position:"Query" name:"Type"` + ScopesList *[]string `position:"Query" name:"ScopesList" type:"Json"` + Issuer string `position:"Query" name:"Issuer"` + AuthResourceMode requests.Integer `position:"Query" name:"AuthResourceMode"` + Name string `position:"Query" name:"Name"` + AuthResourceConfig string `position:"Query" name:"AuthResourceConfig"` + AuthResourceList *[]AddGatewayAuthAuthResourceList `position:"Query" name:"AuthResourceList" type:"Json"` + Status requests.Boolean `position:"Query" name:"Status"` + Sub string `position:"Query" name:"Sub"` + Jwks string `position:"Query" name:"Jwks"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + TokenPosition string `position:"Query" name:"TokenPosition"` + IsWhite requests.Boolean `position:"Query" name:"IsWhite"` + CookieDomain string `position:"Query" name:"CookieDomain"` + ExternalAuthZJSON AddGatewayAuthExternalAuthZJSON `position:"Query" name:"ExternalAuthZJSON" type:"Struct"` + RedirectUrl string `position:"Query" name:"RedirectUrl"` + ClientSecret string `position:"Query" name:"ClientSecret"` + TokenNamePrefix string `position:"Query" name:"TokenNamePrefix"` + TokenPass requests.Boolean `position:"Query" name:"TokenPass"` + LoginUrl string `position:"Query" name:"LoginUrl"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + TokenName string `position:"Query" name:"TokenName"` +} + +// AddGatewayAuthAuthResourceList is a repeated param struct in AddGatewayAuthRequest +type AddGatewayAuthAuthResourceList struct { + Path string `name:"Path"` + IgnoreCase string `name:"IgnoreCase"` + AuthResourceHeaderList *[]AddGatewayAuthAuthResourceListAuthResourceHeaderListItem `name:"AuthResourceHeaderList" type:"Repeated"` + MatchType string `name:"MatchType"` + DomainId string `name:"DomainId"` +} + +// AddGatewayAuthAuthResourceListAuthResourceHeaderListItem is a repeated param struct in AddGatewayAuthRequest +type AddGatewayAuthAuthResourceListAuthResourceHeaderListItem struct { + HeaderValue string `name:"HeaderValue"` + HeaderMethod string `name:"HeaderMethod"` + HeaderKey string `name:"HeaderKey"` +} + +// AddGatewayAuthExternalAuthZJSON is a repeated param struct in AddGatewayAuthRequest +type AddGatewayAuthExternalAuthZJSON struct { + TokenKey string `name:"TokenKey"` + AllowUpstreamHeaders *[]string `name:"AllowUpstreamHeaders" type:"Repeated"` + WithRequestBody string `name:"WithRequestBody"` + WithRematchRoute string `name:"WithRematchRoute"` + BodyMaxBytes string `name:"BodyMaxBytes"` + IsRestrict string `name:"IsRestrict"` + ServiceId string `name:"ServiceId"` + AllowRequestHeaders *[]string `name:"AllowRequestHeaders" type:"Repeated"` + PrefixPath string `name:"PrefixPath"` + Timeout string `name:"Timeout"` +} + +// AddGatewayAuthResponse is the response struct for api AddGatewayAuth +type AddGatewayAuthResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + Code int `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data int64 `json:"Data" xml:"Data"` +} + +// CreateAddGatewayAuthRequest creates a request to invoke AddGatewayAuth API +func CreateAddGatewayAuthRequest() (request *AddGatewayAuthRequest) { + request = &AddGatewayAuthRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "AddGatewayAuth", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddGatewayAuthResponse creates a response to parse from AddGatewayAuth response +func CreateAddGatewayAuthResponse() (response *AddGatewayAuthResponse) { + response = &AddGatewayAuthResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/add_gateway_route.go b/services/mse/add_gateway_route.go index 9094e17dc..e11756ca1 100644 --- a/services/mse/add_gateway_route.go +++ b/services/mse/add_gateway_route.go @@ -85,6 +85,7 @@ type AddGatewayRouteRequest struct { GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` DestinationType string `position:"Query" name:"DestinationType"` Policies string `position:"Query" name:"Policies"` + Description string `position:"Query" name:"Description"` RouteOrder requests.Integer `position:"Query" name:"RouteOrder"` Services *[]AddGatewayRouteServices `position:"Query" name:"Services" type:"Json"` RedirectJSON AddGatewayRouteRedirectJSON `position:"Query" name:"RedirectJSON" type:"Struct"` diff --git a/services/mse/add_migration_task.go b/services/mse/add_migration_task.go index b05f09aad..a9f488fb0 100644 --- a/services/mse/add_migration_task.go +++ b/services/mse/add_migration_task.go @@ -72,16 +72,17 @@ func (client *Client) AddMigrationTaskWithCallback(request *AddMigrationTaskRequ type AddMigrationTaskRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` - TargetClusterUrl string `position:"Query" name:"TargetClusterUrl"` - OriginInstanceAddress string `position:"Query" name:"OriginInstanceAddress"` + SyncType string `position:"Query" name:"SyncType"` RequestPars string `position:"Query" name:"RequestPars"` Id string `position:"Query" name:"Id"` OriginInstanceName string `position:"Query" name:"OriginInstanceName"` ProjectDesc string `position:"Query" name:"ProjectDesc"` - OriginInstanceNamespace string `position:"Query" name:"OriginInstanceNamespace"` ClusterType string `position:"Query" name:"ClusterType"` - TargetInstanceId string `position:"Query" name:"TargetInstanceId"` TargetClusterName string `position:"Query" name:"TargetClusterName"` + TargetClusterUrl string `position:"Query" name:"TargetClusterUrl"` + OriginInstanceAddress string `position:"Query" name:"OriginInstanceAddress"` + OriginInstanceNamespace string `position:"Query" name:"OriginInstanceNamespace"` + TargetInstanceId string `position:"Query" name:"TargetInstanceId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/add_service_source.go b/services/mse/add_service_source.go index 0e702a3db..b89b0226b 100644 --- a/services/mse/add_service_source.go +++ b/services/mse/add_service_source.go @@ -71,16 +71,24 @@ func (client *Client) AddServiceSourceWithCallback(request *AddServiceSourceRequ // AddServiceSourceRequest is the request struct for api AddServiceSource type AddServiceSourceRequest struct { *requests.RpcRequest - IngressOptionsRequest AddServiceSourceIngressOptionsRequest `position:"Query" name:"IngressOptionsRequest" type:"Struct"` - MseSessionId string `position:"Query" name:"MseSessionId"` - GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` - Source string `position:"Query" name:"Source"` - Type string `position:"Query" name:"Type"` - PathList *[]string `position:"Query" name:"PathList" type:"Json"` - Address string `position:"Query" name:"Address"` - Name string `position:"Query" name:"Name"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` - GroupList *[]string `position:"Query" name:"GroupList" type:"Json"` + IngressOptionsRequest AddServiceSourceIngressOptionsRequest `position:"Query" name:"IngressOptionsRequest" type:"Struct"` + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + Source string `position:"Query" name:"Source"` + Type string `position:"Query" name:"Type"` + PathList *[]string `position:"Query" name:"PathList" type:"Json"` + Address string `position:"Query" name:"Address"` + ToAuthorizeSecurityGroups *[]AddServiceSourceToAuthorizeSecurityGroups `position:"Query" name:"ToAuthorizeSecurityGroups" type:"Json"` + Name string `position:"Query" name:"Name"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + GroupList *[]string `position:"Query" name:"GroupList" type:"Json"` +} + +// AddServiceSourceToAuthorizeSecurityGroups is a repeated param struct in AddServiceSourceRequest +type AddServiceSourceToAuthorizeSecurityGroups struct { + PortRange string `name:"PortRange"` + SecurityGroupId string `name:"SecurityGroupId"` + Description string `name:"Description"` } // AddServiceSourceIngressOptionsRequest is a repeated param struct in AddServiceSourceRequest diff --git a/services/mse/apply_tag_policies.go b/services/mse/apply_tag_policies.go index e6aab765f..3002726ca 100644 --- a/services/mse/apply_tag_policies.go +++ b/services/mse/apply_tag_policies.go @@ -71,16 +71,92 @@ func (client *Client) ApplyTagPoliciesWithCallback(request *ApplyTagPoliciesRequ // ApplyTagPoliciesRequest is the request struct for api ApplyTagPolicies type ApplyTagPoliciesRequest struct { *requests.RpcRequest - MseSessionId string `position:"Query" name:"MseSessionId"` - Rules string `position:"Query" name:"Rules"` - Source string `position:"Query" name:"Source"` - AppName string `position:"Query" name:"AppName"` - NamespaceId string `position:"Query" name:"NamespaceId"` - Enable requests.Boolean `position:"Query" name:"Enable"` - AppId string `position:"Query" name:"AppId"` - Namespace string `position:"Query" name:"Namespace"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` - Region string `position:"Query" name:"Region"` + MseSessionId string `position:"Query" name:"MseSessionId"` + Rules map[string]ApplyTagPoliciesRules `position:"Query" name:"Rules" type:"Map"` + Source string `position:"Query" name:"Source"` + AppName string `position:"Query" name:"AppName"` + NamespaceId string `position:"Query" name:"NamespaceId"` + Enable requests.Boolean `position:"Query" name:"Enable"` + AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + Region string `position:"Query" name:"Region"` +} + +// ApplyTagPoliciesRules is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRules struct { + Rate string `name:"Rate"` + Enable string `name:"Enable"` + InstanceNum string `name:"InstanceNum"` + Name string `name:"Name"` + CarryData string `name:"CarryData"` + Rules ApplyTagPoliciesRulesRules `name:"Rules" type:"Struct"` + Tag string `name:"Tag"` + Id string `name:"Id"` + Remove string `name:"remove"` + Status string `name:"Status"` +} + +// ApplyTagPoliciesRulesRules is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRulesRules struct { + Springcloud *[]ApplyTagPoliciesRulesRulesSpringcloudItem `name:"springcloud" type:"Repeated"` + Dubbo *[]ApplyTagPoliciesRulesRulesDubboItem `name:"dubbo" type:"Repeated"` +} + +// ApplyTagPoliciesRulesRulesSpringcloudItem is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRulesRulesSpringcloudItem struct { + RestItems *[]ApplyTagPoliciesRulesRulesSpringcloudItemRestItemsItem `name:"restItems" type:"Repeated"` + Path string `name:"path"` + Condition string `name:"condition"` + Enable string `name:"enable"` + Paths *[]string `name:"paths" type:"Repeated"` + AppId string `name:"appId"` + Priority string `name:"priority"` + TriggerPolicy string `name:"triggerPolicy"` + Tags *[]string `name:"tags" type:"Repeated"` +} + +// ApplyTagPoliciesRulesRulesDubboItem is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRulesRulesDubboItem struct { + ParamTypes *[]string `name:"paramTypes" type:"Repeated"` + Condition string `name:"condition"` + AppId string `name:"appId"` + CarryData string `name:"carryData"` + ServiceName string `name:"serviceName"` + TriggerPolicy string `name:"triggerPolicy"` + Version string `name:"version"` + ArgumentItems *[]ApplyTagPoliciesRulesRulesDubboItemArgumentItemsItem `name:"argumentItems" type:"Repeated"` + Tags *[]string `name:"tags" type:"Repeated"` + Group string `name:"group"` + MethodName string `name:"methodName"` +} + +// ApplyTagPoliciesRulesRulesSpringcloudItemRestItemsItem is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRulesRulesSpringcloudItemRestItemsItem struct { + Datum string `name:"datum"` + Divisor string `name:"divisor"` + Rate string `name:"rate"` + NameList *[]string `name:"nameList" type:"Repeated"` + Name string `name:"name"` + Cond string `name:"cond"` + Type string `name:"type"` + Remainder string `name:"remainder"` + Value string `name:"value"` + Operator string `name:"operator"` +} + +// ApplyTagPoliciesRulesRulesDubboItemArgumentItemsItem is a repeated param struct in ApplyTagPoliciesRequest +type ApplyTagPoliciesRulesRulesDubboItemArgumentItemsItem struct { + Datum string `name:"datum"` + Divisor string `name:"divisor"` + Rate string `name:"rate"` + NameList *[]string `name:"nameList" type:"Repeated"` + Index string `name:"index"` + Expr string `name:"expr"` + Cond string `name:"cond"` + Remainder string `name:"remainder"` + Value string `name:"value"` + Operator string `name:"operator"` } // ApplyTagPoliciesResponse is the response struct for api ApplyTagPolicies diff --git a/services/mse/bind_sentinel_block_fallback_definition.go b/services/mse/bind_sentinel_block_fallback_definition.go new file mode 100644 index 000000000..ec4112f74 --- /dev/null +++ b/services/mse/bind_sentinel_block_fallback_definition.go @@ -0,0 +1,110 @@ +package mse + +//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" +) + +// BindSentinelBlockFallbackDefinition invokes the mse.BindSentinelBlockFallbackDefinition API synchronously +func (client *Client) BindSentinelBlockFallbackDefinition(request *BindSentinelBlockFallbackDefinitionRequest) (response *BindSentinelBlockFallbackDefinitionResponse, err error) { + response = CreateBindSentinelBlockFallbackDefinitionResponse() + err = client.DoAction(request, response) + return +} + +// BindSentinelBlockFallbackDefinitionWithChan invokes the mse.BindSentinelBlockFallbackDefinition API asynchronously +func (client *Client) BindSentinelBlockFallbackDefinitionWithChan(request *BindSentinelBlockFallbackDefinitionRequest) (<-chan *BindSentinelBlockFallbackDefinitionResponse, <-chan error) { + responseChan := make(chan *BindSentinelBlockFallbackDefinitionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BindSentinelBlockFallbackDefinition(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BindSentinelBlockFallbackDefinitionWithCallback invokes the mse.BindSentinelBlockFallbackDefinition API asynchronously +func (client *Client) BindSentinelBlockFallbackDefinitionWithCallback(request *BindSentinelBlockFallbackDefinitionRequest, callback func(response *BindSentinelBlockFallbackDefinitionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BindSentinelBlockFallbackDefinitionResponse + var err error + defer close(result) + response, err = client.BindSentinelBlockFallbackDefinition(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BindSentinelBlockFallbackDefinitionRequest is the request struct for api BindSentinelBlockFallbackDefinition +type BindSentinelBlockFallbackDefinitionRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + TargetType string `position:"Query" name:"TargetType"` + AppName string `position:"Query" name:"AppName"` + Resource string `position:"Query" name:"Resource"` + FallbackId requests.Integer `position:"Query" name:"FallbackId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// BindSentinelBlockFallbackDefinitionResponse is the response struct for api BindSentinelBlockFallbackDefinition +type BindSentinelBlockFallbackDefinitionResponse struct { + *responses.BaseResponse + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Data bool `json:"Data" xml:"Data"` + Code int `json:"Code" xml:"Code"` + Success string `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` +} + +// CreateBindSentinelBlockFallbackDefinitionRequest creates a request to invoke BindSentinelBlockFallbackDefinition API +func CreateBindSentinelBlockFallbackDefinitionRequest() (request *BindSentinelBlockFallbackDefinitionRequest) { + request = &BindSentinelBlockFallbackDefinitionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "BindSentinelBlockFallbackDefinition", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateBindSentinelBlockFallbackDefinitionResponse creates a response to parse from BindSentinelBlockFallbackDefinition response +func CreateBindSentinelBlockFallbackDefinitionResponse() (response *BindSentinelBlockFallbackDefinitionResponse) { + response = &BindSentinelBlockFallbackDefinitionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/change_resource_group.go b/services/mse/change_resource_group.go new file mode 100644 index 000000000..1c7e4e746 --- /dev/null +++ b/services/mse/change_resource_group.go @@ -0,0 +1,105 @@ +package mse + +//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" +) + +// ChangeResourceGroup invokes the mse.ChangeResourceGroup API synchronously +func (client *Client) ChangeResourceGroup(request *ChangeResourceGroupRequest) (response *ChangeResourceGroupResponse, err error) { + response = CreateChangeResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// ChangeResourceGroupWithChan invokes the mse.ChangeResourceGroup API asynchronously +func (client *Client) ChangeResourceGroupWithChan(request *ChangeResourceGroupRequest) (<-chan *ChangeResourceGroupResponse, <-chan error) { + responseChan := make(chan *ChangeResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ChangeResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ChangeResourceGroupWithCallback invokes the mse.ChangeResourceGroup API asynchronously +func (client *Client) ChangeResourceGroupWithCallback(request *ChangeResourceGroupRequest, callback func(response *ChangeResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ChangeResourceGroupResponse + var err error + defer close(result) + response, err = client.ChangeResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ChangeResourceGroupRequest is the request struct for api ChangeResourceGroup +type ChangeResourceGroupRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + ResourceRegionId string `position:"Query" name:"ResourceRegionId"` + ResourceId string `position:"Query" name:"ResourceId"` + ResourceType string `position:"Query" name:"ResourceType"` + Service string `position:"Query" name:"Service"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ChangeResourceGroupResponse is the response struct for api ChangeResourceGroup +type ChangeResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateChangeResourceGroupRequest creates a request to invoke ChangeResourceGroup API +func CreateChangeResourceGroupRequest() (request *ChangeResourceGroupRequest) { + request = &ChangeResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ChangeResourceGroup", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateChangeResourceGroupResponse creates a response to parse from ChangeResourceGroup response +func CreateChangeResourceGroupResponse() (response *ChangeResourceGroupResponse) { + response = &ChangeResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/clone_nacos_config.go b/services/mse/clone_nacos_config.go index 6eab51d51..be1aa9106 100644 --- a/services/mse/clone_nacos_config.go +++ b/services/mse/clone_nacos_config.go @@ -73,6 +73,7 @@ type CloneNacosConfigRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` TargetNamespaceId string `position:"Query" name:"TargetNamespaceId"` + DataIds string `position:"Query" name:"DataIds"` OriginNamespaceId string `position:"Query" name:"OriginNamespaceId"` Policy string `position:"Query" name:"Policy"` InstanceId string `position:"Query" name:"InstanceId"` diff --git a/services/mse/clone_sentinel_rule_from_ahas.go b/services/mse/clone_sentinel_rule_from_ahas.go new file mode 100644 index 000000000..37f51cc84 --- /dev/null +++ b/services/mse/clone_sentinel_rule_from_ahas.go @@ -0,0 +1,104 @@ +package mse + +//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" +) + +// CloneSentinelRuleFromAhas invokes the mse.CloneSentinelRuleFromAhas API synchronously +func (client *Client) CloneSentinelRuleFromAhas(request *CloneSentinelRuleFromAhasRequest) (response *CloneSentinelRuleFromAhasResponse, err error) { + response = CreateCloneSentinelRuleFromAhasResponse() + err = client.DoAction(request, response) + return +} + +// CloneSentinelRuleFromAhasWithChan invokes the mse.CloneSentinelRuleFromAhas API asynchronously +func (client *Client) CloneSentinelRuleFromAhasWithChan(request *CloneSentinelRuleFromAhasRequest) (<-chan *CloneSentinelRuleFromAhasResponse, <-chan error) { + responseChan := make(chan *CloneSentinelRuleFromAhasResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CloneSentinelRuleFromAhas(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CloneSentinelRuleFromAhasWithCallback invokes the mse.CloneSentinelRuleFromAhas API asynchronously +func (client *Client) CloneSentinelRuleFromAhasWithCallback(request *CloneSentinelRuleFromAhasRequest, callback func(response *CloneSentinelRuleFromAhasResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CloneSentinelRuleFromAhasResponse + var err error + defer close(result) + response, err = client.CloneSentinelRuleFromAhas(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CloneSentinelRuleFromAhasRequest is the request struct for api CloneSentinelRuleFromAhas +type CloneSentinelRuleFromAhasRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + NeedRemoveRestPrefix requests.Boolean `position:"Query" name:"NeedRemoveRestPrefix"` + AppName string `position:"Query" name:"AppName"` + Namespace string `position:"Query" name:"Namespace"` + IsAHASPublicRegion requests.Boolean `position:"Query" name:"IsAHASPublicRegion"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + AhasNamespace string `position:"Query" name:"AhasNamespace"` +} + +// CloneSentinelRuleFromAhasResponse is the response struct for api CloneSentinelRuleFromAhas +type CloneSentinelRuleFromAhasResponse struct { + *responses.BaseResponse +} + +// CreateCloneSentinelRuleFromAhasRequest creates a request to invoke CloneSentinelRuleFromAhas API +func CreateCloneSentinelRuleFromAhasRequest() (request *CloneSentinelRuleFromAhasRequest) { + request = &CloneSentinelRuleFromAhasRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CloneSentinelRuleFromAhas", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCloneSentinelRuleFromAhasResponse creates a response to parse from CloneSentinelRuleFromAhas response +func CreateCloneSentinelRuleFromAhasResponse() (response *CloneSentinelRuleFromAhasResponse) { + response = &CloneSentinelRuleFromAhasResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/create_circuit_breaker_rule.go b/services/mse/create_circuit_breaker_rule.go index 1e61e4b92..95d625ce9 100644 --- a/services/mse/create_circuit_breaker_rule.go +++ b/services/mse/create_circuit_breaker_rule.go @@ -80,6 +80,7 @@ type CreateCircuitBreakerRuleRequest struct { Resource string `position:"Query" name:"Resource"` MaxAllowedRtMs requests.Integer `position:"Query" name:"MaxAllowedRtMs"` HalfOpenBaseAmountPerStep requests.Integer `position:"Query" name:"HalfOpenBaseAmountPerStep"` + ResourceType requests.Integer `position:"Query" name:"ResourceType"` StatIntervalMs requests.Integer `position:"Query" name:"StatIntervalMs"` AppId string `position:"Query" name:"AppId"` Namespace string `position:"Query" name:"Namespace"` diff --git a/services/mse/create_cluster.go b/services/mse/create_cluster.go index 8a1a1f38e..dc452e1e8 100644 --- a/services/mse/create_cluster.go +++ b/services/mse/create_cluster.go @@ -78,6 +78,7 @@ type CreateClusterRequest struct { Tag *[]CreateClusterTag `position:"Query" name:"Tag" type:"Repeated"` VSwitchId string `position:"Query" name:"VSwitchId"` ClusterType string `position:"Query" name:"ClusterType"` + SecurityGroupType string `position:"Query" name:"SecurityGroupType"` InstanceName string `position:"Query" name:"InstanceName"` NetType string `position:"Query" name:"NetType"` MseVersion string `position:"Query" name:"MseVersion"` @@ -88,6 +89,7 @@ type CreateClusterRequest struct { ConnectionType string `position:"Query" name:"ConnectionType"` ClusterVersion string `position:"Query" name:"ClusterVersion"` DiskCapacity requests.Integer `position:"Query" name:"DiskCapacity"` + EipEnabled requests.Boolean `position:"Query" name:"EipEnabled"` DiskType string `position:"Query" name:"DiskType"` PubNetworkFlow string `position:"Query" name:"PubNetworkFlow"` VpcId string `position:"Query" name:"VpcId"` diff --git a/services/mse/create_flow_rule.go b/services/mse/create_flow_rule.go index ef0f20909..1f5fd3108 100644 --- a/services/mse/create_flow_rule.go +++ b/services/mse/create_flow_rule.go @@ -72,15 +72,16 @@ func (client *Client) CreateFlowRuleWithCallback(request *CreateFlowRuleRequest, type CreateFlowRuleRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` - ControlBehavior requests.Integer `position:"Query" name:"ControlBehavior"` Threshold requests.Integer `position:"Query" name:"Threshold"` AppName string `position:"Query" name:"AppName"` Enable requests.Boolean `position:"Query" name:"Enable"` Resource string `position:"Query" name:"Resource"` + MaxQueueingTimeMs requests.Integer `position:"Query" name:"MaxQueueingTimeMs"` + ControlBehavior requests.Integer `position:"Query" name:"ControlBehavior"` + ResourceType requests.Integer `position:"Query" name:"ResourceType"` AppId string `position:"Query" name:"AppId"` Namespace string `position:"Query" name:"Namespace"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` - MaxQueueingTimeMs requests.Integer `position:"Query" name:"MaxQueueingTimeMs"` } // CreateFlowRuleResponse is the response struct for api CreateFlowRule diff --git a/services/mse/create_gateway_circuit_breaker_rule.go b/services/mse/create_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..d834a576a --- /dev/null +++ b/services/mse/create_gateway_circuit_breaker_rule.go @@ -0,0 +1,117 @@ +package mse + +//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" +) + +// CreateGatewayCircuitBreakerRule invokes the mse.CreateGatewayCircuitBreakerRule API synchronously +func (client *Client) CreateGatewayCircuitBreakerRule(request *CreateGatewayCircuitBreakerRuleRequest) (response *CreateGatewayCircuitBreakerRuleResponse, err error) { + response = CreateCreateGatewayCircuitBreakerRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateGatewayCircuitBreakerRuleWithChan invokes the mse.CreateGatewayCircuitBreakerRule API asynchronously +func (client *Client) CreateGatewayCircuitBreakerRuleWithChan(request *CreateGatewayCircuitBreakerRuleRequest) (<-chan *CreateGatewayCircuitBreakerRuleResponse, <-chan error) { + responseChan := make(chan *CreateGatewayCircuitBreakerRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGatewayCircuitBreakerRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGatewayCircuitBreakerRuleWithCallback invokes the mse.CreateGatewayCircuitBreakerRule API asynchronously +func (client *Client) CreateGatewayCircuitBreakerRuleWithCallback(request *CreateGatewayCircuitBreakerRuleRequest, callback func(response *CreateGatewayCircuitBreakerRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGatewayCircuitBreakerRuleResponse + var err error + defer close(result) + response, err = client.CreateGatewayCircuitBreakerRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGatewayCircuitBreakerRuleRequest is the request struct for api CreateGatewayCircuitBreakerRule +type CreateGatewayCircuitBreakerRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + MaxAllowedMs requests.Integer `position:"Query" name:"MaxAllowedMs"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + MinRequestAmount requests.Integer `position:"Query" name:"MinRequestAmount"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + TriggerRatio requests.Integer `position:"Query" name:"TriggerRatio"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + StatDurationSec requests.Integer `position:"Query" name:"StatDurationSec"` + RecoveryTimeoutSec requests.Integer `position:"Query" name:"RecoveryTimeoutSec"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` + Strategy requests.Integer `position:"Query" name:"Strategy"` +} + +// CreateGatewayCircuitBreakerRuleResponse is the response struct for api CreateGatewayCircuitBreakerRule +type CreateGatewayCircuitBreakerRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data int64 `json:"Data" xml:"Data"` +} + +// CreateCreateGatewayCircuitBreakerRuleRequest creates a request to invoke CreateGatewayCircuitBreakerRule API +func CreateCreateGatewayCircuitBreakerRuleRequest() (request *CreateGatewayCircuitBreakerRuleRequest) { + request = &CreateGatewayCircuitBreakerRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CreateGatewayCircuitBreakerRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateGatewayCircuitBreakerRuleResponse creates a response to parse from CreateGatewayCircuitBreakerRule response +func CreateCreateGatewayCircuitBreakerRuleResponse() (response *CreateGatewayCircuitBreakerRuleResponse) { + response = &CreateGatewayCircuitBreakerRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/create_gateway_flow_rule.go b/services/mse/create_gateway_flow_rule.go new file mode 100644 index 000000000..2c0be579c --- /dev/null +++ b/services/mse/create_gateway_flow_rule.go @@ -0,0 +1,112 @@ +package mse + +//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" +) + +// CreateGatewayFlowRule invokes the mse.CreateGatewayFlowRule API synchronously +func (client *Client) CreateGatewayFlowRule(request *CreateGatewayFlowRuleRequest) (response *CreateGatewayFlowRuleResponse, err error) { + response = CreateCreateGatewayFlowRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateGatewayFlowRuleWithChan invokes the mse.CreateGatewayFlowRule API asynchronously +func (client *Client) CreateGatewayFlowRuleWithChan(request *CreateGatewayFlowRuleRequest) (<-chan *CreateGatewayFlowRuleResponse, <-chan error) { + responseChan := make(chan *CreateGatewayFlowRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGatewayFlowRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGatewayFlowRuleWithCallback invokes the mse.CreateGatewayFlowRule API asynchronously +func (client *Client) CreateGatewayFlowRuleWithCallback(request *CreateGatewayFlowRuleRequest, callback func(response *CreateGatewayFlowRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGatewayFlowRuleResponse + var err error + defer close(result) + response, err = client.CreateGatewayFlowRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGatewayFlowRuleRequest is the request struct for api CreateGatewayFlowRule +type CreateGatewayFlowRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + Threshold requests.Integer `position:"Query" name:"Threshold"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` +} + +// CreateGatewayFlowRuleResponse is the response struct for api CreateGatewayFlowRule +type CreateGatewayFlowRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data int64 `json:"Data" xml:"Data"` +} + +// CreateCreateGatewayFlowRuleRequest creates a request to invoke CreateGatewayFlowRule API +func CreateCreateGatewayFlowRuleRequest() (request *CreateGatewayFlowRuleRequest) { + request = &CreateGatewayFlowRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CreateGatewayFlowRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateGatewayFlowRuleResponse creates a response to parse from CreateGatewayFlowRule response +func CreateCreateGatewayFlowRuleResponse() (response *CreateGatewayFlowRuleResponse) { + response = &CreateGatewayFlowRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/create_gateway_isolation_rule.go b/services/mse/create_gateway_isolation_rule.go new file mode 100644 index 000000000..ae96a4d2f --- /dev/null +++ b/services/mse/create_gateway_isolation_rule.go @@ -0,0 +1,112 @@ +package mse + +//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" +) + +// CreateGatewayIsolationRule invokes the mse.CreateGatewayIsolationRule API synchronously +func (client *Client) CreateGatewayIsolationRule(request *CreateGatewayIsolationRuleRequest) (response *CreateGatewayIsolationRuleResponse, err error) { + response = CreateCreateGatewayIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateGatewayIsolationRuleWithChan invokes the mse.CreateGatewayIsolationRule API asynchronously +func (client *Client) CreateGatewayIsolationRuleWithChan(request *CreateGatewayIsolationRuleRequest) (<-chan *CreateGatewayIsolationRuleResponse, <-chan error) { + responseChan := make(chan *CreateGatewayIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateGatewayIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateGatewayIsolationRuleWithCallback invokes the mse.CreateGatewayIsolationRule API asynchronously +func (client *Client) CreateGatewayIsolationRuleWithCallback(request *CreateGatewayIsolationRuleRequest, callback func(response *CreateGatewayIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateGatewayIsolationRuleResponse + var err error + defer close(result) + response, err = client.CreateGatewayIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateGatewayIsolationRuleRequest is the request struct for api CreateGatewayIsolationRule +type CreateGatewayIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + MaxConcurrency requests.Integer `position:"Query" name:"MaxConcurrency"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` +} + +// CreateGatewayIsolationRuleResponse is the response struct for api CreateGatewayIsolationRule +type CreateGatewayIsolationRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data int64 `json:"Data" xml:"Data"` +} + +// CreateCreateGatewayIsolationRuleRequest creates a request to invoke CreateGatewayIsolationRule API +func CreateCreateGatewayIsolationRuleRequest() (request *CreateGatewayIsolationRuleRequest) { + request = &CreateGatewayIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CreateGatewayIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateGatewayIsolationRuleResponse creates a response to parse from CreateGatewayIsolationRule response +func CreateCreateGatewayIsolationRuleResponse() (response *CreateGatewayIsolationRuleResponse) { + response = &CreateGatewayIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/create_isolation_rule.go b/services/mse/create_isolation_rule.go new file mode 100644 index 000000000..f5131b34b --- /dev/null +++ b/services/mse/create_isolation_rule.go @@ -0,0 +1,111 @@ +package mse + +//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" +) + +// CreateIsolationRule invokes the mse.CreateIsolationRule API synchronously +func (client *Client) CreateIsolationRule(request *CreateIsolationRuleRequest) (response *CreateIsolationRuleResponse, err error) { + response = CreateCreateIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// CreateIsolationRuleWithChan invokes the mse.CreateIsolationRule API asynchronously +func (client *Client) CreateIsolationRuleWithChan(request *CreateIsolationRuleRequest) (<-chan *CreateIsolationRuleResponse, <-chan error) { + responseChan := make(chan *CreateIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreateIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreateIsolationRuleWithCallback invokes the mse.CreateIsolationRule API asynchronously +func (client *Client) CreateIsolationRuleWithCallback(request *CreateIsolationRuleRequest, callback func(response *CreateIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreateIsolationRuleResponse + var err error + defer close(result) + response, err = client.CreateIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreateIsolationRuleRequest is the request struct for api CreateIsolationRule +type CreateIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + Threshold requests.Float `position:"Query" name:"Threshold"` + AppName string `position:"Query" name:"AppName"` + Enable requests.Boolean `position:"Query" name:"Enable"` + Resource string `position:"Query" name:"Resource"` + ResourceType requests.Integer `position:"Query" name:"ResourceType"` + AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// CreateIsolationRuleResponse is the response struct for api CreateIsolationRule +type CreateIsolationRuleResponse 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 DataInCreateIsolationRule `json:"Data" xml:"Data"` +} + +// CreateCreateIsolationRuleRequest creates a request to invoke CreateIsolationRule API +func CreateCreateIsolationRuleRequest() (request *CreateIsolationRuleRequest) { + request = &CreateIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CreateIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreateIsolationRuleResponse creates a response to parse from CreateIsolationRule response +func CreateCreateIsolationRuleResponse() (response *CreateIsolationRuleResponse) { + response = &CreateIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/create_nacos_config.go b/services/mse/create_nacos_config.go index 85b3614ce..f202eb62b 100644 --- a/services/mse/create_nacos_config.go +++ b/services/mse/create_nacos_config.go @@ -73,7 +73,7 @@ type CreateNacosConfigRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` Type string `position:"Query" name:"Type"` - Content string `position:"Query" name:"Content"` + Content string `position:"Body" name:"Content"` AppName string `position:"Query" name:"AppName"` NamespaceId string `position:"Query" name:"NamespaceId"` Group string `position:"Query" name:"Group"` diff --git a/services/mse/create_or_update_swimming_lane.go b/services/mse/create_or_update_swimming_lane.go index bf5df622e..78809f219 100644 --- a/services/mse/create_or_update_swimming_lane.go +++ b/services/mse/create_or_update_swimming_lane.go @@ -71,18 +71,19 @@ func (client *Client) CreateOrUpdateSwimmingLaneWithCallback(request *CreateOrUp // CreateOrUpdateSwimmingLaneRequest is the request struct for api CreateOrUpdateSwimmingLane type CreateOrUpdateSwimmingLaneRequest struct { *requests.RpcRequest - MseSessionId string `position:"Query" name:"MseSessionId"` - EntryRule string `position:"Query" name:"EntryRule"` - Enable requests.Boolean `position:"Query" name:"Enable"` - Id requests.Integer `position:"Query" name:"Id"` - Tag string `position:"Query" name:"Tag"` - EntryRules *[]CreateOrUpdateSwimmingLaneEntryRules `position:"Body" name:"EntryRules" type:"Repeated"` - GroupId requests.Integer `position:"Query" name:"GroupId"` - EnableRules requests.Boolean `position:"Query" name:"EnableRules"` - Name string `position:"Query" name:"Name"` - GatewaySwimmingLaneRouteJson CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJson `position:"Query" name:"GatewaySwimmingLaneRouteJson" type:"Struct"` - Namespace string `position:"Query" name:"Namespace"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + MseSessionId string `position:"Query" name:"MseSessionId"` + EntryRule string `position:"Query" name:"EntryRule"` + Enable requests.Boolean `position:"Query" name:"Enable"` + Id requests.Integer `position:"Query" name:"Id"` + Tag string `position:"Query" name:"Tag"` + EntryRules *[]CreateOrUpdateSwimmingLaneEntryRules `position:"Body" name:"EntryRules" type:"Repeated"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + EnableRules requests.Boolean `position:"Query" name:"EnableRules"` + Name string `position:"Query" name:"Name"` + GatewaySwimmingLaneRouteJson CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJson `position:"Query" name:"GatewaySwimmingLaneRouteJson" type:"Struct"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + PathIndependentPercentageEnable requests.Boolean `position:"Query" name:"PathIndependentPercentageEnable"` } // CreateOrUpdateSwimmingLaneEntryRules is a repeated param struct in CreateOrUpdateSwimmingLaneRequest @@ -95,10 +96,15 @@ type CreateOrUpdateSwimmingLaneEntryRules struct { // CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJson is a repeated param struct in CreateOrUpdateSwimmingLaneRequest type CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJson struct { - GatewayUniqueId string `name:"GatewayUniqueId"` - RouteIdList *[]string `name:"RouteIdList" type:"Repeated"` - Conditions *[]CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonConditionsItem `name:"Conditions" type:"Repeated"` - GatewayId string `name:"GatewayId"` + CanaryModel string `name:"CanaryModel"` + Condition string `name:"Condition"` + GatewayUniqueId string `name:"GatewayUniqueId"` + RouteIndependentPercentageEnable string `name:"RouteIndependentPercentageEnable"` + RouteIdList *[]string `name:"RouteIdList" type:"Repeated"` + Percentage string `name:"Percentage"` + RouteIndependentPercentageList *[]CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonRouteIndependentPercentageListItem `name:"RouteIndependentPercentageList" type:"Repeated"` + Conditions *[]CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonConditionsItem `name:"Conditions" type:"Repeated"` + GatewayId string `name:"GatewayId"` } // CreateOrUpdateSwimmingLaneEntryRulesRestItems is a repeated param struct in CreateOrUpdateSwimmingLaneRequest @@ -115,6 +121,12 @@ type CreateOrUpdateSwimmingLaneEntryRulesRestItems struct { Operator string `name:"Operator"` } +// CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonRouteIndependentPercentageListItem is a repeated param struct in CreateOrUpdateSwimmingLaneRequest +type CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonRouteIndependentPercentageListItem struct { + RouteId string `name:"RouteId"` + Percentage string `name:"Percentage"` +} + // CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonConditionsItem is a repeated param struct in CreateOrUpdateSwimmingLaneRequest type CreateOrUpdateSwimmingLaneGatewaySwimmingLaneRouteJsonConditionsItem struct { Name string `name:"Name"` diff --git a/services/mse/create_or_update_swimming_lane_group.go b/services/mse/create_or_update_swimming_lane_group.go index 468fa5870..68d12ad63 100644 --- a/services/mse/create_or_update_swimming_lane_group.go +++ b/services/mse/create_or_update_swimming_lane_group.go @@ -75,7 +75,11 @@ type CreateOrUpdateSwimmingLaneGroupRequest struct { AppIds string `position:"Query" name:"AppIds"` DbGrayEnable requests.Boolean `position:"Query" name:"DbGrayEnable"` Enable requests.Boolean `position:"Query" name:"Enable"` + SwimVersion requests.Integer `position:"Query" name:"SwimVersion"` Id requests.Integer `position:"Query" name:"Id"` + RouteIds *[]string `position:"Query" name:"RouteIds" type:"Json"` + CanaryModel requests.Integer `position:"Query" name:"CanaryModel"` + Paths *[]string `position:"Query" name:"Paths" type:"Json"` Name string `position:"Query" name:"Name"` MessageQueueFilterSide string `position:"Query" name:"MessageQueueFilterSide"` Region string `position:"Query" name:"Region"` diff --git a/services/mse/create_plugin_config.go b/services/mse/create_plugin_config.go new file mode 100644 index 000000000..203756c9f --- /dev/null +++ b/services/mse/create_plugin_config.go @@ -0,0 +1,107 @@ +package mse + +//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" +) + +// CreatePluginConfig invokes the mse.CreatePluginConfig API synchronously +func (client *Client) CreatePluginConfig(request *CreatePluginConfigRequest) (response *CreatePluginConfigResponse, err error) { + response = CreateCreatePluginConfigResponse() + err = client.DoAction(request, response) + return +} + +// CreatePluginConfigWithChan invokes the mse.CreatePluginConfig API asynchronously +func (client *Client) CreatePluginConfigWithChan(request *CreatePluginConfigRequest) (<-chan *CreatePluginConfigResponse, <-chan error) { + responseChan := make(chan *CreatePluginConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.CreatePluginConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// CreatePluginConfigWithCallback invokes the mse.CreatePluginConfig API asynchronously +func (client *Client) CreatePluginConfigWithCallback(request *CreatePluginConfigRequest, callback func(response *CreatePluginConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *CreatePluginConfigResponse + var err error + defer close(result) + response, err = client.CreatePluginConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// CreatePluginConfigRequest is the request struct for api CreatePluginConfig +type CreatePluginConfigRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + ResourceIdList *[]string `position:"Query" name:"ResourceIdList" type:"Json"` + Enable requests.Boolean `position:"Query" name:"Enable"` + PluginId requests.Integer `position:"Query" name:"PluginId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ConfigLevel requests.Integer `position:"Query" name:"ConfigLevel"` + Config string `position:"Query" name:"Config"` +} + +// CreatePluginConfigResponse is the response struct for api CreatePluginConfig +type CreatePluginConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + PluginConfigID int64 `json:"PluginConfigID" xml:"PluginConfigID"` +} + +// CreateCreatePluginConfigRequest creates a request to invoke CreatePluginConfig API +func CreateCreatePluginConfigRequest() (request *CreatePluginConfigRequest) { + request = &CreatePluginConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "CreatePluginConfig", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateCreatePluginConfigResponse creates a response to parse from CreatePluginConfig response +func CreateCreatePluginConfigResponse() (response *CreatePluginConfigResponse) { + response = &CreatePluginConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_gateway_circuit_breaker_rule.go b/services/mse/delete_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..70eaf4848 --- /dev/null +++ b/services/mse/delete_gateway_circuit_breaker_rule.go @@ -0,0 +1,104 @@ +package mse + +//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" +) + +// DeleteGatewayCircuitBreakerRule invokes the mse.DeleteGatewayCircuitBreakerRule API synchronously +func (client *Client) DeleteGatewayCircuitBreakerRule(request *DeleteGatewayCircuitBreakerRuleRequest) (response *DeleteGatewayCircuitBreakerRuleResponse, err error) { + response = CreateDeleteGatewayCircuitBreakerRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGatewayCircuitBreakerRuleWithChan invokes the mse.DeleteGatewayCircuitBreakerRule API asynchronously +func (client *Client) DeleteGatewayCircuitBreakerRuleWithChan(request *DeleteGatewayCircuitBreakerRuleRequest) (<-chan *DeleteGatewayCircuitBreakerRuleResponse, <-chan error) { + responseChan := make(chan *DeleteGatewayCircuitBreakerRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGatewayCircuitBreakerRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGatewayCircuitBreakerRuleWithCallback invokes the mse.DeleteGatewayCircuitBreakerRule API asynchronously +func (client *Client) DeleteGatewayCircuitBreakerRuleWithCallback(request *DeleteGatewayCircuitBreakerRuleRequest, callback func(response *DeleteGatewayCircuitBreakerRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGatewayCircuitBreakerRuleResponse + var err error + defer close(result) + response, err = client.DeleteGatewayCircuitBreakerRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGatewayCircuitBreakerRuleRequest is the request struct for api DeleteGatewayCircuitBreakerRule +type DeleteGatewayCircuitBreakerRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + RuleId requests.Integer `position:"Query" name:"RuleId"` +} + +// DeleteGatewayCircuitBreakerRuleResponse is the response struct for api DeleteGatewayCircuitBreakerRule +type DeleteGatewayCircuitBreakerRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateDeleteGatewayCircuitBreakerRuleRequest creates a request to invoke DeleteGatewayCircuitBreakerRule API +func CreateDeleteGatewayCircuitBreakerRuleRequest() (request *DeleteGatewayCircuitBreakerRuleRequest) { + request = &DeleteGatewayCircuitBreakerRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "DeleteGatewayCircuitBreakerRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteGatewayCircuitBreakerRuleResponse creates a response to parse from DeleteGatewayCircuitBreakerRule response +func CreateDeleteGatewayCircuitBreakerRuleResponse() (response *DeleteGatewayCircuitBreakerRuleResponse) { + response = &DeleteGatewayCircuitBreakerRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_gateway_flow_rule.go b/services/mse/delete_gateway_flow_rule.go new file mode 100644 index 000000000..bc0e86bb6 --- /dev/null +++ b/services/mse/delete_gateway_flow_rule.go @@ -0,0 +1,104 @@ +package mse + +//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" +) + +// DeleteGatewayFlowRule invokes the mse.DeleteGatewayFlowRule API synchronously +func (client *Client) DeleteGatewayFlowRule(request *DeleteGatewayFlowRuleRequest) (response *DeleteGatewayFlowRuleResponse, err error) { + response = CreateDeleteGatewayFlowRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGatewayFlowRuleWithChan invokes the mse.DeleteGatewayFlowRule API asynchronously +func (client *Client) DeleteGatewayFlowRuleWithChan(request *DeleteGatewayFlowRuleRequest) (<-chan *DeleteGatewayFlowRuleResponse, <-chan error) { + responseChan := make(chan *DeleteGatewayFlowRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGatewayFlowRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGatewayFlowRuleWithCallback invokes the mse.DeleteGatewayFlowRule API asynchronously +func (client *Client) DeleteGatewayFlowRuleWithCallback(request *DeleteGatewayFlowRuleRequest, callback func(response *DeleteGatewayFlowRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGatewayFlowRuleResponse + var err error + defer close(result) + response, err = client.DeleteGatewayFlowRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGatewayFlowRuleRequest is the request struct for api DeleteGatewayFlowRule +type DeleteGatewayFlowRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + RuleId requests.Integer `position:"Query" name:"RuleId"` +} + +// DeleteGatewayFlowRuleResponse is the response struct for api DeleteGatewayFlowRule +type DeleteGatewayFlowRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateDeleteGatewayFlowRuleRequest creates a request to invoke DeleteGatewayFlowRule API +func CreateDeleteGatewayFlowRuleRequest() (request *DeleteGatewayFlowRuleRequest) { + request = &DeleteGatewayFlowRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "DeleteGatewayFlowRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteGatewayFlowRuleResponse creates a response to parse from DeleteGatewayFlowRule response +func CreateDeleteGatewayFlowRuleResponse() (response *DeleteGatewayFlowRuleResponse) { + response = &DeleteGatewayFlowRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_gateway_isolation_rule.go b/services/mse/delete_gateway_isolation_rule.go new file mode 100644 index 000000000..c1656b4fb --- /dev/null +++ b/services/mse/delete_gateway_isolation_rule.go @@ -0,0 +1,104 @@ +package mse + +//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" +) + +// DeleteGatewayIsolationRule invokes the mse.DeleteGatewayIsolationRule API synchronously +func (client *Client) DeleteGatewayIsolationRule(request *DeleteGatewayIsolationRuleRequest) (response *DeleteGatewayIsolationRuleResponse, err error) { + response = CreateDeleteGatewayIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// DeleteGatewayIsolationRuleWithChan invokes the mse.DeleteGatewayIsolationRule API asynchronously +func (client *Client) DeleteGatewayIsolationRuleWithChan(request *DeleteGatewayIsolationRuleRequest) (<-chan *DeleteGatewayIsolationRuleResponse, <-chan error) { + responseChan := make(chan *DeleteGatewayIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteGatewayIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteGatewayIsolationRuleWithCallback invokes the mse.DeleteGatewayIsolationRule API asynchronously +func (client *Client) DeleteGatewayIsolationRuleWithCallback(request *DeleteGatewayIsolationRuleRequest, callback func(response *DeleteGatewayIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteGatewayIsolationRuleResponse + var err error + defer close(result) + response, err = client.DeleteGatewayIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteGatewayIsolationRuleRequest is the request struct for api DeleteGatewayIsolationRule +type DeleteGatewayIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + RuleId requests.Integer `position:"Query" name:"RuleId"` +} + +// DeleteGatewayIsolationRuleResponse is the response struct for api DeleteGatewayIsolationRule +type DeleteGatewayIsolationRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateDeleteGatewayIsolationRuleRequest creates a request to invoke DeleteGatewayIsolationRule API +func CreateDeleteGatewayIsolationRuleRequest() (request *DeleteGatewayIsolationRuleRequest) { + request = &DeleteGatewayIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "DeleteGatewayIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteGatewayIsolationRuleResponse creates a response to parse from DeleteGatewayIsolationRule response +func CreateDeleteGatewayIsolationRuleResponse() (response *DeleteGatewayIsolationRuleResponse) { + response = &DeleteGatewayIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_isolation_rules.go b/services/mse/delete_isolation_rules.go new file mode 100644 index 000000000..52d897f51 --- /dev/null +++ b/services/mse/delete_isolation_rules.go @@ -0,0 +1,108 @@ +package mse + +//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" +) + +// DeleteIsolationRules invokes the mse.DeleteIsolationRules API synchronously +func (client *Client) DeleteIsolationRules(request *DeleteIsolationRulesRequest) (response *DeleteIsolationRulesResponse, err error) { + response = CreateDeleteIsolationRulesResponse() + err = client.DoAction(request, response) + return +} + +// DeleteIsolationRulesWithChan invokes the mse.DeleteIsolationRules API asynchronously +func (client *Client) DeleteIsolationRulesWithChan(request *DeleteIsolationRulesRequest) (<-chan *DeleteIsolationRulesResponse, <-chan error) { + responseChan := make(chan *DeleteIsolationRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteIsolationRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteIsolationRulesWithCallback invokes the mse.DeleteIsolationRules API asynchronously +func (client *Client) DeleteIsolationRulesWithCallback(request *DeleteIsolationRulesRequest, callback func(response *DeleteIsolationRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteIsolationRulesResponse + var err error + defer close(result) + response, err = client.DeleteIsolationRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteIsolationRulesRequest is the request struct for api DeleteIsolationRules +type DeleteIsolationRulesRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + AppName string `position:"Query" name:"AppName"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + Ids *[]string `position:"Query" name:"Ids" type:"Json"` +} + +// DeleteIsolationRulesResponse is the response struct for api DeleteIsolationRules +type DeleteIsolationRulesResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Data []int64 `json:"Data" xml:"Data"` +} + +// CreateDeleteIsolationRulesRequest creates a request to invoke DeleteIsolationRules API +func CreateDeleteIsolationRulesRequest() (request *DeleteIsolationRulesRequest) { + request = &DeleteIsolationRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "DeleteIsolationRules", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeleteIsolationRulesResponse creates a response to parse from DeleteIsolationRules response +func CreateDeleteIsolationRulesResponse() (response *DeleteIsolationRulesResponse) { + response = &DeleteIsolationRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_plugin_config.go b/services/mse/delete_plugin_config.go new file mode 100644 index 000000000..a3821f6b9 --- /dev/null +++ b/services/mse/delete_plugin_config.go @@ -0,0 +1,102 @@ +package mse + +//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" +) + +// DeletePluginConfig invokes the mse.DeletePluginConfig API synchronously +func (client *Client) DeletePluginConfig(request *DeletePluginConfigRequest) (response *DeletePluginConfigResponse, err error) { + response = CreateDeletePluginConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeletePluginConfigWithChan invokes the mse.DeletePluginConfig API asynchronously +func (client *Client) DeletePluginConfigWithChan(request *DeletePluginConfigRequest) (<-chan *DeletePluginConfigResponse, <-chan error) { + responseChan := make(chan *DeletePluginConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeletePluginConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeletePluginConfigWithCallback invokes the mse.DeletePluginConfig API asynchronously +func (client *Client) DeletePluginConfigWithCallback(request *DeletePluginConfigRequest, callback func(response *DeletePluginConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeletePluginConfigResponse + var err error + defer close(result) + response, err = client.DeletePluginConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeletePluginConfigRequest is the request struct for api DeletePluginConfig +type DeletePluginConfigRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + PluginConfigId requests.Integer `position:"Query" name:"PluginConfigId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// DeletePluginConfigResponse is the response struct for api DeletePluginConfig +type DeletePluginConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeletePluginConfigRequest creates a request to invoke DeletePluginConfig API +func CreateDeletePluginConfigRequest() (request *DeletePluginConfigRequest) { + request = &DeletePluginConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "DeletePluginConfig", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateDeletePluginConfigResponse creates a response to parse from DeletePluginConfig response +func CreateDeletePluginConfigResponse() (response *DeletePluginConfigResponse) { + response = &DeletePluginConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/delete_security_group_rule.go b/services/mse/delete_security_group_rule.go index 751645bc0..d417d238d 100644 --- a/services/mse/delete_security_group_rule.go +++ b/services/mse/delete_security_group_rule.go @@ -75,6 +75,7 @@ type DeleteSecurityGroupRuleRequest struct { GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` Id requests.Integer `position:"Query" name:"Id"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + CascadingDelete requests.Boolean `position:"Query" name:"CascadingDelete"` } // DeleteSecurityGroupRuleResponse is the response struct for api DeleteSecurityGroupRule diff --git a/services/mse/enable_http2.go b/services/mse/enable_http2.go new file mode 100644 index 000000000..7d1b33416 --- /dev/null +++ b/services/mse/enable_http2.go @@ -0,0 +1,110 @@ +package mse + +//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" +) + +// EnableHttp2 invokes the mse.EnableHttp2 API synchronously +func (client *Client) EnableHttp2(request *EnableHttp2Request) (response *EnableHttp2Response, err error) { + response = CreateEnableHttp2Response() + err = client.DoAction(request, response) + return +} + +// EnableHttp2WithChan invokes the mse.EnableHttp2 API asynchronously +func (client *Client) EnableHttp2WithChan(request *EnableHttp2Request) (<-chan *EnableHttp2Response, <-chan error) { + responseChan := make(chan *EnableHttp2Response, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableHttp2(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableHttp2WithCallback invokes the mse.EnableHttp2 API asynchronously +func (client *Client) EnableHttp2WithCallback(request *EnableHttp2Request, callback func(response *EnableHttp2Response, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableHttp2Response + var err error + defer close(result) + response, err = client.EnableHttp2(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableHttp2Request is the request struct for api EnableHttp2 +type EnableHttp2Request struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + EnableHttp2 requests.Boolean `position:"Query" name:"EnableHttp2"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// EnableHttp2Response is the response struct for api EnableHttp2 +type EnableHttp2Response struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateEnableHttp2Request creates a request to invoke EnableHttp2 API +func CreateEnableHttp2Request() (request *EnableHttp2Request) { + request = &EnableHttp2Request{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "EnableHttp2", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateEnableHttp2Response creates a response to parse from EnableHttp2 response +func CreateEnableHttp2Response() (response *EnableHttp2Response) { + response = &EnableHttp2Response{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/enable_proxy_protocol.go b/services/mse/enable_proxy_protocol.go new file mode 100644 index 000000000..0a98c4e66 --- /dev/null +++ b/services/mse/enable_proxy_protocol.go @@ -0,0 +1,110 @@ +package mse + +//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" +) + +// EnableProxyProtocol invokes the mse.EnableProxyProtocol API synchronously +func (client *Client) EnableProxyProtocol(request *EnableProxyProtocolRequest) (response *EnableProxyProtocolResponse, err error) { + response = CreateEnableProxyProtocolResponse() + err = client.DoAction(request, response) + return +} + +// EnableProxyProtocolWithChan invokes the mse.EnableProxyProtocol API asynchronously +func (client *Client) EnableProxyProtocolWithChan(request *EnableProxyProtocolRequest) (<-chan *EnableProxyProtocolResponse, <-chan error) { + responseChan := make(chan *EnableProxyProtocolResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EnableProxyProtocol(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EnableProxyProtocolWithCallback invokes the mse.EnableProxyProtocol API asynchronously +func (client *Client) EnableProxyProtocolWithCallback(request *EnableProxyProtocolRequest, callback func(response *EnableProxyProtocolResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EnableProxyProtocolResponse + var err error + defer close(result) + response, err = client.EnableProxyProtocol(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EnableProxyProtocolRequest is the request struct for api EnableProxyProtocol +type EnableProxyProtocolRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + EnableProxyProtocol requests.Boolean `position:"Query" name:"EnableProxyProtocol"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// EnableProxyProtocolResponse is the response struct for api EnableProxyProtocol +type EnableProxyProtocolResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateEnableProxyProtocolRequest creates a request to invoke EnableProxyProtocol API +func CreateEnableProxyProtocolRequest() (request *EnableProxyProtocolRequest) { + request = &EnableProxyProtocolRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "EnableProxyProtocol", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateEnableProxyProtocolResponse creates a response to parse from EnableProxyProtocol response +func CreateEnableProxyProtocolResponse() (response *EnableProxyProtocolResponse) { + response = &EnableProxyProtocolResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/gateway_black_white_list.go b/services/mse/gateway_black_white_list.go new file mode 100644 index 000000000..725b118cf --- /dev/null +++ b/services/mse/gateway_black_white_list.go @@ -0,0 +1,124 @@ +package mse + +//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" +) + +// GatewayBlackWhiteList invokes the mse.GatewayBlackWhiteList API synchronously +func (client *Client) GatewayBlackWhiteList(request *GatewayBlackWhiteListRequest) (response *GatewayBlackWhiteListResponse, err error) { + response = CreateGatewayBlackWhiteListResponse() + err = client.DoAction(request, response) + return +} + +// GatewayBlackWhiteListWithChan invokes the mse.GatewayBlackWhiteList API asynchronously +func (client *Client) GatewayBlackWhiteListWithChan(request *GatewayBlackWhiteListRequest) (<-chan *GatewayBlackWhiteListResponse, <-chan error) { + responseChan := make(chan *GatewayBlackWhiteListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GatewayBlackWhiteList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GatewayBlackWhiteListWithCallback invokes the mse.GatewayBlackWhiteList API asynchronously +func (client *Client) GatewayBlackWhiteListWithCallback(request *GatewayBlackWhiteListRequest, callback func(response *GatewayBlackWhiteListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GatewayBlackWhiteListResponse + var err error + defer close(result) + response, err = client.GatewayBlackWhiteList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GatewayBlackWhiteListRequest is the request struct for api GatewayBlackWhiteList +type GatewayBlackWhiteListRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + OrderItem string `position:"Query" name:"OrderItem"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DescSort requests.Boolean `position:"Query" name:"DescSort"` + FilterParams GatewayBlackWhiteListFilterParams `position:"Query" name:"FilterParams" type:"Struct"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// GatewayBlackWhiteListFilterParams is a repeated param struct in GatewayBlackWhiteListRequest +type GatewayBlackWhiteListFilterParams struct { + GatewayUniqueId string `name:"GatewayUniqueId"` + IsWhite string `name:"IsWhite"` + SearchType string `name:"SearchType"` + SearchContent string `name:"SearchContent"` + Type string `name:"Type"` + ResourceType string `name:"ResourceType"` + GatewayId string `name:"GatewayId"` +} + +// GatewayBlackWhiteListResponse is the response struct for api GatewayBlackWhiteList +type GatewayBlackWhiteListResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGatewayBlackWhiteListRequest creates a request to invoke GatewayBlackWhiteList API +func CreateGatewayBlackWhiteListRequest() (request *GatewayBlackWhiteListRequest) { + request = &GatewayBlackWhiteListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "GatewayBlackWhiteList", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateGatewayBlackWhiteListResponse creates a response to parse from GatewayBlackWhiteList response +func CreateGatewayBlackWhiteListResponse() (response *GatewayBlackWhiteListResponse) { + response = &GatewayBlackWhiteListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/get_application_instance_list.go b/services/mse/get_application_instance_list.go new file mode 100644 index 000000000..5d21aa20f --- /dev/null +++ b/services/mse/get_application_instance_list.go @@ -0,0 +1,115 @@ +package mse + +//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" +) + +// GetApplicationInstanceList invokes the mse.GetApplicationInstanceList API synchronously +func (client *Client) GetApplicationInstanceList(request *GetApplicationInstanceListRequest) (response *GetApplicationInstanceListResponse, err error) { + response = CreateGetApplicationInstanceListResponse() + err = client.DoAction(request, response) + return +} + +// GetApplicationInstanceListWithChan invokes the mse.GetApplicationInstanceList API asynchronously +func (client *Client) GetApplicationInstanceListWithChan(request *GetApplicationInstanceListRequest) (<-chan *GetApplicationInstanceListResponse, <-chan error) { + responseChan := make(chan *GetApplicationInstanceListResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetApplicationInstanceList(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetApplicationInstanceListWithCallback invokes the mse.GetApplicationInstanceList API asynchronously +func (client *Client) GetApplicationInstanceListWithCallback(request *GetApplicationInstanceListRequest, callback func(response *GetApplicationInstanceListResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetApplicationInstanceListResponse + var err error + defer close(result) + response, err = client.GetApplicationInstanceList(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetApplicationInstanceListRequest is the request struct for api GetApplicationInstanceList +type GetApplicationInstanceListRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + AppName string `position:"Query" name:"AppName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + Tag string `position:"Query" name:"Tag"` + AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + Region string `position:"Query" name:"Region"` +} + +// GetApplicationInstanceListResponse is the response struct for api GetApplicationInstanceList +type GetApplicationInstanceListResponse struct { + *responses.BaseResponse + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + RequestId string `json:"RequestId" xml:"RequestId"` + Message string `json:"Message" xml:"Message"` + PageSize int `json:"PageSize" xml:"PageSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + TotalSize int `json:"TotalSize" xml:"TotalSize"` + Code int `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data DataInGetApplicationInstanceList `json:"Data" xml:"Data"` +} + +// CreateGetApplicationInstanceListRequest creates a request to invoke GetApplicationInstanceList API +func CreateGetApplicationInstanceListRequest() (request *GetApplicationInstanceListRequest) { + request = &GetApplicationInstanceListRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "GetApplicationInstanceList", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetApplicationInstanceListResponse creates a response to parse from GetApplicationInstanceList response +func CreateGetApplicationInstanceListResponse() (response *GetApplicationInstanceListResponse) { + response = &GetApplicationInstanceListResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/get_application_list.go b/services/mse/get_application_list.go index e34e5ba27..7fe2053c3 100644 --- a/services/mse/get_application_list.go +++ b/services/mse/get_application_list.go @@ -88,13 +88,13 @@ type GetApplicationListRequest struct { // GetApplicationListResponse is the response struct for api GetApplicationList type GetApplicationListResponse struct { *responses.BaseResponse - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - Success bool `json:"Success" xml:"Success"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Code int `json:"Code" xml:"Code"` - Data Data `json:"Data" xml:"Data"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Code int `json:"Code" xml:"Code"` + Data DataInGetApplicationList `json:"Data" xml:"Data"` } // CreateGetApplicationListRequest creates a request to invoke GetApplicationList API diff --git a/services/mse/get_application_list_with_metircs.go b/services/mse/get_application_list_with_metircs.go deleted file mode 100644 index aa480798d..000000000 --- a/services/mse/get_application_list_with_metircs.go +++ /dev/null @@ -1,112 +0,0 @@ -package mse - -//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" -) - -// GetApplicationListWithMetircs invokes the mse.GetApplicationListWithMetircs API synchronously -func (client *Client) GetApplicationListWithMetircs(request *GetApplicationListWithMetircsRequest) (response *GetApplicationListWithMetircsResponse, err error) { - response = CreateGetApplicationListWithMetircsResponse() - err = client.DoAction(request, response) - return -} - -// GetApplicationListWithMetircsWithChan invokes the mse.GetApplicationListWithMetircs API asynchronously -func (client *Client) GetApplicationListWithMetircsWithChan(request *GetApplicationListWithMetircsRequest) (<-chan *GetApplicationListWithMetircsResponse, <-chan error) { - responseChan := make(chan *GetApplicationListWithMetircsResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.GetApplicationListWithMetircs(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// GetApplicationListWithMetircsWithCallback invokes the mse.GetApplicationListWithMetircs API asynchronously -func (client *Client) GetApplicationListWithMetircsWithCallback(request *GetApplicationListWithMetircsRequest, callback func(response *GetApplicationListWithMetircsResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *GetApplicationListWithMetircsResponse - var err error - defer close(result) - response, err = client.GetApplicationListWithMetircs(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// GetApplicationListWithMetircsRequest is the request struct for api GetApplicationListWithMetircs -type GetApplicationListWithMetircsRequest struct { - *requests.RpcRequest - MseSessionId string `position:"Query" name:"MseSessionId"` - Source string `position:"Query" name:"Source"` - PageNumber requests.Integer `position:"Query" name:"PageNumber"` - AppName string `position:"Query" name:"AppName"` - PageSize requests.Integer `position:"Query" name:"PageSize"` - AppId string `position:"Query" name:"AppId"` - Namespace string `position:"Query" name:"Namespace"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` - Region string `position:"Query" name:"Region"` -} - -// GetApplicationListWithMetircsResponse is the response struct for api GetApplicationListWithMetircs -type GetApplicationListWithMetircsResponse struct { - *responses.BaseResponse - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Code int `json:"Code" xml:"Code"` - Success bool `json:"Success" xml:"Success"` - Data Data `json:"Data" xml:"Data"` -} - -// CreateGetApplicationListWithMetircsRequest creates a request to invoke GetApplicationListWithMetircs API -func CreateGetApplicationListWithMetircsRequest() (request *GetApplicationListWithMetircsRequest) { - request = &GetApplicationListWithMetircsRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("mse", "2019-05-31", "GetApplicationListWithMetircs", "mse", "openAPI") - request.Method = requests.POST - return -} - -// CreateGetApplicationListWithMetircsResponse creates a response to parse from GetApplicationListWithMetircs response -func CreateGetApplicationListWithMetircsResponse() (response *GetApplicationListWithMetircsResponse) { - response = &GetApplicationListWithMetircsResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/mse/get_gateway_auth_detail.go b/services/mse/get_gateway_auth_detail.go new file mode 100644 index 000000000..75b73a523 --- /dev/null +++ b/services/mse/get_gateway_auth_detail.go @@ -0,0 +1,108 @@ +package mse + +//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" +) + +// GetGatewayAuthDetail invokes the mse.GetGatewayAuthDetail API synchronously +func (client *Client) GetGatewayAuthDetail(request *GetGatewayAuthDetailRequest) (response *GetGatewayAuthDetailResponse, err error) { + response = CreateGetGatewayAuthDetailResponse() + err = client.DoAction(request, response) + return +} + +// GetGatewayAuthDetailWithChan invokes the mse.GetGatewayAuthDetail API asynchronously +func (client *Client) GetGatewayAuthDetailWithChan(request *GetGatewayAuthDetailRequest) (<-chan *GetGatewayAuthDetailResponse, <-chan error) { + responseChan := make(chan *GetGatewayAuthDetailResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetGatewayAuthDetail(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetGatewayAuthDetailWithCallback invokes the mse.GetGatewayAuthDetail API asynchronously +func (client *Client) GetGatewayAuthDetailWithCallback(request *GetGatewayAuthDetailRequest, callback func(response *GetGatewayAuthDetailResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetGatewayAuthDetailResponse + var err error + defer close(result) + response, err = client.GetGatewayAuthDetail(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetGatewayAuthDetailRequest is the request struct for api GetGatewayAuthDetail +type GetGatewayAuthDetailRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + Id requests.Integer `position:"Query" name:"Id"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// GetGatewayAuthDetailResponse is the response struct for api GetGatewayAuthDetail +type GetGatewayAuthDetailResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + Code int `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data DataInGetGatewayAuthDetail `json:"Data" xml:"Data"` +} + +// CreateGetGatewayAuthDetailRequest creates a request to invoke GetGatewayAuthDetail API +func CreateGetGatewayAuthDetailRequest() (request *GetGatewayAuthDetailRequest) { + request = &GetGatewayAuthDetailRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "GetGatewayAuthDetail", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetGatewayAuthDetailResponse creates a response to parse from GetGatewayAuthDetail response +func CreateGetGatewayAuthDetailResponse() (response *GetGatewayAuthDetailResponse) { + response = &GetGatewayAuthDetailResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/get_gateway_config.go b/services/mse/get_gateway_config.go new file mode 100644 index 000000000..27ca60415 --- /dev/null +++ b/services/mse/get_gateway_config.go @@ -0,0 +1,109 @@ +package mse + +//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" +) + +// GetGatewayConfig invokes the mse.GetGatewayConfig API synchronously +func (client *Client) GetGatewayConfig(request *GetGatewayConfigRequest) (response *GetGatewayConfigResponse, err error) { + response = CreateGetGatewayConfigResponse() + err = client.DoAction(request, response) + return +} + +// GetGatewayConfigWithChan invokes the mse.GetGatewayConfig API asynchronously +func (client *Client) GetGatewayConfigWithChan(request *GetGatewayConfigRequest) (<-chan *GetGatewayConfigResponse, <-chan error) { + responseChan := make(chan *GetGatewayConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.GetGatewayConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// GetGatewayConfigWithCallback invokes the mse.GetGatewayConfig API asynchronously +func (client *Client) GetGatewayConfigWithCallback(request *GetGatewayConfigRequest, callback func(response *GetGatewayConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *GetGatewayConfigResponse + var err error + defer close(result) + response, err = client.GetGatewayConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// GetGatewayConfigRequest is the request struct for api GetGatewayConfig +type GetGatewayConfigRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// GetGatewayConfigResponse is the response struct for api GetGatewayConfig +type GetGatewayConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateGetGatewayConfigRequest creates a request to invoke GetGatewayConfig API +func CreateGetGatewayConfigRequest() (request *GetGatewayConfigRequest) { + request = &GetGatewayConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "GetGatewayConfig", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateGetGatewayConfigResponse creates a response to parse from GetGatewayConfig response +func CreateGetGatewayConfigResponse() (response *GetGatewayConfigResponse) { + response = &GetGatewayConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/get_mse_source.go b/services/mse/get_mse_source.go index effed276a..02d4e1e53 100644 --- a/services/mse/get_mse_source.go +++ b/services/mse/get_mse_source.go @@ -74,6 +74,7 @@ type GetMseSourceRequest struct { MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` Type string `position:"Query" name:"Type"` + VpcId string `position:"Query" name:"VpcId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/get_service_list_page.go b/services/mse/get_service_list_page.go index 5733ec78a..f4e66346c 100644 --- a/services/mse/get_service_list_page.go +++ b/services/mse/get_service_list_page.go @@ -73,6 +73,7 @@ type GetServiceListPageRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` PageNumber requests.Integer `position:"Query" name:"PageNumber"` + AppName string `position:"Query" name:"AppName"` PageSize requests.Integer `position:"Query" name:"PageSize"` ServiceName string `position:"Query" name:"ServiceName"` Side string `position:"Query" name:"Side"` diff --git a/services/mse/get_service_method_page.go b/services/mse/get_service_method_page.go index 5aa73f6a4..2872c8d28 100644 --- a/services/mse/get_service_method_page.go +++ b/services/mse/get_service_method_page.go @@ -84,6 +84,7 @@ type GetServiceMethodPageRequest struct { ServiceName string `position:"Query" name:"ServiceName"` ServiceType string `position:"Query" name:"ServiceType"` AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` MethodController string `position:"Query" name:"MethodController"` } diff --git a/services/mse/import_services.go b/services/mse/import_services.go index 97815a5c1..572dcf0ba 100644 --- a/services/mse/import_services.go +++ b/services/mse/import_services.go @@ -73,6 +73,7 @@ type ImportServicesRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + FcAlias string `position:"Query" name:"FcAlias"` ServiceList *[]ImportServicesServiceList `position:"Query" name:"ServiceList" type:"Json"` TlsSetting string `position:"Query" name:"TlsSetting"` SourceType string `position:"Query" name:"SourceType"` diff --git a/services/mse/initialize_service_link_role.go b/services/mse/initialize_service_link_role.go new file mode 100644 index 000000000..8d5ce9674 --- /dev/null +++ b/services/mse/initialize_service_link_role.go @@ -0,0 +1,106 @@ +package mse + +//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" +) + +// InitializeServiceLinkRole invokes the mse.InitializeServiceLinkRole API synchronously +func (client *Client) InitializeServiceLinkRole(request *InitializeServiceLinkRoleRequest) (response *InitializeServiceLinkRoleResponse, err error) { + response = CreateInitializeServiceLinkRoleResponse() + err = client.DoAction(request, response) + return +} + +// InitializeServiceLinkRoleWithChan invokes the mse.InitializeServiceLinkRole API asynchronously +func (client *Client) InitializeServiceLinkRoleWithChan(request *InitializeServiceLinkRoleRequest) (<-chan *InitializeServiceLinkRoleResponse, <-chan error) { + responseChan := make(chan *InitializeServiceLinkRoleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.InitializeServiceLinkRole(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// InitializeServiceLinkRoleWithCallback invokes the mse.InitializeServiceLinkRole API asynchronously +func (client *Client) InitializeServiceLinkRoleWithCallback(request *InitializeServiceLinkRoleRequest, callback func(response *InitializeServiceLinkRoleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *InitializeServiceLinkRoleResponse + var err error + defer close(result) + response, err = client.InitializeServiceLinkRole(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// InitializeServiceLinkRoleRequest is the request struct for api InitializeServiceLinkRole +type InitializeServiceLinkRoleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + RoleName string `position:"Query" name:"RoleName"` + Token string `position:"Query" name:"Token"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// InitializeServiceLinkRoleResponse is the response struct for api InitializeServiceLinkRole +type InitializeServiceLinkRoleResponse 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 Data `json:"Data" xml:"Data"` +} + +// CreateInitializeServiceLinkRoleRequest creates a request to invoke InitializeServiceLinkRole API +func CreateInitializeServiceLinkRoleRequest() (request *InitializeServiceLinkRoleRequest) { + request = &InitializeServiceLinkRoleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "InitializeServiceLinkRole", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateInitializeServiceLinkRoleResponse creates a response to parse from InitializeServiceLinkRole response +func CreateInitializeServiceLinkRoleResponse() (response *InitializeServiceLinkRoleResponse) { + response = &InitializeServiceLinkRoleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_ans_instances.go b/services/mse/list_ans_instances.go index 1c4c28029..a45b55c90 100644 --- a/services/mse/list_ans_instances.go +++ b/services/mse/list_ans_instances.go @@ -104,7 +104,7 @@ func CreateListAnsInstancesRequest() (request *ListAnsInstancesRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("mse", "2019-05-31", "ListAnsInstances", "mse", "openAPI") - request.Method = requests.GET + request.Method = requests.POST return } diff --git a/services/mse/list_app_by_swimming_lane_group_tags.go b/services/mse/list_app_by_swimming_lane_group_tags.go new file mode 100644 index 000000000..b32263cc8 --- /dev/null +++ b/services/mse/list_app_by_swimming_lane_group_tags.go @@ -0,0 +1,102 @@ +package mse + +//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" +) + +// ListAppBySwimmingLaneGroupTags invokes the mse.ListAppBySwimmingLaneGroupTags API synchronously +func (client *Client) ListAppBySwimmingLaneGroupTags(request *ListAppBySwimmingLaneGroupTagsRequest) (response *ListAppBySwimmingLaneGroupTagsResponse, err error) { + response = CreateListAppBySwimmingLaneGroupTagsResponse() + err = client.DoAction(request, response) + return +} + +// ListAppBySwimmingLaneGroupTagsWithChan invokes the mse.ListAppBySwimmingLaneGroupTags API asynchronously +func (client *Client) ListAppBySwimmingLaneGroupTagsWithChan(request *ListAppBySwimmingLaneGroupTagsRequest) (<-chan *ListAppBySwimmingLaneGroupTagsResponse, <-chan error) { + responseChan := make(chan *ListAppBySwimmingLaneGroupTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListAppBySwimmingLaneGroupTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListAppBySwimmingLaneGroupTagsWithCallback invokes the mse.ListAppBySwimmingLaneGroupTags API asynchronously +func (client *Client) ListAppBySwimmingLaneGroupTagsWithCallback(request *ListAppBySwimmingLaneGroupTagsRequest, callback func(response *ListAppBySwimmingLaneGroupTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListAppBySwimmingLaneGroupTagsResponse + var err error + defer close(result) + response, err = client.ListAppBySwimmingLaneGroupTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListAppBySwimmingLaneGroupTagsRequest is the request struct for api ListAppBySwimmingLaneGroupTags +type ListAppBySwimmingLaneGroupTagsRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GroupId requests.Integer `position:"Query" name:"GroupId"` + Tags *[]string `position:"Query" name:"Tags" type:"Json"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListAppBySwimmingLaneGroupTagsResponse is the response struct for api ListAppBySwimmingLaneGroupTags +type ListAppBySwimmingLaneGroupTagsResponse struct { + *responses.BaseResponse +} + +// CreateListAppBySwimmingLaneGroupTagsRequest creates a request to invoke ListAppBySwimmingLaneGroupTags API +func CreateListAppBySwimmingLaneGroupTagsRequest() (request *ListAppBySwimmingLaneGroupTagsRequest) { + request = &ListAppBySwimmingLaneGroupTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListAppBySwimmingLaneGroupTags", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListAppBySwimmingLaneGroupTagsResponse creates a response to parse from ListAppBySwimmingLaneGroupTags response +func CreateListAppBySwimmingLaneGroupTagsResponse() (response *ListAppBySwimmingLaneGroupTagsResponse) { + response = &ListAppBySwimmingLaneGroupTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_applications_with_tag_rules.go b/services/mse/list_applications_with_tag_rules.go index 4fa7dad8d..e483e053f 100644 --- a/services/mse/list_applications_with_tag_rules.go +++ b/services/mse/list_applications_with_tag_rules.go @@ -85,11 +85,11 @@ type ListApplicationsWithTagRulesRequest struct { // ListApplicationsWithTagRulesResponse is the response struct for api ListApplicationsWithTagRules type ListApplicationsWithTagRulesResponse struct { *responses.BaseResponse - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - Data Data `json:"Data" xml:"Data"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data DataInListApplicationsWithTagRules `json:"Data" xml:"Data"` } // CreateListApplicationsWithTagRulesRequest creates a request to invoke ListApplicationsWithTagRules API diff --git a/services/mse/list_circuit_breaker_rules.go b/services/mse/list_circuit_breaker_rules.go index 4840306f3..e1dd67d60 100644 --- a/services/mse/list_circuit_breaker_rules.go +++ b/services/mse/list_circuit_breaker_rules.go @@ -85,12 +85,12 @@ type ListCircuitBreakerRulesRequest struct { // ListCircuitBreakerRulesResponse is the response struct for api ListCircuitBreakerRules type ListCircuitBreakerRulesResponse struct { *responses.BaseResponse - Code int `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Data DataInListCircuitBreakerRules `json:"Data" xml:"Data"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Data Data `json:"Data" xml:"Data"` } // CreateListCircuitBreakerRulesRequest creates a request to invoke ListCircuitBreakerRules API diff --git a/services/mse/list_cluster_health_check_task.go b/services/mse/list_cluster_health_check_task.go index 4fa1524db..3d88c0bca 100644 --- a/services/mse/list_cluster_health_check_task.go +++ b/services/mse/list_cluster_health_check_task.go @@ -82,15 +82,15 @@ type ListClusterHealthCheckTaskRequest struct { // ListClusterHealthCheckTaskResponse is the response struct for api ListClusterHealthCheckTask type ListClusterHealthCheckTaskResponse struct { *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - Code int `json:"Code" xml:"Code"` - ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Message string `json:"Message" xml:"Message"` - DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` - DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` - Data DataInListClusterHealthCheckTask `json:"Data" xml:"Data"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data Data `json:"Data" xml:"Data"` } // CreateListClusterHealthCheckTaskRequest creates a request to invoke ListClusterHealthCheckTask API diff --git a/services/mse/list_clusters.go b/services/mse/list_clusters.go index 6202e852f..36810d378 100644 --- a/services/mse/list_clusters.go +++ b/services/mse/list_clusters.go @@ -78,6 +78,7 @@ type ListClustersRequest struct { PageSize requests.Integer `position:"Query" name:"PageSize"` Tag *[]ListClustersTag `position:"Query" name:"Tag" type:"Repeated"` ClusterAliasName string `position:"Query" name:"ClusterAliasName"` + KeyId string `position:"Query" name:"KeyId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/list_flow_rules.go b/services/mse/list_flow_rules.go index a9f5aeb0e..fe3854713 100644 --- a/services/mse/list_flow_rules.go +++ b/services/mse/list_flow_rules.go @@ -85,12 +85,12 @@ type ListFlowRulesRequest struct { // ListFlowRulesResponse is the response struct for api ListFlowRules type ListFlowRulesResponse struct { *responses.BaseResponse - Code int `json:"Code" xml:"Code"` - Message string `json:"Message" xml:"Message"` - RequestId string `json:"RequestId" xml:"RequestId"` - Success bool `json:"Success" xml:"Success"` - HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` - Data DataInListFlowRules `json:"Data" xml:"Data"` + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Data Data `json:"Data" xml:"Data"` } // CreateListFlowRulesRequest creates a request to invoke ListFlowRules API diff --git a/services/mse/list_gateway_circuit_breaker_rule.go b/services/mse/list_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..6bf1ab05c --- /dev/null +++ b/services/mse/list_gateway_circuit_breaker_rule.go @@ -0,0 +1,102 @@ +package mse + +//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" +) + +// ListGatewayCircuitBreakerRule invokes the mse.ListGatewayCircuitBreakerRule API synchronously +func (client *Client) ListGatewayCircuitBreakerRule(request *ListGatewayCircuitBreakerRuleRequest) (response *ListGatewayCircuitBreakerRuleResponse, err error) { + response = CreateListGatewayCircuitBreakerRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListGatewayCircuitBreakerRuleWithChan invokes the mse.ListGatewayCircuitBreakerRule API asynchronously +func (client *Client) ListGatewayCircuitBreakerRuleWithChan(request *ListGatewayCircuitBreakerRuleRequest) (<-chan *ListGatewayCircuitBreakerRuleResponse, <-chan error) { + responseChan := make(chan *ListGatewayCircuitBreakerRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGatewayCircuitBreakerRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGatewayCircuitBreakerRuleWithCallback invokes the mse.ListGatewayCircuitBreakerRule API asynchronously +func (client *Client) ListGatewayCircuitBreakerRuleWithCallback(request *ListGatewayCircuitBreakerRuleRequest, callback func(response *ListGatewayCircuitBreakerRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGatewayCircuitBreakerRuleResponse + var err error + defer close(result) + response, err = client.ListGatewayCircuitBreakerRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGatewayCircuitBreakerRuleRequest is the request struct for api ListGatewayCircuitBreakerRule +type ListGatewayCircuitBreakerRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + FilterParams string `position:"Query" name:"FilterParams"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListGatewayCircuitBreakerRuleResponse is the response struct for api ListGatewayCircuitBreakerRule +type ListGatewayCircuitBreakerRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInListGatewayCircuitBreakerRule `json:"Data" xml:"Data"` +} + +// CreateListGatewayCircuitBreakerRuleRequest creates a request to invoke ListGatewayCircuitBreakerRule API +func CreateListGatewayCircuitBreakerRuleRequest() (request *ListGatewayCircuitBreakerRuleRequest) { + request = &ListGatewayCircuitBreakerRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListGatewayCircuitBreakerRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListGatewayCircuitBreakerRuleResponse creates a response to parse from ListGatewayCircuitBreakerRule response +func CreateListGatewayCircuitBreakerRuleResponse() (response *ListGatewayCircuitBreakerRuleResponse) { + response = &ListGatewayCircuitBreakerRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_gateway_domain.go b/services/mse/list_gateway_domain.go index 7b925d3d5..f93178046 100644 --- a/services/mse/list_gateway_domain.go +++ b/services/mse/list_gateway_domain.go @@ -74,6 +74,7 @@ type ListGatewayDomainRequest struct { MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` Type string `position:"Query" name:"Type"` + DomainName string `position:"Query" name:"DomainName"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/list_gateway_flow_rule.go b/services/mse/list_gateway_flow_rule.go new file mode 100644 index 000000000..238fa921c --- /dev/null +++ b/services/mse/list_gateway_flow_rule.go @@ -0,0 +1,102 @@ +package mse + +//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" +) + +// ListGatewayFlowRule invokes the mse.ListGatewayFlowRule API synchronously +func (client *Client) ListGatewayFlowRule(request *ListGatewayFlowRuleRequest) (response *ListGatewayFlowRuleResponse, err error) { + response = CreateListGatewayFlowRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListGatewayFlowRuleWithChan invokes the mse.ListGatewayFlowRule API asynchronously +func (client *Client) ListGatewayFlowRuleWithChan(request *ListGatewayFlowRuleRequest) (<-chan *ListGatewayFlowRuleResponse, <-chan error) { + responseChan := make(chan *ListGatewayFlowRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGatewayFlowRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGatewayFlowRuleWithCallback invokes the mse.ListGatewayFlowRule API asynchronously +func (client *Client) ListGatewayFlowRuleWithCallback(request *ListGatewayFlowRuleRequest, callback func(response *ListGatewayFlowRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGatewayFlowRuleResponse + var err error + defer close(result) + response, err = client.ListGatewayFlowRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGatewayFlowRuleRequest is the request struct for api ListGatewayFlowRule +type ListGatewayFlowRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + FilterParams string `position:"Query" name:"FilterParams"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListGatewayFlowRuleResponse is the response struct for api ListGatewayFlowRule +type ListGatewayFlowRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInListGatewayFlowRule `json:"Data" xml:"Data"` +} + +// CreateListGatewayFlowRuleRequest creates a request to invoke ListGatewayFlowRule API +func CreateListGatewayFlowRuleRequest() (request *ListGatewayFlowRuleRequest) { + request = &ListGatewayFlowRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListGatewayFlowRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListGatewayFlowRuleResponse creates a response to parse from ListGatewayFlowRule response +func CreateListGatewayFlowRuleResponse() (response *ListGatewayFlowRuleResponse) { + response = &ListGatewayFlowRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_gateway_isolation_rule.go b/services/mse/list_gateway_isolation_rule.go new file mode 100644 index 000000000..c52dd8f3c --- /dev/null +++ b/services/mse/list_gateway_isolation_rule.go @@ -0,0 +1,102 @@ +package mse + +//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" +) + +// ListGatewayIsolationRule invokes the mse.ListGatewayIsolationRule API synchronously +func (client *Client) ListGatewayIsolationRule(request *ListGatewayIsolationRuleRequest) (response *ListGatewayIsolationRuleResponse, err error) { + response = CreateListGatewayIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// ListGatewayIsolationRuleWithChan invokes the mse.ListGatewayIsolationRule API asynchronously +func (client *Client) ListGatewayIsolationRuleWithChan(request *ListGatewayIsolationRuleRequest) (<-chan *ListGatewayIsolationRuleResponse, <-chan error) { + responseChan := make(chan *ListGatewayIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGatewayIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGatewayIsolationRuleWithCallback invokes the mse.ListGatewayIsolationRule API asynchronously +func (client *Client) ListGatewayIsolationRuleWithCallback(request *ListGatewayIsolationRuleRequest, callback func(response *ListGatewayIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGatewayIsolationRuleResponse + var err error + defer close(result) + response, err = client.ListGatewayIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGatewayIsolationRuleRequest is the request struct for api ListGatewayIsolationRule +type ListGatewayIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + FilterParams string `position:"Query" name:"FilterParams"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListGatewayIsolationRuleResponse is the response struct for api ListGatewayIsolationRule +type ListGatewayIsolationRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInListGatewayIsolationRule `json:"Data" xml:"Data"` +} + +// CreateListGatewayIsolationRuleRequest creates a request to invoke ListGatewayIsolationRule API +func CreateListGatewayIsolationRuleRequest() (request *ListGatewayIsolationRuleRequest) { + request = &ListGatewayIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListGatewayIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListGatewayIsolationRuleResponse creates a response to parse from ListGatewayIsolationRule response +func CreateListGatewayIsolationRuleResponse() (response *ListGatewayIsolationRuleResponse) { + response = &ListGatewayIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_gateway_route.go b/services/mse/list_gateway_route.go index c591f04f2..46f491574 100644 --- a/services/mse/list_gateway_route.go +++ b/services/mse/list_gateway_route.go @@ -83,6 +83,7 @@ type ListGatewayRouteRequest struct { // ListGatewayRouteFilterParams is a repeated param struct in ListGatewayRouteRequest type ListGatewayRouteFilterParams struct { DefaultServiceId string `name:"DefaultServiceId"` + Path string `name:"Path"` RouteOrder string `name:"RouteOrder"` GatewayUniqueId string `name:"GatewayUniqueId"` Name string `name:"Name"` diff --git a/services/mse/list_gateway_zone.go b/services/mse/list_gateway_zone.go new file mode 100644 index 000000000..2ffc1e4ab --- /dev/null +++ b/services/mse/list_gateway_zone.go @@ -0,0 +1,108 @@ +package mse + +//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" +) + +// ListGatewayZone invokes the mse.ListGatewayZone API synchronously +func (client *Client) ListGatewayZone(request *ListGatewayZoneRequest) (response *ListGatewayZoneResponse, err error) { + response = CreateListGatewayZoneResponse() + err = client.DoAction(request, response) + return +} + +// ListGatewayZoneWithChan invokes the mse.ListGatewayZone API asynchronously +func (client *Client) ListGatewayZoneWithChan(request *ListGatewayZoneRequest) (<-chan *ListGatewayZoneResponse, <-chan error) { + responseChan := make(chan *ListGatewayZoneResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListGatewayZone(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListGatewayZoneWithCallback invokes the mse.ListGatewayZone API asynchronously +func (client *Client) ListGatewayZoneWithCallback(request *ListGatewayZoneRequest, callback func(response *ListGatewayZoneResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListGatewayZoneResponse + var err error + defer close(result) + response, err = client.ListGatewayZone(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListGatewayZoneRequest is the request struct for api ListGatewayZone +type ListGatewayZoneRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListGatewayZoneResponse is the response struct for api ListGatewayZone +type ListGatewayZoneResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data []DataItem `json:"Data" xml:"Data"` +} + +// CreateListGatewayZoneRequest creates a request to invoke ListGatewayZone API +func CreateListGatewayZoneRequest() (request *ListGatewayZoneRequest) { + request = &ListGatewayZoneRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListGatewayZone", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListGatewayZoneResponse creates a response to parse from ListGatewayZone response +func CreateListGatewayZoneResponse() (response *ListGatewayZoneResponse) { + response = &ListGatewayZoneResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_isolation_rules.go b/services/mse/list_isolation_rules.go new file mode 100644 index 000000000..5642d385f --- /dev/null +++ b/services/mse/list_isolation_rules.go @@ -0,0 +1,112 @@ +package mse + +//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" +) + +// ListIsolationRules invokes the mse.ListIsolationRules API synchronously +func (client *Client) ListIsolationRules(request *ListIsolationRulesRequest) (response *ListIsolationRulesResponse, err error) { + response = CreateListIsolationRulesResponse() + err = client.DoAction(request, response) + return +} + +// ListIsolationRulesWithChan invokes the mse.ListIsolationRules API asynchronously +func (client *Client) ListIsolationRulesWithChan(request *ListIsolationRulesRequest) (<-chan *ListIsolationRulesResponse, <-chan error) { + responseChan := make(chan *ListIsolationRulesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListIsolationRules(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListIsolationRulesWithCallback invokes the mse.ListIsolationRules API asynchronously +func (client *Client) ListIsolationRulesWithCallback(request *ListIsolationRulesRequest, callback func(response *ListIsolationRulesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListIsolationRulesResponse + var err error + defer close(result) + response, err = client.ListIsolationRules(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListIsolationRulesRequest is the request struct for api ListIsolationRules +type ListIsolationRulesRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + AppName string `position:"Query" name:"AppName"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + PageIndex requests.Integer `position:"Query" name:"PageIndex"` + Resource string `position:"Query" name:"Resource"` + AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResourceSearchKey string `position:"Query" name:"ResourceSearchKey"` +} + +// ListIsolationRulesResponse is the response struct for api ListIsolationRules +type ListIsolationRulesResponse struct { + *responses.BaseResponse + Code int `json:"Code" xml:"Code"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Data Data `json:"Data" xml:"Data"` +} + +// CreateListIsolationRulesRequest creates a request to invoke ListIsolationRules API +func CreateListIsolationRulesRequest() (request *ListIsolationRulesRequest) { + request = &ListIsolationRulesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListIsolationRules", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListIsolationRulesResponse creates a response to parse from ListIsolationRules response +func CreateListIsolationRulesResponse() (response *ListIsolationRulesResponse) { + response = &ListIsolationRulesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_migration_task.go b/services/mse/list_migration_task.go index f164fbeea..1aaec734d 100644 --- a/services/mse/list_migration_task.go +++ b/services/mse/list_migration_task.go @@ -99,7 +99,7 @@ func CreateListMigrationTaskRequest() (request *ListMigrationTaskRequest) { RpcRequest: &requests.RpcRequest{}, } request.InitWithApiInfo("mse", "2019-05-31", "ListMigrationTask", "mse", "openAPI") - request.Method = requests.GET + request.Method = requests.POST return } diff --git a/services/mse/list_sentinel_block_fallback_definitions.go b/services/mse/list_sentinel_block_fallback_definitions.go new file mode 100644 index 000000000..f0fd2be89 --- /dev/null +++ b/services/mse/list_sentinel_block_fallback_definitions.go @@ -0,0 +1,107 @@ +package mse + +//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" +) + +// ListSentinelBlockFallbackDefinitions invokes the mse.ListSentinelBlockFallbackDefinitions API synchronously +func (client *Client) ListSentinelBlockFallbackDefinitions(request *ListSentinelBlockFallbackDefinitionsRequest) (response *ListSentinelBlockFallbackDefinitionsResponse, err error) { + response = CreateListSentinelBlockFallbackDefinitionsResponse() + err = client.DoAction(request, response) + return +} + +// ListSentinelBlockFallbackDefinitionsWithChan invokes the mse.ListSentinelBlockFallbackDefinitions API asynchronously +func (client *Client) ListSentinelBlockFallbackDefinitionsWithChan(request *ListSentinelBlockFallbackDefinitionsRequest) (<-chan *ListSentinelBlockFallbackDefinitionsResponse, <-chan error) { + responseChan := make(chan *ListSentinelBlockFallbackDefinitionsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ListSentinelBlockFallbackDefinitions(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ListSentinelBlockFallbackDefinitionsWithCallback invokes the mse.ListSentinelBlockFallbackDefinitions API asynchronously +func (client *Client) ListSentinelBlockFallbackDefinitionsWithCallback(request *ListSentinelBlockFallbackDefinitionsRequest, callback func(response *ListSentinelBlockFallbackDefinitionsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ListSentinelBlockFallbackDefinitionsResponse + var err error + defer close(result) + response, err = client.ListSentinelBlockFallbackDefinitions(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ListSentinelBlockFallbackDefinitionsRequest is the request struct for api ListSentinelBlockFallbackDefinitions +type ListSentinelBlockFallbackDefinitionsRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + AppName string `position:"Query" name:"AppName"` + ClassificationSet *[]string `position:"Query" name:"ClassificationSet" type:"Json"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// ListSentinelBlockFallbackDefinitionsResponse is the response struct for api ListSentinelBlockFallbackDefinitions +type ListSentinelBlockFallbackDefinitionsResponse struct { + *responses.BaseResponse + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Data []Fallbacks `json:"Data" xml:"Data"` +} + +// CreateListSentinelBlockFallbackDefinitionsRequest creates a request to invoke ListSentinelBlockFallbackDefinitions API +func CreateListSentinelBlockFallbackDefinitionsRequest() (request *ListSentinelBlockFallbackDefinitionsRequest) { + request = &ListSentinelBlockFallbackDefinitionsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "ListSentinelBlockFallbackDefinitions", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateListSentinelBlockFallbackDefinitionsResponse creates a response to parse from ListSentinelBlockFallbackDefinitions response +func CreateListSentinelBlockFallbackDefinitionsResponse() (response *ListSentinelBlockFallbackDefinitionsResponse) { + response = &ListSentinelBlockFallbackDefinitionsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/list_service_source.go b/services/mse/list_service_source.go index 284e38e3f..8270f7833 100644 --- a/services/mse/list_service_source.go +++ b/services/mse/list_service_source.go @@ -73,6 +73,7 @@ type ListServiceSourceRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + Source string `position:"Query" name:"Source"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/list_ssl_cert.go b/services/mse/list_ssl_cert.go index be8b23a4c..08345b72a 100644 --- a/services/mse/list_ssl_cert.go +++ b/services/mse/list_ssl_cert.go @@ -73,6 +73,7 @@ type ListSSLCertRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + CertName string `position:"Query" name:"CertName"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/modify_governance_kubernetes_cluster.go b/services/mse/modify_governance_kubernetes_cluster.go index 2cf8dca2f..ee13e5516 100644 --- a/services/mse/modify_governance_kubernetes_cluster.go +++ b/services/mse/modify_governance_kubernetes_cluster.go @@ -72,7 +72,7 @@ func (client *Client) ModifyGovernanceKubernetesClusterWithCallback(request *Mod type ModifyGovernanceKubernetesClusterRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` - NamespaceInfos string `position:"Query" name:"NamespaceInfos"` + NamespaceInfos string `position:"Body" name:"NamespaceInfos"` ClusterId string `position:"Query" name:"ClusterId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/preserve_header_format.go b/services/mse/preserve_header_format.go new file mode 100644 index 000000000..546d76726 --- /dev/null +++ b/services/mse/preserve_header_format.go @@ -0,0 +1,110 @@ +package mse + +//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" +) + +// PreserveHeaderFormat invokes the mse.PreserveHeaderFormat API synchronously +func (client *Client) PreserveHeaderFormat(request *PreserveHeaderFormatRequest) (response *PreserveHeaderFormatResponse, err error) { + response = CreatePreserveHeaderFormatResponse() + err = client.DoAction(request, response) + return +} + +// PreserveHeaderFormatWithChan invokes the mse.PreserveHeaderFormat API asynchronously +func (client *Client) PreserveHeaderFormatWithChan(request *PreserveHeaderFormatRequest) (<-chan *PreserveHeaderFormatResponse, <-chan error) { + responseChan := make(chan *PreserveHeaderFormatResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.PreserveHeaderFormat(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// PreserveHeaderFormatWithCallback invokes the mse.PreserveHeaderFormat API asynchronously +func (client *Client) PreserveHeaderFormatWithCallback(request *PreserveHeaderFormatRequest, callback func(response *PreserveHeaderFormatResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *PreserveHeaderFormatResponse + var err error + defer close(result) + response, err = client.PreserveHeaderFormat(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// PreserveHeaderFormatRequest is the request struct for api PreserveHeaderFormat +type PreserveHeaderFormatRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + PreserveHeaderFormat requests.Boolean `position:"Query" name:"PreserveHeaderFormat"` +} + +// PreserveHeaderFormatResponse is the response struct for api PreserveHeaderFormat +type PreserveHeaderFormatResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Success bool `json:"Success" xml:"Success"` + Code int `json:"Code" xml:"Code"` + ErrorCode string `json:"ErrorCode" xml:"ErrorCode"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + DynamicCode string `json:"DynamicCode" xml:"DynamicCode"` + DynamicMessage string `json:"DynamicMessage" xml:"DynamicMessage"` + Data bool `json:"Data" xml:"Data"` +} + +// CreatePreserveHeaderFormatRequest creates a request to invoke PreserveHeaderFormat API +func CreatePreserveHeaderFormatRequest() (request *PreserveHeaderFormatRequest) { + request = &PreserveHeaderFormatRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "PreserveHeaderFormat", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreatePreserveHeaderFormatResponse creates a response to parse from PreserveHeaderFormat response +func CreatePreserveHeaderFormatResponse() (response *PreserveHeaderFormatResponse) { + response = &PreserveHeaderFormatResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/struct_allow_request_headers.go b/services/mse/struct_allow_request_headers.go new file mode 100644 index 000000000..26cecc54a --- /dev/null +++ b/services/mse/struct_allow_request_headers.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// AllowRequestHeaders is a nested struct in mse response +type AllowRequestHeaders struct { + AllowRequestHeaders []string `json:"allowRequestHeaders" xml:"allowRequestHeaders"` +} diff --git a/services/mse/struct_allow_upstream_headers.go b/services/mse/struct_allow_upstream_headers.go new file mode 100644 index 000000000..ea18c90bd --- /dev/null +++ b/services/mse/struct_allow_upstream_headers.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// AllowUpstreamHeaders is a nested struct in mse response +type AllowUpstreamHeaders struct { + AllowUpstreamHeaders []string `json:"allowUpstreamHeaders" xml:"allowUpstreamHeaders"` +} diff --git a/services/mse/struct_application_list.go b/services/mse/struct_application_list.go index 37c545681..eab00f57b 100644 --- a/services/mse/struct_application_list.go +++ b/services/mse/struct_application_list.go @@ -17,31 +17,27 @@ package mse // ApplicationList is a nested struct in mse response type ApplicationList struct { - Aligned bool `json:"Aligned" xml:"Aligned"` - Language string `json:"Language" xml:"Language"` - Notice bool `json:"Notice" xml:"Notice"` - Source string `json:"Source" xml:"Source"` - ExtraInfo string `json:"ExtraInfo" xml:"ExtraInfo"` - RegionId string `json:"RegionId" xml:"RegionId"` - FuncType int `json:"FuncType" xml:"FuncType"` - UserId string `json:"UserId" xml:"UserId"` - LossLessDetail bool `json:"LossLessDetail" xml:"LossLessDetail"` - InstancesNumber int `json:"InstancesNumber" xml:"InstancesNumber"` - AppType int `json:"AppType" xml:"AppType"` - Count int `json:"Count" xml:"Count"` - LicenseKey string `json:"LicenseKey" xml:"LicenseKey"` - Status int64 `json:"Status" xml:"Status"` - RouteStatus int64 `json:"RouteStatus" xml:"RouteStatus"` - WarmupTime int `json:"WarmupTime" xml:"WarmupTime"` - AppId string `json:"AppId" xml:"AppId"` - TagCount int64 `json:"TagCount" xml:"TagCount"` - Namespace string `json:"Namespace" xml:"Namespace"` - DelayTime int `json:"DelayTime" xml:"DelayTime"` - Enable bool `json:"Enable" xml:"Enable"` - Related bool `json:"Related" xml:"Related"` - AppName string `json:"AppName" xml:"AppName"` - Tags []string `json:"Tags" xml:"Tags"` - CurMetricsFm CurMetricsFm `json:"CurMetricsFm" xml:"CurMetricsFm"` - RouteRules []RouteRule `json:"RouteRules" xml:"RouteRules"` - CurMetrics []CurMetricsItem `json:"CurMetrics" xml:"CurMetrics"` + Count int `json:"Count" xml:"Count"` + LicenseKey string `json:"LicenseKey" xml:"LicenseKey"` + Aligned bool `json:"Aligned" xml:"Aligned"` + Status int64 `json:"Status" xml:"Status"` + Language string `json:"Language" xml:"Language"` + Notice bool `json:"Notice" xml:"Notice"` + RouteStatus int64 `json:"RouteStatus" xml:"RouteStatus"` + Source string `json:"Source" xml:"Source"` + ExtraInfo string `json:"ExtraInfo" xml:"ExtraInfo"` + WarmupTime int `json:"WarmupTime" xml:"WarmupTime"` + AppId string `json:"AppId" xml:"AppId"` + TagCount int64 `json:"TagCount" xml:"TagCount"` + RegionId string `json:"RegionId" xml:"RegionId"` + FuncType int `json:"FuncType" xml:"FuncType"` + Namespace string `json:"Namespace" xml:"Namespace"` + UserId string `json:"UserId" xml:"UserId"` + DelayTime int `json:"DelayTime" xml:"DelayTime"` + Enable bool `json:"Enable" xml:"Enable"` + Related bool `json:"Related" xml:"Related"` + LossLessDetail bool `json:"LossLessDetail" xml:"LossLessDetail"` + AppName string `json:"AppName" xml:"AppName"` + InstancesNumber int `json:"InstancesNumber" xml:"InstancesNumber"` + RouteRules []RouteRule `json:"RouteRules" xml:"RouteRules"` } diff --git a/services/mse/struct_argument_item.go b/services/mse/struct_argument_item.go new file mode 100644 index 000000000..39a28255f --- /dev/null +++ b/services/mse/struct_argument_item.go @@ -0,0 +1,30 @@ +package mse + +//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. + +// ArgumentItem is a nested struct in mse response +type ArgumentItem struct { + Operator string `json:"operator" xml:"operator"` + Datum string `json:"datum" xml:"datum"` + Cond string `json:"cond" xml:"cond"` + Divisor int `json:"divisor" xml:"divisor"` + Remainder int `json:"remainder" xml:"remainder"` + Rate int `json:"rate" xml:"rate"` + Index int `json:"index" xml:"index"` + Expr string `json:"expr" xml:"expr"` + Value string `json:"value" xml:"value"` + NameList []string `json:"nameList" xml:"nameList"` +} diff --git a/services/mse/struct_argument_items.go b/services/mse/struct_argument_items.go new file mode 100644 index 000000000..0602aa9b9 --- /dev/null +++ b/services/mse/struct_argument_items.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ArgumentItems is a nested struct in mse response +type ArgumentItems struct { + ArgumentItem []ArgumentItem `json:"ArgumentItem" xml:"ArgumentItem"` +} diff --git a/services/mse/struct_cur_metrics.go b/services/mse/struct_auth_cidrs.go similarity index 82% rename from services/mse/struct_cur_metrics.go rename to services/mse/struct_auth_cidrs.go index f1127c874..1d95c7b12 100644 --- a/services/mse/struct_cur_metrics.go +++ b/services/mse/struct_auth_cidrs.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// CurMetrics is a nested struct in mse response -type CurMetrics struct { - CurMetricsItem []CurMetricsItem `json:"curMetrics" xml:"curMetrics"` +// AuthCidrs is a nested struct in mse response +type AuthCidrs struct { + AuthCidrs []string `json:"authCidrs" xml:"authCidrs"` } diff --git a/services/mse/struct_auth_resource_header.go b/services/mse/struct_auth_resource_header.go new file mode 100644 index 000000000..0ffde2aed --- /dev/null +++ b/services/mse/struct_auth_resource_header.go @@ -0,0 +1,23 @@ +package mse + +//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. + +// AuthResourceHeader is a nested struct in mse response +type AuthResourceHeader struct { + HeaderKey string `json:"HeaderKey" xml:"HeaderKey"` + HeaderMethod string `json:"HeaderMethod" xml:"HeaderMethod"` + HeaderValue string `json:"HeaderValue" xml:"HeaderValue"` +} diff --git a/services/mse/struct_auth_resource_header_list.go b/services/mse/struct_auth_resource_header_list.go new file mode 100644 index 000000000..07897a5ac --- /dev/null +++ b/services/mse/struct_auth_resource_header_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// AuthResourceHeaderList is a nested struct in mse response +type AuthResourceHeaderList struct { + AuthResourceHeader []AuthResourceHeader `json:"authResourceHeader" xml:"authResourceHeader"` +} diff --git a/services/mse/struct_auth_resource_list.go b/services/mse/struct_auth_resource_list.go new file mode 100644 index 000000000..05435aacf --- /dev/null +++ b/services/mse/struct_auth_resource_list.go @@ -0,0 +1,33 @@ +package mse + +//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. + +// AuthResourceList is a nested struct in mse response +type AuthResourceList struct { + Id int64 `json:"Id" xml:"Id"` + AuthId int64 `json:"AuthId" xml:"AuthId"` + DomainId int64 `json:"DomainId" xml:"DomainId"` + DomainName string `json:"DomainName" xml:"DomainName"` + Path string `json:"Path" xml:"Path"` + IsWhite bool `json:"IsWhite" xml:"IsWhite"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + MatchType string `json:"MatchType" xml:"MatchType"` + IgnoreCase bool `json:"IgnoreCase" xml:"IgnoreCase"` + AuthResourceHeaderList []AuthResourceHeader `json:"AuthResourceHeaderList" xml:"AuthResourceHeaderList"` +} diff --git a/services/mse/struct_cluster_for_list_model.go b/services/mse/struct_cluster_for_list_model.go index 27304024c..e7c817b89 100644 --- a/services/mse/struct_cluster_for_list_model.go +++ b/services/mse/struct_cluster_for_list_model.go @@ -17,24 +17,26 @@ package mse // ClusterForListModel is a nested struct in mse response type ClusterForListModel struct { - EndDate string `json:"EndDate" xml:"EndDate"` - IntranetDomain string `json:"IntranetDomain" xml:"IntranetDomain"` - InternetDomain string `json:"InternetDomain" xml:"InternetDomain"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - IntranetAddress string `json:"IntranetAddress" xml:"IntranetAddress"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - InternetAddress string `json:"InternetAddress" xml:"InternetAddress"` - ClusterAliasName string `json:"ClusterAliasName" xml:"ClusterAliasName"` - ClusterType string `json:"ClusterType" xml:"ClusterType"` - InitStatus string `json:"InitStatus" xml:"InitStatus"` - AppVersion string `json:"AppVersion" xml:"AppVersion"` - ClusterId string `json:"ClusterId" xml:"ClusterId"` - CanUpdate bool `json:"CanUpdate" xml:"CanUpdate"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - InstanceCount int64 `json:"InstanceCount" xml:"InstanceCount"` - ClusterName string `json:"ClusterName" xml:"ClusterName"` - MseVersion string `json:"MseVersion" xml:"MseVersion"` - Tags map[string]interface{} `json:"Tags" xml:"Tags"` - ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + EndDate string `json:"EndDate" xml:"EndDate"` + IntranetDomain string `json:"IntranetDomain" xml:"IntranetDomain"` + InternetDomain string `json:"InternetDomain" xml:"InternetDomain"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + IntranetAddress string `json:"IntranetAddress" xml:"IntranetAddress"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + InternetAddress string `json:"InternetAddress" xml:"InternetAddress"` + ClusterAliasName string `json:"ClusterAliasName" xml:"ClusterAliasName"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + InitStatus string `json:"InitStatus" xml:"InitStatus"` + AppVersion string `json:"AppVersion" xml:"AppVersion"` + ClusterId string `json:"ClusterId" xml:"ClusterId"` + CanUpdate bool `json:"CanUpdate" xml:"CanUpdate"` + VersionCode string `json:"VersionCode" xml:"VersionCode"` + InstanceCount int64 `json:"InstanceCount" xml:"InstanceCount"` + ClusterName string `json:"ClusterName" xml:"ClusterName"` + MseVersion string `json:"MseVersion" xml:"MseVersion"` + Tags map[string]interface{} `json:"Tags" xml:"Tags"` + ResourceGroupId string `json:"ResourceGroupId" xml:"ResourceGroupId"` + VpcId string `json:"VpcId" xml:"VpcId"` + MaintenancePeriod MaintenancePeriod `json:"MaintenancePeriod" xml:"MaintenancePeriod"` } diff --git a/services/mse/struct_conditions.go b/services/mse/struct_conditions.go new file mode 100644 index 000000000..5548475af --- /dev/null +++ b/services/mse/struct_conditions.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// Conditions is a nested struct in mse response +type Conditions struct { + ConditionsItem []ConditionsItem `json:"Conditions" xml:"Conditions"` +} diff --git a/services/mse/struct_conditions_item.go b/services/mse/struct_conditions_item.go new file mode 100644 index 000000000..dff24b2e3 --- /dev/null +++ b/services/mse/struct_conditions_item.go @@ -0,0 +1,25 @@ +package mse + +//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. + +// ConditionsItem is a nested struct in mse response +type ConditionsItem struct { + Name string `json:"Name" xml:"Name"` + Value string `json:"Value" xml:"Value"` + Type string `json:"Type" xml:"Type"` + Cond string `json:"Cond" xml:"Cond"` + NameList []string `json:"NameList" xml:"NameList"` +} diff --git a/services/mse/struct_data.go b/services/mse/struct_data.go index 5efbc64e2..f9ce61158 100644 --- a/services/mse/struct_data.go +++ b/services/mse/struct_data.go @@ -17,111 +17,144 @@ package mse // Data is a nested struct in mse response type Data struct { - EurekaSupported bool `json:"EurekaSupported" xml:"EurekaSupported"` - Aligned bool `json:"Aligned" xml:"Aligned"` - CurrentVersionFullShowName string `json:"CurrentVersionFullShowName" xml:"CurrentVersionFullShowName"` - Notice bool `json:"Notice" xml:"Notice"` - Source string `json:"Source" xml:"Source"` - Ephemeral bool `json:"Ephemeral" xml:"Ephemeral"` - FuncType int `json:"FuncType" xml:"FuncType"` - LossLessDetail bool `json:"LossLessDetail" xml:"LossLessDetail"` - TLSEnabled bool `json:"TLSEnabled" xml:"TLSEnabled"` - FilterSide string `json:"FilterSide" xml:"FilterSide"` - LicenseKey string `json:"LicenseKey" xml:"LicenseKey"` - SyncLimit string `json:"SyncLimit" xml:"SyncLimit"` - UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` - TargetClusterName string `json:"TargetClusterName" xml:"TargetClusterName"` - SnapshotCount string `json:"SnapshotCount" xml:"SnapshotCount"` - SuccCount int `json:"SuccCount" xml:"SuccCount"` - DisableHttp2Alpn bool `json:"DisableHttp2Alpn" xml:"DisableHttp2Alpn"` - AutopurgePurgeInterval string `json:"AutopurgePurgeInterval" xml:"AutopurgePurgeInterval"` - TotalSize int `json:"TotalSize" xml:"TotalSize"` - SelectorType string `json:"SelectorType" xml:"SelectorType"` - Name string `json:"Name" xml:"Name"` - Language string `json:"Language" xml:"Language"` - MaxVersionChangelogUrl string `json:"MaxVersionChangelogUrl" xml:"MaxVersionChangelogUrl"` - PageSize int `json:"PageSize" xml:"PageSize"` - GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` - OriginInstanceName string `json:"OriginInstanceName" xml:"OriginInstanceName"` - ConfigSecretEnabled bool `json:"ConfigSecretEnabled" xml:"ConfigSecretEnabled"` - MaxSize string `json:"MaxSize" xml:"MaxSize"` - PassWord string `json:"PassWord" xml:"PassWord"` - Min int `json:"Min" xml:"Min"` - ClusterType string `json:"ClusterType" xml:"ClusterType"` - Count int `json:"Count" xml:"Count"` - Version string `json:"Version" xml:"Version"` - AutopurgeSnapRetainCount string `json:"AutopurgeSnapRetainCount" xml:"AutopurgeSnapRetainCount"` - TickTime string `json:"TickTime" xml:"TickTime"` - Quota int `json:"Quota" xml:"Quota"` - MaxVersionCode string `json:"MaxVersionCode" xml:"MaxVersionCode"` - GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` - EnableHardwareAcceleration bool `json:"EnableHardwareAcceleration" xml:"EnableHardwareAcceleration"` - OriginInstanceAddress string `json:"OriginInstanceAddress" xml:"OriginInstanceAddress"` - AppName string `json:"AppName" xml:"AppName"` - ConfigAuthSupported bool `json:"ConfigAuthSupported" xml:"ConfigAuthSupported"` - Step int `json:"Step" xml:"Step"` - NamingAuthEnabled bool `json:"NamingAuthEnabled" xml:"NamingAuthEnabled"` - ConfigSecretSupported bool `json:"ConfigSecretSupported" xml:"ConfigSecretSupported"` - Dir bool `json:"Dir" xml:"Dir"` - NamingAuthSupported bool `json:"NamingAuthSupported" xml:"NamingAuthSupported"` - ConfigAuthEnabled bool `json:"ConfigAuthEnabled" xml:"ConfigAuthEnabled"` - JuteMaxbuffer string `json:"JuteMaxbuffer" xml:"JuteMaxbuffer"` - MaxVersionFullShowName string `json:"MaxVersionFullShowName" xml:"MaxVersionFullShowName"` - Id string `json:"Id" xml:"Id"` - ProjectDesc string `json:"ProjectDesc" xml:"ProjectDesc"` - InitLimit string `json:"InitLimit" xml:"InitLimit"` - Path string `json:"Path" xml:"Path"` - MaxSessionTimeout string `json:"MaxSessionTimeout" xml:"MaxSessionTimeout"` - NamespaceDesc string `json:"NamespaceDesc" xml:"NamespaceDesc"` - Data string `json:"Data" xml:"Data"` - ProtectThreshold float64 `json:"ProtectThreshold" xml:"ProtectThreshold"` - MCPSupported bool `json:"MCPSupported" xml:"MCPSupported"` - EnableWaf bool `json:"EnableWaf" xml:"EnableWaf"` - JvmFlagsCustom string `json:"JvmFlagsCustom" xml:"JvmFlagsCustom"` - WarmupTime int `json:"WarmupTime" xml:"WarmupTime"` - AppId string `json:"AppId" xml:"AppId"` - Metadata map[string]interface{} `json:"Metadata" xml:"Metadata"` - ServiceCount int `json:"ServiceCount" xml:"ServiceCount"` - Enable bool `json:"Enable" xml:"Enable"` - Related bool `json:"Related" xml:"Related"` - Type int `json:"Type" xml:"Type"` - Region string `json:"Region" xml:"Region"` - MinSessionTimeout string `json:"MinSessionTimeout" xml:"MinSessionTimeout"` - Max int `json:"Max" xml:"Max"` - GroupName string `json:"GroupName" xml:"GroupName"` - CreateTime int64 `json:"CreateTime" xml:"CreateTime"` - MaxClientCnxns string `json:"MaxClientCnxns" xml:"MaxClientCnxns"` - ExtraInfo string `json:"ExtraInfo" xml:"ExtraInfo"` - MCPEnabled bool `json:"MCPEnabled" xml:"MCPEnabled"` - RegionId string `json:"RegionId" xml:"RegionId"` - UserId string `json:"UserId" xml:"UserId"` - ConfigCount int `json:"ConfigCount" xml:"ConfigCount"` - PageNumber int `json:"PageNumber" xml:"PageNumber"` - ClusterName string `json:"ClusterName" xml:"ClusterName"` - NamespaceShowName string `json:"NamespaceShowName" xml:"NamespaceShowName"` - ConfigContentLimit int64 `json:"ConfigContentLimit" xml:"ConfigContentLimit"` - TargetClusterUrl string `json:"TargetClusterUrl" xml:"TargetClusterUrl"` - OpenSuperAcl bool `json:"OpenSuperAcl" xml:"OpenSuperAcl"` - Status int `json:"Status" xml:"Status"` - SkipCount int `json:"SkipCount" xml:"SkipCount"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` - ExtendedTypesEnable bool `json:"ExtendedTypesEnable" xml:"ExtendedTypesEnable"` - NamingCreateServiceSupported bool `json:"NamingCreateServiceSupported" xml:"NamingCreateServiceSupported"` - TargetInstanceId string `json:"TargetInstanceId" xml:"TargetInstanceId"` - Url string `json:"Url" xml:"Url"` - OriginInstanceNamespace string `json:"OriginInstanceNamespace" xml:"OriginInstanceNamespace"` - RestartFlag bool `json:"RestartFlag" xml:"RestartFlag"` - Namespace string `json:"Namespace" xml:"Namespace"` - DelayTime int `json:"DelayTime" xml:"DelayTime"` - UserName string `json:"UserName" xml:"UserName"` - Tags []string `json:"Tags" xml:"Tags"` - TraceDetails TraceDetails `json:"TraceDetails" xml:"TraceDetails"` - NacosRunningEnv NacosRunningEnv `json:"NacosRunningEnv" xml:"NacosRunningEnv"` - AppDetail AppDetail `json:"AppDetail" xml:"AppDetail"` - LogConfigDetails LogConfigDetails `json:"LogConfigDetails" xml:"LogConfigDetails"` - Result []ApplicationList `json:"Result" xml:"Result"` - Results []ApplicationList `json:"Results" xml:"Results"` - FailData []FailDataItem `json:"FailData" xml:"FailData"` - SkipData []SkipDataItem `json:"SkipData" xml:"SkipData"` - Clusters []NacosAnsCluster `json:"Clusters" xml:"Clusters"` + PathWithEscapedSlashes string `json:"PathWithEscapedSlashes" xml:"PathWithEscapedSlashes"` + EurekaSupported bool `json:"EurekaSupported" xml:"EurekaSupported"` + Aligned bool `json:"Aligned" xml:"Aligned"` + KeepaliveHeaderTimeout int `json:"KeepaliveHeaderTimeout" xml:"KeepaliveHeaderTimeout"` + CurrentVersionFullShowName string `json:"CurrentVersionFullShowName" xml:"CurrentVersionFullShowName"` + RequiredPermission string `json:"RequiredPermission" xml:"RequiredPermission"` + Notice bool `json:"Notice" xml:"Notice"` + Source string `json:"Source" xml:"Source"` + RoleName string `json:"RoleName" xml:"RoleName"` + AccessLogHeader string `json:"AccessLogHeader" xml:"AccessLogHeader"` + Ephemeral bool `json:"Ephemeral" xml:"Ephemeral"` + FuncType int `json:"FuncType" xml:"FuncType"` + InitialConnectionWindowSize int `json:"InitialConnectionWindowSize" xml:"InitialConnectionWindowSize"` + LossLessDetail bool `json:"LossLessDetail" xml:"LossLessDetail"` + NoSupportedConfigList string `json:"NoSupportedConfigList" xml:"NoSupportedConfigList"` + TLSEnabled bool `json:"TLSEnabled" xml:"TLSEnabled"` + AuthEnabled bool `json:"AuthEnabled" xml:"AuthEnabled"` + FilterSide string `json:"FilterSide" xml:"FilterSide"` + LicenseKey string `json:"LicenseKey" xml:"LicenseKey"` + SyncLimit string `json:"SyncLimit" xml:"SyncLimit"` + UpdateTime int64 `json:"UpdateTime" xml:"UpdateTime"` + TargetClusterName string `json:"TargetClusterName" xml:"TargetClusterName"` + EnableGenerateRequestId bool `json:"EnableGenerateRequestId" xml:"EnableGenerateRequestId"` + SnapshotCount string `json:"SnapshotCount" xml:"SnapshotCount"` + EnableCustomAuthConfigPush string `json:"EnableCustomAuthConfigPush" xml:"EnableCustomAuthConfigPush"` + DownstreamConnectionBufferLimits int `json:"DownstreamConnectionBufferLimits" xml:"DownstreamConnectionBufferLimits"` + SuccCount int `json:"SuccCount" xml:"SuccCount"` + DisableHttp2Alpn bool `json:"DisableHttp2Alpn" xml:"DisableHttp2Alpn"` + AutopurgePurgeInterval string `json:"AutopurgePurgeInterval" xml:"AutopurgePurgeInterval"` + TotalSize int `json:"TotalSize" xml:"TotalSize"` + SelectorType string `json:"SelectorType" xml:"SelectorType"` + Name string `json:"Name" xml:"Name"` + EnableGzip bool `json:"EnableGzip" xml:"EnableGzip"` + WebsocketTermGracePeriod int `json:"WebsocketTermGracePeriod" xml:"WebsocketTermGracePeriod"` + Language string `json:"Language" xml:"Language"` + EnableHardwareAccelerate bool `json:"EnableHardwareAccelerate" xml:"EnableHardwareAccelerate"` + MaxVersionChangelogUrl string `json:"MaxVersionChangelogUrl" xml:"MaxVersionChangelogUrl"` + PageSize int `json:"PageSize" xml:"PageSize"` + ZipAlgorithm string `json:"ZipAlgorithm" xml:"ZipAlgorithm"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + OriginInstanceName string `json:"OriginInstanceName" xml:"OriginInstanceName"` + ConfigSecretEnabled bool `json:"ConfigSecretEnabled" xml:"ConfigSecretEnabled"` + MaxSize string `json:"MaxSize" xml:"MaxSize"` + PassWord string `json:"PassWord" xml:"PassWord"` + Min int `json:"Min" xml:"Min"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + Count int `json:"Count" xml:"Count"` + DownstreamIdleTime int `json:"DownstreamIdleTime" xml:"DownstreamIdleTime"` + Version string `json:"Version" xml:"Version"` + AutopurgeSnapRetainCount string `json:"AutopurgeSnapRetainCount" xml:"AutopurgeSnapRetainCount"` + TickTime string `json:"TickTime" xml:"TickTime"` + Quota int `json:"Quota" xml:"Quota"` + ConsoleUIEnabled bool `json:"ConsoleUIEnabled" xml:"ConsoleUIEnabled"` + MaxVersionCode string `json:"MaxVersionCode" xml:"MaxVersionCode"` + InitialStreamWindowSize int `json:"InitialStreamWindowSize" xml:"InitialStreamWindowSize"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + EnableHardwareAcceleration bool `json:"EnableHardwareAcceleration" xml:"EnableHardwareAcceleration"` + SupportWaf bool `json:"SupportWaf" xml:"SupportWaf"` + OriginInstanceAddress string `json:"OriginInstanceAddress" xml:"OriginInstanceAddress"` + AppName string `json:"AppName" xml:"AppName"` + ConfigAuthSupported bool `json:"ConfigAuthSupported" xml:"ConfigAuthSupported"` + Step int `json:"Step" xml:"Step"` + NamingAuthEnabled bool `json:"NamingAuthEnabled" xml:"NamingAuthEnabled"` + ConfigSecretSupported bool `json:"ConfigSecretSupported" xml:"ConfigSecretSupported"` + Dir bool `json:"Dir" xml:"Dir"` + NamingAuthSupported bool `json:"NamingAuthSupported" xml:"NamingAuthSupported"` + ConfigAuthEnabled bool `json:"ConfigAuthEnabled" xml:"ConfigAuthEnabled"` + EnableProxyProtocol bool `json:"EnableProxyProtocol" xml:"EnableProxyProtocol"` + JuteMaxbuffer string `json:"JuteMaxbuffer" xml:"JuteMaxbuffer"` + MaxVersionFullShowName string `json:"MaxVersionFullShowName" xml:"MaxVersionFullShowName"` + Id string `json:"Id" xml:"Id"` + LogFilterConfig string `json:"LogFilterConfig" xml:"LogFilterConfig"` + ServiceName string `json:"ServiceName" xml:"ServiceName"` + ProjectDesc string `json:"ProjectDesc" xml:"ProjectDesc"` + InitLimit string `json:"InitLimit" xml:"InitLimit"` + Path string `json:"Path" xml:"Path"` + MaxSessionTimeout string `json:"MaxSessionTimeout" xml:"MaxSessionTimeout"` + NamespaceDesc string `json:"NamespaceDesc" xml:"NamespaceDesc"` + Data string `json:"Data" xml:"Data"` + ProtectThreshold float64 `json:"ProtectThreshold" xml:"ProtectThreshold"` + MCPSupported bool `json:"MCPSupported" xml:"MCPSupported"` + EnableWaf bool `json:"EnableWaf" xml:"EnableWaf"` + EnableHttp3 bool `json:"EnableHttp3" xml:"EnableHttp3"` + JvmFlagsCustom string `json:"JvmFlagsCustom" xml:"JvmFlagsCustom"` + XffTrustedNum int `json:"XffTrustedNum" xml:"XffTrustedNum"` + WarmupTime int `json:"WarmupTime" xml:"WarmupTime"` + AppId string `json:"AppId" xml:"AppId"` + Metadata map[string]interface{} `json:"Metadata" xml:"Metadata"` + ServiceCount int `json:"ServiceCount" xml:"ServiceCount"` + Enable bool `json:"Enable" xml:"Enable"` + Related bool `json:"Related" xml:"Related"` + Type int `json:"Type" xml:"Type"` + Region string `json:"Region" xml:"Region"` + MinSessionTimeout string `json:"MinSessionTimeout" xml:"MinSessionTimeout"` + Max int `json:"Max" xml:"Max"` + EnableHttp2 bool `json:"EnableHttp2" xml:"EnableHttp2"` + SyncType string `json:"SyncType" xml:"SyncType"` + GroupName string `json:"GroupName" xml:"GroupName"` + CreateTime int64 `json:"CreateTime" xml:"CreateTime"` + MaxClientCnxns string `json:"MaxClientCnxns" xml:"MaxClientCnxns"` + ExtraInfo string `json:"ExtraInfo" xml:"ExtraInfo"` + MCPEnabled bool `json:"MCPEnabled" xml:"MCPEnabled"` + RegionId string `json:"RegionId" xml:"RegionId"` + UserId string `json:"UserId" xml:"UserId"` + ConfigCount int `json:"ConfigCount" xml:"ConfigCount"` + PreserveHeaderFormat bool `json:"PreserveHeaderFormat" xml:"PreserveHeaderFormat"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + ClusterName string `json:"ClusterName" xml:"ClusterName"` + NamespaceShowName string `json:"NamespaceShowName" xml:"NamespaceShowName"` + ConfigContentLimit int64 `json:"ConfigContentLimit" xml:"ConfigContentLimit"` + TargetClusterUrl string `json:"TargetClusterUrl" xml:"TargetClusterUrl"` + OpenSuperAcl bool `json:"OpenSuperAcl" xml:"OpenSuperAcl"` + Status int `json:"Status" xml:"Status"` + SkipCount int `json:"SkipCount" xml:"SkipCount"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + ExtendedTypesEnable bool `json:"ExtendedTypesEnable" xml:"ExtendedTypesEnable"` + EnableSlashMerge bool `json:"EnableSlashMerge" xml:"EnableSlashMerge"` + NamingCreateServiceSupported bool `json:"NamingCreateServiceSupported" xml:"NamingCreateServiceSupported"` + Enable4lw bool `json:"Enable4lw" xml:"Enable4lw"` + TargetInstanceId string `json:"TargetInstanceId" xml:"TargetInstanceId"` + Url string `json:"Url" xml:"Url"` + OriginInstanceNamespace string `json:"OriginInstanceNamespace" xml:"OriginInstanceNamespace"` + RestartFlag bool `json:"RestartFlag" xml:"RestartFlag"` + DownstreamHttp2MaxConcurrentStream int `json:"DownstreamHttp2MaxConcurrentStream" xml:"DownstreamHttp2MaxConcurrentStream"` + Namespace string `json:"Namespace" xml:"Namespace"` + DelayTime int `json:"DelayTime" xml:"DelayTime"` + UserName string `json:"UserName" xml:"UserName"` + UpstreamIdleTimeout int `json:"UpstreamIdleTimeout" xml:"UpstreamIdleTimeout"` + Tags []string `json:"Tags" xml:"Tags"` + SlsConfigDetails SlsConfigDetails `json:"SlsConfigDetails" xml:"SlsConfigDetails"` + XtraceDetails XtraceDetails `json:"XtraceDetails" xml:"XtraceDetails"` + NacosRunningEnv NacosRunningEnv `json:"NacosRunningEnv" xml:"NacosRunningEnv"` + AppDetail AppDetail `json:"AppDetail" xml:"AppDetail"` + TraceDetails TraceDetails `json:"TraceDetails" xml:"TraceDetails"` + LogConfigDetails LogConfigDetails `json:"LogConfigDetails" xml:"LogConfigDetails"` + Result []ResultItemInListCircuitBreakerRules `json:"Result" xml:"Result"` + FailData []FailDataItem `json:"FailData" xml:"FailData"` + Results []ApplicationList `json:"Results" xml:"Results"` + SkipData []SkipDataItem `json:"SkipData" xml:"SkipData"` + Clusters []NacosAnsCluster `json:"Clusters" xml:"Clusters"` } diff --git a/services/mse/struct_cur_metrics_item.go b/services/mse/struct_data_in_create_isolation_rule.go similarity index 58% rename from services/mse/struct_cur_metrics_item.go rename to services/mse/struct_data_in_create_isolation_rule.go index 147db4285..966f7e12a 100644 --- a/services/mse/struct_cur_metrics_item.go +++ b/services/mse/struct_data_in_create_isolation_rule.go @@ -15,13 +15,14 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// CurMetricsItem is a nested struct in mse response -type CurMetricsItem struct { - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - Qps string `json:"Qps" xml:"Qps"` - ExpQps string `json:"ExpQps" xml:"ExpQps"` - Rt string `json:"Rt" xml:"Rt"` - PassQps string `json:"PassQps" xml:"PassQps"` - BlockQps string `json:"BlockQps" xml:"BlockQps"` - Thread string `json:"Thread" xml:"Thread"` +// DataInCreateIsolationRule is a nested struct in mse response +type DataInCreateIsolationRule struct { + Namespace string `json:"Namespace" xml:"Namespace"` + Id int64 `json:"Id" xml:"Id"` + AppName string `json:"AppName" xml:"AppName"` + Resource string `json:"Resource" xml:"Resource"` + Threshold float64 `json:"Threshold" xml:"Threshold"` + Enable bool `json:"Enable" xml:"Enable"` + AppId string `json:"AppId" xml:"AppId"` + RegionId string `json:"RegionId" xml:"RegionId"` } diff --git a/services/mse/struct_data_in_create_or_update_swimming_lane.go b/services/mse/struct_data_in_create_or_update_swimming_lane.go index 333c52e79..50f417e22 100644 --- a/services/mse/struct_data_in_create_or_update_swimming_lane.go +++ b/services/mse/struct_data_in_create_or_update_swimming_lane.go @@ -17,17 +17,18 @@ package mse // DataInCreateOrUpdateSwimmingLane is a nested struct in mse response type DataInCreateOrUpdateSwimmingLane struct { - Name string `json:"name" xml:"name"` - Id int64 `json:"id" xml:"id"` - Tag string `json:"tag" xml:"tag"` - Status int `json:"status" xml:"status"` - Enable bool `json:"enable" xml:"enable"` - RegionId string `json:"regionId" xml:"regionId"` - GroupId int64 `json:"groupId" xml:"groupId"` - EntryRule string `json:"entryRule" xml:"entryRule"` - EnableRules bool `json:"enableRules" xml:"enableRules"` - GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` - GmtModified string `json:"gmtModified" xml:"gmtModified"` - GatewaySwimmingLaneRouteJson string `json:"gatewaySwimmingLaneRouteJson" xml:"gatewaySwimmingLaneRouteJson"` - EntryRules []EntryRule `json:"entryRules" xml:"entryRules"` + Name string `json:"name" xml:"name"` + Id int64 `json:"id" xml:"id"` + Tag string `json:"tag" xml:"tag"` + Status int `json:"status" xml:"status"` + Enable bool `json:"enable" xml:"enable"` + RegionId string `json:"regionId" xml:"regionId"` + GroupId int64 `json:"groupId" xml:"groupId"` + EntryRule string `json:"entryRule" xml:"entryRule"` + EnableRules bool `json:"enableRules" xml:"enableRules"` + GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` + GmtModified string `json:"gmtModified" xml:"gmtModified"` + GatewaySwimmingLaneRouteJson string `json:"gatewaySwimmingLaneRouteJson" xml:"gatewaySwimmingLaneRouteJson"` + PathIndependentPercentageEnable bool `json:"pathIndependentPercentageEnable" xml:"pathIndependentPercentageEnable"` + EntryRules []EntryRule `json:"entryRules" xml:"entryRules"` } diff --git a/services/mse/struct_data_in_create_or_update_swimming_lane_group.go b/services/mse/struct_data_in_create_or_update_swimming_lane_group.go index 62ae54e2a..19be4cbf4 100644 --- a/services/mse/struct_data_in_create_or_update_swimming_lane_group.go +++ b/services/mse/struct_data_in_create_or_update_swimming_lane_group.go @@ -31,5 +31,7 @@ type DataInCreateOrUpdateSwimmingLaneGroup struct { Region string `json:"region" xml:"region"` MessageQueueGrayEnable bool `json:"MessageQueueGrayEnable" xml:"MessageQueueGrayEnable"` Status int `json:"status" xml:"status"` + Paths string `json:"paths" xml:"paths"` + CanaryModel int `json:"canaryModel" xml:"canaryModel"` ApplicationList []string `json:"applicationList" xml:"applicationList"` } diff --git a/services/mse/struct_data_in_delete_isolation_rules.go b/services/mse/struct_data_in_delete_isolation_rules.go new file mode 100644 index 000000000..e693bfa77 --- /dev/null +++ b/services/mse/struct_data_in_delete_isolation_rules.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// DataInDeleteIsolationRules is a nested struct in mse response +type DataInDeleteIsolationRules struct { + Data []int64 `json:"Data" xml:"Data"` +} diff --git a/services/mse/struct_data_in_get_application_instance_list.go b/services/mse/struct_data_in_get_application_instance_list.go new file mode 100644 index 000000000..1048e69d9 --- /dev/null +++ b/services/mse/struct_data_in_get_application_instance_list.go @@ -0,0 +1,24 @@ +package mse + +//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. + +// DataInGetApplicationInstanceList is a nested struct in mse response +type DataInGetApplicationInstanceList struct { + TotalSize int `json:"TotalSize" xml:"TotalSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Result []RoutePolicyList `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_data_in_get_application_list.go b/services/mse/struct_data_in_get_application_list.go new file mode 100644 index 000000000..2682039bc --- /dev/null +++ b/services/mse/struct_data_in_get_application_list.go @@ -0,0 +1,24 @@ +package mse + +//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. + +// DataInGetApplicationList is a nested struct in mse response +type DataInGetApplicationList struct { + TotalSize int `json:"TotalSize" xml:"TotalSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Result []ApplicationList `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_data_in_get_gateway_auth_detail.go b/services/mse/struct_data_in_get_gateway_auth_detail.go new file mode 100644 index 000000000..ddb48ecfd --- /dev/null +++ b/services/mse/struct_data_in_get_gateway_auth_detail.go @@ -0,0 +1,46 @@ +package mse + +//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. + +// DataInGetGatewayAuthDetail is a nested struct in mse response +type DataInGetGatewayAuthDetail struct { + Id int64 `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + Type string `json:"Type" xml:"Type"` + Issuer string `json:"Issuer" xml:"Issuer"` + Jwks string `json:"Jwks" xml:"Jwks"` + IsWhite bool `json:"IsWhite" xml:"IsWhite"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + TokenPosition string `json:"TokenPosition" xml:"TokenPosition"` + TokenName string `json:"TokenName" xml:"TokenName"` + TokenNamePrefix string `json:"TokenNamePrefix" xml:"TokenNamePrefix"` + TokenPass bool `json:"TokenPass" xml:"TokenPass"` + Status bool `json:"Status" xml:"Status"` + RedirectUrl string `json:"RedirectUrl" xml:"RedirectUrl"` + ClientId string `json:"ClientId" xml:"ClientId"` + ClientSecret string `json:"ClientSecret" xml:"ClientSecret"` + CookieDomain string `json:"CookieDomain" xml:"CookieDomain"` + ScopesList string `json:"ScopesList" xml:"ScopesList"` + LoginUrl string `json:"LoginUrl" xml:"LoginUrl"` + Sub string `json:"Sub" xml:"Sub"` + AuthResourceMode int `json:"AuthResourceMode" xml:"AuthResourceMode"` + AuthResourceConfig string `json:"AuthResourceConfig" xml:"AuthResourceConfig"` + ExternalAuthZ ExternalAuthZ `json:"ExternalAuthZ" xml:"ExternalAuthZ"` + ResourceList []AuthResourceList `json:"ResourceList" xml:"ResourceList"` +} diff --git a/services/mse/struct_data_in_get_gateway_route_detail.go b/services/mse/struct_data_in_get_gateway_route_detail.go index b1728fed5..e3e85c6dd 100644 --- a/services/mse/struct_data_in_get_gateway_route_detail.go +++ b/services/mse/struct_data_in_get_gateway_route_detail.go @@ -36,6 +36,7 @@ type DataInGetGatewayRouteDetail struct { AhasStatus int `json:"AhasStatus" xml:"AhasStatus"` Fallback bool `json:"Fallback" xml:"Fallback"` Policies string `json:"Policies" xml:"Policies"` + Description string `json:"Description" xml:"Description"` DomainIdList []int64 `json:"DomainIdList" xml:"DomainIdList"` DomainNameList []string `json:"DomainNameList" xml:"DomainNameList"` RoutePredicates RoutePredicates `json:"RoutePredicates" xml:"RoutePredicates"` @@ -46,6 +47,7 @@ type DataInGetGatewayRouteDetail struct { Timeout Timeout `json:"Timeout" xml:"Timeout"` Retry Retry `json:"Retry" xml:"Retry"` Redirect Redirect `json:"Redirect" xml:"Redirect"` + FlowMirror FlowMirror `json:"FlowMirror" xml:"FlowMirror"` RouteServices []RouteServicesItem `json:"RouteServices" xml:"RouteServices"` FallbackServices []FallbackServicesItem `json:"FallbackServices" xml:"FallbackServices"` } diff --git a/services/mse/struct_data_in_get_gateway_service_detail.go b/services/mse/struct_data_in_get_gateway_service_detail.go index b88cdc4ac..5af6a56f7 100644 --- a/services/mse/struct_data_in_get_gateway_service_detail.go +++ b/services/mse/struct_data_in_get_gateway_service_detail.go @@ -32,6 +32,8 @@ type DataInGetGatewayServiceDetail struct { HealthStatus string `json:"HealthStatus" xml:"HealthStatus"` HealthCheck string `json:"HealthCheck" xml:"HealthCheck"` ServiceProtocol string `json:"ServiceProtocol" xml:"ServiceProtocol"` + ServiceFQDN string `json:"ServiceFQDN" xml:"ServiceFQDN"` + ServicePort int `json:"ServicePort" xml:"ServicePort"` Ips []string `json:"Ips" xml:"Ips"` Ports []int `json:"Ports" xml:"Ports"` GatewayTrafficPolicy GatewayTrafficPolicy `json:"GatewayTrafficPolicy" xml:"GatewayTrafficPolicy"` diff --git a/services/mse/struct_data_in_get_plugin_config.go b/services/mse/struct_data_in_get_plugin_config.go index 956a8c74f..7aea88d6f 100644 --- a/services/mse/struct_data_in_get_plugin_config.go +++ b/services/mse/struct_data_in_get_plugin_config.go @@ -17,23 +17,27 @@ package mse // DataInGetPluginConfig is a nested struct in mse response type DataInGetPluginConfig struct { - Id int64 `json:"Id" xml:"Id"` - PrimaryUser string `json:"PrimaryUser" xml:"PrimaryUser"` - Type int `json:"Type" xml:"Type"` - Category int `json:"Category" xml:"Category"` - Name string `json:"Name" xml:"Name"` - Version string `json:"Version" xml:"Version"` - Summary string `json:"Summary" xml:"Summary"` - Readme string `json:"Readme" xml:"Readme"` - ReadmeEn string `json:"ReadmeEn" xml:"ReadmeEn"` - Phase int `json:"Phase" xml:"Phase"` - Priority int `json:"Priority" xml:"Priority"` - ConfigCheck string `json:"ConfigCheck" xml:"ConfigCheck"` - Mode int `json:"Mode" xml:"Mode"` - WasmLang int `json:"WasmLang" xml:"WasmLang"` - ImageName string `json:"ImageName" xml:"ImageName"` - PublishState int `json:"PublishState" xml:"PublishState"` - Status string `json:"Status" xml:"Status"` - VersionJson string `json:"VersionJson" xml:"VersionJson"` - GatewayConfigList []GatewayConfigListItem `json:"GatewayConfigList" xml:"GatewayConfigList"` + Id int64 `json:"Id" xml:"Id"` + PrimaryUser string `json:"PrimaryUser" xml:"PrimaryUser"` + Type int `json:"Type" xml:"Type"` + Category int `json:"Category" xml:"Category"` + Name string `json:"Name" xml:"Name"` + Version string `json:"Version" xml:"Version"` + Summary string `json:"Summary" xml:"Summary"` + Readme string `json:"Readme" xml:"Readme"` + ReadmeEn string `json:"ReadmeEn" xml:"ReadmeEn"` + ConfigExample string `json:"ConfigExample" xml:"ConfigExample"` + Phase int `json:"Phase" xml:"Phase"` + Priority int `json:"Priority" xml:"Priority"` + ConfigCheck string `json:"ConfigCheck" xml:"ConfigCheck"` + Mode int `json:"Mode" xml:"Mode"` + WasmLang int `json:"WasmLang" xml:"WasmLang"` + ImageName string `json:"ImageName" xml:"ImageName"` + PublishState int `json:"PublishState" xml:"PublishState"` + Status string `json:"Status" xml:"Status"` + RouteConfigStartIndex int `json:"RouteConfigStartIndex" xml:"RouteConfigStartIndex"` + DomainConfigStartIndex int `json:"DomainConfigStartIndex" xml:"DomainConfigStartIndex"` + GatewayConfigStartIndex int `json:"GatewayConfigStartIndex" xml:"GatewayConfigStartIndex"` + VersionJson string `json:"VersionJson" xml:"VersionJson"` + GatewayConfigList []GatewayConfigListItem `json:"GatewayConfigList" xml:"GatewayConfigList"` } diff --git a/services/mse/struct_data_in_list_applications_with_tag_rules.go b/services/mse/struct_data_in_list_applications_with_tag_rules.go new file mode 100644 index 000000000..34f13216a --- /dev/null +++ b/services/mse/struct_data_in_list_applications_with_tag_rules.go @@ -0,0 +1,24 @@ +package mse + +//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. + +// DataInListApplicationsWithTagRules is a nested struct in mse response +type DataInListApplicationsWithTagRules struct { + TotalSize int `json:"TotalSize" xml:"TotalSize"` + PageNumber int `json:"PageNumber" xml:"PageNumber"` + PageSize int `json:"PageSize" xml:"PageSize"` + Result []ApplicationList `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_data_in_list_cluster_health_check_task.go b/services/mse/struct_data_in_list_gateway_circuit_breaker_rule.go similarity index 83% rename from services/mse/struct_data_in_list_cluster_health_check_task.go rename to services/mse/struct_data_in_list_gateway_circuit_breaker_rule.go index 75479f596..ed89d7bfd 100644 --- a/services/mse/struct_data_in_list_cluster_health_check_task.go +++ b/services/mse/struct_data_in_list_gateway_circuit_breaker_rule.go @@ -15,10 +15,11 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInListClusterHealthCheckTask is a nested struct in mse response -type DataInListClusterHealthCheckTask struct { +// DataInListGatewayCircuitBreakerRule is a nested struct in mse response +type DataInListGatewayCircuitBreakerRule struct { PageNumber int `json:"PageNumber" xml:"PageNumber"` TotalSize int `json:"TotalSize" xml:"TotalSize"` PageSize int `json:"PageSize" xml:"PageSize"` Result []ResultItem `json:"Result" xml:"Result"` + Results []Result `json:"Results" xml:"Results"` } diff --git a/services/mse/struct_data_in_list_circuit_breaker_rules.go b/services/mse/struct_data_in_list_gateway_flow_rule.go similarity index 85% rename from services/mse/struct_data_in_list_circuit_breaker_rules.go rename to services/mse/struct_data_in_list_gateway_flow_rule.go index 07b01962d..be781f974 100644 --- a/services/mse/struct_data_in_list_circuit_breaker_rules.go +++ b/services/mse/struct_data_in_list_gateway_flow_rule.go @@ -15,10 +15,11 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInListCircuitBreakerRules is a nested struct in mse response -type DataInListCircuitBreakerRules struct { +// DataInListGatewayFlowRule is a nested struct in mse response +type DataInListGatewayFlowRule struct { PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` TotalSize int `json:"TotalSize" xml:"TotalSize"` + PageSize int `json:"PageSize" xml:"PageSize"` Result []ResultItem `json:"Result" xml:"Result"` + Results []Result `json:"Results" xml:"Results"` } diff --git a/services/mse/struct_data_in_list_flow_rules.go b/services/mse/struct_data_in_list_gateway_isolation_rule.go similarity index 84% rename from services/mse/struct_data_in_list_flow_rules.go rename to services/mse/struct_data_in_list_gateway_isolation_rule.go index e175f75d8..3ccc02145 100644 --- a/services/mse/struct_data_in_list_flow_rules.go +++ b/services/mse/struct_data_in_list_gateway_isolation_rule.go @@ -15,10 +15,11 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// DataInListFlowRules is a nested struct in mse response -type DataInListFlowRules struct { +// DataInListGatewayIsolationRule is a nested struct in mse response +type DataInListGatewayIsolationRule struct { PageNumber int `json:"PageNumber" xml:"PageNumber"` - PageSize int `json:"PageSize" xml:"PageSize"` TotalSize int `json:"TotalSize" xml:"TotalSize"` + PageSize int `json:"PageSize" xml:"PageSize"` Result []ResultItem `json:"Result" xml:"Result"` + Results []Result `json:"Results" xml:"Results"` } diff --git a/services/mse/struct_data_in_list_gateway_zone.go b/services/mse/struct_data_in_list_gateway_zone.go new file mode 100644 index 000000000..e6302a124 --- /dev/null +++ b/services/mse/struct_data_in_list_gateway_zone.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// DataInListGatewayZone is a nested struct in mse response +type DataInListGatewayZone struct { + DataItem []DataItem `json:"data" xml:"data"` +} diff --git a/services/mse/struct_data_in_list_sentinel_block_fallback_definitions.go b/services/mse/struct_data_in_list_sentinel_block_fallback_definitions.go new file mode 100644 index 000000000..bd97f8680 --- /dev/null +++ b/services/mse/struct_data_in_list_sentinel_block_fallback_definitions.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// DataInListSentinelBlockFallbackDefinitions is a nested struct in mse response +type DataInListSentinelBlockFallbackDefinitions struct { + Fallbacks []Fallbacks `json:"fallbacks" xml:"fallbacks"` +} diff --git a/services/mse/struct_data_in_query_cluster_info.go b/services/mse/struct_data_in_query_cluster_info.go index 86e7247f4..9521b80ad 100644 --- a/services/mse/struct_data_in_query_cluster_info.go +++ b/services/mse/struct_data_in_query_cluster_info.go @@ -52,6 +52,13 @@ type DataInQueryClusterInfo struct { MseVersion string `json:"MseVersion" xml:"MseVersion"` ChargeType string `json:"ChargeType" xml:"ChargeType"` Tags map[string]interface{} `json:"Tags" xml:"Tags"` + EndDate string `json:"EndDate" xml:"EndDate"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + SecurityGroupType string `json:"SecurityGroupType" xml:"SecurityGroupType"` + EipInstanceId string `json:"EipInstanceId" xml:"EipInstanceId"` + CanUpdate bool `json:"CanUpdate" xml:"CanUpdate"` + VersionCode string `json:"VersionCode" xml:"VersionCode"` ExpectZones []string `json:"ExpectZones" xml:"ExpectZones"` + MaintenancePeriod MaintenancePeriod `json:"MaintenancePeriod" xml:"MaintenancePeriod"` InstanceModels []InstanceModel `json:"InstanceModels" xml:"InstanceModels"` } diff --git a/services/mse/struct_data_in_query_swimming_lane_by_id.go b/services/mse/struct_data_in_query_swimming_lane_by_id.go index 23703d6e6..e1e6b236b 100644 --- a/services/mse/struct_data_in_query_swimming_lane_by_id.go +++ b/services/mse/struct_data_in_query_swimming_lane_by_id.go @@ -17,17 +17,18 @@ package mse // DataInQuerySwimmingLaneById is a nested struct in mse response type DataInQuerySwimmingLaneById struct { - Name string `json:"name" xml:"name"` - Id int64 `json:"id" xml:"id"` - Tag string `json:"tag" xml:"tag"` - Status int `json:"status" xml:"status"` - Enable bool `json:"enable" xml:"enable"` - RegionId string `json:"regionId" xml:"regionId"` - GroupId int64 `json:"groupId" xml:"groupId"` - EntryRule string `json:"entryRule" xml:"entryRule"` - EnableRules bool `json:"enableRules" xml:"enableRules"` - GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` - GmtModified string `json:"gmtModified" xml:"gmtModified"` - GatewaySwimmingLaneRouteJson string `json:"gatewaySwimmingLaneRouteJson" xml:"gatewaySwimmingLaneRouteJson"` - EntryRules []EntryRule `json:"entryRules" xml:"entryRules"` + Name string `json:"name" xml:"name"` + Id int64 `json:"id" xml:"id"` + Tag string `json:"tag" xml:"tag"` + Status int `json:"status" xml:"status"` + Enable bool `json:"enable" xml:"enable"` + RegionId string `json:"regionId" xml:"regionId"` + GroupId int64 `json:"groupId" xml:"groupId"` + EntryRule string `json:"entryRule" xml:"entryRule"` + EnableRules bool `json:"enableRules" xml:"enableRules"` + GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` + GmtModified string `json:"gmtModified" xml:"gmtModified"` + GatewaySwimmingLaneRouteJson string `json:"gatewaySwimmingLaneRouteJson" xml:"gatewaySwimmingLaneRouteJson"` + PathIndependentPercentageEnable bool `json:"PathIndependentPercentageEnable" xml:"PathIndependentPercentageEnable"` + EntryRules []EntryRule `json:"entryRules" xml:"entryRules"` } diff --git a/services/mse/struct_data_in_update_gateway_circuit_breaker_rule.go b/services/mse/struct_data_in_update_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..4eadcb48b --- /dev/null +++ b/services/mse/struct_data_in_update_gateway_circuit_breaker_rule.go @@ -0,0 +1,40 @@ +package mse + +//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. + +// DataInUpdateGatewayCircuitBreakerRule is a nested struct in mse response +type DataInUpdateGatewayCircuitBreakerRule struct { + Id int64 `json:"Id" xml:"Id"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + RouteId int64 `json:"RouteId" xml:"RouteId"` + RouteName string `json:"RouteName" xml:"RouteName"` + Strategy int `json:"Strategy" xml:"Strategy"` + TriggerRatio int `json:"TriggerRatio" xml:"TriggerRatio"` + StatDurationSec int `json:"StatDurationSec" xml:"StatDurationSec"` + RecoveryTimeoutSec int `json:"RecoveryTimeoutSec" xml:"RecoveryTimeoutSec"` + MinRequestAmount int `json:"MinRequestAmount" xml:"MinRequestAmount"` + MaxAllowedMs int `json:"MaxAllowedMs" xml:"MaxAllowedMs"` + LimitMode int `json:"LimitMode" xml:"LimitMode"` + BehaviorType int `json:"BehaviorType" xml:"BehaviorType"` + BodyEncoding int `json:"BodyEncoding" xml:"BodyEncoding"` + ResponseStatusCode int `json:"ResponseStatusCode" xml:"ResponseStatusCode"` + ResponseContentBody string `json:"ResponseContentBody" xml:"ResponseContentBody"` + ResponseRedirectUrl string `json:"ResponseRedirectUrl" xml:"ResponseRedirectUrl"` + ResponseAdditionalHeaders string `json:"ResponseAdditionalHeaders" xml:"ResponseAdditionalHeaders"` + Enable int `json:"Enable" xml:"Enable"` + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_data_in_update_gateway_flow_rule.go b/services/mse/struct_data_in_update_gateway_flow_rule.go new file mode 100644 index 000000000..757d63f58 --- /dev/null +++ b/services/mse/struct_data_in_update_gateway_flow_rule.go @@ -0,0 +1,36 @@ +package mse + +//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. + +// DataInUpdateGatewayFlowRule is a nested struct in mse response +type DataInUpdateGatewayFlowRule struct { + Id int64 `json:"Id" xml:"Id"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + RouteId int64 `json:"RouteId" xml:"RouteId"` + RouteName string `json:"RouteName" xml:"RouteName"` + Threshold int `json:"Threshold" xml:"Threshold"` + StatDurationMs int `json:"StatDurationMs" xml:"StatDurationMs"` + LimitMode int `json:"LimitMode" xml:"LimitMode"` + BehaviorType int `json:"BehaviorType" xml:"BehaviorType"` + BodyEncoding int `json:"BodyEncoding" xml:"BodyEncoding"` + ResponseStatusCode int `json:"ResponseStatusCode" xml:"ResponseStatusCode"` + ResponseContentBody string `json:"ResponseContentBody" xml:"ResponseContentBody"` + ResponseRedirectUrl string `json:"ResponseRedirectUrl" xml:"ResponseRedirectUrl"` + ResponseAdditionalHeaders string `json:"ResponseAdditionalHeaders" xml:"ResponseAdditionalHeaders"` + Enable int `json:"Enable" xml:"Enable"` + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_data_in_update_gateway_isolation_rule.go b/services/mse/struct_data_in_update_gateway_isolation_rule.go new file mode 100644 index 000000000..5b1f9eeff --- /dev/null +++ b/services/mse/struct_data_in_update_gateway_isolation_rule.go @@ -0,0 +1,35 @@ +package mse + +//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. + +// DataInUpdateGatewayIsolationRule is a nested struct in mse response +type DataInUpdateGatewayIsolationRule struct { + Id int64 `json:"Id" xml:"Id"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + RouteId int64 `json:"RouteId" xml:"RouteId"` + RouteName string `json:"RouteName" xml:"RouteName"` + MaxConcurrency int `json:"MaxConcurrency" xml:"MaxConcurrency"` + LimitMode int `json:"LimitMode" xml:"LimitMode"` + BehaviorType int `json:"BehaviorType" xml:"BehaviorType"` + BodyEncoding int `json:"BodyEncoding" xml:"BodyEncoding"` + ResponseStatusCode int `json:"ResponseStatusCode" xml:"ResponseStatusCode"` + ResponseContentBody string `json:"ResponseContentBody" xml:"ResponseContentBody"` + ResponseRedirectUrl string `json:"ResponseRedirectUrl" xml:"ResponseRedirectUrl"` + ResponseAdditionalHeaders string `json:"ResponseAdditionalHeaders" xml:"ResponseAdditionalHeaders"` + Enable int `json:"Enable" xml:"Enable"` + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_cur_metrics_fm.go b/services/mse/struct_data_in_update_isolation_rule.go similarity index 61% rename from services/mse/struct_cur_metrics_fm.go rename to services/mse/struct_data_in_update_isolation_rule.go index ed7c0a381..1cb484fa3 100644 --- a/services/mse/struct_cur_metrics_fm.go +++ b/services/mse/struct_data_in_update_isolation_rule.go @@ -15,13 +15,13 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// CurMetricsFm is a nested struct in mse response -type CurMetricsFm struct { - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` - Qps string `json:"Qps" xml:"Qps"` - ExpQps string `json:"ExpQps" xml:"ExpQps"` - Rt string `json:"Rt" xml:"Rt"` - PassQps string `json:"PassQps" xml:"PassQps"` - BlockQps string `json:"BlockQps" xml:"BlockQps"` - Thread string `json:"Thread" xml:"Thread"` +// DataInUpdateIsolationRule is a nested struct in mse response +type DataInUpdateIsolationRule struct { + Namespace string `json:"Namespace" xml:"Namespace"` + Id int64 `json:"Id" xml:"Id"` + AppName string `json:"AppName" xml:"AppName"` + Resource string `json:"Resource" xml:"Resource"` + Threshold float64 `json:"Threshold" xml:"Threshold"` + Enable bool `json:"Enable" xml:"Enable"` + AppId string `json:"AppId" xml:"AppId"` } diff --git a/services/mse/struct_data_item.go b/services/mse/struct_data_item.go index e03d9f289..76092a28f 100644 --- a/services/mse/struct_data_item.go +++ b/services/mse/struct_data_item.go @@ -22,6 +22,8 @@ type DataItem struct { Phase int `json:"Phase" xml:"Phase"` WasmLang int `json:"WasmLang" xml:"WasmLang"` IP string `json:"IP" xml:"IP"` + SyncType string `json:"SyncType" xml:"SyncType"` + LocalName string `json:"LocalName" xml:"LocalName"` ClusterSpecificationName string `json:"ClusterSpecificationName" xml:"ClusterSpecificationName"` ClusterNamePrefix string `json:"clusterNamePrefix" xml:"clusterNamePrefix"` Mode int `json:"Mode" xml:"Mode"` @@ -51,6 +53,7 @@ type DataItem struct { TargetInstanceId string `json:"TargetInstanceId" xml:"TargetInstanceId"` OriginInstanceNamespace string `json:"OriginInstanceNamespace" xml:"OriginInstanceNamespace"` PrimaryUser string `json:"PrimaryUser" xml:"PrimaryUser"` + ZoneId string `json:"ZoneId" xml:"ZoneId"` ConfigCheck string `json:"ConfigCheck" xml:"ConfigCheck"` WasmFile string `json:"WasmFile" xml:"WasmFile"` NamespaceId string `json:"NamespaceId" xml:"NamespaceId"` diff --git a/services/mse/struct_dubbo.go b/services/mse/struct_dubbo.go new file mode 100644 index 000000000..bfc814e42 --- /dev/null +++ b/services/mse/struct_dubbo.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// Dubbo is a nested struct in mse response +type Dubbo struct { + DubboRule []DubboRule `json:"DubboRule" xml:"DubboRule"` +} diff --git a/services/mse/struct_dubbo_rule.go b/services/mse/struct_dubbo_rule.go new file mode 100644 index 000000000..43abf581f --- /dev/null +++ b/services/mse/struct_dubbo_rule.go @@ -0,0 +1,31 @@ +package mse + +//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. + +// DubboRule is a nested struct in mse response +type DubboRule struct { + AppId string `json:"appId" xml:"appId"` + TriggerPolicy string `json:"triggerPolicy" xml:"triggerPolicy"` + CarryData bool `json:"carryData" xml:"carryData"` + ServiceName string `json:"serviceName" xml:"serviceName"` + Group string `json:"group" xml:"group"` + Version string `json:"version" xml:"version"` + MethodName string `json:"methodName" xml:"methodName"` + Condition string `json:"condition" xml:"condition"` + Tags []string `json:"tags" xml:"tags"` + ParamTypes []string `json:"paramTypes" xml:"paramTypes"` + ArgumentItems []ArgumentItem `json:"argumentItems" xml:"argumentItems"` +} diff --git a/services/mse/struct_elastic_policy.go b/services/mse/struct_elastic_policy.go index 7e5021bd4..f2faf5af9 100644 --- a/services/mse/struct_elastic_policy.go +++ b/services/mse/struct_elastic_policy.go @@ -17,8 +17,10 @@ package mse // ElasticPolicy is a nested struct in mse response type ElasticPolicy struct { - ElasticType string `json:"ElasticType" xml:"ElasticType"` - Elastic bool `json:"Elastic" xml:"Elastic"` - MaxReplica int `json:"MaxReplica" xml:"MaxReplica"` - TimePolicyList []TimePolicyListItem `json:"TimePolicyList" xml:"TimePolicyList"` + ElasticType string `json:"ElasticType" xml:"ElasticType"` + LoadWarningThreshold bool `json:"LoadWarningThreshold" xml:"LoadWarningThreshold"` + Elastic bool `json:"Elastic" xml:"Elastic"` + MaxReplica int `json:"MaxReplica" xml:"MaxReplica"` + TimePolicyList []TimePolicyListItem `json:"TimePolicyList" xml:"TimePolicyList"` + EnableScaleTimePolicyList []EnableScaleTimePolicyListItem `json:"EnableScaleTimePolicyList" xml:"EnableScaleTimePolicyList"` } diff --git a/services/mse/struct_enable_scale_time_policy_list.go b/services/mse/struct_enable_scale_time_policy_list.go new file mode 100644 index 000000000..0f033f479 --- /dev/null +++ b/services/mse/struct_enable_scale_time_policy_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// EnableScaleTimePolicyList is a nested struct in mse response +type EnableScaleTimePolicyList struct { + EnableScaleTimePolicyListItem []EnableScaleTimePolicyListItem `json:"enableScaleTimePolicyList" xml:"enableScaleTimePolicyList"` +} diff --git a/services/mse/struct_enable_scale_time_policy_list_item.go b/services/mse/struct_enable_scale_time_policy_list_item.go new file mode 100644 index 000000000..59be50c7d --- /dev/null +++ b/services/mse/struct_enable_scale_time_policy_list_item.go @@ -0,0 +1,22 @@ +package mse + +//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. + +// EnableScaleTimePolicyListItem is a nested struct in mse response +type EnableScaleTimePolicyListItem struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/services/mse/struct_external_auth_z.go b/services/mse/struct_external_auth_z.go new file mode 100644 index 000000000..d2b351e2e --- /dev/null +++ b/services/mse/struct_external_auth_z.go @@ -0,0 +1,31 @@ +package mse + +//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. + +// ExternalAuthZ is a nested struct in mse response +type ExternalAuthZ struct { + ServiceId int64 `json:"ServiceId" xml:"ServiceId"` + PrefixPath string `json:"PrefixPath" xml:"PrefixPath"` + TokenKey string `json:"TokenKey" xml:"TokenKey"` + Timeout int `json:"Timeout" xml:"Timeout"` + IsRestrict bool `json:"IsRestrict" xml:"IsRestrict"` + WithRequestBody bool `json:"WithRequestBody" xml:"WithRequestBody"` + BodyMaxBytes int `json:"BodyMaxBytes" xml:"BodyMaxBytes"` + WithRematchRoute bool `json:"WithRematchRoute" xml:"WithRematchRoute"` + AllowRequestHeaders []string `json:"AllowRequestHeaders" xml:"AllowRequestHeaders"` + AllowUpstreamHeaders []string `json:"AllowUpstreamHeaders" xml:"AllowUpstreamHeaders"` + Service Service `json:"Service" xml:"Service"` +} diff --git a/services/mse/struct_fail_data_item.go b/services/mse/struct_fail_data_item.go index 157b5d356..1a82a2f8c 100644 --- a/services/mse/struct_fail_data_item.go +++ b/services/mse/struct_fail_data_item.go @@ -17,6 +17,7 @@ package mse // FailDataItem is a nested struct in mse response type FailDataItem struct { + Reason string `json:"Reason" xml:"Reason"` DataId string `json:"DataId" xml:"DataId"` Group string `json:"Group" xml:"Group"` } diff --git a/services/mse/struct_fallbacks.go b/services/mse/struct_fallbacks.go new file mode 100644 index 000000000..8ec6ba27e --- /dev/null +++ b/services/mse/struct_fallbacks.go @@ -0,0 +1,27 @@ +package mse + +//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. + +// Fallbacks is a nested struct in mse response +type Fallbacks struct { + Id string `json:"Id" xml:"Id"` + Namespace string `json:"Namespace" xml:"Namespace"` + AppName string `json:"AppName" xml:"AppName"` + Name string `json:"Name" xml:"Name"` + ResourceClassification string `json:"ResourceClassification" xml:"ResourceClassification"` + FallbackBehavior map[string]interface{} `json:"FallbackBehavior" xml:"FallbackBehavior"` + TargetMap map[string]interface{} `json:"TargetMap" xml:"TargetMap"` +} diff --git a/services/mse/struct_flow_mirror.go b/services/mse/struct_flow_mirror.go new file mode 100644 index 000000000..f48db81a4 --- /dev/null +++ b/services/mse/struct_flow_mirror.go @@ -0,0 +1,25 @@ +package mse + +//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. + +// FlowMirror is a nested struct in mse response +type FlowMirror struct { + TargetServiceId int64 `json:"TargetServiceId" xml:"TargetServiceId"` + TargetServiceName string `json:"TargetServiceName" xml:"TargetServiceName"` + Port int `json:"Port" xml:"Port"` + Percentage int `json:"Percentage" xml:"Percentage"` + Status string `json:"Status" xml:"Status"` +} diff --git a/services/mse/struct_gateway_config_list_item.go b/services/mse/struct_gateway_config_list_item.go index c354a136e..d29af61ca 100644 --- a/services/mse/struct_gateway_config_list_item.go +++ b/services/mse/struct_gateway_config_list_item.go @@ -17,13 +17,14 @@ package mse // GatewayConfigListItem is a nested struct in mse response type GatewayConfigListItem struct { - Id int64 `json:"Id" xml:"Id"` - GatewayId int64 `json:"GatewayId" xml:"GatewayId"` - GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` - PluginId int64 `json:"PluginId" xml:"PluginId"` - Enable bool `json:"Enable" xml:"Enable"` - Config string `json:"Config" xml:"Config"` - ConfigLevel int `json:"ConfigLevel" xml:"ConfigLevel"` - GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` + Id int64 `json:"Id" xml:"Id"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + PluginId int64 `json:"PluginId" xml:"PluginId"` + Enable bool `json:"Enable" xml:"Enable"` + Config string `json:"Config" xml:"Config"` + ConfigLevel int `json:"ConfigLevel" xml:"ConfigLevel"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + ResourceList []ResourceListItem `json:"ResourceList" xml:"ResourceList"` } diff --git a/services/mse/struct_gateway_swimming_lane_route.go b/services/mse/struct_gateway_swimming_lane_route.go new file mode 100644 index 000000000..3d4f4c459 --- /dev/null +++ b/services/mse/struct_gateway_swimming_lane_route.go @@ -0,0 +1,28 @@ +package mse + +//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. + +// GatewaySwimmingLaneRoute is a nested struct in mse response +type GatewaySwimmingLaneRoute struct { + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + CanaryModel int `json:"CanaryModel" xml:"CanaryModel"` + Percentage int `json:"Percentage" xml:"Percentage"` + RouteIndependentPercentageEnable string `json:"RouteIndependentPercentageEnable" xml:"RouteIndependentPercentageEnable"` + RouteIdList []int64 `json:"RouteIdList" xml:"RouteIdList"` + Conditions []ConditionsItem `json:"Conditions" xml:"Conditions"` + RouteIndependentPercentageList []RouteIndependentPercentageListItem `json:"RouteIndependentPercentageList" xml:"RouteIndependentPercentageList"` +} diff --git a/services/mse/struct_gateways.go b/services/mse/struct_gateways.go index 4e0785fc5..6700a6de4 100644 --- a/services/mse/struct_gateways.go +++ b/services/mse/struct_gateways.go @@ -51,8 +51,11 @@ type Gateways struct { ElasticReplica int `json:"ElasticReplica" xml:"ElasticReplica"` ElasticType string `json:"ElasticType" xml:"ElasticType"` ElasticInstanceId string `json:"ElasticInstanceId" xml:"ElasticInstanceId"` + VpcId string `json:"VpcId" xml:"VpcId"` + MseVersion string `json:"MseVersion" xml:"MseVersion"` InitConfig InitConfig `json:"InitConfig" xml:"InitConfig"` ElasticPolicy ElasticPolicy `json:"ElasticPolicy" xml:"ElasticPolicy"` + MaintenancePeriod MaintenancePeriod `json:"MaintenancePeriod" xml:"MaintenancePeriod"` Slb []SlbItem `json:"Slb" xml:"Slb"` InternetSlb []InternetSlbItem `json:"InternetSlb" xml:"InternetSlb"` } diff --git a/services/mse/struct_history_item.go b/services/mse/struct_history_item.go index 92bd1c27b..323db177f 100644 --- a/services/mse/struct_history_item.go +++ b/services/mse/struct_history_item.go @@ -23,4 +23,5 @@ type HistoryItem struct { LastModifiedTime int64 `json:"LastModifiedTime" xml:"LastModifiedTime"` Id int64 `json:"Id" xml:"Id"` OpType string `json:"OpType" xml:"OpType"` + SrcUser string `json:"SrcUser" xml:"SrcUser"` } diff --git a/services/mse/struct_id_list_in_list_gateway_circuit_breaker_rule.go b/services/mse/struct_id_list_in_list_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..82cd7665f --- /dev/null +++ b/services/mse/struct_id_list_in_list_gateway_circuit_breaker_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInListGatewayCircuitBreakerRule is a nested struct in mse response +type IdListInListGatewayCircuitBreakerRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_id_list_in_list_gateway_flow_rule.go b/services/mse/struct_id_list_in_list_gateway_flow_rule.go new file mode 100644 index 000000000..8fcc65eec --- /dev/null +++ b/services/mse/struct_id_list_in_list_gateway_flow_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInListGatewayFlowRule is a nested struct in mse response +type IdListInListGatewayFlowRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_id_list_in_list_gateway_isolation_rule.go b/services/mse/struct_id_list_in_list_gateway_isolation_rule.go new file mode 100644 index 000000000..386a87aa9 --- /dev/null +++ b/services/mse/struct_id_list_in_list_gateway_isolation_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInListGatewayIsolationRule is a nested struct in mse response +type IdListInListGatewayIsolationRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_id_list_in_update_gateway_circuit_breaker_rule.go b/services/mse/struct_id_list_in_update_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..1a8a10f4f --- /dev/null +++ b/services/mse/struct_id_list_in_update_gateway_circuit_breaker_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInUpdateGatewayCircuitBreakerRule is a nested struct in mse response +type IdListInUpdateGatewayCircuitBreakerRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_id_list_in_update_gateway_flow_rule.go b/services/mse/struct_id_list_in_update_gateway_flow_rule.go new file mode 100644 index 000000000..5ffc4652a --- /dev/null +++ b/services/mse/struct_id_list_in_update_gateway_flow_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInUpdateGatewayFlowRule is a nested struct in mse response +type IdListInUpdateGatewayFlowRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_id_list_in_update_gateway_isolation_rule.go b/services/mse/struct_id_list_in_update_gateway_isolation_rule.go new file mode 100644 index 000000000..2578e129b --- /dev/null +++ b/services/mse/struct_id_list_in_update_gateway_isolation_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// IdListInUpdateGatewayIsolationRule is a nested struct in mse response +type IdListInUpdateGatewayIsolationRule struct { + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_kubernetes_namespace.go b/services/mse/struct_kubernetes_namespace.go index 1f37f8867..7a841d4e8 100644 --- a/services/mse/struct_kubernetes_namespace.go +++ b/services/mse/struct_kubernetes_namespace.go @@ -17,6 +17,8 @@ package mse // KubernetesNamespace is a nested struct in mse response type KubernetesNamespace struct { - Name string `json:"Name" xml:"Name"` - Tags string `json:"Tags" xml:"Tags"` + Name string `json:"Name" xml:"Name"` + MseNamespace string `json:"MseNamespace" xml:"MseNamespace"` + Tags string `json:"Tags" xml:"Tags"` + Labels map[string]interface{} `json:"Labels" xml:"Labels"` } diff --git a/services/mse/struct_listener.go b/services/mse/struct_listener.go index 11d9a7869..10c656b2c 100644 --- a/services/mse/struct_listener.go +++ b/services/mse/struct_listener.go @@ -17,9 +17,12 @@ package mse // Listener is a nested struct in mse response type Listener struct { - DataId string `json:"DataId" xml:"DataId"` - Group string `json:"Group" xml:"Group"` - Ip string `json:"Ip" xml:"Ip"` - Md5 string `json:"Md5" xml:"Md5"` - Status string `json:"Status" xml:"Status"` + DataId string `json:"DataId" xml:"DataId"` + Group string `json:"Group" xml:"Group"` + Labels map[string]interface{} `json:"Labels" xml:"Labels"` + Ip string `json:"Ip" xml:"Ip"` + Md5 string `json:"Md5" xml:"Md5"` + Version string `json:"Version" xml:"Version"` + NamespaceId string `json:"NamespaceId" xml:"NamespaceId"` + Status string `json:"Status" xml:"Status"` } diff --git a/services/mse/struct_maintenance_period.go b/services/mse/struct_maintenance_period.go new file mode 100644 index 000000000..7f0f5d7e2 --- /dev/null +++ b/services/mse/struct_maintenance_period.go @@ -0,0 +1,23 @@ +package mse + +//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. + +// MaintenancePeriod is a nested struct in mse response +type MaintenancePeriod struct { + TimeZone string `json:"TimeZone" xml:"TimeZone"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` +} diff --git a/services/mse/struct_mothed_map_list_in_get_gateway_route_detail.go b/services/mse/struct_mothed_map_list_in_get_gateway_route_detail.go new file mode 100644 index 000000000..8004cc207 --- /dev/null +++ b/services/mse/struct_mothed_map_list_in_get_gateway_route_detail.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// MothedMapListInGetGatewayRouteDetail is a nested struct in mse response +type MothedMapListInGetGatewayRouteDetail struct { + MothedMapListItem []MothedMapListItem `json:"MothedMapList" xml:"MothedMapList"` +} diff --git a/services/mse/struct_mothed_map_list.go b/services/mse/struct_mothed_map_list_in_list_gateway_route.go similarity index 87% rename from services/mse/struct_mothed_map_list.go rename to services/mse/struct_mothed_map_list_in_list_gateway_route.go index f9f3a352b..4f588635e 100644 --- a/services/mse/struct_mothed_map_list.go +++ b/services/mse/struct_mothed_map_list_in_list_gateway_route.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// MothedMapList is a nested struct in mse response -type MothedMapList struct { +// MothedMapListInListGatewayRoute is a nested struct in mse response +type MothedMapListInListGatewayRoute struct { MothedMapListItem []MothedMapListItem `json:"MothedMapList" xml:"MothedMapList"` } diff --git a/services/mse/struct_mothed_map_list_item.go b/services/mse/struct_mothed_map_list_item.go index e467667c3..51f245fb9 100644 --- a/services/mse/struct_mothed_map_list_item.go +++ b/services/mse/struct_mothed_map_list_item.go @@ -17,10 +17,10 @@ package mse // MothedMapListItem is a nested struct in mse response type MothedMapListItem struct { - DubboMothedName string `json:"DubboMothedName" xml:"DubboMothedName"` HttpMothed string `json:"HttpMothed" xml:"HttpMothed"` Mothedpath string `json:"Mothedpath" xml:"Mothedpath"` PassThroughAllHeaders string `json:"PassThroughAllHeaders" xml:"PassThroughAllHeaders"` + DubboMothedName string `json:"DubboMothedName" xml:"DubboMothedName"` PassThroughList []string `json:"PassThroughList" xml:"PassThroughList"` ParamMapsList []ParamMapsListItem `json:"ParamMapsList" xml:"ParamMapsList"` } diff --git a/services/mse/struct_msc_service_response.go b/services/mse/struct_msc_service_response.go index 07389ab3e..8271ec920 100644 --- a/services/mse/struct_msc_service_response.go +++ b/services/mse/struct_msc_service_response.go @@ -27,4 +27,5 @@ type MscServiceResponse struct { ServiceName string `json:"ServiceName" xml:"ServiceName"` Group string `json:"Group" xml:"Group"` ClusterName string `json:"ClusterName" xml:"ClusterName"` + ServiceType string `json:"ServiceType" xml:"ServiceType"` } diff --git a/services/mse/struct_name_list_in_list_applications_with_tag_rules.go b/services/mse/struct_name_list_in_list_applications_with_tag_rules.go new file mode 100644 index 000000000..6b1fdb7a3 --- /dev/null +++ b/services/mse/struct_name_list_in_list_applications_with_tag_rules.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// NameListInListApplicationsWithTagRules is a nested struct in mse response +type NameListInListApplicationsWithTagRules struct { + NameItem []string `json:"nameItem" xml:"nameItem"` +} diff --git a/services/mse/struct_param_maps_list_in_get_gateway_route_detail.go b/services/mse/struct_param_maps_list_in_get_gateway_route_detail.go new file mode 100644 index 000000000..a322dca27 --- /dev/null +++ b/services/mse/struct_param_maps_list_in_get_gateway_route_detail.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ParamMapsListInGetGatewayRouteDetail is a nested struct in mse response +type ParamMapsListInGetGatewayRouteDetail struct { + ParamMapsListItem []ParamMapsListItem `json:"ParamMapsList" xml:"ParamMapsList"` +} diff --git a/services/mse/struct_param_maps_list.go b/services/mse/struct_param_maps_list_in_list_gateway_route.go similarity index 87% rename from services/mse/struct_param_maps_list.go rename to services/mse/struct_param_maps_list_in_list_gateway_route.go index d485dcce2..675350cd0 100644 --- a/services/mse/struct_param_maps_list.go +++ b/services/mse/struct_param_maps_list_in_list_gateway_route.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ParamMapsList is a nested struct in mse response -type ParamMapsList struct { +// ParamMapsListInListGatewayRoute is a nested struct in mse response +type ParamMapsListInListGatewayRoute struct { ParamMapsListItem []ParamMapsListItem `json:"ParamMapsList" xml:"ParamMapsList"` } diff --git a/services/mse/struct_param_types.go b/services/mse/struct_param_types.go new file mode 100644 index 000000000..6617e71fc --- /dev/null +++ b/services/mse/struct_param_types.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ParamTypes is a nested struct in mse response +type ParamTypes struct { + ParamType []string `json:"ParamType" xml:"ParamType"` +} diff --git a/services/mse/struct_pass_through_list_in_get_gateway_route_detail.go b/services/mse/struct_pass_through_list_in_get_gateway_route_detail.go new file mode 100644 index 000000000..947d98f82 --- /dev/null +++ b/services/mse/struct_pass_through_list_in_get_gateway_route_detail.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// PassThroughListInGetGatewayRouteDetail is a nested struct in mse response +type PassThroughListInGetGatewayRouteDetail struct { + PassThroughList []string `json:"PassThroughList" xml:"PassThroughList"` +} diff --git a/services/mse/struct_pass_through_list.go b/services/mse/struct_pass_through_list_in_list_gateway_route.go similarity index 86% rename from services/mse/struct_pass_through_list.go rename to services/mse/struct_pass_through_list_in_list_gateway_route.go index 16b9e6fd9..c562a096b 100644 --- a/services/mse/struct_pass_through_list.go +++ b/services/mse/struct_pass_through_list_in_list_gateway_route.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// PassThroughList is a nested struct in mse response -type PassThroughList struct { +// PassThroughListInListGatewayRoute is a nested struct in mse response +type PassThroughListInListGatewayRoute struct { PassThroughList []string `json:"PassThroughList" xml:"PassThroughList"` } diff --git a/services/mse/struct_tags_in_get_application_list_with_metircs.go b/services/mse/struct_paths_in_list_applications_with_tag_rules.go similarity index 82% rename from services/mse/struct_tags_in_get_application_list_with_metircs.go rename to services/mse/struct_paths_in_list_applications_with_tag_rules.go index d54691ddd..73a8ce175 100644 --- a/services/mse/struct_tags_in_get_application_list_with_metircs.go +++ b/services/mse/struct_paths_in_list_applications_with_tag_rules.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// TagsInGetApplicationListWithMetircs is a nested struct in mse response -type TagsInGetApplicationListWithMetircs struct { - Tags []string `json:"Tags" xml:"Tags"` +// PathsInListApplicationsWithTagRules is a nested struct in mse response +type PathsInListApplicationsWithTagRules struct { + Path []string `json:"Path" xml:"Path"` } diff --git a/services/mse/struct_resource_list.go b/services/mse/struct_resource_list_in_get_gateway_auth_consumer_detail.go similarity index 84% rename from services/mse/struct_resource_list.go rename to services/mse/struct_resource_list_in_get_gateway_auth_consumer_detail.go index 53131bda4..bf455a0fa 100644 --- a/services/mse/struct_resource_list.go +++ b/services/mse/struct_resource_list_in_get_gateway_auth_consumer_detail.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ResourceList is a nested struct in mse response -type ResourceList struct { +// ResourceListInGetGatewayAuthConsumerDetail is a nested struct in mse response +type ResourceListInGetGatewayAuthConsumerDetail struct { Resource []Resource `json:"resource" xml:"resource"` } diff --git a/services/mse/struct_resource_list_in_get_gateway_auth_detail.go b/services/mse/struct_resource_list_in_get_gateway_auth_detail.go new file mode 100644 index 000000000..6eeb5cfc7 --- /dev/null +++ b/services/mse/struct_resource_list_in_get_gateway_auth_detail.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResourceListInGetGatewayAuthDetail is a nested struct in mse response +type ResourceListInGetGatewayAuthDetail struct { + AuthResourceList []AuthResourceList `json:"AuthResourceList" xml:"AuthResourceList"` +} diff --git a/services/mse/struct_resource_list_in_get_plugin_config.go b/services/mse/struct_resource_list_in_get_plugin_config.go new file mode 100644 index 000000000..ac8976776 --- /dev/null +++ b/services/mse/struct_resource_list_in_get_plugin_config.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResourceListInGetPluginConfig is a nested struct in mse response +type ResourceListInGetPluginConfig struct { + ResourceListItem []ResourceListItem `json:"ResourceList" xml:"ResourceList"` +} diff --git a/services/mse/struct_resource_list_item.go b/services/mse/struct_resource_list_item.go new file mode 100644 index 000000000..e3137caec --- /dev/null +++ b/services/mse/struct_resource_list_item.go @@ -0,0 +1,22 @@ +package mse + +//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. + +// ResourceListItem is a nested struct in mse response +type ResourceListItem struct { + Id int64 `json:"Id" xml:"Id"` + Name string `json:"Name" xml:"Name"` +} diff --git a/services/mse/struct_rest_item.go b/services/mse/struct_rest_item.go new file mode 100644 index 000000000..1017f5ece --- /dev/null +++ b/services/mse/struct_rest_item.go @@ -0,0 +1,30 @@ +package mse + +//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. + +// RestItem is a nested struct in mse response +type RestItem struct { + Datum string `json:"datum" xml:"datum"` + Operator string `json:"operator" xml:"operator"` + Cond string `json:"cond" xml:"cond"` + Divisor int `json:"divisor" xml:"divisor"` + Remainder int `json:"remainder" xml:"remainder"` + Rate int `json:"rate" xml:"rate"` + Type string `json:"type" xml:"type"` + Name string `json:"name" xml:"name"` + Value string `json:"value" xml:"value"` + NameList []string `json:"nameList" xml:"nameList"` +} diff --git a/services/mse/struct_rest_items_in_list_applications_with_tag_rules.go b/services/mse/struct_rest_items_in_list_applications_with_tag_rules.go new file mode 100644 index 000000000..36553db44 --- /dev/null +++ b/services/mse/struct_rest_items_in_list_applications_with_tag_rules.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// RestItemsInListApplicationsWithTagRules is a nested struct in mse response +type RestItemsInListApplicationsWithTagRules struct { + RestItem []RestItem `json:"RestItem" xml:"RestItem"` +} diff --git a/services/mse/struct_result.go b/services/mse/struct_result.go new file mode 100644 index 000000000..3416e9db9 --- /dev/null +++ b/services/mse/struct_result.go @@ -0,0 +1,43 @@ +package mse + +//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. + +// Result is a nested struct in mse response +type Result struct { + MaxAllowedMs int `json:"MaxAllowedMs" xml:"MaxAllowedMs"` + BodyEncoding int `json:"BodyEncoding" xml:"BodyEncoding"` + Enable int `json:"Enable" xml:"Enable"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + RecoveryTimeoutSec int `json:"RecoveryTimeoutSec" xml:"RecoveryTimeoutSec"` + MaxConcurrency int `json:"MaxConcurrency" xml:"MaxConcurrency"` + Strategy int `json:"Strategy" xml:"Strategy"` + Id int64 `json:"Id" xml:"Id"` + RouteId int64 `json:"RouteId" xml:"RouteId"` + TriggerRatio int `json:"TriggerRatio" xml:"TriggerRatio"` + MinRequestAmount int `json:"MinRequestAmount" xml:"MinRequestAmount"` + StatDurationMs int `json:"StatDurationMs" xml:"StatDurationMs"` + BehaviorType int `json:"BehaviorType" xml:"BehaviorType"` + ResponseAdditionalHeaders string `json:"ResponseAdditionalHeaders" xml:"ResponseAdditionalHeaders"` + Threshold int `json:"Threshold" xml:"Threshold"` + ResponseContentBody string `json:"ResponseContentBody" xml:"ResponseContentBody"` + LimitMode int `json:"LimitMode" xml:"LimitMode"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + RouteName string `json:"RouteName" xml:"RouteName"` + StatDurationSec int `json:"StatDurationSec" xml:"StatDurationSec"` + ResponseStatusCode int `json:"ResponseStatusCode" xml:"ResponseStatusCode"` + ResponseRedirectUrl string `json:"ResponseRedirectUrl" xml:"ResponseRedirectUrl"` + IdList []int64 `json:"IdList" xml:"IdList"` +} diff --git a/services/mse/struct_result_in_gateway_black_white_list.go b/services/mse/struct_result_in_gateway_black_white_list.go new file mode 100644 index 000000000..53cdda1ac --- /dev/null +++ b/services/mse/struct_result_in_gateway_black_white_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInGatewayBlackWhiteList is a nested struct in mse response +type ResultInGatewayBlackWhiteList struct { + ResultItem []ResultItem `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_result_in_get_application_instance_list.go b/services/mse/struct_result_in_get_application_instance_list.go new file mode 100644 index 000000000..a24381b29 --- /dev/null +++ b/services/mse/struct_result_in_get_application_instance_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInGetApplicationInstanceList is a nested struct in mse response +type ResultInGetApplicationInstanceList struct { + RoutePolicyList []RoutePolicyList `json:"RoutePolicyList" xml:"RoutePolicyList"` +} diff --git a/services/mse/struct_result_in_get_application_list_with_metircs.go b/services/mse/struct_result_in_get_application_list_with_metircs.go deleted file mode 100644 index d1518ad84..000000000 --- a/services/mse/struct_result_in_get_application_list_with_metircs.go +++ /dev/null @@ -1,21 +0,0 @@ -package mse - -//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. - -// ResultInGetApplicationListWithMetircs is a nested struct in mse response -type ResultInGetApplicationListWithMetircs struct { - ApplicationList []ApplicationList `json:"ApplicationList" xml:"ApplicationList"` -} diff --git a/services/mse/struct_result_in_list_circuit_breaker_rules.go b/services/mse/struct_result_in_list_circuit_breaker_rules.go index b615e7fa7..052ea61d0 100644 --- a/services/mse/struct_result_in_list_circuit_breaker_rules.go +++ b/services/mse/struct_result_in_list_circuit_breaker_rules.go @@ -17,5 +17,5 @@ package mse // ResultInListCircuitBreakerRules is a nested struct in mse response type ResultInListCircuitBreakerRules struct { - ResultItem []ResultItem `json:"Result" xml:"Result"` + ResultItem []ResultItemInListCircuitBreakerRules `json:"Result" xml:"Result"` } diff --git a/services/mse/struct_result_in_list_cluster_health_check_task.go b/services/mse/struct_result_in_list_cluster_health_check_task.go index ba166354c..1ef01124b 100644 --- a/services/mse/struct_result_in_list_cluster_health_check_task.go +++ b/services/mse/struct_result_in_list_cluster_health_check_task.go @@ -17,5 +17,5 @@ package mse // ResultInListClusterHealthCheckTask is a nested struct in mse response type ResultInListClusterHealthCheckTask struct { - ResultItem []ResultItem `json:"Result" xml:"Result"` + ResultItem []ResultItemInListClusterHealthCheckTask `json:"Result" xml:"Result"` } diff --git a/services/mse/struct_result_in_list_flow_rules.go b/services/mse/struct_result_in_list_flow_rules.go index e5c03d082..86ee8b398 100644 --- a/services/mse/struct_result_in_list_flow_rules.go +++ b/services/mse/struct_result_in_list_flow_rules.go @@ -17,5 +17,5 @@ package mse // ResultInListFlowRules is a nested struct in mse response type ResultInListFlowRules struct { - ResultItem []ResultItem `json:"Result" xml:"Result"` + ResultItem []ResultItemInListFlowRules `json:"Result" xml:"Result"` } diff --git a/services/mse/struct_result_in_list_gateway_circuit_breaker_rule.go b/services/mse/struct_result_in_list_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..2b4d28bf0 --- /dev/null +++ b/services/mse/struct_result_in_list_gateway_circuit_breaker_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInListGatewayCircuitBreakerRule is a nested struct in mse response +type ResultInListGatewayCircuitBreakerRule struct { + ResultItem []ResultItem `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_result_in_list_gateway_flow_rule.go b/services/mse/struct_result_in_list_gateway_flow_rule.go new file mode 100644 index 000000000..46aeea080 --- /dev/null +++ b/services/mse/struct_result_in_list_gateway_flow_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInListGatewayFlowRule is a nested struct in mse response +type ResultInListGatewayFlowRule struct { + ResultItem []ResultItem `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_result_in_list_gateway_isolation_rule.go b/services/mse/struct_result_in_list_gateway_isolation_rule.go new file mode 100644 index 000000000..ca4b12bf8 --- /dev/null +++ b/services/mse/struct_result_in_list_gateway_isolation_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInListGatewayIsolationRule is a nested struct in mse response +type ResultInListGatewayIsolationRule struct { + ResultItem []ResultItem `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_result_in_list_isolation_rules.go b/services/mse/struct_result_in_list_isolation_rules.go new file mode 100644 index 000000000..4665895d8 --- /dev/null +++ b/services/mse/struct_result_in_list_isolation_rules.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultInListIsolationRules is a nested struct in mse response +type ResultInListIsolationRules struct { + ResultItem []ResultItemInListIsolationRules `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_result_item.go b/services/mse/struct_result_item.go index 71ec25b97..9a303618e 100644 --- a/services/mse/struct_result_item.go +++ b/services/mse/struct_result_item.go @@ -17,42 +17,38 @@ package mse // ResultItem is a nested struct in mse response type ResultItem struct { - TotalItem int `json:"TotalItem" xml:"TotalItem"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - Strategy int `json:"Strategy" xml:"Strategy"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - VersionCode string `json:"VersionCode" xml:"VersionCode"` - Threshold float64 `json:"Threshold" xml:"Threshold"` - HalfOpenBaseAmountPerStep int `json:"HalfOpenBaseAmountPerStep" xml:"HalfOpenBaseAmountPerStep"` - ControlBehavior int `json:"ControlBehavior" xml:"ControlBehavior"` - RegionId string `json:"RegionId" xml:"RegionId"` - FallbackObject string `json:"FallbackObject" xml:"FallbackObject"` - HalfOpenRecoveryStepNum int `json:"HalfOpenRecoveryStepNum" xml:"HalfOpenRecoveryStepNum"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - RuleId int64 `json:"RuleId" xml:"RuleId"` - StatIntervalMs int `json:"StatIntervalMs" xml:"StatIntervalMs"` - MetricType int `json:"MetricType" xml:"MetricType"` - TrafficTags map[string]interface{} `json:"TrafficTags" xml:"TrafficTags"` - Resource string `json:"Resource" xml:"Resource"` - Type string `json:"Type" xml:"Type"` - Replica string `json:"Replica" xml:"Replica"` - Id int `json:"Id" xml:"Id"` - ClusterType string `json:"ClusterType" xml:"ClusterType"` - ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` - UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` - RetryTimeoutMs int `json:"RetryTimeoutMs" xml:"RetryTimeoutMs"` - MaxAllowedRtMs int `json:"MaxAllowedRtMs" xml:"MaxAllowedRtMs"` - MinRequestAmount int `json:"MinRequestAmount" xml:"MinRequestAmount"` - TotalRisk int `json:"TotalRisk" xml:"TotalRisk"` - Spec string `json:"Spec" xml:"Spec"` - MaxQueueingTimeMs int `json:"MaxQueueingTimeMs" xml:"MaxQueueingTimeMs"` - AppId string `json:"AppId" xml:"AppId"` - PrimaryUser string `json:"PrimaryUser" xml:"PrimaryUser"` - Namespace string `json:"Namespace" xml:"Namespace"` - Enable bool `json:"Enable" xml:"Enable"` - Score int `json:"Score" xml:"Score"` - AppVersion string `json:"AppVersion" xml:"AppVersion"` - Status string `json:"Status" xml:"Status"` - AppName string `json:"AppName" xml:"AppName"` - RiskList []RiskListItem `json:"RiskList" xml:"RiskList"` + Name string `json:"Name" xml:"Name"` + MaxAllowedMs int `json:"MaxAllowedMs" xml:"MaxAllowedMs"` + BodyEncoding int `json:"BodyEncoding" xml:"BodyEncoding"` + Enable int `json:"Enable" xml:"Enable"` + RecoveryTimeoutSec int `json:"RecoveryTimeoutSec" xml:"RecoveryTimeoutSec"` + Strategy int `json:"Strategy" xml:"Strategy"` + RouteId int64 `json:"RouteId" xml:"RouteId"` + BehaviorType int `json:"BehaviorType" xml:"BehaviorType"` + ResponseAdditionalHeaders string `json:"ResponseAdditionalHeaders" xml:"ResponseAdditionalHeaders"` + Threshold int `json:"Threshold" xml:"Threshold"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + Content string `json:"Content" xml:"Content"` + ResponseStatusCode int `json:"ResponseStatusCode" xml:"ResponseStatusCode"` + IsWhite bool `json:"IsWhite" xml:"IsWhite"` + ResponseRedirectUrl string `json:"ResponseRedirectUrl" xml:"ResponseRedirectUrl"` + Type string `json:"Type" xml:"Type"` + ResourceId int64 `json:"ResourceId" xml:"ResourceId"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + MaxConcurrency int `json:"MaxConcurrency" xml:"MaxConcurrency"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Id int64 `json:"Id" xml:"Id"` + TriggerRatio int `json:"TriggerRatio" xml:"TriggerRatio"` + MinRequestAmount int `json:"MinRequestAmount" xml:"MinRequestAmount"` + Note string `json:"Note" xml:"Note"` + ResourceIdNameJson string `json:"ResourceIdNameJson" xml:"ResourceIdNameJson"` + ResourceIdJsonList string `json:"ResourceIdJsonList" xml:"ResourceIdJsonList"` + ResponseContentBody string `json:"ResponseContentBody" xml:"ResponseContentBody"` + LimitMode int `json:"LimitMode" xml:"LimitMode"` + ResourceType string `json:"ResourceType" xml:"ResourceType"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + RouteName string `json:"RouteName" xml:"RouteName"` + StatDurationSec int `json:"StatDurationSec" xml:"StatDurationSec"` + Status string `json:"Status" xml:"Status"` + IdList []int64 `json:"IdList" xml:"IdList"` } diff --git a/services/mse/struct_result_item_in_list_circuit_breaker_rules.go b/services/mse/struct_result_item_in_list_circuit_breaker_rules.go new file mode 100644 index 000000000..a1274e957 --- /dev/null +++ b/services/mse/struct_result_item_in_list_circuit_breaker_rules.go @@ -0,0 +1,37 @@ +package mse + +//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. + +// ResultItemInListCircuitBreakerRules is a nested struct in mse response +type ResultItemInListCircuitBreakerRules struct { + Namespace string `json:"Namespace" xml:"Namespace"` + RuleId int64 `json:"RuleId" xml:"RuleId"` + AppName string `json:"AppName" xml:"AppName"` + Resource string `json:"Resource" xml:"Resource"` + ResourceType int `json:"ResourceType" xml:"ResourceType"` + Strategy int `json:"Strategy" xml:"Strategy"` + Threshold float64 `json:"Threshold" xml:"Threshold"` + Enable bool `json:"Enable" xml:"Enable"` + RetryTimeoutMs int `json:"RetryTimeoutMs" xml:"RetryTimeoutMs"` + StatIntervalMs int `json:"StatIntervalMs" xml:"StatIntervalMs"` + AppId string `json:"AppId" xml:"AppId"` + RegionId string `json:"RegionId" xml:"RegionId"` + FallbackObject string `json:"FallbackObject" xml:"FallbackObject"` + MaxAllowedRtMs int `json:"MaxAllowedRtMs" xml:"MaxAllowedRtMs"` + MinRequestAmount int `json:"MinRequestAmount" xml:"MinRequestAmount"` + HalfOpenBaseAmountPerStep int `json:"HalfOpenBaseAmountPerStep" xml:"HalfOpenBaseAmountPerStep"` + HalfOpenRecoveryStepNum int `json:"HalfOpenRecoveryStepNum" xml:"HalfOpenRecoveryStepNum"` +} diff --git a/services/mse/struct_result_item_in_list_cluster_health_check_task.go b/services/mse/struct_result_item_in_list_cluster_health_check_task.go new file mode 100644 index 000000000..569f4786b --- /dev/null +++ b/services/mse/struct_result_item_in_list_cluster_health_check_task.go @@ -0,0 +1,38 @@ +package mse + +//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. + +// ResultItemInListClusterHealthCheckTask is a nested struct in mse response +type ResultItemInListClusterHealthCheckTask struct { + Id int `json:"Id" xml:"Id"` + Score int `json:"Score" xml:"Score"` + TotalItem int `json:"TotalItem" xml:"TotalItem"` + TotalRisk int `json:"TotalRisk" xml:"TotalRisk"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + ClusterType string `json:"ClusterType" xml:"ClusterType"` + Type string `json:"Type" xml:"Type"` + Status string `json:"Status" xml:"Status"` + PrimaryUser string `json:"PrimaryUser" xml:"PrimaryUser"` + Spec string `json:"Spec" xml:"Spec"` + Replica string `json:"Replica" xml:"Replica"` + VersionCode string `json:"VersionCode" xml:"VersionCode"` + AppVersion string `json:"AppVersion" xml:"AppVersion"` + ImageVersion string `json:"ImageVersion" xml:"ImageVersion"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + UpdateTime string `json:"UpdateTime" xml:"UpdateTime"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + RiskList []RiskListItem `json:"RiskList" xml:"RiskList"` +} diff --git a/services/mse/struct_result_item_in_list_flow_rules.go b/services/mse/struct_result_item_in_list_flow_rules.go new file mode 100644 index 000000000..77c8d7e54 --- /dev/null +++ b/services/mse/struct_result_item_in_list_flow_rules.go @@ -0,0 +1,34 @@ +package mse + +//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. + +// ResultItemInListFlowRules is a nested struct in mse response +type ResultItemInListFlowRules struct { + Namespace string `json:"Namespace" xml:"Namespace"` + RuleId int64 `json:"RuleId" xml:"RuleId"` + AppName string `json:"AppName" xml:"AppName"` + Resource string `json:"Resource" xml:"Resource"` + ResourceType int `json:"ResourceType" xml:"ResourceType"` + ControlBehavior int `json:"ControlBehavior" xml:"ControlBehavior"` + MaxQueueingTimeMs int `json:"MaxQueueingTimeMs" xml:"MaxQueueingTimeMs"` + Threshold float64 `json:"Threshold" xml:"Threshold"` + Enable bool `json:"Enable" xml:"Enable"` + AppId string `json:"AppId" xml:"AppId"` + RegionId string `json:"RegionId" xml:"RegionId"` + FallbackObject string `json:"FallbackObject" xml:"FallbackObject"` + MetricType int `json:"MetricType" xml:"MetricType"` + TrafficTags map[string]interface{} `json:"TrafficTags" xml:"TrafficTags"` +} diff --git a/services/mse/struct_result_item_in_list_isolation_rules.go b/services/mse/struct_result_item_in_list_isolation_rules.go new file mode 100644 index 000000000..88e6f82dd --- /dev/null +++ b/services/mse/struct_result_item_in_list_isolation_rules.go @@ -0,0 +1,30 @@ +package mse + +//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. + +// ResultItemInListIsolationRules is a nested struct in mse response +type ResultItemInListIsolationRules struct { + Namespace string `json:"Namespace" xml:"Namespace"` + RuleId int64 `json:"RuleId" xml:"RuleId"` + AppName string `json:"AppName" xml:"AppName"` + Resource string `json:"Resource" xml:"Resource"` + Threshold int `json:"Threshold" xml:"Threshold"` + Enable bool `json:"Enable" xml:"Enable"` + AppId string `json:"AppId" xml:"AppId"` + RegionId string `json:"RegionId" xml:"RegionId"` + FallbackObject string `json:"FallbackObject" xml:"FallbackObject"` + ResourceType int `json:"ResourceType" xml:"ResourceType"` +} diff --git a/services/mse/struct_results.go b/services/mse/struct_results_in_fetch_lossless_rule_list.go similarity index 87% rename from services/mse/struct_results.go rename to services/mse/struct_results_in_fetch_lossless_rule_list.go index fdbfb2936..dcee8d7ee 100644 --- a/services/mse/struct_results.go +++ b/services/mse/struct_results_in_fetch_lossless_rule_list.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// Results is a nested struct in mse response -type Results struct { +// ResultsInFetchLosslessRuleList is a nested struct in mse response +type ResultsInFetchLosslessRuleList struct { ApplicationList []ApplicationList `json:"ApplicationList" xml:"ApplicationList"` } diff --git a/services/mse/struct_results_in_list_gateway_circuit_breaker_rule.go b/services/mse/struct_results_in_list_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..459671eb1 --- /dev/null +++ b/services/mse/struct_results_in_list_gateway_circuit_breaker_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultsInListGatewayCircuitBreakerRule is a nested struct in mse response +type ResultsInListGatewayCircuitBreakerRule struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_results_in_list_gateway_flow_rule.go b/services/mse/struct_results_in_list_gateway_flow_rule.go new file mode 100644 index 000000000..7005eff1b --- /dev/null +++ b/services/mse/struct_results_in_list_gateway_flow_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultsInListGatewayFlowRule is a nested struct in mse response +type ResultsInListGatewayFlowRule struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_results_in_list_gateway_isolation_rule.go b/services/mse/struct_results_in_list_gateway_isolation_rule.go new file mode 100644 index 000000000..41d3129b3 --- /dev/null +++ b/services/mse/struct_results_in_list_gateway_isolation_rule.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// ResultsInListGatewayIsolationRule is a nested struct in mse response +type ResultsInListGatewayIsolationRule struct { + Result []Result `json:"Result" xml:"Result"` +} diff --git a/services/mse/struct_route_id_list.go b/services/mse/struct_route_id_list.go new file mode 100644 index 000000000..73db43797 --- /dev/null +++ b/services/mse/struct_route_id_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// RouteIdList is a nested struct in mse response +type RouteIdList struct { + RouteIdList []int64 `json:"RouteIdList" xml:"RouteIdList"` +} diff --git a/services/mse/struct_route_independent_percentage_list.go b/services/mse/struct_route_independent_percentage_list.go new file mode 100644 index 000000000..aa46745b6 --- /dev/null +++ b/services/mse/struct_route_independent_percentage_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// RouteIndependentPercentageList is a nested struct in mse response +type RouteIndependentPercentageList struct { + RouteIndependentPercentageListItem []RouteIndependentPercentageListItem `json:"RouteIndependentPercentageList" xml:"RouteIndependentPercentageList"` +} diff --git a/services/mse/struct_route_independent_percentage_list_item.go b/services/mse/struct_route_independent_percentage_list_item.go new file mode 100644 index 000000000..a9b8c1dc9 --- /dev/null +++ b/services/mse/struct_route_independent_percentage_list_item.go @@ -0,0 +1,22 @@ +package mse + +//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. + +// RouteIndependentPercentageListItem is a nested struct in mse response +type RouteIndependentPercentageListItem struct { + RouteId string `json:"RouteId" xml:"RouteId"` + Percentage string `json:"Percentage" xml:"Percentage"` +} diff --git a/services/mse/struct_route_policy_list.go b/services/mse/struct_route_policy_list.go new file mode 100644 index 000000000..c7fdc2c4e --- /dev/null +++ b/services/mse/struct_route_policy_list.go @@ -0,0 +1,32 @@ +package mse + +//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. + +// RoutePolicyList is a nested struct in mse response +type RoutePolicyList struct { + Ip string `json:"Ip" xml:"Ip"` + Port string `json:"Port" xml:"Port"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + HostName string `json:"HostName" xml:"HostName"` + RegisterStatus int64 `json:"RegisterStatus" xml:"RegisterStatus"` + Pid string `json:"Pid" xml:"Pid"` + K8sClusterId string `json:"k8sClusterId" xml:"k8sClusterId"` + PodNamespace string `json:"PodNamespace" xml:"PodNamespace"` + PodName string `json:"PodName" xml:"PodName"` + AgentVersion string `json:"AgentVersion" xml:"AgentVersion"` + AgentCommit string `json:"AgentCommit" xml:"AgentCommit"` + Tags []TagInfo `json:"Tags" xml:"Tags"` +} diff --git a/services/mse/struct_route_rule.go b/services/mse/struct_route_rule.go index 56f10f3e5..02053cd76 100644 --- a/services/mse/struct_route_rule.go +++ b/services/mse/struct_route_rule.go @@ -18,14 +18,12 @@ package mse // RouteRule is a nested struct in mse response type RouteRule struct { Status int `json:"Status" xml:"Status"` - InstanceNum int `json:"InstanceNum" xml:"InstanceNum"` - Remove bool `json:"Remove" xml:"Remove"` CarryData bool `json:"CarryData" xml:"CarryData"` + Rate int `json:"Rate" xml:"Rate"` + Enable bool `json:"Enable" xml:"Enable"` Tag string `json:"Tag" xml:"Tag"` Name string `json:"Name" xml:"Name"` - Rules string `json:"Rules" xml:"Rules"` Id int64 `json:"Id" xml:"Id"` - Rate int `json:"Rate" xml:"Rate"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` - Enable bool `json:"Enable" xml:"Enable"` + InstanceNum int `json:"InstanceNum" xml:"InstanceNum"` + Rules Rules `json:"Rules" xml:"Rules"` } diff --git a/services/mse/struct_route_services_item.go b/services/mse/struct_route_services_item.go index a9db561a1..c98629637 100644 --- a/services/mse/struct_route_services_item.go +++ b/services/mse/struct_route_services_item.go @@ -18,14 +18,16 @@ package mse // RouteServicesItem is a nested struct in mse response type RouteServicesItem struct { Name string `json:"Name" xml:"Name"` + Version string `json:"Version" xml:"Version"` + GroupName string `json:"GroupName" xml:"GroupName"` AgreementType string `json:"AgreementType" xml:"AgreementType"` ServicePort int `json:"ServicePort" xml:"ServicePort"` Percent int `json:"Percent" xml:"Percent"` SourceType string `json:"SourceType" xml:"SourceType"` Namespace string `json:"Namespace" xml:"Namespace"` ServiceId int64 `json:"ServiceId" xml:"ServiceId"` - Version string `json:"Version" xml:"Version"` - GroupName string `json:"GroupName" xml:"GroupName"` + HealthStatus string `json:"HealthStatus" xml:"HealthStatus"` ServiceName string `json:"ServiceName" xml:"ServiceName"` + UnhealthyEndpoints []string `json:"UnhealthyEndpoints" xml:"UnhealthyEndpoints"` HttpDubboTranscoder HttpDubboTranscoder `json:"HttpDubboTranscoder" xml:"HttpDubboTranscoder"` } diff --git a/services/mse/struct_routes.go b/services/mse/struct_routes.go index 7b630cea3..5c3daa9e4 100644 --- a/services/mse/struct_routes.go +++ b/services/mse/struct_routes.go @@ -35,6 +35,7 @@ type Routes struct { Type string `json:"Type" xml:"Type"` EnableWaf string `json:"EnableWaf" xml:"EnableWaf"` Fallback bool `json:"Fallback" xml:"Fallback"` + DynamicRoute bool `json:"DynamicRoute" xml:"DynamicRoute"` DomainIdList []int64 `json:"DomainIdList" xml:"DomainIdList"` DomainNameList []string `json:"DomainNameList" xml:"DomainNameList"` RoutePredicates RoutePredicates `json:"RoutePredicates" xml:"RoutePredicates"` diff --git a/services/mse/struct_rules.go b/services/mse/struct_rules.go index f71ec1abf..cde31facb 100644 --- a/services/mse/struct_rules.go +++ b/services/mse/struct_rules.go @@ -17,13 +17,16 @@ package mse // Rules is a nested struct in mse response type Rules struct { - Id string `json:"Id" xml:"Id"` - SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` - PortRange string `json:"PortRange" xml:"PortRange"` - IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` - GatewayId int64 `json:"GatewayId" xml:"GatewayId"` - GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` - GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` - GmtModified string `json:"GmtModified" xml:"GmtModified"` - Description string `json:"Description" xml:"Description"` + IpProtocol string `json:"IpProtocol" xml:"IpProtocol"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + PortRange string `json:"PortRange" xml:"PortRange"` + SecurityGroupId string `json:"SecurityGroupId" xml:"SecurityGroupId"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + Id string `json:"Id" xml:"Id"` + Description string `json:"Description" xml:"Description"` + AuthCidrs []string `json:"AuthCidrs" xml:"AuthCidrs"` + Dubbo []DubboRule `json:"dubbo" xml:"dubbo"` + Springcloud []SpringCloudRule `json:"springcloud" xml:"springcloud"` } diff --git a/services/mse/struct_service.go b/services/mse/struct_service.go index 37eaca560..7af437faf 100644 --- a/services/mse/struct_service.go +++ b/services/mse/struct_service.go @@ -17,8 +17,12 @@ package mse // Service is a nested struct in mse response type Service struct { - Port string `json:"Port" xml:"Port"` - Protocol string `json:"Protocol" xml:"Protocol"` + Name string `json:"Name" xml:"Name"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` + SourceType string `json:"SourceType" xml:"SourceType"` + Protocol string `json:"Protocol" xml:"Protocol"` + Namespace string `json:"Namespace" xml:"Namespace"` + Port string `json:"Port" xml:"Port"` + GroupName string `json:"GroupName" xml:"GroupName"` VServerGroupName string `json:"VServerGroupName" xml:"VServerGroupName"` } diff --git a/services/mse/struct_services.go b/services/mse/struct_services.go index 1d93799cb..888985f45 100644 --- a/services/mse/struct_services.go +++ b/services/mse/struct_services.go @@ -34,6 +34,7 @@ type Services struct { ServiceProtocol string `json:"ServiceProtocol" xml:"ServiceProtocol"` Namespace string `json:"Namespace" xml:"Namespace"` HealthStatus string `json:"HealthStatus" xml:"HealthStatus"` + ServiceFQDN string `json:"ServiceFQDN" xml:"ServiceFQDN"` Ips []string `json:"Ips" xml:"Ips"` Ports []int `json:"Ports" xml:"Ports"` UnhealthyEndpoints []string `json:"UnhealthyEndpoints" xml:"UnhealthyEndpoints"` diff --git a/services/mse/struct_sls_config_details.go b/services/mse/struct_sls_config_details.go new file mode 100644 index 000000000..737c9202a --- /dev/null +++ b/services/mse/struct_sls_config_details.go @@ -0,0 +1,29 @@ +package mse + +//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. + +// SlsConfigDetails is a nested struct in mse response +type SlsConfigDetails struct { + LogOn bool `json:"LogOn" xml:"LogOn"` + Id int64 `json:"Id" xml:"Id"` + ProjectName string `json:"ProjectName" xml:"ProjectName"` + LogStoreName string `json:"LogStoreName" xml:"LogStoreName"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + NginxCompatible bool `json:"NginxCompatible" xml:"NginxCompatible"` +} diff --git a/services/mse/struct_sources.go b/services/mse/struct_sources.go index a42054c1a..6d58fbe48 100644 --- a/services/mse/struct_sources.go +++ b/services/mse/struct_sources.go @@ -23,6 +23,7 @@ type Sources struct { HttpsPort int `json:"HttpsPort" xml:"HttpsPort"` HttpPort int `json:"HttpPort" xml:"HttpPort"` HttpsVServerGroupId string `json:"HttpsVServerGroupId" xml:"HttpsVServerGroupId"` + SlbType string `json:"SlbType" xml:"SlbType"` ServiceWeight int `json:"ServiceWeight" xml:"ServiceWeight"` SlbName string `json:"SlbName" xml:"SlbName"` VServerGroupId string `json:"VServerGroupId" xml:"VServerGroupId"` diff --git a/services/mse/struct_spring_cloud_rule.go b/services/mse/struct_spring_cloud_rule.go new file mode 100644 index 000000000..12e480838 --- /dev/null +++ b/services/mse/struct_spring_cloud_rule.go @@ -0,0 +1,29 @@ +package mse + +//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. + +// SpringCloudRule is a nested struct in mse response +type SpringCloudRule struct { + Condition string `json:"condition" xml:"condition"` + TriggerPolicy string `json:"triggerPolicy" xml:"triggerPolicy"` + Enable bool `json:"enable" xml:"enable"` + AppId string `json:"appId" xml:"appId"` + Priority int `json:"priority" xml:"priority"` + Path string `json:"path" xml:"path"` + Tags []string `json:"tags" xml:"tags"` + Paths []string `json:"paths" xml:"paths"` + RestItems []RestItem `json:"restItems" xml:"restItems"` +} diff --git a/services/mse/struct_springcloud.go b/services/mse/struct_springcloud.go new file mode 100644 index 000000000..3dc9e3843 --- /dev/null +++ b/services/mse/struct_springcloud.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// Springcloud is a nested struct in mse response +type Springcloud struct { + SpringCloudRule []SpringCloudRule `json:"SpringCloudRule" xml:"SpringCloudRule"` +} diff --git a/services/mse/struct_swimming_lane_group.go b/services/mse/struct_swimming_lane_group.go index da5738a09..8662e634b 100644 --- a/services/mse/struct_swimming_lane_group.go +++ b/services/mse/struct_swimming_lane_group.go @@ -17,27 +17,32 @@ package mse // SwimmingLaneGroup is a nested struct in mse response type SwimmingLaneGroup struct { - Name string `json:"Name" xml:"Name"` - UserId string `json:"userId" xml:"userId"` - Enable string `json:"enable" xml:"enable"` - Region string `json:"Region" xml:"Region"` - MessageQueueFilterSide string `json:"messageQueueFilterSide" xml:"messageQueueFilterSide"` - EntryApp string `json:"EntryApp" xml:"EntryApp"` - MessageQueueGrayEnable bool `json:"messageQueueGrayEnable" xml:"messageQueueGrayEnable"` - Id int64 `json:"id" xml:"id"` - EntryRule string `json:"entryRule" xml:"entryRule"` - GmtModified string `json:"gmtModified" xml:"gmtModified"` - Source string `json:"Source" xml:"Source"` - AppIds string `json:"appIds" xml:"appIds"` - RegionId string `json:"RegionId" xml:"RegionId"` - DbGrayEnable string `json:"DbGrayEnable" xml:"DbGrayEnable"` - Namespace string `json:"namespace" xml:"namespace"` - Tag string `json:"Tag" xml:"Tag"` - GroupId string `json:"GroupId" xml:"GroupId"` - RecordCanaryDetail bool `json:"RecordCanaryDetail" xml:"RecordCanaryDetail"` - EnableRules bool `json:"enableRules" xml:"enableRules"` - Status int `json:"Status" xml:"Status"` - GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` - ApplicationList []string `json:"applicationList" xml:"applicationList"` - EntryRules []EntryRule `json:"EntryRules" xml:"EntryRules"` + Name string `json:"Name" xml:"Name"` + UserId string `json:"userId" xml:"userId"` + Enable string `json:"enable" xml:"enable"` + Region string `json:"Region" xml:"Region"` + SwimVersion int `json:"SwimVersion" xml:"SwimVersion"` + MessageQueueFilterSide string `json:"messageQueueFilterSide" xml:"messageQueueFilterSide"` + EntryApp string `json:"EntryApp" xml:"EntryApp"` + MessageQueueGrayEnable bool `json:"messageQueueGrayEnable" xml:"messageQueueGrayEnable"` + Id int64 `json:"id" xml:"id"` + EntryRule string `json:"entryRule" xml:"entryRule"` + CanaryModel int `json:"CanaryModel" xml:"CanaryModel"` + GmtModified string `json:"gmtModified" xml:"gmtModified"` + Source string `json:"Source" xml:"Source"` + AppIds string `json:"appIds" xml:"appIds"` + RegionId string `json:"RegionId" xml:"RegionId"` + DbGrayEnable string `json:"DbGrayEnable" xml:"DbGrayEnable"` + Namespace string `json:"namespace" xml:"namespace"` + Tag string `json:"Tag" xml:"Tag"` + GroupId string `json:"GroupId" xml:"GroupId"` + RecordCanaryDetail bool `json:"RecordCanaryDetail" xml:"RecordCanaryDetail"` + EnableRules bool `json:"enableRules" xml:"enableRules"` + Status int `json:"Status" xml:"Status"` + Paths string `json:"Paths" xml:"Paths"` + GmtCreate string `json:"gmtCreate" xml:"gmtCreate"` + PathIndependentPercentageEnable bool `json:"PathIndependentPercentageEnable" xml:"PathIndependentPercentageEnable"` + ApplicationList []string `json:"applicationList" xml:"applicationList"` + GatewaySwimmingLaneRoute GatewaySwimmingLaneRoute `json:"GatewaySwimmingLaneRoute" xml:"GatewaySwimmingLaneRoute"` + EntryRules []EntryRule `json:"EntryRules" xml:"EntryRules"` } diff --git a/services/mse/struct_tag_info.go b/services/mse/struct_tag_info.go new file mode 100644 index 000000000..a21681929 --- /dev/null +++ b/services/mse/struct_tag_info.go @@ -0,0 +1,24 @@ +package mse + +//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. + +// TagInfo is a nested struct in mse response +type TagInfo struct { + Type string `json:"Type" xml:"Type"` + Priority int `json:"Priority" xml:"Priority"` + Tag string `json:"Tag" xml:"Tag"` + Desc string `json:"Desc" xml:"Desc"` +} diff --git a/services/mse/struct_tags_in_get_application_instance_list.go b/services/mse/struct_tags_in_get_application_instance_list.go new file mode 100644 index 000000000..267d20d86 --- /dev/null +++ b/services/mse/struct_tags_in_get_application_instance_list.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// TagsInGetApplicationInstanceList is a nested struct in mse response +type TagsInGetApplicationInstanceList struct { + TagInfo []TagInfo `json:"TagInfo" xml:"TagInfo"` +} diff --git a/services/mse/struct_tags_in_list_applications_with_tag_rules.go b/services/mse/struct_tags_in_list_applications_with_tag_rules.go new file mode 100644 index 000000000..cbb86a82b --- /dev/null +++ b/services/mse/struct_tags_in_list_applications_with_tag_rules.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// TagsInListApplicationsWithTagRules is a nested struct in mse response +type TagsInListApplicationsWithTagRules struct { + Tag []string `json:"Tag" xml:"Tag"` +} diff --git a/services/mse/struct_trace_details.go b/services/mse/struct_trace_details.go index 5a526f712..d42e3db00 100644 --- a/services/mse/struct_trace_details.go +++ b/services/mse/struct_trace_details.go @@ -17,6 +17,9 @@ package mse // TraceDetails is a nested struct in mse response type TraceDetails struct { - TraceEnabled bool `json:"TraceEnabled" xml:"TraceEnabled"` - Sample int64 `json:"Sample" xml:"Sample"` + TraceEnabled bool `json:"TraceEnabled" xml:"TraceEnabled"` + ServiceId int64 `json:"ServiceId" xml:"ServiceId"` + TraceType string `json:"TraceType" xml:"TraceType"` + Sample int64 `json:"Sample" xml:"Sample"` + ServicePort string `json:"ServicePort" xml:"ServicePort"` } diff --git a/services/mse/struct_unhealthy_endpoints_in_get_gateway_route_detail.go b/services/mse/struct_unhealthy_endpoints_in_get_gateway_route_detail.go new file mode 100644 index 000000000..e3d62a19a --- /dev/null +++ b/services/mse/struct_unhealthy_endpoints_in_get_gateway_route_detail.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// UnhealthyEndpointsInGetGatewayRouteDetail is a nested struct in mse response +type UnhealthyEndpointsInGetGatewayRouteDetail struct { + UnhealthyEndpoints []string `json:"unhealthyEndpoints" xml:"unhealthyEndpoints"` +} diff --git a/services/mse/struct_unhealthy_endpoints.go b/services/mse/struct_unhealthy_endpoints_in_list_gateway_route.go similarity index 86% rename from services/mse/struct_unhealthy_endpoints.go rename to services/mse/struct_unhealthy_endpoints_in_list_gateway_route.go index 06cb98b7b..80735a57b 100644 --- a/services/mse/struct_unhealthy_endpoints.go +++ b/services/mse/struct_unhealthy_endpoints_in_list_gateway_route.go @@ -15,7 +15,7 @@ package mse // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// UnhealthyEndpoints is a nested struct in mse response -type UnhealthyEndpoints struct { +// UnhealthyEndpointsInListGatewayRoute is a nested struct in mse response +type UnhealthyEndpointsInListGatewayRoute struct { UnhealthyEndpoints []string `json:"unhealthyEndpoints" xml:"unhealthyEndpoints"` } diff --git a/services/mse/struct_unhealthy_endpoints_in_list_gateway_service.go b/services/mse/struct_unhealthy_endpoints_in_list_gateway_service.go new file mode 100644 index 000000000..9127634ca --- /dev/null +++ b/services/mse/struct_unhealthy_endpoints_in_list_gateway_service.go @@ -0,0 +1,21 @@ +package mse + +//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. + +// UnhealthyEndpointsInListGatewayService is a nested struct in mse response +type UnhealthyEndpointsInListGatewayService struct { + UnhealthyEndpoints []string `json:"unhealthyEndpoints" xml:"unhealthyEndpoints"` +} diff --git a/services/mse/struct_xtrace_details.go b/services/mse/struct_xtrace_details.go index 299843c20..5e3ea78e1 100644 --- a/services/mse/struct_xtrace_details.go +++ b/services/mse/struct_xtrace_details.go @@ -17,6 +17,14 @@ package mse // XtraceDetails is a nested struct in mse response type XtraceDetails struct { - Sample int `json:"Sample" xml:"Sample"` - TraceOn bool `json:"TraceOn" xml:"TraceOn"` + Sample int `json:"Sample" xml:"Sample"` + GatewayUniqueId string `json:"GatewayUniqueId" xml:"GatewayUniqueId"` + GmtCreate string `json:"GmtCreate" xml:"GmtCreate"` + GatewayId int64 `json:"GatewayId" xml:"GatewayId"` + ServiceId int64 `json:"ServiceId" xml:"ServiceId"` + TraceOn bool `json:"TraceOn" xml:"TraceOn"` + GmtModified string `json:"GmtModified" xml:"GmtModified"` + TraceType string `json:"TraceType" xml:"TraceType"` + Id int64 `json:"Id" xml:"Id"` + ServicePort string `json:"ServicePort" xml:"ServicePort"` } diff --git a/services/mse/update_cluster.go b/services/mse/update_cluster.go index 0a3c9bf47..14858508d 100644 --- a/services/mse/update_cluster.go +++ b/services/mse/update_cluster.go @@ -71,12 +71,14 @@ func (client *Client) UpdateClusterWithCallback(request *UpdateClusterRequest, c // UpdateClusterRequest is the request struct for api UpdateCluster type UpdateClusterRequest struct { *requests.RpcRequest - MseSessionId string `position:"Query" name:"MseSessionId"` - RequestPars string `position:"Query" name:"RequestPars"` - ClusterAliasName string `position:"Query" name:"ClusterAliasName"` - ClusterId string `position:"Query" name:"ClusterId"` - InstanceId string `position:"Query" name:"InstanceId"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + MseSessionId string `position:"Query" name:"MseSessionId"` + MaintenanceEndTime string `position:"Query" name:"MaintenanceEndTime"` + RequestPars string `position:"Query" name:"RequestPars"` + ClusterAliasName string `position:"Query" name:"ClusterAliasName"` + ClusterId string `position:"Query" name:"ClusterId"` + InstanceId string `position:"Query" name:"InstanceId"` + MaintenanceStartTime string `position:"Query" name:"MaintenanceStartTime"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // UpdateClusterResponse is the response struct for api UpdateCluster diff --git a/services/mse/update_cluster_spec.go b/services/mse/update_cluster_spec.go index d2176adef..5a2b495ca 100644 --- a/services/mse/update_cluster_spec.go +++ b/services/mse/update_cluster_spec.go @@ -74,9 +74,11 @@ type UpdateClusterSpecRequest struct { ClusterSpecification string `position:"Query" name:"ClusterSpecification"` MseSessionId string `position:"Query" name:"MseSessionId"` InstanceCount requests.Integer `position:"Query" name:"InstanceCount"` + AutoPay requests.Boolean `position:"Query" name:"AutoPay"` ClusterId string `position:"Query" name:"ClusterId"` InstanceId string `position:"Query" name:"InstanceId"` MseVersion string `position:"Query" name:"MseVersion"` + PubNetworkFlow requests.Integer `position:"Query" name:"PubNetworkFlow"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/update_config.go b/services/mse/update_config.go index c273029ff..bac22ad88 100644 --- a/services/mse/update_config.go +++ b/services/mse/update_config.go @@ -72,6 +72,7 @@ func (client *Client) UpdateConfigWithCallback(request *UpdateConfigRequest, cal type UpdateConfigRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` + Enable4lw requests.Boolean `position:"Query" name:"Enable4lw"` ConfigAuthEnabled requests.Boolean `position:"Query" name:"ConfigAuthEnabled"` PassWord string `position:"Query" name:"PassWord"` MaxClientCnxns string `position:"Query" name:"MaxClientCnxns"` @@ -88,6 +89,8 @@ type UpdateConfigRequest struct { EurekaSupported requests.Boolean `position:"Query" name:"EurekaSupported"` SnapshotCount string `position:"Query" name:"SnapshotCount"` MinSessionTimeout string `position:"Query" name:"MinSessionTimeout"` + ConsoleUIEnabled requests.Boolean `position:"Query" name:"ConsoleUIEnabled"` + AuthEnabled requests.Boolean `position:"Query" name:"AuthEnabled"` JuteMaxbuffer string `position:"Query" name:"JuteMaxbuffer"` ConfigType string `position:"Query" name:"ConfigType"` MaxSessionTimeout string `position:"Query" name:"MaxSessionTimeout"` diff --git a/services/mse/update_gateway_auth_consumer_resource.go b/services/mse/update_gateway_auth_consumer_resource.go index 9498e2255..1183cf814 100644 --- a/services/mse/update_gateway_auth_consumer_resource.go +++ b/services/mse/update_gateway_auth_consumer_resource.go @@ -71,17 +71,11 @@ func (client *Client) UpdateGatewayAuthConsumerResourceWithCallback(request *Upd // UpdateGatewayAuthConsumerResourceRequest is the request struct for api UpdateGatewayAuthConsumerResource type UpdateGatewayAuthConsumerResourceRequest struct { *requests.RpcRequest - MseSessionId string `position:"Query" name:"MseSessionId"` - GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` - ConsumerId requests.Integer `position:"Query" name:"ConsumerId"` - ResourceList *[]UpdateGatewayAuthConsumerResourceResourceList `position:"Query" name:"ResourceList" type:"Json"` - AcceptLanguage string `position:"Query" name:"AcceptLanguage"` -} - -// UpdateGatewayAuthConsumerResourceResourceList is a repeated param struct in UpdateGatewayAuthConsumerResourceRequest -type UpdateGatewayAuthConsumerResourceResourceList struct { - RouteId string `name:"RouteId"` - RouteName string `name:"RouteName"` + MseSessionId string `position:"Query" name:"MseSessionId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + ConsumerId requests.Integer `position:"Query" name:"ConsumerId"` + ResourceList string `position:"Query" name:"ResourceList"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } // UpdateGatewayAuthConsumerResourceResponse is the response struct for api UpdateGatewayAuthConsumerResource diff --git a/services/mse/update_gateway_circuit_breaker_rule.go b/services/mse/update_gateway_circuit_breaker_rule.go new file mode 100644 index 000000000..a032cea07 --- /dev/null +++ b/services/mse/update_gateway_circuit_breaker_rule.go @@ -0,0 +1,118 @@ +package mse + +//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" +) + +// UpdateGatewayCircuitBreakerRule invokes the mse.UpdateGatewayCircuitBreakerRule API synchronously +func (client *Client) UpdateGatewayCircuitBreakerRule(request *UpdateGatewayCircuitBreakerRuleRequest) (response *UpdateGatewayCircuitBreakerRuleResponse, err error) { + response = CreateUpdateGatewayCircuitBreakerRuleResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGatewayCircuitBreakerRuleWithChan invokes the mse.UpdateGatewayCircuitBreakerRule API asynchronously +func (client *Client) UpdateGatewayCircuitBreakerRuleWithChan(request *UpdateGatewayCircuitBreakerRuleRequest) (<-chan *UpdateGatewayCircuitBreakerRuleResponse, <-chan error) { + responseChan := make(chan *UpdateGatewayCircuitBreakerRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGatewayCircuitBreakerRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGatewayCircuitBreakerRuleWithCallback invokes the mse.UpdateGatewayCircuitBreakerRule API asynchronously +func (client *Client) UpdateGatewayCircuitBreakerRuleWithCallback(request *UpdateGatewayCircuitBreakerRuleRequest, callback func(response *UpdateGatewayCircuitBreakerRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGatewayCircuitBreakerRuleResponse + var err error + defer close(result) + response, err = client.UpdateGatewayCircuitBreakerRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGatewayCircuitBreakerRuleRequest is the request struct for api UpdateGatewayCircuitBreakerRule +type UpdateGatewayCircuitBreakerRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + MaxAllowedMs requests.Integer `position:"Query" name:"MaxAllowedMs"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + MinRequestAmount requests.Integer `position:"Query" name:"MinRequestAmount"` + Id requests.Integer `position:"Query" name:"Id"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + TriggerRatio requests.Integer `position:"Query" name:"TriggerRatio"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + StatDurationSec requests.Integer `position:"Query" name:"StatDurationSec"` + RecoveryTimeoutSec requests.Integer `position:"Query" name:"RecoveryTimeoutSec"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` + Strategy requests.Integer `position:"Query" name:"Strategy"` +} + +// UpdateGatewayCircuitBreakerRuleResponse is the response struct for api UpdateGatewayCircuitBreakerRule +type UpdateGatewayCircuitBreakerRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInUpdateGatewayCircuitBreakerRule `json:"Data" xml:"Data"` +} + +// CreateUpdateGatewayCircuitBreakerRuleRequest creates a request to invoke UpdateGatewayCircuitBreakerRule API +func CreateUpdateGatewayCircuitBreakerRuleRequest() (request *UpdateGatewayCircuitBreakerRuleRequest) { + request = &UpdateGatewayCircuitBreakerRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateGatewayCircuitBreakerRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateGatewayCircuitBreakerRuleResponse creates a response to parse from UpdateGatewayCircuitBreakerRule response +func CreateUpdateGatewayCircuitBreakerRuleResponse() (response *UpdateGatewayCircuitBreakerRuleResponse) { + response = &UpdateGatewayCircuitBreakerRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_gateway_flow_rule.go b/services/mse/update_gateway_flow_rule.go new file mode 100644 index 000000000..4bb327fc9 --- /dev/null +++ b/services/mse/update_gateway_flow_rule.go @@ -0,0 +1,113 @@ +package mse + +//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" +) + +// UpdateGatewayFlowRule invokes the mse.UpdateGatewayFlowRule API synchronously +func (client *Client) UpdateGatewayFlowRule(request *UpdateGatewayFlowRuleRequest) (response *UpdateGatewayFlowRuleResponse, err error) { + response = CreateUpdateGatewayFlowRuleResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGatewayFlowRuleWithChan invokes the mse.UpdateGatewayFlowRule API asynchronously +func (client *Client) UpdateGatewayFlowRuleWithChan(request *UpdateGatewayFlowRuleRequest) (<-chan *UpdateGatewayFlowRuleResponse, <-chan error) { + responseChan := make(chan *UpdateGatewayFlowRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGatewayFlowRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGatewayFlowRuleWithCallback invokes the mse.UpdateGatewayFlowRule API asynchronously +func (client *Client) UpdateGatewayFlowRuleWithCallback(request *UpdateGatewayFlowRuleRequest, callback func(response *UpdateGatewayFlowRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGatewayFlowRuleResponse + var err error + defer close(result) + response, err = client.UpdateGatewayFlowRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGatewayFlowRuleRequest is the request struct for api UpdateGatewayFlowRule +type UpdateGatewayFlowRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + Threshold requests.Integer `position:"Query" name:"Threshold"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + Id requests.Integer `position:"Query" name:"Id"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` +} + +// UpdateGatewayFlowRuleResponse is the response struct for api UpdateGatewayFlowRule +type UpdateGatewayFlowRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInUpdateGatewayFlowRule `json:"Data" xml:"Data"` +} + +// CreateUpdateGatewayFlowRuleRequest creates a request to invoke UpdateGatewayFlowRule API +func CreateUpdateGatewayFlowRuleRequest() (request *UpdateGatewayFlowRuleRequest) { + request = &UpdateGatewayFlowRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateGatewayFlowRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateGatewayFlowRuleResponse creates a response to parse from UpdateGatewayFlowRule response +func CreateUpdateGatewayFlowRuleResponse() (response *UpdateGatewayFlowRuleResponse) { + response = &UpdateGatewayFlowRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_gateway_isolation_rule.go b/services/mse/update_gateway_isolation_rule.go new file mode 100644 index 000000000..bbe4e822f --- /dev/null +++ b/services/mse/update_gateway_isolation_rule.go @@ -0,0 +1,113 @@ +package mse + +//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" +) + +// UpdateGatewayIsolationRule invokes the mse.UpdateGatewayIsolationRule API synchronously +func (client *Client) UpdateGatewayIsolationRule(request *UpdateGatewayIsolationRuleRequest) (response *UpdateGatewayIsolationRuleResponse, err error) { + response = CreateUpdateGatewayIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGatewayIsolationRuleWithChan invokes the mse.UpdateGatewayIsolationRule API asynchronously +func (client *Client) UpdateGatewayIsolationRuleWithChan(request *UpdateGatewayIsolationRuleRequest) (<-chan *UpdateGatewayIsolationRuleResponse, <-chan error) { + responseChan := make(chan *UpdateGatewayIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGatewayIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGatewayIsolationRuleWithCallback invokes the mse.UpdateGatewayIsolationRule API asynchronously +func (client *Client) UpdateGatewayIsolationRuleWithCallback(request *UpdateGatewayIsolationRuleRequest, callback func(response *UpdateGatewayIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGatewayIsolationRuleResponse + var err error + defer close(result) + response, err = client.UpdateGatewayIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGatewayIsolationRuleRequest is the request struct for api UpdateGatewayIsolationRule +type UpdateGatewayIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + BehaviorType requests.Integer `position:"Query" name:"BehaviorType"` + Enable requests.Integer `position:"Query" name:"Enable"` + Id requests.Integer `position:"Query" name:"Id"` + GatewayId requests.Integer `position:"Query" name:"GatewayId"` + ResponseStatusCode requests.Integer `position:"Query" name:"ResponseStatusCode"` + RouteId requests.Integer `position:"Query" name:"RouteId"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + BodyEncoding requests.Integer `position:"Query" name:"BodyEncoding"` + ResponseRedirectUrl string `position:"Query" name:"ResponseRedirectUrl"` + RouteName string `position:"Query" name:"RouteName"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + MaxConcurrency requests.Integer `position:"Query" name:"MaxConcurrency"` + ResponseContentBody string `position:"Query" name:"ResponseContentBody"` +} + +// UpdateGatewayIsolationRuleResponse is the response struct for api UpdateGatewayIsolationRule +type UpdateGatewayIsolationRuleResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data DataInUpdateGatewayIsolationRule `json:"Data" xml:"Data"` +} + +// CreateUpdateGatewayIsolationRuleRequest creates a request to invoke UpdateGatewayIsolationRule API +func CreateUpdateGatewayIsolationRuleRequest() (request *UpdateGatewayIsolationRuleRequest) { + request = &UpdateGatewayIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateGatewayIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateGatewayIsolationRuleResponse creates a response to parse from UpdateGatewayIsolationRule response +func CreateUpdateGatewayIsolationRuleResponse() (response *UpdateGatewayIsolationRuleResponse) { + response = &UpdateGatewayIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_gateway_option.go b/services/mse/update_gateway_option.go index eb0a65da6..9dffbf88c 100644 --- a/services/mse/update_gateway_option.go +++ b/services/mse/update_gateway_option.go @@ -96,8 +96,11 @@ type UpdateGatewayOptionGatewayOptionLogConfigDetails struct { // UpdateGatewayOptionGatewayOptionTraceDetails is a repeated param struct in UpdateGatewayOptionRequest type UpdateGatewayOptionGatewayOptionTraceDetails struct { + TraceType string `name:"TraceType"` TraceEnabled string `name:"TraceEnabled"` + ServiceId string `name:"ServiceId"` Sample string `name:"Sample"` + ServicePort string `name:"ServicePort"` } // UpdateGatewayOptionResponse is the response struct for api UpdateGatewayOption diff --git a/services/mse/update_gateway_route.go b/services/mse/update_gateway_route.go index 63dc83ad0..114807c82 100644 --- a/services/mse/update_gateway_route.go +++ b/services/mse/update_gateway_route.go @@ -83,6 +83,7 @@ type UpdateGatewayRouteRequest struct { Fallback requests.Boolean `position:"Query" name:"Fallback"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` DestinationType string `position:"Query" name:"DestinationType"` + Description string `position:"Query" name:"Description"` RouteOrder requests.Integer `position:"Query" name:"RouteOrder"` Services *[]UpdateGatewayRouteServices `position:"Query" name:"Services" type:"Json"` RedirectJSON UpdateGatewayRouteRedirectJSON `position:"Query" name:"RedirectJSON" type:"Struct"` diff --git a/services/mse/update_gateway_service_check.go b/services/mse/update_gateway_service_check.go new file mode 100644 index 000000000..cced45399 --- /dev/null +++ b/services/mse/update_gateway_service_check.go @@ -0,0 +1,116 @@ +package mse + +//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" +) + +// UpdateGatewayServiceCheck invokes the mse.UpdateGatewayServiceCheck API synchronously +func (client *Client) UpdateGatewayServiceCheck(request *UpdateGatewayServiceCheckRequest) (response *UpdateGatewayServiceCheckResponse, err error) { + response = CreateUpdateGatewayServiceCheckResponse() + err = client.DoAction(request, response) + return +} + +// UpdateGatewayServiceCheckWithChan invokes the mse.UpdateGatewayServiceCheck API asynchronously +func (client *Client) UpdateGatewayServiceCheckWithChan(request *UpdateGatewayServiceCheckRequest) (<-chan *UpdateGatewayServiceCheckResponse, <-chan error) { + responseChan := make(chan *UpdateGatewayServiceCheckResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateGatewayServiceCheck(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateGatewayServiceCheckWithCallback invokes the mse.UpdateGatewayServiceCheck API asynchronously +func (client *Client) UpdateGatewayServiceCheckWithCallback(request *UpdateGatewayServiceCheckRequest, callback func(response *UpdateGatewayServiceCheckResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateGatewayServiceCheckResponse + var err error + defer close(result) + response, err = client.UpdateGatewayServiceCheck(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateGatewayServiceCheckRequest is the request struct for api UpdateGatewayServiceCheck +type UpdateGatewayServiceCheckRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + Protocol string `position:"Query" name:"Protocol"` + ExpectedStatuses *[]string `position:"Query" name:"ExpectedStatuses" type:"Json"` + HttpHost string `position:"Query" name:"HttpHost"` + Check requests.Boolean `position:"Query" name:"Check"` + HttpPath string `position:"Query" name:"HttpPath"` + Interval requests.Integer `position:"Query" name:"Interval"` + GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + UnhealthyThreshold requests.Integer `position:"Query" name:"UnhealthyThreshold"` + HealthyThreshold requests.Integer `position:"Query" name:"HealthyThreshold"` + Timeout requests.Integer `position:"Query" name:"Timeout"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + ServiceId string `position:"Query" name:"ServiceId"` +} + +// UpdateGatewayServiceCheckResponse is the response struct for api UpdateGatewayServiceCheck +type UpdateGatewayServiceCheckResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HttpStatusCode int `json:"HttpStatusCode" xml:"HttpStatusCode"` + Message string `json:"Message" xml:"Message"` + Code int `json:"Code" xml:"Code"` + Success bool `json:"Success" xml:"Success"` + Data int64 `json:"Data" xml:"Data"` +} + +// CreateUpdateGatewayServiceCheckRequest creates a request to invoke UpdateGatewayServiceCheck API +func CreateUpdateGatewayServiceCheckRequest() (request *UpdateGatewayServiceCheckRequest) { + request = &UpdateGatewayServiceCheckRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateGatewayServiceCheck", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateGatewayServiceCheckResponse creates a response to parse from UpdateGatewayServiceCheck response +func CreateUpdateGatewayServiceCheckResponse() (response *UpdateGatewayServiceCheckResponse) { + response = &UpdateGatewayServiceCheckResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_isolation_rule.go b/services/mse/update_isolation_rule.go new file mode 100644 index 000000000..aaa5df8a8 --- /dev/null +++ b/services/mse/update_isolation_rule.go @@ -0,0 +1,110 @@ +package mse + +//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" +) + +// UpdateIsolationRule invokes the mse.UpdateIsolationRule API synchronously +func (client *Client) UpdateIsolationRule(request *UpdateIsolationRuleRequest) (response *UpdateIsolationRuleResponse, err error) { + response = CreateUpdateIsolationRuleResponse() + err = client.DoAction(request, response) + return +} + +// UpdateIsolationRuleWithChan invokes the mse.UpdateIsolationRule API asynchronously +func (client *Client) UpdateIsolationRuleWithChan(request *UpdateIsolationRuleRequest) (<-chan *UpdateIsolationRuleResponse, <-chan error) { + responseChan := make(chan *UpdateIsolationRuleResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateIsolationRule(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateIsolationRuleWithCallback invokes the mse.UpdateIsolationRule API asynchronously +func (client *Client) UpdateIsolationRuleWithCallback(request *UpdateIsolationRuleRequest, callback func(response *UpdateIsolationRuleResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateIsolationRuleResponse + var err error + defer close(result) + response, err = client.UpdateIsolationRule(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateIsolationRuleRequest is the request struct for api UpdateIsolationRule +type UpdateIsolationRuleRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + Threshold requests.Float `position:"Query" name:"Threshold"` + AppName string `position:"Query" name:"AppName"` + Enable requests.Boolean `position:"Query" name:"Enable"` + AppId string `position:"Query" name:"AppId"` + Namespace string `position:"Query" name:"Namespace"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` + RuleId requests.Integer `position:"Query" name:"RuleId"` +} + +// UpdateIsolationRuleResponse is the response struct for api UpdateIsolationRule +type UpdateIsolationRuleResponse 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 DataInUpdateIsolationRule `json:"Data" xml:"Data"` +} + +// CreateUpdateIsolationRuleRequest creates a request to invoke UpdateIsolationRule API +func CreateUpdateIsolationRuleRequest() (request *UpdateIsolationRuleRequest) { + request = &UpdateIsolationRuleRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateIsolationRule", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateIsolationRuleResponse creates a response to parse from UpdateIsolationRule response +func CreateUpdateIsolationRuleResponse() (response *UpdateIsolationRuleResponse) { + response = &UpdateIsolationRuleResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_migration_task.go b/services/mse/update_migration_task.go index 846275f52..5d9fe4b2c 100644 --- a/services/mse/update_migration_task.go +++ b/services/mse/update_migration_task.go @@ -72,16 +72,17 @@ func (client *Client) UpdateMigrationTaskWithCallback(request *UpdateMigrationTa type UpdateMigrationTaskRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` - TargetClusterUrl string `position:"Query" name:"TargetClusterUrl"` - OriginInstanceAddress string `position:"Query" name:"OriginInstanceAddress"` + SyncType string `position:"Query" name:"SyncType"` RequestPars string `position:"Query" name:"RequestPars"` Id string `position:"Query" name:"Id"` OriginInstanceName string `position:"Query" name:"OriginInstanceName"` ProjectDesc string `position:"Query" name:"ProjectDesc"` - OriginInstanceNamespace string `position:"Query" name:"OriginInstanceNamespace"` ClusterType string `position:"Query" name:"ClusterType"` - TargetInstanceId string `position:"Query" name:"TargetInstanceId"` TargetClusterName string `position:"Query" name:"TargetClusterName"` + TargetClusterUrl string `position:"Query" name:"TargetClusterUrl"` + OriginInstanceAddress string `position:"Query" name:"OriginInstanceAddress"` + OriginInstanceNamespace string `position:"Query" name:"OriginInstanceNamespace"` + TargetInstanceId string `position:"Query" name:"TargetInstanceId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` } diff --git a/services/mse/update_nacos_config.go b/services/mse/update_nacos_config.go index f8d13c19a..5735e78b9 100644 --- a/services/mse/update_nacos_config.go +++ b/services/mse/update_nacos_config.go @@ -81,7 +81,7 @@ type UpdateNacosConfigRequest struct { BetaIps string `position:"Query" name:"BetaIps"` InstanceId string `position:"Query" name:"InstanceId"` Desc string `position:"Query" name:"Desc"` - Content string `position:"Query" name:"Content"` + Content string `position:"Body" name:"Content"` DataId string `position:"Query" name:"DataId"` AcceptLanguage string `position:"Query" name:"AcceptLanguage"` Md5 string `position:"Query" name:"Md5"` diff --git a/services/mse/update_nacos_gray_config.go b/services/mse/update_nacos_gray_config.go new file mode 100644 index 000000000..9d702d7bf --- /dev/null +++ b/services/mse/update_nacos_gray_config.go @@ -0,0 +1,111 @@ +package mse + +//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" +) + +// UpdateNacosGrayConfig invokes the mse.UpdateNacosGrayConfig API synchronously +func (client *Client) UpdateNacosGrayConfig(request *UpdateNacosGrayConfigRequest) (response *UpdateNacosGrayConfigResponse, err error) { + response = CreateUpdateNacosGrayConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateNacosGrayConfigWithChan invokes the mse.UpdateNacosGrayConfig API asynchronously +func (client *Client) UpdateNacosGrayConfigWithChan(request *UpdateNacosGrayConfigRequest) (<-chan *UpdateNacosGrayConfigResponse, <-chan error) { + responseChan := make(chan *UpdateNacosGrayConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateNacosGrayConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateNacosGrayConfigWithCallback invokes the mse.UpdateNacosGrayConfig API asynchronously +func (client *Client) UpdateNacosGrayConfigWithCallback(request *UpdateNacosGrayConfigRequest, callback func(response *UpdateNacosGrayConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateNacosGrayConfigResponse + var err error + defer close(result) + response, err = client.UpdateNacosGrayConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateNacosGrayConfigRequest is the request struct for api UpdateNacosGrayConfig +type UpdateNacosGrayConfigRequest struct { + *requests.RpcRequest + MseSessionId string `position:"Query" name:"MseSessionId"` + AppName string `position:"Query" name:"AppName"` + NamespaceId string `position:"Query" name:"NamespaceId"` + GrayType string `position:"Query" name:"GrayType"` + RequestPars string `position:"Query" name:"RequestPars"` + Group string `position:"Query" name:"Group"` + InstanceId string `position:"Query" name:"InstanceId"` + Content string `position:"Query" name:"Content"` + GrayRule string `position:"Query" name:"GrayRule"` + StopGray requests.Boolean `position:"Query" name:"StopGray"` + DataId string `position:"Query" name:"DataId"` + AcceptLanguage string `position:"Query" name:"AcceptLanguage"` +} + +// UpdateNacosGrayConfigResponse is the response struct for api UpdateNacosGrayConfig +type UpdateNacosGrayConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Data bool `json:"Data" xml:"Data"` +} + +// CreateUpdateNacosGrayConfigRequest creates a request to invoke UpdateNacosGrayConfig API +func CreateUpdateNacosGrayConfigRequest() (request *UpdateNacosGrayConfigRequest) { + request = &UpdateNacosGrayConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("mse", "2019-05-31", "UpdateNacosGrayConfig", "mse", "openAPI") + request.Method = requests.POST + return +} + +// CreateUpdateNacosGrayConfigResponse creates a response to parse from UpdateNacosGrayConfig response +func CreateUpdateNacosGrayConfigResponse() (response *UpdateNacosGrayConfigResponse) { + response = &UpdateNacosGrayConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/mse/update_plugin_config.go b/services/mse/update_plugin_config.go index c8a5ecab9..bf78514ca 100644 --- a/services/mse/update_plugin_config.go +++ b/services/mse/update_plugin_config.go @@ -73,6 +73,7 @@ type UpdatePluginConfigRequest struct { *requests.RpcRequest MseSessionId string `position:"Query" name:"MseSessionId"` GatewayUniqueId string `position:"Query" name:"GatewayUniqueId"` + ResourceIdList *[]string `position:"Query" name:"ResourceIdList" type:"Json"` GmtModified string `position:"Query" name:"GmtModified"` Enable requests.Boolean `position:"Query" name:"Enable"` Id requests.Integer `position:"Query" name:"Id"`