Ver Fonte

JARVIS SDK Auto Released By mainri.mxy,Version:1.19.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
haowei.yao há 7 anos atrás
pai
commit
17c2e554ab

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2018-06-06 Version: 1.19.0
+1, Add interface DescribePhoneInfo, DescribeDdosDefenseInfo, DescribeRiskListDetail, DescribePunishList.
+
 2018-05-30 Version: 1.18.1
 1, Add new API: DescribeContact and GetContacts.
 2, Add return value: alertRule for CreateTask.

+ 111 - 0
services/jarvis/describe_ddos_defense_info.go

@@ -0,0 +1,111 @@
+package jarvis
+
+//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"
+)
+
+// DescribeDdosDefenseInfo invokes the jarvis.DescribeDdosDefenseInfo API synchronously
+// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html
+func (client *Client) DescribeDdosDefenseInfo(request *DescribeDdosDefenseInfoRequest) (response *DescribeDdosDefenseInfoResponse, err error) {
+	response = CreateDescribeDdosDefenseInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeDdosDefenseInfoWithChan invokes the jarvis.DescribeDdosDefenseInfo API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDdosDefenseInfoWithChan(request *DescribeDdosDefenseInfoRequest) (<-chan *DescribeDdosDefenseInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribeDdosDefenseInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeDdosDefenseInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeDdosDefenseInfoWithCallback invokes the jarvis.DescribeDdosDefenseInfo API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describeddosdefenseinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeDdosDefenseInfoWithCallback(request *DescribeDdosDefenseInfoRequest, callback func(response *DescribeDdosDefenseInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeDdosDefenseInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeDdosDefenseInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeDdosDefenseInfoRequest is the request struct for api DescribeDdosDefenseInfo
+type DescribeDdosDefenseInfoRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	Lang       string `position:"Query" name:"Lang"`
+	SrcUid     string `position:"Query" name:"srcUid"`
+	SourceCode string `position:"Query" name:"sourceCode"`
+}
+
+// DescribeDdosDefenseInfoResponse is the response struct for api DescribeDdosDefenseInfo
+type DescribeDdosDefenseInfoResponse struct {
+	*responses.BaseResponse
+	RequestId            string                     `json:"RequestId" xml:"RequestId"`
+	Module               string                     `json:"Module" xml:"Module"`
+	BlackTimes           int                        `json:"BlackTimes" xml:"BlackTimes"`
+	Duration             int                        `json:"Duration" xml:"Duration"`
+	BgpPkgState          string                     `json:"BgpPkgState" xml:"BgpPkgState"`
+	DdosDefenseThreshold []DdosDefenseThresholdItem `json:"DdosDefenseThreshold" xml:"DdosDefenseThreshold"`
+}
+
+// CreateDescribeDdosDefenseInfoRequest creates a request to invoke DescribeDdosDefenseInfo API
+func CreateDescribeDdosDefenseInfoRequest() (request *DescribeDdosDefenseInfoRequest) {
+	request = &DescribeDdosDefenseInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeDdosDefenseInfo", "", "")
+	return
+}
+
+// CreateDescribeDdosDefenseInfoResponse creates a response to parse from DescribeDdosDefenseInfo response
+func CreateDescribeDdosDefenseInfoResponse() (response *DescribeDdosDefenseInfoResponse) {
+	response = &DescribeDdosDefenseInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 110 - 0
services/jarvis/describe_phone_info.go

@@ -0,0 +1,110 @@
+package jarvis
+
+//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"
+)
+
+// DescribePhoneInfo invokes the jarvis.DescribePhoneInfo API synchronously
+// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html
+func (client *Client) DescribePhoneInfo(request *DescribePhoneInfoRequest) (response *DescribePhoneInfoResponse, err error) {
+	response = CreateDescribePhoneInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePhoneInfoWithChan invokes the jarvis.DescribePhoneInfo API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePhoneInfoWithChan(request *DescribePhoneInfoRequest) (<-chan *DescribePhoneInfoResponse, <-chan error) {
+	responseChan := make(chan *DescribePhoneInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePhoneInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePhoneInfoWithCallback invokes the jarvis.DescribePhoneInfo API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describephoneinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePhoneInfoWithCallback(request *DescribePhoneInfoRequest, callback func(response *DescribePhoneInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePhoneInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePhoneInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePhoneInfoRequest is the request struct for api DescribePhoneInfo
+type DescribePhoneInfoRequest struct {
+	*requests.RpcRequest
+	SourceIp   string `position:"Query" name:"SourceIp"`
+	PhoneNum   string `position:"Query" name:"phoneNum"`
+	Lang       string `position:"Query" name:"Lang"`
+	SourceCode string `position:"Query" name:"sourceCode"`
+}
+
+// DescribePhoneInfoResponse is the response struct for api DescribePhoneInfo
+type DescribePhoneInfoResponse struct {
+	*responses.BaseResponse
+	RequestId  string `json:"RequestId" xml:"RequestId"`
+	Module     string `json:"Module" xml:"Module"`
+	PhoneNum   int    `json:"phoneNum" xml:"phoneNum"`
+	RiskLevel  int    `json:"riskLevel" xml:"riskLevel"`
+	DetectTime string `json:"detectTime" xml:"detectTime"`
+}
+
+// CreateDescribePhoneInfoRequest creates a request to invoke DescribePhoneInfo API
+func CreateDescribePhoneInfoRequest() (request *DescribePhoneInfoRequest) {
+	request = &DescribePhoneInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("jarvis", "2018-02-06", "DescribePhoneInfo", "", "")
+	return
+}
+
+// CreateDescribePhoneInfoResponse creates a response to parse from DescribePhoneInfo response
+func CreateDescribePhoneInfoResponse() (response *DescribePhoneInfoResponse) {
+	response = &DescribePhoneInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 113 - 0
services/jarvis/describe_punish_list.go

@@ -0,0 +1,113 @@
+package jarvis
+
+//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"
+)
+
+// DescribePunishList invokes the jarvis.DescribePunishList API synchronously
+// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html
+func (client *Client) DescribePunishList(request *DescribePunishListRequest) (response *DescribePunishListResponse, err error) {
+	response = CreateDescribePunishListResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribePunishListWithChan invokes the jarvis.DescribePunishList API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePunishListWithChan(request *DescribePunishListRequest) (<-chan *DescribePunishListResponse, <-chan error) {
+	responseChan := make(chan *DescribePunishListResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribePunishList(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribePunishListWithCallback invokes the jarvis.DescribePunishList API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describepunishlist.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribePunishListWithCallback(request *DescribePunishListRequest, callback func(response *DescribePunishListResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribePunishListResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribePunishList(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribePunishListRequest is the request struct for api DescribePunishList
+type DescribePunishListRequest struct {
+	*requests.RpcRequest
+	SrcIP        string           `position:"Query" name:"SrcIP"`
+	SourceIp     string           `position:"Query" name:"SourceIp"`
+	PageSize     requests.Integer `position:"Query" name:"pageSize"`
+	CurrentPage  requests.Integer `position:"Query" name:"currentPage"`
+	PunishStatus string           `position:"Query" name:"PunishStatus"`
+	Lang         string           `position:"Query" name:"Lang"`
+	SrcUid       string           `position:"Query" name:"srcUid"`
+	SourceCode   string           `position:"Query" name:"sourceCode"`
+}
+
+// DescribePunishListResponse is the response struct for api DescribePunishList
+type DescribePunishListResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Module    string   `json:"Module" xml:"Module"`
+	PageInfo  PageInfo `json:"PageInfo" xml:"PageInfo"`
+	DataList  []Data   `json:"DataList" xml:"DataList"`
+}
+
+// CreateDescribePunishListRequest creates a request to invoke DescribePunishList API
+func CreateDescribePunishListRequest() (request *DescribePunishListRequest) {
+	request = &DescribePunishListRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("jarvis", "2018-02-06", "DescribePunishList", "", "")
+	return
+}
+
+// CreateDescribePunishListResponse creates a response to parse from DescribePunishList response
+func CreateDescribePunishListResponse() (response *DescribePunishListResponse) {
+	response = &DescribePunishListResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 116 - 0
services/jarvis/describe_risk_list_detail.go

@@ -0,0 +1,116 @@
+package jarvis
+
+//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"
+)
+
+// DescribeRiskListDetail invokes the jarvis.DescribeRiskListDetail API synchronously
+// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html
+func (client *Client) DescribeRiskListDetail(request *DescribeRiskListDetailRequest) (response *DescribeRiskListDetailResponse, err error) {
+	response = CreateDescribeRiskListDetailResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRiskListDetailWithChan invokes the jarvis.DescribeRiskListDetail API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRiskListDetailWithChan(request *DescribeRiskListDetailRequest) (<-chan *DescribeRiskListDetailResponse, <-chan error) {
+	responseChan := make(chan *DescribeRiskListDetailResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRiskListDetail(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRiskListDetailWithCallback invokes the jarvis.DescribeRiskListDetail API asynchronously
+// api document: https://help.aliyun.com/api/jarvis/describerisklistdetail.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRiskListDetailWithCallback(request *DescribeRiskListDetailRequest, callback func(response *DescribeRiskListDetailResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRiskListDetailResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRiskListDetail(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRiskListDetailRequest is the request struct for api DescribeRiskListDetail
+type DescribeRiskListDetailRequest struct {
+	*requests.RpcRequest
+	RiskType      string `position:"Query" name:"riskType"`
+	SourceIp      string `position:"Query" name:"SourceIp"`
+	PageSize      string `position:"Query" name:"pageSize"`
+	QueryProduct  string `position:"Query" name:"queryProduct"`
+	CurrentPage   string `position:"Query" name:"currentPage"`
+	RiskDescribe  string `position:"Query" name:"riskDescribe"`
+	Lang          string `position:"Query" name:"Lang"`
+	SrcUid        string `position:"Query" name:"srcUid"`
+	SourceCode    string `position:"Query" name:"sourceCode"`
+	QueryRegionId string `position:"Query" name:"queryRegionId"`
+	Status        string `position:"Query" name:"status"`
+}
+
+// DescribeRiskListDetailResponse is the response struct for api DescribeRiskListDetail
+type DescribeRiskListDetailResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	Module    string   `json:"Module" xml:"Module"`
+	PageInfo  PageInfo `json:"PageInfo" xml:"PageInfo"`
+	DataList  []Data   `json:"DataList" xml:"DataList"`
+}
+
+// CreateDescribeRiskListDetailRequest creates a request to invoke DescribeRiskListDetail API
+func CreateDescribeRiskListDetailRequest() (request *DescribeRiskListDetailRequest) {
+	request = &DescribeRiskListDetailRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("jarvis", "2018-02-06", "DescribeRiskListDetail", "", "")
+	return
+}
+
+// CreateDescribeRiskListDetailResponse creates a response to parse from DescribeRiskListDetail response
+func CreateDescribeRiskListDetailResponse() (response *DescribeRiskListDetailResponse) {
+	response = &DescribeRiskListDetailResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 29 - 19
services/jarvis/struct_data.go

@@ -17,23 +17,33 @@ package jarvis
 
 // Data is a nested struct in jarvis response
 type Data struct {
-	GmtExpire     string `json:"GmtExpire" xml:"GmtExpire"`
-	PunishCount   int    `json:"PunishCount" xml:"PunishCount"`
-	Protocol      string `json:"Protocol" xml:"Protocol"`
-	SrcIP         string `json:"SrcIP" xml:"SrcIP"`
-	SrcPort       int    `json:"SrcPort" xml:"SrcPort"`
-	DstPort       int    `json:"DstPort" xml:"DstPort"`
-	FeedBack      int    `json:"FeedBack" xml:"FeedBack"`
-	AutoConfig    int    `json:"AutoConfig" xml:"AutoConfig"`
-	Reason        string `json:"Reason" xml:"Reason"`
-	GmtCreate     string `json:"GmtCreate" xml:"GmtCreate"`
-	GroupId       int    `json:"GroupId" xml:"GroupId"`
-	PunishType    string `json:"PunishType" xml:"PunishType"`
-	RegionId      string `json:"RegionId" xml:"RegionId"`
-	PunishResult  string `json:"PunishResult" xml:"PunishResult"`
-	Status        string `json:"Status" xml:"Status"`
-	GmtRealExpire string `json:"GmtRealExpire" xml:"GmtRealExpire"`
-	SrcUid        string `json:"SrcUid" xml:"SrcUid"`
-	DstIP         string `json:"DstIP" xml:"DstIP"`
-	Items         []Item `json:"Items" xml:"Items"`
+	GmtExpire        string                 `json:"GmtExpire" xml:"GmtExpire"`
+	TacticsName      string                 `json:"TacticsName" xml:"TacticsName"`
+	SrcPort          int                    `json:"SrcPort" xml:"SrcPort"`
+	RiskType         string                 `json:"RiskType" xml:"RiskType"`
+	FeedBack         int                    `json:"FeedBack" xml:"FeedBack"`
+	Reason           string                 `json:"Reason" xml:"Reason"`
+	GmtCreate        string                 `json:"GmtCreate" xml:"GmtCreate"`
+	RegionId         string                 `json:"RegionId" xml:"RegionId"`
+	RiskInstance     string                 `json:"RiskInstance" xml:"RiskInstance"`
+	IgnoreTime       string                 `json:"IgnoreTime" xml:"IgnoreTime"`
+	DstIP            string                 `json:"DstIP" xml:"DstIP"`
+	Product          string                 `json:"Product" xml:"Product"`
+	Protocol         string                 `json:"Protocol" xml:"Protocol"`
+	PunishCount      int                    `json:"PunishCount" xml:"PunishCount"`
+	UpdateTime       string                 `json:"UpdateTime" xml:"UpdateTime"`
+	SrcIP            string                 `json:"SrcIP" xml:"SrcIP"`
+	DstPort          int                    `json:"DstPort" xml:"DstPort"`
+	AutoConfig       int                    `json:"AutoConfig" xml:"AutoConfig"`
+	PunishType       string                 `json:"PunishType" xml:"PunishType"`
+	GroupId          int                    `json:"GroupId" xml:"GroupId"`
+	PunishResult     string                 `json:"PunishResult" xml:"PunishResult"`
+	RiskDescribe     string                 `json:"RiskDescribe" xml:"RiskDescribe"`
+	RiskId           int                    `json:"RiskId" xml:"RiskId"`
+	Status           string                 `json:"Status" xml:"Status"`
+	GmtRealExpire    string                 `json:"GmtRealExpire" xml:"GmtRealExpire"`
+	SrcUid           string                 `json:"SrcUid" xml:"SrcUid"`
+	Items            []Item                 `json:"Items" xml:"Items"`
+	RdsWhitelistRisk []RdsWhitelistRiskItem `json:"RdsWhitelistRisk" xml:"RdsWhitelistRisk"`
+	EcsSecGroupRisk  []EcsSecGroupRiskItem  `json:"EcsSecGroupRisk" xml:"EcsSecGroupRisk"`
 }

+ 21 - 0
services/jarvis/struct_data_list_in_describe_punish_list.go

@@ -0,0 +1,21 @@
+package jarvis
+
+//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.
+
+// DataListInDescribePunishList is a nested struct in jarvis response
+type DataListInDescribePunishList struct {
+	Data []Data `json:"Data" xml:"Data"`
+}

+ 21 - 0
services/jarvis/struct_data_list_in_describe_risk_list_detail.go

@@ -0,0 +1,21 @@
+package jarvis
+
+//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.
+
+// DataListInDescribeRiskListDetail is a nested struct in jarvis response
+type DataListInDescribeRiskListDetail struct {
+	Data []Data `json:"Data" xml:"Data"`
+}

+ 21 - 0
services/jarvis/struct_ddos_defense_threshold.go

@@ -0,0 +1,21 @@
+package jarvis
+
+//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.
+
+// DdosDefenseThreshold is a nested struct in jarvis response
+type DdosDefenseThreshold struct {
+	DdosDefenseThresholdItem []DdosDefenseThresholdItem `json:"DdosDefenseThresholdItem" xml:"DdosDefenseThresholdItem"`
+}

+ 23 - 0
services/jarvis/struct_ddos_defense_threshold_item.go

@@ -0,0 +1,23 @@
+package jarvis
+
+//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.
+
+// DdosDefenseThresholdItem is a nested struct in jarvis response
+type DdosDefenseThresholdItem struct {
+	RegionId           string `json:"RegionId" xml:"RegionId"`
+	CurrThreshold      int    `json:"CurrThreshold" xml:"CurrThreshold"`
+	RecommendThreshold int    `json:"RecommendThreshold" xml:"RecommendThreshold"`
+}

+ 21 - 0
services/jarvis/struct_ecs_sec_group_risk.go

@@ -0,0 +1,21 @@
+package jarvis
+
+//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.
+
+// EcsSecGroupRisk is a nested struct in jarvis response
+type EcsSecGroupRisk struct {
+	EcsSecGroupRiskItem []EcsSecGroupRiskItem `json:"EcsSecGroupRiskItem" xml:"EcsSecGroupRiskItem"`
+}

+ 24 - 0
services/jarvis/struct_ecs_sec_group_risk_item.go

@@ -0,0 +1,24 @@
+package jarvis
+
+//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.
+
+// EcsSecGroupRiskItem is a nested struct in jarvis response
+type EcsSecGroupRiskItem struct {
+	NetType      string `json:"NetType" xml:"NetType"`
+	Direction    string `json:"Direction" xml:"Direction"`
+	DstPortRange string `json:"DstPortRange" xml:"DstPortRange"`
+	SrcIpRange   string `json:"SrcIpRange" xml:"SrcIpRange"`
+}

+ 21 - 0
services/jarvis/struct_rds_whitelist_risk.go

@@ -0,0 +1,21 @@
+package jarvis
+
+//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.
+
+// RdsWhitelistRisk is a nested struct in jarvis response
+type RdsWhitelistRisk struct {
+	RdsWhitelistRiskItem []RdsWhitelistRiskItem `json:"RdsWhitelistRiskItem" xml:"RdsWhitelistRiskItem"`
+}

+ 22 - 0
services/jarvis/struct_rds_whitelist_risk_item.go

@@ -0,0 +1,22 @@
+package jarvis
+
+//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.
+
+// RdsWhitelistRiskItem is a nested struct in jarvis response
+type RdsWhitelistRiskItem struct {
+	RdsWhitelistGroup string `json:"RdsWhitelistGroup" xml:"RdsWhitelistGroup"`
+	RiskDetail        string `json:"RiskDetail" xml:"RiskDetail"`
+}