Explorar o código

Public api AddLivePullStreamInfoConfig.

sdk-team %!s(int64=6) %!d(string=hai) anos
pai
achega
8c70b02c77

+ 3 - 0
ChangeLog.txt

@@ -1,3 +1,6 @@
+2019-07-12 Version: 1.60.65
+- Public api AddLivePullStreamInfoConfig.
+
 2019-07-11 Version: 1.60.64
 - Modify CreateBackupPlan.
 - Modify ConfigureBackupPlan.

+ 6 - 6
services/live/add_caster_layout.go

@@ -93,12 +93,12 @@ type AddCasterLayoutAudioLayer struct {
 
 // AddCasterLayoutVideoLayer is a repeated param struct in AddCasterLayoutRequest
 type AddCasterLayoutVideoLayer struct {
-	FillMode           string            `name:"FillMode"`
-	WidthNormalized    string            `name:"WidthNormalized"`
-	FixedDelayDuration string            `name:"FixedDelayDuration"`
-	PositionRefer      string            `name:"PositionRefer"`
-	PositionNormalized *[]requests.Float `name:"PositionNormalized" type:"Repeated"`
-	HeightNormalized   string            `name:"HeightNormalized"`
+	FillMode           string    `name:"FillMode"`
+	WidthNormalized    string    `name:"WidthNormalized"`
+	FixedDelayDuration string    `name:"FixedDelayDuration"`
+	PositionRefer      string    `name:"PositionRefer"`
+	PositionNormalized *[]string `name:"PositionNormalized" type:"Repeated"`
+	HeightNormalized   string    `name:"HeightNormalized"`
 }
 
 // AddCasterLayoutResponse is the response struct for api AddCasterLayout

+ 16 - 12
services/live/add_custom_live_stream_transcode.go

@@ -76,18 +76,22 @@ func (client *Client) AddCustomLiveStreamTranscodeWithCallback(request *AddCusto
 // AddCustomLiveStreamTranscodeRequest is the request struct for api AddCustomLiveStreamTranscode
 type AddCustomLiveStreamTranscodeRequest struct {
 	*requests.RpcRequest
-	App          string           `position:"Query" name:"App"`
-	Template     string           `position:"Query" name:"Template"`
-	Profile      requests.Integer `position:"Query" name:"Profile"`
-	FPS          requests.Integer `position:"Query" name:"FPS"`
-	Gop          string           `position:"Query" name:"Gop"`
-	OwnerId      requests.Integer `position:"Query" name:"OwnerId"`
-	TemplateType string           `position:"Query" name:"TemplateType"`
-	AudioBitrate requests.Integer `position:"Query" name:"AudioBitrate"`
-	Domain       string           `position:"Query" name:"Domain"`
-	Width        requests.Integer `position:"Query" name:"Width"`
-	VideoBitrate requests.Integer `position:"Query" name:"VideoBitrate"`
-	Height       requests.Integer `position:"Query" name:"Height"`
+	App             string           `position:"Query" name:"App"`
+	Template        string           `position:"Query" name:"Template"`
+	AudioChannelNum requests.Integer `position:"Query" name:"AudioChannelNum"`
+	Profile         requests.Integer `position:"Query" name:"Profile"`
+	FPS             requests.Integer `position:"Query" name:"FPS"`
+	Gop             string           `position:"Query" name:"Gop"`
+	OwnerId         requests.Integer `position:"Query" name:"OwnerId"`
+	AudioCodec      string           `position:"Query" name:"AudioCodec"`
+	AudioRate       requests.Integer `position:"Query" name:"AudioRate"`
+	TemplateType    string           `position:"Query" name:"TemplateType"`
+	AudioBitrate    requests.Integer `position:"Query" name:"AudioBitrate"`
+	Domain          string           `position:"Query" name:"Domain"`
+	Width           requests.Integer `position:"Query" name:"Width"`
+	VideoBitrate    requests.Integer `position:"Query" name:"VideoBitrate"`
+	AudioProfile    string           `position:"Query" name:"AudioProfile"`
+	Height          requests.Integer `position:"Query" name:"Height"`
 }
 
 // AddCustomLiveStreamTranscodeResponse is the response struct for api AddCustomLiveStreamTranscode

+ 109 - 0
services/live/add_live_pull_stream_info_config.go

@@ -0,0 +1,109 @@
+package live
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// AddLivePullStreamInfoConfig invokes the live.AddLivePullStreamInfoConfig API synchronously
+// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html
+func (client *Client) AddLivePullStreamInfoConfig(request *AddLivePullStreamInfoConfigRequest) (response *AddLivePullStreamInfoConfigResponse, err error) {
+	response = CreateAddLivePullStreamInfoConfigResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// AddLivePullStreamInfoConfigWithChan invokes the live.AddLivePullStreamInfoConfig API asynchronously
+// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddLivePullStreamInfoConfigWithChan(request *AddLivePullStreamInfoConfigRequest) (<-chan *AddLivePullStreamInfoConfigResponse, <-chan error) {
+	responseChan := make(chan *AddLivePullStreamInfoConfigResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.AddLivePullStreamInfoConfig(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// AddLivePullStreamInfoConfigWithCallback invokes the live.AddLivePullStreamInfoConfig API asynchronously
+// api document: https://help.aliyun.com/api/live/addlivepullstreaminfoconfig.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) AddLivePullStreamInfoConfigWithCallback(request *AddLivePullStreamInfoConfigRequest, callback func(response *AddLivePullStreamInfoConfigResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *AddLivePullStreamInfoConfigResponse
+		var err error
+		defer close(result)
+		response, err = client.AddLivePullStreamInfoConfig(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// AddLivePullStreamInfoConfigRequest is the request struct for api AddLivePullStreamInfoConfig
+type AddLivePullStreamInfoConfigRequest struct {
+	*requests.RpcRequest
+	SourceUrl  string           `position:"Query" name:"SourceUrl"`
+	AppName    string           `position:"Query" name:"AppName"`
+	DomainName string           `position:"Query" name:"DomainName"`
+	EndTime    string           `position:"Query" name:"EndTime"`
+	StartTime  string           `position:"Query" name:"StartTime"`
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	StreamName string           `position:"Query" name:"StreamName"`
+}
+
+// AddLivePullStreamInfoConfigResponse is the response struct for api AddLivePullStreamInfoConfig
+type AddLivePullStreamInfoConfigResponse struct {
+	*responses.BaseResponse
+	RequestId string `json:"RequestId" xml:"RequestId"`
+}
+
+// CreateAddLivePullStreamInfoConfigRequest creates a request to invoke AddLivePullStreamInfoConfig API
+func CreateAddLivePullStreamInfoConfigRequest() (request *AddLivePullStreamInfoConfigRequest) {
+	request = &AddLivePullStreamInfoConfigRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("live", "2016-11-01", "AddLivePullStreamInfoConfig", "live", "openAPI")
+	return
+}
+
+// CreateAddLivePullStreamInfoConfigResponse creates a response to parse from AddLivePullStreamInfoConfig response
+func CreateAddLivePullStreamInfoConfigResponse() (response *AddLivePullStreamInfoConfigResponse) {
+	response = &AddLivePullStreamInfoConfigResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 1 - 1
services/live/describe_live_certificate_detail.go

@@ -87,7 +87,7 @@ type DescribeLiveCertificateDetailResponse struct {
 	RequestId string `json:"RequestId" xml:"RequestId"`
 	Cert      string `json:"Cert" xml:"Cert"`
 	Key       string `json:"Key" xml:"Key"`
-	CertId    int    `json:"CertId" xml:"CertId"`
+	CertId    int64  `json:"CertId" xml:"CertId"`
 	CertName  string `json:"CertName" xml:"CertName"`
 }
 

+ 4 - 3
services/live/describe_live_lazy_pull_stream_config.go

@@ -76,9 +76,10 @@ func (client *Client) DescribeLiveLazyPullStreamConfigWithCallback(request *Desc
 // DescribeLiveLazyPullStreamConfigRequest is the request struct for api DescribeLiveLazyPullStreamConfig
 type DescribeLiveLazyPullStreamConfigRequest struct {
 	*requests.RpcRequest
-	AppName    string           `position:"Query" name:"AppName"`
-	DomainName string           `position:"Query" name:"DomainName"`
-	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+	AppName            string           `position:"Query" name:"AppName"`
+	LiveapiRequestFrom string           `position:"Query" name:"LiveapiRequestFrom"`
+	DomainName         string           `position:"Query" name:"DomainName"`
+	OwnerId            requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveLazyPullStreamConfigResponse is the response struct for api DescribeLiveLazyPullStreamConfig

+ 1 - 1
services/live/describe_live_stream_online_user_num.go

@@ -89,7 +89,7 @@ type DescribeLiveStreamOnlineUserNumRequest struct {
 type DescribeLiveStreamOnlineUserNumResponse struct {
 	*responses.BaseResponse
 	RequestId       string         `json:"RequestId" xml:"RequestId"`
-	TotalUserNumber int            `json:"TotalUserNumber" xml:"TotalUserNumber"`
+	TotalUserNumber int64          `json:"TotalUserNumber" xml:"TotalUserNumber"`
 	OnlineUserInfo  OnlineUserInfo `json:"OnlineUserInfo" xml:"OnlineUserInfo"`
 }
 

+ 0 - 1
services/live/describe_live_stream_transcode_info.go

@@ -76,7 +76,6 @@ func (client *Client) DescribeLiveStreamTranscodeInfoWithCallback(request *Descr
 // DescribeLiveStreamTranscodeInfoRequest is the request struct for api DescribeLiveStreamTranscodeInfo
 type DescribeLiveStreamTranscodeInfoRequest struct {
 	*requests.RpcRequest
-	SecurityToken       string           `position:"Query" name:"SecurityToken"`
 	OwnerId             requests.Integer `position:"Query" name:"OwnerId"`
 	DomainTranscodeName string           `position:"Query" name:"DomainTranscodeName"`
 }

+ 108 - 0
services/live/describe_live_stream_transcode_stream_num.go

@@ -0,0 +1,108 @@
+package live
+
+//Licensed under the Apache License, Version 2.0 (the "License");
+//you may not use this file except in compliance with the License.
+//You may obtain a copy of the License at
+//
+//http://www.apache.org/licenses/LICENSE-2.0
+//
+//Unless required by applicable law or agreed to in writing, software
+//distributed under the License is distributed on an "AS IS" BASIS,
+//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+//See the License for the specific language governing permissions and
+//limitations under the License.
+//
+// Code generated by Alibaba Cloud SDK Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is regenerated.
+
+import (
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
+	"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
+)
+
+// DescribeLiveStreamTranscodeStreamNum invokes the live.DescribeLiveStreamTranscodeStreamNum API synchronously
+// api document: https://help.aliyun.com/api/live/describelivestreamtranscodestreamnum.html
+func (client *Client) DescribeLiveStreamTranscodeStreamNum(request *DescribeLiveStreamTranscodeStreamNumRequest) (response *DescribeLiveStreamTranscodeStreamNumResponse, err error) {
+	response = CreateDescribeLiveStreamTranscodeStreamNumResponse()
+	err = client.DoAction(request, response)
+	return
+}
+
+// DescribeLiveStreamTranscodeStreamNumWithChan invokes the live.DescribeLiveStreamTranscodeStreamNum API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivestreamtranscodestreamnum.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveStreamTranscodeStreamNumWithChan(request *DescribeLiveStreamTranscodeStreamNumRequest) (<-chan *DescribeLiveStreamTranscodeStreamNumResponse, <-chan error) {
+	responseChan := make(chan *DescribeLiveStreamTranscodeStreamNumResponse, 1)
+	errChan := make(chan error, 1)
+	err := client.AddAsyncTask(func() {
+		defer close(responseChan)
+		defer close(errChan)
+		response, err := client.DescribeLiveStreamTranscodeStreamNum(request)
+		if err != nil {
+			errChan <- err
+		} else {
+			responseChan <- response
+		}
+	})
+	if err != nil {
+		errChan <- err
+		close(responseChan)
+		close(errChan)
+	}
+	return responseChan, errChan
+}
+
+// DescribeLiveStreamTranscodeStreamNumWithCallback invokes the live.DescribeLiveStreamTranscodeStreamNum API asynchronously
+// api document: https://help.aliyun.com/api/live/describelivestreamtranscodestreamnum.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+func (client *Client) DescribeLiveStreamTranscodeStreamNumWithCallback(request *DescribeLiveStreamTranscodeStreamNumRequest, callback func(response *DescribeLiveStreamTranscodeStreamNumResponse, err error)) <-chan int {
+	result := make(chan int, 1)
+	err := client.AddAsyncTask(func() {
+		var response *DescribeLiveStreamTranscodeStreamNumResponse
+		var err error
+		defer close(result)
+		response, err = client.DescribeLiveStreamTranscodeStreamNum(request)
+		callback(response, err)
+		result <- 1
+	})
+	if err != nil {
+		defer close(result)
+		callback(nil, err)
+		result <- 0
+	}
+	return result
+}
+
+// DescribeLiveStreamTranscodeStreamNumRequest is the request struct for api DescribeLiveStreamTranscodeStreamNum
+type DescribeLiveStreamTranscodeStreamNumRequest struct {
+	*requests.RpcRequest
+	DomainName string           `position:"Query" name:"DomainName"`
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// DescribeLiveStreamTranscodeStreamNumResponse is the response struct for api DescribeLiveStreamTranscodeStreamNum
+type DescribeLiveStreamTranscodeStreamNumResponse struct {
+	*responses.BaseResponse
+	RequestId            string `json:"RequestId" xml:"RequestId"`
+	Total                int64  `json:"Total" xml:"Total"`
+	TranscodedNumber     int64  `json:"TranscodedNumber" xml:"TranscodedNumber"`
+	UntranscodeNumber    int64  `json:"UntranscodeNumber" xml:"UntranscodeNumber"`
+	LazyTranscodedNumber int64  `json:"LazyTranscodedNumber" xml:"LazyTranscodedNumber"`
+}
+
+// CreateDescribeLiveStreamTranscodeStreamNumRequest creates a request to invoke DescribeLiveStreamTranscodeStreamNum API
+func CreateDescribeLiveStreamTranscodeStreamNumRequest() (request *DescribeLiveStreamTranscodeStreamNumRequest) {
+	request = &DescribeLiveStreamTranscodeStreamNumRequest{
+		RpcRequest: &requests.RpcRequest{},
+	}
+	request.InitWithApiInfo("live", "2016-11-01", "DescribeLiveStreamTranscodeStreamNum", "live", "openAPI")
+	return
+}
+
+// CreateDescribeLiveStreamTranscodeStreamNumResponse creates a response to parse from DescribeLiveStreamTranscodeStreamNum response
+func CreateDescribeLiveStreamTranscodeStreamNumResponse() (response *DescribeLiveStreamTranscodeStreamNumResponse) {
+	response = &DescribeLiveStreamTranscodeStreamNumResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}

+ 5 - 5
services/live/describe_live_streams_publish_list.go

@@ -76,17 +76,17 @@ func (client *Client) DescribeLiveStreamsPublishListWithCallback(request *Descri
 // DescribeLiveStreamsPublishListRequest is the request struct for api DescribeLiveStreamsPublishList
 type DescribeLiveStreamsPublishListRequest struct {
 	*requests.RpcRequest
-	StreamType string           `position:"Query" name:"StreamType"`
-	DomainName string           `position:"Query" name:"DomainName"`
-	EndTime    string           `position:"Query" name:"EndTime"`
-	OrderBy    string           `position:"Query" name:"OrderBy"`
 	StartTime  string           `position:"Query" name:"StartTime"`
-	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
 	PageNumber requests.Integer `position:"Query" name:"PageNumber"`
 	AppName    string           `position:"Query" name:"AppName"`
 	PageSize   requests.Integer `position:"Query" name:"PageSize"`
 	StreamName string           `position:"Query" name:"StreamName"`
 	QueryType  string           `position:"Query" name:"QueryType"`
+	StreamType string           `position:"Query" name:"StreamType"`
+	DomainName string           `position:"Query" name:"DomainName"`
+	EndTime    string           `position:"Query" name:"EndTime"`
+	OrderBy    string           `position:"Query" name:"OrderBy"`
+	OwnerId    requests.Integer `position:"Query" name:"OwnerId"`
 }
 
 // DescribeLiveStreamsPublishListResponse is the response struct for api DescribeLiveStreamsPublishList

+ 2 - 2
services/live/describe_live_top_domains_by_flow.go

@@ -88,8 +88,8 @@ type DescribeLiveTopDomainsByFlowResponse struct {
 	RequestId         string     `json:"RequestId" xml:"RequestId"`
 	StartTime         string     `json:"StartTime" xml:"StartTime"`
 	EndTime           string     `json:"EndTime" xml:"EndTime"`
-	DomainCount       int        `json:"DomainCount" xml:"DomainCount"`
-	DomainOnlineCount int        `json:"DomainOnlineCount" xml:"DomainOnlineCount"`
+	DomainCount       int64      `json:"DomainCount" xml:"DomainCount"`
+	DomainOnlineCount int64      `json:"DomainOnlineCount" xml:"DomainOnlineCount"`
 	TopDomains        TopDomains `json:"TopDomains" xml:"TopDomains"`
 }
 

+ 3 - 3
services/live/describe_live_user_domains.go

@@ -91,9 +91,9 @@ type DescribeLiveUserDomainsRequest struct {
 type DescribeLiveUserDomainsResponse struct {
 	*responses.BaseResponse
 	RequestId  string  `json:"RequestId" xml:"RequestId"`
-	PageNumber int     `json:"PageNumber" xml:"PageNumber"`
-	PageSize   int     `json:"PageSize" xml:"PageSize"`
-	TotalCount int     `json:"TotalCount" xml:"TotalCount"`
+	PageNumber int64   `json:"PageNumber" xml:"PageNumber"`
+	PageSize   int64   `json:"PageSize" xml:"PageSize"`
+	TotalCount int64   `json:"TotalCount" xml:"TotalCount"`
 	Domains    Domains `json:"Domains" xml:"Domains"`
 }
 

+ 3 - 3
services/live/describe_record.go

@@ -88,9 +88,9 @@ type DescribeRecordResponse struct {
 	RecordId        string `json:"RecordId" xml:"RecordId"`
 	AppId           string `json:"AppId" xml:"AppId"`
 	BoardId         int    `json:"BoardId" xml:"BoardId"`
-	RecordStartTime int    `json:"RecordStartTime" xml:"RecordStartTime"`
-	StartTime       int    `json:"StartTime" xml:"StartTime"`
-	EndTime         int    `json:"EndTime" xml:"EndTime"`
+	RecordStartTime int64  `json:"RecordStartTime" xml:"RecordStartTime"`
+	StartTime       int64  `json:"StartTime" xml:"StartTime"`
+	EndTime         int64  `json:"EndTime" xml:"EndTime"`
 	State           int    `json:"State" xml:"State"`
 	OssPath         string `json:"OssPath" xml:"OssPath"`
 	OssBucket       string `json:"OssBucket" xml:"OssBucket"`

+ 6 - 6
services/live/modify_caster_layout.go

@@ -94,12 +94,12 @@ type ModifyCasterLayoutAudioLayer struct {
 
 // ModifyCasterLayoutVideoLayer is a repeated param struct in ModifyCasterLayoutRequest
 type ModifyCasterLayoutVideoLayer struct {
-	FillMode           string            `name:"FillMode"`
-	WidthNormalized    string            `name:"WidthNormalized"`
-	FixedDelayDuration string            `name:"FixedDelayDuration"`
-	PositionRefer      string            `name:"PositionRefer"`
-	PositionNormalized *[]requests.Float `name:"PositionNormalized" type:"Repeated"`
-	HeightNormalized   string            `name:"HeightNormalized"`
+	FillMode           string    `name:"FillMode"`
+	WidthNormalized    string    `name:"WidthNormalized"`
+	FixedDelayDuration string    `name:"FixedDelayDuration"`
+	PositionRefer      string    `name:"PositionRefer"`
+	PositionNormalized *[]string `name:"PositionNormalized" type:"Repeated"`
+	HeightNormalized   string    `name:"HeightNormalized"`
 }
 
 // ModifyCasterLayoutResponse is the response struct for api ModifyCasterLayout

+ 2 - 0
services/live/set_live_domain_certificate.go

@@ -76,7 +76,9 @@ func (client *Client) SetLiveDomainCertificateWithCallback(request *SetLiveDomai
 // SetLiveDomainCertificateRequest is the request struct for api SetLiveDomainCertificate
 type SetLiveDomainCertificateRequest struct {
 	*requests.RpcRequest
+	ForceSet      string           `position:"Query" name:"ForceSet"`
 	SecurityToken string           `position:"Query" name:"SecurityToken"`
+	CertType      string           `position:"Query" name:"CertType"`
 	SSLPub        string           `position:"Query" name:"SSLPub"`
 	CertName      string           `position:"Query" name:"CertName"`
 	SSLProtocol   string           `position:"Query" name:"SSLProtocol"`

+ 10 - 9
services/live/set_live_lazy_pull_stream_info_config.go

@@ -76,15 +76,16 @@ func (client *Client) SetLiveLazyPullStreamInfoConfigWithCallback(request *SetLi
 // SetLiveLazyPullStreamInfoConfigRequest is the request struct for api SetLiveLazyPullStreamInfoConfig
 type SetLiveLazyPullStreamInfoConfigRequest struct {
 	*requests.RpcRequest
-	PullArgs       string           `position:"Query" name:"PullArgs"`
-	AppName        string           `position:"Query" name:"AppName"`
-	PullAuthKey    string           `position:"Query" name:"PullAuthKey"`
-	PullAuthType   string           `position:"Query" name:"PullAuthType"`
-	DomainName     string           `position:"Query" name:"DomainName"`
-	PullDomainName string           `position:"Query" name:"PullDomainName"`
-	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
-	PullAppName    string           `position:"Query" name:"PullAppName"`
-	PullProtocol   string           `position:"Query" name:"PullProtocol"`
+	PullArgs           string           `position:"Query" name:"PullArgs"`
+	AppName            string           `position:"Query" name:"AppName"`
+	LiveapiRequestFrom string           `position:"Query" name:"LiveapiRequestFrom"`
+	PullAuthKey        string           `position:"Query" name:"PullAuthKey"`
+	PullAuthType       string           `position:"Query" name:"PullAuthType"`
+	DomainName         string           `position:"Query" name:"DomainName"`
+	PullDomainName     string           `position:"Query" name:"PullDomainName"`
+	OwnerId            requests.Integer `position:"Query" name:"OwnerId"`
+	PullAppName        string           `position:"Query" name:"PullAppName"`
+	PullProtocol       string           `position:"Query" name:"PullProtocol"`
 }
 
 // SetLiveLazyPullStreamInfoConfigResponse is the response struct for api SetLiveLazyPullStreamInfoConfig

+ 3 - 3
services/live/struct_board.go

@@ -19,9 +19,9 @@ package live
 type Board struct {
 	BoardId         string   `json:"BoardId" xml:"BoardId"`
 	AppUid          string   `json:"AppUid" xml:"AppUid"`
-	EventTimestamp  int      `json:"EventTimestamp" xml:"EventTimestamp"`
-	CreateTimestamp int      `json:"CreateTimestamp" xml:"CreateTimestamp"`
-	UpdateTimestamp int      `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
+	EventTimestamp  int64    `json:"EventTimestamp" xml:"EventTimestamp"`
+	CreateTimestamp int64    `json:"CreateTimestamp" xml:"CreateTimestamp"`
+	UpdateTimestamp int64    `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
 	Pages           []Page   `json:"Pages" xml:"Pages"`
 	Configs         []Config `json:"Configs" xml:"Configs"`
 }

+ 2 - 2
services/live/struct_cert.go

@@ -18,9 +18,9 @@ package live
 // Cert is a nested struct in live response
 type Cert struct {
 	CertName    string `json:"CertName" xml:"CertName"`
-	CertId      int    `json:"CertId" xml:"CertId"`
+	CertId      int64  `json:"CertId" xml:"CertId"`
 	Fingerprint string `json:"Fingerprint" xml:"Fingerprint"`
 	Common      string `json:"Common" xml:"Common"`
 	Issuer      string `json:"Issuer" xml:"Issuer"`
-	LastTime    int    `json:"LastTime" xml:"LastTime"`
+	LastTime    int64  `json:"LastTime" xml:"LastTime"`
 }

+ 12 - 5
services/live/struct_custom_transcode_parameters.go

@@ -17,9 +17,16 @@ package live
 
 // CustomTranscodeParameters is a nested struct in live response
 type CustomTranscodeParameters struct {
-	VideoBitrate int    `json:"VideoBitrate" xml:"VideoBitrate"`
-	FPS          int    `json:"FPS" xml:"FPS"`
-	Height       int    `json:"Height" xml:"Height"`
-	Width        int    `json:"Width" xml:"Width"`
-	TemplateType string `json:"TemplateType" xml:"TemplateType"`
+	VideoBitrate    int    `json:"VideoBitrate" xml:"VideoBitrate"`
+	FPS             int    `json:"FPS" xml:"FPS"`
+	Height          int    `json:"Height" xml:"Height"`
+	Width           int    `json:"Width" xml:"Width"`
+	TemplateType    string `json:"TemplateType" xml:"TemplateType"`
+	VideoProfile    string `json:"VideoProfile" xml:"VideoProfile"`
+	Gop             string `json:"Gop" xml:"Gop"`
+	AudioBitrate    int    `json:"AudioBitrate" xml:"AudioBitrate"`
+	AudioProfile    string `json:"AudioProfile" xml:"AudioProfile"`
+	AudioCodec      string `json:"AudioCodec" xml:"AudioCodec"`
+	AudioRate       int    `json:"AudioRate" xml:"AudioRate"`
+	AudioChannelNum int    `json:"AudioChannelNum" xml:"AudioChannelNum"`
 }

+ 1 - 1
services/live/struct_element.go

@@ -20,6 +20,6 @@ type Element struct {
 	ElementIndex    string `json:"ElementIndex" xml:"ElementIndex"`
 	OwnerId         string `json:"OwnerId" xml:"OwnerId"`
 	ElementType     int    `json:"ElementType" xml:"ElementType"`
-	UpdateTimestamp int    `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
+	UpdateTimestamp int64  `json:"UpdateTimestamp" xml:"UpdateTimestamp"`
 	Data            string `json:"Data" xml:"Data"`
 }

+ 2 - 2
services/live/struct_event_in_describe_board_events.go

@@ -17,9 +17,9 @@ package live
 
 // EventInDescribeBoardEvents is a nested struct in live response
 type EventInDescribeBoardEvents struct {
-	EventId   int    `json:"EventId" xml:"EventId"`
+	EventId   int64  `json:"EventId" xml:"EventId"`
 	EventType int    `json:"EventType" xml:"EventType"`
 	UserId    int    `json:"UserId" xml:"UserId"`
 	Data      string `json:"Data" xml:"Data"`
-	Timestamp int    `json:"Timestamp" xml:"Timestamp"`
+	Timestamp int64  `json:"Timestamp" xml:"Timestamp"`
 }

+ 1 - 1
services/live/struct_live_stream_online_user_num_info.go

@@ -18,6 +18,6 @@ package live
 // LiveStreamOnlineUserNumInfo is a nested struct in live response
 type LiveStreamOnlineUserNumInfo struct {
 	StreamUrl  string `json:"StreamUrl" xml:"StreamUrl"`
-	UserNumber int    `json:"UserNumber" xml:"UserNumber"`
+	UserNumber int64  `json:"UserNumber" xml:"UserNumber"`
 	Time       string `json:"Time" xml:"Time"`
 }

+ 3 - 3
services/live/struct_record.go

@@ -20,9 +20,9 @@ type Record struct {
 	RecordId        string `json:"RecordId" xml:"RecordId"`
 	AppId           string `json:"AppId" xml:"AppId"`
 	BoardId         int    `json:"BoardId" xml:"BoardId"`
-	RecordStartTime int    `json:"RecordStartTime" xml:"RecordStartTime"`
-	StartTime       int    `json:"StartTime" xml:"StartTime"`
-	EndTime         int    `json:"EndTime" xml:"EndTime"`
+	RecordStartTime int64  `json:"RecordStartTime" xml:"RecordStartTime"`
+	StartTime       int64  `json:"StartTime" xml:"StartTime"`
+	EndTime         int64  `json:"EndTime" xml:"EndTime"`
 	State           int    `json:"State" xml:"State"`
 	OssPath         string `json:"OssPath" xml:"OssPath"`
 	OssBucket       string `json:"OssBucket" xml:"OssBucket"`

+ 2 - 2
services/live/struct_stream_count_detail.go

@@ -18,6 +18,6 @@ package live
 // StreamCountDetail is a nested struct in live response
 type StreamCountDetail struct {
 	Format        string `json:"Format" xml:"Format"`
-	VideoDataRate int    `json:"VideoDataRate" xml:"VideoDataRate"`
-	Count         int    `json:"Count" xml:"Count"`
+	VideoDataRate int64  `json:"VideoDataRate" xml:"VideoDataRate"`
+	Count         int64  `json:"Count" xml:"Count"`
 }

+ 2 - 2
services/live/struct_stream_count_info.go

@@ -17,8 +17,8 @@ package live
 
 // StreamCountInfo is a nested struct in live response
 type StreamCountInfo struct {
-	Count              int                `json:"Count" xml:"Count"`
-	Limit              int                `json:"Limit" xml:"Limit"`
+	Count              int64              `json:"Count" xml:"Count"`
+	Limit              int64              `json:"Limit" xml:"Limit"`
 	Type               string             `json:"Type" xml:"Type"`
 	StreamCountDetails StreamCountDetails `json:"StreamCountDetails" xml:"StreamCountDetails"`
 }

+ 3 - 3
services/live/struct_top_domain.go

@@ -18,10 +18,10 @@ package live
 // TopDomain is a nested struct in live response
 type TopDomain struct {
 	DomainName     string `json:"DomainName" xml:"DomainName"`
-	Rank           int    `json:"Rank" xml:"Rank"`
+	Rank           int64  `json:"Rank" xml:"Rank"`
 	TotalTraffic   string `json:"TotalTraffic" xml:"TotalTraffic"`
 	TrafficPercent string `json:"TrafficPercent" xml:"TrafficPercent"`
-	MaxBps         int    `json:"MaxBps" xml:"MaxBps"`
+	MaxBps         int64  `json:"MaxBps" xml:"MaxBps"`
 	MaxBpsTime     string `json:"MaxBpsTime" xml:"MaxBpsTime"`
-	TotalAccess    int    `json:"TotalAccess" xml:"TotalAccess"`
+	TotalAccess    int64  `json:"TotalAccess" xml:"TotalAccess"`
 }

+ 106 - 0
services/live/update_live_top_level_domain.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"
+)
+
+// UpdateLiveTopLevelDomain invokes the live.UpdateLiveTopLevelDomain API synchronously
+// api document: https://help.aliyun.com/api/live/updatelivetopleveldomain.html
+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
+// api document: https://help.aliyun.com/api/live/updatelivetopleveldomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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
+// api document: https://help.aliyun.com/api/live/updatelivetopleveldomain.html
+// asynchronous document: https://help.aliyun.com/document_detail/66220.html
+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"`
+	SecurityToken  string           `position:"Query" name:"SecurityToken"`
+	DomainName     string           `position:"Query" name:"DomainName"`
+	OwnerId        requests.Integer `position:"Query" name:"OwnerId"`
+}
+
+// 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")
+	return
+}
+
+// CreateUpdateLiveTopLevelDomainResponse creates a response to parse from UpdateLiveTopLevelDomain response
+func CreateUpdateLiveTopLevelDomainResponse() (response *UpdateLiveTopLevelDomainResponse) {
+	response = &UpdateLiveTopLevelDomainResponse{
+		BaseResponse: &responses.BaseResponse{},
+	}
+	return
+}