Browse Source

Generated 2019-01-01 for Cms.

sdk-team 5 years ago
parent
commit
204980b3bb

+ 4 - 0
ChangeLog.txt

@@ -1,3 +1,7 @@
+2020-02-14 Version: v1.60.375
+- Generated 2019-01-01 for `Cms`.
+- Fix the field definition for the site monitoring option OptionJson.
+
 2020-02-13 Version: v1.60.374
 2020-02-13 Version: v1.60.374
 - Generated 2014-05-26 for `Ecs`.
 - Generated 2014-05-26 for `Ecs`.
 - ModifyNetworkInterfaceAttribute support modify QueueNumber.
 - ModifyNetworkInterfaceAttribute support modify QueueNumber.

+ 1 - 1
services/cms/describe_site_monitor_statistics.go

@@ -89,7 +89,7 @@ type DescribeSiteMonitorStatisticsResponse struct {
 	Message   string `json:"Message" xml:"Message"`
 	Message   string `json:"Message" xml:"Message"`
 	Success   string `json:"Success" xml:"Success"`
 	Success   string `json:"Success" xml:"Success"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	Data      int64  `json:"Data" xml:"Data"`
+	Data      string `json:"Data" xml:"Data"`
 }
 }
 
 
 // CreateDescribeSiteMonitorStatisticsRequest creates a request to invoke DescribeSiteMonitorStatistics API
 // CreateDescribeSiteMonitorStatisticsRequest creates a request to invoke DescribeSiteMonitorStatistics API

+ 39 - 0
services/cms/struct_option_json.go

@@ -0,0 +1,39 @@
+package cms
+
+//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.
+
+// OptionJson is a nested struct in cms response
+type OptionJson struct {
+	DnsType         string  `json:"dns_type" xml:"dns_type"`
+	DnsServer       string  `json:"dns_server" xml:"dns_server"`
+	ExpectValue     string  `json:"expect_value" xml:"expect_value"`
+	HttpMethod      string  `json:"http_method" xml:"http_method"`
+	ResponseContent string  `json:"response_content" xml:"response_content"`
+	MatchRule       int     `json:"match_rule" xml:"match_rule"`
+	RequestContent  string  `json:"request_content" xml:"request_content"`
+	Cookie          string  `json:"cookie" xml:"cookie"`
+	Header          string  `json:"header" xml:"header"`
+	Username        string  `json:"username" xml:"username"`
+	Password        string  `json:"password" xml:"password"`
+	TimeOut         int64   `json:"time_out" xml:"time_out"`
+	PingNum         int     `json:"ping_num" xml:"ping_num"`
+	FailureRate     float64 `json:"failure_rate" xml:"failure_rate"`
+	RequestFormat   string  `json:"request_format" xml:"request_format"`
+	ResponseFormat  string  `json:"response_format" xml:"response_format"`
+	Port            int     `json:"port" xml:"port"`
+	Authentication  int     `json:"authentication" xml:"authentication"`
+	Traceroute      int64   `json:"traceroute" xml:"traceroute"`
+}

+ 39 - 0
services/cms/struct_options_json.go

@@ -0,0 +1,39 @@
+package cms
+
+//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.
+
+// OptionsJson is a nested struct in cms response
+type OptionsJson struct {
+	DnsType         string  `json:"dns_type" xml:"dns_type"`
+	DnsServer       string  `json:"dns_server" xml:"dns_server"`
+	ExpectValue     string  `json:"expect_value" xml:"expect_value"`
+	HttpMethod      string  `json:"http_method" xml:"http_method"`
+	ResponseContent string  `json:"response_content" xml:"response_content"`
+	MatchRule       int     `json:"match_rule" xml:"match_rule"`
+	RequestContent  string  `json:"request_content" xml:"request_content"`
+	Cookie          string  `json:"cookie" xml:"cookie"`
+	Header          string  `json:"header" xml:"header"`
+	Username        string  `json:"username" xml:"username"`
+	Password        string  `json:"password" xml:"password"`
+	TimeOut         int64   `json:"time_out" xml:"time_out"`
+	PingNum         int     `json:"ping_num" xml:"ping_num"`
+	FailureRate     float64 `json:"failure_rate" xml:"failure_rate"`
+	RequestFormat   string  `json:"request_format" xml:"request_format"`
+	ResponseFormat  string  `json:"response_format" xml:"response_format"`
+	Port            int     `json:"port" xml:"port"`
+	Authentication  int     `json:"authentication" xml:"authentication"`
+	Traceroute      int64   `json:"traceroute" xml:"traceroute"`
+}

+ 9 - 9
services/cms/struct_site_monitor.go

@@ -17,13 +17,13 @@ package cms
 
 
 // SiteMonitor is a nested struct in cms response
 // SiteMonitor is a nested struct in cms response
 type SiteMonitor struct {
 type SiteMonitor struct {
-	TaskId      string `json:"TaskId" xml:"TaskId"`
-	TaskType    string `json:"TaskType" xml:"TaskType"`
-	Address     string `json:"Address" xml:"Address"`
-	TaskState   string `json:"TaskState" xml:"TaskState"`
-	CreateTime  string `json:"CreateTime" xml:"CreateTime"`
-	TaskName    string `json:"TaskName" xml:"TaskName"`
-	Interval    string `json:"Interval" xml:"Interval"`
-	UpdateTime  string `json:"UpdateTime" xml:"UpdateTime"`
-	OptionsJson string `json:"OptionsJson" xml:"OptionsJson"`
+	TaskId      string      `json:"TaskId" xml:"TaskId"`
+	TaskType    string      `json:"TaskType" xml:"TaskType"`
+	Address     string      `json:"Address" xml:"Address"`
+	TaskState   string      `json:"TaskState" xml:"TaskState"`
+	CreateTime  string      `json:"CreateTime" xml:"CreateTime"`
+	TaskName    string      `json:"TaskName" xml:"TaskName"`
+	Interval    string      `json:"Interval" xml:"Interval"`
+	UpdateTime  string      `json:"UpdateTime" xml:"UpdateTime"`
+	OptionsJson OptionsJson `json:"OptionsJson" xml:"OptionsJson"`
 }
 }

+ 8 - 8
services/cms/struct_site_monitors.go

@@ -17,12 +17,12 @@ package cms
 
 
 // SiteMonitors is a nested struct in cms response
 // SiteMonitors is a nested struct in cms response
 type SiteMonitors struct {
 type SiteMonitors struct {
-	OptionJson string    `json:"OptionJson" xml:"OptionJson"`
-	TaskId     string    `json:"TaskId" xml:"TaskId"`
-	Interval   string    `json:"Interval" xml:"Interval"`
-	TaskName   string    `json:"TaskName" xml:"TaskName"`
-	TaskState  string    `json:"TaskState" xml:"TaskState"`
-	TaskType   string    `json:"TaskType" xml:"TaskType"`
-	Address    string    `json:"Address" xml:"Address"`
-	IspCities  IspCities `json:"IspCities" xml:"IspCities"`
+	TaskId     string     `json:"TaskId" xml:"TaskId"`
+	Interval   string     `json:"Interval" xml:"Interval"`
+	TaskName   string     `json:"TaskName" xml:"TaskName"`
+	TaskState  string     `json:"TaskState" xml:"TaskState"`
+	TaskType   string     `json:"TaskType" xml:"TaskType"`
+	Address    string     `json:"Address" xml:"Address"`
+	OptionJson OptionJson `json:"OptionJson" xml:"OptionJson"`
+	IspCities  IspCities  `json:"IspCities" xml:"IspCities"`
 }
 }