From 75185d4328cafe217babadd73470924d4b3f5806 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 16 Jan 2020 21:20:40 +0800 Subject: [PATCH] Generated 2019-01-01 for Cms. --- ChangeLog.txt | 4 ++ services/cms/delete_site_monitors.go | 2 +- services/cms/struct_data.go | 1 + services/cms/struct_resource.go | 82 ++++++++++++++-------------- 4 files changed, 48 insertions(+), 41 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 4b35aac6ff..bcc6c63904 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2020-01-16 Version: v1.60.343 +- Generated 2019-01-01 for `Cms`. +- Fix the result value of DeleteSiteMonitors. + 2020-01-16 Version: v1.60.342 - Generated 2015-01-01 for `R-kvstore`. - Generated 2015-01-01 for `R-kvstore`. diff --git a/services/cms/delete_site_monitors.go b/services/cms/delete_site_monitors.go index 8ee5fa5c1f..b0c21af412 100644 --- a/services/cms/delete_site_monitors.go +++ b/services/cms/delete_site_monitors.go @@ -87,7 +87,7 @@ type DeleteSiteMonitorsResponse struct { Message string `json:"Message" xml:"Message"` Success string `json:"Success" xml:"Success"` RequestId string `json:"RequestId" xml:"RequestId"` - Data string `json:"Data" xml:"Data"` + Data Data `json:"Data" xml:"Data"` } // CreateDeleteSiteMonitorsRequest creates a request to invoke DeleteSiteMonitors API diff --git a/services/cms/struct_data.go b/services/cms/struct_data.go index 31ed6469aa..cfe105f625 100644 --- a/services/cms/struct_data.go +++ b/services/cms/struct_data.go @@ -22,5 +22,6 @@ type Data struct { SiteMonitorOperatorQuotaQuota int `json:"SiteMonitorOperatorQuotaQuota" xml:"SiteMonitorOperatorQuotaQuota"` SiteMonitorTaskQuota int `json:"SiteMonitorTaskQuota" xml:"SiteMonitorTaskQuota"` SiteMonitorQuotaTaskUsed int `json:"SiteMonitorQuotaTaskUsed" xml:"SiteMonitorQuotaTaskUsed"` + Count int `json:"count" xml:"count"` AttachAlertResult AttachAlertResult `json:"AttachAlertResult" xml:"AttachAlertResult"` } diff --git a/services/cms/struct_resource.go b/services/cms/struct_resource.go index 425c24f3f3..786fd739fa 100644 --- a/services/cms/struct_resource.go +++ b/services/cms/struct_resource.go @@ -17,44 +17,46 @@ package cms // Resource is a nested struct in cms response type Resource struct { - TemplateId string `json:"TemplateId" xml:"TemplateId"` - Name string `json:"Name" xml:"Name"` - Category string `json:"Category" xml:"Category"` - Unit string `json:"Unit" xml:"Unit"` - NameDesc string `json:"NameDesc" xml:"NameDesc"` - Desc string `json:"Desc" xml:"Desc"` - BindUrl string `json:"BindUrl" xml:"BindUrl"` - Dimensions string `json:"Dimensions" xml:"Dimensions"` - GroupName string `json:"GroupName" xml:"GroupName"` - DynamicTagGroupId int64 `json:"DynamicTagGroupId" xml:"DynamicTagGroupId"` - ServiceId string `json:"ServiceId" xml:"ServiceId"` - RestVersion string `json:"RestVersion" xml:"RestVersion"` - RegionId string `json:"RegionId" xml:"RegionId"` - InstanceId string `json:"InstanceId" xml:"InstanceId"` - NetworkType string `json:"NetworkType" xml:"NetworkType"` - Description string `json:"Description" xml:"Description"` - Periods string `json:"Periods" xml:"Periods"` - Type string `json:"Type" xml:"Type"` - Product string `json:"Product" xml:"Product"` - InstanceName string `json:"InstanceName" xml:"InstanceName"` - Level string `json:"Level" xml:"Level"` - Dimension string `json:"Dimension" xml:"Dimension"` - Id int64 `json:"Id" xml:"Id"` - GmtCreate int64 `json:"GmtCreate" xml:"GmtCreate"` - EventType string `json:"EventType" xml:"EventType"` - Namespace string `json:"Namespace" xml:"Namespace"` - GroupId int64 `json:"GroupId" xml:"GroupId"` - GmtModified int64 `json:"GmtModified" xml:"GmtModified"` - MetricName string `json:"MetricName" xml:"MetricName"` - StatusDesc string `json:"StatusDesc" xml:"StatusDesc"` - Labels string `json:"Labels" xml:"Labels"` - Status string `json:"Status" xml:"Status"` - Statistics string `json:"Statistics" xml:"Statistics"` - TemplateIds TemplateIds `json:"TemplateIds" xml:"TemplateIds"` - Vpc Vpc `json:"Vpc" xml:"Vpc"` - Region Region `json:"Region" xml:"Region"` - Tags TagsInDescribeMonitorGroupInstanceAttribute `json:"Tags" xml:"Tags"` - ContactGroups ContactGroupsInDescribeMonitorGroups `json:"ContactGroups" xml:"ContactGroups"` - AlertResults []Result `json:"AlertResults" xml:"AlertResults"` - AlertTemplates AlertTemplates `json:"AlertTemplates" xml:"AlertTemplates"` + TemplateId string `json:"TemplateId" xml:"TemplateId"` + Name string `json:"Name" xml:"Name"` + Category string `json:"Category" xml:"Category"` + Unit string `json:"Unit" xml:"Unit"` + NameDesc string `json:"NameDesc" xml:"NameDesc"` + Desc string `json:"Desc" xml:"Desc"` + BindUrl string `json:"BindUrl" xml:"BindUrl"` + Dimensions string `json:"Dimensions" xml:"Dimensions"` + GroupName string `json:"GroupName" xml:"GroupName"` + ServiceId string `json:"ServiceId" xml:"ServiceId"` + RestVersion string `json:"RestVersion" xml:"RestVersion"` + RegionId string `json:"RegionId" xml:"RegionId"` + InstanceId string `json:"InstanceId" xml:"InstanceId"` + DynamicTagRuleId string `json:"DynamicTagRuleId" xml:"DynamicTagRuleId"` + NetworkType string `json:"NetworkType" xml:"NetworkType"` + Description string `json:"Description" xml:"Description"` + Periods string `json:"Periods" xml:"Periods"` + Type string `json:"Type" xml:"Type"` + Product string `json:"Product" xml:"Product"` + InstanceName string `json:"InstanceName" xml:"InstanceName"` + Level string `json:"Level" xml:"Level"` + Dimension string `json:"Dimension" xml:"Dimension"` + Id int64 `json:"Id" xml:"Id"` + GroupFounderTagValue string `json:"GroupFounderTagValue" xml:"GroupFounderTagValue"` + GmtCreate int64 `json:"GmtCreate" xml:"GmtCreate"` + EventType string `json:"EventType" xml:"EventType"` + Namespace string `json:"Namespace" xml:"Namespace"` + GroupId int64 `json:"GroupId" xml:"GroupId"` + GmtModified int64 `json:"GmtModified" xml:"GmtModified"` + GroupFounderTagKey string `json:"GroupFounderTagKey" xml:"GroupFounderTagKey"` + MetricName string `json:"MetricName" xml:"MetricName"` + StatusDesc string `json:"StatusDesc" xml:"StatusDesc"` + Labels string `json:"Labels" xml:"Labels"` + Status string `json:"Status" xml:"Status"` + Statistics string `json:"Statistics" xml:"Statistics"` + TemplateIds TemplateIds `json:"TemplateIds" xml:"TemplateIds"` + Vpc Vpc `json:"Vpc" xml:"Vpc"` + Region Region `json:"Region" xml:"Region"` + Tags TagsInDescribeMonitorGroupInstanceAttribute `json:"Tags" xml:"Tags"` + ContactGroups ContactGroupsInDescribeMonitorGroups `json:"ContactGroups" xml:"ContactGroups"` + AlertResults []Result `json:"AlertResults" xml:"AlertResults"` + AlertTemplates AlertTemplates `json:"AlertTemplates" xml:"AlertTemplates"` }