diff --git a/ChangeLog.txt b/ChangeLog.txt index 349facd7ee..eeb2925ee2 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -1,3 +1,8 @@ +2024-12-19 Version: v1.63.72 +- Generated 2017-03-21 for `vod`. +- Add BatchGetMediaInfos. +- Modify UploadStreamByURL. + 2024-12-18 Version: v1.63.71 - Generated 2014-08-28 for `Ess`. - InstanceRefresh support SkipMatching. diff --git a/services/vod/batch_get_media_infos.go b/services/vod/batch_get_media_infos.go new file mode 100644 index 0000000000..7cf1758d3e --- /dev/null +++ b/services/vod/batch_get_media_infos.go @@ -0,0 +1,102 @@ +package vod + +//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" +) + +// BatchGetMediaInfos invokes the vod.BatchGetMediaInfos API synchronously +func (client *Client) BatchGetMediaInfos(request *BatchGetMediaInfosRequest) (response *BatchGetMediaInfosResponse, err error) { + response = CreateBatchGetMediaInfosResponse() + err = client.DoAction(request, response) + return +} + +// BatchGetMediaInfosWithChan invokes the vod.BatchGetMediaInfos API asynchronously +func (client *Client) BatchGetMediaInfosWithChan(request *BatchGetMediaInfosRequest) (<-chan *BatchGetMediaInfosResponse, <-chan error) { + responseChan := make(chan *BatchGetMediaInfosResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.BatchGetMediaInfos(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// BatchGetMediaInfosWithCallback invokes the vod.BatchGetMediaInfos API asynchronously +func (client *Client) BatchGetMediaInfosWithCallback(request *BatchGetMediaInfosRequest, callback func(response *BatchGetMediaInfosResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *BatchGetMediaInfosResponse + var err error + defer close(result) + response, err = client.BatchGetMediaInfos(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// BatchGetMediaInfosRequest is the request struct for api BatchGetMediaInfos +type BatchGetMediaInfosRequest struct { + *requests.RpcRequest + MediaIds string `position:"Query" name:"MediaIds"` +} + +// BatchGetMediaInfosResponse is the response struct for api BatchGetMediaInfos +type BatchGetMediaInfosResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + NonExistMediaIds []string `json:"NonExistMediaIds" xml:"NonExistMediaIds"` + ForbiddenMediaIds []string `json:"ForbiddenMediaIds" xml:"ForbiddenMediaIds"` + MediaInfos []MediaBasicInfo `json:"MediaInfos" xml:"MediaInfos"` +} + +// CreateBatchGetMediaInfosRequest creates a request to invoke BatchGetMediaInfos API +func CreateBatchGetMediaInfosRequest() (request *BatchGetMediaInfosRequest) { + request = &BatchGetMediaInfosRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("vod", "2017-03-21", "BatchGetMediaInfos", "vod", "openAPI") + request.Method = requests.POST + return +} + +// CreateBatchGetMediaInfosResponse creates a response to parse from BatchGetMediaInfos response +func CreateBatchGetMediaInfosResponse() (response *BatchGetMediaInfosResponse) { + response = &BatchGetMediaInfosResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vod/describe_media_distribution.go b/services/vod/describe_media_distribution.go new file mode 100644 index 0000000000..8fea185cfd --- /dev/null +++ b/services/vod/describe_media_distribution.go @@ -0,0 +1,104 @@ +package vod + +//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" +) + +// DescribeMediaDistribution invokes the vod.DescribeMediaDistribution API synchronously +func (client *Client) DescribeMediaDistribution(request *DescribeMediaDistributionRequest) (response *DescribeMediaDistributionResponse, err error) { + response = CreateDescribeMediaDistributionResponse() + err = client.DoAction(request, response) + return +} + +// DescribeMediaDistributionWithChan invokes the vod.DescribeMediaDistribution API asynchronously +func (client *Client) DescribeMediaDistributionWithChan(request *DescribeMediaDistributionRequest) (<-chan *DescribeMediaDistributionResponse, <-chan error) { + responseChan := make(chan *DescribeMediaDistributionResponse, 1) + errChan := make(chan error, 1) + err := client.AddAsyncTask(func() { + defer close(responseChan) + defer close(errChan) + response, err := client.DescribeMediaDistribution(request) + if err != nil { + errChan <- err + } else { + responseChan <- response + } + }) + if err != nil { + errChan <- err + close(responseChan) + close(errChan) + } + return responseChan, errChan +} + +// DescribeMediaDistributionWithCallback invokes the vod.DescribeMediaDistribution API asynchronously +func (client *Client) DescribeMediaDistributionWithCallback(request *DescribeMediaDistributionRequest, callback func(response *DescribeMediaDistributionResponse, err error)) <-chan int { + result := make(chan int, 1) + err := client.AddAsyncTask(func() { + var response *DescribeMediaDistributionResponse + var err error + defer close(result) + response, err = client.DescribeMediaDistribution(request) + callback(response, err) + result <- 1 + }) + if err != nil { + defer close(result) + callback(nil, err) + result <- 0 + } + return result +} + +// DescribeMediaDistributionRequest is the request struct for api DescribeMediaDistribution +type DescribeMediaDistributionRequest struct { + *requests.RpcRequest + EndTime string `position:"Query" name:"EndTime"` + StartTime string `position:"Query" name:"StartTime"` + StorageClass string `position:"Query" name:"StorageClass"` + Interval string `position:"Query" name:"Interval"` +} + +// DescribeMediaDistributionResponse is the response struct for api DescribeMediaDistribution +type DescribeMediaDistributionResponse struct { + *responses.BaseResponse + RequestId string `json:"RequestId" xml:"RequestId"` + Total int64 `json:"Total" xml:"Total"` + MediaDistributionList []MediaDistribution `json:"MediaDistributionList" xml:"MediaDistributionList"` +} + +// CreateDescribeMediaDistributionRequest creates a request to invoke DescribeMediaDistribution API +func CreateDescribeMediaDistributionRequest() (request *DescribeMediaDistributionRequest) { + request = &DescribeMediaDistributionRequest{ + RpcRequest: &requests.RpcRequest{}, + } + request.InitWithApiInfo("vod", "2017-03-21", "DescribeMediaDistribution", "vod", "openAPI") + request.Method = requests.POST + return +} + +// CreateDescribeMediaDistributionResponse creates a response to parse from DescribeMediaDistribution response +func CreateDescribeMediaDistributionResponse() (response *DescribeMediaDistributionResponse) { + response = &DescribeMediaDistributionResponse{ + BaseResponse: &responses.BaseResponse{}, + } + return +} diff --git a/services/vod/struct_audio_stream.go b/services/vod/struct_audio_stream.go index dc40e92165..3d3ef402ad 100644 --- a/services/vod/struct_audio_stream.go +++ b/services/vod/struct_audio_stream.go @@ -17,20 +17,20 @@ package vod // AudioStream is a nested struct in vod response type AudioStream struct { - Index string `json:"Index" xml:"Index"` - Timebase string `json:"Timebase" xml:"Timebase"` - SampleFmt string `json:"SampleFmt" xml:"SampleFmt"` - SampleRate string `json:"SampleRate" xml:"SampleRate"` - ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"` - Lang string `json:"Lang" xml:"Lang"` - CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` - Channels string `json:"Channels" xml:"Channels"` NumFrames string `json:"NumFrames" xml:"NumFrames"` + CodecName string `json:"CodecName" xml:"CodecName"` + Timebase string `json:"Timebase" xml:"Timebase"` Bitrate string `json:"Bitrate" xml:"Bitrate"` + SampleFmt string `json:"SampleFmt" xml:"SampleFmt"` + CodecTag string `json:"CodecTag" xml:"CodecTag"` CodecTagString string `json:"CodecTagString" xml:"CodecTagString"` + Index string `json:"Index" xml:"Index"` + Channels string `json:"Channels" xml:"Channels"` + Lang string `json:"Lang" xml:"Lang"` + SampleRate string `json:"SampleRate" xml:"SampleRate"` StartTime string `json:"StartTime" xml:"StartTime"` - CodecName string `json:"CodecName" xml:"CodecName"` Duration string `json:"Duration" xml:"Duration"` - CodecTag string `json:"CodecTag" xml:"CodecTag"` CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"` + CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` + ChannelLayout string `json:"ChannelLayout" xml:"ChannelLayout"` } diff --git a/services/vod/struct_audio_stream_list_in_batch_get_media_infos.go b/services/vod/struct_audio_stream_list_in_batch_get_media_infos.go new file mode 100644 index 0000000000..41fc8b559f --- /dev/null +++ b/services/vod/struct_audio_stream_list_in_batch_get_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// AudioStreamListInBatchGetMediaInfos is a nested struct in vod response +type AudioStreamListInBatchGetMediaInfos struct { + AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` +} diff --git a/services/vod/struct_audio_stream_list.go b/services/vod/struct_audio_stream_list_in_get_mezzanine_info.go similarity index 86% rename from services/vod/struct_audio_stream_list.go rename to services/vod/struct_audio_stream_list_in_get_mezzanine_info.go index ec54967c28..81ac519d87 100644 --- a/services/vod/struct_audio_stream_list.go +++ b/services/vod/struct_audio_stream_list_in_get_mezzanine_info.go @@ -15,7 +15,7 @@ package vod // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// AudioStreamList is a nested struct in vod response -type AudioStreamList struct { +// AudioStreamListInGetMezzanineInfo is a nested struct in vod response +type AudioStreamListInGetMezzanineInfo struct { AudioStream []AudioStream `json:"AudioStream" xml:"AudioStream"` } diff --git a/services/vod/struct_forbidden_media_ids_in_batch_get_media_infos.go b/services/vod/struct_forbidden_media_ids_in_batch_get_media_infos.go new file mode 100644 index 0000000000..e537cac634 --- /dev/null +++ b/services/vod/struct_forbidden_media_ids_in_batch_get_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// ForbiddenMediaIdsInBatchGetMediaInfos is a nested struct in vod response +type ForbiddenMediaIdsInBatchGetMediaInfos struct { + MediaId []string `json:"MediaId" xml:"MediaId"` +} diff --git a/services/vod/struct_forbidden_media_ids.go b/services/vod/struct_forbidden_media_ids_in_get_upload_details.go similarity index 85% rename from services/vod/struct_forbidden_media_ids.go rename to services/vod/struct_forbidden_media_ids_in_get_upload_details.go index b8a687430b..cf5aa26a41 100644 --- a/services/vod/struct_forbidden_media_ids.go +++ b/services/vod/struct_forbidden_media_ids_in_get_upload_details.go @@ -15,7 +15,7 @@ package vod // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// ForbiddenMediaIds is a nested struct in vod response -type ForbiddenMediaIds struct { +// ForbiddenMediaIdsInGetUploadDetails is a nested struct in vod response +type ForbiddenMediaIdsInGetUploadDetails struct { MediaId []string `json:"MediaId" xml:"MediaId"` } diff --git a/services/vod/struct_media_basic_info.go b/services/vod/struct_media_basic_info.go new file mode 100644 index 0000000000..f7210d23b0 --- /dev/null +++ b/services/vod/struct_media_basic_info.go @@ -0,0 +1,23 @@ +package vod + +//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. + +// MediaBasicInfo is a nested struct in vod response +type MediaBasicInfo struct { + MediaId string `json:"MediaId" xml:"MediaId"` + MediaInfo MediaInfo `json:"MediaInfo" xml:"MediaInfo"` + MezzanineInfo MezzanineInfo `json:"MezzanineInfo" xml:"MezzanineInfo"` +} diff --git a/services/vod/struct_media_distribution.go b/services/vod/struct_media_distribution.go new file mode 100644 index 0000000000..bae256090c --- /dev/null +++ b/services/vod/struct_media_distribution.go @@ -0,0 +1,23 @@ +package vod + +//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. + +// MediaDistribution is a nested struct in vod response +type MediaDistribution struct { + StartTime string `json:"StartTime" xml:"StartTime"` + EndTime string `json:"EndTime" xml:"EndTime"` + Count int64 `json:"Count" xml:"Count"` +} diff --git a/services/vod/struct_media_distribution_list.go b/services/vod/struct_media_distribution_list.go new file mode 100644 index 0000000000..6c892afc92 --- /dev/null +++ b/services/vod/struct_media_distribution_list.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// MediaDistributionList is a nested struct in vod response +type MediaDistributionList struct { + MediaDistribution []MediaDistribution `json:"MediaDistribution" xml:"MediaDistribution"` +} diff --git a/services/vod/struct_media_info.go b/services/vod/struct_media_info.go new file mode 100644 index 0000000000..83282dafa1 --- /dev/null +++ b/services/vod/struct_media_info.go @@ -0,0 +1,41 @@ +package vod + +//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. + +// MediaInfo is a nested struct in vod response +type MediaInfo struct { + StorageLocation string `json:"StorageLocation" xml:"StorageLocation"` + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + CateId int64 `json:"CateId" xml:"CateId"` + MediaId string `json:"MediaId" xml:"MediaId"` + DownloadSwitch string `json:"DownloadSwitch" xml:"DownloadSwitch"` + Tags string `json:"Tags" xml:"Tags"` + ModificationTime string `json:"ModificationTime" xml:"ModificationTime"` + RegionId string `json:"RegionId" xml:"RegionId"` + CateName string `json:"CateName" xml:"CateName"` + Description string `json:"Description" xml:"Description"` + PreprocessStatus string `json:"PreprocessStatus" xml:"PreprocessStatus"` + AppId string `json:"AppId" xml:"AppId"` + CoverURL string `json:"CoverURL" xml:"CoverURL"` + TemplateGroupId string `json:"TemplateGroupId" xml:"TemplateGroupId"` + Title string `json:"Title" xml:"Title"` + StorageClass string `json:"StorageClass" xml:"StorageClass"` + RestoreStatus string `json:"RestoreStatus" xml:"RestoreStatus"` + RestoreExpiration string `json:"RestoreExpiration" xml:"RestoreExpiration"` + UserData string `json:"UserData" xml:"UserData"` + Snapshots []string `json:"Snapshots" xml:"Snapshots"` +} diff --git a/services/vod/struct_media_infos.go b/services/vod/struct_media_infos.go new file mode 100644 index 0000000000..54abf7b67e --- /dev/null +++ b/services/vod/struct_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// MediaInfos is a nested struct in vod response +type MediaInfos struct { + MediaBasicInfo []MediaBasicInfo `json:"MediaBasicInfo" xml:"MediaBasicInfo"` +} diff --git a/services/vod/struct_mezzanine_info.go b/services/vod/struct_mezzanine_info.go new file mode 100644 index 0000000000..a0dbccc6cc --- /dev/null +++ b/services/vod/struct_mezzanine_info.go @@ -0,0 +1,34 @@ +package vod + +//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. + +// MezzanineInfo is a nested struct in vod response +type MezzanineInfo struct { + CreationTime string `json:"CreationTime" xml:"CreationTime"` + Status string `json:"Status" xml:"Status"` + FileURL string `json:"FileURL" xml:"FileURL"` + MediaId string `json:"MediaId" xml:"MediaId"` + Height int64 `json:"Height" xml:"Height"` + Bitrate string `json:"Bitrate" xml:"Bitrate"` + FileName string `json:"FileName" xml:"FileName"` + Width int64 `json:"Width" xml:"Width"` + Size int64 `json:"Size" xml:"Size"` + CRC64 string `json:"CRC64" xml:"CRC64"` + Duration string `json:"Duration" xml:"Duration"` + Fps string `json:"Fps" xml:"Fps"` + AudioStreamList []AudioStream `json:"AudioStreamList" xml:"AudioStreamList"` + VideoStreamList []VideoStream `json:"VideoStreamList" xml:"VideoStreamList"` +} diff --git a/services/vod/struct_non_exist_media_ids_in_batch_get_media_infos.go b/services/vod/struct_non_exist_media_ids_in_batch_get_media_infos.go new file mode 100644 index 0000000000..21545198e8 --- /dev/null +++ b/services/vod/struct_non_exist_media_ids_in_batch_get_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// NonExistMediaIdsInBatchGetMediaInfos is a nested struct in vod response +type NonExistMediaIdsInBatchGetMediaInfos struct { + MediaId []string `json:"MediaId" xml:"MediaId"` +} diff --git a/services/vod/struct_play_info.go b/services/vod/struct_play_info.go index 069c4b5460..25ef1e6826 100644 --- a/services/vod/struct_play_info.go +++ b/services/vod/struct_play_info.go @@ -19,6 +19,7 @@ package vod type PlayInfo struct { Format string `json:"Format" xml:"Format"` BitDepth int `json:"BitDepth" xml:"BitDepth"` + CodecName string `json:"CodecName" xml:"CodecName"` NarrowBandType string `json:"NarrowBandType" xml:"NarrowBandType"` Fps string `json:"Fps" xml:"Fps"` Encrypt int64 `json:"Encrypt" xml:"Encrypt"` diff --git a/services/vod/struct_snapshots_in_batch_get_media_infos.go b/services/vod/struct_snapshots_in_batch_get_media_infos.go new file mode 100644 index 0000000000..e56f40db81 --- /dev/null +++ b/services/vod/struct_snapshots_in_batch_get_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// SnapshotsInBatchGetMediaInfos is a nested struct in vod response +type SnapshotsInBatchGetMediaInfos struct { + Snapshot []string `json:"Snapshot" xml:"Snapshot"` +} diff --git a/services/vod/struct_video_stream.go b/services/vod/struct_video_stream.go index fc30047990..0b33252aa8 100644 --- a/services/vod/struct_video_stream.go +++ b/services/vod/struct_video_stream.go @@ -17,28 +17,28 @@ package vod // VideoStream is a nested struct in vod response type VideoStream struct { - Timebase string `json:"Timebase" xml:"Timebase"` - Index string `json:"Index" xml:"Index"` - AvgFPS string `json:"AvgFPS" xml:"AvgFPS"` - PixFmt string `json:"PixFmt" xml:"PixFmt"` - Lang string `json:"Lang" xml:"Lang"` - Sar string `json:"Sar" xml:"Sar"` Height string `json:"Height" xml:"Height"` - CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` NumFrames string `json:"NumFrames" xml:"NumFrames"` + Dar string `json:"Dar" xml:"Dar"` + CodecName string `json:"CodecName" xml:"CodecName"` + Timebase string `json:"Timebase" xml:"Timebase"` + Profile string `json:"Profile" xml:"Profile"` + Fps string `json:"Fps" xml:"Fps"` Bitrate string `json:"Bitrate" xml:"Bitrate"` - Rotate string `json:"Rotate" xml:"Rotate"` + Sar string `json:"Sar" xml:"Sar"` + Level string `json:"Level" xml:"Level"` + PixFmt string `json:"PixFmt" xml:"PixFmt"` + CodecTag string `json:"CodecTag" xml:"CodecTag"` CodecTagString string `json:"CodecTagString" xml:"CodecTagString"` + Index string `json:"Index" xml:"Index"` + Lang string `json:"Lang" xml:"Lang"` HasBFrames string `json:"HasBFrames" xml:"HasBFrames"` - Profile string `json:"Profile" xml:"Profile"` - StartTime string `json:"StartTime" xml:"StartTime"` - Dar string `json:"Dar" xml:"Dar"` - CodecName string `json:"CodecName" xml:"CodecName"` Width string `json:"Width" xml:"Width"` + Rotate string `json:"Rotate" xml:"Rotate"` + StartTime string `json:"StartTime" xml:"StartTime"` Duration string `json:"Duration" xml:"Duration"` - Fps string `json:"Fps" xml:"Fps"` - CodecTag string `json:"CodecTag" xml:"CodecTag"` CodecTimeBase string `json:"CodecTimeBase" xml:"CodecTimeBase"` - Level string `json:"Level" xml:"Level"` HDRType string `json:"HDRType" xml:"HDRType"` + CodecLongName string `json:"CodecLongName" xml:"CodecLongName"` + AvgFPS string `json:"AvgFPS" xml:"AvgFPS"` } diff --git a/services/vod/struct_video_stream_list_in_batch_get_media_infos.go b/services/vod/struct_video_stream_list_in_batch_get_media_infos.go new file mode 100644 index 0000000000..fe058404f4 --- /dev/null +++ b/services/vod/struct_video_stream_list_in_batch_get_media_infos.go @@ -0,0 +1,21 @@ +package vod + +//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. + +// VideoStreamListInBatchGetMediaInfos is a nested struct in vod response +type VideoStreamListInBatchGetMediaInfos struct { + VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` +} diff --git a/services/vod/struct_video_stream_list.go b/services/vod/struct_video_stream_list_in_get_mezzanine_info.go similarity index 86% rename from services/vod/struct_video_stream_list.go rename to services/vod/struct_video_stream_list_in_get_mezzanine_info.go index efe60ba1ad..7209a00842 100644 --- a/services/vod/struct_video_stream_list.go +++ b/services/vod/struct_video_stream_list_in_get_mezzanine_info.go @@ -15,7 +15,7 @@ package vod // Code generated by Alibaba Cloud SDK Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -// VideoStreamList is a nested struct in vod response -type VideoStreamList struct { +// VideoStreamListInGetMezzanineInfo is a nested struct in vod response +type VideoStreamListInGetMezzanineInfo struct { VideoStream []VideoStream `json:"VideoStream" xml:"VideoStream"` } diff --git a/services/vod/upload_stream_by_url.go b/services/vod/upload_stream_by_url.go index fd8714ef8c..f0dca3c736 100644 --- a/services/vod/upload_stream_by_url.go +++ b/services/vod/upload_stream_by_url.go @@ -71,12 +71,13 @@ func (client *Client) UploadStreamByURLWithCallback(request *UploadStreamByURLRe // UploadStreamByURLRequest is the request struct for api UploadStreamByURL type UploadStreamByURLRequest struct { *requests.RpcRequest - FileExtension string `position:"Query" name:"FileExtension"` - UserData string `position:"Query" name:"UserData"` - HDRType string `position:"Query" name:"HDRType"` - Definition string `position:"Query" name:"Definition"` - StreamURL string `position:"Query" name:"StreamURL"` - MediaId string `position:"Query" name:"MediaId"` + FileExtension string `position:"Query" name:"FileExtension"` + UserData string `position:"Query" name:"UserData"` + HDRType string `position:"Query" name:"HDRType"` + Definition string `position:"Query" name:"Definition"` + StreamURL string `position:"Query" name:"StreamURL"` + MediaId string `position:"Query" name:"MediaId"` + UploadMetadata string `position:"Query" name:"UploadMetadata"` } // UploadStreamByURLResponse is the response struct for api UploadStreamByURL