diff --git a/ChangeLog.txt b/ChangeLog.txt index 2793e61d04..6441192714 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-08-22 Version: v1.63.5 +- Generated 2016-11-01 for `live`. +- Update to support new apis. + 2024-08-21 Version: v1.63.4 - Generated 2022-02-20 for `ecs-workbench`. - Support record for ecs. diff --git a/services/live/add_live_message_group_band.go b/services/live/add_live_message_group_band.go new file mode 100644 index 0000000000..f81da288a5 --- /dev/null +++ b/services/live/add_live_message_group_band.go @@ -0,0 +1,102 @@ +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" +) + +// AddLiveMessageGroupBand invokes the live.AddLiveMessageGroupBand API synchronously +func (client *Client) AddLiveMessageGroupBand(request *AddLiveMessageGroupBandRequest) (response *AddLiveMessageGroupBandResponse, err error) { + response = CreateAddLiveMessageGroupBandResponse() + err = client.DoAction(request, response) + return +} + +// AddLiveMessageGroupBandWithChan invokes the live.AddLiveMessageGroupBand API asynchronously +func (client *Client) AddLiveMessageGroupBandWithChan(request *AddLiveMessageGroupBandRequest) (<-chan *AddLiveMessageGroupBandResponse, <-chan error) { + responseChan := make(chan *AddLiveMessageGroupBandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.AddLiveMessageGroupBand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// AddLiveMessageGroupBandWithCallback invokes the live.AddLiveMessageGroupBand API asynchronously +func (client *Client) AddLiveMessageGroupBandWithCallback(request *AddLiveMessageGroupBandRequest, callback func(response *AddLiveMessageGroupBandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *AddLiveMessageGroupBandResponse + var err error + defer close(result) + response, err = client.AddLiveMessageGroupBand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// AddLiveMessageGroupBandRequest is the request struct for api AddLiveMessageGroupBand +type AddLiveMessageGroupBandRequest struct { + *requests.RpcRequest + BannedUsers *[]string `position:"Query" name:"BannedUsers" type:"Repeated"` + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// AddLiveMessageGroupBandResponse is the response struct for api AddLiveMessageGroupBand +type AddLiveMessageGroupBandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateAddLiveMessageGroupBandRequest creates a request to invoke AddLiveMessageGroupBand API +func CreateAddLiveMessageGroupBandRequest() (request *AddLiveMessageGroupBandRequest) { + request = &AddLiveMessageGroupBandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "AddLiveMessageGroupBand", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateAddLiveMessageGroupBandResponse creates a response to parse from AddLiveMessageGroupBand response +func CreateAddLiveMessageGroupBandResponse() (response *AddLiveMessageGroupBandResponse) { + response = &AddLiveMessageGroupBandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/ban_live_message_group.go b/services/live/ban_live_message_group.go new file mode 100644 index 0000000000..57be861af8 --- /dev/null +++ b/services/live/ban_live_message_group.go @@ -0,0 +1,102 @@ +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" +) + +// BanLiveMessageGroup invokes the live.BanLiveMessageGroup API synchronously +func (client *Client) BanLiveMessageGroup(request *BanLiveMessageGroupRequest) (response *BanLiveMessageGroupResponse, err error) { + response = CreateBanLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// BanLiveMessageGroupWithChan invokes the live.BanLiveMessageGroup API asynchronously +func (client *Client) BanLiveMessageGroupWithChan(request *BanLiveMessageGroupRequest) (<-chan *BanLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *BanLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BanLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BanLiveMessageGroupWithCallback invokes the live.BanLiveMessageGroup API asynchronously +func (client *Client) BanLiveMessageGroupWithCallback(request *BanLiveMessageGroupRequest, callback func(response *BanLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BanLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.BanLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BanLiveMessageGroupRequest is the request struct for api BanLiveMessageGroup +type BanLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + ExceptUsers *[]string `position:"Query" name:"ExceptUsers" type:"Repeated"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// BanLiveMessageGroupResponse is the response struct for api BanLiveMessageGroup +type BanLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateBanLiveMessageGroupRequest creates a request to invoke BanLiveMessageGroup API +func CreateBanLiveMessageGroupRequest() (request *BanLiveMessageGroupRequest) { + request = &BanLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "BanLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateBanLiveMessageGroupResponse creates a response to parse from BanLiveMessageGroup response +func CreateBanLiveMessageGroupResponse() (response *BanLiveMessageGroupResponse) { + response = &BanLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/create_caster.go b/services/live/create_caster.go index e1528428ed..0ecd317c13 100644 --- a/services/live/create_caster.go +++ b/services/live/create_caster.go @@ -71,15 +71,16 @@ func (client *Client) CreateCasterWithCallback(request *CreateCasterRequest, cal // CreateCasterRequest is the request struct for api CreateCaster type CreateCasterRequest struct { *requests.RpcRequest - ClientToken string `position:"Query" name:"ClientToken"` - CasterName string `position:"Query" name:"CasterName"` - CasterTemplate string `position:"Query" name:"CasterTemplate"` - ExpireTime string `position:"Query" name:"ExpireTime"` - NormType requests.Integer `position:"Query" name:"NormType"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - PurchaseTime string `position:"Query" name:"PurchaseTime"` - MicMode requests.Integer `position:"Query" name:"MicMode"` - ChargeType string `position:"Query" name:"ChargeType"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + CasterName string `position:"Query" name:"CasterName"` + CasterTemplate string `position:"Query" name:"CasterTemplate"` + ExpireTime string `position:"Query" name:"ExpireTime"` + NormType requests.Integer `position:"Query" name:"NormType"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + PurchaseTime string `position:"Query" name:"PurchaseTime"` + MicMode requests.Integer `position:"Query" name:"MicMode"` + ChargeType string `position:"Query" name:"ChargeType"` } // CreateCasterResponse is the response struct for api CreateCaster diff --git a/services/live/describe_caster_sync_group.go b/services/live/describe_caster_sync_group.go deleted file mode 100644 index a8a3a96b27..0000000000 --- a/services/live/describe_caster_sync_group.go +++ /dev/null @@ -1,102 +0,0 @@ -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" -) - -// DescribeCasterSyncGroup invokes the live.DescribeCasterSyncGroup API synchronously -func (client *Client) DescribeCasterSyncGroup(request *DescribeCasterSyncGroupRequest) (response *DescribeCasterSyncGroupResponse, err error) { - response = CreateDescribeCasterSyncGroupResponse() - err = client.DoAction(request, response) - return -} - -// DescribeCasterSyncGroupWithChan invokes the live.DescribeCasterSyncGroup API asynchronously -func (client *Client) DescribeCasterSyncGroupWithChan(request *DescribeCasterSyncGroupRequest) (<-chan *DescribeCasterSyncGroupResponse, <-chan error) { - responseChan := make(chan *DescribeCasterSyncGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeCasterSyncGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeCasterSyncGroupWithCallback invokes the live.DescribeCasterSyncGroup API asynchronously -func (client *Client) DescribeCasterSyncGroupWithCallback(request *DescribeCasterSyncGroupRequest, callback func(response *DescribeCasterSyncGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeCasterSyncGroupResponse - var err error - defer close(result) - response, err = client.DescribeCasterSyncGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeCasterSyncGroupRequest is the request struct for api DescribeCasterSyncGroup -type DescribeCasterSyncGroupRequest struct { - *requests.RpcRequest - CasterId string `position:"Query" name:"CasterId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeCasterSyncGroupResponse is the response struct for api DescribeCasterSyncGroup -type DescribeCasterSyncGroupResponse struct { - *responses.BaseResponse - CasterId string `json:"CasterId" xml:"CasterId"` - RequestId string `json:"RequestId" xml:"RequestId"` - SyncGroups SyncGroups `json:"SyncGroups" xml:"SyncGroups"` -} - -// CreateDescribeCasterSyncGroupRequest creates a request to invoke DescribeCasterSyncGroup API -func CreateDescribeCasterSyncGroupRequest() (request *DescribeCasterSyncGroupRequest) { - request = &DescribeCasterSyncGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "DescribeCasterSyncGroup", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeCasterSyncGroupResponse creates a response to parse from DescribeCasterSyncGroup response -func CreateDescribeCasterSyncGroupResponse() (response *DescribeCasterSyncGroupResponse) { - response = &DescribeCasterSyncGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/describe_casters.go b/services/live/describe_casters.go index baf85735f8..1e71530bfe 100644 --- a/services/live/describe_casters.go +++ b/services/live/describe_casters.go @@ -73,6 +73,7 @@ type DescribeCastersRequest struct { *requests.RpcRequest StartTime string `position:"Query" name:"StartTime"` PageNum requests.Integer `position:"Query" name:"PageNum"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` CasterName string `position:"Query" name:"CasterName"` PageSize requests.Integer `position:"Query" name:"PageSize"` NormType string `position:"Query" name:"NormType"` diff --git a/services/live/describe_live_domain_record_data.go b/services/live/describe_live_domain_record_data.go deleted file mode 100644 index cc5abafc3d..0000000000 --- a/services/live/describe_live_domain_record_data.go +++ /dev/null @@ -1,104 +0,0 @@ -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" -) - -// DescribeLiveDomainRecordData invokes the live.DescribeLiveDomainRecordData API synchronously -func (client *Client) DescribeLiveDomainRecordData(request *DescribeLiveDomainRecordDataRequest) (response *DescribeLiveDomainRecordDataResponse, err error) { - response = CreateDescribeLiveDomainRecordDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLiveDomainRecordDataWithChan invokes the live.DescribeLiveDomainRecordData API asynchronously -func (client *Client) DescribeLiveDomainRecordDataWithChan(request *DescribeLiveDomainRecordDataRequest) (<-chan *DescribeLiveDomainRecordDataResponse, <-chan error) { - responseChan := make(chan *DescribeLiveDomainRecordDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLiveDomainRecordData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLiveDomainRecordDataWithCallback invokes the live.DescribeLiveDomainRecordData API asynchronously -func (client *Client) DescribeLiveDomainRecordDataWithCallback(request *DescribeLiveDomainRecordDataRequest, callback func(response *DescribeLiveDomainRecordDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLiveDomainRecordDataResponse - var err error - defer close(result) - response, err = client.DescribeLiveDomainRecordData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLiveDomainRecordDataRequest is the request struct for api DescribeLiveDomainRecordData -type DescribeLiveDomainRecordDataRequest struct { - *requests.RpcRequest - StartTime string `position:"Query" name:"StartTime"` - RecordType string `position:"Query" name:"RecordType"` - DomainName string `position:"Query" name:"DomainName"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeLiveDomainRecordDataResponse is the response struct for api DescribeLiveDomainRecordData -type DescribeLiveDomainRecordDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - RecordDataInfos RecordDataInfos `json:"RecordDataInfos" xml:"RecordDataInfos"` -} - -// CreateDescribeLiveDomainRecordDataRequest creates a request to invoke DescribeLiveDomainRecordData API -func CreateDescribeLiveDomainRecordDataRequest() (request *DescribeLiveDomainRecordDataRequest) { - request = &DescribeLiveDomainRecordDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainRecordData", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLiveDomainRecordDataResponse creates a response to parse from DescribeLiveDomainRecordData response -func CreateDescribeLiveDomainRecordDataResponse() (response *DescribeLiveDomainRecordDataResponse) { - response = &DescribeLiveDomainRecordDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/describe_live_domain_transcode_data.go b/services/live/describe_live_domain_transcode_data.go deleted file mode 100644 index 5a4250450f..0000000000 --- a/services/live/describe_live_domain_transcode_data.go +++ /dev/null @@ -1,103 +0,0 @@ -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" -) - -// DescribeLiveDomainTranscodeData invokes the live.DescribeLiveDomainTranscodeData API synchronously -func (client *Client) DescribeLiveDomainTranscodeData(request *DescribeLiveDomainTranscodeDataRequest) (response *DescribeLiveDomainTranscodeDataResponse, err error) { - response = CreateDescribeLiveDomainTranscodeDataResponse() - err = client.DoAction(request, response) - return -} - -// DescribeLiveDomainTranscodeDataWithChan invokes the live.DescribeLiveDomainTranscodeData API asynchronously -func (client *Client) DescribeLiveDomainTranscodeDataWithChan(request *DescribeLiveDomainTranscodeDataRequest) (<-chan *DescribeLiveDomainTranscodeDataResponse, <-chan error) { - responseChan := make(chan *DescribeLiveDomainTranscodeDataResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeLiveDomainTranscodeData(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeLiveDomainTranscodeDataWithCallback invokes the live.DescribeLiveDomainTranscodeData API asynchronously -func (client *Client) DescribeLiveDomainTranscodeDataWithCallback(request *DescribeLiveDomainTranscodeDataRequest, callback func(response *DescribeLiveDomainTranscodeDataResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeLiveDomainTranscodeDataResponse - var err error - defer close(result) - response, err = client.DescribeLiveDomainTranscodeData(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeLiveDomainTranscodeDataRequest is the request struct for api DescribeLiveDomainTranscodeData -type DescribeLiveDomainTranscodeDataRequest struct { - *requests.RpcRequest - StartTime string `position:"Query" name:"StartTime"` - DomainName string `position:"Query" name:"DomainName"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// DescribeLiveDomainTranscodeDataResponse is the response struct for api DescribeLiveDomainTranscodeData -type DescribeLiveDomainTranscodeDataResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` - TranscodeDataInfos TranscodeDataInfos `json:"TranscodeDataInfos" xml:"TranscodeDataInfos"` -} - -// CreateDescribeLiveDomainTranscodeDataRequest creates a request to invoke DescribeLiveDomainTranscodeData API -func CreateDescribeLiveDomainTranscodeDataRequest() (request *DescribeLiveDomainTranscodeDataRequest) { - request = &DescribeLiveDomainTranscodeDataRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveDomainTranscodeData", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeLiveDomainTranscodeDataResponse creates a response to parse from DescribeLiveDomainTranscodeData response -func CreateDescribeLiveDomainTranscodeDataResponse() (response *DescribeLiveDomainTranscodeDataResponse) { - response = &DescribeLiveDomainTranscodeDataResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/describe_live_tag_resources.go b/services/live/describe_live_tag_resources.go deleted file mode 100644 index b11a6db97e..0000000000 --- a/services/live/describe_live_tag_resources.go +++ /dev/null @@ -1,110 +0,0 @@ -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 -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 -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 -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") - request.Method = requests.POST - 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_meter_live_interaction_dau.go b/services/live/describe_meter_live_interaction_dau.go deleted file mode 100644 index dc94d914c4..0000000000 --- a/services/live/describe_meter_live_interaction_dau.go +++ /dev/null @@ -1,105 +0,0 @@ -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" -) - -// DescribeMeterLiveInteractionDau invokes the live.DescribeMeterLiveInteractionDau API synchronously -func (client *Client) DescribeMeterLiveInteractionDau(request *DescribeMeterLiveInteractionDauRequest) (response *DescribeMeterLiveInteractionDauResponse, err error) { - response = CreateDescribeMeterLiveInteractionDauResponse() - err = client.DoAction(request, response) - return -} - -// DescribeMeterLiveInteractionDauWithChan invokes the live.DescribeMeterLiveInteractionDau API asynchronously -func (client *Client) DescribeMeterLiveInteractionDauWithChan(request *DescribeMeterLiveInteractionDauRequest) (<-chan *DescribeMeterLiveInteractionDauResponse, <-chan error) { - responseChan := make(chan *DescribeMeterLiveInteractionDauResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeMeterLiveInteractionDau(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeMeterLiveInteractionDauWithCallback invokes the live.DescribeMeterLiveInteractionDau API asynchronously -func (client *Client) DescribeMeterLiveInteractionDauWithCallback(request *DescribeMeterLiveInteractionDauRequest, callback func(response *DescribeMeterLiveInteractionDauResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeMeterLiveInteractionDauResponse - var err error - defer close(result) - response, err = client.DescribeMeterLiveInteractionDau(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeMeterLiveInteractionDauRequest is the request struct for api DescribeMeterLiveInteractionDau -type DescribeMeterLiveInteractionDauRequest struct { - *requests.RpcRequest - StartTs requests.Integer `position:"Query" name:"StartTs"` - ServiceArea string `position:"Query" name:"ServiceArea"` - AppId string `position:"Query" name:"AppId"` - EndTs requests.Integer `position:"Query" name:"EndTs"` - Interval requests.Integer `position:"Query" name:"Interval"` -} - -// DescribeMeterLiveInteractionDauResponse is the response struct for api DescribeMeterLiveInteractionDau -type DescribeMeterLiveInteractionDauResponse struct { - *responses.BaseResponse - PeakDau string `json:"PeakDau" xml:"PeakDau"` - RequestId string `json:"RequestId" xml:"RequestId"` - Data []DataItemInDescribeMeterLiveInteractionDau `json:"Data" xml:"Data"` -} - -// CreateDescribeMeterLiveInteractionDauRequest creates a request to invoke DescribeMeterLiveInteractionDau API -func CreateDescribeMeterLiveInteractionDauRequest() (request *DescribeMeterLiveInteractionDauRequest) { - request = &DescribeMeterLiveInteractionDauRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "DescribeMeterLiveInteractionDau", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeMeterLiveInteractionDauResponse creates a response to parse from DescribeMeterLiveInteractionDau response -func CreateDescribeMeterLiveInteractionDauResponse() (response *DescribeMeterLiveInteractionDauResponse) { - response = &DescribeMeterLiveInteractionDauResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/describe_meter_live_rtc_duration.go b/services/live/describe_meter_live_rtc_duration.go deleted file mode 100644 index 7013166eec..0000000000 --- a/services/live/describe_meter_live_rtc_duration.go +++ /dev/null @@ -1,109 +0,0 @@ -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" -) - -// DescribeMeterLiveRtcDuration invokes the live.DescribeMeterLiveRtcDuration API synchronously -func (client *Client) DescribeMeterLiveRtcDuration(request *DescribeMeterLiveRtcDurationRequest) (response *DescribeMeterLiveRtcDurationResponse, err error) { - response = CreateDescribeMeterLiveRtcDurationResponse() - err = client.DoAction(request, response) - return -} - -// DescribeMeterLiveRtcDurationWithChan invokes the live.DescribeMeterLiveRtcDuration API asynchronously -func (client *Client) DescribeMeterLiveRtcDurationWithChan(request *DescribeMeterLiveRtcDurationRequest) (<-chan *DescribeMeterLiveRtcDurationResponse, <-chan error) { - responseChan := make(chan *DescribeMeterLiveRtcDurationResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.DescribeMeterLiveRtcDuration(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// DescribeMeterLiveRtcDurationWithCallback invokes the live.DescribeMeterLiveRtcDuration API asynchronously -func (client *Client) DescribeMeterLiveRtcDurationWithCallback(request *DescribeMeterLiveRtcDurationRequest, callback func(response *DescribeMeterLiveRtcDurationResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *DescribeMeterLiveRtcDurationResponse - var err error - defer close(result) - response, err = client.DescribeMeterLiveRtcDuration(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// DescribeMeterLiveRtcDurationRequest is the request struct for api DescribeMeterLiveRtcDuration -type DescribeMeterLiveRtcDurationRequest struct { - *requests.RpcRequest - EndTime string `position:"Query" name:"EndTime"` - StartTime string `position:"Query" name:"StartTime"` - ServiceArea string `position:"Query" name:"ServiceArea"` - AppId string `position:"Query" name:"appId"` - Interval string `position:"Query" name:"Interval"` -} - -// DescribeMeterLiveRtcDurationResponse is the response struct for api DescribeMeterLiveRtcDuration -type DescribeMeterLiveRtcDurationResponse struct { - *responses.BaseResponse - AudioSummaryDuration int64 `json:"AudioSummaryDuration" xml:"AudioSummaryDuration"` - RequestId string `json:"RequestId" xml:"RequestId"` - TotalSummaryDuration int64 `json:"TotalSummaryDuration" xml:"TotalSummaryDuration"` - V480SummaryDuration int64 `json:"V480SummaryDuration" xml:"V480SummaryDuration"` - V720SummaryDuration int64 `json:"V720SummaryDuration" xml:"V720SummaryDuration"` - V1080SummaryDuration int64 `json:"V1080SummaryDuration" xml:"V1080SummaryDuration"` - Data []DataItem `json:"Data" xml:"Data"` -} - -// CreateDescribeMeterLiveRtcDurationRequest creates a request to invoke DescribeMeterLiveRtcDuration API -func CreateDescribeMeterLiveRtcDurationRequest() (request *DescribeMeterLiveRtcDurationRequest) { - request = &DescribeMeterLiveRtcDurationRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "DescribeMeterLiveRtcDuration", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateDescribeMeterLiveRtcDurationResponse creates a response to parse from DescribeMeterLiveRtcDuration response -func CreateDescribeMeterLiveRtcDurationResponse() (response *DescribeMeterLiveRtcDurationResponse) { - response = &DescribeMeterLiveRtcDurationResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/remove_live_message_group_band.go b/services/live/remove_live_message_group_band.go new file mode 100644 index 0000000000..9b6bda487c --- /dev/null +++ b/services/live/remove_live_message_group_band.go @@ -0,0 +1,102 @@ +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" +) + +// RemoveLiveMessageGroupBand invokes the live.RemoveLiveMessageGroupBand API synchronously +func (client *Client) RemoveLiveMessageGroupBand(request *RemoveLiveMessageGroupBandRequest) (response *RemoveLiveMessageGroupBandResponse, err error) { + response = CreateRemoveLiveMessageGroupBandResponse() + err = client.DoAction(request, response) + return +} + +// RemoveLiveMessageGroupBandWithChan invokes the live.RemoveLiveMessageGroupBand API asynchronously +func (client *Client) RemoveLiveMessageGroupBandWithChan(request *RemoveLiveMessageGroupBandRequest) (<-chan *RemoveLiveMessageGroupBandResponse, <-chan error) { + responseChan := make(chan *RemoveLiveMessageGroupBandResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.RemoveLiveMessageGroupBand(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// RemoveLiveMessageGroupBandWithCallback invokes the live.RemoveLiveMessageGroupBand API asynchronously +func (client *Client) RemoveLiveMessageGroupBandWithCallback(request *RemoveLiveMessageGroupBandRequest, callback func(response *RemoveLiveMessageGroupBandResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *RemoveLiveMessageGroupBandResponse + var err error + defer close(result) + response, err = client.RemoveLiveMessageGroupBand(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// RemoveLiveMessageGroupBandRequest is the request struct for api RemoveLiveMessageGroupBand +type RemoveLiveMessageGroupBandRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + UnbannedUsers *[]string `position:"Query" name:"UnbannedUsers" type:"Repeated"` + AppId string `position:"Query" name:"AppId"` +} + +// RemoveLiveMessageGroupBandResponse is the response struct for api RemoveLiveMessageGroupBand +type RemoveLiveMessageGroupBandResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateRemoveLiveMessageGroupBandRequest creates a request to invoke RemoveLiveMessageGroupBand API +func CreateRemoveLiveMessageGroupBandRequest() (request *RemoveLiveMessageGroupBandRequest) { + request = &RemoveLiveMessageGroupBandRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "RemoveLiveMessageGroupBand", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateRemoveLiveMessageGroupBandResponse creates a response to parse from RemoveLiveMessageGroupBand response +func CreateRemoveLiveMessageGroupBandResponse() (response *RemoveLiveMessageGroupBandResponse) { + response = &RemoveLiveMessageGroupBandResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/set_caster_sync_group.go b/services/live/set_caster_sync_group.go deleted file mode 100644 index 7f15cba34d..0000000000 --- a/services/live/set_caster_sync_group.go +++ /dev/null @@ -1,110 +0,0 @@ -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" -) - -// SetCasterSyncGroup invokes the live.SetCasterSyncGroup API synchronously -func (client *Client) SetCasterSyncGroup(request *SetCasterSyncGroupRequest) (response *SetCasterSyncGroupResponse, err error) { - response = CreateSetCasterSyncGroupResponse() - err = client.DoAction(request, response) - return -} - -// SetCasterSyncGroupWithChan invokes the live.SetCasterSyncGroup API asynchronously -func (client *Client) SetCasterSyncGroupWithChan(request *SetCasterSyncGroupRequest) (<-chan *SetCasterSyncGroupResponse, <-chan error) { - responseChan := make(chan *SetCasterSyncGroupResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetCasterSyncGroup(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetCasterSyncGroupWithCallback invokes the live.SetCasterSyncGroup API asynchronously -func (client *Client) SetCasterSyncGroupWithCallback(request *SetCasterSyncGroupRequest, callback func(response *SetCasterSyncGroupResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetCasterSyncGroupResponse - var err error - defer close(result) - response, err = client.SetCasterSyncGroup(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetCasterSyncGroupRequest is the request struct for api SetCasterSyncGroup -type SetCasterSyncGroupRequest struct { - *requests.RpcRequest - CasterId string `position:"Query" name:"CasterId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SyncGroup *[]SetCasterSyncGroupSyncGroup `position:"Query" name:"SyncGroup" type:"Repeated"` -} - -// SetCasterSyncGroupSyncGroup is a repeated param struct in SetCasterSyncGroupRequest -type SetCasterSyncGroupSyncGroup struct { - HostResourceId string `name:"HostResourceId"` - Mode string `name:"Mode"` - ResourceIds *[]string `name:"ResourceIds" type:"Repeated"` - SyncDelayThreshold string `name:"SyncDelayThreshold"` - SyncOffsets *[]string `name:"SyncOffsets" type:"Repeated"` -} - -// SetCasterSyncGroupResponse is the response struct for api SetCasterSyncGroup -type SetCasterSyncGroupResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetCasterSyncGroupRequest creates a request to invoke SetCasterSyncGroup API -func CreateSetCasterSyncGroupRequest() (request *SetCasterSyncGroupRequest) { - request = &SetCasterSyncGroupRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "SetCasterSyncGroup", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetCasterSyncGroupResponse creates a response to parse from SetCasterSyncGroup response -func CreateSetCasterSyncGroupResponse() (response *SetCasterSyncGroupResponse) { - response = &SetCasterSyncGroupResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/set_caster_timed_event.go b/services/live/set_caster_timed_event.go deleted file mode 100644 index e357d1c7a5..0000000000 --- a/services/live/set_caster_timed_event.go +++ /dev/null @@ -1,102 +0,0 @@ -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" -) - -// SetCasterTimedEvent invokes the live.SetCasterTimedEvent API synchronously -func (client *Client) SetCasterTimedEvent(request *SetCasterTimedEventRequest) (response *SetCasterTimedEventResponse, err error) { - response = CreateSetCasterTimedEventResponse() - err = client.DoAction(request, response) - return -} - -// SetCasterTimedEventWithChan invokes the live.SetCasterTimedEvent API asynchronously -func (client *Client) SetCasterTimedEventWithChan(request *SetCasterTimedEventRequest) (<-chan *SetCasterTimedEventResponse, <-chan error) { - responseChan := make(chan *SetCasterTimedEventResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.SetCasterTimedEvent(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// SetCasterTimedEventWithCallback invokes the live.SetCasterTimedEvent API asynchronously -func (client *Client) SetCasterTimedEventWithCallback(request *SetCasterTimedEventRequest, callback func(response *SetCasterTimedEventResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *SetCasterTimedEventResponse - var err error - defer close(result) - response, err = client.SetCasterTimedEvent(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// SetCasterTimedEventRequest is the request struct for api SetCasterTimedEvent -type SetCasterTimedEventRequest struct { - *requests.RpcRequest - EventName string `position:"Query" name:"EventName"` - StartTimeUTC string `position:"Query" name:"StartTimeUTC"` - CasterId string `position:"Query" name:"CasterId"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` -} - -// SetCasterTimedEventResponse is the response struct for api SetCasterTimedEvent -type SetCasterTimedEventResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateSetCasterTimedEventRequest creates a request to invoke SetCasterTimedEvent API -func CreateSetCasterTimedEventRequest() (request *SetCasterTimedEventRequest) { - request = &SetCasterTimedEventRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "SetCasterTimedEvent", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateSetCasterTimedEventResponse creates a response to parse from SetCasterTimedEvent response -func CreateSetCasterTimedEventResponse() (response *SetCasterTimedEventResponse) { - response = &SetCasterTimedEventResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -} diff --git a/services/live/struct_caster.go b/services/live/struct_caster.go index e3cb47fc2f..ccc526b7df 100644 --- a/services/live/struct_caster.go +++ b/services/live/struct_caster.go @@ -17,18 +17,20 @@ package live // Caster is a nested struct in live response type Caster struct { - CasterId string `json:"CasterId" xml:"CasterId"` - CasterName string `json:"CasterName" xml:"CasterName"` - CasterTemplate string `json:"CasterTemplate" xml:"CasterTemplate"` - ChannelEnable int `json:"ChannelEnable" xml:"ChannelEnable"` - ChargeType string `json:"ChargeType" xml:"ChargeType"` - CreateTime string `json:"CreateTime" xml:"CreateTime"` - Duration string `json:"Duration" xml:"Duration"` - ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` - LastModified string `json:"LastModified" xml:"LastModified"` - NormType int `json:"NormType" xml:"NormType"` - PurchaseTime string `json:"PurchaseTime" xml:"PurchaseTime"` - RoomId int `json:"RoomId" xml:"RoomId"` - StartTime string `json:"StartTime" xml:"StartTime"` - Status int `json:"Status" xml:"Status"` + CasterId string `json:"CasterId" xml:"CasterId"` + CasterName string `json:"CasterName" xml:"CasterName"` + CasterTemplate string `json:"CasterTemplate" xml:"CasterTemplate"` + ChannelEnable int `json:"ChannelEnable" xml:"ChannelEnable"` + ChargeType string `json:"ChargeType" xml:"ChargeType"` + CreateTime string `json:"CreateTime" xml:"CreateTime"` + Duration string `json:"Duration" xml:"Duration"` + ExpireTime string `json:"ExpireTime" xml:"ExpireTime"` + LastModified string `json:"LastModified" xml:"LastModified"` + NormType int `json:"NormType" xml:"NormType"` + PurchaseTime string `json:"PurchaseTime" xml:"PurchaseTime"` + RoomId int `json:"RoomId" xml:"RoomId"` + StartTime string `json:"StartTime" xml:"StartTime"` + Status int `json:"Status" xml:"Status"` + ResourceGroupId int `json:"ResourceGroupId" xml:"ResourceGroupId"` + ClientTokenId string `json:"ClientTokenId" xml:"ClientTokenId"` } diff --git a/services/live/struct_data_in_describe_meter_live_interaction_dau.go b/services/live/struct_data_in_describe_meter_live_interaction_dau.go deleted file mode 100644 index d34a3805e7..0000000000 --- a/services/live/struct_data_in_describe_meter_live_interaction_dau.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// DataInDescribeMeterLiveInteractionDau is a nested struct in live response -type DataInDescribeMeterLiveInteractionDau struct { - DataItem []DataItemInDescribeMeterLiveInteractionDau `json:"Data" xml:"Data"` -} diff --git a/services/live/struct_data_in_describe_meter_live_rtc_duration.go b/services/live/struct_data_in_describe_meter_live_rtc_duration.go deleted file mode 100644 index 9ff39a3b1f..0000000000 --- a/services/live/struct_data_in_describe_meter_live_rtc_duration.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// DataInDescribeMeterLiveRtcDuration is a nested struct in live response -type DataInDescribeMeterLiveRtcDuration struct { - DataItem []DataItem `json:"Data" xml:"Data"` -} diff --git a/services/live/struct_data_item.go b/services/live/struct_data_item.go index 2b8bd96069..45dbdfc0ad 100644 --- a/services/live/struct_data_item.go +++ b/services/live/struct_data_item.go @@ -19,10 +19,10 @@ package live type DataItem struct { AudioDuration int64 `json:"AudioDuration" xml:"AudioDuration"` SingleAudio int64 `json:"Single_Audio" xml:"Single_Audio"` - V480Duration int64 `json:"V480Duration" xml:"V480Duration"` - TotalDuration int64 `json:"TotalDuration" xml:"TotalDuration"` + SingleVideo int64 `json:"Single_Video" xml:"Single_Video"` Timestamp string `json:"Timestamp" xml:"Timestamp"` + TotalDuration int64 `json:"TotalDuration" xml:"TotalDuration"` + V480Duration int64 `json:"V480Duration" xml:"V480Duration"` V720Duration int64 `json:"V720Duration" xml:"V720Duration"` - SingleVideo int64 `json:"Single_Video" xml:"Single_Video"` V1080Duration int64 `json:"V1080Duration" xml:"V1080Duration"` } diff --git a/services/live/struct_data_item_in_describe_meter_live_interaction_dau.go b/services/live/struct_data_item_in_describe_meter_live_interaction_dau.go deleted file mode 100644 index e421c61afa..0000000000 --- a/services/live/struct_data_item_in_describe_meter_live_interaction_dau.go +++ /dev/null @@ -1,22 +0,0 @@ -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. - -// DataItemInDescribeMeterLiveInteractionDau is a nested struct in live response -type DataItemInDescribeMeterLiveInteractionDau struct { - Dau string `json:"Dau" xml:"Dau"` - Timestamp int64 `json:"Timestamp" xml:"Timestamp"` -} diff --git a/services/live/struct_detail.go b/services/live/struct_detail.go deleted file mode 100644 index 3824dc5328..0000000000 --- a/services/live/struct_detail.go +++ /dev/null @@ -1,23 +0,0 @@ -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. - -// Detail is a nested struct in live response -type Detail struct { - FLV int `json:"FLV" xml:"FLV"` - TS int `json:"TS" xml:"TS"` - MP4 int `json:"MP4" xml:"MP4"` -} diff --git a/services/live/struct_record_data_info.go b/services/live/struct_record_data_info.go deleted file mode 100644 index 10252a6e77..0000000000 --- a/services/live/struct_record_data_info.go +++ /dev/null @@ -1,23 +0,0 @@ -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. - -// RecordDataInfo is a nested struct in live response -type RecordDataInfo struct { - Date string `json:"Date" xml:"Date"` - Total int `json:"Total" xml:"Total"` - Detail Detail `json:"Detail" xml:"Detail"` -} diff --git a/services/live/struct_record_data_infos.go b/services/live/struct_record_data_infos.go deleted file mode 100644 index e423a6ad71..0000000000 --- a/services/live/struct_record_data_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// RecordDataInfos is a nested struct in live response -type RecordDataInfos struct { - RecordDataInfo []RecordDataInfo `json:"RecordDataInfo" xml:"RecordDataInfo"` -} diff --git a/services/live/struct_resource_ids_in_describe_caster_config.go b/services/live/struct_resource_ids.go similarity index 86% rename from services/live/struct_resource_ids_in_describe_caster_config.go rename to services/live/struct_resource_ids.go index 72e89c1e93..2d9fbdf831 100644 --- a/services/live/struct_resource_ids_in_describe_caster_config.go +++ b/services/live/struct_resource_ids.go @@ -15,7 +15,7 @@ package live // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ResourceIdsInDescribeCasterConfig is a nested struct in live response -type ResourceIdsInDescribeCasterConfig struct { +// ResourceIds is a nested struct in live response +type ResourceIds struct { ResourceId []string `json:"ResourceId" xml:"ResourceId"` } diff --git a/services/live/struct_resource_ids_in_describe_caster_sync_group.go b/services/live/struct_resource_ids_in_describe_caster_sync_group.go deleted file mode 100644 index 73159c2bdd..0000000000 --- a/services/live/struct_resource_ids_in_describe_caster_sync_group.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// ResourceIdsInDescribeCasterSyncGroup is a nested struct in live response -type ResourceIdsInDescribeCasterSyncGroup struct { - ResourceId []string `json:"ResourceId" xml:"ResourceId"` -} diff --git a/services/live/struct_sync_group.go b/services/live/struct_sync_group.go index da2ef8b79f..b1ab276d2a 100644 --- a/services/live/struct_sync_group.go +++ b/services/live/struct_sync_group.go @@ -17,7 +17,7 @@ package live // SyncGroup is a nested struct in live response type SyncGroup struct { - HostResourceId string `json:"HostResourceId" xml:"HostResourceId"` - Mode int `json:"Mode" xml:"Mode"` - ResourceIds ResourceIdsInDescribeCasterConfig `json:"ResourceIds" xml:"ResourceIds"` + HostResourceId string `json:"HostResourceId" xml:"HostResourceId"` + Mode int `json:"Mode" xml:"Mode"` + ResourceIds ResourceIds `json:"ResourceIds" xml:"ResourceIds"` } diff --git a/services/live/struct_sync_groups.go b/services/live/struct_sync_groups.go deleted file mode 100644 index 478772e4a5..0000000000 --- a/services/live/struct_sync_groups.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// SyncGroups is a nested struct in live response -type SyncGroups struct { - SyncGroup []SyncGroup `json:"SyncGroup" xml:"SyncGroup"` -} diff --git a/services/live/struct_tag_in_describe_live_tag_resources.go b/services/live/struct_tag_in_describe_live_tag_resources.go deleted file mode 100644 index ccbe03d0f1..0000000000 --- a/services/live/struct_tag_in_describe_live_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -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 deleted file mode 100644 index 052924d45c..0000000000 --- a/services/live/struct_tag_item.go +++ /dev/null @@ -1,22 +0,0 @@ -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 deleted file mode 100644 index 033f9363dd..0000000000 --- a/services/live/struct_tag_resource.go +++ /dev/null @@ -1,22 +0,0 @@ -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 deleted file mode 100644 index 3332f0f303..0000000000 --- a/services/live/struct_tag_resources.go +++ /dev/null @@ -1,21 +0,0 @@ -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_transcode_data_info.go b/services/live/struct_transcode_data_info.go deleted file mode 100644 index f142d3ccdd..0000000000 --- a/services/live/struct_transcode_data_info.go +++ /dev/null @@ -1,23 +0,0 @@ -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. - -// TranscodeDataInfo is a nested struct in live response -type TranscodeDataInfo struct { - Date string `json:"Date" xml:"Date"` - Total int `json:"Total" xml:"Total"` - Detail string `json:"Detail" xml:"Detail"` -} diff --git a/services/live/struct_transcode_data_infos.go b/services/live/struct_transcode_data_infos.go deleted file mode 100644 index d8f6744a47..0000000000 --- a/services/live/struct_transcode_data_infos.go +++ /dev/null @@ -1,21 +0,0 @@ -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. - -// TranscodeDataInfos is a nested struct in live response -type TranscodeDataInfos struct { - TranscodeDataInfo []TranscodeDataInfo `json:"TranscodeDataInfo" xml:"TranscodeDataInfo"` -} diff --git a/services/live/tag_live_resources.go b/services/live/tag_live_resources.go deleted file mode 100644 index 4712928171..0000000000 --- a/services/live/tag_live_resources.go +++ /dev/null @@ -1,108 +0,0 @@ -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 -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 -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 -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") - request.Method = requests.POST - 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 deleted file mode 100644 index 63b74e03ec..0000000000 --- a/services/live/un_tag_live_resources.go +++ /dev/null @@ -1,103 +0,0 @@ -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 -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 -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 -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") - request.Method = requests.POST - 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/unban_live_message_group.go b/services/live/unban_live_message_group.go new file mode 100644 index 0000000000..07e51d438a --- /dev/null +++ b/services/live/unban_live_message_group.go @@ -0,0 +1,101 @@ +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" +) + +// UnbanLiveMessageGroup invokes the live.UnbanLiveMessageGroup API synchronously +func (client *Client) UnbanLiveMessageGroup(request *UnbanLiveMessageGroupRequest) (response *UnbanLiveMessageGroupResponse, err error) { + response = CreateUnbanLiveMessageGroupResponse() + err = client.DoAction(request, response) + return +} + +// UnbanLiveMessageGroupWithChan invokes the live.UnbanLiveMessageGroup API asynchronously +func (client *Client) UnbanLiveMessageGroupWithChan(request *UnbanLiveMessageGroupRequest) (<-chan *UnbanLiveMessageGroupResponse, <-chan error) { + responseChan := make(chan *UnbanLiveMessageGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.UnbanLiveMessageGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// UnbanLiveMessageGroupWithCallback invokes the live.UnbanLiveMessageGroup API asynchronously +func (client *Client) UnbanLiveMessageGroupWithCallback(request *UnbanLiveMessageGroupRequest, callback func(response *UnbanLiveMessageGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *UnbanLiveMessageGroupResponse + var err error + defer close(result) + response, err = client.UnbanLiveMessageGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// UnbanLiveMessageGroupRequest is the request struct for api UnbanLiveMessageGroup +type UnbanLiveMessageGroupRequest struct { + *requests.RpcRequest + GroupId string `position:"Query" name:"GroupId"` + DataCenter string `position:"Query" name:"DataCenter"` + AppId string `position:"Query" name:"AppId"` +} + +// UnbanLiveMessageGroupResponse is the response struct for api UnbanLiveMessageGroup +type UnbanLiveMessageGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateUnbanLiveMessageGroupRequest creates a request to invoke UnbanLiveMessageGroup API +func CreateUnbanLiveMessageGroupRequest() (request *UnbanLiveMessageGroupRequest) { + request = &UnbanLiveMessageGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "UnbanLiveMessageGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateUnbanLiveMessageGroupResponse creates a response to parse from UnbanLiveMessageGroup response +func CreateUnbanLiveMessageGroupResponse() (response *UnbanLiveMessageGroupResponse) { + response = &UnbanLiveMessageGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/update_live_top_level_domain.go b/services/live/update_live_top_level_domain.go deleted file mode 100644 index cf12e07025..0000000000 --- a/services/live/update_live_top_level_domain.go +++ /dev/null @@ -1,102 +0,0 @@ -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" -) - -// UpdateLiveTopLevelDomain invokes the live.UpdateLiveTopLevelDomain API synchronously -func (client *Client) UpdateLiveTopLevelDomain(request *UpdateLiveTopLevelDomainRequest) (response *UpdateLiveTopLevelDomainResponse, err error) { - response = CreateUpdateLiveTopLevelDomainResponse() - err = client.DoAction(request, response) - return -} - -// UpdateLiveTopLevelDomainWithChan invokes the live.UpdateLiveTopLevelDomain API asynchronously -func (client *Client) UpdateLiveTopLevelDomainWithChan(request *UpdateLiveTopLevelDomainRequest) (<-chan *UpdateLiveTopLevelDomainResponse, <-chan error) { - responseChan := make(chan *UpdateLiveTopLevelDomainResponse, 1) - errChan := make(chan error, 1) - err := client.AddAsyncTask(func() { - defer close(responseChan) - defer close(errChan) - response, err := client.UpdateLiveTopLevelDomain(request) - if err != nil { - errChan <- err - } else { - responseChan <- response - } - }) - if err != nil { - errChan <- err - close(responseChan) - close(errChan) - } - return responseChan, errChan -} - -// UpdateLiveTopLevelDomainWithCallback invokes the live.UpdateLiveTopLevelDomain API asynchronously -func (client *Client) UpdateLiveTopLevelDomainWithCallback(request *UpdateLiveTopLevelDomainRequest, callback func(response *UpdateLiveTopLevelDomainResponse, err error)) <-chan int { - result := make(chan int, 1) - err := client.AddAsyncTask(func() { - var response *UpdateLiveTopLevelDomainResponse - var err error - defer close(result) - response, err = client.UpdateLiveTopLevelDomain(request) - callback(response, err) - result <- 1 - }) - if err != nil { - defer close(result) - callback(nil, err) - result <- 0 - } - return result -} - -// UpdateLiveTopLevelDomainRequest is the request struct for api UpdateLiveTopLevelDomain -type UpdateLiveTopLevelDomainRequest struct { - *requests.RpcRequest - TopLevelDomain string `position:"Query" name:"TopLevelDomain"` - DomainName string `position:"Query" name:"DomainName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - SecurityToken string `position:"Query" name:"SecurityToken"` -} - -// UpdateLiveTopLevelDomainResponse is the response struct for api UpdateLiveTopLevelDomain -type UpdateLiveTopLevelDomainResponse struct { - *responses.BaseResponse - RequestId string `json:"RequestId" xml:"RequestId"` -} - -// CreateUpdateLiveTopLevelDomainRequest creates a request to invoke UpdateLiveTopLevelDomain API -func CreateUpdateLiveTopLevelDomainRequest() (request *UpdateLiveTopLevelDomainRequest) { - request = &UpdateLiveTopLevelDomainRequest{ - RpcRequest: &requests.RpcRequest{}, - } - request.InitWithApiInfo("live", "2016-11-01", "UpdateLiveTopLevelDomain", "live", "openAPI") - request.Method = requests.POST - return -} - -// CreateUpdateLiveTopLevelDomainResponse creates a response to parse from UpdateLiveTopLevelDomain response -func CreateUpdateLiveTopLevelDomainResponse() (response *UpdateLiveTopLevelDomainResponse) { - response = &UpdateLiveTopLevelDomainResponse{ - BaseResponse: &responses.BaseResponse{}, - } - return -}