Browse Source

regenerated for RTC

Jackson Tian 6 years ago
parent
commit
ed98c40c36
82 changed files with 1979 additions and 1615 deletions
  1. 2 2
      services/rtc/client.go
  2. 2 2
      services/rtc/create_channel.go
  3. 5 5
      services/rtc/create_channel_token.go
  4. 14 8
      services/rtc/create_conference.go
  5. 22 25
      services/rtc/create_template.go
  6. 118 0
      services/rtc/creatempu_layout.go
  7. 2 2
      services/rtc/delete_channel.go
  8. 3 3
      services/rtc/delete_conference.go
  9. 0 105
      services/rtc/delete_template.go
  10. 105 0
      services/rtc/deletempu_layout.go
  11. 23 9
      services/rtc/describe_apps.go
  12. 12 6
      services/rtc/describe_conference_auth_info.go
  13. 16 5
      services/rtc/describe_real_time_record_detail.go
  14. 20 6
      services/rtc/describe_real_time_record_list.go
  15. 28 8
      services/rtc/describe_record_detail.go
  16. 27 13
      services/rtc/describe_record_list.go
  17. 118 0
      services/rtc/describe_rtc_channel_cnt_data.go
  18. 123 0
      services/rtc/describe_rtc_duration_data.go
  19. 119 0
      services/rtc/describe_rtc_peak_channel_cnt_data.go
  20. 119 0
      services/rtc/describe_rtc_peak_user_cnt_data.go
  21. 118 0
      services/rtc/describe_rtc_user_cnt_data.go
  22. 52 9
      services/rtc/describe_statis.go
  23. 0 105
      services/rtc/get_all_template.go
  24. 0 108
      services/rtc/get_task_param.go
  25. 0 107
      services/rtc/get_task_status.go
  26. 0 113
      services/rtc/get_template_info.go
  27. 105 0
      services/rtc/getmpu_all_layout_id.go
  28. 127 0
      services/rtc/getmpu_layout_info.go
  29. 126 0
      services/rtc/getmpu_task_param.go
  30. 106 0
      services/rtc/getmpu_task_status.go
  31. 3 3
      services/rtc/modify_app.go
  32. 6 6
      services/rtc/modify_conference.go
  33. 17 7
      services/rtc/mute_audio.go
  34. 17 7
      services/rtc/mute_audio_all.go
  35. 109 0
      services/rtc/receive_notify.go
  36. 17 7
      services/rtc/remove_participants.go
  37. 15 5
      services/rtc/remove_terminals.go
  38. 2 2
      services/rtc/start_app.go
  39. 15 14
      services/rtc/start_task.go
  40. 117 0
      services/rtc/startmpu_task.go
  41. 2 2
      services/rtc/stop_app.go
  42. 5 6
      services/rtc/stop_task.go
  43. 105 0
      services/rtc/stopmpu_task.go
  44. 0 27
      services/rtc/struct_app.go
  45. 0 21
      services/rtc/struct_app_list.go
  46. 0 23
      services/rtc/struct_auth_info.go
  47. 0 21
      services/rtc/struct_call_areas_in_describe_real_time_record_list.go
  48. 0 21
      services/rtc/struct_call_areas_in_describe_record_list.go
  49. 0 21
      services/rtc/struct_channel_statis.go
  50. 0 23
      services/rtc/struct_channel_statis_item.go
  51. 0 28
      services/rtc/struct_communication_record_info.go
  52. 0 21
      services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go
  53. 0 21
      services/rtc/struct_communication_record_infos_in_describe_record_list.go
  54. 0 25
      services/rtc/struct_duration.go
  55. 0 21
      services/rtc/struct_duration_in_describe_statis.go
  56. 0 25
      services/rtc/struct_duration_item.go
  57. 0 23
      services/rtc/struct_lay_out.go
  58. 0 22
      services/rtc/struct_live_config.go
  59. 0 21
      services/rtc/struct_mix_pane.go
  60. 0 23
      services/rtc/struct_mix_pane_item.go
  61. 0 23
      services/rtc/struct_participant.go
  62. 0 21
      services/rtc/struct_participants_in_mute_audio.go
  63. 0 21
      services/rtc/struct_participants_in_mute_audio_all.go
  64. 0 21
      services/rtc/struct_participants_in_remove_participants.go
  65. 0 21
      services/rtc/struct_participants_in_unmute_audio.go
  66. 0 21
      services/rtc/struct_participants_in_unmute_audio_all.go
  67. 0 25
      services/rtc/struct_record_config.go
  68. 0 25
      services/rtc/struct_record_detail_info.go
  69. 0 21
      services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go
  70. 0 21
      services/rtc/struct_record_detail_infos_in_describe_record_detail.go
  71. 0 21
      services/rtc/struct_service_areas.go
  72. 0 24
      services/rtc/struct_statis_info.go
  73. 0 21
      services/rtc/struct_statis_infos.go
  74. 0 21
      services/rtc/struct_template_ids.go
  75. 0 23
      services/rtc/struct_terminal.go
  76. 0 21
      services/rtc/struct_terminals.go
  77. 0 21
      services/rtc/struct_user_statis.go
  78. 0 23
      services/rtc/struct_user_statis_item.go
  79. 17 7
      services/rtc/unmute_audio.go
  80. 17 7
      services/rtc/unmute_audio_all.go
  81. 3 3
      services/rtc/update_channel.go
  82. 0 116
      services/rtc/update_task_param.go

+ 2 - 2
services/rtc/client.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/auth"

+ 2 - 2
services/rtc/create_channel.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 5 - 5
services/rtc/create_channel_token.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,12 @@ func (client *Client) CreateChannelTokenWithCallback(request *CreateChannelToken
 // CreateChannelTokenRequest is the request struct for api CreateChannelToken
 type CreateChannelTokenRequest struct {
 	*requests.RpcRequest
-	SessionId string           `position:"Query" name:"SessionId"`
-	UId       string           `position:"Query" name:"UId"`
 	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	Nonce     string           `position:"Query" name:"Nonce"`
 	AppId     string           `position:"Query" name:"AppId"`
 	ChannelId string           `position:"Query" name:"ChannelId"`
+	SessionId string           `position:"Query" name:"SessionId"`
+	UId       string           `position:"Query" name:"UId"`
+	Nonce     string           `position:"Query" name:"Nonce"`
 }
 
 // CreateChannelTokenResponse is the response struct for api CreateChannelToken

+ 14 - 8
services/rtc/create_conference.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,21 +76,27 @@ func (client *Client) CreateConferenceWithCallback(request *CreateConferenceRequ
 // CreateConferenceRequest is the request struct for api CreateConference
 type CreateConferenceRequest struct {
 	*requests.RpcRequest
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+	AppId          string           `position:"Query" name:"AppId"`
+	ConferenceName string           `position:"Query" name:"ConferenceName"`
 	ClientToken    string           `position:"Query" name:"ClientToken"`
 	StartTime      string           `position:"Query" name:"StartTime"`
 	Type           string           `position:"Query" name:"Type"`
-	ConferenceName string           `position:"Query" name:"ConferenceName"`
-	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	AppId          string           `position:"Query" name:"AppId"`
 	RemindNotice   requests.Integer `position:"Query" name:"RemindNotice"`
 }
 
 // CreateConferenceResponse is the response struct for api CreateConference
 type CreateConferenceResponse struct {
 	*responses.BaseResponse
-	RequestId    string   `json:"RequestId" xml:"RequestId"`
-	ConferenceId string   `json:"ConferenceId" xml:"ConferenceId"`
-	AuthInfo     AuthInfo `json:"AuthInfo" xml:"AuthInfo"`
+	RequestId    string                    `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                    `json:"ConferenceId" xml:"ConferenceId"`
+	AuthInfo     CreateConferenceAuthInfo0 `json:"AuthInfo" xml:"AuthInfo"`
+}
+
+type CreateConferenceAuthInfo0 struct {
+	Key       string `json:"Key" xml:"Key"`
+	Nonce     string `json:"Nonce" xml:"Nonce"`
+	Timestamp int    `json:"Timestamp" xml:"Timestamp"`
 }
 
 // CreateCreateConferenceRequest creates a request to invoke CreateConference API

+ 22 - 25
services/rtc/create_template.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,45 +76,42 @@ func (client *Client) CreateTemplateWithCallback(request *CreateTemplateRequest,
 // CreateTemplateRequest is the request struct for api CreateTemplate
 type CreateTemplateRequest struct {
 	*requests.RpcRequest
-	ServiceMode       requests.Integer              `position:"Query" name:"ServiceMode"`
-	LiveConfig        *[]CreateTemplateLiveConfig   `position:"Query" name:"LiveConfig"  type:"Repeated"`
-	MediaConfig       requests.Integer              `position:"Query" name:"MediaConfig"`
-	MaxMixStreamCount requests.Integer              `position:"Query" name:"MaxMixStreamCount"`
-	RecordConfig      *[]CreateTemplateRecordConfig `position:"Query" name:"RecordConfig"  type:"Repeated"`
 	OwnerId           requests.Integer              `position:"Query" name:"OwnerId"`
-	LayOut            *[]CreateTemplateLayOut       `position:"Query" name:"LayOut"  type:"Repeated"`
 	AppId             string                        `position:"Query" name:"AppId"`
-	CallBack          string                        `position:"Query" name:"CallBack"`
 	MixMode           requests.Integer              `position:"Query" name:"MixMode"`
+	ServiceMode       requests.Integer              `position:"Query" name:"ServiceMode"`
+	CallBack          string                        `position:"Query" name:"CallBack"`
+	MaxMixStreamCount requests.Integer              `position:"Query" name:"MaxMixStreamCount"`
+	MediaConfig       requests.Integer              `position:"Query" name:"MediaConfig"`
+	LayOut            *[]CreateTemplateLayOut       `position:"Query" name:"LayOut" type:"Repeated"`
+	RecordConfig      *[]CreateTemplateRecordConfig `position:"Query" name:"RecordConfig" type:"Repeated"`
+	LiveConfig        *[]CreateTemplateLiveConfig   `position:"Query" name:"LiveConfig" type:"Repeated"`
 }
 
-// CreateTemplateLiveConfig is a repeated param struct in CreateTemplateRequest
-type CreateTemplateLiveConfig struct {
-	DomainName string `name:"DomainName"`
-	AppName    string `name:"AppName"`
+type CreateTemplateLayOut struct {
+	Color    string           `name:"Color"`
+	CutMode  requests.Integer `name:"CutMode"`
+	LayOutId requests.Integer `name:"LayOutId"`
 }
 
-// CreateTemplateRecordConfig is a repeated param struct in CreateTemplateRequest
 type CreateTemplateRecordConfig struct {
-	StorageType         string `name:"StorageType"`
-	FileFormat          string `name:"FileFormat"`
-	OssEndPoint         string `name:"OssEndPoint"`
-	OssBucket           string `name:"OssBucket"`
-	VodTransCodeGroupId string `name:"VodTransCodeGroupId"`
+	StorageType         string           `name:"StorageType"`
+	FileFormat          requests.Integer `name:"FileFormat"`
+	OssEndPoint         string           `name:"OssEndPoint"`
+	OssBucket           string           `name:"OssBucket"`
+	VodTransCodeGroupId requests.Integer `name:"VodTransCodeGroupId"`
 }
 
-// CreateTemplateLayOut is a repeated param struct in CreateTemplateRequest
-type CreateTemplateLayOut struct {
-	Color    string `name:"Color"`
-	CutMode  string `name:"CutMode"`
-	LayOutId string `name:"LayOutId"`
+type CreateTemplateLiveConfig struct {
+	DomainName string `name:"DomainName"`
+	AppName    string `name:"AppName"`
 }
 
 // CreateTemplateResponse is the response struct for api CreateTemplate
 type CreateTemplateResponse struct {
 	*responses.BaseResponse
 	RequestId  string `json:"RequestId" xml:"RequestId"`
-	TemplateId int    `json:"TemplateId" xml:"TemplateId"`
+	TemplateId int64  `json:"TemplateId" xml:"TemplateId"`
 }
 
 // CreateCreateTemplateRequest creates a request to invoke CreateTemplate API

+ 118 - 0
services/rtc/creatempu_layout.go

@@ -0,0 +1,118 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// CreateMPULayout invokes the rtc.CreateMPULayout API synchronously
+// api document: https://help.aliyun.com/api/rtc/creatempulayout.html
+func (client *Client) CreateMPULayout(request *CreateMPULayoutRequest) (response *CreateMPULayoutResponse, err error) {
+	response = CreateCreateMPULayoutResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// CreateMPULayoutWithChan invokes the rtc.CreateMPULayout API asynchronously
+// api document: https://help.aliyun.com/api/rtc/creatempulayout.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMPULayoutWithChan(request *CreateMPULayoutRequest) (<-chan *CreateMPULayoutResponse, <-chan error) {
+	responseChan := make(chan *CreateMPULayoutResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.CreateMPULayout(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// CreateMPULayoutWithCallback invokes the rtc.CreateMPULayout API asynchronously
+// api document: https://help.aliyun.com/api/rtc/creatempulayout.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) CreateMPULayoutWithCallback(request *CreateMPULayoutRequest, callback func(response *CreateMPULayoutResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *CreateMPULayoutResponse
+		var err error
+		defer close(result)
+		response, err = client.CreateMPULayout(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// CreateMPULayoutRequest is the request struct for api CreateMPULayout
+type CreateMPULayoutRequest struct {
+	*requests.RpcRequest
+	OwnerId       requests.Integer        `position:"Query" name:"OwnerId"`
+	AppId         string                  `position:"Query" name:"AppId"`
+	CropMode      requests.Integer        `position:"Query" name:"CropMode"`
+	AudioMixCount requests.Integer        `position:"Query" name:"AudioMixCount"`
+	Panes         *[]CreateMPULayoutPanes `position:"Query" name:"Panes" type:"Repeated"`
+}
+
+type CreateMPULayoutPanes struct {
+	PaneId    requests.Integer `name:"PaneId"`
+	MajorPane requests.Integer `name:"MajorPane"`
+	X         requests.Float   `name:"X"`
+	Y         requests.Float   `name:"Y"`
+	Width     requests.Float   `name:"Width"`
+	Height    requests.Float   `name:"Height"`
+	ZOrder    requests.Integer `name:"ZOrder"`
+}
+
+// CreateMPULayoutResponse is the response struct for api CreateMPULayout
+type CreateMPULayoutResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	LayoutId  int64  `json:"LayoutId" xml:"LayoutId"`
+}
+
+// CreateCreateMPULayoutRequest creates a request to invoke CreateMPULayout API
+func CreateCreateMPULayoutRequest() (request *CreateMPULayoutRequest) {
+	request = &CreateMPULayoutRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "CreateMPULayout", "rtc", "openAPI")
+	return
+}
+
+// CreateCreateMPULayoutResponse creates a response to parse from CreateMPULayout response
+func CreateCreateMPULayoutResponse() (response *CreateMPULayoutResponse) {
+	response = &CreateMPULayoutResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/rtc/delete_channel.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 3 - 3
services/rtc/delete_conference.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,8 +77,8 @@ func (client *Client) DeleteConferenceWithCallback(request *DeleteConferenceRequ
 type DeleteConferenceRequest struct {
 	*requests.RpcRequest
 	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
-	ConferenceId string           `position:"Query" name:"ConferenceId"`
 	AppId        string           `position:"Query" name:"AppId"`
+	ConferenceId string           `position:"Query" name:"ConferenceId"`
 }
 
 // DeleteConferenceResponse is the response struct for api DeleteConference

+ 0 - 105
services/rtc/delete_template.go

@@ -1,105 +0,0 @@
-package rtc
-
-//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"
-)
-
-// DeleteTemplate invokes the rtc.DeleteTemplate API synchronously
-// api document: https://help.aliyun.com/api/rtc/deletetemplate.html
-func (client *Client) DeleteTemplate(request *DeleteTemplateRequest) (response *DeleteTemplateResponse, err error) {
-	response = CreateDeleteTemplateResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// DeleteTemplateWithChan invokes the rtc.DeleteTemplate API asynchronously
-// api document: https://help.aliyun.com/api/rtc/deletetemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTemplateWithChan(request *DeleteTemplateRequest) (<-chan *DeleteTemplateResponse, <-chan error) {
-	responseChan := make(chan *DeleteTemplateResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.DeleteTemplate(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// DeleteTemplateWithCallback invokes the rtc.DeleteTemplate API asynchronously
-// api document: https://help.aliyun.com/api/rtc/deletetemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) DeleteTemplateWithCallback(request *DeleteTemplateRequest, callback func(response *DeleteTemplateResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *DeleteTemplateResponse
-		var err error
-		defer close(result)
-		response, err = client.DeleteTemplate(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// DeleteTemplateRequest is the request struct for api DeleteTemplate
-type DeleteTemplateRequest struct {
-	*requests.RpcRequest
-	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
-	TemplateId requests.Integer `position:"Query" name:"TemplateId"`
-	AppId      string           `position:"Query" name:"AppId"`
-}
-
-// DeleteTemplateResponse is the response struct for api DeleteTemplate
-type DeleteTemplateResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-}
-
-// CreateDeleteTemplateRequest creates a request to invoke DeleteTemplate API
-func CreateDeleteTemplateRequest() (request *DeleteTemplateRequest) {
-	request = &DeleteTemplateRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "DeleteTemplate", "rtc", "openAPI")
-	return
-}
-
-// CreateDeleteTemplateResponse creates a response to parse from DeleteTemplate response
-func CreateDeleteTemplateResponse() (response *DeleteTemplateResponse) {
-	response = &DeleteTemplateResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 105 - 0
services/rtc/deletempu_layout.go

@@ -0,0 +1,105 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DeleteMPULayout invokes the rtc.DeleteMPULayout API synchronously
+// api document: https://help.aliyun.com/api/rtc/deletempulayout.html
+func (client *Client) DeleteMPULayout(request *DeleteMPULayoutRequest) (response *DeleteMPULayoutResponse, err error) {
+	response = CreateDeleteMPULayoutResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DeleteMPULayoutWithChan invokes the rtc.DeleteMPULayout API asynchronously
+// api document: https://help.aliyun.com/api/rtc/deletempulayout.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteMPULayoutWithChan(request *DeleteMPULayoutRequest) (<-chan *DeleteMPULayoutResponse, <-chan error) {
+	responseChan := make(chan *DeleteMPULayoutResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DeleteMPULayout(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DeleteMPULayoutWithCallback invokes the rtc.DeleteMPULayout API asynchronously
+// api document: https://help.aliyun.com/api/rtc/deletempulayout.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DeleteMPULayoutWithCallback(request *DeleteMPULayoutRequest, callback func(response *DeleteMPULayoutResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DeleteMPULayoutResponse
+		var err error
+		defer close(result)
+		response, err = client.DeleteMPULayout(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DeleteMPULayoutRequest is the request struct for api DeleteMPULayout
+type DeleteMPULayoutRequest struct {
+	*requests.RpcRequest
+	OwnerId  requests.Integer `position:"Query" name:"OwnerId"`
+	AppId    string           `position:"Query" name:"AppId"`
+	LayoutId requests.Integer `position:"Query" name:"LayoutId"`
+}
+
+// DeleteMPULayoutResponse is the response struct for api DeleteMPULayout
+type DeleteMPULayoutResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateDeleteMPULayoutRequest creates a request to invoke DeleteMPULayout API
+func CreateDeleteMPULayoutRequest() (request *DeleteMPULayoutRequest) {
+	request = &DeleteMPULayoutRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DeleteMPULayout", "rtc", "openAPI")
+	return
+}
+
+// CreateDeleteMPULayoutResponse creates a response to parse from DeleteMPULayout response
+func CreateDeleteMPULayoutResponse() (response *DeleteMPULayoutResponse) {
+	response = &DeleteMPULayoutResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 23 - 9
services/rtc/describe_apps.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,21 +76,35 @@ func (client *Client) DescribeAppsWithCallback(request *DescribeAppsRequest, cal
 // DescribeAppsRequest is the request struct for api DescribeApps
 type DescribeAppsRequest struct {
 	*requests.RpcRequest
-	PageNum  requests.Integer `position:"Query" name:"PageNum"`
-	PageSize requests.Integer `position:"Query" name:"PageSize"`
-	Order    string           `position:"Query" name:"Order"`
 	OwnerId  requests.Integer `position:"Query" name:"OwnerId"`
 	AppId    string           `position:"Query" name:"AppId"`
 	Status   string           `position:"Query" name:"Status"`
+	Order    string           `position:"Query" name:"Order"`
+	PageNum  requests.Integer `position:"Query" name:"PageNum"`
+	PageSize requests.Integer `position:"Query" name:"PageSize"`
 }
 
 // DescribeAppsResponse is the response struct for api DescribeApps
 type DescribeAppsResponse struct {
 	*responses.BaseResponse
-	RequestId string  `json:"RequestId" xml:"RequestId"`
-	TotalNum  int     `json:"TotalNum" xml:"TotalNum"`
-	TotalPage int     `json:"TotalPage" xml:"TotalPage"`
-	AppList   AppList `json:"AppList" xml:"AppList"`
+	RequestId string               `json:"RequestId" xml:"RequestId"`
+	TotalNum  int                  `json:"TotalNum" xml:"TotalNum"`
+	TotalPage int                  `json:"TotalPage" xml:"TotalPage"`
+	AppList   DescribeAppsAppList0 `json:"AppList" xml:"AppList"`
+}
+
+type DescribeAppsAppList0 struct {
+	App []DescribeAppsApp1 `json:"App" xml:"App"`
+}
+
+type DescribeAppsApp1 struct {
+	Status       int      `json:"Status" xml:"Status"`
+	AppId        string   `json:"AppId" xml:"AppId"`
+	AppName      string   `json:"AppName" xml:"AppName"`
+	CreateTime   string   `json:"CreateTime" xml:"CreateTime"`
+	AppType      string   `json:"AppType" xml:"AppType"`
+	BillType     string   `json:"BillType" xml:"BillType"`
+	ServiceAreas []string `json:"ServiceAreas" xml:"ServiceAreas"`
 }
 
 // CreateDescribeAppsRequest creates a request to invoke DescribeApps API

+ 12 - 6
services/rtc/describe_conference_auth_info.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,16 +77,22 @@ func (client *Client) DescribeConferenceAuthInfoWithCallback(request *DescribeCo
 type DescribeConferenceAuthInfoRequest struct {
 	*requests.RpcRequest
 	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
-	ConferenceId string           `position:"Query" name:"ConferenceId"`
 	AppId        string           `position:"Query" name:"AppId"`
+	ConferenceId string           `position:"Query" name:"ConferenceId"`
 }
 
 // DescribeConferenceAuthInfoResponse is the response struct for api DescribeConferenceAuthInfo
 type DescribeConferenceAuthInfoResponse struct {
 	*responses.BaseResponse
-	RequestId    string   `json:"RequestId" xml:"RequestId"`
-	ConferenceId string   `json:"ConferenceId" xml:"ConferenceId"`
-	AuthInfo     AuthInfo `json:"AuthInfo" xml:"AuthInfo"`
+	RequestId    string                              `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                              `json:"ConferenceId" xml:"ConferenceId"`
+	AuthInfo     DescribeConferenceAuthInfoAuthInfo0 `json:"AuthInfo" xml:"AuthInfo"`
+}
+
+type DescribeConferenceAuthInfoAuthInfo0 struct {
+	Key       string `json:"Key" xml:"Key"`
+	Nonce     string `json:"Nonce" xml:"Nonce"`
+	Timestamp int    `json:"Timestamp" xml:"Timestamp"`
 }
 
 // CreateDescribeConferenceAuthInfoRequest creates a request to invoke DescribeConferenceAuthInfo API

+ 16 - 5
services/rtc/describe_real_time_record_detail.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,16 +77,27 @@ func (client *Client) DescribeRealTimeRecordDetailWithCallback(request *Describe
 type DescribeRealTimeRecordDetailRequest struct {
 	*requests.RpcRequest
 	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	RecordId  string           `position:"Query" name:"RecordId"`
 	AppId     string           `position:"Query" name:"AppId"`
 	ChannelId string           `position:"Query" name:"ChannelId"`
+	RecordId  string           `position:"Query" name:"RecordId"`
 }
 
 // DescribeRealTimeRecordDetailResponse is the response struct for api DescribeRealTimeRecordDetail
 type DescribeRealTimeRecordDetailResponse struct {
 	*responses.BaseResponse
-	RequestId         string                                          `json:"RequestId" xml:"RequestId"`
-	RecordDetailInfos RecordDetailInfosInDescribeRealTimeRecordDetail `json:"RecordDetailInfos" xml:"RecordDetailInfos"`
+	RequestId         string                                         `json:"RequestId" xml:"RequestId"`
+	RecordDetailInfos DescribeRealTimeRecordDetailRecordDetailInfos0 `json:"RecordDetailInfos" xml:"RecordDetailInfos"`
+}
+
+type DescribeRealTimeRecordDetailRecordDetailInfos0 struct {
+	RecordDetailInfo []DescribeRealTimeRecordDetailRecordDetailInfo1 `json:"RecordDetailInfo" xml:"RecordDetailInfo"`
+}
+
+type DescribeRealTimeRecordDetailRecordDetailInfo1 struct {
+	Uid        string `json:"Uid" xml:"Uid"`
+	StartTime  string `json:"StartTime" xml:"StartTime"`
+	DeviceType string `json:"DeviceType" xml:"DeviceType"`
+	SDKVersion string `json:"SDKVersion" xml:"SDKVersion"`
 }
 
 // CreateDescribeRealTimeRecordDetailRequest creates a request to invoke DescribeRealTimeRecordDetail API

+ 20 - 6
services/rtc/describe_real_time_record_list.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,16 +76,30 @@ func (client *Client) DescribeRealTimeRecordListWithCallback(request *DescribeRe
 // DescribeRealTimeRecordListRequest is the request struct for api DescribeRealTimeRecordList
 type DescribeRealTimeRecordListRequest struct {
 	*requests.RpcRequest
-	EndTime   string           `position:"Query" name:"EndTime"`
-	StartTime string           `position:"Query" name:"StartTime"`
 	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime string           `position:"Query" name:"StartTime"`
+	EndTime   string           `position:"Query" name:"EndTime"`
 }
 
 // DescribeRealTimeRecordListResponse is the response struct for api DescribeRealTimeRecordList
 type DescribeRealTimeRecordListResponse struct {
 	*responses.BaseResponse
-	RequestId                string                                               `json:"RequestId" xml:"RequestId"`
-	CommunicationRecordInfos CommunicationRecordInfosInDescribeRealTimeRecordList `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"`
+	RequestId                string                                              `json:"RequestId" xml:"RequestId"`
+	CommunicationRecordInfos DescribeRealTimeRecordListCommunicationRecordInfos0 `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"`
+}
+
+type DescribeRealTimeRecordListCommunicationRecordInfos0 struct {
+	CommunicationRecordInfo []DescribeRealTimeRecordListCommunicationRecordInfo1 `json:"CommunicationRecordInfo" xml:"CommunicationRecordInfo"`
+}
+
+type DescribeRealTimeRecordListCommunicationRecordInfo1 struct {
+	ChannelId     string   `json:"ChannelId" xml:"ChannelId"`
+	StartTime     string   `json:"StartTime" xml:"StartTime"`
+	EndTime       string   `json:"EndTime" xml:"EndTime"`
+	OnlineUserCnt int64    `json:"OnlineUserCnt" xml:"OnlineUserCnt"`
+	Status        int      `json:"Status" xml:"Status"`
+	RecordId      string   `json:"RecordId" xml:"RecordId"`
+	CallAreas     []string `json:"CallAreas" xml:"CallAreas"`
 }
 
 // CreateDescribeRealTimeRecordListRequest creates a request to invoke DescribeRealTimeRecordList API

+ 28 - 8
services/rtc/describe_record_detail.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,20 +76,40 @@ func (client *Client) DescribeRecordDetailWithCallback(request *DescribeRecordDe
 // DescribeRecordDetailRequest is the request struct for api DescribeRecordDetail
 type DescribeRecordDetailRequest struct {
 	*requests.RpcRequest
-	StartTime string           `position:"Query" name:"StartTime"`
-	EndTime   string           `position:"Query" name:"EndTime"`
 	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	RecordId  string           `position:"Query" name:"RecordId"`
 	AppId     string           `position:"Query" name:"AppId"`
+	StartTime string           `position:"Query" name:"StartTime"`
+	EndTime   string           `position:"Query" name:"EndTime"`
 	ChannelId string           `position:"Query" name:"ChannelId"`
+	RecordId  string           `position:"Query" name:"RecordId"`
 }
 
 // DescribeRecordDetailResponse is the response struct for api DescribeRecordDetail
 type DescribeRecordDetailResponse struct {
 	*responses.BaseResponse
-	RequestId         string                                  `json:"RequestId" xml:"RequestId"`
-	Duration          Duration                                `json:"Duration" xml:"Duration"`
-	RecordDetailInfos RecordDetailInfosInDescribeRecordDetail `json:"RecordDetailInfos" xml:"RecordDetailInfos"`
+	RequestId         string                                 `json:"RequestId" xml:"RequestId"`
+	RecordDetailInfos DescribeRecordDetailRecordDetailInfos0 `json:"RecordDetailInfos" xml:"RecordDetailInfos"`
+	Duration          DescribeRecordDetailDuration0          `json:"Duration" xml:"Duration"`
+}
+
+type DescribeRecordDetailRecordDetailInfos0 struct {
+	RecordDetailInfo []DescribeRecordDetailRecordDetailInfo1 `json:"RecordDetailInfo" xml:"RecordDetailInfo"`
+}
+
+type DescribeRecordDetailRecordDetailInfo1 struct {
+	Uid        string `json:"Uid" xml:"Uid"`
+	StartTime  string `json:"StartTime" xml:"StartTime"`
+	EndTime    string `json:"EndTime" xml:"EndTime"`
+	DeviceType string `json:"DeviceType" xml:"DeviceType"`
+	SDKVersion string `json:"SDKVersion" xml:"SDKVersion"`
+}
+
+type DescribeRecordDetailDuration0 struct {
+	Audio float32 `json:"Audio" xml:"Audio"`
+	Sd    float32 `json:"Sd" xml:"Sd"`
+	Hd    float32 `json:"Hd" xml:"Hd"`
+	Fhd   float32 `json:"Fhd" xml:"Fhd"`
+	All   float32 `json:"All" xml:"All"`
 }
 
 // CreateDescribeRecordDetailRequest creates a request to invoke DescribeRecordDetail API

+ 27 - 13
services/rtc/describe_record_list.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,26 +76,40 @@ func (client *Client) DescribeRecordListWithCallback(request *DescribeRecordList
 // DescribeRecordListRequest is the request struct for api DescribeRecordList
 type DescribeRecordListRequest struct {
 	*requests.RpcRequest
-	SortType    string           `position:"Query" name:"SortType"`
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	AppId       string           `position:"Query" name:"AppId"`
 	StartTime   string           `position:"Query" name:"StartTime"`
-	ServiceArea string           `position:"Query" name:"ServiceArea"`
-	PageSize    requests.Integer `position:"Query" name:"PageSize"`
-	Id          string           `position:"Query" name:"Id"`
 	EndTime     string           `position:"Query" name:"EndTime"`
-	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
 	IdType      string           `position:"Query" name:"IdType"`
+	Id          string           `position:"Query" name:"Id"`
+	SortType    string           `position:"Query" name:"SortType"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
 	PageNo      requests.Integer `position:"Query" name:"PageNo"`
-	AppId       string           `position:"Query" name:"AppId"`
+	PageSize    requests.Integer `position:"Query" name:"PageSize"`
 }
 
 // DescribeRecordListResponse is the response struct for api DescribeRecordList
 type DescribeRecordListResponse struct {
 	*responses.BaseResponse
-	RequestId                string                                       `json:"RequestId" xml:"RequestId"`
-	PageSize                 int                                          `json:"PageSize" xml:"PageSize"`
-	PageNo                   int                                          `json:"PageNo" xml:"PageNo"`
-	TotalCnt                 int                                          `json:"TotalCnt" xml:"TotalCnt"`
-	CommunicationRecordInfos CommunicationRecordInfosInDescribeRecordList `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"`
+	RequestId                string                                      `json:"RequestId" xml:"RequestId"`
+	PageSize                 int64                                       `json:"PageSize" xml:"PageSize"`
+	PageNo                   int64                                       `json:"PageNo" xml:"PageNo"`
+	TotalCnt                 int64                                       `json:"TotalCnt" xml:"TotalCnt"`
+	CommunicationRecordInfos DescribeRecordListCommunicationRecordInfos0 `json:"CommunicationRecordInfos" xml:"CommunicationRecordInfos"`
+}
+
+type DescribeRecordListCommunicationRecordInfos0 struct {
+	CommunicationRecordInfo []DescribeRecordListCommunicationRecordInfo1 `json:"CommunicationRecordInfo" xml:"CommunicationRecordInfo"`
+}
+
+type DescribeRecordListCommunicationRecordInfo1 struct {
+	ChannelId    string   `json:"ChannelId" xml:"ChannelId"`
+	StartTime    string   `json:"StartTime" xml:"StartTime"`
+	EndTime      string   `json:"EndTime" xml:"EndTime"`
+	TotalUserCnt int64    `json:"TotalUserCnt" xml:"TotalUserCnt"`
+	Status       bool     `json:"Status" xml:"Status"`
+	RecordId     string   `json:"RecordId" xml:"RecordId"`
+	CallAreas    []string `json:"CallAreas" xml:"CallAreas"`
 }
 
 // CreateDescribeRecordListRequest creates a request to invoke DescribeRecordList API

+ 118 - 0
services/rtc/describe_rtc_channel_cnt_data.go

@@ -0,0 +1,118 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRtcChannelCntData invokes the rtc.DescribeRtcChannelCntData API synchronously
+// api document: https://help.aliyun.com/api/rtc/describertcchannelcntdata.html
+func (client *Client) DescribeRtcChannelCntData(request *DescribeRtcChannelCntDataRequest) (response *DescribeRtcChannelCntDataResponse, err error) {
+	response = CreateDescribeRtcChannelCntDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRtcChannelCntDataWithChan invokes the rtc.DescribeRtcChannelCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcchannelcntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcChannelCntDataWithChan(request *DescribeRtcChannelCntDataRequest) (<-chan *DescribeRtcChannelCntDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeRtcChannelCntDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRtcChannelCntData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRtcChannelCntDataWithCallback invokes the rtc.DescribeRtcChannelCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcchannelcntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcChannelCntDataWithCallback(request *DescribeRtcChannelCntDataRequest, callback func(response *DescribeRtcChannelCntDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRtcChannelCntDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRtcChannelCntData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRtcChannelCntDataRequest is the request struct for api DescribeRtcChannelCntData
+type DescribeRtcChannelCntDataRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	AppId       string           `position:"Query" name:"AppId"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
+	Interval    string           `position:"Query" name:"Interval"`
+}
+
+// DescribeRtcChannelCntDataResponse is the response struct for api DescribeRtcChannelCntData
+type DescribeRtcChannelCntDataResponse struct {
+	*responses.BaseResponse
+	RequestId                 string                                              `json:"RequestId" xml:"RequestId"`
+	ChannelCntDataPerInterval DescribeRtcChannelCntDataChannelCntDataPerInterval0 `json:"ChannelCntDataPerInterval" xml:"ChannelCntDataPerInterval"`
+}
+
+type DescribeRtcChannelCntDataChannelCntDataPerInterval0 struct {
+	ChannelCntModule []DescribeRtcChannelCntDataChannelCntModule1 `json:"ChannelCntModule" xml:"ChannelCntModule"`
+}
+
+type DescribeRtcChannelCntDataChannelCntModule1 struct {
+	TimeStamp        string `json:"TimeStamp" xml:"TimeStamp"`
+	ActiveChannelCnt int64  `json:"ActiveChannelCnt" xml:"ActiveChannelCnt"`
+}
+
+// CreateDescribeRtcChannelCntDataRequest creates a request to invoke DescribeRtcChannelCntData API
+func CreateDescribeRtcChannelCntDataRequest() (request *DescribeRtcChannelCntDataRequest) {
+	request = &DescribeRtcChannelCntDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRtcChannelCntData", "rtc", "openAPI")
+	return
+}
+
+// CreateDescribeRtcChannelCntDataResponse creates a response to parse from DescribeRtcChannelCntData response
+func CreateDescribeRtcChannelCntDataResponse() (response *DescribeRtcChannelCntDataResponse) {
+	response = &DescribeRtcChannelCntDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 123 - 0
services/rtc/describe_rtc_duration_data.go

@@ -0,0 +1,123 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRtcDurationData invokes the rtc.DescribeRtcDurationData API synchronously
+// api document: https://help.aliyun.com/api/rtc/describertcdurationdata.html
+func (client *Client) DescribeRtcDurationData(request *DescribeRtcDurationDataRequest) (response *DescribeRtcDurationDataResponse, err error) {
+	response = CreateDescribeRtcDurationDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRtcDurationDataWithChan invokes the rtc.DescribeRtcDurationData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcdurationdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcDurationDataWithChan(request *DescribeRtcDurationDataRequest) (<-chan *DescribeRtcDurationDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeRtcDurationDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRtcDurationData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRtcDurationDataWithCallback invokes the rtc.DescribeRtcDurationData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcdurationdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcDurationDataWithCallback(request *DescribeRtcDurationDataRequest, callback func(response *DescribeRtcDurationDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRtcDurationDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRtcDurationData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRtcDurationDataRequest is the request struct for api DescribeRtcDurationData
+type DescribeRtcDurationDataRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	AppId       string           `position:"Query" name:"AppId"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
+	Interval    string           `position:"Query" name:"Interval"`
+}
+
+// DescribeRtcDurationDataResponse is the response struct for api DescribeRtcDurationData
+type DescribeRtcDurationDataResponse struct {
+	*responses.BaseResponse
+	RequestId               string                                          `json:"RequestId" xml:"RequestId"`
+	DurationDataPerInterval DescribeRtcDurationDataDurationDataPerInterval0 `json:"DurationDataPerInterval" xml:"DurationDataPerInterval"`
+}
+
+type DescribeRtcDurationDataDurationDataPerInterval0 struct {
+	DurationModule []DescribeRtcDurationDataDurationModule1 `json:"DurationModule" xml:"DurationModule"`
+}
+
+type DescribeRtcDurationDataDurationModule1 struct {
+	TimeStamp       string `json:"TimeStamp" xml:"TimeStamp"`
+	TotalDuration   int64  `json:"TotalDuration" xml:"TotalDuration"`
+	AudioDuration   int64  `json:"AudioDuration" xml:"AudioDuration"`
+	V360Duration    int64  `json:"V360Duration" xml:"V360Duration"`
+	V720Duration    int64  `json:"V720Duration" xml:"V720Duration"`
+	V1080Duration   int64  `json:"V1080Duration" xml:"V1080Duration"`
+	ContentDuration int64  `json:"ContentDuration" xml:"ContentDuration"`
+}
+
+// CreateDescribeRtcDurationDataRequest creates a request to invoke DescribeRtcDurationData API
+func CreateDescribeRtcDurationDataRequest() (request *DescribeRtcDurationDataRequest) {
+	request = &DescribeRtcDurationDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRtcDurationData", "rtc", "openAPI")
+	return
+}
+
+// CreateDescribeRtcDurationDataResponse creates a response to parse from DescribeRtcDurationData response
+func CreateDescribeRtcDurationDataResponse() (response *DescribeRtcDurationDataResponse) {
+	response = &DescribeRtcDurationDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 119 - 0
services/rtc/describe_rtc_peak_channel_cnt_data.go

@@ -0,0 +1,119 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRtcPeakChannelCntData invokes the rtc.DescribeRtcPeakChannelCntData API synchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakchannelcntdata.html
+func (client *Client) DescribeRtcPeakChannelCntData(request *DescribeRtcPeakChannelCntDataRequest) (response *DescribeRtcPeakChannelCntDataResponse, err error) {
+	response = CreateDescribeRtcPeakChannelCntDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRtcPeakChannelCntDataWithChan invokes the rtc.DescribeRtcPeakChannelCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakchannelcntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcPeakChannelCntDataWithChan(request *DescribeRtcPeakChannelCntDataRequest) (<-chan *DescribeRtcPeakChannelCntDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeRtcPeakChannelCntDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRtcPeakChannelCntData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRtcPeakChannelCntDataWithCallback invokes the rtc.DescribeRtcPeakChannelCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakchannelcntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcPeakChannelCntDataWithCallback(request *DescribeRtcPeakChannelCntDataRequest, callback func(response *DescribeRtcPeakChannelCntDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRtcPeakChannelCntDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRtcPeakChannelCntData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRtcPeakChannelCntDataRequest is the request struct for api DescribeRtcPeakChannelCntData
+type DescribeRtcPeakChannelCntDataRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	AppId       string           `position:"Query" name:"AppId"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
+	Interval    string           `position:"Query" name:"Interval"`
+}
+
+// DescribeRtcPeakChannelCntDataResponse is the response struct for api DescribeRtcPeakChannelCntData
+type DescribeRtcPeakChannelCntDataResponse struct {
+	*responses.BaseResponse
+	RequestId                     string                                                      `json:"RequestId" xml:"RequestId"`
+	PeakChannelCntDataPerInterval DescribeRtcPeakChannelCntDataPeakChannelCntDataPerInterval0 `json:"PeakChannelCntDataPerInterval" xml:"PeakChannelCntDataPerInterval"`
+}
+
+type DescribeRtcPeakChannelCntDataPeakChannelCntDataPerInterval0 struct {
+	PeakChannelCntModule []DescribeRtcPeakChannelCntDataPeakChannelCntModule1 `json:"PeakChannelCntModule" xml:"PeakChannelCntModule"`
+}
+
+type DescribeRtcPeakChannelCntDataPeakChannelCntModule1 struct {
+	TimeStamp             string `json:"TimeStamp" xml:"TimeStamp"`
+	ActiveChannelPeak     int64  `json:"ActiveChannelPeak" xml:"ActiveChannelPeak"`
+	ActiveChannelPeakTime string `json:"ActiveChannelPeakTime" xml:"ActiveChannelPeakTime"`
+}
+
+// CreateDescribeRtcPeakChannelCntDataRequest creates a request to invoke DescribeRtcPeakChannelCntData API
+func CreateDescribeRtcPeakChannelCntDataRequest() (request *DescribeRtcPeakChannelCntDataRequest) {
+	request = &DescribeRtcPeakChannelCntDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRtcPeakChannelCntData", "rtc", "openAPI")
+	return
+}
+
+// CreateDescribeRtcPeakChannelCntDataResponse creates a response to parse from DescribeRtcPeakChannelCntData response
+func CreateDescribeRtcPeakChannelCntDataResponse() (response *DescribeRtcPeakChannelCntDataResponse) {
+	response = &DescribeRtcPeakChannelCntDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 119 - 0
services/rtc/describe_rtc_peak_user_cnt_data.go

@@ -0,0 +1,119 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRtcPeakUserCntData invokes the rtc.DescribeRtcPeakUserCntData API synchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakusercntdata.html
+func (client *Client) DescribeRtcPeakUserCntData(request *DescribeRtcPeakUserCntDataRequest) (response *DescribeRtcPeakUserCntDataResponse, err error) {
+	response = CreateDescribeRtcPeakUserCntDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRtcPeakUserCntDataWithChan invokes the rtc.DescribeRtcPeakUserCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakusercntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcPeakUserCntDataWithChan(request *DescribeRtcPeakUserCntDataRequest) (<-chan *DescribeRtcPeakUserCntDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeRtcPeakUserCntDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRtcPeakUserCntData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRtcPeakUserCntDataWithCallback invokes the rtc.DescribeRtcPeakUserCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcpeakusercntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcPeakUserCntDataWithCallback(request *DescribeRtcPeakUserCntDataRequest, callback func(response *DescribeRtcPeakUserCntDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRtcPeakUserCntDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRtcPeakUserCntData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRtcPeakUserCntDataRequest is the request struct for api DescribeRtcPeakUserCntData
+type DescribeRtcPeakUserCntDataRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	AppId       string           `position:"Query" name:"AppId"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
+	Interval    string           `position:"Query" name:"Interval"`
+}
+
+// DescribeRtcPeakUserCntDataResponse is the response struct for api DescribeRtcPeakUserCntData
+type DescribeRtcPeakUserCntDataResponse struct {
+	*responses.BaseResponse
+	RequestId                  string                                                `json:"RequestId" xml:"RequestId"`
+	PeakUserCntDataPerInterval DescribeRtcPeakUserCntDataPeakUserCntDataPerInterval0 `json:"PeakUserCntDataPerInterval" xml:"PeakUserCntDataPerInterval"`
+}
+
+type DescribeRtcPeakUserCntDataPeakUserCntDataPerInterval0 struct {
+	PeakUserCntModule []DescribeRtcPeakUserCntDataPeakUserCntModule1 `json:"PeakUserCntModule" xml:"PeakUserCntModule"`
+}
+
+type DescribeRtcPeakUserCntDataPeakUserCntModule1 struct {
+	TimeStamp          string `json:"TimeStamp" xml:"TimeStamp"`
+	ActiveUserPeak     int64  `json:"ActiveUserPeak" xml:"ActiveUserPeak"`
+	ActiveUserPeakTime string `json:"ActiveUserPeakTime" xml:"ActiveUserPeakTime"`
+}
+
+// CreateDescribeRtcPeakUserCntDataRequest creates a request to invoke DescribeRtcPeakUserCntData API
+func CreateDescribeRtcPeakUserCntDataRequest() (request *DescribeRtcPeakUserCntDataRequest) {
+	request = &DescribeRtcPeakUserCntDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRtcPeakUserCntData", "rtc", "openAPI")
+	return
+}
+
+// CreateDescribeRtcPeakUserCntDataResponse creates a response to parse from DescribeRtcPeakUserCntData response
+func CreateDescribeRtcPeakUserCntDataResponse() (response *DescribeRtcPeakUserCntDataResponse) {
+	response = &DescribeRtcPeakUserCntDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 118 - 0
services/rtc/describe_rtc_user_cnt_data.go

@@ -0,0 +1,118 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeRtcUserCntData invokes the rtc.DescribeRtcUserCntData API synchronously
+// api document: https://help.aliyun.com/api/rtc/describertcusercntdata.html
+func (client *Client) DescribeRtcUserCntData(request *DescribeRtcUserCntDataRequest) (response *DescribeRtcUserCntDataResponse, err error) {
+	response = CreateDescribeRtcUserCntDataResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeRtcUserCntDataWithChan invokes the rtc.DescribeRtcUserCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcusercntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcUserCntDataWithChan(request *DescribeRtcUserCntDataRequest) (<-chan *DescribeRtcUserCntDataResponse, <-chan error) {
+	responseChan := make(chan *DescribeRtcUserCntDataResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeRtcUserCntData(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeRtcUserCntDataWithCallback invokes the rtc.DescribeRtcUserCntData API asynchronously
+// api document: https://help.aliyun.com/api/rtc/describertcusercntdata.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeRtcUserCntDataWithCallback(request *DescribeRtcUserCntDataRequest, callback func(response *DescribeRtcUserCntDataResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeRtcUserCntDataResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeRtcUserCntData(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeRtcUserCntDataRequest is the request struct for api DescribeRtcUserCntData
+type DescribeRtcUserCntDataRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	AppId       string           `position:"Query" name:"AppId"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
+	Interval    string           `position:"Query" name:"Interval"`
+}
+
+// DescribeRtcUserCntDataResponse is the response struct for api DescribeRtcUserCntData
+type DescribeRtcUserCntDataResponse struct {
+	*responses.BaseResponse
+	RequestId              string                                        `json:"RequestId" xml:"RequestId"`
+	UserCntDataPerInterval DescribeRtcUserCntDataUserCntDataPerInterval0 `json:"UserCntDataPerInterval" xml:"UserCntDataPerInterval"`
+}
+
+type DescribeRtcUserCntDataUserCntDataPerInterval0 struct {
+	UserCntModule []DescribeRtcUserCntDataUserCntModule1 `json:"UserCntModule" xml:"UserCntModule"`
+}
+
+type DescribeRtcUserCntDataUserCntModule1 struct {
+	TimeStamp     string `json:"TimeStamp" xml:"TimeStamp"`
+	ActiveUserCnt int64  `json:"ActiveUserCnt" xml:"ActiveUserCnt"`
+}
+
+// CreateDescribeRtcUserCntDataRequest creates a request to invoke DescribeRtcUserCntData API
+func CreateDescribeRtcUserCntDataRequest() (request *DescribeRtcUserCntDataRequest) {
+	request = &DescribeRtcUserCntDataRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "DescribeRtcUserCntData", "rtc", "openAPI")
+	return
+}
+
+// CreateDescribeRtcUserCntDataResponse creates a response to parse from DescribeRtcUserCntData response
+func CreateDescribeRtcUserCntDataResponse() (response *DescribeRtcUserCntDataResponse) {
+	response = &DescribeRtcUserCntDataResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 52 - 9
services/rtc/describe_statis.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,21 +76,64 @@ func (client *Client) DescribeStatisWithCallback(request *DescribeStatisRequest,
 // DescribeStatisRequest is the request struct for api DescribeStatis
 type DescribeStatisRequest struct {
 	*requests.RpcRequest
-	SortType    string           `position:"Query" name:"SortType"`
-	StartTime   string           `position:"Query" name:"StartTime"`
-	DataType    string           `position:"Query" name:"DataType"`
-	ServiceArea string           `position:"Query" name:"ServiceArea"`
-	EndTime     string           `position:"Query" name:"EndTime"`
 	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
 	AppId       string           `position:"Query" name:"AppId"`
+	StartTime   string           `position:"Query" name:"StartTime"`
+	EndTime     string           `position:"Query" name:"EndTime"`
+	SortType    string           `position:"Query" name:"SortType"`
+	ServiceArea string           `position:"Query" name:"ServiceArea"`
 	Interval    string           `position:"Query" name:"Interval"`
+	DataType    string           `position:"Query" name:"DataType"`
 }
 
 // DescribeStatisResponse is the response struct for api DescribeStatis
 type DescribeStatisResponse struct {
 	*responses.BaseResponse
-	RequestId   string      `json:"RequestId" xml:"RequestId"`
-	StatisInfos StatisInfos `json:"StatisInfos" xml:"StatisInfos"`
+	RequestId   string                     `json:"RequestId" xml:"RequestId"`
+	StatisInfos DescribeStatisStatisInfos0 `json:"StatisInfos" xml:"StatisInfos"`
+}
+
+type DescribeStatisStatisInfos0 struct {
+	StatisInfo []DescribeStatisStatisInfo1 `json:"StatisInfo" xml:"StatisInfo"`
+}
+
+type DescribeStatisStatisInfo1 struct {
+	Time          string                         `json:"Time" xml:"Time"`
+	Duration      []DescribeStatisDuration1      `json:"Duration" xml:"Duration"`
+	UserStatis    []DescribeStatisUserStatis1    `json:"UserStatis" xml:"UserStatis"`
+	ChannelStatis []DescribeStatisChannelStatis1 `json:"ChannelStatis" xml:"ChannelStatis"`
+}
+
+type DescribeStatisDuration1 struct {
+	Duration []DescribeStatisDuration2 `json:"Duration" xml:"Duration"`
+}
+
+type DescribeStatisDuration2 struct {
+	TotalDuration float32 `json:"TotalDuration" xml:"TotalDuration"`
+	AudioDuration float32 `json:"AudioDuration" xml:"AudioDuration"`
+	SdDuration    float32 `json:"SdDuration" xml:"SdDuration"`
+	HdDuration    float32 `json:"HdDuration" xml:"HdDuration"`
+	FhdDuration   float32 `json:"FhdDuration" xml:"FhdDuration"`
+}
+
+type DescribeStatisUserStatis1 struct {
+	UserStatis []DescribeStatisUserStatis2 `json:"UserStatis" xml:"UserStatis"`
+}
+
+type DescribeStatisUserStatis2 struct {
+	ActiveUserCnt      int64  `json:"ActiveUserCnt" xml:"ActiveUserCnt"`
+	ConSessionPeak     int64  `json:"ConSessionPeak" xml:"ConSessionPeak"`
+	ConSessionPeakTime string `json:"ConSessionPeakTime" xml:"ConSessionPeakTime"`
+}
+
+type DescribeStatisChannelStatis1 struct {
+	ChannelStatis []DescribeStatisChannelStatis2 `json:"ChannelStatis" xml:"ChannelStatis"`
+}
+
+type DescribeStatisChannelStatis2 struct {
+	AccChannelCnt      int64  `json:"AccChannelCnt" xml:"AccChannelCnt"`
+	ConChannelPeak     int64  `json:"ConChannelPeak" xml:"ConChannelPeak"`
+	ConChannelPeakTime string `json:"ConChannelPeakTime" xml:"ConChannelPeakTime"`
 }
 
 // CreateDescribeStatisRequest creates a request to invoke DescribeStatis API

+ 0 - 105
services/rtc/get_all_template.go

@@ -1,105 +0,0 @@
-package rtc
-
-//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"
-)
-
-// GetAllTemplate invokes the rtc.GetAllTemplate API synchronously
-// api document: https://help.aliyun.com/api/rtc/getalltemplate.html
-func (client *Client) GetAllTemplate(request *GetAllTemplateRequest) (response *GetAllTemplateResponse, err error) {
-	response = CreateGetAllTemplateResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetAllTemplateWithChan invokes the rtc.GetAllTemplate API asynchronously
-// api document: https://help.aliyun.com/api/rtc/getalltemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetAllTemplateWithChan(request *GetAllTemplateRequest) (<-chan *GetAllTemplateResponse, <-chan error) {
-	responseChan := make(chan *GetAllTemplateResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetAllTemplate(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetAllTemplateWithCallback invokes the rtc.GetAllTemplate API asynchronously
-// api document: https://help.aliyun.com/api/rtc/getalltemplate.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetAllTemplateWithCallback(request *GetAllTemplateRequest, callback func(response *GetAllTemplateResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetAllTemplateResponse
-		var err error
-		defer close(result)
-		response, err = client.GetAllTemplate(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetAllTemplateRequest is the request struct for api GetAllTemplate
-type GetAllTemplateRequest struct {
-	*requests.RpcRequest
-	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
-	AppId   string           `position:"Query" name:"AppId"`
-}
-
-// GetAllTemplateResponse is the response struct for api GetAllTemplate
-type GetAllTemplateResponse struct {
-	*responses.BaseResponse
-	RequestId   string      `json:"RequestId" xml:"RequestId"`
-	TemplateIds TemplateIds `json:"TemplateIds" xml:"TemplateIds"`
-}
-
-// CreateGetAllTemplateRequest creates a request to invoke GetAllTemplate API
-func CreateGetAllTemplateRequest() (request *GetAllTemplateRequest) {
-	request = &GetAllTemplateRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "GetAllTemplate", "rtc", "openAPI")
-	return
-}
-
-// CreateGetAllTemplateResponse creates a response to parse from GetAllTemplate response
-func CreateGetAllTemplateResponse() (response *GetAllTemplateResponse) {
-	response = &GetAllTemplateResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 108
services/rtc/get_task_param.go

@@ -1,108 +0,0 @@
-package rtc
-
-//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"
-)
-
-// GetTaskParam invokes the rtc.GetTaskParam API synchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskparam.html
-func (client *Client) GetTaskParam(request *GetTaskParamRequest) (response *GetTaskParamResponse, err error) {
-	response = CreateGetTaskParamResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTaskParamWithChan invokes the rtc.GetTaskParam API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskparam.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTaskParamWithChan(request *GetTaskParamRequest) (<-chan *GetTaskParamResponse, <-chan error) {
-	responseChan := make(chan *GetTaskParamResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTaskParam(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTaskParamWithCallback invokes the rtc.GetTaskParam API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskparam.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTaskParamWithCallback(request *GetTaskParamRequest, callback func(response *GetTaskParamResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTaskParamResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTaskParam(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTaskParamRequest is the request struct for api GetTaskParam
-type GetTaskParamRequest struct {
-	*requests.RpcRequest
-	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
-	AppId   string           `position:"Query" name:"AppId"`
-	TaskId  requests.Integer `position:"Query" name:"TaskId"`
-}
-
-// GetTaskParamResponse is the response struct for api GetTaskParam
-type GetTaskParamResponse struct {
-	*responses.BaseResponse
-	RequestId  string  `json:"RequestId" xml:"RequestId"`
-	ChannelId  string  `json:"ChannelId" xml:"ChannelId"`
-	TemplateId int     `json:"TemplateId" xml:"TemplateId"`
-	MixPane    MixPane `json:"MixPane" xml:"MixPane"`
-}
-
-// CreateGetTaskParamRequest creates a request to invoke GetTaskParam API
-func CreateGetTaskParamRequest() (request *GetTaskParamRequest) {
-	request = &GetTaskParamRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "GetTaskParam", "rtc", "openAPI")
-	return
-}
-
-// CreateGetTaskParamResponse creates a response to parse from GetTaskParam response
-func CreateGetTaskParamResponse() (response *GetTaskParamResponse) {
-	response = &GetTaskParamResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 107
services/rtc/get_task_status.go

@@ -1,107 +0,0 @@
-package rtc
-
-//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"
-)
-
-// GetTaskStatus invokes the rtc.GetTaskStatus API synchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskstatus.html
-func (client *Client) GetTaskStatus(request *GetTaskStatusRequest) (response *GetTaskStatusResponse, err error) {
-	response = CreateGetTaskStatusResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTaskStatusWithChan invokes the rtc.GetTaskStatus API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTaskStatusWithChan(request *GetTaskStatusRequest) (<-chan *GetTaskStatusResponse, <-chan error) {
-	responseChan := make(chan *GetTaskStatusResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTaskStatus(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTaskStatusWithCallback invokes the rtc.GetTaskStatus API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettaskstatus.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTaskStatusWithCallback(request *GetTaskStatusRequest, callback func(response *GetTaskStatusResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTaskStatusResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTaskStatus(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTaskStatusRequest is the request struct for api GetTaskStatus
-type GetTaskStatusRequest struct {
-	*requests.RpcRequest
-	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	AppId     string           `position:"Query" name:"AppId"`
-	ChannelId string           `position:"Query" name:"ChannelId"`
-	TaskId    requests.Integer `position:"Query" name:"TaskId"`
-}
-
-// GetTaskStatusResponse is the response struct for api GetTaskStatus
-type GetTaskStatusResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	Status    int    `json:"Status" xml:"Status"`
-}
-
-// CreateGetTaskStatusRequest creates a request to invoke GetTaskStatus API
-func CreateGetTaskStatusRequest() (request *GetTaskStatusRequest) {
-	request = &GetTaskStatusRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "GetTaskStatus", "rtc", "openAPI")
-	return
-}
-
-// CreateGetTaskStatusResponse creates a response to parse from GetTaskStatus response
-func CreateGetTaskStatusResponse() (response *GetTaskStatusResponse) {
-	response = &GetTaskStatusResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 0 - 113
services/rtc/get_template_info.go

@@ -1,113 +0,0 @@
-package rtc
-
-//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"
-)
-
-// GetTemplateInfo invokes the rtc.GetTemplateInfo API synchronously
-// api document: https://help.aliyun.com/api/rtc/gettemplateinfo.html
-func (client *Client) GetTemplateInfo(request *GetTemplateInfoRequest) (response *GetTemplateInfoResponse, err error) {
-	response = CreateGetTemplateInfoResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// GetTemplateInfoWithChan invokes the rtc.GetTemplateInfo API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettemplateinfo.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTemplateInfoWithChan(request *GetTemplateInfoRequest) (<-chan *GetTemplateInfoResponse, <-chan error) {
-	responseChan := make(chan *GetTemplateInfoResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.GetTemplateInfo(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// GetTemplateInfoWithCallback invokes the rtc.GetTemplateInfo API asynchronously
-// api document: https://help.aliyun.com/api/rtc/gettemplateinfo.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) GetTemplateInfoWithCallback(request *GetTemplateInfoRequest, callback func(response *GetTemplateInfoResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *GetTemplateInfoResponse
-		var err error
-		defer close(result)
-		response, err = client.GetTemplateInfo(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// GetTemplateInfoRequest is the request struct for api GetTemplateInfo
-type GetTemplateInfoRequest struct {
-	*requests.RpcRequest
-	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
-	TemplateId requests.Integer `position:"Query" name:"TemplateId"`
-	AppId      string           `position:"Query" name:"AppId"`
-}
-
-// GetTemplateInfoResponse is the response struct for api GetTemplateInfo
-type GetTemplateInfoResponse struct {
-	*responses.BaseResponse
-	RequestId         string       `json:"RequestId" xml:"RequestId"`
-	MixMode           int          `json:"MixMode" xml:"MixMode"`
-	ServiceMode       int          `json:"ServiceMode" xml:"ServiceMode"`
-	CallBack          string       `json:"CallBack" xml:"CallBack"`
-	MaxMixStreamCount int          `json:"MaxMixStreamCount" xml:"MaxMixStreamCount"`
-	MediaConfig       int          `json:"MediaConfig" xml:"MediaConfig"`
-	LayOut            LayOut       `json:"LayOut" xml:"LayOut"`
-	RecordConfig      RecordConfig `json:"RecordConfig" xml:"RecordConfig"`
-	LiveConfig        LiveConfig   `json:"LiveConfig" xml:"LiveConfig"`
-}
-
-// CreateGetTemplateInfoRequest creates a request to invoke GetTemplateInfo API
-func CreateGetTemplateInfoRequest() (request *GetTemplateInfoRequest) {
-	request = &GetTemplateInfoRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "GetTemplateInfo", "rtc", "openAPI")
-	return
-}
-
-// CreateGetTemplateInfoResponse creates a response to parse from GetTemplateInfo response
-func CreateGetTemplateInfoResponse() (response *GetTemplateInfoResponse) {
-	response = &GetTemplateInfoResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}

+ 105 - 0
services/rtc/getmpu_all_layout_id.go

@@ -0,0 +1,105 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetMPUAllLayoutId invokes the rtc.GetMPUAllLayoutId API synchronously
+// api document: https://help.aliyun.com/api/rtc/getmpualllayoutid.html
+func (client *Client) GetMPUAllLayoutId(request *GetMPUAllLayoutIdRequest) (response *GetMPUAllLayoutIdResponse, err error) {
+	response = CreateGetMPUAllLayoutIdResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMPUAllLayoutIdWithChan invokes the rtc.GetMPUAllLayoutId API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmpualllayoutid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUAllLayoutIdWithChan(request *GetMPUAllLayoutIdRequest) (<-chan *GetMPUAllLayoutIdResponse, <-chan error) {
+	responseChan := make(chan *GetMPUAllLayoutIdResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMPUAllLayoutId(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMPUAllLayoutIdWithCallback invokes the rtc.GetMPUAllLayoutId API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmpualllayoutid.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUAllLayoutIdWithCallback(request *GetMPUAllLayoutIdRequest, callback func(response *GetMPUAllLayoutIdResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMPUAllLayoutIdResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMPUAllLayoutId(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMPUAllLayoutIdRequest is the request struct for api GetMPUAllLayoutId
+type GetMPUAllLayoutIdRequest struct {
+	*requests.RpcRequest
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+	AppId   string           `position:"Query" name:"AppId"`
+}
+
+// GetMPUAllLayoutIdResponse is the response struct for api GetMPUAllLayoutId
+type GetMPUAllLayoutIdResponse struct {
+	*responses.BaseResponse
+	RequestId string   `json:"RequestId" xml:"RequestId"`
+	LayoutIds []string `json:"LayoutIds" xml:"LayoutIds"`
+}
+
+// CreateGetMPUAllLayoutIdRequest creates a request to invoke GetMPUAllLayoutId API
+func CreateGetMPUAllLayoutIdRequest() (request *GetMPUAllLayoutIdRequest) {
+	request = &GetMPUAllLayoutIdRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "GetMPUAllLayoutId", "rtc", "openAPI")
+	return
+}
+
+// CreateGetMPUAllLayoutIdResponse creates a response to parse from GetMPUAllLayoutId response
+func CreateGetMPUAllLayoutIdResponse() (response *GetMPUAllLayoutIdResponse) {
+	response = &GetMPUAllLayoutIdResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 127 - 0
services/rtc/getmpu_layout_info.go

@@ -0,0 +1,127 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetMPULayoutInfo invokes the rtc.GetMPULayoutInfo API synchronously
+// api document: https://help.aliyun.com/api/rtc/getmpulayoutinfo.html
+func (client *Client) GetMPULayoutInfo(request *GetMPULayoutInfoRequest) (response *GetMPULayoutInfoResponse, err error) {
+	response = CreateGetMPULayoutInfoResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMPULayoutInfoWithChan invokes the rtc.GetMPULayoutInfo API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmpulayoutinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPULayoutInfoWithChan(request *GetMPULayoutInfoRequest) (<-chan *GetMPULayoutInfoResponse, <-chan error) {
+	responseChan := make(chan *GetMPULayoutInfoResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMPULayoutInfo(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMPULayoutInfoWithCallback invokes the rtc.GetMPULayoutInfo API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmpulayoutinfo.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPULayoutInfoWithCallback(request *GetMPULayoutInfoRequest, callback func(response *GetMPULayoutInfoResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMPULayoutInfoResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMPULayoutInfo(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMPULayoutInfoRequest is the request struct for api GetMPULayoutInfo
+type GetMPULayoutInfoRequest struct {
+	*requests.RpcRequest
+	OwnerId  requests.Integer `position:"Query" name:"OwnerId"`
+	AppId    string           `position:"Query" name:"AppId"`
+	LayoutId requests.Integer `position:"Query" name:"LayoutId"`
+}
+
+// GetMPULayoutInfoResponse is the response struct for api GetMPULayoutInfo
+type GetMPULayoutInfoResponse struct {
+	*responses.BaseResponse
+	RequestId string                  `json:"RequestId" xml:"RequestId"`
+	Layout    GetMPULayoutInfoLayout0 `json:"Layout" xml:"Layout"`
+}
+
+type GetMPULayoutInfoLayout0 struct {
+	LayoutId      int64                    `json:"LayoutId" xml:"LayoutId"`
+	CropMode      int                      `json:"CropMode" xml:"CropMode"`
+	AudioMixCount int                      `json:"AudioMixCount" xml:"AudioMixCount"`
+	Panes         []GetMPULayoutInfoPanes1 `json:"Panes" xml:"Panes"`
+}
+
+type GetMPULayoutInfoPanes1 struct {
+	Panes []GetMPULayoutInfoPanes2 `json:"Panes" xml:"Panes"`
+}
+
+type GetMPULayoutInfoPanes2 struct {
+	PaneId    int     `json:"PaneId" xml:"PaneId"`
+	MajorPane int     `json:"MajorPane" xml:"MajorPane"`
+	X         float32 `json:"X" xml:"X"`
+	Y         float32 `json:"Y" xml:"Y"`
+	Width     float32 `json:"Width" xml:"Width"`
+	Height    float32 `json:"Height" xml:"Height"`
+	ZOrder    int     `json:"ZOrder" xml:"ZOrder"`
+}
+
+// CreateGetMPULayoutInfoRequest creates a request to invoke GetMPULayoutInfo API
+func CreateGetMPULayoutInfoRequest() (request *GetMPULayoutInfoRequest) {
+	request = &GetMPULayoutInfoRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "GetMPULayoutInfo", "rtc", "openAPI")
+	return
+}
+
+// CreateGetMPULayoutInfoResponse creates a response to parse from GetMPULayoutInfo response
+func CreateGetMPULayoutInfoResponse() (response *GetMPULayoutInfoResponse) {
+	response = &GetMPULayoutInfoResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 126 - 0
services/rtc/getmpu_task_param.go

@@ -0,0 +1,126 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetMPUTaskParam invokes the rtc.GetMPUTaskParam API synchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskparam.html
+func (client *Client) GetMPUTaskParam(request *GetMPUTaskParamRequest) (response *GetMPUTaskParamResponse, err error) {
+	response = CreateGetMPUTaskParamResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMPUTaskParamWithChan invokes the rtc.GetMPUTaskParam API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskparam.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUTaskParamWithChan(request *GetMPUTaskParamRequest) (<-chan *GetMPUTaskParamResponse, <-chan error) {
+	responseChan := make(chan *GetMPUTaskParamResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMPUTaskParam(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMPUTaskParamWithCallback invokes the rtc.GetMPUTaskParam API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskparam.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUTaskParamWithCallback(request *GetMPUTaskParamRequest, callback func(response *GetMPUTaskParamResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMPUTaskParamResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMPUTaskParam(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMPUTaskParamRequest is the request struct for api GetMPUTaskParam
+type GetMPUTaskParamRequest struct {
+	*requests.RpcRequest
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+	AppId   string           `position:"Query" name:"AppId"`
+	TaskId  string           `position:"Query" name:"TaskId"`
+}
+
+// GetMPUTaskParamResponse is the response struct for api GetMPUTaskParam
+type GetMPUTaskParamResponse struct {
+	*responses.BaseResponse
+	RequestId       string                     `json:"RequestId" xml:"RequestId"`
+	ChannelId       string                     `json:"ChannelId" xml:"ChannelId"`
+	TemplateId      int64                      `json:"TemplateId" xml:"TemplateId"`
+	MediaEncode     int                        `json:"MediaEncode" xml:"MediaEncode"`
+	BackgroundColor int                        `json:"BackgroundColor" xml:"BackgroundColor"`
+	UserPanes       GetMPUTaskParamUserPanes0  `json:"UserPanes" xml:"UserPanes"`
+	LayoutIds       []string                   `json:"LayoutIds" xml:"LayoutIds"`
+	LiveConfig      GetMPUTaskParamLiveConfig0 `json:"LiveConfig" xml:"LiveConfig"`
+}
+
+type GetMPUTaskParamUserPanes0 struct {
+	UserPanes []GetMPUTaskParamUserPanes1 `json:"UserPanes" xml:"UserPanes"`
+}
+
+type GetMPUTaskParamUserPanes1 struct {
+	PaneId     int    `json:"PaneId" xml:"PaneId"`
+	UserId     string `json:"UserId" xml:"UserId"`
+	SourceType string `json:"SourceType" xml:"SourceType"`
+}
+
+type GetMPUTaskParamLiveConfig0 struct {
+	StreamURL string `json:"StreamURL" xml:"StreamURL"`
+}
+
+// CreateGetMPUTaskParamRequest creates a request to invoke GetMPUTaskParam API
+func CreateGetMPUTaskParamRequest() (request *GetMPUTaskParamRequest) {
+	request = &GetMPUTaskParamRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "GetMPUTaskParam", "rtc", "openAPI")
+	return
+}
+
+// CreateGetMPUTaskParamResponse creates a response to parse from GetMPUTaskParam response
+func CreateGetMPUTaskParamResponse() (response *GetMPUTaskParamResponse) {
+	response = &GetMPUTaskParamResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 106 - 0
services/rtc/getmpu_task_status.go

@@ -0,0 +1,106 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// GetMPUTaskStatus invokes the rtc.GetMPUTaskStatus API synchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskstatus.html
+func (client *Client) GetMPUTaskStatus(request *GetMPUTaskStatusRequest) (response *GetMPUTaskStatusResponse, err error) {
+	response = CreateGetMPUTaskStatusResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// GetMPUTaskStatusWithChan invokes the rtc.GetMPUTaskStatus API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUTaskStatusWithChan(request *GetMPUTaskStatusRequest) (<-chan *GetMPUTaskStatusResponse, <-chan error) {
+	responseChan := make(chan *GetMPUTaskStatusResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.GetMPUTaskStatus(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// GetMPUTaskStatusWithCallback invokes the rtc.GetMPUTaskStatus API asynchronously
+// api document: https://help.aliyun.com/api/rtc/getmputaskstatus.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) GetMPUTaskStatusWithCallback(request *GetMPUTaskStatusRequest, callback func(response *GetMPUTaskStatusResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *GetMPUTaskStatusResponse
+		var err error
+		defer close(result)
+		response, err = client.GetMPUTaskStatus(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// GetMPUTaskStatusRequest is the request struct for api GetMPUTaskStatus
+type GetMPUTaskStatusRequest struct {
+	*requests.RpcRequest
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+	AppId   string           `position:"Query" name:"AppId"`
+	TaskId  string           `position:"Query" name:"TaskId"`
+}
+
+// GetMPUTaskStatusResponse is the response struct for api GetMPUTaskStatus
+type GetMPUTaskStatusResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	Status    int    `json:"Status" xml:"Status"`
+}
+
+// CreateGetMPUTaskStatusRequest creates a request to invoke GetMPUTaskStatus API
+func CreateGetMPUTaskStatusRequest() (request *GetMPUTaskStatusRequest) {
+	request = &GetMPUTaskStatusRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "GetMPUTaskStatus", "rtc", "openAPI")
+	return
+}
+
+// CreateGetMPUTaskStatusResponse creates a response to parse from GetMPUTaskStatus response
+func CreateGetMPUTaskStatusResponse() (response *GetMPUTaskStatusResponse) {
+	response = &GetMPUTaskStatusResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 3 - 3
services/rtc/modify_app.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,8 +77,8 @@ func (client *Client) ModifyAppWithCallback(request *ModifyAppRequest, callback
 type ModifyAppRequest struct {
 	*requests.RpcRequest
 	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
-	AppName string           `position:"Query" name:"AppName"`
 	AppId   string           `position:"Query" name:"AppId"`
+	AppName string           `position:"Query" name:"AppName"`
 }
 
 // ModifyAppResponse is the response struct for api ModifyApp

+ 6 - 6
services/rtc/modify_conference.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,12 +76,12 @@ func (client *Client) ModifyConferenceWithCallback(request *ModifyConferenceRequ
 // ModifyConferenceRequest is the request struct for api ModifyConference
 type ModifyConferenceRequest struct {
 	*requests.RpcRequest
-	StartTime      string           `position:"Query" name:"StartTime"`
-	Type           string           `position:"Query" name:"Type"`
-	ConferenceId   string           `position:"Query" name:"ConferenceId"`
-	ConferenceName string           `position:"Query" name:"ConferenceName"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
 	AppId          string           `position:"Query" name:"AppId"`
+	ConferenceId   string           `position:"Query" name:"ConferenceId"`
+	ConferenceName string           `position:"Query" name:"ConferenceName"`
+	StartTime      string           `position:"Query" name:"StartTime"`
+	Type           string           `position:"Query" name:"Type"`
 	RemindNotice   requests.Integer `position:"Query" name:"RemindNotice"`
 }
 

+ 17 - 7
services/rtc/mute_audio.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,18 +76,28 @@ func (client *Client) MuteAudioWithCallback(request *MuteAudioRequest, callback
 // MuteAudioRequest is the request struct for api MuteAudio
 type MuteAudioRequest struct {
 	*requests.RpcRequest
-	ParticipantIds *[]string        `position:"Query" name:"ParticipantIds"  type:"Repeated"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	ConferenceId   string           `position:"Query" name:"ConferenceId"`
 	AppId          string           `position:"Query" name:"AppId"`
+	ConferenceId   string           `position:"Query" name:"ConferenceId"`
+	ParticipantIds []string         `position:"Query" name:"ParticipantIds" type:"Repeated"`
 }
 
 // MuteAudioResponse is the response struct for api MuteAudio
 type MuteAudioResponse struct {
 	*responses.BaseResponse
-	RequestId    string                  `json:"RequestId" xml:"RequestId"`
-	ConferenceId string                  `json:"ConferenceId" xml:"ConferenceId"`
-	Participants ParticipantsInMuteAudio `json:"Participants" xml:"Participants"`
+	RequestId    string                 `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                 `json:"ConferenceId" xml:"ConferenceId"`
+	Participants MuteAudioParticipants0 `json:"Participants" xml:"Participants"`
+}
+
+type MuteAudioParticipants0 struct {
+	Participant []MuteAudioParticipant1 `json:"Participant" xml:"Participant"`
+}
+
+type MuteAudioParticipant1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateMuteAudioRequest creates a request to invoke MuteAudio API

+ 17 - 7
services/rtc/mute_audio_all.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,17 +77,27 @@ func (client *Client) MuteAudioAllWithCallback(request *MuteAudioAllRequest, cal
 type MuteAudioAllRequest struct {
 	*requests.RpcRequest
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
-	ParticipantId string           `position:"Query" name:"ParticipantId"`
-	ConferenceId  string           `position:"Query" name:"ConferenceId"`
 	AppId         string           `position:"Query" name:"AppId"`
+	ConferenceId  string           `position:"Query" name:"ConferenceId"`
+	ParticipantId string           `position:"Query" name:"ParticipantId"`
 }
 
 // MuteAudioAllResponse is the response struct for api MuteAudioAll
 type MuteAudioAllResponse struct {
 	*responses.BaseResponse
-	RequestId    string                     `json:"RequestId" xml:"RequestId"`
-	ConferenceId string                     `json:"ConferenceId" xml:"ConferenceId"`
-	Participants ParticipantsInMuteAudioAll `json:"Participants" xml:"Participants"`
+	RequestId    string                    `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                    `json:"ConferenceId" xml:"ConferenceId"`
+	Participants MuteAudioAllParticipants0 `json:"Participants" xml:"Participants"`
+}
+
+type MuteAudioAllParticipants0 struct {
+	Participant []MuteAudioAllParticipant1 `json:"Participant" xml:"Participant"`
+}
+
+type MuteAudioAllParticipant1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateMuteAudioAllRequest creates a request to invoke MuteAudioAll API

+ 109 - 0
services/rtc/receive_notify.go

@@ -0,0 +1,109 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// ReceiveNotify invokes the rtc.ReceiveNotify API synchronously
+// api document: https://help.aliyun.com/api/rtc/receivenotify.html
+func (client *Client) ReceiveNotify(request *ReceiveNotifyRequest) (response *ReceiveNotifyResponse, err error) {
+	response = CreateReceiveNotifyResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// ReceiveNotifyWithChan invokes the rtc.ReceiveNotify API asynchronously
+// api document: https://help.aliyun.com/api/rtc/receivenotify.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ReceiveNotifyWithChan(request *ReceiveNotifyRequest) (<-chan *ReceiveNotifyResponse, <-chan error) {
+	responseChan := make(chan *ReceiveNotifyResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.ReceiveNotify(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// ReceiveNotifyWithCallback invokes the rtc.ReceiveNotify API asynchronously
+// api document: https://help.aliyun.com/api/rtc/receivenotify.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) ReceiveNotifyWithCallback(request *ReceiveNotifyRequest, callback func(response *ReceiveNotifyResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *ReceiveNotifyResponse
+		var err error
+		defer close(result)
+		response, err = client.ReceiveNotify(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// ReceiveNotifyRequest is the request struct for api ReceiveNotify
+type ReceiveNotifyRequest struct {
+	*requests.RpcRequest
+	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
+	TraceId     string           `position:"Query" name:"TraceId"`
+	BizId       string           `position:"Query" name:"BizId"`
+	Event       string           `position:"Query" name:"Event"`
+	ContentType string           `position:"Query" name:"ContentType"`
+	Content     string           `position:"Query" name:"Content"`
+}
+
+// ReceiveNotifyResponse is the response struct for api ReceiveNotify
+type ReceiveNotifyResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+	TraceId   string `json:"TraceId" xml:"TraceId"`
+}
+
+// CreateReceiveNotifyRequest creates a request to invoke ReceiveNotify API
+func CreateReceiveNotifyRequest() (request *ReceiveNotifyRequest) {
+	request = &ReceiveNotifyRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "ReceiveNotify", "rtc", "openAPI")
+	return
+}
+
+// CreateReceiveNotifyResponse creates a response to parse from ReceiveNotify response
+func CreateReceiveNotifyResponse() (response *ReceiveNotifyResponse) {
+	response = &ReceiveNotifyResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 17 - 7
services/rtc/remove_participants.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,18 +76,28 @@ func (client *Client) RemoveParticipantsWithCallback(request *RemoveParticipants
 // RemoveParticipantsRequest is the request struct for api RemoveParticipants
 type RemoveParticipantsRequest struct {
 	*requests.RpcRequest
-	ParticipantIds *[]string        `position:"Query" name:"ParticipantIds"  type:"Repeated"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	ConferenceId   string           `position:"Query" name:"ConferenceId"`
 	AppId          string           `position:"Query" name:"AppId"`
+	ConferenceId   string           `position:"Query" name:"ConferenceId"`
+	ParticipantIds []string         `position:"Query" name:"ParticipantIds" type:"Repeated"`
 }
 
 // RemoveParticipantsResponse is the response struct for api RemoveParticipants
 type RemoveParticipantsResponse struct {
 	*responses.BaseResponse
-	RequestId    string                           `json:"RequestId" xml:"RequestId"`
-	ConferenceId string                           `json:"ConferenceId" xml:"ConferenceId"`
-	Participants ParticipantsInRemoveParticipants `json:"Participants" xml:"Participants"`
+	RequestId    string                          `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                          `json:"ConferenceId" xml:"ConferenceId"`
+	Participants RemoveParticipantsParticipants0 `json:"Participants" xml:"Participants"`
+}
+
+type RemoveParticipantsParticipants0 struct {
+	Participant []RemoveParticipantsParticipant1 `json:"Participant" xml:"Participant"`
+}
+
+type RemoveParticipantsParticipant1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateRemoveParticipantsRequest creates a request to invoke RemoveParticipants API

+ 15 - 5
services/rtc/remove_terminals.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,17 +76,27 @@ func (client *Client) RemoveTerminalsWithCallback(request *RemoveTerminalsReques
 // RemoveTerminalsRequest is the request struct for api RemoveTerminals
 type RemoveTerminalsRequest struct {
 	*requests.RpcRequest
-	TerminalIds *[]string        `position:"Query" name:"TerminalIds"  type:"Repeated"`
 	OwnerId     requests.Integer `position:"Query" name:"OwnerId"`
 	AppId       string           `position:"Query" name:"AppId"`
 	ChannelId   string           `position:"Query" name:"ChannelId"`
+	TerminalIds []string         `position:"Query" name:"TerminalIds" type:"Repeated"`
 }
 
 // RemoveTerminalsResponse is the response struct for api RemoveTerminals
 type RemoveTerminalsResponse struct {
 	*responses.BaseResponse
-	RequestId string    `json:"RequestId" xml:"RequestId"`
-	Terminals Terminals `json:"Terminals" xml:"Terminals"`
+	RequestId string                    `json:"RequestId" xml:"RequestId"`
+	Terminals RemoveTerminalsTerminals0 `json:"Terminals" xml:"Terminals"`
+}
+
+type RemoveTerminalsTerminals0 struct {
+	Terminal []RemoveTerminalsTerminal1 `json:"Terminal" xml:"Terminal"`
+}
+
+type RemoveTerminalsTerminal1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    int    `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateRemoveTerminalsRequest creates a request to invoke RemoveTerminals API

+ 2 - 2
services/rtc/start_app.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 15 - 14
services/rtc/start_task.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,26 +76,27 @@ func (client *Client) StartTaskWithCallback(request *StartTaskRequest, callback
 // StartTaskRequest is the request struct for api StartTask
 type StartTaskRequest struct {
 	*requests.RpcRequest
-	MixPanes     *[]StartTaskMixPanes `position:"Query" name:"MixPanes"  type:"Repeated"`
-	IdempotentId string               `position:"Query" name:"IdempotentId"`
-	OwnerId      requests.Integer     `position:"Query" name:"OwnerId"`
-	TemplateId   requests.Integer     `position:"Query" name:"TemplateId"`
-	AppId        string               `position:"Query" name:"AppId"`
-	ChannelId    string               `position:"Query" name:"ChannelId"`
+	OwnerId         requests.Integer      `position:"Query" name:"OwnerId"`
+	AppId           string                `position:"Query" name:"AppId"`
+	ChannelId       string                `position:"Query" name:"ChannelId"`
+	TaskId          string                `position:"Query" name:"TaskId"`
+	MediaEncode     requests.Integer      `position:"Query" name:"MediaEncode"`
+	BackgroundColor requests.Integer      `position:"Query" name:"BackgroundColor"`
+	LayoutIds       []string              `position:"Query" name:"LayoutIds" type:"Repeated"`
+	UserPanes       *[]StartTaskUserPanes `position:"Query" name:"UserPanes" type:"Repeated"`
+	StreamURL       string                `position:"Query" name:"StreamURL"`
 }
 
-// StartTaskMixPanes is a repeated param struct in StartTaskRequest
-type StartTaskMixPanes struct {
-	PaneId     string `name:"PaneId"`
-	UserId     string `name:"UserId"`
-	SourceType string `name:"SourceType"`
+type StartTaskUserPanes struct {
+	PaneId     requests.Integer `name:"PaneId"`
+	UserId     string           `name:"UserId"`
+	SourceType string           `name:"SourceType"`
 }
 
 // StartTaskResponse is the response struct for api StartTask
 type StartTaskResponse struct {
 	*responses.BaseResponse
 	RequestId string `json:"RequestId" xml:"RequestId"`
-	TaskId    int    `json:"TaskId" xml:"TaskId"`
 }
 
 // CreateStartTaskRequest creates a request to invoke StartTask API

+ 117 - 0
services/rtc/startmpu_task.go

@@ -0,0 +1,117 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// StartMPUTask invokes the rtc.StartMPUTask API synchronously
+// api document: https://help.aliyun.com/api/rtc/startmputask.html
+func (client *Client) StartMPUTask(request *StartMPUTaskRequest) (response *StartMPUTaskResponse, err error) {
+	response = CreateStartMPUTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StartMPUTaskWithChan invokes the rtc.StartMPUTask API asynchronously
+// api document: https://help.aliyun.com/api/rtc/startmputask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartMPUTaskWithChan(request *StartMPUTaskRequest) (<-chan *StartMPUTaskResponse, <-chan error) {
+	responseChan := make(chan *StartMPUTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StartMPUTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StartMPUTaskWithCallback invokes the rtc.StartMPUTask API asynchronously
+// api document: https://help.aliyun.com/api/rtc/startmputask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StartMPUTaskWithCallback(request *StartMPUTaskRequest, callback func(response *StartMPUTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StartMPUTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.StartMPUTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StartMPUTaskRequest is the request struct for api StartMPUTask
+type StartMPUTaskRequest struct {
+	*requests.RpcRequest
+	OwnerId         requests.Integer         `position:"Query" name:"OwnerId"`
+	AppId           string                   `position:"Query" name:"AppId"`
+	ChannelId       string                   `position:"Query" name:"ChannelId"`
+	TaskId          string                   `position:"Query" name:"TaskId"`
+	MediaEncode     requests.Integer         `position:"Query" name:"MediaEncode"`
+	BackgroundColor requests.Integer         `position:"Query" name:"BackgroundColor"`
+	LayoutIds       []requests.Integer       `position:"Query" name:"LayoutIds" type:"Repeated"`
+	UserPanes       *[]StartMPUTaskUserPanes `position:"Query" name:"UserPanes" type:"Repeated"`
+	StreamURL       string                   `position:"Query" name:"StreamURL"`
+}
+
+type StartMPUTaskUserPanes struct {
+	PaneId     requests.Integer `name:"PaneId"`
+	UserId     string           `name:"UserId"`
+	SourceType string           `name:"SourceType"`
+}
+
+// StartMPUTaskResponse is the response struct for api StartMPUTask
+type StartMPUTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateStartMPUTaskRequest creates a request to invoke StartMPUTask API
+func CreateStartMPUTaskRequest() (request *StartMPUTaskRequest) {
+	request = &StartMPUTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "StartMPUTask", "rtc", "openAPI")
+	return
+}
+
+// CreateStartMPUTaskResponse creates a response to parse from StartMPUTask response
+func CreateStartMPUTaskResponse() (response *StartMPUTaskResponse) {
+	response = &StartMPUTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 2 - 2
services/rtc/stop_app.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"

+ 5 - 6
services/rtc/stop_task.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,10 +76,9 @@ func (client *Client) StopTaskWithCallback(request *StopTaskRequest, callback fu
 // StopTaskRequest is the request struct for api StopTask
 type StopTaskRequest struct {
 	*requests.RpcRequest
-	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	AppId     string           `position:"Query" name:"AppId"`
-	ChannelId string           `position:"Query" name:"ChannelId"`
-	TaskId    requests.Integer `position:"Query" name:"TaskId"`
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+	AppId   string           `position:"Query" name:"AppId"`
+	TaskId  string           `position:"Query" name:"TaskId"`
 }
 
 // StopTaskResponse is the response struct for api StopTask

+ 105 - 0
services/rtc/stopmpu_task.go

@@ -0,0 +1,105 @@
+//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.
+
+package rtc
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// StopMPUTask invokes the rtc.StopMPUTask API synchronously
+// api document: https://help.aliyun.com/api/rtc/stopmputask.html
+func (client *Client) StopMPUTask(request *StopMPUTaskRequest) (response *StopMPUTaskResponse, err error) {
+	response = CreateStopMPUTaskResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// StopMPUTaskWithChan invokes the rtc.StopMPUTask API asynchronously
+// api document: https://help.aliyun.com/api/rtc/stopmputask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopMPUTaskWithChan(request *StopMPUTaskRequest) (<-chan *StopMPUTaskResponse, <-chan error) {
+	responseChan := make(chan *StopMPUTaskResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.StopMPUTask(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// StopMPUTaskWithCallback invokes the rtc.StopMPUTask API asynchronously
+// api document: https://help.aliyun.com/api/rtc/stopmputask.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) StopMPUTaskWithCallback(request *StopMPUTaskRequest, callback func(response *StopMPUTaskResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *StopMPUTaskResponse
+		var err error
+		defer close(result)
+		response, err = client.StopMPUTask(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// StopMPUTaskRequest is the request struct for api StopMPUTask
+type StopMPUTaskRequest struct {
+	*requests.RpcRequest
+	OwnerId requests.Integer `position:"Query" name:"OwnerId"`
+	AppId   string           `position:"Query" name:"AppId"`
+	TaskId  string           `position:"Query" name:"TaskId"`
+}
+
+// StopMPUTaskResponse is the response struct for api StopMPUTask
+type StopMPUTaskResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateStopMPUTaskRequest creates a request to invoke StopMPUTask API
+func CreateStopMPUTaskRequest() (request *StopMPUTaskRequest) {
+	request = &StopMPUTaskRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("rtc", "2018-01-11", "StopMPUTask", "rtc", "openAPI")
+	return
+}
+
+// CreateStopMPUTaskResponse creates a response to parse from StopMPUTask response
+func CreateStopMPUTaskResponse() (response *StopMPUTaskResponse) {
+	response = &StopMPUTaskResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 0 - 27
services/rtc/struct_app.go

@@ -1,27 +0,0 @@
-package rtc
-
-//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.
-
-// App is a nested struct in rtc response
-type App struct {
-	Status       int          `json:"Status" xml:"Status"`
-	AppId        string       `json:"AppId" xml:"AppId"`
-	AppName      string       `json:"AppName" xml:"AppName"`
-	CreateTime   string       `json:"CreateTime" xml:"CreateTime"`
-	AppType      string       `json:"AppType" xml:"AppType"`
-	BillType     string       `json:"BillType" xml:"BillType"`
-	ServiceAreas ServiceAreas `json:"ServiceAreas" xml:"ServiceAreas"`
-}

+ 0 - 21
services/rtc/struct_app_list.go

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

+ 0 - 23
services/rtc/struct_auth_info.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// AuthInfo is a nested struct in rtc response
-type AuthInfo struct {
-	Key       string `json:"Key" xml:"Key"`
-	Nonce     string `json:"Nonce" xml:"Nonce"`
-	Timestamp int    `json:"Timestamp" xml:"Timestamp"`
-}

+ 0 - 21
services/rtc/struct_call_areas_in_describe_real_time_record_list.go

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

+ 0 - 21
services/rtc/struct_call_areas_in_describe_record_list.go

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

+ 0 - 21
services/rtc/struct_channel_statis.go

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

+ 0 - 23
services/rtc/struct_channel_statis_item.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// ChannelStatisItem is a nested struct in rtc response
-type ChannelStatisItem struct {
-	AccChannelCnt      int    `json:"AccChannelCnt" xml:"AccChannelCnt"`
-	ConChannelPeak     int    `json:"ConChannelPeak" xml:"ConChannelPeak"`
-	ConChannelPeakTime string `json:"ConChannelPeakTime" xml:"ConChannelPeakTime"`
-}

+ 0 - 28
services/rtc/struct_communication_record_info.go

@@ -1,28 +0,0 @@
-package rtc
-
-//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.
-
-// CommunicationRecordInfo is a nested struct in rtc response
-type CommunicationRecordInfo struct {
-	Status        bool                          `json:"Status" xml:"Status"`
-	StartTime     string                        `json:"StartTime" xml:"StartTime"`
-	EndTime       string                        `json:"EndTime" xml:"EndTime"`
-	ChannelId     string                        `json:"ChannelId" xml:"ChannelId"`
-	TotalUserCnt  int                           `json:"TotalUserCnt" xml:"TotalUserCnt"`
-	RecordId      string                        `json:"RecordId" xml:"RecordId"`
-	OnlineUserCnt int                           `json:"OnlineUserCnt" xml:"OnlineUserCnt"`
-	CallAreas     CallAreasInDescribeRecordList `json:"CallAreas" xml:"CallAreas"`
-}

+ 0 - 21
services/rtc/struct_communication_record_infos_in_describe_real_time_record_list.go

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

+ 0 - 21
services/rtc/struct_communication_record_infos_in_describe_record_list.go

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

+ 0 - 25
services/rtc/struct_duration.go

@@ -1,25 +0,0 @@
-package rtc
-
-//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.
-
-// Duration is a nested struct in rtc response
-type Duration struct {
-	Sd    float64 `json:"Sd" xml:"Sd"`
-	All   float64 `json:"All" xml:"All"`
-	Fhd   float64 `json:"Fhd" xml:"Fhd"`
-	Audio float64 `json:"Audio" xml:"Audio"`
-	Hd    float64 `json:"Hd" xml:"Hd"`
-}

+ 0 - 21
services/rtc/struct_duration_in_describe_statis.go

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

+ 0 - 25
services/rtc/struct_duration_item.go

@@ -1,25 +0,0 @@
-package rtc
-
-//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.
-
-// DurationItem is a nested struct in rtc response
-type DurationItem struct {
-	TotalDuration float64 `json:"TotalDuration" xml:"TotalDuration"`
-	AudioDuration float64 `json:"AudioDuration" xml:"AudioDuration"`
-	SdDuration    float64 `json:"SdDuration" xml:"SdDuration"`
-	HdDuration    float64 `json:"HdDuration" xml:"HdDuration"`
-	FhdDuration   float64 `json:"FhdDuration" xml:"FhdDuration"`
-}

+ 0 - 23
services/rtc/struct_lay_out.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// LayOut is a nested struct in rtc response
-type LayOut struct {
-	Color    string `json:"Color" xml:"Color"`
-	Cutmode  int    `json:"Cutmode" xml:"Cutmode"`
-	LayoutID int    `json:"LayoutID" xml:"LayoutID"`
-}

+ 0 - 22
services/rtc/struct_live_config.go

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

+ 0 - 21
services/rtc/struct_mix_pane.go

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

+ 0 - 23
services/rtc/struct_mix_pane_item.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// MixPaneItem is a nested struct in rtc response
-type MixPaneItem struct {
-	PaneId     int    `json:"PaneId" xml:"PaneId"`
-	UserId     string `json:"UserId" xml:"UserId"`
-	SourceType string `json:"SourceType" xml:"SourceType"`
-}

+ 0 - 23
services/rtc/struct_participant.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// Participant is a nested struct in rtc response
-type Participant struct {
-	Message string `json:"Message" xml:"Message"`
-	Code    string `json:"Code" xml:"Code"`
-	Id      string `json:"Id" xml:"Id"`
-}

+ 0 - 21
services/rtc/struct_participants_in_mute_audio.go

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

+ 0 - 21
services/rtc/struct_participants_in_mute_audio_all.go

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

+ 0 - 21
services/rtc/struct_participants_in_remove_participants.go

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

+ 0 - 21
services/rtc/struct_participants_in_unmute_audio.go

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

+ 0 - 21
services/rtc/struct_participants_in_unmute_audio_all.go

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

+ 0 - 25
services/rtc/struct_record_config.go

@@ -1,25 +0,0 @@
-package rtc
-
-//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.
-
-// RecordConfig is a nested struct in rtc response
-type RecordConfig struct {
-	StorageType         string `json:"StorageType" xml:"StorageType"`
-	FileFormat          int    `json:"FileFormat" xml:"FileFormat"`
-	OssEndpoint         string `json:"OssEndpoint" xml:"OssEndpoint"`
-	OssBucket           string `json:"OssBucket" xml:"OssBucket"`
-	VodTranscodeGroupId int    `json:"VodTranscodeGroupId" xml:"VodTranscodeGroupId"`
-}

+ 0 - 25
services/rtc/struct_record_detail_info.go

@@ -1,25 +0,0 @@
-package rtc
-
-//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.
-
-// RecordDetailInfo is a nested struct in rtc response
-type RecordDetailInfo struct {
-	Uid        string `json:"Uid" xml:"Uid"`
-	StartTime  string `json:"StartTime" xml:"StartTime"`
-	EndTime    string `json:"EndTime" xml:"EndTime"`
-	DeviceType string `json:"DeviceType" xml:"DeviceType"`
-	SDKVersion string `json:"SDKVersion" xml:"SDKVersion"`
-}

+ 0 - 21
services/rtc/struct_record_detail_infos_in_describe_real_time_record_detail.go

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

+ 0 - 21
services/rtc/struct_record_detail_infos_in_describe_record_detail.go

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

+ 0 - 21
services/rtc/struct_service_areas.go

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

+ 0 - 24
services/rtc/struct_statis_info.go

@@ -1,24 +0,0 @@
-package rtc
-
-//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.
-
-// StatisInfo is a nested struct in rtc response
-type StatisInfo struct {
-	Time          string                   `json:"Time" xml:"Time"`
-	Duration      DurationInDescribeStatis `json:"Duration" xml:"Duration"`
-	UserStatis    UserStatis               `json:"UserStatis" xml:"UserStatis"`
-	ChannelStatis ChannelStatis            `json:"ChannelStatis" xml:"ChannelStatis"`
-}

+ 0 - 21
services/rtc/struct_statis_infos.go

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

+ 0 - 21
services/rtc/struct_template_ids.go

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

+ 0 - 23
services/rtc/struct_terminal.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// Terminal is a nested struct in rtc response
-type Terminal struct {
-	Id      string `json:"Id" xml:"Id"`
-	Code    int    `json:"Code" xml:"Code"`
-	Message string `json:"Message" xml:"Message"`
-}

+ 0 - 21
services/rtc/struct_terminals.go

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

+ 0 - 21
services/rtc/struct_user_statis.go

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

+ 0 - 23
services/rtc/struct_user_statis_item.go

@@ -1,23 +0,0 @@
-package rtc
-
-//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.
-
-// UserStatisItem is a nested struct in rtc response
-type UserStatisItem struct {
-	ActiveUserCnt      int    `json:"ActiveUserCnt" xml:"ActiveUserCnt"`
-	ConSessionPeak     int    `json:"ConSessionPeak" xml:"ConSessionPeak"`
-	ConSessionPeakTime string `json:"ConSessionPeakTime" xml:"ConSessionPeakTime"`
-}

+ 17 - 7
services/rtc/unmute_audio.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -76,18 +76,28 @@ func (client *Client) UnmuteAudioWithCallback(request *UnmuteAudioRequest, callb
 // UnmuteAudioRequest is the request struct for api UnmuteAudio
 type UnmuteAudioRequest struct {
 	*requests.RpcRequest
-	ParticipantIds *[]string        `position:"Query" name:"ParticipantIds"  type:"Repeated"`
 	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	ConferenceId   string           `position:"Query" name:"ConferenceId"`
 	AppId          string           `position:"Query" name:"AppId"`
+	ConferenceId   string           `position:"Query" name:"ConferenceId"`
+	ParticipantIds []string         `position:"Query" name:"ParticipantIds" type:"Repeated"`
 }
 
 // UnmuteAudioResponse is the response struct for api UnmuteAudio
 type UnmuteAudioResponse struct {
 	*responses.BaseResponse
-	RequestId    string                    `json:"RequestId" xml:"RequestId"`
-	ConferenceId string                    `json:"ConferenceId" xml:"ConferenceId"`
-	Participants ParticipantsInUnmuteAudio `json:"Participants" xml:"Participants"`
+	RequestId    string                   `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                   `json:"ConferenceId" xml:"ConferenceId"`
+	Participants UnmuteAudioParticipants0 `json:"Participants" xml:"Participants"`
+}
+
+type UnmuteAudioParticipants0 struct {
+	Participant []UnmuteAudioParticipant1 `json:"Participant" xml:"Participant"`
+}
+
+type UnmuteAudioParticipant1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateUnmuteAudioRequest creates a request to invoke UnmuteAudio API

+ 17 - 7
services/rtc/unmute_audio_all.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,17 +77,27 @@ func (client *Client) UnmuteAudioAllWithCallback(request *UnmuteAudioAllRequest,
 type UnmuteAudioAllRequest struct {
 	*requests.RpcRequest
 	OwnerId       requests.Integer `position:"Query" name:"OwnerId"`
-	ParticipantId string           `position:"Query" name:"ParticipantId"`
-	ConferenceId  string           `position:"Query" name:"ConferenceId"`
 	AppId         string           `position:"Query" name:"AppId"`
+	ConferenceId  string           `position:"Query" name:"ConferenceId"`
+	ParticipantId string           `position:"Query" name:"ParticipantId"`
 }
 
 // UnmuteAudioAllResponse is the response struct for api UnmuteAudioAll
 type UnmuteAudioAllResponse struct {
 	*responses.BaseResponse
-	RequestId    string                       `json:"RequestId" xml:"RequestId"`
-	ConferenceId string                       `json:"ConferenceId" xml:"ConferenceId"`
-	Participants ParticipantsInUnmuteAudioAll `json:"Participants" xml:"Participants"`
+	RequestId    string                      `json:"RequestId" xml:"RequestId"`
+	ConferenceId string                      `json:"ConferenceId" xml:"ConferenceId"`
+	Participants UnmuteAudioAllParticipants0 `json:"Participants" xml:"Participants"`
+}
+
+type UnmuteAudioAllParticipants0 struct {
+	Participant []UnmuteAudioAllParticipant1 `json:"Participant" xml:"Participant"`
+}
+
+type UnmuteAudioAllParticipant1 struct {
+	Id      string `json:"Id" xml:"Id"`
+	Code    string `json:"Code" xml:"Code"`
+	Message string `json:"Message" xml:"Message"`
 }
 
 // CreateUnmuteAudioAllRequest creates a request to invoke UnmuteAudioAll API

+ 3 - 3
services/rtc/update_channel.go

@@ -1,5 +1,3 @@
-package rtc
-
 //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
@@ -15,6 +13,8 @@ package rtc
 // Code generated by Alibaba Cloud SDK Code Generator.
 // Changes may cause incorrect behavior and will be lost if the code is regenerated.
 
+package rtc
+
 import (
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
 	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
@@ -77,9 +77,9 @@ func (client *Client) UpdateChannelWithCallback(request *UpdateChannelRequest, c
 type UpdateChannelRequest struct {
 	*requests.RpcRequest
 	OwnerId   requests.Integer `position:"Query" name:"OwnerId"`
-	Nonce     string           `position:"Query" name:"Nonce"`
 	AppId     string           `position:"Query" name:"AppId"`
 	ChannelId string           `position:"Query" name:"ChannelId"`
+	Nonce     string           `position:"Query" name:"Nonce"`
 }
 
 // UpdateChannelResponse is the response struct for api UpdateChannel

+ 0 - 116
services/rtc/update_task_param.go

@@ -1,116 +0,0 @@
-package rtc
-
-//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"
-)
-
-// UpdateTaskParam invokes the rtc.UpdateTaskParam API synchronously
-// api document: https://help.aliyun.com/api/rtc/updatetaskparam.html
-func (client *Client) UpdateTaskParam(request *UpdateTaskParamRequest) (response *UpdateTaskParamResponse, err error) {
-	response = CreateUpdateTaskParamResponse()
-	err = client.DoAction(request, response)
-	return
-}
-
-// UpdateTaskParamWithChan invokes the rtc.UpdateTaskParam API asynchronously
-// api document: https://help.aliyun.com/api/rtc/updatetaskparam.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpdateTaskParamWithChan(request *UpdateTaskParamRequest) (<-chan *UpdateTaskParamResponse, <-chan error) {
-	responseChan := make(chan *UpdateTaskParamResponse, 1)
-	errChan := make(chan error, 1)
-	err := client.AddAsyncTask(func() {
-		defer close(responseChan)
-		defer close(errChan)
-		response, err := client.UpdateTaskParam(request)
-		if err != nil {
-			errChan <- err
-		} else {
-			responseChan <- response
-		}
-	})
-	if err != nil {
-		errChan <- err
-		close(responseChan)
-		close(errChan)
-	}
-	return responseChan, errChan
-}
-
-// UpdateTaskParamWithCallback invokes the rtc.UpdateTaskParam API asynchronously
-// api document: https://help.aliyun.com/api/rtc/updatetaskparam.html
-// asynchronous document: https://help.aliyun.com/document_detail/66220.html
-func (client *Client) UpdateTaskParamWithCallback(request *UpdateTaskParamRequest, callback func(response *UpdateTaskParamResponse, err error)) <-chan int {
-	result := make(chan int, 1)
-	err := client.AddAsyncTask(func() {
-		var response *UpdateTaskParamResponse
-		var err error
-		defer close(result)
-		response, err = client.UpdateTaskParam(request)
-		callback(response, err)
-		result <- 1
-	})
-	if err != nil {
-		defer close(result)
-		callback(nil, err)
-		result <- 0
-	}
-	return result
-}
-
-// UpdateTaskParamRequest is the request struct for api UpdateTaskParam
-type UpdateTaskParamRequest struct {
-	*requests.RpcRequest
-	MixPanes   *[]UpdateTaskParamMixPanes `position:"Query" name:"MixPanes"  type:"Repeated"`
-	TaskId     requests.Integer           `position:"Query" name:"TaskId"`
-	OwnerId    requests.Integer           `position:"Query" name:"OwnerId"`
-	TemplateId requests.Integer           `position:"Query" name:"TemplateId"`
-	AppId      string                     `position:"Query" name:"AppId"`
-	ChannelId  string                     `position:"Query" name:"ChannelId"`
-}
-
-// UpdateTaskParamMixPanes is a repeated param struct in UpdateTaskParamRequest
-type UpdateTaskParamMixPanes struct {
-	PaneId     string `name:"PaneId"`
-	UserId     string `name:"UserId"`
-	SourceType string `name:"SourceType"`
-}
-
-// UpdateTaskParamResponse is the response struct for api UpdateTaskParam
-type UpdateTaskParamResponse struct {
-	*responses.BaseResponse
-	RequestId string `json:"RequestId" xml:"RequestId"`
-	TaskId    int    `json:"TaskId" xml:"TaskId"`
-}
-
-// CreateUpdateTaskParamRequest creates a request to invoke UpdateTaskParam API
-func CreateUpdateTaskParamRequest() (request *UpdateTaskParamRequest) {
-	request = &UpdateTaskParamRequest{
-		RpcRequest: &requests.RpcRequest{},
-	}
-	request.InitWithApiInfo("rtc", "2018-01-11", "UpdateTaskParam", "rtc", "openAPI")
-	return
-}
-
-// CreateUpdateTaskParamResponse creates a response to parse from UpdateTaskParam response
-func CreateUpdateTaskParamResponse() (response *UpdateTaskParamResponse) {
-	response = &UpdateTaskParamResponse{
-		BaseResponse: &responses.BaseResponse{},
-	}
-	return
-}