From 094c243ee2a019d9c95f3b79c645ab1c882a50b0 Mon Sep 17 00:00:00 2001 From: sdk-team Date: Wed, 30 Oct 2024 09:14:33 +0000 Subject: [PATCH] Generated 2016-11-01 for live. --- ChangeLog.txt | 4 + services/live/add_live_ai_produce_rules.go | 2 + services/live/add_live_domain.go | 27 +++-- .../live/change_live_domain_resource_group.go | 101 +++++++++++++++++ services/live/create_caster.go | 27 +++-- services/live/describe_casters.go | 31 +++-- .../live/describe_live_traffic_domain_log.go | 106 ++++++++++++++++++ services/live/start_live_mpu_task.go | 3 +- services/live/struct_caster.go | 33 +++--- ...ils_in_describe_live_traffic_domain_log.go | 21 ++++ ...fos_in_describe_live_traffic_domain_log.go | 21 ++++ services/live/struct_rule_info.go | 1 + services/live/struct_tag.go | 6 +- .../live/struct_tags_in_describe_casters.go | 21 ++++ ...struct_tags_in_describe_live_user_tags.go} | 4 +- services/live/update_live_ai_produce_rules.go | 2 + services/live/update_live_mpu_task.go | 3 +- 17 files changed, 359 insertions(+), 54 deletions(-) create mode 100644 services/live/change_live_domain_resource_group.go create mode 100644 services/live/describe_live_traffic_domain_log.go create mode 100644 services/live/struct_domain_log_details_in_describe_live_traffic_domain_log.go create mode 100644 services/live/struct_log_infos_in_describe_live_traffic_domain_log.go create mode 100644 services/live/struct_tags_in_describe_casters.go rename services/live/{struct_tags.go => struct_tags_in_describe_live_user_tags.go} (87%) diff --git a/ChangeLog.txt b/ChangeLog.txt index 4470e7f682..146362cb7a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,7 @@ +2024-10-30 Version: v1.63.43 +- Generated 2016-11-01 for `live`. +- Update to support new apis. + 2024-10-30 Version: v1.63.42 - Generated 2023-01-20 for `csas`. undefined diff --git a/services/live/add_live_ai_produce_rules.go b/services/live/add_live_ai_produce_rules.go index 5541abea5d..f7c625b01f 100644 --- a/services/live/add_live_ai_produce_rules.go +++ b/services/live/add_live_ai_produce_rules.go @@ -72,10 +72,12 @@ func (client *Client) AddLiveAIProduceRulesWithCallback(request *AddLiveAIProduc type AddLiveAIProduceRulesRequest struct { *requests.RpcRequest Description string `position:"Query" name:"Description"` + Suffix string `position:"Query" name:"Suffix"` SubtitleName string `position:"Query" name:"SubtitleName"` App string `position:"Query" name:"App"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` IsLazy requests.Boolean `position:"Query" name:"IsLazy"` + StudioName string `position:"Query" name:"StudioName"` LiveTemplate string `position:"Query" name:"LiveTemplate"` Domain string `position:"Query" name:"Domain"` IsOrigin requests.Boolean `position:"Query" name:"IsOrigin"` diff --git a/services/live/add_live_domain.go b/services/live/add_live_domain.go index 2cfc5182e0..c7c9537d76 100644 --- a/services/live/add_live_domain.go +++ b/services/live/add_live_domain.go @@ -71,16 +71,23 @@ func (client *Client) AddLiveDomainWithCallback(request *AddLiveDomainRequest, c // AddLiveDomainRequest is the request struct for api AddLiveDomain type AddLiveDomainRequest struct { *requests.RpcRequest - ResourceGroupId string `position:"Query" name:"ResourceGroupId"` - SecurityToken string `position:"Query" name:"SecurityToken"` - Scope string `position:"Query" name:"Scope"` - TopLevelDomain string `position:"Query" name:"TopLevelDomain"` - OwnerAccount string `position:"Query" name:"OwnerAccount"` - DomainName string `position:"Query" name:"DomainName"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - Region string `position:"Query" name:"Region"` - CheckUrl string `position:"Query" name:"CheckUrl"` - LiveDomainType string `position:"Query" name:"LiveDomainType"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + SecurityToken string `position:"Query" name:"SecurityToken"` + Scope string `position:"Query" name:"Scope"` + Tag *[]AddLiveDomainTag `position:"Query" name:"Tag" type:"Repeated"` + TopLevelDomain string `position:"Query" name:"TopLevelDomain"` + OwnerAccount string `position:"Query" name:"OwnerAccount"` + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + Region string `position:"Query" name:"Region"` + CheckUrl string `position:"Query" name:"CheckUrl"` + LiveDomainType string `position:"Query" name:"LiveDomainType"` +} + +// AddLiveDomainTag is a repeated param struct in AddLiveDomainRequest +type AddLiveDomainTag struct { + Value string `name:"Value"` + Key string `name:"Key"` } // AddLiveDomainResponse is the response struct for api AddLiveDomain diff --git a/services/live/change_live_domain_resource_group.go b/services/live/change_live_domain_resource_group.go new file mode 100644 index 0000000000..7e4b194a5d --- /dev/null +++ b/services/live/change_live_domain_resource_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" +) + +// ChangeLiveDomainResourceGroup invokes the live.ChangeLiveDomainResourceGroup API synchronously +func (client *Client) ChangeLiveDomainResourceGroup(request *ChangeLiveDomainResourceGroupRequest) (response *ChangeLiveDomainResourceGroupResponse, err error) { + response = CreateChangeLiveDomainResourceGroupResponse() + err = client.DoAction(request, response) + return +} + +// ChangeLiveDomainResourceGroupWithChan invokes the live.ChangeLiveDomainResourceGroup API asynchronously +func (client *Client) ChangeLiveDomainResourceGroupWithChan(request *ChangeLiveDomainResourceGroupRequest) (<-chan *ChangeLiveDomainResourceGroupResponse, <-chan error) { + responseChan := make(chan *ChangeLiveDomainResourceGroupResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.ChangeLiveDomainResourceGroup(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// ChangeLiveDomainResourceGroupWithCallback invokes the live.ChangeLiveDomainResourceGroup API asynchronously +func (client *Client) ChangeLiveDomainResourceGroupWithCallback(request *ChangeLiveDomainResourceGroupRequest, callback func(response *ChangeLiveDomainResourceGroupResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *ChangeLiveDomainResourceGroupResponse + var err error + defer close(result) + response, err = client.ChangeLiveDomainResourceGroup(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// ChangeLiveDomainResourceGroupRequest is the request struct for api ChangeLiveDomainResourceGroup +type ChangeLiveDomainResourceGroupRequest struct { + *requests.RpcRequest + DomainName string `position:"Query" name:"DomainName"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + NewResourceGroupId string `position:"Query" name:"NewResourceGroupId"` +} + +// ChangeLiveDomainResourceGroupResponse is the response struct for api ChangeLiveDomainResourceGroup +type ChangeLiveDomainResourceGroupResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` +} + +// CreateChangeLiveDomainResourceGroupRequest creates a request to invoke ChangeLiveDomainResourceGroup API +func CreateChangeLiveDomainResourceGroupRequest() (request *ChangeLiveDomainResourceGroupRequest) { + request = &ChangeLiveDomainResourceGroupRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "ChangeLiveDomainResourceGroup", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateChangeLiveDomainResourceGroupResponse creates a response to parse from ChangeLiveDomainResourceGroup response +func CreateChangeLiveDomainResourceGroupResponse() (response *ChangeLiveDomainResourceGroupResponse) { + response = &ChangeLiveDomainResourceGroupResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/create_caster.go b/services/live/create_caster.go index 0ecd317c13..ac1d4e1203 100644 --- a/services/live/create_caster.go +++ b/services/live/create_caster.go @@ -71,16 +71,23 @@ 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"` - 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"` + ClientToken string `position:"Query" name:"ClientToken"` + ResourceGroupId string `position:"Query" name:"ResourceGroupId"` + CasterName string `position:"Query" name:"CasterName"` + Tag *[]CreateCasterTag `position:"Query" name:"Tag" type:"Repeated"` + 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"` +} + +// CreateCasterTag is a repeated param struct in CreateCasterRequest +type CreateCasterTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // CreateCasterResponse is the response struct for api CreateCaster diff --git a/services/live/describe_casters.go b/services/live/describe_casters.go index 1e71530bfe..c30b27d042 100644 --- a/services/live/describe_casters.go +++ b/services/live/describe_casters.go @@ -71,18 +71,25 @@ func (client *Client) DescribeCastersWithCallback(request *DescribeCastersReques // DescribeCastersRequest is the request struct for api DescribeCasters 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"` - CasterId string `position:"Query" name:"CasterId"` - EndTime string `position:"Query" name:"EndTime"` - OwnerId requests.Integer `position:"Query" name:"OwnerId"` - OrderByModifyAsc string `position:"Query" name:"OrderByModifyAsc"` - ChargeType requests.Integer `position:"Query" name:"ChargeType"` - Status requests.Integer `position:"Query" name:"Status"` + 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"` + Tag *[]DescribeCastersTag `position:"Query" name:"Tag" type:"Repeated"` + NormType string `position:"Query" name:"NormType"` + CasterId string `position:"Query" name:"CasterId"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` + OrderByModifyAsc string `position:"Query" name:"OrderByModifyAsc"` + ChargeType requests.Integer `position:"Query" name:"ChargeType"` + Status requests.Integer `position:"Query" name:"Status"` +} + +// DescribeCastersTag is a repeated param struct in DescribeCastersRequest +type DescribeCastersTag struct { + Key string `name:"Key"` + Value string `name:"Value"` } // DescribeCastersResponse is the response struct for api DescribeCasters diff --git a/services/live/describe_live_traffic_domain_log.go b/services/live/describe_live_traffic_domain_log.go new file mode 100644 index 0000000000..6159579815 --- /dev/null +++ b/services/live/describe_live_traffic_domain_log.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" +) + +// DescribeLiveTrafficDomainLog invokes the live.DescribeLiveTrafficDomainLog API synchronously +func (client *Client) DescribeLiveTrafficDomainLog(request *DescribeLiveTrafficDomainLogRequest) (response *DescribeLiveTrafficDomainLogResponse, err error) { + response = CreateDescribeLiveTrafficDomainLogResponse() + err = client.DoAction(request, response) + return +} + +// DescribeLiveTrafficDomainLogWithChan invokes the live.DescribeLiveTrafficDomainLog API asynchronously +func (client *Client) DescribeLiveTrafficDomainLogWithChan(request *DescribeLiveTrafficDomainLogRequest) (<-chan *DescribeLiveTrafficDomainLogResponse, <-chan error) { + responseChan := make(chan *DescribeLiveTrafficDomainLogResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeLiveTrafficDomainLog(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeLiveTrafficDomainLogWithCallback invokes the live.DescribeLiveTrafficDomainLog API asynchronously +func (client *Client) DescribeLiveTrafficDomainLogWithCallback(request *DescribeLiveTrafficDomainLogRequest, callback func(response *DescribeLiveTrafficDomainLogResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeLiveTrafficDomainLogResponse + var err error + defer close(result) + response, err = client.DescribeLiveTrafficDomainLog(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeLiveTrafficDomainLogRequest is the request struct for api DescribeLiveTrafficDomainLog +type DescribeLiveTrafficDomainLogRequest struct { + *requests.RpcRequest + StartTime string `position:"Query" name:"StartTime"` + PageNumber requests.Integer `position:"Query" name:"PageNumber"` + PageSize requests.Integer `position:"Query" name:"PageSize"` + DomainName string `position:"Query" name:"DomainName"` + EndTime string `position:"Query" name:"EndTime"` + OwnerId requests.Integer `position:"Query" name:"OwnerId"` +} + +// DescribeLiveTrafficDomainLogResponse is the response struct for api DescribeLiveTrafficDomainLog +type DescribeLiveTrafficDomainLogResponse struct { + *responses.BaseResponse + DomainName string `json:"DomainName" xml:"DomainName"` + RequestId string `json:"RequestId" xml:"RequestId"` + DomainLogDetails DomainLogDetailsInDescribeLiveTrafficDomainLog `json:"DomainLogDetails" xml:"DomainLogDetails"` +} + +// CreateDescribeLiveTrafficDomainLogRequest creates a request to invoke DescribeLiveTrafficDomainLog API +func CreateDescribeLiveTrafficDomainLogRequest() (request *DescribeLiveTrafficDomainLogRequest) { + request = &DescribeLiveTrafficDomainLogRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveTrafficDomainLog", "live", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeLiveTrafficDomainLogResponse creates a response to parse from DescribeLiveTrafficDomainLog response +func CreateDescribeLiveTrafficDomainLogResponse() (response *DescribeLiveTrafficDomainLogResponse) { + response = &DescribeLiveTrafficDomainLogResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/live/start_live_mpu_task.go b/services/live/start_live_mpu_task.go index c3cb44ffed..7a43b8663d 100644 --- a/services/live/start_live_mpu_task.go +++ b/services/live/start_live_mpu_task.go @@ -85,7 +85,8 @@ type StartLiveMPUTaskRequest struct { // StartLiveMPUTaskMultiStreamURL is a repeated param struct in StartLiveMPUTaskRequest type StartLiveMPUTaskMultiStreamURL struct { - URL string `name:"URL"` + IsAliCdn string `name:"IsAliCdn"` + URL string `name:"URL"` } // StartLiveMPUTaskSingleSubParams is a repeated param struct in StartLiveMPUTaskRequest diff --git a/services/live/struct_caster.go b/services/live/struct_caster.go index ccc526b7df..043b1d44e5 100644 --- a/services/live/struct_caster.go +++ b/services/live/struct_caster.go @@ -17,20 +17,21 @@ 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"` - ResourceGroupId int `json:"ResourceGroupId" xml:"ResourceGroupId"` - ClientTokenId string `json:"ClientTokenId" xml:"ClientTokenId"` + 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"` + Tags TagsInDescribeCasters `json:"Tags" xml:"Tags"` } diff --git a/services/live/struct_domain_log_details_in_describe_live_traffic_domain_log.go b/services/live/struct_domain_log_details_in_describe_live_traffic_domain_log.go new file mode 100644 index 0000000000..9a58a3bcdf --- /dev/null +++ b/services/live/struct_domain_log_details_in_describe_live_traffic_domain_log.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. + +// DomainLogDetailsInDescribeLiveTrafficDomainLog is a nested struct in live response +type DomainLogDetailsInDescribeLiveTrafficDomainLog struct { + DomainLogDetail []DomainLogDetail `json:"DomainLogDetail" xml:"DomainLogDetail"` +} diff --git a/services/live/struct_log_infos_in_describe_live_traffic_domain_log.go b/services/live/struct_log_infos_in_describe_live_traffic_domain_log.go new file mode 100644 index 0000000000..e327d92f81 --- /dev/null +++ b/services/live/struct_log_infos_in_describe_live_traffic_domain_log.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. + +// LogInfosInDescribeLiveTrafficDomainLog is a nested struct in live response +type LogInfosInDescribeLiveTrafficDomainLog struct { + LogInfoDetail []LogInfoDetail `json:"LogInfoDetail" xml:"LogInfoDetail"` +} diff --git a/services/live/struct_rule_info.go b/services/live/struct_rule_info.go index 4c7d1b6539..97ed698d48 100644 --- a/services/live/struct_rule_info.go +++ b/services/live/struct_rule_info.go @@ -29,6 +29,7 @@ type RuleInfo struct { GmtModifyTime string `json:"GmtModifyTime" xml:"GmtModifyTime"` LiveTemplate string `json:"LiveTemplate" xml:"LiveTemplate"` IsLazy bool `json:"IsLazy" xml:"IsLazy"` + StudioName string `json:"StudioName" xml:"StudioName"` Description string `json:"Description" xml:"Description"` Stream string `json:"Stream" xml:"Stream"` } diff --git a/services/live/struct_tag.go b/services/live/struct_tag.go index 266ed1901e..8b61fb1bca 100644 --- a/services/live/struct_tag.go +++ b/services/live/struct_tag.go @@ -17,6 +17,8 @@ package live // Tag is a nested struct in live response type Tag struct { - Key string `json:"Key" xml:"Key"` - Value []string `json:"Value" xml:"Value"` + Key string `json:"Key" xml:"Key"` + TagValue string `json:"TagValue" xml:"TagValue"` + TagKey string `json:"TagKey" xml:"TagKey"` + Value []string `json:"Value" xml:"Value"` } diff --git a/services/live/struct_tags_in_describe_casters.go b/services/live/struct_tags_in_describe_casters.go new file mode 100644 index 0000000000..5713190cdc --- /dev/null +++ b/services/live/struct_tags_in_describe_casters.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. + +// TagsInDescribeCasters is a nested struct in live response +type TagsInDescribeCasters struct { + Tag []Tag `json:"tag" xml:"tag"` +} diff --git a/services/live/struct_tags.go b/services/live/struct_tags_in_describe_live_user_tags.go similarity index 87% rename from services/live/struct_tags.go rename to services/live/struct_tags_in_describe_live_user_tags.go index 3ced755da4..4ea80196ff 100644 --- a/services/live/struct_tags.go +++ b/services/live/struct_tags_in_describe_live_user_tags.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. -// Tags is a nested struct in live response -type Tags struct { +// TagsInDescribeLiveUserTags is a nested struct in live response +type TagsInDescribeLiveUserTags struct { Tag []Tag `json:"Tag" xml:"Tag"` } diff --git a/services/live/update_live_ai_produce_rules.go b/services/live/update_live_ai_produce_rules.go index 1cbdbc497d..0d8a13833d 100644 --- a/services/live/update_live_ai_produce_rules.go +++ b/services/live/update_live_ai_produce_rules.go @@ -72,11 +72,13 @@ func (client *Client) UpdateLiveAIProduceRulesWithCallback(request *UpdateLiveAI type UpdateLiveAIProduceRulesRequest struct { *requests.RpcRequest Description string `position:"Query" name:"Description"` + Suffix string `position:"Query" name:"Suffix"` SubtitleName string `position:"Query" name:"SubtitleName"` RulesId string `position:"Query" name:"RulesId"` App string `position:"Query" name:"App"` OwnerId requests.Integer `position:"Query" name:"OwnerId"` IsLazy requests.Boolean `position:"Query" name:"IsLazy"` + StudioName string `position:"Query" name:"StudioName"` LiveTemplate string `position:"Query" name:"LiveTemplate"` Domain string `position:"Query" name:"Domain"` IsOrigin requests.Boolean `position:"Query" name:"IsOrigin"` diff --git a/services/live/update_live_mpu_task.go b/services/live/update_live_mpu_task.go index 23f7b044ed..1ecc9efc5a 100644 --- a/services/live/update_live_mpu_task.go +++ b/services/live/update_live_mpu_task.go @@ -84,7 +84,8 @@ type UpdateLiveMPUTaskRequest struct { // UpdateLiveMPUTaskMultiStreamURL is a repeated param struct in UpdateLiveMPUTaskRequest type UpdateLiveMPUTaskMultiStreamURL struct { - URL string `name:"URL"` + IsAliCdn string `name:"IsAliCdn"` + URL string `name:"URL"` } // UpdateLiveMPUTaskSingleSubParams is a repeated param struct in UpdateLiveMPUTaskRequest