From d3ed47350c0a87d0d713563e861b1605a40fb8fc Mon Sep 17 00:00:00 2001 From: sdk-team Date: Mon, 18 May 2020 10:34:43 +0800 Subject: [PATCH] Generated 2016-11-01 for live. --- ChangeLog.txt | 4 + services/live/add_live_audio_audit_config.go | 110 +++++++++++++++++ .../add_live_audio_audit_notify_config.go | 106 ++++++++++++++++ services/live/control_html_resource.go | 108 +++++++++++++++++ services/live/delete_html_resource.go | 106 ++++++++++++++++ .../live/delete_live_audio_audit_config.go | 106 ++++++++++++++++ .../delete_live_audio_audit_notify_config.go | 104 ++++++++++++++++ services/live/describe_html_resource.go | 107 ++++++++++++++++ .../live/describe_live_audio_audit_config.go | 107 ++++++++++++++++ ...describe_live_audio_audit_notify_config.go | 105 ++++++++++++++++ services/live/describe_live_domain_limit.go | 105 ++++++++++++++++ .../describe_live_domain_push_bps_data.go | 114 ++++++++++++++++++ .../describe_live_domain_push_traffic_data.go | 114 ++++++++++++++++++ services/live/describe_live_tag_resources.go | 114 ++++++++++++++++++ services/live/describe_live_user_tags.go | 104 ++++++++++++++++ services/live/edit_html_resource.go | 109 +++++++++++++++++ ...terval_in_describe_live_domain_bps_data.go | 21 ++++ ...l_in_describe_live_domain_push_bps_data.go | 21 ++++ services/live/struct_html_resource.go | 26 ++++ .../live/struct_live_audio_audit_config.go | 25 ++++ .../struct_live_audio_audit_config_list.go | 21 ++++ .../struct_live_audio_audit_notify_config.go | 23 ++++ ...uct_live_audio_audit_notify_config_list.go | 21 ++++ services/live/struct_live_domain_limit.go | 23 ++++ .../live/struct_live_domain_limit_list.go | 21 ++++ ...nes_in_describe_live_audio_audit_config.go | 21 ++++ ...scribe_live_snapshot_detect_porn_config.go | 21 ++++ ...ribe_hls_live_stream_real_time_bps_data.go | 22 ++++ services/live/struct_tag.go | 22 ++++ ...ruct_tag_in_describe_live_tag_resources.go | 21 ++++ services/live/struct_tag_item.go | 22 ++++ services/live/struct_tag_resource.go | 22 ++++ services/live/struct_tag_resources.go | 21 ++++ services/live/struct_tags.go | 21 ++++ ..._describe_live_domain_push_traffic_data.go | 21 ++++ ...al_in_describe_live_domain_traffic_data.go | 21 ++++ ...be_live_domain_real_time_http_code_data.go | 21 ++++ ...struct_value_in_describe_live_user_tags.go | 21 ++++ services/live/tag_live_resources.go | 112 +++++++++++++++++ services/live/un_tag_live_resources.go | 107 ++++++++++++++++ .../live/update_live_audio_audit_config.go | 110 +++++++++++++++++ .../update_live_audio_audit_notify_config.go | 106 ++++++++++++++++ 42 files changed, 2537 insertions(+) create mode 100644 services/live/add_live_audio_audit_config.go create mode 100644 services/live/add_live_audio_audit_notify_config.go create mode 100644 services/live/control_html_resource.go create mode 100644 services/live/delete_html_resource.go create mode 100644 services/live/delete_live_audio_audit_config.go create mode 100644 services/live/delete_live_audio_audit_notify_config.go create mode 100644 services/live/describe_html_resource.go create mode 100644 services/live/describe_live_audio_audit_config.go create mode 100644 services/live/describe_live_audio_audit_notify_config.go create mode 100644 services/live/describe_live_domain_limit.go create mode 100644 services/live/describe_live_domain_push_bps_data.go create mode 100644 services/live/describe_live_domain_push_traffic_data.go create mode 100644 services/live/describe_live_tag_resources.go create mode 100644 services/live/describe_live_user_tags.go create mode 100644 services/live/edit_html_resource.go create mode 100644 services/live/struct_bps_data_per_interval_in_describe_live_domain_bps_data.go create mode 100644 services/live/struct_bps_data_per_interval_in_describe_live_domain_push_bps_data.go create mode 100644 services/live/struct_html_resource.go create mode 100644 services/live/struct_live_audio_audit_config.go create mode 100644 services/live/struct_live_audio_audit_config_list.go create mode 100644 services/live/struct_live_audio_audit_notify_config.go create mode 100644 services/live/struct_live_audio_audit_notify_config_list.go create mode 100644 services/live/struct_live_domain_limit.go create mode 100644 services/live/struct_live_domain_limit_list.go create mode 100644 services/live/struct_scenes_in_describe_live_audio_audit_config.go create mode 100644 services/live/struct_scenes_in_describe_live_snapshot_detect_porn_config.go create mode 100644 services/live/struct_stream_info_in_describe_hls_live_stream_real_time_bps_data.go create mode 100644 services/live/struct_tag.go create mode 100644 services/live/struct_tag_in_describe_live_tag_resources.go create mode 100644 services/live/struct_tag_item.go create mode 100644 services/live/struct_tag_resource.go create mode 100644 services/live/struct_tag_resources.go create mode 100644 services/live/struct_tags.go create mode 100644 services/live/struct_traffic_data_per_interval_in_describe_live_domain_push_traffic_data.go create mode 100644 services/live/struct_traffic_data_per_interval_in_describe_live_domain_traffic_data.go create mode 100644 services/live/struct_value_in_describe_live_domain_real_time_http_code_data.go create mode 100644 services/live/struct_value_in_describe_live_user_tags.go create mode 100644 services/live/tag_live_resources.go create mode 100644 services/live/un_tag_live_resources.go create mode 100644 services/live/update_live_audio_audit_config.go create mode 100644 services/live/update_live_audio_audit_notify_config.go diff --git a/ChangeLog.txt b/ChangeLog.txt index f47cffc373..322259554f 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2020-05-18 Version: v1.61.199 +- Generated 2016-11-01 for `live`. +- Support live audio audit config API. + 2020-05-17 Version: v1.61.198 - Generated 2020-05-15 for `Vcs`. - Open API publish. diff --git a/services/live/add_live_audio_audit_config.go b/services/live/add_live_audio_audit_config.go new file mode 100644 index 0000000000..928776b750 --- /dev/null +++ b/services/live/add_live_audio_audit_config.go @@ -0,0 +1,110 @@ +package live + +//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" +) + +// AddLiveAudioAuditConfig invokes the live.AddLiveAudioAuditConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditconfig.html +func (client *Client) AddLiveAudioAuditConfig(request *AddLiveAudioAuditConfigRequest) (response *AddLiveAudioAuditConfigResponse, err error) { + response = CreateAddLiveAudioAuditConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAudioAuditConfigWithChan invokes the live.AddLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAudioAuditConfigWithChan(request *AddLiveAudioAuditConfigRequest) (<-chan *AddLiveAudioAuditConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAudioAuditConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAudioAuditConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAudioAuditConfigWithCallback invokes the live.AddLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAudioAuditConfigWithCallback(request *AddLiveAudioAuditConfigRequest, callback func(response *AddLiveAudioAuditConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAudioAuditConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAudioAuditConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAudioAuditConfigRequest is the request struct for api AddLiveAudioAuditConfig +type AddLiveAudioAuditConfigRequest struct { + *requests.RpcRequest + OssEndpoint string `position:"Query" name:"OssEndpoint"` + OssObject string `position:"Query" name:"OssObject"` + AppName string `position:"Query" name:"AppName"` + StreamName string `position:"Query" name:"StreamName"` + OssBucket string `position:"Query" name:"OssBucket"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BizType string `position:"Query" name:"BizType"` +} + +// AddLiveAudioAuditConfigResponse is the response struct for api AddLiveAudioAuditConfig +type AddLiveAudioAuditConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAudioAuditConfigRequest creates a request to invoke AddLiveAudioAuditConfig API +func CreateAddLiveAudioAuditConfigRequest() (request *AddLiveAudioAuditConfigRequest) { + request = &AddLiveAudioAuditConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveAudioAuditConfig", "live", "openAPI") + return +} + +// CreateAddLiveAudioAuditConfigResponse creates a response to parse from AddLiveAudioAuditConfig response +func CreateAddLiveAudioAuditConfigResponse() (response *AddLiveAudioAuditConfigResponse) { + response = &AddLiveAudioAuditConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/add_live_audio_audit_notify_config.go b/services/live/add_live_audio_audit_notify_config.go new file mode 100644 index 0000000000..3a6cc1df25 --- /dev/null +++ b/services/live/add_live_audio_audit_notify_config.go @@ -0,0 +1,106 @@ +package live + +//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" +) + +// AddLiveAudioAuditNotifyConfig invokes the live.AddLiveAudioAuditNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditnotifyconfig.html +func (client *Client) AddLiveAudioAuditNotifyConfig(request *AddLiveAudioAuditNotifyConfigRequest) (response *AddLiveAudioAuditNotifyConfigResponse, err error) { + response = CreateAddLiveAudioAuditNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveAudioAuditNotifyConfigWithChan invokes the live.AddLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAudioAuditNotifyConfigWithChan(request *AddLiveAudioAuditNotifyConfigRequest) (<-chan *AddLiveAudioAuditNotifyConfigResponse, <-chan error) { + responseChan := make(chan *AddLiveAudioAuditNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveAudioAuditNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveAudioAuditNotifyConfigWithCallback invokes the live.AddLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/addliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) AddLiveAudioAuditNotifyConfigWithCallback(request *AddLiveAudioAuditNotifyConfigRequest, callback func(response *AddLiveAudioAuditNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveAudioAuditNotifyConfigResponse + var err error + defer close(result) + response, err = client.AddLiveAudioAuditNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveAudioAuditNotifyConfigRequest is the request struct for api AddLiveAudioAuditNotifyConfig +type AddLiveAudioAuditNotifyConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CallbackTemplate string `position:"Query" name:"CallbackTemplate"` + Callback string `position:"Query" name:"Callback"` +} + +// AddLiveAudioAuditNotifyConfigResponse is the response struct for api AddLiveAudioAuditNotifyConfig +type AddLiveAudioAuditNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveAudioAuditNotifyConfigRequest creates a request to invoke AddLiveAudioAuditNotifyConfig API +func CreateAddLiveAudioAuditNotifyConfigRequest() (request *AddLiveAudioAuditNotifyConfigRequest) { + request = &AddLiveAudioAuditNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveAudioAuditNotifyConfig", "live", "openAPI") + return +} + +// CreateAddLiveAudioAuditNotifyConfigResponse creates a response to parse from AddLiveAudioAuditNotifyConfig response +func CreateAddLiveAudioAuditNotifyConfigResponse() (response *AddLiveAudioAuditNotifyConfigResponse) { + response = &AddLiveAudioAuditNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/control_html_resource.go b/services/live/control_html_resource.go new file mode 100644 index 0000000000..42b6b4cc15 --- /dev/null +++ b/services/live/control_html_resource.go @@ -0,0 +1,108 @@ +package live + +//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" +) + +// ControlHtmlResource invokes the live.ControlHtmlResource API synchronously +// api document: https://help.aliyun.com/api/live/controlhtmlresource.html +func (client *Client) ControlHtmlResource(request *ControlHtmlResourceRequest) (response *ControlHtmlResourceResponse, err error) { + response = CreateControlHtmlResourceResponse() + err = client.DoAction(request, response) + return +} + +// ControlHtmlResourceWithChan invokes the live.ControlHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/controlhtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ControlHtmlResourceWithChan(request *ControlHtmlResourceRequest) (<-chan *ControlHtmlResourceResponse, <-chan error) { + responseChan := make(chan *ControlHtmlResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ControlHtmlResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ControlHtmlResourceWithCallback invokes the live.ControlHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/controlhtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) ControlHtmlResourceWithCallback(request *ControlHtmlResourceRequest, callback func(response *ControlHtmlResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ControlHtmlResourceResponse + var err error + defer close(result) + response, err = client.ControlHtmlResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ControlHtmlResourceRequest is the request struct for api ControlHtmlResource +type ControlHtmlResourceRequest struct { + *requests.RpcRequest + HtmlUrl string `position:"Query" name:"htmlUrl"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Operate string `position:"Query" name:"Operate"` + HtmlResourceId string `position:"Query" name:"HtmlResourceId"` +} + +// ControlHtmlResourceResponse is the response struct for api ControlHtmlResource +type ControlHtmlResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + StreamId string `json:"StreamId" xml:"StreamId"` +} + +// CreateControlHtmlResourceRequest creates a request to invoke ControlHtmlResource API +func CreateControlHtmlResourceRequest() (request *ControlHtmlResourceRequest) { + request = &ControlHtmlResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ControlHtmlResource", "live", "openAPI") + return +} + +// CreateControlHtmlResourceResponse creates a response to parse from ControlHtmlResource response +func CreateControlHtmlResourceResponse() (response *ControlHtmlResourceResponse) { + response = &ControlHtmlResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/delete_html_resource.go b/services/live/delete_html_resource.go new file mode 100644 index 0000000000..8610c2dfc2 --- /dev/null +++ b/services/live/delete_html_resource.go @@ -0,0 +1,106 @@ +package live + +//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" +) + +// DeleteHtmlResource invokes the live.DeleteHtmlResource API synchronously +// api document: https://help.aliyun.com/api/live/deletehtmlresource.html +func (client *Client) DeleteHtmlResource(request *DeleteHtmlResourceRequest) (response *DeleteHtmlResourceResponse, err error) { + response = CreateDeleteHtmlResourceResponse() + err = client.DoAction(request, response) + return +} + +// DeleteHtmlResourceWithChan invokes the live.DeleteHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/deletehtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHtmlResourceWithChan(request *DeleteHtmlResourceRequest) (<-chan *DeleteHtmlResourceResponse, <-chan error) { + responseChan := make(chan *DeleteHtmlResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteHtmlResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteHtmlResourceWithCallback invokes the live.DeleteHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/deletehtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteHtmlResourceWithCallback(request *DeleteHtmlResourceRequest, callback func(response *DeleteHtmlResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteHtmlResourceResponse + var err error + defer close(result) + response, err = client.DeleteHtmlResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteHtmlResourceRequest is the request struct for api DeleteHtmlResource +type DeleteHtmlResourceRequest struct { + *requests.RpcRequest + HtmlUrl string `position:"Query" name:"htmlUrl"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + HtmlResourceId string `position:"Query" name:"HtmlResourceId"` +} + +// DeleteHtmlResourceResponse is the response struct for api DeleteHtmlResource +type DeleteHtmlResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteHtmlResourceRequest creates a request to invoke DeleteHtmlResource API +func CreateDeleteHtmlResourceRequest() (request *DeleteHtmlResourceRequest) { + request = &DeleteHtmlResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteHtmlResource", "live", "openAPI") + return +} + +// CreateDeleteHtmlResourceResponse creates a response to parse from DeleteHtmlResource response +func CreateDeleteHtmlResourceResponse() (response *DeleteHtmlResourceResponse) { + response = &DeleteHtmlResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/delete_live_audio_audit_config.go b/services/live/delete_live_audio_audit_config.go new file mode 100644 index 0000000000..52886ffa2f --- /dev/null +++ b/services/live/delete_live_audio_audit_config.go @@ -0,0 +1,106 @@ +package live + +//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" +) + +// DeleteLiveAudioAuditConfig invokes the live.DeleteLiveAudioAuditConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditconfig.html +func (client *Client) DeleteLiveAudioAuditConfig(request *DeleteLiveAudioAuditConfigRequest) (response *DeleteLiveAudioAuditConfigResponse, err error) { + response = CreateDeleteLiveAudioAuditConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAudioAuditConfigWithChan invokes the live.DeleteLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAudioAuditConfigWithChan(request *DeleteLiveAudioAuditConfigRequest) (<-chan *DeleteLiveAudioAuditConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAudioAuditConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAudioAuditConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAudioAuditConfigWithCallback invokes the live.DeleteLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAudioAuditConfigWithCallback(request *DeleteLiveAudioAuditConfigRequest, callback func(response *DeleteLiveAudioAuditConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAudioAuditConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAudioAuditConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAudioAuditConfigRequest is the request struct for api DeleteLiveAudioAuditConfig +type DeleteLiveAudioAuditConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + StreamName string `position:"Query" name:"StreamName"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveAudioAuditConfigResponse is the response struct for api DeleteLiveAudioAuditConfig +type DeleteLiveAudioAuditConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAudioAuditConfigRequest creates a request to invoke DeleteLiveAudioAuditConfig API +func CreateDeleteLiveAudioAuditConfigRequest() (request *DeleteLiveAudioAuditConfigRequest) { + request = &DeleteLiveAudioAuditConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveAudioAuditConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveAudioAuditConfigResponse creates a response to parse from DeleteLiveAudioAuditConfig response +func CreateDeleteLiveAudioAuditConfigResponse() (response *DeleteLiveAudioAuditConfigResponse) { + response = &DeleteLiveAudioAuditConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/delete_live_audio_audit_notify_config.go b/services/live/delete_live_audio_audit_notify_config.go new file mode 100644 index 0000000000..b2eb64fb12 --- /dev/null +++ b/services/live/delete_live_audio_audit_notify_config.go @@ -0,0 +1,104 @@ +package live + +//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" +) + +// DeleteLiveAudioAuditNotifyConfig invokes the live.DeleteLiveAudioAuditNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditnotifyconfig.html +func (client *Client) DeleteLiveAudioAuditNotifyConfig(request *DeleteLiveAudioAuditNotifyConfigRequest) (response *DeleteLiveAudioAuditNotifyConfigResponse, err error) { + response = CreateDeleteLiveAudioAuditNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DeleteLiveAudioAuditNotifyConfigWithChan invokes the live.DeleteLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAudioAuditNotifyConfigWithChan(request *DeleteLiveAudioAuditNotifyConfigRequest) (<-chan *DeleteLiveAudioAuditNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DeleteLiveAudioAuditNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DeleteLiveAudioAuditNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DeleteLiveAudioAuditNotifyConfigWithCallback invokes the live.DeleteLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/deleteliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DeleteLiveAudioAuditNotifyConfigWithCallback(request *DeleteLiveAudioAuditNotifyConfigRequest, callback func(response *DeleteLiveAudioAuditNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DeleteLiveAudioAuditNotifyConfigResponse + var err error + defer close(result) + response, err = client.DeleteLiveAudioAuditNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DeleteLiveAudioAuditNotifyConfigRequest is the request struct for api DeleteLiveAudioAuditNotifyConfig +type DeleteLiveAudioAuditNotifyConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DeleteLiveAudioAuditNotifyConfigResponse is the response struct for api DeleteLiveAudioAuditNotifyConfig +type DeleteLiveAudioAuditNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateDeleteLiveAudioAuditNotifyConfigRequest creates a request to invoke DeleteLiveAudioAuditNotifyConfig API +func CreateDeleteLiveAudioAuditNotifyConfigRequest() (request *DeleteLiveAudioAuditNotifyConfigRequest) { + request = &DeleteLiveAudioAuditNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DeleteLiveAudioAuditNotifyConfig", "live", "openAPI") + return +} + +// CreateDeleteLiveAudioAuditNotifyConfigResponse creates a response to parse from DeleteLiveAudioAuditNotifyConfig response +func CreateDeleteLiveAudioAuditNotifyConfigResponse() (response *DeleteLiveAudioAuditNotifyConfigResponse) { + response = &DeleteLiveAudioAuditNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_html_resource.go b/services/live/describe_html_resource.go new file mode 100644 index 0000000000..9618265376 --- /dev/null +++ b/services/live/describe_html_resource.go @@ -0,0 +1,107 @@ +package live + +//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" +) + +// DescribeHtmlResource invokes the live.DescribeHtmlResource API synchronously +// api document: https://help.aliyun.com/api/live/describehtmlresource.html +func (client *Client) DescribeHtmlResource(request *DescribeHtmlResourceRequest) (response *DescribeHtmlResourceResponse, err error) { + response = CreateDescribeHtmlResourceResponse() + err = client.DoAction(request, response) + return +} + +// DescribeHtmlResourceWithChan invokes the live.DescribeHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/describehtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHtmlResourceWithChan(request *DescribeHtmlResourceRequest) (<-chan *DescribeHtmlResourceResponse, <-chan error) { + responseChan := make(chan *DescribeHtmlResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeHtmlResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeHtmlResourceWithCallback invokes the live.DescribeHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/describehtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeHtmlResourceWithCallback(request *DescribeHtmlResourceRequest, callback func(response *DescribeHtmlResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeHtmlResourceResponse + var err error + defer close(result) + response, err = client.DescribeHtmlResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeHtmlResourceRequest is the request struct for api DescribeHtmlResource +type DescribeHtmlResourceRequest struct { + *requests.RpcRequest + HtmlUrl string `position:"Query" name:"htmlUrl"` + CasterId string `position:"Query" name:"CasterId"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + HtmlResourceId string `position:"Query" name:"HtmlResourceId"` +} + +// DescribeHtmlResourceResponse is the response struct for api DescribeHtmlResource +type DescribeHtmlResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HtmlResource HtmlResource `json:"HtmlResource" xml:"HtmlResource"` +} + +// CreateDescribeHtmlResourceRequest creates a request to invoke DescribeHtmlResource API +func CreateDescribeHtmlResourceRequest() (request *DescribeHtmlResourceRequest) { + request = &DescribeHtmlResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeHtmlResource", "live", "openAPI") + return +} + +// CreateDescribeHtmlResourceResponse creates a response to parse from DescribeHtmlResource response +func CreateDescribeHtmlResourceResponse() (response *DescribeHtmlResourceResponse) { + response = &DescribeHtmlResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_audio_audit_config.go b/services/live/describe_live_audio_audit_config.go new file mode 100644 index 0000000000..95966c6190 --- /dev/null +++ b/services/live/describe_live_audio_audit_config.go @@ -0,0 +1,107 @@ +package live + +//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" +) + +// DescribeLiveAudioAuditConfig invokes the live.DescribeLiveAudioAuditConfig API synchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditconfig.html +func (client *Client) DescribeLiveAudioAuditConfig(request *DescribeLiveAudioAuditConfigRequest) (response *DescribeLiveAudioAuditConfigResponse, err error) { + response = CreateDescribeLiveAudioAuditConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveAudioAuditConfigWithChan invokes the live.DescribeLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAudioAuditConfigWithChan(request *DescribeLiveAudioAuditConfigRequest) (<-chan *DescribeLiveAudioAuditConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveAudioAuditConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveAudioAuditConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveAudioAuditConfigWithCallback invokes the live.DescribeLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAudioAuditConfigWithCallback(request *DescribeLiveAudioAuditConfigRequest, callback func(response *DescribeLiveAudioAuditConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveAudioAuditConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveAudioAuditConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveAudioAuditConfigRequest is the request struct for api DescribeLiveAudioAuditConfig +type DescribeLiveAudioAuditConfigRequest struct { + *requests.RpcRequest + AppName string `position:"Query" name:"AppName"` + StreamName string `position:"Query" name:"StreamName"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveAudioAuditConfigResponse is the response struct for api DescribeLiveAudioAuditConfig +type DescribeLiveAudioAuditConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAudioAuditConfigList LiveAudioAuditConfigList `json:"LiveAudioAuditConfigList" xml:"LiveAudioAuditConfigList"` +} + +// CreateDescribeLiveAudioAuditConfigRequest creates a request to invoke DescribeLiveAudioAuditConfig API +func CreateDescribeLiveAudioAuditConfigRequest() (request *DescribeLiveAudioAuditConfigRequest) { + request = &DescribeLiveAudioAuditConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveAudioAuditConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveAudioAuditConfigResponse creates a response to parse from DescribeLiveAudioAuditConfig response +func CreateDescribeLiveAudioAuditConfigResponse() (response *DescribeLiveAudioAuditConfigResponse) { + response = &DescribeLiveAudioAuditConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_audio_audit_notify_config.go b/services/live/describe_live_audio_audit_notify_config.go new file mode 100644 index 0000000000..384c430f36 --- /dev/null +++ b/services/live/describe_live_audio_audit_notify_config.go @@ -0,0 +1,105 @@ +package live + +//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" +) + +// DescribeLiveAudioAuditNotifyConfig invokes the live.DescribeLiveAudioAuditNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditnotifyconfig.html +func (client *Client) DescribeLiveAudioAuditNotifyConfig(request *DescribeLiveAudioAuditNotifyConfigRequest) (response *DescribeLiveAudioAuditNotifyConfigResponse, err error) { + response = CreateDescribeLiveAudioAuditNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveAudioAuditNotifyConfigWithChan invokes the live.DescribeLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAudioAuditNotifyConfigWithChan(request *DescribeLiveAudioAuditNotifyConfigRequest) (<-chan *DescribeLiveAudioAuditNotifyConfigResponse, <-chan error) { + responseChan := make(chan *DescribeLiveAudioAuditNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveAudioAuditNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveAudioAuditNotifyConfigWithCallback invokes the live.DescribeLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveAudioAuditNotifyConfigWithCallback(request *DescribeLiveAudioAuditNotifyConfigRequest, callback func(response *DescribeLiveAudioAuditNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveAudioAuditNotifyConfigResponse + var err error + defer close(result) + response, err = client.DescribeLiveAudioAuditNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveAudioAuditNotifyConfigRequest is the request struct for api DescribeLiveAudioAuditNotifyConfig +type DescribeLiveAudioAuditNotifyConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveAudioAuditNotifyConfigResponse is the response struct for api DescribeLiveAudioAuditNotifyConfig +type DescribeLiveAudioAuditNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveAudioAuditNotifyConfigList LiveAudioAuditNotifyConfigList `json:"LiveAudioAuditNotifyConfigList" xml:"LiveAudioAuditNotifyConfigList"` +} + +// CreateDescribeLiveAudioAuditNotifyConfigRequest creates a request to invoke DescribeLiveAudioAuditNotifyConfig API +func CreateDescribeLiveAudioAuditNotifyConfigRequest() (request *DescribeLiveAudioAuditNotifyConfigRequest) { + request = &DescribeLiveAudioAuditNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveAudioAuditNotifyConfig", "live", "openAPI") + return +} + +// CreateDescribeLiveAudioAuditNotifyConfigResponse creates a response to parse from DescribeLiveAudioAuditNotifyConfig response +func CreateDescribeLiveAudioAuditNotifyConfigResponse() (response *DescribeLiveAudioAuditNotifyConfigResponse) { + response = &DescribeLiveAudioAuditNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_domain_limit.go b/services/live/describe_live_domain_limit.go new file mode 100644 index 0000000000..14f44a6c25 --- /dev/null +++ b/services/live/describe_live_domain_limit.go @@ -0,0 +1,105 @@ +package live + +//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" +) + +// DescribeLiveDomainLimit invokes the live.DescribeLiveDomainLimit API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomainlimit.html +func (client *Client) DescribeLiveDomainLimit(request *DescribeLiveDomainLimitRequest) (response *DescribeLiveDomainLimitResponse, err error) { + response = CreateDescribeLiveDomainLimitResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainLimitWithChan invokes the live.DescribeLiveDomainLimit API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainlimit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainLimitWithChan(request *DescribeLiveDomainLimitRequest) (<-chan *DescribeLiveDomainLimitResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainLimitResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainLimit(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainLimitWithCallback invokes the live.DescribeLiveDomainLimit API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainlimit.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainLimitWithCallback(request *DescribeLiveDomainLimitRequest, callback func(response *DescribeLiveDomainLimitResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainLimitResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainLimit(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainLimitRequest is the request struct for api DescribeLiveDomainLimit +type DescribeLiveDomainLimitRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveDomainLimitResponse is the response struct for api DescribeLiveDomainLimit +type DescribeLiveDomainLimitResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + LiveDomainLimitList LiveDomainLimitList `json:"LiveDomainLimitList" xml:"LiveDomainLimitList"` +} + +// CreateDescribeLiveDomainLimitRequest creates a request to invoke DescribeLiveDomainLimit API +func CreateDescribeLiveDomainLimitRequest() (request *DescribeLiveDomainLimitRequest) { + request = &DescribeLiveDomainLimitRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainLimit", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainLimitResponse creates a response to parse from DescribeLiveDomainLimit response +func CreateDescribeLiveDomainLimitResponse() (response *DescribeLiveDomainLimitResponse) { + response = &DescribeLiveDomainLimitResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_domain_push_bps_data.go b/services/live/describe_live_domain_push_bps_data.go new file mode 100644 index 0000000000..de6c45e8c1 --- /dev/null +++ b/services/live/describe_live_domain_push_bps_data.go @@ -0,0 +1,114 @@ +package live + +//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" +) + +// DescribeLiveDomainPushBpsData invokes the live.DescribeLiveDomainPushBpsData API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushbpsdata.html +func (client *Client) DescribeLiveDomainPushBpsData(request *DescribeLiveDomainPushBpsDataRequest) (response *DescribeLiveDomainPushBpsDataResponse, err error) { + response = CreateDescribeLiveDomainPushBpsDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainPushBpsDataWithChan invokes the live.DescribeLiveDomainPushBpsData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainPushBpsDataWithChan(request *DescribeLiveDomainPushBpsDataRequest) (<-chan *DescribeLiveDomainPushBpsDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainPushBpsDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainPushBpsData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainPushBpsDataWithCallback invokes the live.DescribeLiveDomainPushBpsData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushbpsdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainPushBpsDataWithCallback(request *DescribeLiveDomainPushBpsDataRequest, callback func(response *DescribeLiveDomainPushBpsDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainPushBpsDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainPushBpsData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainPushBpsDataRequest is the request struct for api DescribeLiveDomainPushBpsData +type DescribeLiveDomainPushBpsDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeLiveDomainPushBpsDataResponse is the response struct for api DescribeLiveDomainPushBpsData +type DescribeLiveDomainPushBpsDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + BpsDataPerInterval BpsDataPerIntervalInDescribeLiveDomainPushBpsData `json:"BpsDataPerInterval" xml:"BpsDataPerInterval"` +} + +// CreateDescribeLiveDomainPushBpsDataRequest creates a request to invoke DescribeLiveDomainPushBpsData API +func CreateDescribeLiveDomainPushBpsDataRequest() (request *DescribeLiveDomainPushBpsDataRequest) { + request = &DescribeLiveDomainPushBpsDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainPushBpsData", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainPushBpsDataResponse creates a response to parse from DescribeLiveDomainPushBpsData response +func CreateDescribeLiveDomainPushBpsDataResponse() (response *DescribeLiveDomainPushBpsDataResponse) { + response = &DescribeLiveDomainPushBpsDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_domain_push_traffic_data.go b/services/live/describe_live_domain_push_traffic_data.go new file mode 100644 index 0000000000..efbc193658 --- /dev/null +++ b/services/live/describe_live_domain_push_traffic_data.go @@ -0,0 +1,114 @@ +package live + +//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" +) + +// DescribeLiveDomainPushTrafficData invokes the live.DescribeLiveDomainPushTrafficData API synchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushtrafficdata.html +func (client *Client) DescribeLiveDomainPushTrafficData(request *DescribeLiveDomainPushTrafficDataRequest) (response *DescribeLiveDomainPushTrafficDataResponse, err error) { + response = CreateDescribeLiveDomainPushTrafficDataResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveDomainPushTrafficDataWithChan invokes the live.DescribeLiveDomainPushTrafficData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushtrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainPushTrafficDataWithChan(request *DescribeLiveDomainPushTrafficDataRequest) (<-chan *DescribeLiveDomainPushTrafficDataResponse, <-chan error) { + responseChan := make(chan *DescribeLiveDomainPushTrafficDataResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveDomainPushTrafficData(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveDomainPushTrafficDataWithCallback invokes the live.DescribeLiveDomainPushTrafficData API asynchronously +// api document: https://help.aliyun.com/api/live/describelivedomainpushtrafficdata.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveDomainPushTrafficDataWithCallback(request *DescribeLiveDomainPushTrafficDataRequest, callback func(response *DescribeLiveDomainPushTrafficDataResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveDomainPushTrafficDataResponse + var err error + defer close(result) + response, err = client.DescribeLiveDomainPushTrafficData(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveDomainPushTrafficDataRequest is the request struct for api DescribeLiveDomainPushTrafficData +type DescribeLiveDomainPushTrafficDataRequest struct { + *requests.RpcRequest + LocationNameEn string `position:"Query" name:"LocationNameEn"` + StartTime string `position:"Query" name:"StartTime"` + IspNameEn string `position:"Query" name:"IspNameEn"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeLiveDomainPushTrafficDataResponse is the response struct for api DescribeLiveDomainPushTrafficData +type DescribeLiveDomainPushTrafficDataResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + DomainName string `json:"DomainName" xml:"DomainName"` + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + DataInterval string `json:"DataInterval" xml:"DataInterval"` + TrafficDataPerInterval TrafficDataPerIntervalInDescribeLiveDomainPushTrafficData `json:"TrafficDataPerInterval" xml:"TrafficDataPerInterval"` +} + +// CreateDescribeLiveDomainPushTrafficDataRequest creates a request to invoke DescribeLiveDomainPushTrafficData API +func CreateDescribeLiveDomainPushTrafficDataRequest() (request *DescribeLiveDomainPushTrafficDataRequest) { + request = &DescribeLiveDomainPushTrafficDataRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainPushTrafficData", "live", "openAPI") + return +} + +// CreateDescribeLiveDomainPushTrafficDataResponse creates a response to parse from DescribeLiveDomainPushTrafficData response +func CreateDescribeLiveDomainPushTrafficDataResponse() (response *DescribeLiveDomainPushTrafficDataResponse) { + response = &DescribeLiveDomainPushTrafficDataResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_tag_resources.go b/services/live/describe_live_tag_resources.go new file mode 100644 index 0000000000..eef0c14980 --- /dev/null +++ b/services/live/describe_live_tag_resources.go @@ -0,0 +1,114 @@ +package live + +//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" +) + +// DescribeLiveTagResources invokes the live.DescribeLiveTagResources API synchronously +// api document: https://help.aliyun.com/api/live/describelivetagresources.html +func (client *Client) DescribeLiveTagResources(request *DescribeLiveTagResourcesRequest) (response *DescribeLiveTagResourcesResponse, err error) { + response = CreateDescribeLiveTagResourcesResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveTagResourcesWithChan invokes the live.DescribeLiveTagResources API asynchronously +// api document: https://help.aliyun.com/api/live/describelivetagresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveTagResourcesWithChan(request *DescribeLiveTagResourcesRequest) (<-chan *DescribeLiveTagResourcesResponse, <-chan error) { + responseChan := make(chan *DescribeLiveTagResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveTagResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveTagResourcesWithCallback invokes the live.DescribeLiveTagResources API asynchronously +// api document: https://help.aliyun.com/api/live/describelivetagresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveTagResourcesWithCallback(request *DescribeLiveTagResourcesRequest, callback func(response *DescribeLiveTagResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveTagResourcesResponse + var err error + defer close(result) + response, err = client.DescribeLiveTagResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveTagResourcesRequest is the request struct for api DescribeLiveTagResources +type DescribeLiveTagResourcesRequest struct { + *requests.RpcRequest + Scope string `position:"Query" name:"Scope"` + Tag *[]DescribeLiveTagResourcesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// DescribeLiveTagResourcesTag is a repeated param struct in DescribeLiveTagResourcesRequest +type DescribeLiveTagResourcesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// DescribeLiveTagResourcesResponse is the response struct for api DescribeLiveTagResources +type DescribeLiveTagResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + TagResources []TagResource `json:"TagResources" xml:"TagResources"` +} + +// CreateDescribeLiveTagResourcesRequest creates a request to invoke DescribeLiveTagResources API +func CreateDescribeLiveTagResourcesRequest() (request *DescribeLiveTagResourcesRequest) { + request = &DescribeLiveTagResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveTagResources", "live", "openAPI") + return +} + +// CreateDescribeLiveTagResourcesResponse creates a response to parse from DescribeLiveTagResources response +func CreateDescribeLiveTagResourcesResponse() (response *DescribeLiveTagResourcesResponse) { + response = &DescribeLiveTagResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/describe_live_user_tags.go b/services/live/describe_live_user_tags.go new file mode 100644 index 0000000000..f8e2403bd1 --- /dev/null +++ b/services/live/describe_live_user_tags.go @@ -0,0 +1,104 @@ +package live + +//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" +) + +// DescribeLiveUserTags invokes the live.DescribeLiveUserTags API synchronously +// api document: https://help.aliyun.com/api/live/describeliveusertags.html +func (client *Client) DescribeLiveUserTags(request *DescribeLiveUserTagsRequest) (response *DescribeLiveUserTagsResponse, err error) { + response = CreateDescribeLiveUserTagsResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveUserTagsWithChan invokes the live.DescribeLiveUserTags API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveusertags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveUserTagsWithChan(request *DescribeLiveUserTagsRequest) (<-chan *DescribeLiveUserTagsResponse, <-chan error) { + responseChan := make(chan *DescribeLiveUserTagsResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveUserTags(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveUserTagsWithCallback invokes the live.DescribeLiveUserTags API asynchronously +// api document: https://help.aliyun.com/api/live/describeliveusertags.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) DescribeLiveUserTagsWithCallback(request *DescribeLiveUserTagsRequest, callback func(response *DescribeLiveUserTagsResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveUserTagsResponse + var err error + defer close(result) + response, err = client.DescribeLiveUserTags(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveUserTagsRequest is the request struct for api DescribeLiveUserTags +type DescribeLiveUserTagsRequest struct { + *requests.RpcRequest + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveUserTagsResponse is the response struct for api DescribeLiveUserTags +type DescribeLiveUserTagsResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Tags []Tag `json:"Tags" xml:"Tags"` +} + +// CreateDescribeLiveUserTagsRequest creates a request to invoke DescribeLiveUserTags API +func CreateDescribeLiveUserTagsRequest() (request *DescribeLiveUserTagsRequest) { + request = &DescribeLiveUserTagsRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveUserTags", "live", "openAPI") + return +} + +// CreateDescribeLiveUserTagsResponse creates a response to parse from DescribeLiveUserTags response +func CreateDescribeLiveUserTagsResponse() (response *DescribeLiveUserTagsResponse) { + response = &DescribeLiveUserTagsResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/edit_html_resource.go b/services/live/edit_html_resource.go new file mode 100644 index 0000000000..5504a67aac --- /dev/null +++ b/services/live/edit_html_resource.go @@ -0,0 +1,109 @@ +package live + +//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" +) + +// EditHtmlResource invokes the live.EditHtmlResource API synchronously +// api document: https://help.aliyun.com/api/live/edithtmlresource.html +func (client *Client) EditHtmlResource(request *EditHtmlResourceRequest) (response *EditHtmlResourceResponse, err error) { + response = CreateEditHtmlResourceResponse() + err = client.DoAction(request, response) + return +} + +// EditHtmlResourceWithChan invokes the live.EditHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/edithtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditHtmlResourceWithChan(request *EditHtmlResourceRequest) (<-chan *EditHtmlResourceResponse, <-chan error) { + responseChan := make(chan *EditHtmlResourceResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.EditHtmlResource(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// EditHtmlResourceWithCallback invokes the live.EditHtmlResource API asynchronously +// api document: https://help.aliyun.com/api/live/edithtmlresource.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) EditHtmlResourceWithCallback(request *EditHtmlResourceRequest, callback func(response *EditHtmlResourceResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *EditHtmlResourceResponse + var err error + defer close(result) + response, err = client.EditHtmlResource(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// EditHtmlResourceRequest is the request struct for api EditHtmlResource +type EditHtmlResourceRequest struct { + *requests.RpcRequest + HtmlUrl string `position:"Query" name:"HtmlUrl"` + CasterId string `position:"Query" name:"CasterId"` + HtmlContent string `position:"Query" name:"htmlContent"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + HtmlResourceId string `position:"Query" name:"HtmlResourceId"` + Config string `position:"Query" name:"Config"` +} + +// EditHtmlResourceResponse is the response struct for api EditHtmlResource +type EditHtmlResourceResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + HtmlResourceId string `json:"HtmlResourceId" xml:"HtmlResourceId"` +} + +// CreateEditHtmlResourceRequest creates a request to invoke EditHtmlResource API +func CreateEditHtmlResourceRequest() (request *EditHtmlResourceRequest) { + request = &EditHtmlResourceRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "EditHtmlResource", "live", "openAPI") + return +} + +// CreateEditHtmlResourceResponse creates a response to parse from EditHtmlResource response +func CreateEditHtmlResourceResponse() (response *EditHtmlResourceResponse) { + response = &EditHtmlResourceResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/struct_bps_data_per_interval_in_describe_live_domain_bps_data.go b/services/live/struct_bps_data_per_interval_in_describe_live_domain_bps_data.go new file mode 100644 index 0000000000..26bfaf4b58 --- /dev/null +++ b/services/live/struct_bps_data_per_interval_in_describe_live_domain_bps_data.go @@ -0,0 +1,21 @@ +package live + +//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. + +// BpsDataPerIntervalInDescribeLiveDomainBpsData is a nested struct in live response +type BpsDataPerIntervalInDescribeLiveDomainBpsData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/services/live/struct_bps_data_per_interval_in_describe_live_domain_push_bps_data.go b/services/live/struct_bps_data_per_interval_in_describe_live_domain_push_bps_data.go new file mode 100644 index 0000000000..5e036d6787 --- /dev/null +++ b/services/live/struct_bps_data_per_interval_in_describe_live_domain_push_bps_data.go @@ -0,0 +1,21 @@ +package live + +//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. + +// BpsDataPerIntervalInDescribeLiveDomainPushBpsData is a nested struct in live response +type BpsDataPerIntervalInDescribeLiveDomainPushBpsData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/services/live/struct_html_resource.go b/services/live/struct_html_resource.go new file mode 100644 index 0000000000..4706a19e4d --- /dev/null +++ b/services/live/struct_html_resource.go @@ -0,0 +1,26 @@ +package live + +//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. + +// HtmlResource is a nested struct in live response +type HtmlResource struct { + HtmlResourceId string `json:"HtmlResourceId" xml:"HtmlResourceId"` + HtmlUrl string `json:"HtmlUrl" xml:"HtmlUrl"` + HtmlContent string `json:"HtmlContent" xml:"HtmlContent"` + CasterId string `json:"CasterId" xml:"CasterId"` + Config string `json:"Config" xml:"Config"` + StreamId string `json:"StreamId" xml:"StreamId"` +} diff --git a/services/live/struct_live_audio_audit_config.go b/services/live/struct_live_audio_audit_config.go new file mode 100644 index 0000000000..82f9ef8e0f --- /dev/null +++ b/services/live/struct_live_audio_audit_config.go @@ -0,0 +1,25 @@ +package live + +//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. + +// LiveAudioAuditConfig is a nested struct in live response +type LiveAudioAuditConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + AppName string `json:"AppName" xml:"AppName"` + StreamName string `json:"StreamName" xml:"StreamName"` + BizType string `json:"BizType" xml:"BizType"` + Scenes ScenesInDescribeLiveAudioAuditConfig `json:"Scenes" xml:"Scenes"` +} diff --git a/services/live/struct_live_audio_audit_config_list.go b/services/live/struct_live_audio_audit_config_list.go new file mode 100644 index 0000000000..651fca3cd1 --- /dev/null +++ b/services/live/struct_live_audio_audit_config_list.go @@ -0,0 +1,21 @@ +package live + +//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. + +// LiveAudioAuditConfigList is a nested struct in live response +type LiveAudioAuditConfigList struct { + LiveAudioAuditConfig []LiveAudioAuditConfig `json:"LiveAudioAuditConfig" xml:"LiveAudioAuditConfig"` +} diff --git a/services/live/struct_live_audio_audit_notify_config.go b/services/live/struct_live_audio_audit_notify_config.go new file mode 100644 index 0000000000..b88ff3968f --- /dev/null +++ b/services/live/struct_live_audio_audit_notify_config.go @@ -0,0 +1,23 @@ +package live + +//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. + +// LiveAudioAuditNotifyConfig is a nested struct in live response +type LiveAudioAuditNotifyConfig struct { + DomainName string `json:"DomainName" xml:"DomainName"` + Callback string `json:"Callback" xml:"Callback"` + CallbackTemplate string `json:"CallbackTemplate" xml:"CallbackTemplate"` +} diff --git a/services/live/struct_live_audio_audit_notify_config_list.go b/services/live/struct_live_audio_audit_notify_config_list.go new file mode 100644 index 0000000000..1dcbedd3e6 --- /dev/null +++ b/services/live/struct_live_audio_audit_notify_config_list.go @@ -0,0 +1,21 @@ +package live + +//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. + +// LiveAudioAuditNotifyConfigList is a nested struct in live response +type LiveAudioAuditNotifyConfigList struct { + LiveAudioAuditNotifyConfig []LiveAudioAuditNotifyConfig `json:"LiveAudioAuditNotifyConfig" xml:"LiveAudioAuditNotifyConfig"` +} diff --git a/services/live/struct_live_domain_limit.go b/services/live/struct_live_domain_limit.go new file mode 100644 index 0000000000..151129ce41 --- /dev/null +++ b/services/live/struct_live_domain_limit.go @@ -0,0 +1,23 @@ +package live + +//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. + +// LiveDomainLimit is a nested struct in live response +type LiveDomainLimit struct { + DomainName string `json:"DomainName" xml:"DomainName"` + LimitNum int `json:"LimitNum" xml:"LimitNum"` + LimitTranscodeNum int `json:"LimitTranscodeNum" xml:"LimitTranscodeNum"` +} diff --git a/services/live/struct_live_domain_limit_list.go b/services/live/struct_live_domain_limit_list.go new file mode 100644 index 0000000000..72235fc923 --- /dev/null +++ b/services/live/struct_live_domain_limit_list.go @@ -0,0 +1,21 @@ +package live + +//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. + +// LiveDomainLimitList is a nested struct in live response +type LiveDomainLimitList struct { + LiveDomainLimit []LiveDomainLimit `json:"LiveDomainLimit" xml:"LiveDomainLimit"` +} diff --git a/services/live/struct_scenes_in_describe_live_audio_audit_config.go b/services/live/struct_scenes_in_describe_live_audio_audit_config.go new file mode 100644 index 0000000000..73929902df --- /dev/null +++ b/services/live/struct_scenes_in_describe_live_audio_audit_config.go @@ -0,0 +1,21 @@ +package live + +//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. + +// ScenesInDescribeLiveAudioAuditConfig is a nested struct in live response +type ScenesInDescribeLiveAudioAuditConfig struct { + Scene []string `json:"scene" xml:"scene"` +} diff --git a/services/live/struct_scenes_in_describe_live_snapshot_detect_porn_config.go b/services/live/struct_scenes_in_describe_live_snapshot_detect_porn_config.go new file mode 100644 index 0000000000..eebc4ba923 --- /dev/null +++ b/services/live/struct_scenes_in_describe_live_snapshot_detect_porn_config.go @@ -0,0 +1,21 @@ +package live + +//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. + +// ScenesInDescribeLiveSnapshotDetectPornConfig is a nested struct in live response +type ScenesInDescribeLiveSnapshotDetectPornConfig struct { + Scene []string `json:"scene" xml:"scene"` +} diff --git a/services/live/struct_stream_info_in_describe_hls_live_stream_real_time_bps_data.go b/services/live/struct_stream_info_in_describe_hls_live_stream_real_time_bps_data.go new file mode 100644 index 0000000000..68b41acf3f --- /dev/null +++ b/services/live/struct_stream_info_in_describe_hls_live_stream_real_time_bps_data.go @@ -0,0 +1,22 @@ +package live + +//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. + +// StreamInfoInDescribeHlsLiveStreamRealTimeBpsData is a nested struct in live response +type StreamInfoInDescribeHlsLiveStreamRealTimeBpsData struct { + StreamName string `json:"StreamName" xml:"StreamName"` + Infos []Info `json:"Infos" xml:"Infos"` +} diff --git a/services/live/struct_tag.go b/services/live/struct_tag.go new file mode 100644 index 0000000000..266ed1901e --- /dev/null +++ b/services/live/struct_tag.go @@ -0,0 +1,22 @@ +package live + +//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. + +// Tag is a nested struct in live response +type Tag struct { + Key string `json:"Key" xml:"Key"` + Value []string `json:"Value" xml:"Value"` +} diff --git a/services/live/struct_tag_in_describe_live_tag_resources.go b/services/live/struct_tag_in_describe_live_tag_resources.go new file mode 100644 index 0000000000..ccbe03d0f1 --- /dev/null +++ b/services/live/struct_tag_in_describe_live_tag_resources.go @@ -0,0 +1,21 @@ +package live + +//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. + +// TagInDescribeLiveTagResources is a nested struct in live response +type TagInDescribeLiveTagResources struct { + TagItem []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/live/struct_tag_item.go b/services/live/struct_tag_item.go new file mode 100644 index 0000000000..052924d45c --- /dev/null +++ b/services/live/struct_tag_item.go @@ -0,0 +1,22 @@ +package live + +//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. + +// TagItem is a nested struct in live response +type TagItem struct { + Key string `json:"Key" xml:"Key"` + Value string `json:"Value" xml:"Value"` +} diff --git a/services/live/struct_tag_resource.go b/services/live/struct_tag_resource.go new file mode 100644 index 0000000000..033f9363dd --- /dev/null +++ b/services/live/struct_tag_resource.go @@ -0,0 +1,22 @@ +package live + +//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. + +// TagResource is a nested struct in live response +type TagResource struct { + ResourceId string `json:"ResourceId" xml:"ResourceId"` + Tag []TagItem `json:"Tag" xml:"Tag"` +} diff --git a/services/live/struct_tag_resources.go b/services/live/struct_tag_resources.go new file mode 100644 index 0000000000..3332f0f303 --- /dev/null +++ b/services/live/struct_tag_resources.go @@ -0,0 +1,21 @@ +package live + +//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. + +// TagResources is a nested struct in live response +type TagResources struct { + TagResource []TagResource `json:"TagResource" xml:"TagResource"` +} diff --git a/services/live/struct_tags.go b/services/live/struct_tags.go new file mode 100644 index 0000000000..3ced755da4 --- /dev/null +++ b/services/live/struct_tags.go @@ -0,0 +1,21 @@ +package live + +//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. + +// Tags is a nested struct in live response +type Tags struct { + Tag []Tag `json:"Tag" xml:"Tag"` +} diff --git a/services/live/struct_traffic_data_per_interval_in_describe_live_domain_push_traffic_data.go b/services/live/struct_traffic_data_per_interval_in_describe_live_domain_push_traffic_data.go new file mode 100644 index 0000000000..c3740f3c62 --- /dev/null +++ b/services/live/struct_traffic_data_per_interval_in_describe_live_domain_push_traffic_data.go @@ -0,0 +1,21 @@ +package live + +//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. + +// TrafficDataPerIntervalInDescribeLiveDomainPushTrafficData is a nested struct in live response +type TrafficDataPerIntervalInDescribeLiveDomainPushTrafficData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/services/live/struct_traffic_data_per_interval_in_describe_live_domain_traffic_data.go b/services/live/struct_traffic_data_per_interval_in_describe_live_domain_traffic_data.go new file mode 100644 index 0000000000..b4c784b50f --- /dev/null +++ b/services/live/struct_traffic_data_per_interval_in_describe_live_domain_traffic_data.go @@ -0,0 +1,21 @@ +package live + +//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. + +// TrafficDataPerIntervalInDescribeLiveDomainTrafficData is a nested struct in live response +type TrafficDataPerIntervalInDescribeLiveDomainTrafficData struct { + DataModule []DataModule `json:"DataModule" xml:"DataModule"` +} diff --git a/services/live/struct_value_in_describe_live_domain_real_time_http_code_data.go b/services/live/struct_value_in_describe_live_domain_real_time_http_code_data.go new file mode 100644 index 0000000000..4ee5d33e03 --- /dev/null +++ b/services/live/struct_value_in_describe_live_domain_real_time_http_code_data.go @@ -0,0 +1,21 @@ +package live + +//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. + +// ValueInDescribeLiveDomainRealTimeHttpCodeData is a nested struct in live response +type ValueInDescribeLiveDomainRealTimeHttpCodeData struct { + RealTimeCodeProportionData []RealTimeCodeProportionData `json:"RealTimeCodeProportionData" xml:"RealTimeCodeProportionData"` +} diff --git a/services/live/struct_value_in_describe_live_user_tags.go b/services/live/struct_value_in_describe_live_user_tags.go new file mode 100644 index 0000000000..bf63e0b929 --- /dev/null +++ b/services/live/struct_value_in_describe_live_user_tags.go @@ -0,0 +1,21 @@ +package live + +//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. + +// ValueInDescribeLiveUserTags is a nested struct in live response +type ValueInDescribeLiveUserTags struct { + Value []string `json:"Value" xml:"Value"` +} diff --git a/services/live/tag_live_resources.go b/services/live/tag_live_resources.go new file mode 100644 index 0000000000..e8ce67a424 --- /dev/null +++ b/services/live/tag_live_resources.go @@ -0,0 +1,112 @@ +package live + +//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" +) + +// TagLiveResources invokes the live.TagLiveResources API synchronously +// api document: https://help.aliyun.com/api/live/tagliveresources.html +func (client *Client) TagLiveResources(request *TagLiveResourcesRequest) (response *TagLiveResourcesResponse, err error) { + response = CreateTagLiveResourcesResponse() + err = client.DoAction(request, response) + return +} + +// TagLiveResourcesWithChan invokes the live.TagLiveResources API asynchronously +// api document: https://help.aliyun.com/api/live/tagliveresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TagLiveResourcesWithChan(request *TagLiveResourcesRequest) (<-chan *TagLiveResourcesResponse, <-chan error) { + responseChan := make(chan *TagLiveResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.TagLiveResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// TagLiveResourcesWithCallback invokes the live.TagLiveResources API asynchronously +// api document: https://help.aliyun.com/api/live/tagliveresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) TagLiveResourcesWithCallback(request *TagLiveResourcesRequest, callback func(response *TagLiveResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *TagLiveResourcesResponse + var err error + defer close(result) + response, err = client.TagLiveResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// TagLiveResourcesRequest is the request struct for api TagLiveResources +type TagLiveResourcesRequest struct { + *requests.RpcRequest + Tag *[]TagLiveResourcesTag `position:"Query" name:"Tag" type:"Repeated"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` +} + +// TagLiveResourcesTag is a repeated param struct in TagLiveResourcesRequest +type TagLiveResourcesTag struct { + Key string `name:"Key"` + Value string `name:"Value"` +} + +// TagLiveResourcesResponse is the response struct for api TagLiveResources +type TagLiveResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateTagLiveResourcesRequest creates a request to invoke TagLiveResources API +func CreateTagLiveResourcesRequest() (request *TagLiveResourcesRequest) { + request = &TagLiveResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "TagLiveResources", "live", "openAPI") + return +} + +// CreateTagLiveResourcesResponse creates a response to parse from TagLiveResources response +func CreateTagLiveResourcesResponse() (response *TagLiveResourcesResponse) { + response = &TagLiveResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/un_tag_live_resources.go b/services/live/un_tag_live_resources.go new file mode 100644 index 0000000000..c4d7e8da34 --- /dev/null +++ b/services/live/un_tag_live_resources.go @@ -0,0 +1,107 @@ +package live + +//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" +) + +// UnTagLiveResources invokes the live.UnTagLiveResources API synchronously +// api document: https://help.aliyun.com/api/live/untagliveresources.html +func (client *Client) UnTagLiveResources(request *UnTagLiveResourcesRequest) (response *UnTagLiveResourcesResponse, err error) { + response = CreateUnTagLiveResourcesResponse() + err = client.DoAction(request, response) + return +} + +// UnTagLiveResourcesWithChan invokes the live.UnTagLiveResources API asynchronously +// api document: https://help.aliyun.com/api/live/untagliveresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnTagLiveResourcesWithChan(request *UnTagLiveResourcesRequest) (<-chan *UnTagLiveResourcesResponse, <-chan error) { + responseChan := make(chan *UnTagLiveResourcesResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnTagLiveResources(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnTagLiveResourcesWithCallback invokes the live.UnTagLiveResources API asynchronously +// api document: https://help.aliyun.com/api/live/untagliveresources.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UnTagLiveResourcesWithCallback(request *UnTagLiveResourcesRequest, callback func(response *UnTagLiveResourcesResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnTagLiveResourcesResponse + var err error + defer close(result) + response, err = client.UnTagLiveResources(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnTagLiveResourcesRequest is the request struct for api UnTagLiveResources +type UnTagLiveResourcesRequest struct { + *requests.RpcRequest + All requests.Boolean `position:"Query" name:"All"` + ResourceId *[]string `position:"Query" name:"ResourceId" type:"Repeated"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + ResourceType string `position:"Query" name:"ResourceType"` + TagKey *[]string `position:"Query" name:"TagKey" type:"Repeated"` +} + +// UnTagLiveResourcesResponse is the response struct for api UnTagLiveResources +type UnTagLiveResourcesResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnTagLiveResourcesRequest creates a request to invoke UnTagLiveResources API +func CreateUnTagLiveResourcesRequest() (request *UnTagLiveResourcesRequest) { + request = &UnTagLiveResourcesRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UnTagLiveResources", "live", "openAPI") + return +} + +// CreateUnTagLiveResourcesResponse creates a response to parse from UnTagLiveResources response +func CreateUnTagLiveResourcesResponse() (response *UnTagLiveResourcesResponse) { + response = &UnTagLiveResourcesResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/update_live_audio_audit_config.go b/services/live/update_live_audio_audit_config.go new file mode 100644 index 0000000000..d26cbf6dab --- /dev/null +++ b/services/live/update_live_audio_audit_config.go @@ -0,0 +1,110 @@ +package live + +//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" +) + +// UpdateLiveAudioAuditConfig invokes the live.UpdateLiveAudioAuditConfig API synchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditconfig.html +func (client *Client) UpdateLiveAudioAuditConfig(request *UpdateLiveAudioAuditConfigRequest) (response *UpdateLiveAudioAuditConfigResponse, err error) { + response = CreateUpdateLiveAudioAuditConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveAudioAuditConfigWithChan invokes the live.UpdateLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAudioAuditConfigWithChan(request *UpdateLiveAudioAuditConfigRequest) (<-chan *UpdateLiveAudioAuditConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveAudioAuditConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveAudioAuditConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveAudioAuditConfigWithCallback invokes the live.UpdateLiveAudioAuditConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAudioAuditConfigWithCallback(request *UpdateLiveAudioAuditConfigRequest, callback func(response *UpdateLiveAudioAuditConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveAudioAuditConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveAudioAuditConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveAudioAuditConfigRequest is the request struct for api UpdateLiveAudioAuditConfig +type UpdateLiveAudioAuditConfigRequest struct { + *requests.RpcRequest + OssEndpoint string `position:"Query" name:"OssEndpoint"` + OssObject string `position:"Query" name:"OssObject"` + AppName string `position:"Query" name:"AppName"` + StreamName string `position:"Query" name:"StreamName"` + OssBucket string `position:"Query" name:"OssBucket"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + BizType string `position:"Query" name:"BizType"` +} + +// UpdateLiveAudioAuditConfigResponse is the response struct for api UpdateLiveAudioAuditConfig +type UpdateLiveAudioAuditConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveAudioAuditConfigRequest creates a request to invoke UpdateLiveAudioAuditConfig API +func CreateUpdateLiveAudioAuditConfigRequest() (request *UpdateLiveAudioAuditConfigRequest) { + request = &UpdateLiveAudioAuditConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveAudioAuditConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveAudioAuditConfigResponse creates a response to parse from UpdateLiveAudioAuditConfig response +func CreateUpdateLiveAudioAuditConfigResponse() (response *UpdateLiveAudioAuditConfigResponse) { + response = &UpdateLiveAudioAuditConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/update_live_audio_audit_notify_config.go b/services/live/update_live_audio_audit_notify_config.go new file mode 100644 index 0000000000..159875424a --- /dev/null +++ b/services/live/update_live_audio_audit_notify_config.go @@ -0,0 +1,106 @@ +package live + +//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" +) + +// UpdateLiveAudioAuditNotifyConfig invokes the live.UpdateLiveAudioAuditNotifyConfig API synchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditnotifyconfig.html +func (client *Client) UpdateLiveAudioAuditNotifyConfig(request *UpdateLiveAudioAuditNotifyConfigRequest) (response *UpdateLiveAudioAuditNotifyConfigResponse, err error) { + response = CreateUpdateLiveAudioAuditNotifyConfigResponse() + err = client.DoAction(request, response) + return +} + +// UpdateLiveAudioAuditNotifyConfigWithChan invokes the live.UpdateLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAudioAuditNotifyConfigWithChan(request *UpdateLiveAudioAuditNotifyConfigRequest) (<-chan *UpdateLiveAudioAuditNotifyConfigResponse, <-chan error) { + responseChan := make(chan *UpdateLiveAudioAuditNotifyConfigResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UpdateLiveAudioAuditNotifyConfig(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UpdateLiveAudioAuditNotifyConfigWithCallback invokes the live.UpdateLiveAudioAuditNotifyConfig API asynchronously +// api document: https://help.aliyun.com/api/live/updateliveaudioauditnotifyconfig.html +// asynchronous document: https://help.aliyun.com/document_detail/66220.html +func (client *Client) UpdateLiveAudioAuditNotifyConfigWithCallback(request *UpdateLiveAudioAuditNotifyConfigRequest, callback func(response *UpdateLiveAudioAuditNotifyConfigResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UpdateLiveAudioAuditNotifyConfigResponse + var err error + defer close(result) + response, err = client.UpdateLiveAudioAuditNotifyConfig(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UpdateLiveAudioAuditNotifyConfigRequest is the request struct for api UpdateLiveAudioAuditNotifyConfig +type UpdateLiveAudioAuditNotifyConfigRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + CallbackTemplate string `position:"Query" name:"CallbackTemplate"` + Callback string `position:"Query" name:"Callback"` +} + +// UpdateLiveAudioAuditNotifyConfigResponse is the response struct for api UpdateLiveAudioAuditNotifyConfig +type UpdateLiveAudioAuditNotifyConfigResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUpdateLiveAudioAuditNotifyConfigRequest creates a request to invoke UpdateLiveAudioAuditNotifyConfig API +func CreateUpdateLiveAudioAuditNotifyConfigRequest() (request *UpdateLiveAudioAuditNotifyConfigRequest) { + request = &UpdateLiveAudioAuditNotifyConfigRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveAudioAuditNotifyConfig", "live", "openAPI") + return +} + +// CreateUpdateLiveAudioAuditNotifyConfigResponse creates a response to parse from UpdateLiveAudioAuditNotifyConfig response +func CreateUpdateLiveAudioAuditNotifyConfigResponse() (response *UpdateLiveAudioAuditNotifyConfigResponse) { + response = &UpdateLiveAudioAuditNotifyConfigResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +}