diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c128adf6..5011dade0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,46 @@ +# 3.0.12-beta 2021-08-10 + +### HuaweiCloud SDK EIP +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Modify the name of the response parameter of the interfaces `ListBandwidths` and `ShowPublicip`: `publicip_border_group` -> `public_border_group` + +### HuaweiCloud SDK EVS +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `server_id` to the interface `ListVolumes`. + +### HuaweiCloud SDK IAM +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Remove the response parameter `order_id` from the interface `CreateDeployment`. + +### HuaweiCloud SDK IMS +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Modify the request parameter `value` of the interface `UpdateImage` as a required parameter. + +### HuaweiCloud SDK VPC +- _Features_ + - None +- _Bug Fix_ + - None +- _Change_ + - Add the request parameter `enable_dhcp` to the interface `NeutronListSubnets`. + - Add the response parameter `security_groups_links` to the interface `NeutronListSecurityGroups`. + # 3.0.11-beta 2021-7-30 ### HuaweiCloud SDK IMS diff --git a/CHANGELOG_CN.md b/CHANGELOG_CN.md index a6791487b..9f775932d 100644 --- a/CHANGELOG_CN.md +++ b/CHANGELOG_CN.md @@ -1,3 +1,46 @@ +# 3.0.12-beta 2021-08-10 + +### HuaweiCloud SDK EIP +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListBandwidths`、`ShowPublicip`的响应参数名称调整:`publicip_border_group` -> `public_border_group` + +### HuaweiCloud SDK EVS +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`ListVolumes`新增请求参数`server_id` + +### HuaweiCloud SDK IAM +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`CreateDeployment`移除响应参数`order_id` + +### HuaweiCloud SDK IMS +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 修改接口`UpdateImage`的请求参数`value`为必填参数 + +### HuaweiCloud SDK VPC +- _新增特性_ + - 无 +- _解决问题_ + - 无 +- _特性变更_ + - 接口`NeutronListSubnets`新增请求参数`enable_dhcp` + - 接口`NeutronListSecurityGroups`新增响应参数`security_groups_links` + # 3.0.11-beta 2021-7-30 ### HuaweiCloud SDK IMS diff --git a/package.json b/package.json index 055214b7c..6163ce954 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "huaweicloud-sdk-nodejs-v3", - "version": "3.0.11-beta", + "version": "3.0.12-beta", "description": "Core code for Huaweicloud SDK for Node.js", "main": "index.js", "scripts": { diff --git a/services/eip/v2/model/BandwidthResp.ts b/services/eip/v2/model/BandwidthResp.ts index bd0707566..fd6875f2d 100644 --- a/services/eip/v2/model/BandwidthResp.ts +++ b/services/eip/v2/model/BandwidthResp.ts @@ -19,7 +19,7 @@ export class BandwidthResp { private 'bandwidth_rules'?: Array | undefined; private 'created_at'?: string | undefined; private 'updated_at'?: string | undefined; - private 'publicip_border_group'?: string | undefined; + private 'public_border_group'?: string | undefined; public constructor() { } public withBandwidthType(bandwidthType: string): BandwidthResp { @@ -158,15 +158,15 @@ export class BandwidthResp { public get updatedAt() { return this['updated_at']; } - public withPublicipBorderGroup(publicipBorderGroup: string): BandwidthResp { - this['publicip_border_group'] = publicipBorderGroup; + public withPublicBorderGroup(publicBorderGroup: string): BandwidthResp { + this['public_border_group'] = publicBorderGroup; return this; } - public set publicipBorderGroup(publicipBorderGroup: string | undefined) { - this['publicip_border_group'] = publicipBorderGroup; + public set publicBorderGroup(publicBorderGroup: string | undefined) { + this['public_border_group'] = publicBorderGroup; } - public get publicipBorderGroup() { - return this['publicip_border_group']; + public get publicBorderGroup() { + return this['public_border_group']; } } diff --git a/services/eip/v2/model/PublicipShowResp.ts b/services/eip/v2/model/PublicipShowResp.ts index f55066f2d..ba23e6a12 100644 --- a/services/eip/v2/model/PublicipShowResp.ts +++ b/services/eip/v2/model/PublicipShowResp.ts @@ -18,7 +18,7 @@ export class PublicipShowResp { public type?: string; private 'public_ipv6_address'?: string | undefined; private 'ip_version'?: PublicipShowRespIpVersionEnum | undefined; - private 'publicip_border_group'?: string | undefined; + private 'public_border_group'?: string | undefined; public constructor() { } public withBandwidthId(bandwidthId: string): PublicipShowResp { @@ -157,15 +157,15 @@ export class PublicipShowResp { public get ipVersion() { return this['ip_version']; } - public withPublicipBorderGroup(publicipBorderGroup: string): PublicipShowResp { - this['publicip_border_group'] = publicipBorderGroup; + public withPublicBorderGroup(publicBorderGroup: string): PublicipShowResp { + this['public_border_group'] = publicBorderGroup; return this; } - public set publicipBorderGroup(publicipBorderGroup: string | undefined) { - this['publicip_border_group'] = publicipBorderGroup; + public set publicBorderGroup(publicBorderGroup: string | undefined) { + this['public_border_group'] = publicBorderGroup; } - public get publicipBorderGroup() { - return this['publicip_border_group']; + public get publicBorderGroup() { + return this['public_border_group']; } } diff --git a/services/evs/v2/EvsClient.ts b/services/evs/v2/EvsClient.ts index cc09adab2..3fe159aac 100644 --- a/services/evs/v2/EvsClient.ts +++ b/services/evs/v2/EvsClient.ts @@ -309,6 +309,7 @@ export class EvsClient { * @param {string} [id] 云硬盘ID。 * @param {string} [ids] 云硬盘id列表,格式为ids=[\'id1\',\'id2\',...,\'idx\'],返回“ids”中有效id的云硬盘详情,无效的id会被忽略。 支持查询最多60个id对应的云硬盘详情。 如果“id”和“ids”查询参数同时存在,“id”会被忽略。 * @param {string} [enterpriseProjectId] 指定企业项目id进行过滤。 传入“all_granted_eps”,代表查询权限范围内的所有企业项目下的云硬盘。 > 说明: > > 关于企业项目ID的获取及企业项目特性的详细信息,请参考:\"[企业管理用户指南](https://support.huaweicloud.com/usermanual-em/zh-cn_topic_0123692049.html)\"。 + * @param {string} [serverId] 云服务器id * @param {*} [options] Override http request option. * @throws {RequiredError} */ @@ -938,6 +939,7 @@ export const ParamCreater = function () { let id; let ids; let enterpriseProjectId; + let serverId; if (listVolumesRequest !== null && listVolumesRequest !== undefined) { if (listVolumesRequest instanceof ListVolumesRequest) { @@ -958,6 +960,7 @@ export const ParamCreater = function () { id = listVolumesRequest.id; ids = listVolumesRequest.ids; enterpriseProjectId = listVolumesRequest.enterpriseProjectId; + serverId = listVolumesRequest.serverId; } else { marker = listVolumesRequest['marker']; name = listVolumesRequest['name']; @@ -976,6 +979,7 @@ export const ParamCreater = function () { id = listVolumesRequest['id']; ids = listVolumesRequest['ids']; enterpriseProjectId = listVolumesRequest['enterprise_project_id']; + serverId = listVolumesRequest['server_id']; } } @@ -1030,6 +1034,9 @@ export const ParamCreater = function () { if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) { localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId; } + if (serverId !== null && serverId !== undefined) { + localVarQueryParameter['server_id'] = serverId; + } options.queryParams = localVarQueryParameter; options.headers = localVarHeaderParameter; diff --git a/services/evs/v2/model/ListVolumesRequest.ts b/services/evs/v2/model/ListVolumesRequest.ts index db98d4f78..4b7f88156 100644 --- a/services/evs/v2/model/ListVolumesRequest.ts +++ b/services/evs/v2/model/ListVolumesRequest.ts @@ -18,6 +18,7 @@ export class ListVolumesRequest { public id?: string; public ids?: string; private 'enterprise_project_id'?: string | undefined; + private 'server_id'?: string | undefined; public constructor() { } public withMarker(marker: string): ListVolumesRequest { @@ -136,4 +137,14 @@ export class ListVolumesRequest { public get enterpriseProjectId() { return this['enterprise_project_id']; } + public withServerId(serverId: string): ListVolumesRequest { + this['server_id'] = serverId; + return this; + } + public set serverId(serverId: string | undefined) { + this['server_id'] = serverId; + } + public get serverId() { + return this['server_id']; + } } \ No newline at end of file diff --git a/services/iam/v3/IamClient.ts b/services/iam/v3/IamClient.ts index e0f6b0697..07f94d2c3 100644 --- a/services/iam/v3/IamClient.ts +++ b/services/iam/v3/IamClient.ts @@ -459,6 +459,7 @@ import { UpdateDomainPasswordPolicyResponse } from './model/UpdateDomainPassword import { UpdateDomainProtectPolicyRequest } from './model/UpdateDomainProtectPolicyRequest'; import { UpdateDomainProtectPolicyRequestBody } from './model/UpdateDomainProtectPolicyRequestBody'; import { UpdateDomainProtectPolicyResponse } from './model/UpdateDomainProtectPolicyResponse'; +import { UpdateIdentityproviderOption } from './model/UpdateIdentityproviderOption'; import { UpdateLoginProject } from './model/UpdateLoginProject'; import { UpdateLoginProjectReq } from './model/UpdateLoginProjectReq'; import { UpdateLoginProtectRequest } from './model/UpdateLoginProtectRequest'; diff --git a/services/iam/v3/model/IdentityproviderOption.ts b/services/iam/v3/model/IdentityproviderOption.ts index 4d837049d..759c4a175 100644 --- a/services/iam/v3/model/IdentityproviderOption.ts +++ b/services/iam/v3/model/IdentityproviderOption.ts @@ -1,10 +1,21 @@ export class IdentityproviderOption { + private 'sso_type'?: string | undefined; public description?: string; public enabled?: boolean; public constructor() { } + public withSsoType(ssoType: string): IdentityproviderOption { + this['sso_type'] = ssoType; + return this; + } + public set ssoType(ssoType: string | undefined) { + this['sso_type'] = ssoType; + } + public get ssoType() { + return this['sso_type']; + } public withDescription(description: string): IdentityproviderOption { this['description'] = description; return this; diff --git a/services/iam/v3/model/IdentityprovidersResult.ts b/services/iam/v3/model/IdentityprovidersResult.ts index e9a9db5f5..37b8e185b 100644 --- a/services/iam/v3/model/IdentityprovidersResult.ts +++ b/services/iam/v3/model/IdentityprovidersResult.ts @@ -2,18 +2,30 @@ import { IdentityprovidersLinks } from './IdentityprovidersLinks'; export class IdentityprovidersResult { + private 'sso_type': string | undefined; public id: string; public description: string; public enabled: boolean; private 'remote_ids': Array | undefined; public links: IdentityprovidersLinks; - public constructor(id?: any, description?: any, enabled?: any, remoteIds?: any, links?: any) { + public constructor(ssoType?: any, id?: any, description?: any, enabled?: any, remoteIds?: any, links?: any) { + this['sso_type'] = ssoType; this['id'] = id; this['description'] = description; this['enabled'] = enabled; this['remote_ids'] = remoteIds; this['links'] = links; } + public withSsoType(ssoType: string): IdentityprovidersResult { + this['sso_type'] = ssoType; + return this; + } + public set ssoType(ssoType: string | undefined) { + this['sso_type'] = ssoType; + } + public get ssoType() { + return this['sso_type']; + } public withId(id: string): IdentityprovidersResult { this['id'] = id; return this; diff --git a/services/iam/v3/model/KeystoneUpdateIdentityProviderRequestBody.ts b/services/iam/v3/model/KeystoneUpdateIdentityProviderRequestBody.ts index 98b52494f..70c8d4867 100644 --- a/services/iam/v3/model/KeystoneUpdateIdentityProviderRequestBody.ts +++ b/services/iam/v3/model/KeystoneUpdateIdentityProviderRequestBody.ts @@ -1,16 +1,16 @@ -import { IdentityproviderOption } from './IdentityproviderOption'; +import { UpdateIdentityproviderOption } from './UpdateIdentityproviderOption'; export class KeystoneUpdateIdentityProviderRequestBody { - private 'identity_provider': IdentityproviderOption | undefined; + private 'identity_provider': UpdateIdentityproviderOption | undefined; public constructor(identityProvider?: any) { this['identity_provider'] = identityProvider; } - public withIdentityProvider(identityProvider: IdentityproviderOption): KeystoneUpdateIdentityProviderRequestBody { + public withIdentityProvider(identityProvider: UpdateIdentityproviderOption): KeystoneUpdateIdentityProviderRequestBody { this['identity_provider'] = identityProvider; return this; } - public set identityProvider(identityProvider: IdentityproviderOption | undefined) { + public set identityProvider(identityProvider: UpdateIdentityproviderOption | undefined) { this['identity_provider'] = identityProvider; } public get identityProvider() { diff --git a/services/iam/v3/model/ProtocolOption.ts b/services/iam/v3/model/ProtocolOption.ts index 533fc7f2d..c9fccd717 100644 --- a/services/iam/v3/model/ProtocolOption.ts +++ b/services/iam/v3/model/ProtocolOption.ts @@ -1,9 +1,8 @@ export class ProtocolOption { - private 'mapping_id': string | undefined; - public constructor(mappingId?: any) { - this['mapping_id'] = mappingId; + private 'mapping_id'?: string | undefined; + public constructor() { } public withMappingId(mappingId: string): ProtocolOption { this['mapping_id'] = mappingId; diff --git a/services/iam/v3/model/UpdateIdentityproviderOption.ts b/services/iam/v3/model/UpdateIdentityproviderOption.ts new file mode 100644 index 000000000..58ea48dc3 --- /dev/null +++ b/services/iam/v3/model/UpdateIdentityproviderOption.ts @@ -0,0 +1,16 @@ + + +export class UpdateIdentityproviderOption { + public description?: string; + public enabled?: boolean; + public constructor() { + } + public withDescription(description: string): UpdateIdentityproviderOption { + this['description'] = description; + return this; + } + public withEnabled(enabled: boolean): UpdateIdentityproviderOption { + this['enabled'] = enabled; + return this; + } +} \ No newline at end of file diff --git a/services/iam/v3/public-api.ts b/services/iam/v3/public-api.ts index 01289e8bb..fc2c75cf5 100644 --- a/services/iam/v3/public-api.ts +++ b/services/iam/v3/public-api.ts @@ -457,6 +457,7 @@ export * from './model/UpdateDomainPasswordPolicyResponse'; export * from './model/UpdateDomainProtectPolicyRequest'; export * from './model/UpdateDomainProtectPolicyRequestBody'; export * from './model/UpdateDomainProtectPolicyResponse'; +export * from './model/UpdateIdentityproviderOption'; export * from './model/UpdateLoginProject'; export * from './model/UpdateLoginProjectReq'; export * from './model/UpdateLoginProtectRequest'; diff --git a/services/ims/v2/model/UpdateImageRequestBody.ts b/services/ims/v2/model/UpdateImageRequestBody.ts index 097dfbf63..ac63e79b6 100644 --- a/services/ims/v2/model/UpdateImageRequestBody.ts +++ b/services/ims/v2/model/UpdateImageRequestBody.ts @@ -3,10 +3,11 @@ export class UpdateImageRequestBody { public op: UpdateImageRequestBodyOpEnum; public path: string; - public value?: string; - public constructor(op?: any, path?: any) { + public value: string; + public constructor(op?: any, path?: any, value?: any) { this['op'] = op; this['path'] = path; + this['value'] = value; } public withOp(op: UpdateImageRequestBodyOpEnum): UpdateImageRequestBody { this['op'] = op; diff --git a/services/vod/huaweicloud-sdk-vod.ts b/services/vod/huaweicloud-sdk-vod.ts new file mode 100644 index 000000000..4ab93ac8c --- /dev/null +++ b/services/vod/huaweicloud-sdk-vod.ts @@ -0,0 +1 @@ +export * from './v1/public-api'; diff --git a/services/vod/v1/VodClient.ts b/services/vod/v1/VodClient.ts new file mode 100644 index 000000000..dd9f05cd4 --- /dev/null +++ b/services/vod/v1/VodClient.ts @@ -0,0 +1,3273 @@ +import { HcClient } from "@huaweicloud/huaweicloud-sdk-core/HcClient"; +import { ClientBuilder } from "@huaweicloud/huaweicloud-sdk-core/ClientBuilder"; +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +import { AssetDetails } from './model/AssetDetails'; +import { AssetInfo } from './model/AssetInfo'; +import { AssetProcessReq } from './model/AssetProcessReq'; +import { AssetReviewReq } from './model/AssetReviewReq'; +import { AssetSummary } from './model/AssetSummary'; +import { AudioTemplateInfo } from './model/AudioTemplateInfo'; +import { BaseInfo } from './model/BaseInfo'; +import { CancelAssetTranscodeTaskRequest } from './model/CancelAssetTranscodeTaskRequest'; +import { CancelAssetTranscodeTaskResponse } from './model/CancelAssetTranscodeTaskResponse'; +import { CancelExtractAudioTaskRequest } from './model/CancelExtractAudioTaskRequest'; +import { CancelExtractAudioTaskResponse } from './model/CancelExtractAudioTaskResponse'; +import { CheckMd5DuplicationRequest } from './model/CheckMd5DuplicationRequest'; +import { CheckMd5DuplicationResponse } from './model/CheckMd5DuplicationResponse'; +import { Common } from './model/Common'; +import { ConfirmAssetUploadReq } from './model/ConfirmAssetUploadReq'; +import { ConfirmAssetUploadRequest } from './model/ConfirmAssetUploadRequest'; +import { ConfirmAssetUploadResponse } from './model/ConfirmAssetUploadResponse'; +import { ConfirmImageUploadReq } from './model/ConfirmImageUploadReq'; +import { ConfirmImageUploadRequest } from './model/ConfirmImageUploadRequest'; +import { ConfirmImageUploadResponse } from './model/ConfirmImageUploadResponse'; +import { CoverInfo } from './model/CoverInfo'; +import { CreateAssetByFileUploadReq } from './model/CreateAssetByFileUploadReq'; +import { CreateAssetByFileUploadRequest } from './model/CreateAssetByFileUploadRequest'; +import { CreateAssetByFileUploadResponse } from './model/CreateAssetByFileUploadResponse'; +import { CreateAssetCategoryRequest } from './model/CreateAssetCategoryRequest'; +import { CreateAssetCategoryResponse } from './model/CreateAssetCategoryResponse'; +import { CreateAssetProcessTaskRequest } from './model/CreateAssetProcessTaskRequest'; +import { CreateAssetProcessTaskResponse } from './model/CreateAssetProcessTaskResponse'; +import { CreateAssetReviewTaskRequest } from './model/CreateAssetReviewTaskRequest'; +import { CreateAssetReviewTaskResponse } from './model/CreateAssetReviewTaskResponse'; +import { CreateCategoryReq } from './model/CreateCategoryReq'; +import { CreateExtractAudioTaskRequest } from './model/CreateExtractAudioTaskRequest'; +import { CreateExtractAudioTaskResponse } from './model/CreateExtractAudioTaskResponse'; +import { CreatePreheatingAssetReq } from './model/CreatePreheatingAssetReq'; +import { CreatePreheatingAssetRequest } from './model/CreatePreheatingAssetRequest'; +import { CreatePreheatingAssetResponse } from './model/CreatePreheatingAssetResponse'; +import { CreateTakeOverTaskReq } from './model/CreateTakeOverTaskReq'; +import { CreateTakeOverTaskRequest } from './model/CreateTakeOverTaskRequest'; +import { CreateTakeOverTaskResponse } from './model/CreateTakeOverTaskResponse'; +import { CreateTemplateGroupRequest } from './model/CreateTemplateGroupRequest'; +import { CreateTemplateGroupResponse } from './model/CreateTemplateGroupResponse'; +import { CreateWatermarkTemplateReq } from './model/CreateWatermarkTemplateReq'; +import { CreateWatermarkTemplateRequest } from './model/CreateWatermarkTemplateRequest'; +import { CreateWatermarkTemplateResponse } from './model/CreateWatermarkTemplateResponse'; +import { DeleteAssetCategoryRequest } from './model/DeleteAssetCategoryRequest'; +import { DeleteAssetCategoryResponse } from './model/DeleteAssetCategoryResponse'; +import { DeleteAssetsRequest } from './model/DeleteAssetsRequest'; +import { DeleteAssetsResponse } from './model/DeleteAssetsResponse'; +import { DeleteResult } from './model/DeleteResult'; +import { DeleteTemplateGroupRequest } from './model/DeleteTemplateGroupRequest'; +import { DeleteTemplateGroupResponse } from './model/DeleteTemplateGroupResponse'; +import { DeleteWatermarkTemplateRequest } from './model/DeleteWatermarkTemplateRequest'; +import { DeleteWatermarkTemplateResponse } from './model/DeleteWatermarkTemplateResponse'; +import { ExtractAudioTaskReq } from './model/ExtractAudioTaskReq'; +import { FileAddr } from './model/FileAddr'; +import { ListAssetCategoryRequest } from './model/ListAssetCategoryRequest'; +import { ListAssetCategoryResponse } from './model/ListAssetCategoryResponse'; +import { ListAssetListRequest } from './model/ListAssetListRequest'; +import { ListAssetListResponse } from './model/ListAssetListResponse'; +import { ListTakeOverTaskRequest } from './model/ListTakeOverTaskRequest'; +import { ListTakeOverTaskResponse } from './model/ListTakeOverTaskResponse'; +import { ListTemplateGroupRequest } from './model/ListTemplateGroupRequest'; +import { ListTemplateGroupResponse } from './model/ListTemplateGroupResponse'; +import { ListTopStatisticsRequest } from './model/ListTopStatisticsRequest'; +import { ListTopStatisticsResponse } from './model/ListTopStatisticsResponse'; +import { ListWatermarkTemplateRequest } from './model/ListWatermarkTemplateRequest'; +import { ListWatermarkTemplateResponse } from './model/ListWatermarkTemplateResponse'; +import { MetaData } from './model/MetaData'; +import { ModifyTransTemplateGroup } from './model/ModifyTransTemplateGroup'; +import { Output } from './model/Output'; +import { Parameter } from './model/Parameter'; +import { PictureReviewRet } from './model/PictureReviewRet'; +import { PlayInfo } from './model/PlayInfo'; +import { PreheatingResult } from './model/PreheatingResult'; +import { PublishAssetFromObsReq } from './model/PublishAssetFromObsReq'; +import { PublishAssetFromObsRequest } from './model/PublishAssetFromObsRequest'; +import { PublishAssetFromObsResponse } from './model/PublishAssetFromObsResponse'; +import { PublishAssetReq } from './model/PublishAssetReq'; +import { PublishAssetsRequest } from './model/PublishAssetsRequest'; +import { PublishAssetsResponse } from './model/PublishAssetsResponse'; +import { QualityInfo } from './model/QualityInfo'; +import { QueryCategoryRsp } from './model/QueryCategoryRsp'; +import { Review } from './model/Review'; +import { ReviewDetail } from './model/ReviewDetail'; +import { ReviewInfo } from './model/ReviewInfo'; +import { ShowAssetCipherRequest } from './model/ShowAssetCipherRequest'; +import { ShowAssetCipherResponse } from './model/ShowAssetCipherResponse'; +import { ShowAssetDetailRequest } from './model/ShowAssetDetailRequest'; +import { ShowAssetDetailResponse } from './model/ShowAssetDetailResponse'; +import { ShowAssetMetaRequest } from './model/ShowAssetMetaRequest'; +import { ShowAssetMetaResponse } from './model/ShowAssetMetaResponse'; +import { ShowAssetTempAuthorityRequest } from './model/ShowAssetTempAuthorityRequest'; +import { ShowAssetTempAuthorityResponse } from './model/ShowAssetTempAuthorityResponse'; +import { ShowCdnStatisticsRequest } from './model/ShowCdnStatisticsRequest'; +import { ShowCdnStatisticsResponse } from './model/ShowCdnStatisticsResponse'; +import { ShowPreheatingAssetRequest } from './model/ShowPreheatingAssetRequest'; +import { ShowPreheatingAssetResponse } from './model/ShowPreheatingAssetResponse'; +import { ShowTakeOverAssetDetailsRequest } from './model/ShowTakeOverAssetDetailsRequest'; +import { ShowTakeOverAssetDetailsResponse } from './model/ShowTakeOverAssetDetailsResponse'; +import { ShowTakeOverTaskDetailsRequest } from './model/ShowTakeOverTaskDetailsRequest'; +import { ShowTakeOverTaskDetailsResponse } from './model/ShowTakeOverTaskDetailsResponse'; +import { ShowVodStatisticsRequest } from './model/ShowVodStatisticsRequest'; +import { ShowVodStatisticsResponse } from './model/ShowVodStatisticsResponse'; +import { Subtitle } from './model/Subtitle'; +import { SubtitleInfo } from './model/SubtitleInfo'; +import { TakeOverTask } from './model/TakeOverTask'; +import { TemplateGroup } from './model/TemplateGroup'; +import { TextReviewRet } from './model/TextReviewRet'; +import { Thumbnail } from './model/Thumbnail'; +import { ThumbnailInfo } from './model/ThumbnailInfo'; +import { ThumbnailRsp } from './model/ThumbnailRsp'; +import { TopUrl } from './model/TopUrl'; +import { TransTemplateGroup } from './model/TransTemplateGroup'; +import { TranscodeInfo } from './model/TranscodeInfo'; +import { UnpublishAssetsRequest } from './model/UnpublishAssetsRequest'; +import { UnpublishAssetsResponse } from './model/UnpublishAssetsResponse'; +import { UpdateAssetCategoryRequest } from './model/UpdateAssetCategoryRequest'; +import { UpdateAssetCategoryResponse } from './model/UpdateAssetCategoryResponse'; +import { UpdateAssetMetaReq } from './model/UpdateAssetMetaReq'; +import { UpdateAssetMetaRequest } from './model/UpdateAssetMetaRequest'; +import { UpdateAssetMetaResponse } from './model/UpdateAssetMetaResponse'; +import { UpdateAssetRequest } from './model/UpdateAssetRequest'; +import { UpdateAssetResponse } from './model/UpdateAssetResponse'; +import { UpdateBucketAuthorizedReq } from './model/UpdateBucketAuthorizedReq'; +import { UpdateBucketAuthorizedRequest } from './model/UpdateBucketAuthorizedRequest'; +import { UpdateBucketAuthorizedResponse } from './model/UpdateBucketAuthorizedResponse'; +import { UpdateCategoryReq } from './model/UpdateCategoryReq'; +import { UpdateCoverByThumbnailReq } from './model/UpdateCoverByThumbnailReq'; +import { UpdateCoverByThumbnailRequest } from './model/UpdateCoverByThumbnailRequest'; +import { UpdateCoverByThumbnailResponse } from './model/UpdateCoverByThumbnailResponse'; +import { UpdateTemplateGroupRequest } from './model/UpdateTemplateGroupRequest'; +import { UpdateTemplateGroupResponse } from './model/UpdateTemplateGroupResponse'; +import { UpdateWatermarkTemplateReq } from './model/UpdateWatermarkTemplateReq'; +import { UpdateWatermarkTemplateRequest } from './model/UpdateWatermarkTemplateRequest'; +import { UpdateWatermarkTemplateResponse } from './model/UpdateWatermarkTemplateResponse'; +import { UploadAsset } from './model/UploadAsset'; +import { UploadAssetReq } from './model/UploadAssetReq'; +import { UploadMetaDataByUrl } from './model/UploadMetaDataByUrl'; +import { UploadMetaDataByUrlReq } from './model/UploadMetaDataByUrlReq'; +import { UploadMetaDataByUrlRequest } from './model/UploadMetaDataByUrlRequest'; +import { UploadMetaDataByUrlResponse } from './model/UploadMetaDataByUrlResponse'; +import { VideoTemplateInfo } from './model/VideoTemplateInfo'; +import { VideoTypeRef } from './model/VideoTypeRef'; +import { VodSampleData } from './model/VodSampleData'; +import { WatermarkTemplate } from './model/WatermarkTemplate'; + +export class VodClient { + public static newBuilder(): ClientBuilder { + return new ClientBuilder(newClient); + } + + private hcClient: HcClient; + public constructor(client: HcClient) { + this.hcClient = client; + } + + public getPath() { + return __dirname; + } + + /** + * 取消媒资转码任务,只能取消排队中的转码任务。 + * @summary 取消媒资转码任务 + * @param {string} assetId 媒资ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public cancelAssetTranscodeTask(cancelAssetTranscodeTaskRequest?: CancelAssetTranscodeTaskRequest): Promise { + const options = ParamCreater().cancelAssetTranscodeTask(cancelAssetTranscodeTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 取消提取音频任务,只有排队中的提取音频任务才可以取消。 + * @summary 取消提取音频任务 + * @param {string} assetId 媒资ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public cancelExtractAudioTask(cancelExtractAudioTaskRequest?: CancelExtractAudioTaskRequest): Promise { + const options = ParamCreater().cancelExtractAudioTask(cancelExtractAudioTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 校验媒资文件是否已存储于视频点播服务中。 + * @summary 上传检验 + * @param {number} size 文件大小 + * @param {string} md5 文件MD5。 建议参考[上传校验](https://support.huaweicloud.com/api-vod/vod_04_0212.html#vod_04_0212__section575102165412)生成对应的MD5值。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public checkMd5Duplication(checkMd5DuplicationRequest?: CheckMd5DuplicationRequest): Promise { + const options = ParamCreater().checkMd5Duplication(checkMd5DuplicationRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 媒资分段上传完成后,需要调用此接口通知点播服务媒资上传的状态,表示媒资上传创建完成。 + * @summary 确认媒资上传 + * @param {ConfirmAssetUploadReq} confirmAssetUploadReq 确认媒资上传 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public confirmAssetUpload(confirmAssetUploadRequest?: ConfirmAssetUploadRequest): Promise { + const options = ParamCreater().confirmAssetUpload(confirmAssetUploadRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 确认水印图片上传状态。 + * @summary 确认水印图片上传 + * @param {ConfirmImageUploadReq} confirmImageUploadReq 上传方式创建媒资 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public confirmImageUpload(confirmImageUploadRequest?: ConfirmImageUploadRequest): Promise { + const options = ParamCreater().confirmImageUpload(confirmImageUploadRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 调用该接口创建媒资时,需要将对应的媒资文件上传到点播服务的OBS桶中。 若上传的单媒资文件大小小于20M,则可以直接用PUT方法对该接口返回的地址进行上传。具体使用方法请参考[示例1:媒资上传(20M以下)](https://support.huaweicloud.com/api-vod/vod_04_0195.html)。 若上传的单个媒资大小大于20M,则需要进行二进制流分割后上传,该接口的具体使用方法请参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。 + * @summary 创建媒资:上传方式 + * @param {CreateAssetByFileUploadReq} createAssetByFileReq 上传方式创建媒资 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createAssetByFileUpload(createAssetByFileUploadRequest?: CreateAssetByFileUploadRequest): Promise { + const options = ParamCreater().createAssetByFileUpload(createAssetByFileUploadRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 创建媒资分类。 + * @summary 创建媒资分类 + * @param {CreateCategoryReq} createCategoryReq 创建媒资分类 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createAssetCategory(createAssetCategoryRequest?: CreateAssetCategoryRequest): Promise { + const options = ParamCreater().createAssetCategory(createAssetCategoryRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 实现视频转码、截图、加密等处理。既可以同时启动多种操作,也可以只启动一种操作。 + * @summary 媒资处理 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {AssetProcessReq} [assetProcessReq] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createAssetProcessTask(createAssetProcessTaskRequest?: CreateAssetProcessTaskRequest): Promise { + const options = ParamCreater().createAssetProcessTask(createAssetProcessTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 对上传的媒资进行审核。审核后,可以调用[查询媒资详细信息](https://support.huaweicloud.com/api-vod/vod_04_0202.html)接口查看审核结果。 + * @summary 创建审核媒资任务 + * @param {AssetReviewReq} assetReviewReq + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createAssetReviewTask(createAssetReviewTaskRequest?: CreateAssetReviewTaskRequest): Promise { + const options = ParamCreater().createAssetReviewTask(createAssetReviewTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 用于从已有视频文件中提取音频。 + * @summary 音频提取 + * @param {ExtractAudioTaskReq} extractAudioTaskReq 创建提取音频请求体 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createExtractAudioTask(createExtractAudioTaskRequest?: CreateExtractAudioTaskRequest): Promise { + const options = ParamCreater().createExtractAudioTask(createExtractAudioTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 媒资发布后,可通过指定媒资ID或URL向CDN预热。用户初次请求时,将由CDN节点提供请求媒资,加快用户下载缓存时间,提高用户体验。 + * @summary CDN预热 + * @param {CreatePreheatingAssetReq} createPreheatingAssetReq CDN预热 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createPreheatingAsset(createPreheatingAssetRequest?: CreatePreheatingAssetRequest): Promise { + const options = ParamCreater().createPreheatingAsset(createPreheatingAssetRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 通过存量托管的方式,将已存储在OBS桶中的音视频文件同步到点播服务。 OBS托管方式分为增量托管和存量托管,增量托管暂只支持通过视频点播控制台配置,配置后,若OBS有新增音视频文件,则会自动同步到点播服务中,具体请参见[增量托管](https://support.huaweicloud.com/usermanual-vod/vod010032.html)。两个托管方式都需要先将对应的OBS桶授权给点播服务,具体请参见[桶授权](https://support.huaweicloud.com/usermanual-vod/vod010031.html)。 + * @summary 创建媒资:OBS托管方式 + * @param {CreateTakeOverTaskReq} createTakeOverTaskReq + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createTakeOverTask(createTakeOverTaskRequest?: CreateTakeOverTaskRequest): Promise { + const options = ParamCreater().createTakeOverTask(createTakeOverTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 创建自定义转码模板组。 + * @summary 创建自定义转码模板组 + * @param {TransTemplateGroup} transTemplateGroup 创建自定义模板组 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createTemplateGroup(createTemplateGroupRequest?: CreateTemplateGroupRequest): Promise { + const options = ParamCreater().createTemplateGroup(createTemplateGroupRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 创建水印模板。 + * @summary 创建水印模板 + * @param {CreateWatermarkTemplateReq} createWatermarkTemplateReq 创建水印模板请求体 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createWatermarkTemplate(createWatermarkTemplateRequest?: CreateWatermarkTemplateRequest): Promise { + const options = ParamCreater().createWatermarkTemplate(createWatermarkTemplateRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 删除媒资分类。 + * @summary 删除媒资分类 + * @param {number} id 视频分类ID + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteAssetCategory(deleteAssetCategoryRequest?: DeleteAssetCategoryRequest): Promise { + const options = ParamCreater().deleteAssetCategory(deleteAssetCategoryRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 删除媒资。 + * @summary 删除媒资 + * @param {Array} assetId 媒资ID,支持一次删除多个媒资,批量删除时以逗号分隔。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteAssets(deleteAssetsRequest?: DeleteAssetsRequest): Promise { + const options = ParamCreater().deleteAssets(deleteAssetsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 删除自定义转码模板组。 + * @summary 删除自定义转码模板组 + * @param {string} groupId 模板组id + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteTemplateGroup(deleteTemplateGroupRequest?: DeleteTemplateGroupRequest): Promise { + const options = ParamCreater().deleteTemplateGroup(deleteTemplateGroupRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 删除水印模板 + * @summary 删除水印模板 + * @param {string} id 水印模板配置id + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteWatermarkTemplate(deleteWatermarkTemplateRequest?: DeleteWatermarkTemplateRequest): Promise { + const options = ParamCreater().deleteWatermarkTemplate(deleteWatermarkTemplateRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询指定分类信息,及其子分类(即下一级分类)的列表。 + * @summary 查询指定分类信息 + * @param {number} id 视频分类ID。 若设置为0,则查询所有一级分类。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAssetCategory(listAssetCategoryRequest?: ListAssetCategoryRequest): Promise> { + const options = ParamCreater().listAssetCategory(listAssetCategoryRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询媒资列表,列表中的每一条记录包含媒资的概要信息。 + * @summary 查询媒资列表 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {Array} [assetId] 媒资ID,最多同时查询10个。 + * @param {Array<'CREATING' | 'FAILED' | 'CREATED' | 'PUBLISHED' | 'WAITING_TRANSCODE' | 'TRANSCODING' | 'TRANSCODE_SUCCEED' | 'TRANSCODE_FAILED' | 'THUMBNAILING' | 'THUMBNAIL_SUCCEED' | 'THUMBNAIL_FAILED' | 'UN_REVIEW' | 'REVIEWING' | 'REVIEW_SUSPICIOUS' | 'REVIEW_PASSED' | 'REVIEW_FAILED' | 'REVIEW_BLOCKED'>} [status] 媒资状态,同时查询多个状态的媒资。 取值如下: - CREATING:上传中 - FAILED:上传失败 - CREATED:上传成功 - PUBLISHED:已发布 - TRANSCODING:转码中 - TRANSCODE_SUCCEED:转码成功 - TRANSCODE_FAILED:转码失败 - THUMBNAILING:截图中 - THUMBNAIL_SUCCEED:截图成功 - THUMBNAIL_FAILED:截图失败 - UN_REVIEW:未审核 - REVIEWING:审核中 - REVIEW_SUSPICIOUS :审核不过,待人工复审 - REVIEW_PASSED:审核通过 - REVIEW_FAILED:审核任务失败 - REVIEW_BLOCKED:已屏蔽 + * @param {string} [startTime] 起始时间。 格式为yyyymmddhhm mss。必须是与时区无关的UTC时间。 + * @param {string} [endTime] 结束时间。 格式为yyyymmddhhm mss。必须是与时区无关的UTC时间。 + * @param {number} [categoryId] 分类ID。 + * @param {string} [tags] 媒资标签。 单个标签不超过16个字节, 最多不超过16 个标签。 多个用英文逗号分隔,UTF8编码。 + * @param {string} [queryString] 在媒资标题、 描述、分类名称中模糊查询的字符串。 + * @param {Array} [mediaType] 音视频文件的格式,支持多格式查询,最多不超过20个。 取值如下: - 视频文件格式:MP4、TS、MOV、MXF、MPG、FLV、WMV、AVI、M4V、F4V、MPEG - 音频文件格式:MP3、OGG、WAV、WMA、APE、FLAC、AAC、AC3、MMF、AMR、M4A、M4R、WV、MP2 + * @param {number} [page] 分页编号。 默认值:0。 + * @param {number} [size] 每页记录数。 取值范围:[1,100]。 默认值:10。 + * @param {'asc' | 'desc'} [order] 查询顺序,按createTime顺序还是倒序 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listAssetList(listAssetListRequest?: ListAssetListRequest): Promise { + const options = ParamCreater().listAssetList(listAssetListRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询转码模板组列表。 + * @summary 查询转码模板组列表 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [groupId] 模板组id + * @param {string} [status] 模板启用状态 + * @param {number} [page] 分页编号。 默认为0,指定group_id时该参数无效。 + * @param {number} [size] 每页记录数。 默认为10,范围[1,100]。指定group_id时该参数无效。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listTemplateGroup(listTemplateGroupRequest?: ListTemplateGroupRequest): Promise { + const options = ParamCreater().listTemplateGroup(listTemplateGroupRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询指定域名在指定日期播放次数排名Top 100的媒资统计数据。 + * @summary 查询TopN媒资信息 + * @param {string} domain 查询域名,暂只支持查询单个或者全部域名。 取值如下: - 单个加速域名,格式:example.test1.com。 - ALL:表示查询名下全部域名。 + * @param {string} date 查询日期,格式为yyyymmdd - date必须为昨天或之前的日期。 - 最多只能查最近一个月内的数据。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listTopStatistics(listTopStatisticsRequest?: ListTopStatisticsRequest): Promise { + const options = ParamCreater().listTopStatistics(listTopStatisticsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询水印模板 + * @summary 查询水印列表 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {Array} [id] 水印模板配置id,一次最多10个。 + * @param {number} [page] 分页编号。 默认为0。指定id时该参数无效。 + * @param {number} [size] 每页记录数。 默认为10,范围[1,100]。指定id时该参数无效。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listWatermarkTemplate(listWatermarkTemplateRequest?: ListWatermarkTemplateRequest): Promise { + const options = ParamCreater().listWatermarkTemplate(listWatermarkTemplateRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 若您在使用点播服务前,已经在OBS桶中存储了音视频文件,您可以使用该接口将存储在OBS桶中的音视频文件转存到点播服务中,使用点播服务的音视频管理功能。调用该接口前,您需要调用[桶授权](https://support.huaweicloud.com/api-vod/vod_04_0199.html)接口,将存储音视频文件的OBS桶授权给点播服务。 + * @summary 创建媒资:OBS转存方式 + * @param {PublishAssetFromObsReq} publishAssetFromObsReq 从OBS一键发布媒资 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public publishAssetFromObs(publishAssetFromObsRequest?: PublishAssetFromObsRequest): Promise { + const options = ParamCreater().publishAssetFromObs(publishAssetFromObsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 将媒资设置为发布状态。支持批量发布。 + * @summary 媒资发布 + * @param {PublishAssetReq} publishAssetReq 媒资发布 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public publishAssets(publishAssetsRequest?: PublishAssetsRequest): Promise { + const options = ParamCreater().publishAssets(publishAssetsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 终端播放HLS加密视频时,向租户管理系统请求密钥,租户管理系统先查询其本地有没有已缓存的密钥,没有时则调用此接口向VOD查询。该接口的具体使用场景请参见[通过HLS加密防止视频泄露](https://support.huaweicloud.com/bestpractice-vod/vod_10_0004.html)。 + * @summary 密钥查询 + * @param {string} assetId 媒资ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showAssetCipher(showAssetCipherRequest?: ShowAssetCipherRequest): Promise { + const options = ParamCreater().showAssetCipher(showAssetCipherRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询指定媒资的详细信息。 + * @summary 查询指定媒资的详细信息 + * @param {string} assetId 媒资ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {Array<'base_info' | 'transcode_info' | 'thumbnail_info' | 'review_info'>} [categories] 查询的信息类型。 - 为空时表示查询所有信息。 - 不为空时支持同时查询一个或者多个类型的信息,取值如下: - - base_info:媒资基本信息。 - - transcode_info:转码结果信息。 - - thumbnail_info:截图结果信息。 - - review_info:审核结果信息。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showAssetDetail(showAssetDetailRequest?: ShowAssetDetailRequest): Promise { + const options = ParamCreater().showAssetDetail(showAssetDetailRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询媒资信息,支持指定媒资ID、分类、状态、起止时间查询。 + * @summary 查询媒资信息 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {Array} [assetId] 媒资id,最多同时查询10个媒资。 + * @param {Array<'UNCREATED' | 'DELETED' | 'CANCELLED' | 'SERVER_ERROR' | 'UPLOAD_FAILED' | 'CREATING' | 'PUBLISHED' | 'WAITING_TRANSCODE' | 'TRANSCODING' | 'TRANSCODE_FAILED' | 'TRANSCODE_SUCCEED' | 'CREATED'>} [status] 媒资状态。 取值如下: - UNCREATED:未创建(媒资ID不存在 ) - DELETED:已删除 - CANCELLED:上传取消 - SERVER_ERROR:上传失败(点播服务端故障) - UPLOAD_FAILED:上传失败(向OBS上传失败) - CREATING:创建中 - PUBLISHED:已发布 - TRANSCODING:待发布(转码中) - TRANSCODE_FAILED:待发布(转码失败) - TRANSCODE_SUCCEED:待发布(转码成功) - CREATED:待发布(未转码) + * @param {Array<'TRANSCODING' | 'TRANSCODE_FAILED' | 'TRANSCODE_SUCCEED' | 'UN_TRANSCODE' | 'WAITING_TRANSCODE'>} [transcodeStatus] 转码状态 取值如下: - TRANSCODING:转码中 - TRANSCODE_FAILED:转码失败 - TRANSCODE_SUCCEED:转码成功 - UN_TRANSCODE:未转码 - WAITING_TRANSCODE:等待转码 + * @param {Array<'PUBLISHED' | 'CREATED'>} [assetStatus] 媒资状态。 取值如下: - PUBLISHED:已发布 - CREATED:未发布 + * @param {string} [startTime] 起始时间,查询指定“**asset_id**”时,该参数无效。 格式为yyyymmddhhmmss。必须是与时区无关的UTC时间。 + * @param {string} [endTime] 结束时间,查询指定“**asset_id**”时,该参数无效。 格式为yyyymmddhhmmss。必须是与时区无关的UTC时间。 + * @param {number} [categoryId] 分类ID。 + * @param {string} [tags] 媒资标签。 单个标签不超过16个字节,最多不超过16个标签。 多个用逗号分隔,UTF8编码。 + * @param {string} [queryString] 在媒资标题、描述中模糊查询的字符串。 + * @param {number} [page] 分页编号,查询指定“asset_id”时,该参数无效。 默认值:0。 + * @param {number} [size] 每页记录数,查询指定“**asset_id**”时,该参数无效。 取值范围:[1,100]。 默认值:10。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showAssetMeta(showAssetMetaRequest?: ShowAssetMetaRequest): Promise { + const options = ParamCreater().showAssetMeta(showAssetMetaRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 客户端请求创建媒资时,如果媒资文件超过20MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 该接口可以获取[初始化多段上传任务](https://support.huaweicloud.com/api-obs/obs_04_0098.html)、[上传段](https://support.huaweicloud.com/api-obs/obs_04_0099.html)、[合并段](https://support.huaweicloud.com/api-obs/obs_04_0102.html)、[列举已上传段](https://support.huaweicloud.com/api-obs/obs_04_0101.html)、[取消段合并](https://support.huaweicloud.com/api-obs/obs_04_0103.html)的带有临时授权的URL,用户需要根据OBS的接口文档配置相应请求的HTTP请求方法、请求头、请求体,然后请求对应的带有临时授权的URL。 视频分段上传方式和OBS的接口文档保持一致,包括HTTP请求方法、请求头、请求体等各种入参,此接口的作用是为用户生成带有鉴权信息的URL(鉴权信息即query_str),用来替换OBS接口中对应的URL,临时给用户开通向点播服务的桶上传文件的权限。 调用获取授权接口时需要传入bucket、object_key、http_verb,其中bucket和object_key是由[创建媒资:上传方式](https://support.huaweicloud.com/api-vod/vod_04_0196.html)接口中返回的响应体中的target字段获得的bucket和object,http_verb需要根据指定的操作选择。 + * @summary 获取分段上传授权 + * @param {string} httpVerb 分段上传时调用OBS接口的HTTP方法,具体操作需要的HTTP方法请参考OBS的接口文档。 - 初始化上传任务:POST - 上传段:PUT - 合并段:POST - 取消段:DELETE - 列举已上传段:GET + * @param {string} bucket 桶名。 调用[创建媒资:上传方式](https://support.huaweicloud.com/api-vod/vod_04_0196.html)接口中返回的响应体中的target字段获得的bucket值。 + * @param {string} objectKey 对象名。 调用[创建媒资:上传方式](https://support.huaweicloud.com/api-vod/vod_04_0196.html)接口中返回的响应体中的target字段获得的object值。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [contentType] 文件类型对应的content-type,如MP4对应video/mp4。 + * @param {string} [contentMd5] 上传段时每段的MD5。 + * @param {string} [uploadId] 每一个上传任务的id,是OBS进行初始段后OBS返回的。 + * @param {number} [partNumber] 上传段时每一段的id。 取值范围:[1,10000]。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showAssetTempAuthority(showAssetTempAuthorityRequest?: ShowAssetTempAuthorityRequest): Promise { + const options = ParamCreater().showAssetTempAuthority(showAssetTempAuthorityRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询CDN的统计数据,包括流量、峰值带宽、请求总数、请求命中率、流量命中率。 + * @summary 查询CDN统计信息 + * @param {string} statType 统计数据类型。 取值如下: - cdn_bw:CDN峰值带宽 - cdn_flux:CDN流量 - req_num:请求总数 - req_hit_rate:请求命中率 - flux_hit_rate:流量命中率 每次只能查询一种统计数据。 + * @param {string} domain 域名列表,多个域名以逗号(半角)分隔。 示例:example.test1.com,example.test2.com。 ALL表示查询名下全部域名。一次最多查询100个域名。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [startTime] 起始时间,格式为yyyymmddhhmmss。 + * @param {string} [endTime] 结束时间,格式为yyyymmddhhmmss。 - “**start_time**”、“**end_time**”均不存在时,“**start_time**”取当天零点,“end_time”取当前时间。 - “**start_time**”不存在、“**end_time**”存在,请求非法。 - “**start_time**”存在、“**end_time**”不存在,“**end_time**”取当前时间。 - 只能查询最近三个月内的数据,且时间跨度不能超过31天。 - 起始时间和结束时间会自动规整,起始时间规整为指定时间所在的整点时刻,结束时间规整为指定时间所在时间的下一小时整点时刻。 + * @param {number} [interval] 查询粒度间隔。 取值如下: - 时间跨度1天:5分钟、1小时、4小时、8小时,分别对应300秒、3600秒、14400秒和28800秒。 - 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 - 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 单位:秒。 若不设置,默认取对应时间跨度的最小间隔。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showCdnStatistics(showCdnStatisticsRequest?: ShowCdnStatisticsRequest): Promise { + const options = ParamCreater().showCdnStatistics(showCdnStatisticsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询预热结果。 + * @summary 查询CDN预热 + * @param {string} taskId 任务ID + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showPreheatingAsset(showPreheatingAssetRequest?: ShowPreheatingAssetRequest): Promise { + const options = ParamCreater().showPreheatingAsset(showPreheatingAssetRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询点播源站的统计数据,包括流量、存储空间、转码时长。 + * @summary 查询源站统计信息 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [startTime] 起始时间,格式为yyyymmddhhmmss。 + * @param {string} [endTime] 结束时间,格式为yyyymmddhhmmss。 - “start_time”、“end_time”均不存在时,“start_time”取当天零点,“end_time”取当前时间。 - “start_time”不存在、“end_time”存在,请求非法。 - “start_time”存在、“end_time”不存在,“end_time”取当前时间。 - 只能查询最近三个月内的数据,且时间跨度不能超过31天。 - 起始时间和结束时间会自动规整,起始时间规整为指定时间所在的整点时刻,结束时间规整为指定时间所在时间的下一小时整点时刻。 + * @param {number} [interval] 查询粒度间隔。 取值如下: - 时间跨度1天:1小时、4小时、8小时,分别对应3600秒、14400秒和28800秒。 - 时间跨度2~7天:1小时、4小时、8小时、1天,分别对应3600秒、14400秒、28800秒和86400秒。 - 时间跨度8~31天:4小时、8小时、1天,分别对应14400秒、28800秒和86400秒。 单位:秒。 若不设置,默认取对应时间跨度的最小间隔。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showVodStatistics(showVodStatisticsRequest?: ShowVodStatisticsRequest): Promise { + const options = ParamCreater().showVodStatistics(showVodStatisticsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 将媒资设置为未发布状态。 + * @summary 媒资发布取消 + * @param {PublishAssetReq} unpublishAssetReq 媒资取消发布 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public unpublishAssets(unpublishAssetsRequest?: UnpublishAssetsRequest): Promise { + const options = ParamCreater().unpublishAssets(unpublishAssetsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 媒资创建后,单独上传封面、更新视频文件或更新已有封面。 如果是更新视频文件,更新完后要通过[确认媒资上传](https://support.huaweicloud.com/api-vod/vod_04_0198.html)接口通知点播服务。 如果是更新封面或单独上传封面,则不需通知。 更新视频可以使用分段上传,具体方式可以参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。 + * @summary 视频更新 + * @param {UploadAssetReq} uploadAssetReq 更新媒资文件或封面 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateAsset(updateAssetRequest?: UpdateAssetRequest): Promise { + const options = ParamCreater().updateAsset(updateAssetRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 修改媒资分类。 + * @summary 修改媒资分类 + * @param {UpdateCategoryReq} updateCategoryReq 修改媒资分类 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateAssetCategory(updateAssetCategoryRequest?: UpdateAssetCategoryRequest): Promise { + const options = ParamCreater().updateAssetCategory(updateAssetCategoryRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 修改媒资属性。 + * @summary 修改媒资属性 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {UpdateAssetMetaReq} [updateAssetMetaReq] 更新媒资信息的请求参数的封装 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateAssetMeta(updateAssetMetaRequest?: UpdateAssetMetaRequest): Promise { + const options = ParamCreater().updateAssetMeta(updateAssetMetaRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 用户可以通过该接口将OBS桶授权给点播服务或取消点播服务的授权。 + * @summary 桶授权 + * @param {UpdateBucketAuthorizedReq} updateBucketAuthorizedReq 桶策略授权 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateBucketAuthorized(updateBucketAuthorizedRequest?: UpdateBucketAuthorizedRequest): Promise { + const options = ParamCreater().updateBucketAuthorized(updateBucketAuthorizedRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 将视频截图生成的某张图片设置成封面。 + * @summary 设置封面 + * @param {UpdateCoverByThumbnailReq} updateCoverByThumbnailReq 截图文件的URL。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateCoverByThumbnail(updateCoverByThumbnailRequest?: UpdateCoverByThumbnailRequest): Promise { + const options = ParamCreater().updateCoverByThumbnail(updateCoverByThumbnailRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 修改自定义转码模板组。 + * @summary 修改自定义转码模板组 + * @param {ModifyTransTemplateGroup} transTemplateGroup 修改模板组 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateTemplateGroup(updateTemplateGroupRequest?: UpdateTemplateGroupRequest): Promise { + const options = ParamCreater().updateTemplateGroup(updateTemplateGroupRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 修改水印模板 + * @summary 修改水印模板 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {UpdateWatermarkTemplateReq} [updateWatermarkTemplateReq] 修改水印模板请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateWatermarkTemplate(updateWatermarkTemplateRequest?: UpdateWatermarkTemplateRequest): Promise { + const options = ParamCreater().updateWatermarkTemplate(updateWatermarkTemplateRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 基于音视频源文件URL,将音视频文件离线拉取上传到点播服务。 + * @summary 创建媒资:URL拉取注入 + * @param {UploadMetaDataByUrlReq} uploadMetaDataByUrlReq 创建媒资:URL拉取注入 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public uploadMetaDataByUrl(uploadMetaDataByUrlRequest?: UploadMetaDataByUrlRequest): Promise { + const options = ParamCreater().uploadMetaDataByUrl(uploadMetaDataByUrlRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询OBS存量托管任务列表。 + * @summary 查询托管任务 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {string} [status] 任务状态。 + * @param {string} [taskId] 任务ID。 + * @param {number} [page] 分页编号,默认为0。 + * @param {number} [size] 每页记录数。 默认10,范围[1,100],指定task_id时该参数无效。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listTakeOverTask(listTakeOverTaskRequest?: ListTakeOverTaskRequest): Promise { + const options = ParamCreater().listTakeOverTask(listTakeOverTaskRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询OBS托管媒资的详细信息。 + * @summary 查询托管媒资详情 + * @param {string} sourceBucket 媒资原始输入存放的桶。 + * @param {string} sourceObject 媒资原始输入的objectKey。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showTakeOverAssetDetails(showTakeOverAssetDetailsRequest?: ShowTakeOverAssetDetailsRequest): Promise { + const options = ParamCreater().showTakeOverAssetDetails(showTakeOverAssetDetailsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } + /** + * 查询OBS存量托管任务详情。 + * @summary 查询托管任务详情 + * @param {string} taskId 任务ID。 + * @param {string} [authorization] 使用AK/SK方式认证时必选,携带的鉴权信息。 + * @param {string} [xSdkDate] 使用AK/SK方式认证时必选,请求的发生时间。 + * @param {number} [page] 分页编号,默认为0。 + * @param {number} [size] 每页记录数。 默认10,范围[1,100] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showTakeOverTaskDetails(showTakeOverTaskDetailsRequest?: ShowTakeOverTaskDetailsRequest): Promise { + const options = ParamCreater().showTakeOverTaskDetails(showTakeOverTaskDetailsRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } +} + +export const ParamCreater = function () { + return { + + /** + * 取消媒资转码任务,只能取消排队中的转码任务。 + */ + cancelAssetTranscodeTask(cancelAssetTranscodeTaskRequest?: CancelAssetTranscodeTaskRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/asset/process", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let assetId; + let authorization; + let xSdkDate; + + if (cancelAssetTranscodeTaskRequest !== null && cancelAssetTranscodeTaskRequest !== undefined) { + if (cancelAssetTranscodeTaskRequest instanceof CancelAssetTranscodeTaskRequest) { + assetId = cancelAssetTranscodeTaskRequest.assetId; + authorization = cancelAssetTranscodeTaskRequest.authorization; + xSdkDate = cancelAssetTranscodeTaskRequest.xSdkDate; + } else { + assetId = cancelAssetTranscodeTaskRequest['asset_id']; + authorization = cancelAssetTranscodeTaskRequest['Authorization']; + xSdkDate = cancelAssetTranscodeTaskRequest['X-Sdk-Date']; + } + } + + if (assetId === null || assetId === undefined) { + throw new RequiredError('assetId','Required parameter assetId was null or undefined when calling cancelAssetTranscodeTask.'); + } + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 取消提取音频任务,只有排队中的提取音频任务才可以取消。 + */ + cancelExtractAudioTask(cancelExtractAudioTaskRequest?: CancelExtractAudioTaskRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/asset/extract_audio", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let assetId; + let authorization; + let xSdkDate; + + if (cancelExtractAudioTaskRequest !== null && cancelExtractAudioTaskRequest !== undefined) { + if (cancelExtractAudioTaskRequest instanceof CancelExtractAudioTaskRequest) { + assetId = cancelExtractAudioTaskRequest.assetId; + authorization = cancelExtractAudioTaskRequest.authorization; + xSdkDate = cancelExtractAudioTaskRequest.xSdkDate; + } else { + assetId = cancelExtractAudioTaskRequest['asset_id']; + authorization = cancelExtractAudioTaskRequest['Authorization']; + xSdkDate = cancelExtractAudioTaskRequest['X-Sdk-Date']; + } + } + + if (assetId === null || assetId === undefined) { + throw new RequiredError('assetId','Required parameter assetId was null or undefined when calling cancelExtractAudioTask.'); + } + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 校验媒资文件是否已存储于视频点播服务中。 + */ + checkMd5Duplication(checkMd5DuplicationRequest?: CheckMd5DuplicationRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/duplication", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let size; + let md5; + let authorization; + let xSdkDate; + + if (checkMd5DuplicationRequest !== null && checkMd5DuplicationRequest !== undefined) { + if (checkMd5DuplicationRequest instanceof CheckMd5DuplicationRequest) { + size = checkMd5DuplicationRequest.size; + md5 = checkMd5DuplicationRequest.md5; + authorization = checkMd5DuplicationRequest.authorization; + xSdkDate = checkMd5DuplicationRequest.xSdkDate; + } else { + size = checkMd5DuplicationRequest['size']; + md5 = checkMd5DuplicationRequest['md5']; + authorization = checkMd5DuplicationRequest['Authorization']; + xSdkDate = checkMd5DuplicationRequest['X-Sdk-Date']; + } + } + + if (size === null || size === undefined) { + throw new RequiredError('size','Required parameter size was null or undefined when calling checkMd5Duplication.'); + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (md5 === null || md5 === undefined) { + throw new RequiredError('md5','Required parameter md5 was null or undefined when calling checkMd5Duplication.'); + } + if (md5 !== null && md5 !== undefined) { + localVarQueryParameter['md5'] = md5; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 媒资分段上传完成后,需要调用此接口通知点播服务媒资上传的状态,表示媒资上传创建完成。 + */ + confirmAssetUpload(confirmAssetUploadRequest?: ConfirmAssetUploadRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/status/uploaded", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (confirmAssetUploadRequest !== null && confirmAssetUploadRequest !== undefined) { + if (confirmAssetUploadRequest instanceof ConfirmAssetUploadRequest) { + body = confirmAssetUploadRequest.body + authorization = confirmAssetUploadRequest.authorization; + xSdkDate = confirmAssetUploadRequest.xSdkDate; + } else { + body = confirmAssetUploadRequest['body']; + authorization = confirmAssetUploadRequest['Authorization']; + xSdkDate = confirmAssetUploadRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 确认水印图片上传状态。 + */ + confirmImageUpload(confirmImageUploadRequest?: ConfirmImageUploadRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/watermark/status/uploaded", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (confirmImageUploadRequest !== null && confirmImageUploadRequest !== undefined) { + if (confirmImageUploadRequest instanceof ConfirmImageUploadRequest) { + body = confirmImageUploadRequest.body + authorization = confirmImageUploadRequest.authorization; + xSdkDate = confirmImageUploadRequest.xSdkDate; + } else { + body = confirmImageUploadRequest['body']; + authorization = confirmImageUploadRequest['Authorization']; + xSdkDate = confirmImageUploadRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 调用该接口创建媒资时,需要将对应的媒资文件上传到点播服务的OBS桶中。 若上传的单媒资文件大小小于20M,则可以直接用PUT方法对该接口返回的地址进行上传。具体使用方法请参考[示例1:媒资上传(20M以下)](https://support.huaweicloud.com/api-vod/vod_04_0195.html)。 若上传的单个媒资大小大于20M,则需要进行二进制流分割后上传,该接口的具体使用方法请参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。 + */ + createAssetByFileUpload(createAssetByFileUploadRequest?: CreateAssetByFileUploadRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createAssetByFileUploadRequest !== null && createAssetByFileUploadRequest !== undefined) { + if (createAssetByFileUploadRequest instanceof CreateAssetByFileUploadRequest) { + body = createAssetByFileUploadRequest.body + authorization = createAssetByFileUploadRequest.authorization; + xSdkDate = createAssetByFileUploadRequest.xSdkDate; + } else { + body = createAssetByFileUploadRequest['body']; + authorization = createAssetByFileUploadRequest['Authorization']; + xSdkDate = createAssetByFileUploadRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 创建媒资分类。 + */ + createAssetCategory(createAssetCategoryRequest?: CreateAssetCategoryRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/category", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createAssetCategoryRequest !== null && createAssetCategoryRequest !== undefined) { + if (createAssetCategoryRequest instanceof CreateAssetCategoryRequest) { + body = createAssetCategoryRequest.body + authorization = createAssetCategoryRequest.authorization; + xSdkDate = createAssetCategoryRequest.xSdkDate; + } else { + body = createAssetCategoryRequest['body']; + authorization = createAssetCategoryRequest['Authorization']; + xSdkDate = createAssetCategoryRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 实现视频转码、截图、加密等处理。既可以同时启动多种操作,也可以只启动一种操作。 + */ + createAssetProcessTask(createAssetProcessTaskRequest?: CreateAssetProcessTaskRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/process", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createAssetProcessTaskRequest !== null && createAssetProcessTaskRequest !== undefined) { + if (createAssetProcessTaskRequest instanceof CreateAssetProcessTaskRequest) { + authorization = createAssetProcessTaskRequest.authorization; + xSdkDate = createAssetProcessTaskRequest.xSdkDate; + body = createAssetProcessTaskRequest.body + } else { + authorization = createAssetProcessTaskRequest['Authorization']; + xSdkDate = createAssetProcessTaskRequest['X-Sdk-Date']; + body = createAssetProcessTaskRequest['body']; + } + } + + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 对上传的媒资进行审核。审核后,可以调用[查询媒资详细信息](https://support.huaweicloud.com/api-vod/vod_04_0202.html)接口查看审核结果。 + */ + createAssetReviewTask(createAssetReviewTaskRequest?: CreateAssetReviewTaskRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/review", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createAssetReviewTaskRequest !== null && createAssetReviewTaskRequest !== undefined) { + if (createAssetReviewTaskRequest instanceof CreateAssetReviewTaskRequest) { + body = createAssetReviewTaskRequest.body + authorization = createAssetReviewTaskRequest.authorization; + xSdkDate = createAssetReviewTaskRequest.xSdkDate; + } else { + body = createAssetReviewTaskRequest['body']; + authorization = createAssetReviewTaskRequest['Authorization']; + xSdkDate = createAssetReviewTaskRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 用于从已有视频文件中提取音频。 + */ + createExtractAudioTask(createExtractAudioTaskRequest?: CreateExtractAudioTaskRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/extract_audio", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createExtractAudioTaskRequest !== null && createExtractAudioTaskRequest !== undefined) { + if (createExtractAudioTaskRequest instanceof CreateExtractAudioTaskRequest) { + body = createExtractAudioTaskRequest.body + authorization = createExtractAudioTaskRequest.authorization; + xSdkDate = createExtractAudioTaskRequest.xSdkDate; + } else { + body = createExtractAudioTaskRequest['body']; + authorization = createExtractAudioTaskRequest['Authorization']; + xSdkDate = createExtractAudioTaskRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 媒资发布后,可通过指定媒资ID或URL向CDN预热。用户初次请求时,将由CDN节点提供请求媒资,加快用户下载缓存时间,提高用户体验。 + */ + createPreheatingAsset(createPreheatingAssetRequest?: CreatePreheatingAssetRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/preheating", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createPreheatingAssetRequest !== null && createPreheatingAssetRequest !== undefined) { + if (createPreheatingAssetRequest instanceof CreatePreheatingAssetRequest) { + body = createPreheatingAssetRequest.body + authorization = createPreheatingAssetRequest.authorization; + xSdkDate = createPreheatingAssetRequest.xSdkDate; + } else { + body = createPreheatingAssetRequest['body']; + authorization = createPreheatingAssetRequest['Authorization']; + xSdkDate = createPreheatingAssetRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 通过存量托管的方式,将已存储在OBS桶中的音视频文件同步到点播服务。 OBS托管方式分为增量托管和存量托管,增量托管暂只支持通过视频点播控制台配置,配置后,若OBS有新增音视频文件,则会自动同步到点播服务中,具体请参见[增量托管](https://support.huaweicloud.com/usermanual-vod/vod010032.html)。两个托管方式都需要先将对应的OBS桶授权给点播服务,具体请参见[桶授权](https://support.huaweicloud.com/usermanual-vod/vod010031.html)。 + */ + createTakeOverTask(createTakeOverTaskRequest?: CreateTakeOverTaskRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/obs/host/stock/task", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createTakeOverTaskRequest !== null && createTakeOverTaskRequest !== undefined) { + if (createTakeOverTaskRequest instanceof CreateTakeOverTaskRequest) { + body = createTakeOverTaskRequest.body + authorization = createTakeOverTaskRequest.authorization; + xSdkDate = createTakeOverTaskRequest.xSdkDate; + } else { + body = createTakeOverTaskRequest['body']; + authorization = createTakeOverTaskRequest['Authorization']; + xSdkDate = createTakeOverTaskRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 创建自定义转码模板组。 + */ + createTemplateGroup(createTemplateGroupRequest?: CreateTemplateGroupRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/template_group/transcodings", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createTemplateGroupRequest !== null && createTemplateGroupRequest !== undefined) { + if (createTemplateGroupRequest instanceof CreateTemplateGroupRequest) { + body = createTemplateGroupRequest.body + authorization = createTemplateGroupRequest.authorization; + xSdkDate = createTemplateGroupRequest.xSdkDate; + } else { + body = createTemplateGroupRequest['body']; + authorization = createTemplateGroupRequest['Authorization']; + xSdkDate = createTemplateGroupRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 创建水印模板。 + */ + createWatermarkTemplate(createWatermarkTemplateRequest?: CreateWatermarkTemplateRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/template/watermark", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (createWatermarkTemplateRequest !== null && createWatermarkTemplateRequest !== undefined) { + if (createWatermarkTemplateRequest instanceof CreateWatermarkTemplateRequest) { + body = createWatermarkTemplateRequest.body + authorization = createWatermarkTemplateRequest.authorization; + xSdkDate = createWatermarkTemplateRequest.xSdkDate; + } else { + body = createWatermarkTemplateRequest['body']; + authorization = createWatermarkTemplateRequest['Authorization']; + xSdkDate = createWatermarkTemplateRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除媒资分类。 + */ + deleteAssetCategory(deleteAssetCategoryRequest?: DeleteAssetCategoryRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/asset/category", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let id; + let authorization; + let xSdkDate; + + if (deleteAssetCategoryRequest !== null && deleteAssetCategoryRequest !== undefined) { + if (deleteAssetCategoryRequest instanceof DeleteAssetCategoryRequest) { + id = deleteAssetCategoryRequest.id; + authorization = deleteAssetCategoryRequest.authorization; + xSdkDate = deleteAssetCategoryRequest.xSdkDate; + } else { + id = deleteAssetCategoryRequest['id']; + authorization = deleteAssetCategoryRequest['Authorization']; + xSdkDate = deleteAssetCategoryRequest['X-Sdk-Date']; + } + } + + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling deleteAssetCategory.'); + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除媒资。 + */ + deleteAssets(deleteAssetsRequest?: DeleteAssetsRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/asset", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let assetId; + let authorization; + let xSdkDate; + + if (deleteAssetsRequest !== null && deleteAssetsRequest !== undefined) { + if (deleteAssetsRequest instanceof DeleteAssetsRequest) { + assetId = deleteAssetsRequest.assetId; + authorization = deleteAssetsRequest.authorization; + xSdkDate = deleteAssetsRequest.xSdkDate; + } else { + assetId = deleteAssetsRequest['asset_id']; + authorization = deleteAssetsRequest['Authorization']; + xSdkDate = deleteAssetsRequest['X-Sdk-Date']; + } + } + + if (assetId === null || assetId === undefined) { + throw new RequiredError('assetId','Required parameter assetId was null or undefined when calling deleteAssets.'); + } + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除自定义转码模板组。 + */ + deleteTemplateGroup(deleteTemplateGroupRequest?: DeleteTemplateGroupRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/asset/template_group/transcodings", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let groupId; + let authorization; + let xSdkDate; + + if (deleteTemplateGroupRequest !== null && deleteTemplateGroupRequest !== undefined) { + if (deleteTemplateGroupRequest instanceof DeleteTemplateGroupRequest) { + groupId = deleteTemplateGroupRequest.groupId; + authorization = deleteTemplateGroupRequest.authorization; + xSdkDate = deleteTemplateGroupRequest.xSdkDate; + } else { + groupId = deleteTemplateGroupRequest['group_id']; + authorization = deleteTemplateGroupRequest['Authorization']; + xSdkDate = deleteTemplateGroupRequest['X-Sdk-Date']; + } + } + + if (groupId === null || groupId === undefined) { + throw new RequiredError('groupId','Required parameter groupId was null or undefined when calling deleteTemplateGroup.'); + } + if (groupId !== null && groupId !== undefined) { + localVarQueryParameter['group_id'] = groupId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 删除水印模板 + */ + deleteWatermarkTemplate(deleteWatermarkTemplateRequest?: DeleteWatermarkTemplateRequest) { + const options = { + method: "DELETE", + url: "/v1.0/{project_id}/template/watermark", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let id; + let authorization; + let xSdkDate; + + if (deleteWatermarkTemplateRequest !== null && deleteWatermarkTemplateRequest !== undefined) { + if (deleteWatermarkTemplateRequest instanceof DeleteWatermarkTemplateRequest) { + id = deleteWatermarkTemplateRequest.id; + authorization = deleteWatermarkTemplateRequest.authorization; + xSdkDate = deleteWatermarkTemplateRequest.xSdkDate; + } else { + id = deleteWatermarkTemplateRequest['id']; + authorization = deleteWatermarkTemplateRequest['Authorization']; + xSdkDate = deleteWatermarkTemplateRequest['X-Sdk-Date']; + } + } + + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling deleteWatermarkTemplate.'); + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询指定分类信息,及其子分类(即下一级分类)的列表。 + */ + listAssetCategory(listAssetCategoryRequest?: ListAssetCategoryRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/category", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let id; + let authorization; + let xSdkDate; + + if (listAssetCategoryRequest !== null && listAssetCategoryRequest !== undefined) { + if (listAssetCategoryRequest instanceof ListAssetCategoryRequest) { + id = listAssetCategoryRequest.id; + authorization = listAssetCategoryRequest.authorization; + xSdkDate = listAssetCategoryRequest.xSdkDate; + } else { + id = listAssetCategoryRequest['id']; + authorization = listAssetCategoryRequest['Authorization']; + xSdkDate = listAssetCategoryRequest['X-Sdk-Date']; + } + } + + if (id === null || id === undefined) { + throw new RequiredError('id','Required parameter id was null or undefined when calling listAssetCategory.'); + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询媒资列表,列表中的每一条记录包含媒资的概要信息。 + */ + listAssetList(listAssetListRequest?: ListAssetListRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/list", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let assetId; + let status; + let startTime; + let endTime; + let categoryId; + let tags; + let queryString; + let mediaType; + let page; + let size; + let order; + + if (listAssetListRequest !== null && listAssetListRequest !== undefined) { + if (listAssetListRequest instanceof ListAssetListRequest) { + authorization = listAssetListRequest.authorization; + xSdkDate = listAssetListRequest.xSdkDate; + assetId = listAssetListRequest.assetId; + status = listAssetListRequest.status; + startTime = listAssetListRequest.startTime; + endTime = listAssetListRequest.endTime; + categoryId = listAssetListRequest.categoryId; + tags = listAssetListRequest.tags; + queryString = listAssetListRequest.queryString; + mediaType = listAssetListRequest.mediaType; + page = listAssetListRequest.page; + size = listAssetListRequest.size; + order = listAssetListRequest.order; + } else { + authorization = listAssetListRequest['Authorization']; + xSdkDate = listAssetListRequest['X-Sdk-Date']; + assetId = listAssetListRequest['asset_id']; + status = listAssetListRequest['status']; + startTime = listAssetListRequest['start_time']; + endTime = listAssetListRequest['end_time']; + categoryId = listAssetListRequest['category_id']; + tags = listAssetListRequest['tags']; + queryString = listAssetListRequest['query_string']; + mediaType = listAssetListRequest['media_type']; + page = listAssetListRequest['page']; + size = listAssetListRequest['size']; + order = listAssetListRequest['order']; + } + } + + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (categoryId !== null && categoryId !== undefined) { + localVarQueryParameter['category_id'] = categoryId; + } + if (tags !== null && tags !== undefined) { + localVarQueryParameter['tags'] = tags; + } + if (queryString !== null && queryString !== undefined) { + localVarQueryParameter['query_string'] = queryString; + } + if (mediaType !== null && mediaType !== undefined) { + localVarQueryParameter['media_type'] = mediaType; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (order !== null && order !== undefined) { + localVarQueryParameter['order'] = order; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询转码模板组列表。 + */ + listTemplateGroup(listTemplateGroupRequest?: ListTemplateGroupRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/template_group/transcodings", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let groupId; + let status; + let page; + let size; + + if (listTemplateGroupRequest !== null && listTemplateGroupRequest !== undefined) { + if (listTemplateGroupRequest instanceof ListTemplateGroupRequest) { + authorization = listTemplateGroupRequest.authorization; + xSdkDate = listTemplateGroupRequest.xSdkDate; + groupId = listTemplateGroupRequest.groupId; + status = listTemplateGroupRequest.status; + page = listTemplateGroupRequest.page; + size = listTemplateGroupRequest.size; + } else { + authorization = listTemplateGroupRequest['Authorization']; + xSdkDate = listTemplateGroupRequest['X-Sdk-Date']; + groupId = listTemplateGroupRequest['group_id']; + status = listTemplateGroupRequest['status']; + page = listTemplateGroupRequest['page']; + size = listTemplateGroupRequest['size']; + } + } + + if (groupId !== null && groupId !== undefined) { + localVarQueryParameter['group_id'] = groupId; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询指定域名在指定日期播放次数排名Top 100的媒资统计数据。 + */ + listTopStatistics(listTopStatisticsRequest?: ListTopStatisticsRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/top-statistics", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let domain; + let date; + let authorization; + let xSdkDate; + + if (listTopStatisticsRequest !== null && listTopStatisticsRequest !== undefined) { + if (listTopStatisticsRequest instanceof ListTopStatisticsRequest) { + domain = listTopStatisticsRequest.domain; + date = listTopStatisticsRequest.date; + authorization = listTopStatisticsRequest.authorization; + xSdkDate = listTopStatisticsRequest.xSdkDate; + } else { + domain = listTopStatisticsRequest['domain']; + date = listTopStatisticsRequest['date']; + authorization = listTopStatisticsRequest['Authorization']; + xSdkDate = listTopStatisticsRequest['X-Sdk-Date']; + } + } + + if (domain === null || domain === undefined) { + throw new RequiredError('domain','Required parameter domain was null or undefined when calling listTopStatistics.'); + } + if (domain !== null && domain !== undefined) { + localVarQueryParameter['domain'] = domain; + } + if (date === null || date === undefined) { + throw new RequiredError('date','Required parameter date was null or undefined when calling listTopStatistics.'); + } + if (date !== null && date !== undefined) { + localVarQueryParameter['date'] = date; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询水印模板 + */ + listWatermarkTemplate(listWatermarkTemplateRequest?: ListWatermarkTemplateRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/template/watermark", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let id; + let page; + let size; + + if (listWatermarkTemplateRequest !== null && listWatermarkTemplateRequest !== undefined) { + if (listWatermarkTemplateRequest instanceof ListWatermarkTemplateRequest) { + authorization = listWatermarkTemplateRequest.authorization; + xSdkDate = listWatermarkTemplateRequest.xSdkDate; + id = listWatermarkTemplateRequest.id; + page = listWatermarkTemplateRequest.page; + size = listWatermarkTemplateRequest.size; + } else { + authorization = listWatermarkTemplateRequest['Authorization']; + xSdkDate = listWatermarkTemplateRequest['X-Sdk-Date']; + id = listWatermarkTemplateRequest['id']; + page = listWatermarkTemplateRequest['page']; + size = listWatermarkTemplateRequest['size']; + } + } + + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 若您在使用点播服务前,已经在OBS桶中存储了音视频文件,您可以使用该接口将存储在OBS桶中的音视频文件转存到点播服务中,使用点播服务的音视频管理功能。调用该接口前,您需要调用[桶授权](https://support.huaweicloud.com/api-vod/vod_04_0199.html)接口,将存储音视频文件的OBS桶授权给点播服务。 + */ + publishAssetFromObs(publishAssetFromObsRequest?: PublishAssetFromObsRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/reproduction", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (publishAssetFromObsRequest !== null && publishAssetFromObsRequest !== undefined) { + if (publishAssetFromObsRequest instanceof PublishAssetFromObsRequest) { + body = publishAssetFromObsRequest.body + authorization = publishAssetFromObsRequest.authorization; + xSdkDate = publishAssetFromObsRequest.xSdkDate; + } else { + body = publishAssetFromObsRequest['body']; + authorization = publishAssetFromObsRequest['Authorization']; + xSdkDate = publishAssetFromObsRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 将媒资设置为发布状态。支持批量发布。 + */ + publishAssets(publishAssetsRequest?: PublishAssetsRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/status/publish", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (publishAssetsRequest !== null && publishAssetsRequest !== undefined) { + if (publishAssetsRequest instanceof PublishAssetsRequest) { + body = publishAssetsRequest.body + authorization = publishAssetsRequest.authorization; + xSdkDate = publishAssetsRequest.xSdkDate; + } else { + body = publishAssetsRequest['body']; + authorization = publishAssetsRequest['Authorization']; + xSdkDate = publishAssetsRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 终端播放HLS加密视频时,向租户管理系统请求密钥,租户管理系统先查询其本地有没有已缓存的密钥,没有时则调用此接口向VOD查询。该接口的具体使用场景请参见[通过HLS加密防止视频泄露](https://support.huaweicloud.com/bestpractice-vod/vod_10_0004.html)。 + */ + showAssetCipher(showAssetCipherRequest?: ShowAssetCipherRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/ciphers", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let assetId; + let authorization; + let xSdkDate; + + if (showAssetCipherRequest !== null && showAssetCipherRequest !== undefined) { + if (showAssetCipherRequest instanceof ShowAssetCipherRequest) { + assetId = showAssetCipherRequest.assetId; + authorization = showAssetCipherRequest.authorization; + xSdkDate = showAssetCipherRequest.xSdkDate; + } else { + assetId = showAssetCipherRequest['asset_id']; + authorization = showAssetCipherRequest['Authorization']; + xSdkDate = showAssetCipherRequest['X-Sdk-Date']; + } + } + + if (assetId === null || assetId === undefined) { + throw new RequiredError('assetId','Required parameter assetId was null or undefined when calling showAssetCipher.'); + } + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询指定媒资的详细信息。 + */ + showAssetDetail(showAssetDetailRequest?: ShowAssetDetailRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/details", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let assetId; + let authorization; + let xSdkDate; + let categories; + + if (showAssetDetailRequest !== null && showAssetDetailRequest !== undefined) { + if (showAssetDetailRequest instanceof ShowAssetDetailRequest) { + assetId = showAssetDetailRequest.assetId; + authorization = showAssetDetailRequest.authorization; + xSdkDate = showAssetDetailRequest.xSdkDate; + categories = showAssetDetailRequest.categories; + } else { + assetId = showAssetDetailRequest['asset_id']; + authorization = showAssetDetailRequest['Authorization']; + xSdkDate = showAssetDetailRequest['X-Sdk-Date']; + categories = showAssetDetailRequest['categories']; + } + } + + if (assetId === null || assetId === undefined) { + throw new RequiredError('assetId','Required parameter assetId was null or undefined when calling showAssetDetail.'); + } + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (categories !== null && categories !== undefined) { + localVarQueryParameter['categories'] = categories; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询媒资信息,支持指定媒资ID、分类、状态、起止时间查询。 + */ + showAssetMeta(showAssetMetaRequest?: ShowAssetMetaRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/info", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let assetId; + let status; + let transcodeStatus; + let assetStatus; + let startTime; + let endTime; + let categoryId; + let tags; + let queryString; + let page; + let size; + + if (showAssetMetaRequest !== null && showAssetMetaRequest !== undefined) { + if (showAssetMetaRequest instanceof ShowAssetMetaRequest) { + authorization = showAssetMetaRequest.authorization; + xSdkDate = showAssetMetaRequest.xSdkDate; + assetId = showAssetMetaRequest.assetId; + status = showAssetMetaRequest.status; + transcodeStatus = showAssetMetaRequest.transcodeStatus; + assetStatus = showAssetMetaRequest.assetStatus; + startTime = showAssetMetaRequest.startTime; + endTime = showAssetMetaRequest.endTime; + categoryId = showAssetMetaRequest.categoryId; + tags = showAssetMetaRequest.tags; + queryString = showAssetMetaRequest.queryString; + page = showAssetMetaRequest.page; + size = showAssetMetaRequest.size; + } else { + authorization = showAssetMetaRequest['Authorization']; + xSdkDate = showAssetMetaRequest['X-Sdk-Date']; + assetId = showAssetMetaRequest['asset_id']; + status = showAssetMetaRequest['status']; + transcodeStatus = showAssetMetaRequest['transcodeStatus']; + assetStatus = showAssetMetaRequest['assetStatus']; + startTime = showAssetMetaRequest['start_time']; + endTime = showAssetMetaRequest['end_time']; + categoryId = showAssetMetaRequest['category_id']; + tags = showAssetMetaRequest['tags']; + queryString = showAssetMetaRequest['query_string']; + page = showAssetMetaRequest['page']; + size = showAssetMetaRequest['size']; + } + } + + if (assetId !== null && assetId !== undefined) { + localVarQueryParameter['asset_id'] = assetId; + } + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (transcodeStatus !== null && transcodeStatus !== undefined) { + localVarQueryParameter['transcodeStatus'] = transcodeStatus; + } + if (assetStatus !== null && assetStatus !== undefined) { + localVarQueryParameter['assetStatus'] = assetStatus; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (categoryId !== null && categoryId !== undefined) { + localVarQueryParameter['category_id'] = categoryId; + } + if (tags !== null && tags !== undefined) { + localVarQueryParameter['tags'] = tags; + } + if (queryString !== null && queryString !== undefined) { + localVarQueryParameter['query_string'] = queryString; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 客户端请求创建媒资时,如果媒资文件超过20MB,需采用分段的方式向OBS上传,在每次与OBS交互前,客户端需通过此接口获取到授权方可与OBS交互。 该接口可以获取[初始化多段上传任务](https://support.huaweicloud.com/api-obs/obs_04_0098.html)、[上传段](https://support.huaweicloud.com/api-obs/obs_04_0099.html)、[合并段](https://support.huaweicloud.com/api-obs/obs_04_0102.html)、[列举已上传段](https://support.huaweicloud.com/api-obs/obs_04_0101.html)、[取消段合并](https://support.huaweicloud.com/api-obs/obs_04_0103.html)的带有临时授权的URL,用户需要根据OBS的接口文档配置相应请求的HTTP请求方法、请求头、请求体,然后请求对应的带有临时授权的URL。 视频分段上传方式和OBS的接口文档保持一致,包括HTTP请求方法、请求头、请求体等各种入参,此接口的作用是为用户生成带有鉴权信息的URL(鉴权信息即query_str),用来替换OBS接口中对应的URL,临时给用户开通向点播服务的桶上传文件的权限。 调用获取授权接口时需要传入bucket、object_key、http_verb,其中bucket和object_key是由[创建媒资:上传方式](https://support.huaweicloud.com/api-vod/vod_04_0196.html)接口中返回的响应体中的target字段获得的bucket和object,http_verb需要根据指定的操作选择。 + */ + showAssetTempAuthority(showAssetTempAuthorityRequest?: ShowAssetTempAuthorityRequest) { + const options = { + method: "GET", + url: "/v1.1/{project_id}/asset/authority", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let httpVerb; + let bucket; + let objectKey; + let authorization; + let xSdkDate; + let contentType; + let contentMd5; + let uploadId; + let partNumber; + + if (showAssetTempAuthorityRequest !== null && showAssetTempAuthorityRequest !== undefined) { + if (showAssetTempAuthorityRequest instanceof ShowAssetTempAuthorityRequest) { + httpVerb = showAssetTempAuthorityRequest.httpVerb; + bucket = showAssetTempAuthorityRequest.bucket; + objectKey = showAssetTempAuthorityRequest.objectKey; + authorization = showAssetTempAuthorityRequest.authorization; + xSdkDate = showAssetTempAuthorityRequest.xSdkDate; + contentType = showAssetTempAuthorityRequest.contentType; + contentMd5 = showAssetTempAuthorityRequest.contentMd5; + uploadId = showAssetTempAuthorityRequest.uploadId; + partNumber = showAssetTempAuthorityRequest.partNumber; + } else { + httpVerb = showAssetTempAuthorityRequest['http_verb']; + bucket = showAssetTempAuthorityRequest['bucket']; + objectKey = showAssetTempAuthorityRequest['object_key']; + authorization = showAssetTempAuthorityRequest['Authorization']; + xSdkDate = showAssetTempAuthorityRequest['X-Sdk-Date']; + contentType = showAssetTempAuthorityRequest['content_type']; + contentMd5 = showAssetTempAuthorityRequest['content_md5']; + uploadId = showAssetTempAuthorityRequest['upload_id']; + partNumber = showAssetTempAuthorityRequest['part_number']; + } + } + + if (httpVerb === null || httpVerb === undefined) { + throw new RequiredError('httpVerb','Required parameter httpVerb was null or undefined when calling showAssetTempAuthority.'); + } + if (httpVerb !== null && httpVerb !== undefined) { + localVarQueryParameter['http_verb'] = httpVerb; + } + if (bucket === null || bucket === undefined) { + throw new RequiredError('bucket','Required parameter bucket was null or undefined when calling showAssetTempAuthority.'); + } + if (bucket !== null && bucket !== undefined) { + localVarQueryParameter['bucket'] = bucket; + } + if (objectKey === null || objectKey === undefined) { + throw new RequiredError('objectKey','Required parameter objectKey was null or undefined when calling showAssetTempAuthority.'); + } + if (objectKey !== null && objectKey !== undefined) { + localVarQueryParameter['object_key'] = objectKey; + } + if (contentType !== null && contentType !== undefined) { + localVarQueryParameter['content_type'] = contentType; + } + if (contentMd5 !== null && contentMd5 !== undefined) { + localVarQueryParameter['content_md5'] = contentMd5; + } + if (uploadId !== null && uploadId !== undefined) { + localVarQueryParameter['upload_id'] = uploadId; + } + if (partNumber !== null && partNumber !== undefined) { + localVarQueryParameter['part_number'] = partNumber; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询CDN的统计数据,包括流量、峰值带宽、请求总数、请求命中率、流量命中率。 + */ + showCdnStatistics(showCdnStatisticsRequest?: ShowCdnStatisticsRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/cdn-statistics", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let statType; + let domain; + let authorization; + let xSdkDate; + let startTime; + let endTime; + let interval; + + if (showCdnStatisticsRequest !== null && showCdnStatisticsRequest !== undefined) { + if (showCdnStatisticsRequest instanceof ShowCdnStatisticsRequest) { + statType = showCdnStatisticsRequest.statType; + domain = showCdnStatisticsRequest.domain; + authorization = showCdnStatisticsRequest.authorization; + xSdkDate = showCdnStatisticsRequest.xSdkDate; + startTime = showCdnStatisticsRequest.startTime; + endTime = showCdnStatisticsRequest.endTime; + interval = showCdnStatisticsRequest.interval; + } else { + statType = showCdnStatisticsRequest['stat_type']; + domain = showCdnStatisticsRequest['domain']; + authorization = showCdnStatisticsRequest['Authorization']; + xSdkDate = showCdnStatisticsRequest['X-Sdk-Date']; + startTime = showCdnStatisticsRequest['start_time']; + endTime = showCdnStatisticsRequest['end_time']; + interval = showCdnStatisticsRequest['interval']; + } + } + + if (statType === null || statType === undefined) { + throw new RequiredError('statType','Required parameter statType was null or undefined when calling showCdnStatistics.'); + } + if (statType !== null && statType !== undefined) { + localVarQueryParameter['stat_type'] = statType; + } + if (domain === null || domain === undefined) { + throw new RequiredError('domain','Required parameter domain was null or undefined when calling showCdnStatistics.'); + } + if (domain !== null && domain !== undefined) { + localVarQueryParameter['domain'] = domain; + } + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (interval !== null && interval !== undefined) { + localVarQueryParameter['interval'] = interval; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询预热结果。 + */ + showPreheatingAsset(showPreheatingAssetRequest?: ShowPreheatingAssetRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/preheating", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let taskId; + let authorization; + let xSdkDate; + + if (showPreheatingAssetRequest !== null && showPreheatingAssetRequest !== undefined) { + if (showPreheatingAssetRequest instanceof ShowPreheatingAssetRequest) { + taskId = showPreheatingAssetRequest.taskId; + authorization = showPreheatingAssetRequest.authorization; + xSdkDate = showPreheatingAssetRequest.xSdkDate; + } else { + taskId = showPreheatingAssetRequest['task_id']; + authorization = showPreheatingAssetRequest['Authorization']; + xSdkDate = showPreheatingAssetRequest['X-Sdk-Date']; + } + } + + if (taskId === null || taskId === undefined) { + throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling showPreheatingAsset.'); + } + if (taskId !== null && taskId !== undefined) { + localVarQueryParameter['task_id'] = taskId; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询点播源站的统计数据,包括流量、存储空间、转码时长。 + */ + showVodStatistics(showVodStatisticsRequest?: ShowVodStatisticsRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/vod-statistics", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let startTime; + let endTime; + let interval; + + if (showVodStatisticsRequest !== null && showVodStatisticsRequest !== undefined) { + if (showVodStatisticsRequest instanceof ShowVodStatisticsRequest) { + authorization = showVodStatisticsRequest.authorization; + xSdkDate = showVodStatisticsRequest.xSdkDate; + startTime = showVodStatisticsRequest.startTime; + endTime = showVodStatisticsRequest.endTime; + interval = showVodStatisticsRequest.interval; + } else { + authorization = showVodStatisticsRequest['Authorization']; + xSdkDate = showVodStatisticsRequest['X-Sdk-Date']; + startTime = showVodStatisticsRequest['start_time']; + endTime = showVodStatisticsRequest['end_time']; + interval = showVodStatisticsRequest['interval']; + } + } + + if (startTime !== null && startTime !== undefined) { + localVarQueryParameter['start_time'] = startTime; + } + if (endTime !== null && endTime !== undefined) { + localVarQueryParameter['end_time'] = endTime; + } + if (interval !== null && interval !== undefined) { + localVarQueryParameter['interval'] = interval; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 将媒资设置为未发布状态。 + */ + unpublishAssets(unpublishAssetsRequest?: UnpublishAssetsRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/status/unpublish", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (unpublishAssetsRequest !== null && unpublishAssetsRequest !== undefined) { + if (unpublishAssetsRequest instanceof UnpublishAssetsRequest) { + body = unpublishAssetsRequest.body + authorization = unpublishAssetsRequest.authorization; + xSdkDate = unpublishAssetsRequest.xSdkDate; + } else { + body = unpublishAssetsRequest['body']; + authorization = unpublishAssetsRequest['Authorization']; + xSdkDate = unpublishAssetsRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 媒资创建后,单独上传封面、更新视频文件或更新已有封面。 如果是更新视频文件,更新完后要通过[确认媒资上传](https://support.huaweicloud.com/api-vod/vod_04_0198.html)接口通知点播服务。 如果是更新封面或单独上传封面,则不需通知。 更新视频可以使用分段上传,具体方式可以参考[示例2:媒资分段上传(20M以上)](https://support.huaweicloud.com/api-vod/vod_04_0216.html)。 + */ + updateAsset(updateAssetRequest?: UpdateAssetRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateAssetRequest !== null && updateAssetRequest !== undefined) { + if (updateAssetRequest instanceof UpdateAssetRequest) { + body = updateAssetRequest.body + authorization = updateAssetRequest.authorization; + xSdkDate = updateAssetRequest.xSdkDate; + } else { + body = updateAssetRequest['body']; + authorization = updateAssetRequest['Authorization']; + xSdkDate = updateAssetRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改媒资分类。 + */ + updateAssetCategory(updateAssetCategoryRequest?: UpdateAssetCategoryRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset/category", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateAssetCategoryRequest !== null && updateAssetCategoryRequest !== undefined) { + if (updateAssetCategoryRequest instanceof UpdateAssetCategoryRequest) { + body = updateAssetCategoryRequest.body + authorization = updateAssetCategoryRequest.authorization; + xSdkDate = updateAssetCategoryRequest.xSdkDate; + } else { + body = updateAssetCategoryRequest['body']; + authorization = updateAssetCategoryRequest['Authorization']; + xSdkDate = updateAssetCategoryRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改媒资属性。 + */ + updateAssetMeta(updateAssetMetaRequest?: UpdateAssetMetaRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset/info", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateAssetMetaRequest !== null && updateAssetMetaRequest !== undefined) { + if (updateAssetMetaRequest instanceof UpdateAssetMetaRequest) { + authorization = updateAssetMetaRequest.authorization; + xSdkDate = updateAssetMetaRequest.xSdkDate; + body = updateAssetMetaRequest.body + } else { + authorization = updateAssetMetaRequest['Authorization']; + xSdkDate = updateAssetMetaRequest['X-Sdk-Date']; + body = updateAssetMetaRequest['body']; + } + } + + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 用户可以通过该接口将OBS桶授权给点播服务或取消点播服务的授权。 + */ + updateBucketAuthorized(updateBucketAuthorizedRequest?: UpdateBucketAuthorizedRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset/authority", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateBucketAuthorizedRequest !== null && updateBucketAuthorizedRequest !== undefined) { + if (updateBucketAuthorizedRequest instanceof UpdateBucketAuthorizedRequest) { + body = updateBucketAuthorizedRequest.body + authorization = updateBucketAuthorizedRequest.authorization; + xSdkDate = updateBucketAuthorizedRequest.xSdkDate; + } else { + body = updateBucketAuthorizedRequest['body']; + authorization = updateBucketAuthorizedRequest['Authorization']; + xSdkDate = updateBucketAuthorizedRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 将视频截图生成的某张图片设置成封面。 + */ + updateCoverByThumbnail(updateCoverByThumbnailRequest?: UpdateCoverByThumbnailRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset/cover", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateCoverByThumbnailRequest !== null && updateCoverByThumbnailRequest !== undefined) { + if (updateCoverByThumbnailRequest instanceof UpdateCoverByThumbnailRequest) { + body = updateCoverByThumbnailRequest.body + authorization = updateCoverByThumbnailRequest.authorization; + xSdkDate = updateCoverByThumbnailRequest.xSdkDate; + } else { + body = updateCoverByThumbnailRequest['body']; + authorization = updateCoverByThumbnailRequest['Authorization']; + xSdkDate = updateCoverByThumbnailRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改自定义转码模板组。 + */ + updateTemplateGroup(updateTemplateGroupRequest?: UpdateTemplateGroupRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/asset/template_group/transcodings", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateTemplateGroupRequest !== null && updateTemplateGroupRequest !== undefined) { + if (updateTemplateGroupRequest instanceof UpdateTemplateGroupRequest) { + body = updateTemplateGroupRequest.body + authorization = updateTemplateGroupRequest.authorization; + xSdkDate = updateTemplateGroupRequest.xSdkDate; + } else { + body = updateTemplateGroupRequest['body']; + authorization = updateTemplateGroupRequest['Authorization']; + xSdkDate = updateTemplateGroupRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 修改水印模板 + */ + updateWatermarkTemplate(updateWatermarkTemplateRequest?: UpdateWatermarkTemplateRequest) { + const options = { + method: "PUT", + url: "/v1.0/{project_id}/template/watermark", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (updateWatermarkTemplateRequest !== null && updateWatermarkTemplateRequest !== undefined) { + if (updateWatermarkTemplateRequest instanceof UpdateWatermarkTemplateRequest) { + authorization = updateWatermarkTemplateRequest.authorization; + xSdkDate = updateWatermarkTemplateRequest.xSdkDate; + body = updateWatermarkTemplateRequest.body + } else { + authorization = updateWatermarkTemplateRequest['Authorization']; + xSdkDate = updateWatermarkTemplateRequest['X-Sdk-Date']; + body = updateWatermarkTemplateRequest['body']; + } + } + + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 基于音视频源文件URL,将音视频文件离线拉取上传到点播服务。 + */ + uploadMetaDataByUrl(uploadMetaDataByUrlRequest?: UploadMetaDataByUrlRequest) { + const options = { + method: "POST", + url: "/v1.0/{project_id}/asset/upload_by_url", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let authorization; + let xSdkDate; + + if (uploadMetaDataByUrlRequest !== null && uploadMetaDataByUrlRequest !== undefined) { + if (uploadMetaDataByUrlRequest instanceof UploadMetaDataByUrlRequest) { + body = uploadMetaDataByUrlRequest.body + authorization = uploadMetaDataByUrlRequest.authorization; + xSdkDate = uploadMetaDataByUrlRequest.xSdkDate; + } else { + body = uploadMetaDataByUrlRequest['body']; + authorization = uploadMetaDataByUrlRequest['Authorization']; + xSdkDate = uploadMetaDataByUrlRequest['X-Sdk-Date']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + localVarHeaderParameter['Content-Type'] = 'application/json'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询OBS存量托管任务列表。 + */ + listTakeOverTask(listTakeOverTaskRequest?: ListTakeOverTaskRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/obs/host/stock/task", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let authorization; + let xSdkDate; + let status; + let taskId; + let page; + let size; + + if (listTakeOverTaskRequest !== null && listTakeOverTaskRequest !== undefined) { + if (listTakeOverTaskRequest instanceof ListTakeOverTaskRequest) { + authorization = listTakeOverTaskRequest.authorization; + xSdkDate = listTakeOverTaskRequest.xSdkDate; + status = listTakeOverTaskRequest.status; + taskId = listTakeOverTaskRequest.taskId; + page = listTakeOverTaskRequest.page; + size = listTakeOverTaskRequest.size; + } else { + authorization = listTakeOverTaskRequest['Authorization']; + xSdkDate = listTakeOverTaskRequest['X-Sdk-Date']; + status = listTakeOverTaskRequest['status']; + taskId = listTakeOverTaskRequest['task_id']; + page = listTakeOverTaskRequest['page']; + size = listTakeOverTaskRequest['size']; + } + } + + if (status !== null && status !== undefined) { + localVarQueryParameter['status'] = status; + } + if (taskId !== null && taskId !== undefined) { + localVarQueryParameter['task_id'] = taskId; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询OBS托管媒资的详细信息。 + */ + showTakeOverAssetDetails(showTakeOverAssetDetailsRequest?: ShowTakeOverAssetDetailsRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/obs/host/task/details", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let sourceBucket; + let sourceObject; + let authorization; + let xSdkDate; + + if (showTakeOverAssetDetailsRequest !== null && showTakeOverAssetDetailsRequest !== undefined) { + if (showTakeOverAssetDetailsRequest instanceof ShowTakeOverAssetDetailsRequest) { + sourceBucket = showTakeOverAssetDetailsRequest.sourceBucket; + sourceObject = showTakeOverAssetDetailsRequest.sourceObject; + authorization = showTakeOverAssetDetailsRequest.authorization; + xSdkDate = showTakeOverAssetDetailsRequest.xSdkDate; + } else { + sourceBucket = showTakeOverAssetDetailsRequest['source_bucket']; + sourceObject = showTakeOverAssetDetailsRequest['source_object']; + authorization = showTakeOverAssetDetailsRequest['Authorization']; + xSdkDate = showTakeOverAssetDetailsRequest['X-Sdk-Date']; + } + } + + if (sourceBucket === null || sourceBucket === undefined) { + throw new RequiredError('sourceBucket','Required parameter sourceBucket was null or undefined when calling showTakeOverAssetDetails.'); + } + if (sourceBucket !== null && sourceBucket !== undefined) { + localVarQueryParameter['source_bucket'] = sourceBucket; + } + if (sourceObject === null || sourceObject === undefined) { + throw new RequiredError('sourceObject','Required parameter sourceObject was null or undefined when calling showTakeOverAssetDetails.'); + } + if (sourceObject !== null && sourceObject !== undefined) { + localVarQueryParameter['source_object'] = sourceObject; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + /** + * 查询OBS存量托管任务详情。 + */ + showTakeOverTaskDetails(showTakeOverTaskDetailsRequest?: ShowTakeOverTaskDetailsRequest) { + const options = { + method: "GET", + url: "/v1.0/{project_id}/asset/obs/host/stock/task/details", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let taskId; + let authorization; + let xSdkDate; + let page; + let size; + + if (showTakeOverTaskDetailsRequest !== null && showTakeOverTaskDetailsRequest !== undefined) { + if (showTakeOverTaskDetailsRequest instanceof ShowTakeOverTaskDetailsRequest) { + taskId = showTakeOverTaskDetailsRequest.taskId; + authorization = showTakeOverTaskDetailsRequest.authorization; + xSdkDate = showTakeOverTaskDetailsRequest.xSdkDate; + page = showTakeOverTaskDetailsRequest.page; + size = showTakeOverTaskDetailsRequest.size; + } else { + taskId = showTakeOverTaskDetailsRequest['task_id']; + authorization = showTakeOverTaskDetailsRequest['Authorization']; + xSdkDate = showTakeOverTaskDetailsRequest['X-Sdk-Date']; + page = showTakeOverTaskDetailsRequest['page']; + size = showTakeOverTaskDetailsRequest['size']; + } + } + + if (taskId === null || taskId === undefined) { + throw new RequiredError('taskId','Required parameter taskId was null or undefined when calling showTakeOverTaskDetails.'); + } + if (taskId !== null && taskId !== undefined) { + localVarQueryParameter['task_id'] = taskId; + } + if (page !== null && page !== undefined) { + localVarQueryParameter['page'] = page; + } + if (size !== null && size !== undefined) { + localVarQueryParameter['size'] = size; + } + if (authorization !== undefined && authorization !== null) { + localVarHeaderParameter['Authorization'] = String(authorization); + } + if (xSdkDate !== undefined && xSdkDate !== null) { + localVarHeaderParameter['X-Sdk-Date'] = String(xSdkDate); + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + + } +}; + +function newClient(client: HcClient): VodClient { + return new VodClient(client); +} + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + name: "RequiredError" = "RequiredError"; + constructor(public field: string, msg?: string) { + super(msg); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/AssetDetails.ts b/services/vod/v1/model/AssetDetails.ts new file mode 100644 index 000000000..28d9c253e --- /dev/null +++ b/services/vod/v1/model/AssetDetails.ts @@ -0,0 +1,87 @@ +import { BaseInfo } from './BaseInfo'; +import { TranscodeInfo } from './TranscodeInfo'; + + +export class AssetDetails { + private 'asset_id': string | undefined; + private 'asset_status'?: AssetDetailsAssetStatusEnum | undefined; + private 'transcode_status'?: AssetDetailsTranscodeStatusEnum | undefined; + private 'base_info'?: BaseInfo | undefined; + private 'transcode_info'?: TranscodeInfo | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: string): AssetDetails { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withAssetStatus(assetStatus: AssetDetailsAssetStatusEnum): AssetDetails { + this['asset_status'] = assetStatus; + return this; + } + public set assetStatus(assetStatus: AssetDetailsAssetStatusEnum | undefined) { + this['asset_status'] = assetStatus; + } + public get assetStatus() { + return this['asset_status']; + } + public withTranscodeStatus(transcodeStatus: AssetDetailsTranscodeStatusEnum): AssetDetails { + this['transcode_status'] = transcodeStatus; + return this; + } + public set transcodeStatus(transcodeStatus: AssetDetailsTranscodeStatusEnum | undefined) { + this['transcode_status'] = transcodeStatus; + } + public get transcodeStatus() { + return this['transcode_status']; + } + public withBaseInfo(baseInfo: BaseInfo): AssetDetails { + this['base_info'] = baseInfo; + return this; + } + public set baseInfo(baseInfo: BaseInfo | undefined) { + this['base_info'] = baseInfo; + } + public get baseInfo() { + return this['base_info']; + } + public withTranscodeInfo(transcodeInfo: TranscodeInfo): AssetDetails { + this['transcode_info'] = transcodeInfo; + return this; + } + public set transcodeInfo(transcodeInfo: TranscodeInfo | undefined) { + this['transcode_info'] = transcodeInfo; + } + public get transcodeInfo() { + return this['transcode_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum AssetDetailsAssetStatusEnum { + CREATING = 'CREATING', + FAILED = 'FAILED', + CREATED = 'CREATED', + PUBLISHED = 'PUBLISHED', + DELETED = 'DELETED' +} +/** + * @export + * @enum {string} + */ +export enum AssetDetailsTranscodeStatusEnum { + UN_TRANSCODE = 'UN_TRANSCODE', + WAITING_TRANSCODE = 'WAITING_TRANSCODE', + TRANSCODING = 'TRANSCODING', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + TRANSCODE_FAILED = 'TRANSCODE_FAILED' +} diff --git a/services/vod/v1/model/AssetInfo.ts b/services/vod/v1/model/AssetInfo.ts new file mode 100644 index 000000000..fa3325e0a --- /dev/null +++ b/services/vod/v1/model/AssetInfo.ts @@ -0,0 +1,51 @@ +import { BaseInfo } from './BaseInfo'; +import { PlayInfo } from './PlayInfo'; + + +export class AssetInfo { + private 'asset_id'?: string | undefined; + public status?: string; + public description?: string; + private 'base_info'?: BaseInfo | undefined; + private 'play_info_array'?: Array | undefined; + public constructor() { + } + public withAssetId(assetId: string): AssetInfo { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withStatus(status: string): AssetInfo { + this['status'] = status; + return this; + } + public withDescription(description: string): AssetInfo { + this['description'] = description; + return this; + } + public withBaseInfo(baseInfo: BaseInfo): AssetInfo { + this['base_info'] = baseInfo; + return this; + } + public set baseInfo(baseInfo: BaseInfo | undefined) { + this['base_info'] = baseInfo; + } + public get baseInfo() { + return this['base_info']; + } + public withPlayInfoArray(playInfoArray: Array): AssetInfo { + this['play_info_array'] = playInfoArray; + return this; + } + public set playInfoArray(playInfoArray: Array | undefined) { + this['play_info_array'] = playInfoArray; + } + public get playInfoArray() { + return this['play_info_array']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/AssetProcessReq.ts b/services/vod/v1/model/AssetProcessReq.ts new file mode 100644 index 000000000..077757fc3 --- /dev/null +++ b/services/vod/v1/model/AssetProcessReq.ts @@ -0,0 +1,57 @@ +import { Thumbnail } from './Thumbnail'; + + +export class AssetProcessReq { + private 'asset_id': string | undefined; + private 'template_group_name'?: string | undefined; + private 'auto_encrypt'?: number | undefined; + public thumbnail?: Thumbnail; + private 'subtitle_id'?: Array | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: string): AssetProcessReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withTemplateGroupName(templateGroupName: string): AssetProcessReq { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withAutoEncrypt(autoEncrypt: number): AssetProcessReq { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withThumbnail(thumbnail: Thumbnail): AssetProcessReq { + this['thumbnail'] = thumbnail; + return this; + } + public withSubtitleId(subtitleId: Array): AssetProcessReq { + this['subtitle_id'] = subtitleId; + return this; + } + public set subtitleId(subtitleId: Array | undefined) { + this['subtitle_id'] = subtitleId; + } + public get subtitleId() { + return this['subtitle_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/AssetReviewReq.ts b/services/vod/v1/model/AssetReviewReq.ts new file mode 100644 index 000000000..6f05e6d1c --- /dev/null +++ b/services/vod/v1/model/AssetReviewReq.ts @@ -0,0 +1,25 @@ +import { Review } from './Review'; + + +export class AssetReviewReq { + private 'asset_id': string | undefined; + public review: Review; + public constructor(assetId?: any, review?: any) { + this['asset_id'] = assetId; + this['review'] = review; + } + public withAssetId(assetId: string): AssetReviewReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withReview(review: Review): AssetReviewReq { + this['review'] = review; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/AssetSummary.ts b/services/vod/v1/model/AssetSummary.ts new file mode 100644 index 000000000..a46fd01f0 --- /dev/null +++ b/services/vod/v1/model/AssetSummary.ts @@ -0,0 +1,186 @@ +import { CoverInfo } from './CoverInfo'; + + +export class AssetSummary { + private 'asset_id': string | undefined; + public title: string; + public description?: string; + public duration: number; + public size: number; + private 'original_url'?: string | undefined; + public category?: string; + public covers?: Array; + private 'create_time'?: string | undefined; + private 'asset_status': AssetSummaryAssetStatusEnum | undefined; + private 'transcode_status'?: AssetSummaryTranscodeStatusEnum | undefined; + private 'thumbnail_status'?: AssetSummaryThumbnailStatusEnum | undefined; + private 'review_status'?: AssetSummaryReviewStatusEnum | undefined; + private 'exec_desc'?: string | undefined; + private 'media_type'?: string | undefined; + public constructor(assetId?: any, title?: any, duration?: any, size?: any, assetStatus?: any) { + this['asset_id'] = assetId; + this['title'] = title; + this['duration'] = duration; + this['size'] = size; + this['asset_status'] = assetStatus; + } + public withAssetId(assetId: string): AssetSummary { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withTitle(title: string): AssetSummary { + this['title'] = title; + return this; + } + public withDescription(description: string): AssetSummary { + this['description'] = description; + return this; + } + public withDuration(duration: number): AssetSummary { + this['duration'] = duration; + return this; + } + public withSize(size: number): AssetSummary { + this['size'] = size; + return this; + } + public withOriginalUrl(originalUrl: string): AssetSummary { + this['original_url'] = originalUrl; + return this; + } + public set originalUrl(originalUrl: string | undefined) { + this['original_url'] = originalUrl; + } + public get originalUrl() { + return this['original_url']; + } + public withCategory(category: string): AssetSummary { + this['category'] = category; + return this; + } + public withCovers(covers: Array): AssetSummary { + this['covers'] = covers; + return this; + } + public withCreateTime(createTime: string): AssetSummary { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime() { + return this['create_time']; + } + public withAssetStatus(assetStatus: AssetSummaryAssetStatusEnum): AssetSummary { + this['asset_status'] = assetStatus; + return this; + } + public set assetStatus(assetStatus: AssetSummaryAssetStatusEnum | undefined) { + this['asset_status'] = assetStatus; + } + public get assetStatus() { + return this['asset_status']; + } + public withTranscodeStatus(transcodeStatus: AssetSummaryTranscodeStatusEnum): AssetSummary { + this['transcode_status'] = transcodeStatus; + return this; + } + public set transcodeStatus(transcodeStatus: AssetSummaryTranscodeStatusEnum | undefined) { + this['transcode_status'] = transcodeStatus; + } + public get transcodeStatus() { + return this['transcode_status']; + } + public withThumbnailStatus(thumbnailStatus: AssetSummaryThumbnailStatusEnum): AssetSummary { + this['thumbnail_status'] = thumbnailStatus; + return this; + } + public set thumbnailStatus(thumbnailStatus: AssetSummaryThumbnailStatusEnum | undefined) { + this['thumbnail_status'] = thumbnailStatus; + } + public get thumbnailStatus() { + return this['thumbnail_status']; + } + public withReviewStatus(reviewStatus: AssetSummaryReviewStatusEnum): AssetSummary { + this['review_status'] = reviewStatus; + return this; + } + public set reviewStatus(reviewStatus: AssetSummaryReviewStatusEnum | undefined) { + this['review_status'] = reviewStatus; + } + public get reviewStatus() { + return this['review_status']; + } + public withExecDesc(execDesc: string): AssetSummary { + this['exec_desc'] = execDesc; + return this; + } + public set execDesc(execDesc: string | undefined) { + this['exec_desc'] = execDesc; + } + public get execDesc() { + return this['exec_desc']; + } + public withMediaType(mediaType: string): AssetSummary { + this['media_type'] = mediaType; + return this; + } + public set mediaType(mediaType: string | undefined) { + this['media_type'] = mediaType; + } + public get mediaType() { + return this['media_type']; + } +} + +/** + * @export + * @enum {string} + */ +export enum AssetSummaryAssetStatusEnum { + CREATING = 'CREATING', + FAILED = 'FAILED', + CREATED = 'CREATED', + PUBLISHED = 'PUBLISHED', + DELETED = 'DELETED' +} +/** + * @export + * @enum {string} + */ +export enum AssetSummaryTranscodeStatusEnum { + UN_TRANSCODE = 'UN_TRANSCODE', + WAITING_TRANSCODE = 'WAITING_TRANSCODE', + TRANSCODING = 'TRANSCODING', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + TRANSCODE_FAILED = 'TRANSCODE_FAILED' +} +/** + * @export + * @enum {string} + */ +export enum AssetSummaryThumbnailStatusEnum { + UN_THUMBNAIL = 'UN_THUMBNAIL', + THUMBNAILING = 'THUMBNAILING', + THUMBNAIL_SUCCEED = 'THUMBNAIL_SUCCEED', + THUMBNAIL_FAILED = 'THUMBNAIL_FAILED' +} +/** + * @export + * @enum {string} + */ +export enum AssetSummaryReviewStatusEnum { + UN_REVIEW = 'UN_REVIEW', + REVIEWING = 'REVIEWING', + REVIEW_SUSPICIOUS = 'REVIEW_SUSPICIOUS', + REVIEW_PASSED = 'REVIEW_PASSED', + REVIEW_FAILED = 'REVIEW_FAILED', + REVIEW_BLOCKED = 'REVIEW_BLOCKED' +} diff --git a/services/vod/v1/model/AudioTemplateInfo.ts b/services/vod/v1/model/AudioTemplateInfo.ts new file mode 100644 index 000000000..49270f9a1 --- /dev/null +++ b/services/vod/v1/model/AudioTemplateInfo.ts @@ -0,0 +1,29 @@ + + +export class AudioTemplateInfo { + private 'sample_rate': number | undefined; + public bitrate?: number; + public channels: number; + public constructor(sampleRate?: any, channels?: any) { + this['sample_rate'] = sampleRate; + this['channels'] = channels; + } + public withSampleRate(sampleRate: number): AudioTemplateInfo { + this['sample_rate'] = sampleRate; + return this; + } + public set sampleRate(sampleRate: number | undefined) { + this['sample_rate'] = sampleRate; + } + public get sampleRate() { + return this['sample_rate']; + } + public withBitrate(bitrate: number): AudioTemplateInfo { + this['bitrate'] = bitrate; + return this; + } + public withChannels(channels: number): AudioTemplateInfo { + this['channels'] = channels; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/BaseInfo.ts b/services/vod/v1/model/BaseInfo.ts new file mode 100644 index 000000000..2e5825089 --- /dev/null +++ b/services/vod/v1/model/BaseInfo.ts @@ -0,0 +1,157 @@ +import { CoverInfo } from './CoverInfo'; +import { FileAddr } from './FileAddr'; +import { MetaData } from './MetaData'; +import { SubtitleInfo } from './SubtitleInfo'; + + +export class BaseInfo { + public title?: string; + private 'video_name'?: string | undefined; + public description?: string; + private 'category_id'?: number | undefined; + private 'category_name'?: string | undefined; + private 'create_time'?: string | undefined; + private 'last_modified'?: string | undefined; + private 'video_type'?: string | undefined; + public tags?: string; + private 'meta_data'?: MetaData | undefined; + private 'video_url'?: string | undefined; + private 'cover_info_array'?: Array | undefined; + private 'subtitle_info'?: Array | undefined; + private 'source_path'?: FileAddr | undefined; + private 'output_path'?: FileAddr | undefined; + public constructor() { + } + public withTitle(title: string): BaseInfo { + this['title'] = title; + return this; + } + public withVideoName(videoName: string): BaseInfo { + this['video_name'] = videoName; + return this; + } + public set videoName(videoName: string | undefined) { + this['video_name'] = videoName; + } + public get videoName() { + return this['video_name']; + } + public withDescription(description: string): BaseInfo { + this['description'] = description; + return this; + } + public withCategoryId(categoryId: number): BaseInfo { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withCategoryName(categoryName: string): BaseInfo { + this['category_name'] = categoryName; + return this; + } + public set categoryName(categoryName: string | undefined) { + this['category_name'] = categoryName; + } + public get categoryName() { + return this['category_name']; + } + public withCreateTime(createTime: string): BaseInfo { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime() { + return this['create_time']; + } + public withLastModified(lastModified: string): BaseInfo { + this['last_modified'] = lastModified; + return this; + } + public set lastModified(lastModified: string | undefined) { + this['last_modified'] = lastModified; + } + public get lastModified() { + return this['last_modified']; + } + public withVideoType(videoType: string): BaseInfo { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: string | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withTags(tags: string): BaseInfo { + this['tags'] = tags; + return this; + } + public withMetaData(metaData: MetaData): BaseInfo { + this['meta_data'] = metaData; + return this; + } + public set metaData(metaData: MetaData | undefined) { + this['meta_data'] = metaData; + } + public get metaData() { + return this['meta_data']; + } + public withVideoUrl(videoUrl: string): BaseInfo { + this['video_url'] = videoUrl; + return this; + } + public set videoUrl(videoUrl: string | undefined) { + this['video_url'] = videoUrl; + } + public get videoUrl() { + return this['video_url']; + } + public withCoverInfoArray(coverInfoArray: Array): BaseInfo { + this['cover_info_array'] = coverInfoArray; + return this; + } + public set coverInfoArray(coverInfoArray: Array | undefined) { + this['cover_info_array'] = coverInfoArray; + } + public get coverInfoArray() { + return this['cover_info_array']; + } + public withSubtitleInfo(subtitleInfo: Array): BaseInfo { + this['subtitle_info'] = subtitleInfo; + return this; + } + public set subtitleInfo(subtitleInfo: Array | undefined) { + this['subtitle_info'] = subtitleInfo; + } + public get subtitleInfo() { + return this['subtitle_info']; + } + public withSourcePath(sourcePath: FileAddr): BaseInfo { + this['source_path'] = sourcePath; + return this; + } + public set sourcePath(sourcePath: FileAddr | undefined) { + this['source_path'] = sourcePath; + } + public get sourcePath() { + return this['source_path']; + } + public withOutputPath(outputPath: FileAddr): BaseInfo { + this['output_path'] = outputPath; + return this; + } + public set outputPath(outputPath: FileAddr | undefined) { + this['output_path'] = outputPath; + } + public get outputPath() { + return this['output_path']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CancelAssetTranscodeTaskRequest.ts b/services/vod/v1/model/CancelAssetTranscodeTaskRequest.ts new file mode 100644 index 000000000..8ed7ee9a5 --- /dev/null +++ b/services/vod/v1/model/CancelAssetTranscodeTaskRequest.ts @@ -0,0 +1,40 @@ + + +export class CancelAssetTranscodeTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id': string | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAuthorization(authorization: string): CancelAssetTranscodeTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CancelAssetTranscodeTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: string): CancelAssetTranscodeTaskRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CancelAssetTranscodeTaskResponse.ts b/services/vod/v1/model/CancelAssetTranscodeTaskResponse.ts new file mode 100644 index 000000000..f972028d9 --- /dev/null +++ b/services/vod/v1/model/CancelAssetTranscodeTaskResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CancelAssetTranscodeTaskResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CancelExtractAudioTaskRequest.ts b/services/vod/v1/model/CancelExtractAudioTaskRequest.ts new file mode 100644 index 000000000..f1376e4aa --- /dev/null +++ b/services/vod/v1/model/CancelExtractAudioTaskRequest.ts @@ -0,0 +1,40 @@ + + +export class CancelExtractAudioTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id': string | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAuthorization(authorization: string): CancelExtractAudioTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CancelExtractAudioTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: string): CancelExtractAudioTaskRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CancelExtractAudioTaskResponse.ts b/services/vod/v1/model/CancelExtractAudioTaskResponse.ts new file mode 100644 index 000000000..4af56c34c --- /dev/null +++ b/services/vod/v1/model/CancelExtractAudioTaskResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CancelExtractAudioTaskResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CheckMd5DuplicationRequest.ts b/services/vod/v1/model/CheckMd5DuplicationRequest.ts new file mode 100644 index 000000000..983f9a30b --- /dev/null +++ b/services/vod/v1/model/CheckMd5DuplicationRequest.ts @@ -0,0 +1,40 @@ + + +export class CheckMd5DuplicationRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public size: number; + public md5: string; + public constructor(size?: any, md5?: any) { + this['size'] = size; + this['md5'] = md5; + } + public withAuthorization(authorization: string): CheckMd5DuplicationRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CheckMd5DuplicationRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withSize(size: number): CheckMd5DuplicationRequest { + this['size'] = size; + return this; + } + public withMd5(md5: string): CheckMd5DuplicationRequest { + this['md5'] = md5; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CheckMd5DuplicationResponse.ts b/services/vod/v1/model/CheckMd5DuplicationResponse.ts new file mode 100644 index 000000000..d1ebfc2e4 --- /dev/null +++ b/services/vod/v1/model/CheckMd5DuplicationResponse.ts @@ -0,0 +1,30 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CheckMd5DuplicationResponse extends SdkResponse { + private 'is_duplicated'?: number | undefined; + private 'asset_ids'?: Array | undefined; + public constructor() { + super(); + } + public withIsDuplicated(isDuplicated: number): CheckMd5DuplicationResponse { + this['is_duplicated'] = isDuplicated; + return this; + } + public set isDuplicated(isDuplicated: number | undefined) { + this['is_duplicated'] = isDuplicated; + } + public get isDuplicated() { + return this['is_duplicated']; + } + public withAssetIds(assetIds: Array): CheckMd5DuplicationResponse { + this['asset_ids'] = assetIds; + return this; + } + public set assetIds(assetIds: Array | undefined) { + this['asset_ids'] = assetIds; + } + public get assetIds() { + return this['asset_ids']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/Common.ts b/services/vod/v1/model/Common.ts new file mode 100644 index 000000000..25ff273c7 --- /dev/null +++ b/services/vod/v1/model/Common.ts @@ -0,0 +1,86 @@ + + +export class Common { + public pvc: CommonPvcEnum; + private 'pvc_version'?: string | undefined; + private 'video_codec'?: CommonVideoCodecEnum | undefined; + private 'audio_codec'?: CommonAudioCodecEnum | undefined; + private 'hls_interval'?: number | undefined; + public constructor(pvc?: any) { + this['pvc'] = pvc; + } + public withPvc(pvc: CommonPvcEnum): Common { + this['pvc'] = pvc; + return this; + } + public withPvcVersion(pvcVersion: string): Common { + this['pvc_version'] = pvcVersion; + return this; + } + public set pvcVersion(pvcVersion: string | undefined) { + this['pvc_version'] = pvcVersion; + } + public get pvcVersion() { + return this['pvc_version']; + } + public withVideoCodec(videoCodec: CommonVideoCodecEnum): Common { + this['video_codec'] = videoCodec; + return this; + } + public set videoCodec(videoCodec: CommonVideoCodecEnum | undefined) { + this['video_codec'] = videoCodec; + } + public get videoCodec() { + return this['video_codec']; + } + public withAudioCodec(audioCodec: CommonAudioCodecEnum): Common { + this['audio_codec'] = audioCodec; + return this; + } + public set audioCodec(audioCodec: CommonAudioCodecEnum | undefined) { + this['audio_codec'] = audioCodec; + } + public get audioCodec() { + return this['audio_codec']; + } + public withHlsInterval(hlsInterval: number): Common { + this['hls_interval'] = hlsInterval; + return this; + } + public set hlsInterval(hlsInterval: number | undefined) { + this['hls_interval'] = hlsInterval; + } + public get hlsInterval() { + return this['hls_interval']; + } +} + +/** + * @export + * @enum {string} + */ +export enum CommonPvcEnum { + E_0 = '0', + E_1 = '1', + E_2 = '2', + UNKNOW = 'UNKNOW' +} +/** + * @export + * @enum {string} + */ +export enum CommonVideoCodecEnum { + H264 = 'H264', + H265 = 'H265', + UNKNOW = 'UNKNOW' +} +/** + * @export + * @enum {string} + */ +export enum CommonAudioCodecEnum { + AAC = 'AAC', + HEAAC1 = 'HEAAC1', + HEAAC2 = 'HEAAC2', + MP3 = 'MP3' +} diff --git a/services/vod/v1/model/ConfirmAssetUploadReq.ts b/services/vod/v1/model/ConfirmAssetUploadReq.ts new file mode 100644 index 000000000..d3a9070e8 --- /dev/null +++ b/services/vod/v1/model/ConfirmAssetUploadReq.ts @@ -0,0 +1,34 @@ + + +export class ConfirmAssetUploadReq { + private 'asset_id': string | undefined; + public status: ConfirmAssetUploadReqStatusEnum; + public constructor(assetId?: any, status?: any) { + this['asset_id'] = assetId; + this['status'] = status; + } + public withAssetId(assetId: string): ConfirmAssetUploadReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withStatus(status: ConfirmAssetUploadReqStatusEnum): ConfirmAssetUploadReq { + this['status'] = status; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ConfirmAssetUploadReqStatusEnum { + CREATED = 'CREATED', + FAILED = 'FAILED', + CANCELLED = 'CANCELLED' +} diff --git a/services/vod/v1/model/ConfirmAssetUploadRequest.ts b/services/vod/v1/model/ConfirmAssetUploadRequest.ts new file mode 100644 index 000000000..a0b37f9aa --- /dev/null +++ b/services/vod/v1/model/ConfirmAssetUploadRequest.ts @@ -0,0 +1,34 @@ +import { ConfirmAssetUploadReq } from './ConfirmAssetUploadReq'; + + +export class ConfirmAssetUploadRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: ConfirmAssetUploadReq; + public constructor() { + } + public withAuthorization(authorization: string): ConfirmAssetUploadRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ConfirmAssetUploadRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: ConfirmAssetUploadReq): ConfirmAssetUploadRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ConfirmAssetUploadResponse.ts b/services/vod/v1/model/ConfirmAssetUploadResponse.ts new file mode 100644 index 000000000..34e8722ee --- /dev/null +++ b/services/vod/v1/model/ConfirmAssetUploadResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ConfirmAssetUploadResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): ConfirmAssetUploadResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ConfirmImageUploadReq.ts b/services/vod/v1/model/ConfirmImageUploadReq.ts new file mode 100644 index 000000000..d54c109ea --- /dev/null +++ b/services/vod/v1/model/ConfirmImageUploadReq.ts @@ -0,0 +1,27 @@ + + +export class ConfirmImageUploadReq { + public id: string; + public status: ConfirmImageUploadReqStatusEnum; + public constructor(id?: any, status?: any) { + this['id'] = id; + this['status'] = status; + } + public withId(id: string): ConfirmImageUploadReq { + this['id'] = id; + return this; + } + public withStatus(status: ConfirmImageUploadReqStatusEnum): ConfirmImageUploadReq { + this['status'] = status; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ConfirmImageUploadReqStatusEnum { + SUCCEED = 'SUCCEED', + FAILED = 'FAILED' +} diff --git a/services/vod/v1/model/ConfirmImageUploadRequest.ts b/services/vod/v1/model/ConfirmImageUploadRequest.ts new file mode 100644 index 000000000..67fae33cc --- /dev/null +++ b/services/vod/v1/model/ConfirmImageUploadRequest.ts @@ -0,0 +1,34 @@ +import { ConfirmImageUploadReq } from './ConfirmImageUploadReq'; + + +export class ConfirmImageUploadRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: ConfirmImageUploadReq; + public constructor() { + } + public withAuthorization(authorization: string): ConfirmImageUploadRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ConfirmImageUploadRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: ConfirmImageUploadReq): ConfirmImageUploadRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ConfirmImageUploadResponse.ts b/services/vod/v1/model/ConfirmImageUploadResponse.ts new file mode 100644 index 000000000..974214449 --- /dev/null +++ b/services/vod/v1/model/ConfirmImageUploadResponse.ts @@ -0,0 +1,24 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ConfirmImageUploadResponse extends SdkResponse { + public id?: string; + private 'image_url'?: string | undefined; + public constructor() { + super(); + } + public withId(id: string): ConfirmImageUploadResponse { + this['id'] = id; + return this; + } + public withImageUrl(imageUrl: string): ConfirmImageUploadResponse { + this['image_url'] = imageUrl; + return this; + } + public set imageUrl(imageUrl: string | undefined) { + this['image_url'] = imageUrl; + } + public get imageUrl() { + return this['image_url']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CoverInfo.ts b/services/vod/v1/model/CoverInfo.ts new file mode 100644 index 000000000..cd36ef8c1 --- /dev/null +++ b/services/vod/v1/model/CoverInfo.ts @@ -0,0 +1,17 @@ + + +export class CoverInfo { + private 'cover_url'?: string | undefined; + public constructor() { + } + public withCoverUrl(coverUrl: string): CoverInfo { + this['cover_url'] = coverUrl; + return this; + } + public set coverUrl(coverUrl: string | undefined) { + this['cover_url'] = coverUrl; + } + public get coverUrl() { + return this['cover_url']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetByFileUploadReq.ts b/services/vod/v1/model/CreateAssetByFileUploadReq.ts new file mode 100644 index 000000000..d1e58d28b --- /dev/null +++ b/services/vod/v1/model/CreateAssetByFileUploadReq.ts @@ -0,0 +1,180 @@ +import { Review } from './Review'; +import { Subtitle } from './Subtitle'; +import { Thumbnail } from './Thumbnail'; + + +export class CreateAssetByFileUploadReq { + public title: string; + public description?: string; + private 'video_name': string | undefined; + private 'video_type': string | undefined; + private 'category_id'?: string | undefined; + private 'video_md5'?: string | undefined; + private 'cover_type'?: CreateAssetByFileUploadReqCoverTypeEnum | undefined; + private 'cover_md5'?: string | undefined; + public subtitles?: Array; + public tags?: string; + private 'auto_publish'?: CreateAssetByFileUploadReqAutoPublishEnum | undefined; + private 'template_group_name'?: string | undefined; + private 'auto_encrypt'?: number | undefined; + private 'auto_preheat'?: string | undefined; + public thumbnail?: Thumbnail; + public review?: Review; + private 'workflow_name'?: string | undefined; + public constructor(title?: any, videoName?: any, videoType?: any) { + this['title'] = title; + this['video_name'] = videoName; + this['video_type'] = videoType; + } + public withTitle(title: string): CreateAssetByFileUploadReq { + this['title'] = title; + return this; + } + public withDescription(description: string): CreateAssetByFileUploadReq { + this['description'] = description; + return this; + } + public withVideoName(videoName: string): CreateAssetByFileUploadReq { + this['video_name'] = videoName; + return this; + } + public set videoName(videoName: string | undefined) { + this['video_name'] = videoName; + } + public get videoName() { + return this['video_name']; + } + public withVideoType(videoType: string): CreateAssetByFileUploadReq { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: string | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withCategoryId(categoryId: string): CreateAssetByFileUploadReq { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: string | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withVideoMd5(videoMd5: string): CreateAssetByFileUploadReq { + this['video_md5'] = videoMd5; + return this; + } + public set videoMd5(videoMd5: string | undefined) { + this['video_md5'] = videoMd5; + } + public get videoMd5() { + return this['video_md5']; + } + public withCoverType(coverType: CreateAssetByFileUploadReqCoverTypeEnum): CreateAssetByFileUploadReq { + this['cover_type'] = coverType; + return this; + } + public set coverType(coverType: CreateAssetByFileUploadReqCoverTypeEnum | undefined) { + this['cover_type'] = coverType; + } + public get coverType() { + return this['cover_type']; + } + public withCoverMd5(coverMd5: string): CreateAssetByFileUploadReq { + this['cover_md5'] = coverMd5; + return this; + } + public set coverMd5(coverMd5: string | undefined) { + this['cover_md5'] = coverMd5; + } + public get coverMd5() { + return this['cover_md5']; + } + public withSubtitles(subtitles: Array): CreateAssetByFileUploadReq { + this['subtitles'] = subtitles; + return this; + } + public withTags(tags: string): CreateAssetByFileUploadReq { + this['tags'] = tags; + return this; + } + public withAutoPublish(autoPublish: CreateAssetByFileUploadReqAutoPublishEnum): CreateAssetByFileUploadReq { + this['auto_publish'] = autoPublish; + return this; + } + public set autoPublish(autoPublish: CreateAssetByFileUploadReqAutoPublishEnum | undefined) { + this['auto_publish'] = autoPublish; + } + public get autoPublish() { + return this['auto_publish']; + } + public withTemplateGroupName(templateGroupName: string): CreateAssetByFileUploadReq { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withAutoEncrypt(autoEncrypt: number): CreateAssetByFileUploadReq { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withAutoPreheat(autoPreheat: string): CreateAssetByFileUploadReq { + this['auto_preheat'] = autoPreheat; + return this; + } + public set autoPreheat(autoPreheat: string | undefined) { + this['auto_preheat'] = autoPreheat; + } + public get autoPreheat() { + return this['auto_preheat']; + } + public withThumbnail(thumbnail: Thumbnail): CreateAssetByFileUploadReq { + this['thumbnail'] = thumbnail; + return this; + } + public withReview(review: Review): CreateAssetByFileUploadReq { + this['review'] = review; + return this; + } + public withWorkflowName(workflowName: string): CreateAssetByFileUploadReq { + this['workflow_name'] = workflowName; + return this; + } + public set workflowName(workflowName: string | undefined) { + this['workflow_name'] = workflowName; + } + public get workflowName() { + return this['workflow_name']; + } +} + +/** + * @export + * @enum {string} + */ +export enum CreateAssetByFileUploadReqCoverTypeEnum { + JPG = 'JPG', + PNG = 'PNG' +} +/** + * @export + * @enum {string} + */ +export enum CreateAssetByFileUploadReqAutoPublishEnum { + NUMBER_0 = 0, + NUMBER_1 = 1 +} diff --git a/services/vod/v1/model/CreateAssetByFileUploadRequest.ts b/services/vod/v1/model/CreateAssetByFileUploadRequest.ts new file mode 100644 index 000000000..a13890d2a --- /dev/null +++ b/services/vod/v1/model/CreateAssetByFileUploadRequest.ts @@ -0,0 +1,34 @@ +import { CreateAssetByFileUploadReq } from './CreateAssetByFileUploadReq'; + + +export class CreateAssetByFileUploadRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: CreateAssetByFileUploadReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateAssetByFileUploadRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateAssetByFileUploadRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: CreateAssetByFileUploadReq): CreateAssetByFileUploadRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetByFileUploadResponse.ts b/services/vod/v1/model/CreateAssetByFileUploadResponse.ts new file mode 100644 index 000000000..07030cebd --- /dev/null +++ b/services/vod/v1/model/CreateAssetByFileUploadResponse.ts @@ -0,0 +1,58 @@ +import { FileAddr } from './FileAddr'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateAssetByFileUploadResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + private 'video_upload_url'?: string | undefined; + private 'cover_upload_url'?: string | undefined; + private 'subtitle_upload_urls'?: Array | undefined; + public target?: FileAddr; + public constructor() { + super(); + } + public withAssetId(assetId: string): CreateAssetByFileUploadResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withVideoUploadUrl(videoUploadUrl: string): CreateAssetByFileUploadResponse { + this['video_upload_url'] = videoUploadUrl; + return this; + } + public set videoUploadUrl(videoUploadUrl: string | undefined) { + this['video_upload_url'] = videoUploadUrl; + } + public get videoUploadUrl() { + return this['video_upload_url']; + } + public withCoverUploadUrl(coverUploadUrl: string): CreateAssetByFileUploadResponse { + this['cover_upload_url'] = coverUploadUrl; + return this; + } + public set coverUploadUrl(coverUploadUrl: string | undefined) { + this['cover_upload_url'] = coverUploadUrl; + } + public get coverUploadUrl() { + return this['cover_upload_url']; + } + public withSubtitleUploadUrls(subtitleUploadUrls: Array): CreateAssetByFileUploadResponse { + this['subtitle_upload_urls'] = subtitleUploadUrls; + return this; + } + public set subtitleUploadUrls(subtitleUploadUrls: Array | undefined) { + this['subtitle_upload_urls'] = subtitleUploadUrls; + } + public get subtitleUploadUrls() { + return this['subtitle_upload_urls']; + } + public withTarget(target: FileAddr): CreateAssetByFileUploadResponse { + this['target'] = target; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetCategoryRequest.ts b/services/vod/v1/model/CreateAssetCategoryRequest.ts new file mode 100644 index 000000000..3965e3e0a --- /dev/null +++ b/services/vod/v1/model/CreateAssetCategoryRequest.ts @@ -0,0 +1,34 @@ +import { CreateCategoryReq } from './CreateCategoryReq'; + + +export class CreateAssetCategoryRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: CreateCategoryReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateAssetCategoryRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateAssetCategoryRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: CreateCategoryReq): CreateAssetCategoryRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetCategoryResponse.ts b/services/vod/v1/model/CreateAssetCategoryResponse.ts new file mode 100644 index 000000000..a6554afc2 --- /dev/null +++ b/services/vod/v1/model/CreateAssetCategoryResponse.ts @@ -0,0 +1,39 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateAssetCategoryResponse extends SdkResponse { + public name?: string; + private 'parent_id'?: number | undefined; + public id?: number; + public level?: number; + public projectId?: string; + public constructor() { + super(); + } + public withName(name: string): CreateAssetCategoryResponse { + this['name'] = name; + return this; + } + public withParentId(parentId: number): CreateAssetCategoryResponse { + this['parent_id'] = parentId; + return this; + } + public set parentId(parentId: number | undefined) { + this['parent_id'] = parentId; + } + public get parentId() { + return this['parent_id']; + } + public withId(id: number): CreateAssetCategoryResponse { + this['id'] = id; + return this; + } + public withLevel(level: number): CreateAssetCategoryResponse { + this['level'] = level; + return this; + } + public withProjectId(projectId: string): CreateAssetCategoryResponse { + this['projectId'] = projectId; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetProcessTaskRequest.ts b/services/vod/v1/model/CreateAssetProcessTaskRequest.ts new file mode 100644 index 000000000..329a95263 --- /dev/null +++ b/services/vod/v1/model/CreateAssetProcessTaskRequest.ts @@ -0,0 +1,34 @@ +import { AssetProcessReq } from './AssetProcessReq'; + + +export class CreateAssetProcessTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: AssetProcessReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateAssetProcessTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateAssetProcessTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: AssetProcessReq): CreateAssetProcessTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetProcessTaskResponse.ts b/services/vod/v1/model/CreateAssetProcessTaskResponse.ts new file mode 100644 index 000000000..759b76b5b --- /dev/null +++ b/services/vod/v1/model/CreateAssetProcessTaskResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateAssetProcessTaskResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): CreateAssetProcessTaskResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetReviewTaskRequest.ts b/services/vod/v1/model/CreateAssetReviewTaskRequest.ts new file mode 100644 index 000000000..c4a490509 --- /dev/null +++ b/services/vod/v1/model/CreateAssetReviewTaskRequest.ts @@ -0,0 +1,34 @@ +import { AssetReviewReq } from './AssetReviewReq'; + + +export class CreateAssetReviewTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: AssetReviewReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateAssetReviewTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateAssetReviewTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: AssetReviewReq): CreateAssetReviewTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateAssetReviewTaskResponse.ts b/services/vod/v1/model/CreateAssetReviewTaskResponse.ts new file mode 100644 index 000000000..bfa6be058 --- /dev/null +++ b/services/vod/v1/model/CreateAssetReviewTaskResponse.ts @@ -0,0 +1,25 @@ +import { Review } from './Review'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateAssetReviewTaskResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + public review?: Review; + public constructor() { + super(); + } + public withAssetId(assetId: string): CreateAssetReviewTaskResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withReview(review: Review): CreateAssetReviewTaskResponse { + this['review'] = review; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateCategoryReq.ts b/services/vod/v1/model/CreateCategoryReq.ts new file mode 100644 index 000000000..6767b816c --- /dev/null +++ b/services/vod/v1/model/CreateCategoryReq.ts @@ -0,0 +1,23 @@ + + +export class CreateCategoryReq { + public name: string; + private 'parent_id'?: number | undefined; + public constructor(name?: any) { + this['name'] = name; + } + public withName(name: string): CreateCategoryReq { + this['name'] = name; + return this; + } + public withParentId(parentId: number): CreateCategoryReq { + this['parent_id'] = parentId; + return this; + } + public set parentId(parentId: number | undefined) { + this['parent_id'] = parentId; + } + public get parentId() { + return this['parent_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateExtractAudioTaskRequest.ts b/services/vod/v1/model/CreateExtractAudioTaskRequest.ts new file mode 100644 index 000000000..a9ced97ce --- /dev/null +++ b/services/vod/v1/model/CreateExtractAudioTaskRequest.ts @@ -0,0 +1,34 @@ +import { ExtractAudioTaskReq } from './ExtractAudioTaskReq'; + + +export class CreateExtractAudioTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: ExtractAudioTaskReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateExtractAudioTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateExtractAudioTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: ExtractAudioTaskReq): CreateExtractAudioTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateExtractAudioTaskResponse.ts b/services/vod/v1/model/CreateExtractAudioTaskResponse.ts new file mode 100644 index 000000000..e66a62a01 --- /dev/null +++ b/services/vod/v1/model/CreateExtractAudioTaskResponse.ts @@ -0,0 +1,30 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateExtractAudioTaskResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + private 'audio_asset_id'?: string | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): CreateExtractAudioTaskResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withAudioAssetId(audioAssetId: string): CreateExtractAudioTaskResponse { + this['audio_asset_id'] = audioAssetId; + return this; + } + public set audioAssetId(audioAssetId: string | undefined) { + this['audio_asset_id'] = audioAssetId; + } + public get audioAssetId() { + return this['audio_asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreatePreheatingAssetReq.ts b/services/vod/v1/model/CreatePreheatingAssetReq.ts new file mode 100644 index 000000000..834188059 --- /dev/null +++ b/services/vod/v1/model/CreatePreheatingAssetReq.ts @@ -0,0 +1,22 @@ + + +export class CreatePreheatingAssetReq { + private 'asset_id'?: string | undefined; + public urls?: Array; + public constructor() { + } + public withAssetId(assetId: string): CreatePreheatingAssetReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withUrls(urls: Array): CreatePreheatingAssetReq { + this['urls'] = urls; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreatePreheatingAssetRequest.ts b/services/vod/v1/model/CreatePreheatingAssetRequest.ts new file mode 100644 index 000000000..54bace17d --- /dev/null +++ b/services/vod/v1/model/CreatePreheatingAssetRequest.ts @@ -0,0 +1,34 @@ +import { CreatePreheatingAssetReq } from './CreatePreheatingAssetReq'; + + +export class CreatePreheatingAssetRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: CreatePreheatingAssetReq; + public constructor() { + } + public withAuthorization(authorization: string): CreatePreheatingAssetRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreatePreheatingAssetRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: CreatePreheatingAssetReq): CreatePreheatingAssetRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreatePreheatingAssetResponse.ts b/services/vod/v1/model/CreatePreheatingAssetResponse.ts new file mode 100644 index 000000000..5bd9bc40c --- /dev/null +++ b/services/vod/v1/model/CreatePreheatingAssetResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreatePreheatingAssetResponse extends SdkResponse { + private 'task_id'?: string | undefined; + public constructor() { + super(); + } + public withTaskId(taskId: string): CreatePreheatingAssetResponse { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateTakeOverTaskReq.ts b/services/vod/v1/model/CreateTakeOverTaskReq.ts new file mode 100644 index 000000000..2b92a7412 --- /dev/null +++ b/services/vod/v1/model/CreateTakeOverTaskReq.ts @@ -0,0 +1,84 @@ + + +export class CreateTakeOverTaskReq { + public bucket: string; + private 'object': string | undefined; + public suffix?: Array; + private 'template_group_name'?: string | undefined; + private 'workflow_name'?: string | undefined; + private 'host_type'?: number | undefined; + private 'output_bucket'?: string | undefined; + private 'output_path'?: string | undefined; + public constructor(bucket?: any, modelObject?: any) { + this['bucket'] = bucket; + this['object'] = modelObject; + } + public withBucket(bucket: string): CreateTakeOverTaskReq { + this['bucket'] = bucket; + return this; + } + public withModelObject(modelObject: string): CreateTakeOverTaskReq { + this['object'] = modelObject; + return this; + } + public set modelObject(modelObject: string | undefined) { + this['object'] = modelObject; + } + public get modelObject() { + return this['object']; + } + public withSuffix(suffix: Array): CreateTakeOverTaskReq { + this['suffix'] = suffix; + return this; + } + public withTemplateGroupName(templateGroupName: string): CreateTakeOverTaskReq { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withWorkflowName(workflowName: string): CreateTakeOverTaskReq { + this['workflow_name'] = workflowName; + return this; + } + public set workflowName(workflowName: string | undefined) { + this['workflow_name'] = workflowName; + } + public get workflowName() { + return this['workflow_name']; + } + public withHostType(hostType: number): CreateTakeOverTaskReq { + this['host_type'] = hostType; + return this; + } + public set hostType(hostType: number | undefined) { + this['host_type'] = hostType; + } + public get hostType() { + return this['host_type']; + } + public withOutputBucket(outputBucket: string): CreateTakeOverTaskReq { + this['output_bucket'] = outputBucket; + return this; + } + public set outputBucket(outputBucket: string | undefined) { + this['output_bucket'] = outputBucket; + } + public get outputBucket() { + return this['output_bucket']; + } + public withOutputPath(outputPath: string): CreateTakeOverTaskReq { + this['output_path'] = outputPath; + return this; + } + public set outputPath(outputPath: string | undefined) { + this['output_path'] = outputPath; + } + public get outputPath() { + return this['output_path']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateTakeOverTaskRequest.ts b/services/vod/v1/model/CreateTakeOverTaskRequest.ts new file mode 100644 index 000000000..9695cb9cf --- /dev/null +++ b/services/vod/v1/model/CreateTakeOverTaskRequest.ts @@ -0,0 +1,34 @@ +import { CreateTakeOverTaskReq } from './CreateTakeOverTaskReq'; + + +export class CreateTakeOverTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: CreateTakeOverTaskReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateTakeOverTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateTakeOverTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: CreateTakeOverTaskReq): CreateTakeOverTaskRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateTakeOverTaskResponse.ts b/services/vod/v1/model/CreateTakeOverTaskResponse.ts new file mode 100644 index 000000000..b8333a7a7 --- /dev/null +++ b/services/vod/v1/model/CreateTakeOverTaskResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateTakeOverTaskResponse extends SdkResponse { + private 'task_id'?: string | undefined; + public constructor() { + super(); + } + public withTaskId(taskId: string): CreateTakeOverTaskResponse { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateTemplateGroupRequest.ts b/services/vod/v1/model/CreateTemplateGroupRequest.ts new file mode 100644 index 000000000..a52a767fa --- /dev/null +++ b/services/vod/v1/model/CreateTemplateGroupRequest.ts @@ -0,0 +1,34 @@ +import { TransTemplateGroup } from './TransTemplateGroup'; + + +export class CreateTemplateGroupRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: TransTemplateGroup; + public constructor() { + } + public withAuthorization(authorization: string): CreateTemplateGroupRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateTemplateGroupRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: TransTemplateGroup): CreateTemplateGroupRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateTemplateGroupResponse.ts b/services/vod/v1/model/CreateTemplateGroupResponse.ts new file mode 100644 index 000000000..84e0e549c --- /dev/null +++ b/services/vod/v1/model/CreateTemplateGroupResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateTemplateGroupResponse extends SdkResponse { + private 'group_id'?: string | undefined; + public constructor() { + super(); + } + public withGroupId(groupId: string): CreateTemplateGroupResponse { + this['group_id'] = groupId; + return this; + } + public set groupId(groupId: string | undefined) { + this['group_id'] = groupId; + } + public get groupId() { + return this['group_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateWatermarkTemplateReq.ts b/services/vod/v1/model/CreateWatermarkTemplateReq.ts new file mode 100644 index 000000000..6e6439442 --- /dev/null +++ b/services/vod/v1/model/CreateWatermarkTemplateReq.ts @@ -0,0 +1,120 @@ + + +export class CreateWatermarkTemplateReq { + public name: string; + private 'watermark_type'?: CreateWatermarkTemplateReqWatermarkTypeEnum | undefined; + private 'image_process'?: CreateWatermarkTemplateReqImageProcessEnum | undefined; + public dx?: string; + public dy?: string; + public position?: CreateWatermarkTemplateReqPositionEnum; + public width?: string; + public height?: string; + private 'timeline_start'?: string | undefined; + private 'timeline_duration'?: string | undefined; + public type: string; + public md5?: string; + public constructor(name?: any, type?: any) { + this['name'] = name; + this['type'] = type; + } + public withName(name: string): CreateWatermarkTemplateReq { + this['name'] = name; + return this; + } + public withWatermarkType(watermarkType: CreateWatermarkTemplateReqWatermarkTypeEnum): CreateWatermarkTemplateReq { + this['watermark_type'] = watermarkType; + return this; + } + public set watermarkType(watermarkType: CreateWatermarkTemplateReqWatermarkTypeEnum | undefined) { + this['watermark_type'] = watermarkType; + } + public get watermarkType() { + return this['watermark_type']; + } + public withImageProcess(imageProcess: CreateWatermarkTemplateReqImageProcessEnum): CreateWatermarkTemplateReq { + this['image_process'] = imageProcess; + return this; + } + public set imageProcess(imageProcess: CreateWatermarkTemplateReqImageProcessEnum | undefined) { + this['image_process'] = imageProcess; + } + public get imageProcess() { + return this['image_process']; + } + public withDx(dx: string): CreateWatermarkTemplateReq { + this['dx'] = dx; + return this; + } + public withDy(dy: string): CreateWatermarkTemplateReq { + this['dy'] = dy; + return this; + } + public withPosition(position: CreateWatermarkTemplateReqPositionEnum): CreateWatermarkTemplateReq { + this['position'] = position; + return this; + } + public withWidth(width: string): CreateWatermarkTemplateReq { + this['width'] = width; + return this; + } + public withHeight(height: string): CreateWatermarkTemplateReq { + this['height'] = height; + return this; + } + public withTimelineStart(timelineStart: string): CreateWatermarkTemplateReq { + this['timeline_start'] = timelineStart; + return this; + } + public set timelineStart(timelineStart: string | undefined) { + this['timeline_start'] = timelineStart; + } + public get timelineStart() { + return this['timeline_start']; + } + public withTimelineDuration(timelineDuration: string): CreateWatermarkTemplateReq { + this['timeline_duration'] = timelineDuration; + return this; + } + public set timelineDuration(timelineDuration: string | undefined) { + this['timeline_duration'] = timelineDuration; + } + public get timelineDuration() { + return this['timeline_duration']; + } + public withType(type: string): CreateWatermarkTemplateReq { + this['type'] = type; + return this; + } + public withMd5(md5: string): CreateWatermarkTemplateReq { + this['md5'] = md5; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum CreateWatermarkTemplateReqWatermarkTypeEnum { + IMAGE = 'IMAGE', + TEXT = 'TEXT' +} +/** + * @export + * @enum {string} + */ +export enum CreateWatermarkTemplateReqImageProcessEnum { + ORIGINAL = 'ORIGINAL', + TRANSPARENT = 'TRANSPARENT', + GRAYED = 'GRAYED' +} +/** + * @export + * @enum {string} + */ +export enum CreateWatermarkTemplateReqPositionEnum { + TOPRIGHT = 'TOPRIGHT', + TOPLEFT = 'TOPLEFT', + BOTTOMRIGHT = 'BOTTOMRIGHT', + BOTTOMLEFT = 'BOTTOMLEFT' +} diff --git a/services/vod/v1/model/CreateWatermarkTemplateRequest.ts b/services/vod/v1/model/CreateWatermarkTemplateRequest.ts new file mode 100644 index 000000000..c74c8ba2e --- /dev/null +++ b/services/vod/v1/model/CreateWatermarkTemplateRequest.ts @@ -0,0 +1,34 @@ +import { CreateWatermarkTemplateReq } from './CreateWatermarkTemplateReq'; + + +export class CreateWatermarkTemplateRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: CreateWatermarkTemplateReq; + public constructor() { + } + public withAuthorization(authorization: string): CreateWatermarkTemplateRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): CreateWatermarkTemplateRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: CreateWatermarkTemplateReq): CreateWatermarkTemplateRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/CreateWatermarkTemplateResponse.ts b/services/vod/v1/model/CreateWatermarkTemplateResponse.ts new file mode 100644 index 000000000..32ad4d365 --- /dev/null +++ b/services/vod/v1/model/CreateWatermarkTemplateResponse.ts @@ -0,0 +1,24 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateWatermarkTemplateResponse extends SdkResponse { + public id?: string; + private 'upload_url'?: string | undefined; + public constructor() { + super(); + } + public withId(id: string): CreateWatermarkTemplateResponse { + this['id'] = id; + return this; + } + public withUploadUrl(uploadUrl: string): CreateWatermarkTemplateResponse { + this['upload_url'] = uploadUrl; + return this; + } + public set uploadUrl(uploadUrl: string | undefined) { + this['upload_url'] = uploadUrl; + } + public get uploadUrl() { + return this['upload_url']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteAssetCategoryRequest.ts b/services/vod/v1/model/DeleteAssetCategoryRequest.ts new file mode 100644 index 000000000..5e9716bac --- /dev/null +++ b/services/vod/v1/model/DeleteAssetCategoryRequest.ts @@ -0,0 +1,34 @@ + + +export class DeleteAssetCategoryRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public id: number; + public constructor(id?: any) { + this['id'] = id; + } + public withAuthorization(authorization: string): DeleteAssetCategoryRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): DeleteAssetCategoryRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withId(id: number): DeleteAssetCategoryRequest { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteAssetCategoryResponse.ts b/services/vod/v1/model/DeleteAssetCategoryResponse.ts new file mode 100644 index 000000000..ff4e5753e --- /dev/null +++ b/services/vod/v1/model/DeleteAssetCategoryResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteAssetCategoryResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteAssetsRequest.ts b/services/vod/v1/model/DeleteAssetsRequest.ts new file mode 100644 index 000000000..71271cdc4 --- /dev/null +++ b/services/vod/v1/model/DeleteAssetsRequest.ts @@ -0,0 +1,40 @@ + + +export class DeleteAssetsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id': Array | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAuthorization(authorization: string): DeleteAssetsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): DeleteAssetsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: Array): DeleteAssetsRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: Array | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteAssetsResponse.ts b/services/vod/v1/model/DeleteAssetsResponse.ts new file mode 100644 index 000000000..86359abab --- /dev/null +++ b/services/vod/v1/model/DeleteAssetsResponse.ts @@ -0,0 +1,20 @@ +import { DeleteResult } from './DeleteResult'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteAssetsResponse extends SdkResponse { + private 'delete_result_array'?: Array | undefined; + public constructor() { + super(); + } + public withDeleteResultArray(deleteResultArray: Array): DeleteAssetsResponse { + this['delete_result_array'] = deleteResultArray; + return this; + } + public set deleteResultArray(deleteResultArray: Array | undefined) { + this['delete_result_array'] = deleteResultArray; + } + public get deleteResultArray() { + return this['delete_result_array']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteResult.ts b/services/vod/v1/model/DeleteResult.ts new file mode 100644 index 000000000..01a5214d5 --- /dev/null +++ b/services/vod/v1/model/DeleteResult.ts @@ -0,0 +1,32 @@ + + +export class DeleteResult { + private 'asset_id'?: string | undefined; + public status?: DeleteResultStatusEnum; + public constructor() { + } + public withAssetId(assetId: string): DeleteResult { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withStatus(status: DeleteResultStatusEnum): DeleteResult { + this['status'] = status; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum DeleteResultStatusEnum { + FAILED = 'FAILED', + DELETED = 'DELETED', + UNKNOW = 'UNKNOW' +} diff --git a/services/vod/v1/model/DeleteTemplateGroupRequest.ts b/services/vod/v1/model/DeleteTemplateGroupRequest.ts new file mode 100644 index 000000000..0208408d5 --- /dev/null +++ b/services/vod/v1/model/DeleteTemplateGroupRequest.ts @@ -0,0 +1,40 @@ + + +export class DeleteTemplateGroupRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'group_id': string | undefined; + public constructor(groupId?: any) { + this['group_id'] = groupId; + } + public withAuthorization(authorization: string): DeleteTemplateGroupRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): DeleteTemplateGroupRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withGroupId(groupId: string): DeleteTemplateGroupRequest { + this['group_id'] = groupId; + return this; + } + public set groupId(groupId: string | undefined) { + this['group_id'] = groupId; + } + public get groupId() { + return this['group_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteTemplateGroupResponse.ts b/services/vod/v1/model/DeleteTemplateGroupResponse.ts new file mode 100644 index 000000000..9df1a4055 --- /dev/null +++ b/services/vod/v1/model/DeleteTemplateGroupResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteTemplateGroupResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteWatermarkTemplateRequest.ts b/services/vod/v1/model/DeleteWatermarkTemplateRequest.ts new file mode 100644 index 000000000..8efa5feea --- /dev/null +++ b/services/vod/v1/model/DeleteWatermarkTemplateRequest.ts @@ -0,0 +1,34 @@ + + +export class DeleteWatermarkTemplateRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public id: string; + public constructor(id?: any) { + this['id'] = id; + } + public withAuthorization(authorization: string): DeleteWatermarkTemplateRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): DeleteWatermarkTemplateRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withId(id: string): DeleteWatermarkTemplateRequest { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/DeleteWatermarkTemplateResponse.ts b/services/vod/v1/model/DeleteWatermarkTemplateResponse.ts new file mode 100644 index 000000000..3ae3f575c --- /dev/null +++ b/services/vod/v1/model/DeleteWatermarkTemplateResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteWatermarkTemplateResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ExtractAudioTaskReq.ts b/services/vod/v1/model/ExtractAudioTaskReq.ts new file mode 100644 index 000000000..1d835b135 --- /dev/null +++ b/services/vod/v1/model/ExtractAudioTaskReq.ts @@ -0,0 +1,24 @@ +import { Parameter } from './Parameter'; + + +export class ExtractAudioTaskReq { + private 'asset_id': string | undefined; + public parameter?: Parameter; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: string): ExtractAudioTaskReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withParameter(parameter: Parameter): ExtractAudioTaskReq { + this['parameter'] = parameter; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/FileAddr.ts b/services/vod/v1/model/FileAddr.ts new file mode 100644 index 000000000..38bb8b738 --- /dev/null +++ b/services/vod/v1/model/FileAddr.ts @@ -0,0 +1,30 @@ + + +export class FileAddr { + public bucket: string; + public location: string; + private 'object': string | undefined; + public constructor(bucket?: any, location?: any, modelObject?: any) { + this['bucket'] = bucket; + this['location'] = location; + this['object'] = modelObject; + } + public withBucket(bucket: string): FileAddr { + this['bucket'] = bucket; + return this; + } + public withLocation(location: string): FileAddr { + this['location'] = location; + return this; + } + public withModelObject(modelObject: string): FileAddr { + this['object'] = modelObject; + return this; + } + public set modelObject(modelObject: string | undefined) { + this['object'] = modelObject; + } + public get modelObject() { + return this['object']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListAssetCategoryRequest.ts b/services/vod/v1/model/ListAssetCategoryRequest.ts new file mode 100644 index 000000000..461f74afe --- /dev/null +++ b/services/vod/v1/model/ListAssetCategoryRequest.ts @@ -0,0 +1,34 @@ + + +export class ListAssetCategoryRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public id: number; + public constructor(id?: any) { + this['id'] = id; + } + public withAuthorization(authorization: string): ListAssetCategoryRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListAssetCategoryRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withId(id: number): ListAssetCategoryRequest { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListAssetCategoryResponse.ts b/services/vod/v1/model/ListAssetCategoryResponse.ts new file mode 100644 index 000000000..c8eee1c8d --- /dev/null +++ b/services/vod/v1/model/ListAssetCategoryResponse.ts @@ -0,0 +1,14 @@ +import { QueryCategoryRsp } from './QueryCategoryRsp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAssetCategoryResponse extends SdkResponse { + public body?: Array; + public constructor() { + super(); + } + public withBody(body: Array): ListAssetCategoryResponse { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListAssetListRequest.ts b/services/vod/v1/model/ListAssetListRequest.ts new file mode 100644 index 000000000..d4527bf95 --- /dev/null +++ b/services/vod/v1/model/ListAssetListRequest.ts @@ -0,0 +1,151 @@ + + +export class ListAssetListRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id'?: Array | undefined; + public status?: Array; + private 'start_time'?: string | undefined; + private 'end_time'?: string | undefined; + private 'category_id'?: number | undefined; + public tags?: string; + private 'query_string'?: string | undefined; + private 'media_type'?: Array | undefined; + public page?: number; + public size?: number; + public order?: ListAssetListRequestOrderEnum; + public constructor() { + } + public withAuthorization(authorization: string): ListAssetListRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListAssetListRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: Array): ListAssetListRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: Array | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withStatus(status: Array): ListAssetListRequest { + this['status'] = status; + return this; + } + public withStartTime(startTime: string): ListAssetListRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withEndTime(endTime: string): ListAssetListRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime() { + return this['end_time']; + } + public withCategoryId(categoryId: number): ListAssetListRequest { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): ListAssetListRequest { + this['tags'] = tags; + return this; + } + public withQueryString(queryString: string): ListAssetListRequest { + this['query_string'] = queryString; + return this; + } + public set queryString(queryString: string | undefined) { + this['query_string'] = queryString; + } + public get queryString() { + return this['query_string']; + } + public withMediaType(mediaType: Array): ListAssetListRequest { + this['media_type'] = mediaType; + return this; + } + public set mediaType(mediaType: Array | undefined) { + this['media_type'] = mediaType; + } + public get mediaType() { + return this['media_type']; + } + public withPage(page: number): ListAssetListRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ListAssetListRequest { + this['size'] = size; + return this; + } + public withOrder(order: ListAssetListRequestOrderEnum): ListAssetListRequest { + this['order'] = order; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ListAssetListRequestStatusEnum { + CREATING = 'CREATING', + FAILED = 'FAILED', + CREATED = 'CREATED', + PUBLISHED = 'PUBLISHED', + WAITING_TRANSCODE = 'WAITING_TRANSCODE', + TRANSCODING = 'TRANSCODING', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + TRANSCODE_FAILED = 'TRANSCODE_FAILED', + THUMBNAILING = 'THUMBNAILING', + THUMBNAIL_SUCCEED = 'THUMBNAIL_SUCCEED', + THUMBNAIL_FAILED = 'THUMBNAIL_FAILED', + UN_REVIEW = 'UN_REVIEW', + REVIEWING = 'REVIEWING', + REVIEW_SUSPICIOUS = 'REVIEW_SUSPICIOUS', + REVIEW_PASSED = 'REVIEW_PASSED', + REVIEW_FAILED = 'REVIEW_FAILED', + REVIEW_BLOCKED = 'REVIEW_BLOCKED' +} +/** + * @export + * @enum {string} + */ +export enum ListAssetListRequestOrderEnum { + ASC = 'asc', + DESC = 'desc' +} diff --git a/services/vod/v1/model/ListAssetListResponse.ts b/services/vod/v1/model/ListAssetListResponse.ts new file mode 100644 index 000000000..6da3c0e19 --- /dev/null +++ b/services/vod/v1/model/ListAssetListResponse.ts @@ -0,0 +1,19 @@ +import { AssetSummary } from './AssetSummary'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListAssetListResponse extends SdkResponse { + public total?: number; + public assets?: Array; + public constructor() { + super(); + } + public withTotal(total: number): ListAssetListResponse { + this['total'] = total; + return this; + } + public withAssets(assets: Array): ListAssetListResponse { + this['assets'] = assets; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTakeOverTaskRequest.ts b/services/vod/v1/model/ListTakeOverTaskRequest.ts new file mode 100644 index 000000000..e008fb85f --- /dev/null +++ b/services/vod/v1/model/ListTakeOverTaskRequest.ts @@ -0,0 +1,54 @@ + + +export class ListTakeOverTaskRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public status?: string; + private 'task_id'?: string | undefined; + public page?: number; + public size?: number; + public constructor() { + } + public withAuthorization(authorization: string): ListTakeOverTaskRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListTakeOverTaskRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withStatus(status: string): ListTakeOverTaskRequest { + this['status'] = status; + return this; + } + public withTaskId(taskId: string): ListTakeOverTaskRequest { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } + public withPage(page: number): ListTakeOverTaskRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ListTakeOverTaskRequest { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTakeOverTaskResponse.ts b/services/vod/v1/model/ListTakeOverTaskResponse.ts new file mode 100644 index 000000000..1b1bcf363 --- /dev/null +++ b/services/vod/v1/model/ListTakeOverTaskResponse.ts @@ -0,0 +1,19 @@ +import { TakeOverTask } from './TakeOverTask'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListTakeOverTaskResponse extends SdkResponse { + public tasks?: Array; + public total?: number; + public constructor() { + super(); + } + public withTasks(tasks: Array): ListTakeOverTaskResponse { + this['tasks'] = tasks; + return this; + } + public withTotal(total: number): ListTakeOverTaskResponse { + this['total'] = total; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTemplateGroupRequest.ts b/services/vod/v1/model/ListTemplateGroupRequest.ts new file mode 100644 index 000000000..20f0df065 --- /dev/null +++ b/services/vod/v1/model/ListTemplateGroupRequest.ts @@ -0,0 +1,54 @@ + + +export class ListTemplateGroupRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'group_id'?: string | undefined; + public status?: string; + public page?: number; + public size?: number; + public constructor() { + } + public withAuthorization(authorization: string): ListTemplateGroupRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListTemplateGroupRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withGroupId(groupId: string): ListTemplateGroupRequest { + this['group_id'] = groupId; + return this; + } + public set groupId(groupId: string | undefined) { + this['group_id'] = groupId; + } + public get groupId() { + return this['group_id']; + } + public withStatus(status: string): ListTemplateGroupRequest { + this['status'] = status; + return this; + } + public withPage(page: number): ListTemplateGroupRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ListTemplateGroupRequest { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTemplateGroupResponse.ts b/services/vod/v1/model/ListTemplateGroupResponse.ts new file mode 100644 index 000000000..a163cbf89 --- /dev/null +++ b/services/vod/v1/model/ListTemplateGroupResponse.ts @@ -0,0 +1,47 @@ +import { TemplateGroup } from './TemplateGroup'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListTemplateGroupResponse extends SdkResponse { + private 'template_group_list'?: Array | undefined; + public total?: number; + private 'error_code'?: string | undefined; + private 'error_msg'?: string | undefined; + public constructor() { + super(); + } + public withTemplateGroupList(templateGroupList: Array): ListTemplateGroupResponse { + this['template_group_list'] = templateGroupList; + return this; + } + public set templateGroupList(templateGroupList: Array | undefined) { + this['template_group_list'] = templateGroupList; + } + public get templateGroupList() { + return this['template_group_list']; + } + public withTotal(total: number): ListTemplateGroupResponse { + this['total'] = total; + return this; + } + public withErrorCode(errorCode: string): ListTemplateGroupResponse { + this['error_code'] = errorCode; + return this; + } + public set errorCode(errorCode: string | undefined) { + this['error_code'] = errorCode; + } + public get errorCode() { + return this['error_code']; + } + public withErrorMsg(errorMsg: string): ListTemplateGroupResponse { + this['error_msg'] = errorMsg; + return this; + } + public set errorMsg(errorMsg: string | undefined) { + this['error_msg'] = errorMsg; + } + public get errorMsg() { + return this['error_msg']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTopStatisticsRequest.ts b/services/vod/v1/model/ListTopStatisticsRequest.ts new file mode 100644 index 000000000..32fbd6136 --- /dev/null +++ b/services/vod/v1/model/ListTopStatisticsRequest.ts @@ -0,0 +1,40 @@ + + +export class ListTopStatisticsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public domain: string; + public date: string; + public constructor(domain?: any, date?: any) { + this['domain'] = domain; + this['date'] = date; + } + public withAuthorization(authorization: string): ListTopStatisticsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListTopStatisticsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withDomain(domain: string): ListTopStatisticsRequest { + this['domain'] = domain; + return this; + } + public withDate(date: string): ListTopStatisticsRequest { + this['date'] = date; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListTopStatisticsResponse.ts b/services/vod/v1/model/ListTopStatisticsResponse.ts new file mode 100644 index 000000000..f2611fd97 --- /dev/null +++ b/services/vod/v1/model/ListTopStatisticsResponse.ts @@ -0,0 +1,20 @@ +import { TopUrl } from './TopUrl'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListTopStatisticsResponse extends SdkResponse { + private 'top_urls'?: Array | undefined; + public constructor() { + super(); + } + public withTopUrls(topUrls: Array): ListTopStatisticsResponse { + this['top_urls'] = topUrls; + return this; + } + public set topUrls(topUrls: Array | undefined) { + this['top_urls'] = topUrls; + } + public get topUrls() { + return this['top_urls']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListWatermarkTemplateRequest.ts b/services/vod/v1/model/ListWatermarkTemplateRequest.ts new file mode 100644 index 000000000..77c02712d --- /dev/null +++ b/services/vod/v1/model/ListWatermarkTemplateRequest.ts @@ -0,0 +1,43 @@ + + +export class ListWatermarkTemplateRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public id?: Array; + public page?: number; + public size?: number; + public constructor() { + } + public withAuthorization(authorization: string): ListWatermarkTemplateRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ListWatermarkTemplateRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withId(id: Array): ListWatermarkTemplateRequest { + this['id'] = id; + return this; + } + public withPage(page: number): ListWatermarkTemplateRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ListWatermarkTemplateRequest { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ListWatermarkTemplateResponse.ts b/services/vod/v1/model/ListWatermarkTemplateResponse.ts new file mode 100644 index 000000000..f3eb74960 --- /dev/null +++ b/services/vod/v1/model/ListWatermarkTemplateResponse.ts @@ -0,0 +1,19 @@ +import { WatermarkTemplate } from './WatermarkTemplate'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListWatermarkTemplateResponse extends SdkResponse { + public templates?: Array; + public total?: number; + public constructor() { + super(); + } + public withTemplates(templates: Array): ListWatermarkTemplateResponse { + this['templates'] = templates; + return this; + } + public withTotal(total: number): ListWatermarkTemplateResponse { + this['total'] = total; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/MetaData.ts b/services/vod/v1/model/MetaData.ts new file mode 100644 index 000000000..d38eaab42 --- /dev/null +++ b/services/vod/v1/model/MetaData.ts @@ -0,0 +1,102 @@ + + +export class MetaData { + public codec?: MetaDataCodecEnum; + public duration?: number; + private 'video_size'?: number | undefined; + public width?: number; + public hight?: number; + private 'bit_rate'?: number | undefined; + private 'frame_rate'?: number | undefined; + public quality?: string; + private 'audio_channels'?: number | undefined; + public constructor() { + } + public withCodec(codec: MetaDataCodecEnum): MetaData { + this['codec'] = codec; + return this; + } + public withDuration(duration: number): MetaData { + this['duration'] = duration; + return this; + } + public withVideoSize(videoSize: number): MetaData { + this['video_size'] = videoSize; + return this; + } + public set videoSize(videoSize: number | undefined) { + this['video_size'] = videoSize; + } + public get videoSize() { + return this['video_size']; + } + public withWidth(width: number): MetaData { + this['width'] = width; + return this; + } + public withHight(hight: number): MetaData { + this['hight'] = hight; + return this; + } + public withBitRate(bitRate: number): MetaData { + this['bit_rate'] = bitRate; + return this; + } + public set bitRate(bitRate: number | undefined) { + this['bit_rate'] = bitRate; + } + public get bitRate() { + return this['bit_rate']; + } + public withFrameRate(frameRate: number): MetaData { + this['frame_rate'] = frameRate; + return this; + } + public set frameRate(frameRate: number | undefined) { + this['frame_rate'] = frameRate; + } + public get frameRate() { + return this['frame_rate']; + } + public withQuality(quality: string): MetaData { + this['quality'] = quality; + return this; + } + public withAudioChannels(audioChannels: number): MetaData { + this['audio_channels'] = audioChannels; + return this; + } + public set audioChannels(audioChannels: number | undefined) { + this['audio_channels'] = audioChannels; + } + public get audioChannels() { + return this['audio_channels']; + } +} + +/** + * @export + * @enum {string} + */ +export enum MetaDataCodecEnum { + MPEG_2 = 'MPEG-2', + MPEG_4 = 'MPEG-4', + H_264 = 'H.264', + H_265 = 'H.265', + WMV = 'WMV', + VORBIS = 'Vorbis', + AAC = 'AAC', + EAC_3 = 'EAC-3', + AC_3 = 'AC-3', + AMR = 'AMR', + APE = 'APE', + FLAC = 'FLAC', + MP3 = 'MP3', + MP2 = 'MP2', + WMA = 'WMA', + PCM = 'PCM', + ADPCM = 'ADPCM', + WAVPACK = 'WavPack', + HEAAC = 'HEAAC', + UNKNOWN = 'UNKNOWN' +} diff --git a/services/vod/v1/model/ModifyTransTemplateGroup.ts b/services/vod/v1/model/ModifyTransTemplateGroup.ts new file mode 100644 index 000000000..96c2df5dd --- /dev/null +++ b/services/vod/v1/model/ModifyTransTemplateGroup.ts @@ -0,0 +1,83 @@ +import { Common } from './Common'; +import { QualityInfo } from './QualityInfo'; + + +export class ModifyTransTemplateGroup { + private 'group_id': string | undefined; + public name: string; + public status?: ModifyTransTemplateGroupStatusEnum; + private 'auto_encrypt'?: number | undefined; + private 'quality_info_list'?: Array | undefined; + private 'watermark_template_ids'?: Array | undefined; + public description?: string; + public common?: Common; + public constructor(groupId?: any, name?: any) { + this['group_id'] = groupId; + this['name'] = name; + } + public withGroupId(groupId: string): ModifyTransTemplateGroup { + this['group_id'] = groupId; + return this; + } + public set groupId(groupId: string | undefined) { + this['group_id'] = groupId; + } + public get groupId() { + return this['group_id']; + } + public withName(name: string): ModifyTransTemplateGroup { + this['name'] = name; + return this; + } + public withStatus(status: ModifyTransTemplateGroupStatusEnum): ModifyTransTemplateGroup { + this['status'] = status; + return this; + } + public withAutoEncrypt(autoEncrypt: number): ModifyTransTemplateGroup { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withQualityInfoList(qualityInfoList: Array): ModifyTransTemplateGroup { + this['quality_info_list'] = qualityInfoList; + return this; + } + public set qualityInfoList(qualityInfoList: Array | undefined) { + this['quality_info_list'] = qualityInfoList; + } + public get qualityInfoList() { + return this['quality_info_list']; + } + public withWatermarkTemplateIds(watermarkTemplateIds: Array): ModifyTransTemplateGroup { + this['watermark_template_ids'] = watermarkTemplateIds; + return this; + } + public set watermarkTemplateIds(watermarkTemplateIds: Array | undefined) { + this['watermark_template_ids'] = watermarkTemplateIds; + } + public get watermarkTemplateIds() { + return this['watermark_template_ids']; + } + public withDescription(description: string): ModifyTransTemplateGroup { + this['description'] = description; + return this; + } + public withCommon(common: Common): ModifyTransTemplateGroup { + this['common'] = common; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ModifyTransTemplateGroupStatusEnum { + E_1 = '1', + E_0 = '0' +} diff --git a/services/vod/v1/model/Output.ts b/services/vod/v1/model/Output.ts new file mode 100644 index 000000000..55ebe34db --- /dev/null +++ b/services/vod/v1/model/Output.ts @@ -0,0 +1,69 @@ +import { MetaData } from './MetaData'; + + +export class Output { + private 'play_type': OutputPlayTypeEnum | undefined; + public url: string; + public encrypted?: number; + public quality?: OutputQualityEnum; + private 'meta_data': MetaData | undefined; + public constructor(playType?: any, url?: any, metaData?: any) { + this['play_type'] = playType; + this['url'] = url; + this['meta_data'] = metaData; + } + public withPlayType(playType: OutputPlayTypeEnum): Output { + this['play_type'] = playType; + return this; + } + public set playType(playType: OutputPlayTypeEnum | undefined) { + this['play_type'] = playType; + } + public get playType() { + return this['play_type']; + } + public withUrl(url: string): Output { + this['url'] = url; + return this; + } + public withEncrypted(encrypted: number): Output { + this['encrypted'] = encrypted; + return this; + } + public withQuality(quality: OutputQualityEnum): Output { + this['quality'] = quality; + return this; + } + public withMetaData(metaData: MetaData): Output { + this['meta_data'] = metaData; + return this; + } + public set metaData(metaData: MetaData | undefined) { + this['meta_data'] = metaData; + } + public get metaData() { + return this['meta_data']; + } +} + +/** + * @export + * @enum {string} + */ +export enum OutputPlayTypeEnum { + HLS = 'HLS', + DASH = 'DASH', + MP4 = 'MP4', + MP3 = 'MP3', + AAC = 'AAC' +} +/** + * @export + * @enum {string} + */ +export enum OutputQualityEnum { + FLUENT = 'FLUENT', + SD = 'SD', + HD = 'HD', + FULL_HD = 'FULL_HD' +} diff --git a/services/vod/v1/model/Parameter.ts b/services/vod/v1/model/Parameter.ts new file mode 100644 index 000000000..d811daee0 --- /dev/null +++ b/services/vod/v1/model/Parameter.ts @@ -0,0 +1,11 @@ + + +export class Parameter { + public format?: string; + public constructor() { + } + public withFormat(format: string): Parameter { + this['format'] = format; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PictureReviewRet.ts b/services/vod/v1/model/PictureReviewRet.ts new file mode 100644 index 000000000..9b1f00cfe --- /dev/null +++ b/services/vod/v1/model/PictureReviewRet.ts @@ -0,0 +1,48 @@ +import { ReviewDetail } from './ReviewDetail'; + + +export class PictureReviewRet { + public suggestion?: PictureReviewRetSuggestionEnum; + public offset?: number; + public url: string; + public politics?: Array; + public terrorism?: Array; + public porn?: Array; + public constructor(url?: any) { + this['url'] = url; + } + public withSuggestion(suggestion: PictureReviewRetSuggestionEnum): PictureReviewRet { + this['suggestion'] = suggestion; + return this; + } + public withOffset(offset: number): PictureReviewRet { + this['offset'] = offset; + return this; + } + public withUrl(url: string): PictureReviewRet { + this['url'] = url; + return this; + } + public withPolitics(politics: Array): PictureReviewRet { + this['politics'] = politics; + return this; + } + public withTerrorism(terrorism: Array): PictureReviewRet { + this['terrorism'] = terrorism; + return this; + } + public withPorn(porn: Array): PictureReviewRet { + this['porn'] = porn; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum PictureReviewRetSuggestionEnum { + BLOCK = 'block', + PASS = 'pass', + REVIEW = 'review' +} diff --git a/services/vod/v1/model/PlayInfo.ts b/services/vod/v1/model/PlayInfo.ts new file mode 100644 index 000000000..cb06d8cdd --- /dev/null +++ b/services/vod/v1/model/PlayInfo.ts @@ -0,0 +1,39 @@ +import { MetaData } from './MetaData'; + + +export class PlayInfo { + private 'play_type'?: string | undefined; + public url?: string; + public encrypted?: number; + private 'meta_data'?: MetaData | undefined; + public constructor() { + } + public withPlayType(playType: string): PlayInfo { + this['play_type'] = playType; + return this; + } + public set playType(playType: string | undefined) { + this['play_type'] = playType; + } + public get playType() { + return this['play_type']; + } + public withUrl(url: string): PlayInfo { + this['url'] = url; + return this; + } + public withEncrypted(encrypted: number): PlayInfo { + this['encrypted'] = encrypted; + return this; + } + public withMetaData(metaData: MetaData): PlayInfo { + this['meta_data'] = metaData; + return this; + } + public set metaData(metaData: MetaData | undefined) { + this['meta_data'] = metaData; + } + public get metaData() { + return this['meta_data']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PreheatingResult.ts b/services/vod/v1/model/PreheatingResult.ts new file mode 100644 index 000000000..0f1dd9628 --- /dev/null +++ b/services/vod/v1/model/PreheatingResult.ts @@ -0,0 +1,26 @@ + + +export class PreheatingResult { + public url?: string; + public status?: PreheatingResultStatusEnum; + public constructor() { + } + public withUrl(url: string): PreheatingResult { + this['url'] = url; + return this; + } + public withStatus(status: PreheatingResultStatusEnum): PreheatingResult { + this['status'] = status; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum PreheatingResultStatusEnum { + PROCESSING = 'PROCESSING', + SUCCEED = 'SUCCEED', + FAILED = 'FAILED' +} diff --git a/services/vod/v1/model/PublishAssetFromObsReq.ts b/services/vod/v1/model/PublishAssetFromObsReq.ts new file mode 100644 index 000000000..a0f5f408e --- /dev/null +++ b/services/vod/v1/model/PublishAssetFromObsReq.ts @@ -0,0 +1,189 @@ +import { FileAddr } from './FileAddr'; +import { Review } from './Review'; +import { Thumbnail } from './Thumbnail'; +import { VideoTypeRef } from './VideoTypeRef'; + + +export class PublishAssetFromObsReq { + private 'video_type': PublishAssetFromObsReqVideoTypeEnum | undefined; + public title: string; + public description?: string; + private 'category_id'?: number | undefined; + public tags?: string; + private 'auto_publish'?: number | undefined; + private 'template_group_name'?: string | undefined; + private 'auto_encrypt'?: number | undefined; + private 'auto_preheat'?: number | undefined; + public thumbnail?: Thumbnail; + public review?: Review; + private 'workflow_name'?: string | undefined; + public input: FileAddr; + private 'storage_mode'?: number | undefined; + private 'output_bucket'?: string | undefined; + private 'output_path'?: string | undefined; + public constructor(videoType?: any, title?: any, input?: any) { + this['video_type'] = videoType; + this['title'] = title; + this['input'] = input; + } + public withVideoType(videoType: PublishAssetFromObsReqVideoTypeEnum): PublishAssetFromObsReq { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: PublishAssetFromObsReqVideoTypeEnum | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withTitle(title: string): PublishAssetFromObsReq { + this['title'] = title; + return this; + } + public withDescription(description: string): PublishAssetFromObsReq { + this['description'] = description; + return this; + } + public withCategoryId(categoryId: number): PublishAssetFromObsReq { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): PublishAssetFromObsReq { + this['tags'] = tags; + return this; + } + public withAutoPublish(autoPublish: number): PublishAssetFromObsReq { + this['auto_publish'] = autoPublish; + return this; + } + public set autoPublish(autoPublish: number | undefined) { + this['auto_publish'] = autoPublish; + } + public get autoPublish() { + return this['auto_publish']; + } + public withTemplateGroupName(templateGroupName: string): PublishAssetFromObsReq { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withAutoEncrypt(autoEncrypt: number): PublishAssetFromObsReq { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withAutoPreheat(autoPreheat: number): PublishAssetFromObsReq { + this['auto_preheat'] = autoPreheat; + return this; + } + public set autoPreheat(autoPreheat: number | undefined) { + this['auto_preheat'] = autoPreheat; + } + public get autoPreheat() { + return this['auto_preheat']; + } + public withThumbnail(thumbnail: Thumbnail): PublishAssetFromObsReq { + this['thumbnail'] = thumbnail; + return this; + } + public withReview(review: Review): PublishAssetFromObsReq { + this['review'] = review; + return this; + } + public withWorkflowName(workflowName: string): PublishAssetFromObsReq { + this['workflow_name'] = workflowName; + return this; + } + public set workflowName(workflowName: string | undefined) { + this['workflow_name'] = workflowName; + } + public get workflowName() { + return this['workflow_name']; + } + public withInput(input: FileAddr): PublishAssetFromObsReq { + this['input'] = input; + return this; + } + public withStorageMode(storageMode: number): PublishAssetFromObsReq { + this['storage_mode'] = storageMode; + return this; + } + public set storageMode(storageMode: number | undefined) { + this['storage_mode'] = storageMode; + } + public get storageMode() { + return this['storage_mode']; + } + public withOutputBucket(outputBucket: string): PublishAssetFromObsReq { + this['output_bucket'] = outputBucket; + return this; + } + public set outputBucket(outputBucket: string | undefined) { + this['output_bucket'] = outputBucket; + } + public get outputBucket() { + return this['output_bucket']; + } + public withOutputPath(outputPath: string): PublishAssetFromObsReq { + this['output_path'] = outputPath; + return this; + } + public set outputPath(outputPath: string | undefined) { + this['output_path'] = outputPath; + } + public get outputPath() { + return this['output_path']; + } +} + +/** + * @export + * @enum {string} + */ +export enum PublishAssetFromObsReqVideoTypeEnum { + MP4 = 'MP4', + TS = 'TS', + MOV = 'MOV', + MXF = 'MXF', + MPG = 'MPG', + FLV = 'FLV', + WMV = 'WMV', + AVI = 'AVI', + M4V = 'M4V', + F4V = 'F4V', + MPEG = 'MPEG', + E_3GP = '3GP', + ASF = 'ASF', + MKV = 'MKV', + HLS = 'HLS', + MP3 = 'MP3', + OGG = 'OGG', + WAV = 'WAV', + WMA = 'WMA', + APE = 'APE', + FLAC = 'FLAC', + AAC = 'AAC', + AC3 = 'AC3', + MMF = 'MMF', + AMR = 'AMR', + M4A = 'M4A', + M4R = 'M4R', + WV = 'WV', + MP2 = 'MP2' +} diff --git a/services/vod/v1/model/PublishAssetFromObsRequest.ts b/services/vod/v1/model/PublishAssetFromObsRequest.ts new file mode 100644 index 000000000..12171dd96 --- /dev/null +++ b/services/vod/v1/model/PublishAssetFromObsRequest.ts @@ -0,0 +1,34 @@ +import { PublishAssetFromObsReq } from './PublishAssetFromObsReq'; + + +export class PublishAssetFromObsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: PublishAssetFromObsReq; + public constructor() { + } + public withAuthorization(authorization: string): PublishAssetFromObsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): PublishAssetFromObsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: PublishAssetFromObsReq): PublishAssetFromObsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PublishAssetFromObsResponse.ts b/services/vod/v1/model/PublishAssetFromObsResponse.ts new file mode 100644 index 000000000..16d5d4124 --- /dev/null +++ b/services/vod/v1/model/PublishAssetFromObsResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class PublishAssetFromObsResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): PublishAssetFromObsResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PublishAssetReq.ts b/services/vod/v1/model/PublishAssetReq.ts new file mode 100644 index 000000000..41d390d70 --- /dev/null +++ b/services/vod/v1/model/PublishAssetReq.ts @@ -0,0 +1,18 @@ + + +export class PublishAssetReq { + private 'asset_id': Array | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: Array): PublishAssetReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: Array | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PublishAssetsRequest.ts b/services/vod/v1/model/PublishAssetsRequest.ts new file mode 100644 index 000000000..afb00a2ed --- /dev/null +++ b/services/vod/v1/model/PublishAssetsRequest.ts @@ -0,0 +1,34 @@ +import { PublishAssetReq } from './PublishAssetReq'; + + +export class PublishAssetsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: PublishAssetReq; + public constructor() { + } + public withAuthorization(authorization: string): PublishAssetsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): PublishAssetsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: PublishAssetReq): PublishAssetsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/PublishAssetsResponse.ts b/services/vod/v1/model/PublishAssetsResponse.ts new file mode 100644 index 000000000..231e6a80d --- /dev/null +++ b/services/vod/v1/model/PublishAssetsResponse.ts @@ -0,0 +1,20 @@ +import { AssetInfo } from './AssetInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class PublishAssetsResponse extends SdkResponse { + private 'asset_info_array'?: Array | undefined; + public constructor() { + super(); + } + public withAssetInfoArray(assetInfoArray: Array): PublishAssetsResponse { + this['asset_info_array'] = assetInfoArray; + return this; + } + public set assetInfoArray(assetInfoArray: Array | undefined) { + this['asset_info_array'] = assetInfoArray; + } + public get assetInfoArray() { + return this['asset_info_array']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/QualityInfo.ts b/services/vod/v1/model/QualityInfo.ts new file mode 100644 index 000000000..593726ecc --- /dev/null +++ b/services/vod/v1/model/QualityInfo.ts @@ -0,0 +1,38 @@ +import { AudioTemplateInfo } from './AudioTemplateInfo'; +import { VideoTemplateInfo } from './VideoTemplateInfo'; + + +export class QualityInfo { + public video?: VideoTemplateInfo; + public audio?: AudioTemplateInfo; + public format: QualityInfoFormatEnum; + public constructor(format?: any) { + this['format'] = format; + } + public withVideo(video: VideoTemplateInfo): QualityInfo { + this['video'] = video; + return this; + } + public withAudio(audio: AudioTemplateInfo): QualityInfo { + this['audio'] = audio; + return this; + } + public withFormat(format: QualityInfoFormatEnum): QualityInfo { + this['format'] = format; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum QualityInfoFormatEnum { + MP4 = 'MP4', + HLS = 'HLS', + DASH = 'DASH', + DASH_HLS = 'DASH_HLS', + MP3 = 'MP3', + ADTS = 'ADTS', + UNKNOW = 'UNKNOW' +} diff --git a/services/vod/v1/model/QueryCategoryRsp.ts b/services/vod/v1/model/QueryCategoryRsp.ts new file mode 100644 index 000000000..e90ec6190 --- /dev/null +++ b/services/vod/v1/model/QueryCategoryRsp.ts @@ -0,0 +1,21 @@ + + +export class QueryCategoryRsp { + public id?: string; + public name?: string; + public children?: Array; + public constructor() { + } + public withId(id: string): QueryCategoryRsp { + this['id'] = id; + return this; + } + public withName(name: string): QueryCategoryRsp { + this['name'] = name; + return this; + } + public withChildren(children: Array): QueryCategoryRsp { + this['children'] = children; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/Review.ts b/services/vod/v1/model/Review.ts new file mode 100644 index 000000000..b430d767e --- /dev/null +++ b/services/vod/v1/model/Review.ts @@ -0,0 +1,18 @@ + + +export class Review { + private 'template_id': string | undefined; + public constructor(templateId?: any) { + this['template_id'] = templateId; + } + public withTemplateId(templateId: string): Review { + this['template_id'] = templateId; + return this; + } + public set templateId(templateId: string | undefined) { + this['template_id'] = templateId; + } + public get templateId() { + return this['template_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ReviewDetail.ts b/services/vod/v1/model/ReviewDetail.ts new file mode 100644 index 000000000..ff2d3d32e --- /dev/null +++ b/services/vod/v1/model/ReviewDetail.ts @@ -0,0 +1,17 @@ + + +export class ReviewDetail { + public confidence: string; + public label?: string; + public constructor(confidence?: any) { + this['confidence'] = confidence; + } + public withConfidence(confidence: string): ReviewDetail { + this['confidence'] = confidence; + return this; + } + public withLabel(label: string): ReviewDetail { + this['label'] = label; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ReviewInfo.ts b/services/vod/v1/model/ReviewInfo.ts new file mode 100644 index 000000000..ca5397e0b --- /dev/null +++ b/services/vod/v1/model/ReviewInfo.ts @@ -0,0 +1,61 @@ +import { PictureReviewRet } from './PictureReviewRet'; +import { TextReviewRet } from './TextReviewRet'; + + +export class ReviewInfo { + public suggestion?: ReviewInfoSuggestionEnum; + public text?: TextReviewRet; + public cover?: Array; + public video?: Array; + private 'exec_desc'?: string | undefined; + private 'review_status': string | undefined; + public constructor(reviewStatus?: any) { + this['review_status'] = reviewStatus; + } + public withSuggestion(suggestion: ReviewInfoSuggestionEnum): ReviewInfo { + this['suggestion'] = suggestion; + return this; + } + public withText(text: TextReviewRet): ReviewInfo { + this['text'] = text; + return this; + } + public withCover(cover: Array): ReviewInfo { + this['cover'] = cover; + return this; + } + public withVideo(video: Array): ReviewInfo { + this['video'] = video; + return this; + } + public withExecDesc(execDesc: string): ReviewInfo { + this['exec_desc'] = execDesc; + return this; + } + public set execDesc(execDesc: string | undefined) { + this['exec_desc'] = execDesc; + } + public get execDesc() { + return this['exec_desc']; + } + public withReviewStatus(reviewStatus: string): ReviewInfo { + this['review_status'] = reviewStatus; + return this; + } + public set reviewStatus(reviewStatus: string | undefined) { + this['review_status'] = reviewStatus; + } + public get reviewStatus() { + return this['review_status']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ReviewInfoSuggestionEnum { + BLOCK = 'block', + PASS = 'pass', + REVIEW = 'review' +} diff --git a/services/vod/v1/model/ShowAssetCipherRequest.ts b/services/vod/v1/model/ShowAssetCipherRequest.ts new file mode 100644 index 000000000..feed6befa --- /dev/null +++ b/services/vod/v1/model/ShowAssetCipherRequest.ts @@ -0,0 +1,40 @@ + + +export class ShowAssetCipherRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id': string | undefined; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAuthorization(authorization: string): ShowAssetCipherRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowAssetCipherRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: string): ShowAssetCipherRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowAssetCipherResponse.ts b/services/vod/v1/model/ShowAssetCipherResponse.ts new file mode 100644 index 000000000..b25ae7482 --- /dev/null +++ b/services/vod/v1/model/ShowAssetCipherResponse.ts @@ -0,0 +1,29 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowAssetCipherResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + public edk?: string; + public dk?: string; + public constructor() { + super(); + } + public withAssetId(assetId: string): ShowAssetCipherResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withEdk(edk: string): ShowAssetCipherResponse { + this['edk'] = edk; + return this; + } + public withDk(dk: string): ShowAssetCipherResponse { + this['dk'] = dk; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowAssetDetailRequest.ts b/services/vod/v1/model/ShowAssetDetailRequest.ts new file mode 100644 index 000000000..ae4d67855 --- /dev/null +++ b/services/vod/v1/model/ShowAssetDetailRequest.ts @@ -0,0 +1,56 @@ + + +export class ShowAssetDetailRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id': string | undefined; + public categories?: Array; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAuthorization(authorization: string): ShowAssetDetailRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowAssetDetailRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: string): ShowAssetDetailRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withCategories(categories: Array): ShowAssetDetailRequest { + this['categories'] = categories; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ShowAssetDetailRequestCategoriesEnum { + BASE_INFO = 'base_info', + TRANSCODE_INFO = 'transcode_info', + THUMBNAIL_INFO = 'thumbnail_info', + REVIEW_INFO = 'review_info' +} diff --git a/services/vod/v1/model/ShowAssetDetailResponse.ts b/services/vod/v1/model/ShowAssetDetailResponse.ts new file mode 100644 index 000000000..3777902e3 --- /dev/null +++ b/services/vod/v1/model/ShowAssetDetailResponse.ts @@ -0,0 +1,67 @@ +import { BaseInfo } from './BaseInfo'; +import { ReviewInfo } from './ReviewInfo'; +import { ThumbnailInfo } from './ThumbnailInfo'; +import { TranscodeInfo } from './TranscodeInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowAssetDetailResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + private 'base_info'?: BaseInfo | undefined; + private 'transcode_info'?: TranscodeInfo | undefined; + private 'thumbnail_info'?: ThumbnailInfo | undefined; + private 'review_info'?: ReviewInfo | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): ShowAssetDetailResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withBaseInfo(baseInfo: BaseInfo): ShowAssetDetailResponse { + this['base_info'] = baseInfo; + return this; + } + public set baseInfo(baseInfo: BaseInfo | undefined) { + this['base_info'] = baseInfo; + } + public get baseInfo() { + return this['base_info']; + } + public withTranscodeInfo(transcodeInfo: TranscodeInfo): ShowAssetDetailResponse { + this['transcode_info'] = transcodeInfo; + return this; + } + public set transcodeInfo(transcodeInfo: TranscodeInfo | undefined) { + this['transcode_info'] = transcodeInfo; + } + public get transcodeInfo() { + return this['transcode_info']; + } + public withThumbnailInfo(thumbnailInfo: ThumbnailInfo): ShowAssetDetailResponse { + this['thumbnail_info'] = thumbnailInfo; + return this; + } + public set thumbnailInfo(thumbnailInfo: ThumbnailInfo | undefined) { + this['thumbnail_info'] = thumbnailInfo; + } + public get thumbnailInfo() { + return this['thumbnail_info']; + } + public withReviewInfo(reviewInfo: ReviewInfo): ShowAssetDetailResponse { + this['review_info'] = reviewInfo; + return this; + } + public set reviewInfo(reviewInfo: ReviewInfo | undefined) { + this['review_info'] = reviewInfo; + } + public get reviewInfo() { + return this['review_info']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowAssetMetaRequest.ts b/services/vod/v1/model/ShowAssetMetaRequest.ts new file mode 100644 index 000000000..12c97e458 --- /dev/null +++ b/services/vod/v1/model/ShowAssetMetaRequest.ts @@ -0,0 +1,151 @@ + + +export class ShowAssetMetaRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'asset_id'?: Array | undefined; + public status?: Array; + public transcodeStatus?: Array; + public assetStatus?: Array; + private 'start_time'?: string | undefined; + private 'end_time'?: string | undefined; + private 'category_id'?: number | undefined; + public tags?: string; + private 'query_string'?: string | undefined; + public page?: number; + public size?: number; + public constructor() { + } + public withAuthorization(authorization: string): ShowAssetMetaRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowAssetMetaRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withAssetId(assetId: Array): ShowAssetMetaRequest { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: Array | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withStatus(status: Array): ShowAssetMetaRequest { + this['status'] = status; + return this; + } + public withTranscodeStatus(transcodeStatus: Array): ShowAssetMetaRequest { + this['transcodeStatus'] = transcodeStatus; + return this; + } + public withAssetStatus(assetStatus: Array): ShowAssetMetaRequest { + this['assetStatus'] = assetStatus; + return this; + } + public withStartTime(startTime: string): ShowAssetMetaRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withEndTime(endTime: string): ShowAssetMetaRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime() { + return this['end_time']; + } + public withCategoryId(categoryId: number): ShowAssetMetaRequest { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): ShowAssetMetaRequest { + this['tags'] = tags; + return this; + } + public withQueryString(queryString: string): ShowAssetMetaRequest { + this['query_string'] = queryString; + return this; + } + public set queryString(queryString: string | undefined) { + this['query_string'] = queryString; + } + public get queryString() { + return this['query_string']; + } + public withPage(page: number): ShowAssetMetaRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ShowAssetMetaRequest { + this['size'] = size; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum ShowAssetMetaRequestStatusEnum { + UNCREATED = 'UNCREATED', + DELETED = 'DELETED', + CANCELLED = 'CANCELLED', + SERVER_ERROR = 'SERVER_ERROR', + UPLOAD_FAILED = 'UPLOAD_FAILED', + CREATING = 'CREATING', + PUBLISHED = 'PUBLISHED', + WAITING_TRANSCODE = 'WAITING_TRANSCODE', + TRANSCODING = 'TRANSCODING', + TRANSCODE_FAILED = 'TRANSCODE_FAILED', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + CREATED = 'CREATED' +} +/** + * @export + * @enum {string} + */ +export enum ShowAssetMetaRequestTranscodeStatusEnum { + TRANSCODING = 'TRANSCODING', + TRANSCODE_FAILED = 'TRANSCODE_FAILED', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + UN_TRANSCODE = 'UN_TRANSCODE', + WAITING_TRANSCODE = 'WAITING_TRANSCODE' +} +/** + * @export + * @enum {string} + */ +export enum ShowAssetMetaRequestAssetStatusEnum { + PUBLISHED = 'PUBLISHED', + CREATED = 'CREATED' +} diff --git a/services/vod/v1/model/ShowAssetMetaResponse.ts b/services/vod/v1/model/ShowAssetMetaResponse.ts new file mode 100644 index 000000000..e16e1c570 --- /dev/null +++ b/services/vod/v1/model/ShowAssetMetaResponse.ts @@ -0,0 +1,36 @@ +import { AssetInfo } from './AssetInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowAssetMetaResponse extends SdkResponse { + private 'asset_info_array'?: Array | undefined; + private 'is_truncated'?: number | undefined; + public total?: number; + public constructor() { + super(); + } + public withAssetInfoArray(assetInfoArray: Array): ShowAssetMetaResponse { + this['asset_info_array'] = assetInfoArray; + return this; + } + public set assetInfoArray(assetInfoArray: Array | undefined) { + this['asset_info_array'] = assetInfoArray; + } + public get assetInfoArray() { + return this['asset_info_array']; + } + public withIsTruncated(isTruncated: number): ShowAssetMetaResponse { + this['is_truncated'] = isTruncated; + return this; + } + public set isTruncated(isTruncated: number | undefined) { + this['is_truncated'] = isTruncated; + } + public get isTruncated() { + return this['is_truncated']; + } + public withTotal(total: number): ShowAssetMetaResponse { + this['total'] = total; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowAssetTempAuthorityRequest.ts b/services/vod/v1/model/ShowAssetTempAuthorityRequest.ts new file mode 100644 index 000000000..1f0b88f8b --- /dev/null +++ b/services/vod/v1/model/ShowAssetTempAuthorityRequest.ts @@ -0,0 +1,102 @@ + + +export class ShowAssetTempAuthorityRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'http_verb': string | undefined; + public bucket: string; + private 'object_key': string | undefined; + private 'content_type'?: string | undefined; + private 'content_md5'?: string | undefined; + private 'upload_id'?: string | undefined; + private 'part_number'?: number | undefined; + public constructor(httpVerb?: any, bucket?: any, objectKey?: any) { + this['http_verb'] = httpVerb; + this['bucket'] = bucket; + this['object_key'] = objectKey; + } + public withAuthorization(authorization: string): ShowAssetTempAuthorityRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowAssetTempAuthorityRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withHttpVerb(httpVerb: string): ShowAssetTempAuthorityRequest { + this['http_verb'] = httpVerb; + return this; + } + public set httpVerb(httpVerb: string | undefined) { + this['http_verb'] = httpVerb; + } + public get httpVerb() { + return this['http_verb']; + } + public withBucket(bucket: string): ShowAssetTempAuthorityRequest { + this['bucket'] = bucket; + return this; + } + public withObjectKey(objectKey: string): ShowAssetTempAuthorityRequest { + this['object_key'] = objectKey; + return this; + } + public set objectKey(objectKey: string | undefined) { + this['object_key'] = objectKey; + } + public get objectKey() { + return this['object_key']; + } + public withContentType(contentType: string): ShowAssetTempAuthorityRequest { + this['content_type'] = contentType; + return this; + } + public set contentType(contentType: string | undefined) { + this['content_type'] = contentType; + } + public get contentType() { + return this['content_type']; + } + public withContentMd5(contentMd5: string): ShowAssetTempAuthorityRequest { + this['content_md5'] = contentMd5; + return this; + } + public set contentMd5(contentMd5: string | undefined) { + this['content_md5'] = contentMd5; + } + public get contentMd5() { + return this['content_md5']; + } + public withUploadId(uploadId: string): ShowAssetTempAuthorityRequest { + this['upload_id'] = uploadId; + return this; + } + public set uploadId(uploadId: string | undefined) { + this['upload_id'] = uploadId; + } + public get uploadId() { + return this['upload_id']; + } + public withPartNumber(partNumber: number): ShowAssetTempAuthorityRequest { + this['part_number'] = partNumber; + return this; + } + public set partNumber(partNumber: number | undefined) { + this['part_number'] = partNumber; + } + public get partNumber() { + return this['part_number']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowAssetTempAuthorityResponse.ts b/services/vod/v1/model/ShowAssetTempAuthorityResponse.ts new file mode 100644 index 000000000..e742e98ab --- /dev/null +++ b/services/vod/v1/model/ShowAssetTempAuthorityResponse.ts @@ -0,0 +1,19 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowAssetTempAuthorityResponse extends SdkResponse { + private 'sign_str'?: string | undefined; + public constructor() { + super(); + } + public withSignStr(signStr: string): ShowAssetTempAuthorityResponse { + this['sign_str'] = signStr; + return this; + } + public set signStr(signStr: string | undefined) { + this['sign_str'] = signStr; + } + public get signStr() { + return this['sign_str']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowCdnStatisticsRequest.ts b/services/vod/v1/model/ShowCdnStatisticsRequest.ts new file mode 100644 index 000000000..d3ea6e97b --- /dev/null +++ b/services/vod/v1/model/ShowCdnStatisticsRequest.ts @@ -0,0 +1,73 @@ + + +export class ShowCdnStatisticsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'start_time'?: string | undefined; + private 'end_time'?: string | undefined; + private 'stat_type': string | undefined; + public domain: string; + public interval?: number; + public constructor(statType?: any, domain?: any) { + this['stat_type'] = statType; + this['domain'] = domain; + } + public withAuthorization(authorization: string): ShowCdnStatisticsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowCdnStatisticsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withStartTime(startTime: string): ShowCdnStatisticsRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withEndTime(endTime: string): ShowCdnStatisticsRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime() { + return this['end_time']; + } + public withStatType(statType: string): ShowCdnStatisticsRequest { + this['stat_type'] = statType; + return this; + } + public set statType(statType: string | undefined) { + this['stat_type'] = statType; + } + public get statType() { + return this['stat_type']; + } + public withDomain(domain: string): ShowCdnStatisticsRequest { + this['domain'] = domain; + return this; + } + public withInterval(interval: number): ShowCdnStatisticsRequest { + this['interval'] = interval; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowCdnStatisticsResponse.ts b/services/vod/v1/model/ShowCdnStatisticsResponse.ts new file mode 100644 index 000000000..d5c9d98cf --- /dev/null +++ b/services/vod/v1/model/ShowCdnStatisticsResponse.ts @@ -0,0 +1,29 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowCdnStatisticsResponse extends SdkResponse { + private 'start_time'?: string | undefined; + public interval?: number; + public values?: Array; + public constructor() { + super(); + } + public withStartTime(startTime: string): ShowCdnStatisticsResponse { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withInterval(interval: number): ShowCdnStatisticsResponse { + this['interval'] = interval; + return this; + } + public withValues(values: Array): ShowCdnStatisticsResponse { + this['values'] = values; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowPreheatingAssetRequest.ts b/services/vod/v1/model/ShowPreheatingAssetRequest.ts new file mode 100644 index 000000000..0236a4a02 --- /dev/null +++ b/services/vod/v1/model/ShowPreheatingAssetRequest.ts @@ -0,0 +1,40 @@ + + +export class ShowPreheatingAssetRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'task_id': string | undefined; + public constructor(taskId?: any) { + this['task_id'] = taskId; + } + public withAuthorization(authorization: string): ShowPreheatingAssetRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowPreheatingAssetRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withTaskId(taskId: string): ShowPreheatingAssetRequest { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowPreheatingAssetResponse.ts b/services/vod/v1/model/ShowPreheatingAssetResponse.ts new file mode 100644 index 000000000..a45bee0f3 --- /dev/null +++ b/services/vod/v1/model/ShowPreheatingAssetResponse.ts @@ -0,0 +1,20 @@ +import { PreheatingResult } from './PreheatingResult'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowPreheatingAssetResponse extends SdkResponse { + private 'preheating_results'?: Array | undefined; + public constructor() { + super(); + } + public withPreheatingResults(preheatingResults: Array): ShowPreheatingAssetResponse { + this['preheating_results'] = preheatingResults; + return this; + } + public set preheatingResults(preheatingResults: Array | undefined) { + this['preheating_results'] = preheatingResults; + } + public get preheatingResults() { + return this['preheating_results']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowTakeOverAssetDetailsRequest.ts b/services/vod/v1/model/ShowTakeOverAssetDetailsRequest.ts new file mode 100644 index 000000000..fb8b52a0b --- /dev/null +++ b/services/vod/v1/model/ShowTakeOverAssetDetailsRequest.ts @@ -0,0 +1,52 @@ + + +export class ShowTakeOverAssetDetailsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'source_bucket': string | undefined; + private 'source_object': string | undefined; + public constructor(sourceBucket?: any, sourceObject?: any) { + this['source_bucket'] = sourceBucket; + this['source_object'] = sourceObject; + } + public withAuthorization(authorization: string): ShowTakeOverAssetDetailsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowTakeOverAssetDetailsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withSourceBucket(sourceBucket: string): ShowTakeOverAssetDetailsRequest { + this['source_bucket'] = sourceBucket; + return this; + } + public set sourceBucket(sourceBucket: string | undefined) { + this['source_bucket'] = sourceBucket; + } + public get sourceBucket() { + return this['source_bucket']; + } + public withSourceObject(sourceObject: string): ShowTakeOverAssetDetailsRequest { + this['source_object'] = sourceObject; + return this; + } + public set sourceObject(sourceObject: string | undefined) { + this['source_object'] = sourceObject; + } + public get sourceObject() { + return this['source_object']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowTakeOverAssetDetailsResponse.ts b/services/vod/v1/model/ShowTakeOverAssetDetailsResponse.ts new file mode 100644 index 000000000..d67817a7e --- /dev/null +++ b/services/vod/v1/model/ShowTakeOverAssetDetailsResponse.ts @@ -0,0 +1,88 @@ +import { BaseInfo } from './BaseInfo'; +import { TranscodeInfo } from './TranscodeInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowTakeOverAssetDetailsResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + private 'asset_status'?: ShowTakeOverAssetDetailsResponseAssetStatusEnum | undefined; + private 'transcode_status'?: ShowTakeOverAssetDetailsResponseTranscodeStatusEnum | undefined; + private 'base_info'?: BaseInfo | undefined; + private 'transcode_info'?: TranscodeInfo | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): ShowTakeOverAssetDetailsResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withAssetStatus(assetStatus: ShowTakeOverAssetDetailsResponseAssetStatusEnum): ShowTakeOverAssetDetailsResponse { + this['asset_status'] = assetStatus; + return this; + } + public set assetStatus(assetStatus: ShowTakeOverAssetDetailsResponseAssetStatusEnum | undefined) { + this['asset_status'] = assetStatus; + } + public get assetStatus() { + return this['asset_status']; + } + public withTranscodeStatus(transcodeStatus: ShowTakeOverAssetDetailsResponseTranscodeStatusEnum): ShowTakeOverAssetDetailsResponse { + this['transcode_status'] = transcodeStatus; + return this; + } + public set transcodeStatus(transcodeStatus: ShowTakeOverAssetDetailsResponseTranscodeStatusEnum | undefined) { + this['transcode_status'] = transcodeStatus; + } + public get transcodeStatus() { + return this['transcode_status']; + } + public withBaseInfo(baseInfo: BaseInfo): ShowTakeOverAssetDetailsResponse { + this['base_info'] = baseInfo; + return this; + } + public set baseInfo(baseInfo: BaseInfo | undefined) { + this['base_info'] = baseInfo; + } + public get baseInfo() { + return this['base_info']; + } + public withTranscodeInfo(transcodeInfo: TranscodeInfo): ShowTakeOverAssetDetailsResponse { + this['transcode_info'] = transcodeInfo; + return this; + } + public set transcodeInfo(transcodeInfo: TranscodeInfo | undefined) { + this['transcode_info'] = transcodeInfo; + } + public get transcodeInfo() { + return this['transcode_info']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ShowTakeOverAssetDetailsResponseAssetStatusEnum { + CREATING = 'CREATING', + FAILED = 'FAILED', + CREATED = 'CREATED', + PUBLISHED = 'PUBLISHED', + DELETED = 'DELETED' +} +/** + * @export + * @enum {string} + */ +export enum ShowTakeOverAssetDetailsResponseTranscodeStatusEnum { + UN_TRANSCODE = 'UN_TRANSCODE', + WAITING_TRANSCODE = 'WAITING_TRANSCODE', + TRANSCODING = 'TRANSCODING', + TRANSCODE_SUCCEED = 'TRANSCODE_SUCCEED', + TRANSCODE_FAILED = 'TRANSCODE_FAILED' +} diff --git a/services/vod/v1/model/ShowTakeOverTaskDetailsRequest.ts b/services/vod/v1/model/ShowTakeOverTaskDetailsRequest.ts new file mode 100644 index 000000000..47cbb96a3 --- /dev/null +++ b/services/vod/v1/model/ShowTakeOverTaskDetailsRequest.ts @@ -0,0 +1,50 @@ + + +export class ShowTakeOverTaskDetailsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'task_id': string | undefined; + public page?: number; + public size?: number; + public constructor(taskId?: any) { + this['task_id'] = taskId; + } + public withAuthorization(authorization: string): ShowTakeOverTaskDetailsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowTakeOverTaskDetailsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withTaskId(taskId: string): ShowTakeOverTaskDetailsRequest { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } + public withPage(page: number): ShowTakeOverTaskDetailsRequest { + this['page'] = page; + return this; + } + public withSize(size: number): ShowTakeOverTaskDetailsRequest { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowTakeOverTaskDetailsResponse.ts b/services/vod/v1/model/ShowTakeOverTaskDetailsResponse.ts new file mode 100644 index 000000000..f353d2c6e --- /dev/null +++ b/services/vod/v1/model/ShowTakeOverTaskDetailsResponse.ts @@ -0,0 +1,41 @@ +import { AssetDetails } from './AssetDetails'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowTakeOverTaskDetailsResponse extends SdkResponse { + public total?: number; + private 'task_id'?: string | undefined; + private 'task_status'?: string | undefined; + public assets?: Array; + public constructor() { + super(); + } + public withTotal(total: number): ShowTakeOverTaskDetailsResponse { + this['total'] = total; + return this; + } + public withTaskId(taskId: string): ShowTakeOverTaskDetailsResponse { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } + public withTaskStatus(taskStatus: string): ShowTakeOverTaskDetailsResponse { + this['task_status'] = taskStatus; + return this; + } + public set taskStatus(taskStatus: string | undefined) { + this['task_status'] = taskStatus; + } + public get taskStatus() { + return this['task_status']; + } + public withAssets(assets: Array): ShowTakeOverTaskDetailsResponse { + this['assets'] = assets; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowVodStatisticsRequest.ts b/services/vod/v1/model/ShowVodStatisticsRequest.ts new file mode 100644 index 000000000..6896fe786 --- /dev/null +++ b/services/vod/v1/model/ShowVodStatisticsRequest.ts @@ -0,0 +1,55 @@ + + +export class ShowVodStatisticsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + private 'start_time'?: string | undefined; + private 'end_time'?: string | undefined; + public interval?: number; + public constructor() { + } + public withAuthorization(authorization: string): ShowVodStatisticsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): ShowVodStatisticsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withStartTime(startTime: string): ShowVodStatisticsRequest { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withEndTime(endTime: string): ShowVodStatisticsRequest { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime() { + return this['end_time']; + } + public withInterval(interval: number): ShowVodStatisticsRequest { + this['interval'] = interval; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ShowVodStatisticsResponse.ts b/services/vod/v1/model/ShowVodStatisticsResponse.ts new file mode 100644 index 000000000..0183ecbb5 --- /dev/null +++ b/services/vod/v1/model/ShowVodStatisticsResponse.ts @@ -0,0 +1,36 @@ +import { VodSampleData } from './VodSampleData'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowVodStatisticsResponse extends SdkResponse { + private 'start_time'?: string | undefined; + public interval?: number; + private 'sample_data'?: Array | undefined; + public constructor() { + super(); + } + public withStartTime(startTime: string): ShowVodStatisticsResponse { + this['start_time'] = startTime; + return this; + } + public set startTime(startTime: string | undefined) { + this['start_time'] = startTime; + } + public get startTime() { + return this['start_time']; + } + public withInterval(interval: number): ShowVodStatisticsResponse { + this['interval'] = interval; + return this; + } + public withSampleData(sampleData: Array): ShowVodStatisticsResponse { + this['sample_data'] = sampleData; + return this; + } + public set sampleData(sampleData: Array | undefined) { + this['sample_data'] = sampleData; + } + public get sampleData() { + return this['sample_data']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/Subtitle.ts b/services/vod/v1/model/Subtitle.ts new file mode 100644 index 000000000..19b0431c2 --- /dev/null +++ b/services/vod/v1/model/Subtitle.ts @@ -0,0 +1,50 @@ + + +export class Subtitle { + public id: number; + public type: SubtitleTypeEnum; + public language: SubtitleLanguageEnum; + public md5?: string; + public description?: string; + public constructor(id?: any, type?: any, language?: any) { + this['id'] = id; + this['type'] = type; + this['language'] = language; + } + public withId(id: number): Subtitle { + this['id'] = id; + return this; + } + public withType(type: SubtitleTypeEnum): Subtitle { + this['type'] = type; + return this; + } + public withLanguage(language: SubtitleLanguageEnum): Subtitle { + this['language'] = language; + return this; + } + public withMd5(md5: string): Subtitle { + this['md5'] = md5; + return this; + } + public withDescription(description: string): Subtitle { + this['description'] = description; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum SubtitleTypeEnum { + SRT = 'SRT' +} +/** + * @export + * @enum {string} + */ +export enum SubtitleLanguageEnum { + CN = 'CN', + EN = 'EN' +} diff --git a/services/vod/v1/model/SubtitleInfo.ts b/services/vod/v1/model/SubtitleInfo.ts new file mode 100644 index 000000000..0a2577af9 --- /dev/null +++ b/services/vod/v1/model/SubtitleInfo.ts @@ -0,0 +1,26 @@ + + +export class SubtitleInfo { + public url?: string; + public id?: number; + public type?: string; + public language?: string; + public constructor() { + } + public withUrl(url: string): SubtitleInfo { + this['url'] = url; + return this; + } + public withId(id: number): SubtitleInfo { + this['id'] = id; + return this; + } + public withType(type: string): SubtitleInfo { + this['type'] = type; + return this; + } + public withLanguage(language: string): SubtitleInfo { + this['language'] = language; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/TakeOverTask.ts b/services/vod/v1/model/TakeOverTask.ts new file mode 100644 index 000000000..7cede3666 --- /dev/null +++ b/services/vod/v1/model/TakeOverTask.ts @@ -0,0 +1,130 @@ + + +export class TakeOverTask { + public bucket?: string; + private 'object'?: string | undefined; + private 'host_type'?: number | undefined; + private 'output_bucket'?: string | undefined; + private 'output_path'?: string | undefined; + private 'task_id'?: string | undefined; + public suffix?: Array; + private 'template_group_name'?: string | undefined; + private 'create_time'?: string | undefined; + private 'end_time'?: string | undefined; + public status?: TakeOverTaskStatusEnum; + private 'exec_desc'?: string | undefined; + public constructor() { + } + public withBucket(bucket: string): TakeOverTask { + this['bucket'] = bucket; + return this; + } + public withModelObject(modelObject: string): TakeOverTask { + this['object'] = modelObject; + return this; + } + public set modelObject(modelObject: string | undefined) { + this['object'] = modelObject; + } + public get modelObject() { + return this['object']; + } + public withHostType(hostType: number): TakeOverTask { + this['host_type'] = hostType; + return this; + } + public set hostType(hostType: number | undefined) { + this['host_type'] = hostType; + } + public get hostType() { + return this['host_type']; + } + public withOutputBucket(outputBucket: string): TakeOverTask { + this['output_bucket'] = outputBucket; + return this; + } + public set outputBucket(outputBucket: string | undefined) { + this['output_bucket'] = outputBucket; + } + public get outputBucket() { + return this['output_bucket']; + } + public withOutputPath(outputPath: string): TakeOverTask { + this['output_path'] = outputPath; + return this; + } + public set outputPath(outputPath: string | undefined) { + this['output_path'] = outputPath; + } + public get outputPath() { + return this['output_path']; + } + public withTaskId(taskId: string): TakeOverTask { + this['task_id'] = taskId; + return this; + } + public set taskId(taskId: string | undefined) { + this['task_id'] = taskId; + } + public get taskId() { + return this['task_id']; + } + public withSuffix(suffix: Array): TakeOverTask { + this['suffix'] = suffix; + return this; + } + public withTemplateGroupName(templateGroupName: string): TakeOverTask { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withCreateTime(createTime: string): TakeOverTask { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime() { + return this['create_time']; + } + public withEndTime(endTime: string): TakeOverTask { + this['end_time'] = endTime; + return this; + } + public set endTime(endTime: string | undefined) { + this['end_time'] = endTime; + } + public get endTime() { + return this['end_time']; + } + public withStatus(status: TakeOverTaskStatusEnum): TakeOverTask { + this['status'] = status; + return this; + } + public withExecDesc(execDesc: string): TakeOverTask { + this['exec_desc'] = execDesc; + return this; + } + public set execDesc(execDesc: string | undefined) { + this['exec_desc'] = execDesc; + } + public get execDesc() { + return this['exec_desc']; + } +} + +/** + * @export + * @enum {string} + */ +export enum TakeOverTaskStatusEnum { + PROCESSING = 'PROCESSING', + SUCCEED = 'SUCCEED', + FAILED = 'FAILED' +} diff --git a/services/vod/v1/model/TemplateGroup.ts b/services/vod/v1/model/TemplateGroup.ts new file mode 100644 index 000000000..3b4d07eab --- /dev/null +++ b/services/vod/v1/model/TemplateGroup.ts @@ -0,0 +1,77 @@ +import { Common } from './Common'; +import { QualityInfo } from './QualityInfo'; + + +export class TemplateGroup { + private 'group_id'?: string | undefined; + public name?: string; + public status?: string; + public type?: string; + private 'auto_encrypt'?: number | undefined; + private 'quality_info_list'?: Array | undefined; + private 'watermark_template_ids'?: Array | undefined; + public description?: string; + public common?: Common; + public constructor() { + } + public withGroupId(groupId: string): TemplateGroup { + this['group_id'] = groupId; + return this; + } + public set groupId(groupId: string | undefined) { + this['group_id'] = groupId; + } + public get groupId() { + return this['group_id']; + } + public withName(name: string): TemplateGroup { + this['name'] = name; + return this; + } + public withStatus(status: string): TemplateGroup { + this['status'] = status; + return this; + } + public withType(type: string): TemplateGroup { + this['type'] = type; + return this; + } + public withAutoEncrypt(autoEncrypt: number): TemplateGroup { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withQualityInfoList(qualityInfoList: Array): TemplateGroup { + this['quality_info_list'] = qualityInfoList; + return this; + } + public set qualityInfoList(qualityInfoList: Array | undefined) { + this['quality_info_list'] = qualityInfoList; + } + public get qualityInfoList() { + return this['quality_info_list']; + } + public withWatermarkTemplateIds(watermarkTemplateIds: Array): TemplateGroup { + this['watermark_template_ids'] = watermarkTemplateIds; + return this; + } + public set watermarkTemplateIds(watermarkTemplateIds: Array | undefined) { + this['watermark_template_ids'] = watermarkTemplateIds; + } + public get watermarkTemplateIds() { + return this['watermark_template_ids']; + } + public withDescription(description: string): TemplateGroup { + this['description'] = description; + return this; + } + public withCommon(common: Common): TemplateGroup { + this['common'] = common; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/TextReviewRet.ts b/services/vod/v1/model/TextReviewRet.ts new file mode 100644 index 000000000..54ee11605 --- /dev/null +++ b/services/vod/v1/model/TextReviewRet.ts @@ -0,0 +1,37 @@ + + +export class TextReviewRet { + public suggestion: TextReviewRetSuggestionEnum; + public politics?: string; + public porn?: string; + public abuse?: string; + public constructor(suggestion?: any) { + this['suggestion'] = suggestion; + } + public withSuggestion(suggestion: TextReviewRetSuggestionEnum): TextReviewRet { + this['suggestion'] = suggestion; + return this; + } + public withPolitics(politics: string): TextReviewRet { + this['politics'] = politics; + return this; + } + public withPorn(porn: string): TextReviewRet { + this['porn'] = porn; + return this; + } + public withAbuse(abuse: string): TextReviewRet { + this['abuse'] = abuse; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum TextReviewRetSuggestionEnum { + BLOCK = 'block', + PASS = 'pass', + REVIEW = 'review' +} diff --git a/services/vod/v1/model/Thumbnail.ts b/services/vod/v1/model/Thumbnail.ts new file mode 100644 index 000000000..40055b5b8 --- /dev/null +++ b/services/vod/v1/model/Thumbnail.ts @@ -0,0 +1,69 @@ + + +export class Thumbnail { + public type: ThumbnailTypeEnum; + public time?: number; + public dots?: Array; + private 'cover_position'?: number | undefined; + public format?: number; + private 'aspect_ratio'?: number | undefined; + private 'max_length'?: number | undefined; + public constructor(type?: any) { + this['type'] = type; + } + public withType(type: ThumbnailTypeEnum): Thumbnail { + this['type'] = type; + return this; + } + public withTime(time: number): Thumbnail { + this['time'] = time; + return this; + } + public withDots(dots: Array): Thumbnail { + this['dots'] = dots; + return this; + } + public withCoverPosition(coverPosition: number): Thumbnail { + this['cover_position'] = coverPosition; + return this; + } + public set coverPosition(coverPosition: number | undefined) { + this['cover_position'] = coverPosition; + } + public get coverPosition() { + return this['cover_position']; + } + public withFormat(format: number): Thumbnail { + this['format'] = format; + return this; + } + public withAspectRatio(aspectRatio: number): Thumbnail { + this['aspect_ratio'] = aspectRatio; + return this; + } + public set aspectRatio(aspectRatio: number | undefined) { + this['aspect_ratio'] = aspectRatio; + } + public get aspectRatio() { + return this['aspect_ratio']; + } + public withMaxLength(maxLength: number): Thumbnail { + this['max_length'] = maxLength; + return this; + } + public set maxLength(maxLength: number | undefined) { + this['max_length'] = maxLength; + } + public get maxLength() { + return this['max_length']; + } +} + +/** + * @export + * @enum {string} + */ +export enum ThumbnailTypeEnum { + TIME = 'time', + DOTS = 'dots' +} diff --git a/services/vod/v1/model/ThumbnailInfo.ts b/services/vod/v1/model/ThumbnailInfo.ts new file mode 100644 index 000000000..0d7a4c74e --- /dev/null +++ b/services/vod/v1/model/ThumbnailInfo.ts @@ -0,0 +1,39 @@ +import { ThumbnailRsp } from './ThumbnailRsp'; + + +export class ThumbnailInfo { + public sample?: Array; + public dots?: Array; + private 'exec_desc'?: string | undefined; + private 'thumbnail_status'?: string | undefined; + public constructor() { + } + public withSample(sample: Array): ThumbnailInfo { + this['sample'] = sample; + return this; + } + public withDots(dots: Array): ThumbnailInfo { + this['dots'] = dots; + return this; + } + public withExecDesc(execDesc: string): ThumbnailInfo { + this['exec_desc'] = execDesc; + return this; + } + public set execDesc(execDesc: string | undefined) { + this['exec_desc'] = execDesc; + } + public get execDesc() { + return this['exec_desc']; + } + public withThumbnailStatus(thumbnailStatus: string): ThumbnailInfo { + this['thumbnail_status'] = thumbnailStatus; + return this; + } + public set thumbnailStatus(thumbnailStatus: string | undefined) { + this['thumbnail_status'] = thumbnailStatus; + } + public get thumbnailStatus() { + return this['thumbnail_status']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/ThumbnailRsp.ts b/services/vod/v1/model/ThumbnailRsp.ts new file mode 100644 index 000000000..399c29c61 --- /dev/null +++ b/services/vod/v1/model/ThumbnailRsp.ts @@ -0,0 +1,18 @@ + + +export class ThumbnailRsp { + public offset: number; + public url: string; + public constructor(offset?: any, url?: any) { + this['offset'] = offset; + this['url'] = url; + } + public withOffset(offset: number): ThumbnailRsp { + this['offset'] = offset; + return this; + } + public withUrl(url: string): ThumbnailRsp { + this['url'] = url; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/TopUrl.ts b/services/vod/v1/model/TopUrl.ts new file mode 100644 index 000000000..cd1ffd926 --- /dev/null +++ b/services/vod/v1/model/TopUrl.ts @@ -0,0 +1,37 @@ + + +export class TopUrl { + public value?: number; + private 'asset_id'?: string | undefined; + public title?: string; + public duration?: number; + public size?: number; + public constructor() { + } + public withValue(value: number): TopUrl { + this['value'] = value; + return this; + } + public withAssetId(assetId: string): TopUrl { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withTitle(title: string): TopUrl { + this['title'] = title; + return this; + } + public withDuration(duration: number): TopUrl { + this['duration'] = duration; + return this; + } + public withSize(size: number): TopUrl { + this['size'] = size; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/TransTemplateGroup.ts b/services/vod/v1/model/TransTemplateGroup.ts new file mode 100644 index 000000000..653148dc2 --- /dev/null +++ b/services/vod/v1/model/TransTemplateGroup.ts @@ -0,0 +1,84 @@ +import { Common } from './Common'; +import { QualityInfo } from './QualityInfo'; + + +export class TransTemplateGroup { + public name: string; + public status?: TransTemplateGroupStatusEnum; + public type: TransTemplateGroupTypeEnum; + private 'auto_encrypt'?: number | undefined; + private 'quality_info_list'?: Array | undefined; + public common?: Common; + private 'watermark_template_ids'?: Array | undefined; + public description?: string; + public constructor(name?: any, type?: any) { + this['name'] = name; + this['type'] = type; + } + public withName(name: string): TransTemplateGroup { + this['name'] = name; + return this; + } + public withStatus(status: TransTemplateGroupStatusEnum): TransTemplateGroup { + this['status'] = status; + return this; + } + public withType(type: TransTemplateGroupTypeEnum): TransTemplateGroup { + this['type'] = type; + return this; + } + public withAutoEncrypt(autoEncrypt: number): TransTemplateGroup { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withQualityInfoList(qualityInfoList: Array): TransTemplateGroup { + this['quality_info_list'] = qualityInfoList; + return this; + } + public set qualityInfoList(qualityInfoList: Array | undefined) { + this['quality_info_list'] = qualityInfoList; + } + public get qualityInfoList() { + return this['quality_info_list']; + } + public withCommon(common: Common): TransTemplateGroup { + this['common'] = common; + return this; + } + public withWatermarkTemplateIds(watermarkTemplateIds: Array): TransTemplateGroup { + this['watermark_template_ids'] = watermarkTemplateIds; + return this; + } + public set watermarkTemplateIds(watermarkTemplateIds: Array | undefined) { + this['watermark_template_ids'] = watermarkTemplateIds; + } + public get watermarkTemplateIds() { + return this['watermark_template_ids']; + } + public withDescription(description: string): TransTemplateGroup { + this['description'] = description; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum TransTemplateGroupStatusEnum { + E_1 = '1', + E_0 = '0' +} +/** + * @export + * @enum {string} + */ +export enum TransTemplateGroupTypeEnum { + CUSTOM_TEMPLATE_GROUP = 'custom_template_group' +} diff --git a/services/vod/v1/model/TranscodeInfo.ts b/services/vod/v1/model/TranscodeInfo.ts new file mode 100644 index 000000000..39c202c58 --- /dev/null +++ b/services/vod/v1/model/TranscodeInfo.ts @@ -0,0 +1,47 @@ +import { Output } from './Output'; + + +export class TranscodeInfo { + private 'template_group_name': string | undefined; + public output: Array; + private 'exec_desc'?: string | undefined; + private 'transcode_status'?: string | undefined; + public constructor(templateGroupName?: any, output?: any) { + this['template_group_name'] = templateGroupName; + this['output'] = output; + } + public withTemplateGroupName(templateGroupName: string): TranscodeInfo { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withOutput(output: Array): TranscodeInfo { + this['output'] = output; + return this; + } + public withExecDesc(execDesc: string): TranscodeInfo { + this['exec_desc'] = execDesc; + return this; + } + public set execDesc(execDesc: string | undefined) { + this['exec_desc'] = execDesc; + } + public get execDesc() { + return this['exec_desc']; + } + public withTranscodeStatus(transcodeStatus: string): TranscodeInfo { + this['transcode_status'] = transcodeStatus; + return this; + } + public set transcodeStatus(transcodeStatus: string | undefined) { + this['transcode_status'] = transcodeStatus; + } + public get transcodeStatus() { + return this['transcode_status']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UnpublishAssetsRequest.ts b/services/vod/v1/model/UnpublishAssetsRequest.ts new file mode 100644 index 000000000..3e8157230 --- /dev/null +++ b/services/vod/v1/model/UnpublishAssetsRequest.ts @@ -0,0 +1,34 @@ +import { PublishAssetReq } from './PublishAssetReq'; + + +export class UnpublishAssetsRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: PublishAssetReq; + public constructor() { + } + public withAuthorization(authorization: string): UnpublishAssetsRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UnpublishAssetsRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: PublishAssetReq): UnpublishAssetsRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UnpublishAssetsResponse.ts b/services/vod/v1/model/UnpublishAssetsResponse.ts new file mode 100644 index 000000000..56bb65174 --- /dev/null +++ b/services/vod/v1/model/UnpublishAssetsResponse.ts @@ -0,0 +1,20 @@ +import { AssetInfo } from './AssetInfo'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UnpublishAssetsResponse extends SdkResponse { + private 'asset_info_array'?: Array | undefined; + public constructor() { + super(); + } + public withAssetInfoArray(assetInfoArray: Array): UnpublishAssetsResponse { + this['asset_info_array'] = assetInfoArray; + return this; + } + public set assetInfoArray(assetInfoArray: Array | undefined) { + this['asset_info_array'] = assetInfoArray; + } + public get assetInfoArray() { + return this['asset_info_array']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetCategoryRequest.ts b/services/vod/v1/model/UpdateAssetCategoryRequest.ts new file mode 100644 index 000000000..09ad99a90 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetCategoryRequest.ts @@ -0,0 +1,34 @@ +import { UpdateCategoryReq } from './UpdateCategoryReq'; + + +export class UpdateAssetCategoryRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UpdateCategoryReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateAssetCategoryRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateAssetCategoryRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UpdateCategoryReq): UpdateAssetCategoryRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetCategoryResponse.ts b/services/vod/v1/model/UpdateAssetCategoryResponse.ts new file mode 100644 index 000000000..aa9c1ca08 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetCategoryResponse.ts @@ -0,0 +1,39 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateAssetCategoryResponse extends SdkResponse { + public name?: string; + private 'parent_id'?: number | undefined; + public id?: number; + public level?: number; + public projectId?: string; + public constructor() { + super(); + } + public withName(name: string): UpdateAssetCategoryResponse { + this['name'] = name; + return this; + } + public withParentId(parentId: number): UpdateAssetCategoryResponse { + this['parent_id'] = parentId; + return this; + } + public set parentId(parentId: number | undefined) { + this['parent_id'] = parentId; + } + public get parentId() { + return this['parent_id']; + } + public withId(id: number): UpdateAssetCategoryResponse { + this['id'] = id; + return this; + } + public withLevel(level: number): UpdateAssetCategoryResponse { + this['level'] = level; + return this; + } + public withProjectId(projectId: string): UpdateAssetCategoryResponse { + this['projectId'] = projectId; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetMetaReq.ts b/services/vod/v1/model/UpdateAssetMetaReq.ts new file mode 100644 index 000000000..c711665a5 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetMetaReq.ts @@ -0,0 +1,44 @@ + + +export class UpdateAssetMetaReq { + private 'asset_id': string | undefined; + public title?: string; + public description?: string; + private 'category_id'?: number | undefined; + public tags?: string; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: string): UpdateAssetMetaReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withTitle(title: string): UpdateAssetMetaReq { + this['title'] = title; + return this; + } + public withDescription(description: string): UpdateAssetMetaReq { + this['description'] = description; + return this; + } + public withCategoryId(categoryId: number): UpdateAssetMetaReq { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): UpdateAssetMetaReq { + this['tags'] = tags; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetMetaRequest.ts b/services/vod/v1/model/UpdateAssetMetaRequest.ts new file mode 100644 index 000000000..789668ff6 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetMetaRequest.ts @@ -0,0 +1,34 @@ +import { UpdateAssetMetaReq } from './UpdateAssetMetaReq'; + + +export class UpdateAssetMetaRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UpdateAssetMetaReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateAssetMetaRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateAssetMetaRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UpdateAssetMetaReq): UpdateAssetMetaRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetMetaResponse.ts b/services/vod/v1/model/UpdateAssetMetaResponse.ts new file mode 100644 index 000000000..e569e9143 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetMetaResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateAssetMetaResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetRequest.ts b/services/vod/v1/model/UpdateAssetRequest.ts new file mode 100644 index 000000000..82541e64f --- /dev/null +++ b/services/vod/v1/model/UpdateAssetRequest.ts @@ -0,0 +1,34 @@ +import { UploadAssetReq } from './UploadAssetReq'; + + +export class UpdateAssetRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UploadAssetReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateAssetRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateAssetRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UploadAssetReq): UpdateAssetRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateAssetResponse.ts b/services/vod/v1/model/UpdateAssetResponse.ts new file mode 100644 index 000000000..7d2bb66d8 --- /dev/null +++ b/services/vod/v1/model/UpdateAssetResponse.ts @@ -0,0 +1,52 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateAssetResponse extends SdkResponse { + private 'asset_id'?: string | undefined; + private 'video_upload_url'?: string | undefined; + private 'cover_upload_url'?: string | undefined; + private 'subtitle_upload_urls'?: Array | undefined; + public constructor() { + super(); + } + public withAssetId(assetId: string): UpdateAssetResponse { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withVideoUploadUrl(videoUploadUrl: string): UpdateAssetResponse { + this['video_upload_url'] = videoUploadUrl; + return this; + } + public set videoUploadUrl(videoUploadUrl: string | undefined) { + this['video_upload_url'] = videoUploadUrl; + } + public get videoUploadUrl() { + return this['video_upload_url']; + } + public withCoverUploadUrl(coverUploadUrl: string): UpdateAssetResponse { + this['cover_upload_url'] = coverUploadUrl; + return this; + } + public set coverUploadUrl(coverUploadUrl: string | undefined) { + this['cover_upload_url'] = coverUploadUrl; + } + public get coverUploadUrl() { + return this['cover_upload_url']; + } + public withSubtitleUploadUrls(subtitleUploadUrls: Array): UpdateAssetResponse { + this['subtitle_upload_urls'] = subtitleUploadUrls; + return this; + } + public set subtitleUploadUrls(subtitleUploadUrls: Array | undefined) { + this['subtitle_upload_urls'] = subtitleUploadUrls; + } + public get subtitleUploadUrls() { + return this['subtitle_upload_urls']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateBucketAuthorizedReq.ts b/services/vod/v1/model/UpdateBucketAuthorizedReq.ts new file mode 100644 index 000000000..0d84b17cf --- /dev/null +++ b/services/vod/v1/model/UpdateBucketAuthorizedReq.ts @@ -0,0 +1,18 @@ + + +export class UpdateBucketAuthorizedReq { + public bucket: string; + public operation: string; + public constructor(bucket?: any, operation?: any) { + this['bucket'] = bucket; + this['operation'] = operation; + } + public withBucket(bucket: string): UpdateBucketAuthorizedReq { + this['bucket'] = bucket; + return this; + } + public withOperation(operation: string): UpdateBucketAuthorizedReq { + this['operation'] = operation; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateBucketAuthorizedRequest.ts b/services/vod/v1/model/UpdateBucketAuthorizedRequest.ts new file mode 100644 index 000000000..a40f2ea38 --- /dev/null +++ b/services/vod/v1/model/UpdateBucketAuthorizedRequest.ts @@ -0,0 +1,34 @@ +import { UpdateBucketAuthorizedReq } from './UpdateBucketAuthorizedReq'; + + +export class UpdateBucketAuthorizedRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UpdateBucketAuthorizedReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateBucketAuthorizedRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateBucketAuthorizedRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UpdateBucketAuthorizedReq): UpdateBucketAuthorizedRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateBucketAuthorizedResponse.ts b/services/vod/v1/model/UpdateBucketAuthorizedResponse.ts new file mode 100644 index 000000000..3302dc456 --- /dev/null +++ b/services/vod/v1/model/UpdateBucketAuthorizedResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateBucketAuthorizedResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateCategoryReq.ts b/services/vod/v1/model/UpdateCategoryReq.ts new file mode 100644 index 000000000..c14b44d7d --- /dev/null +++ b/services/vod/v1/model/UpdateCategoryReq.ts @@ -0,0 +1,18 @@ + + +export class UpdateCategoryReq { + public name: string; + public id: number; + public constructor(name?: any, id?: any) { + this['name'] = name; + this['id'] = id; + } + public withName(name: string): UpdateCategoryReq { + this['name'] = name; + return this; + } + public withId(id: number): UpdateCategoryReq { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateCoverByThumbnailReq.ts b/services/vod/v1/model/UpdateCoverByThumbnailReq.ts new file mode 100644 index 000000000..b36045f60 --- /dev/null +++ b/services/vod/v1/model/UpdateCoverByThumbnailReq.ts @@ -0,0 +1,12 @@ + + +export class UpdateCoverByThumbnailReq { + public thumbnailUrl: string; + public constructor(thumbnailUrl?: any) { + this['thumbnailUrl'] = thumbnailUrl; + } + public withThumbnailUrl(thumbnailUrl: string): UpdateCoverByThumbnailReq { + this['thumbnailUrl'] = thumbnailUrl; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateCoverByThumbnailRequest.ts b/services/vod/v1/model/UpdateCoverByThumbnailRequest.ts new file mode 100644 index 000000000..619a93b33 --- /dev/null +++ b/services/vod/v1/model/UpdateCoverByThumbnailRequest.ts @@ -0,0 +1,34 @@ +import { UpdateCoverByThumbnailReq } from './UpdateCoverByThumbnailReq'; + + +export class UpdateCoverByThumbnailRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UpdateCoverByThumbnailReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateCoverByThumbnailRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateCoverByThumbnailRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UpdateCoverByThumbnailReq): UpdateCoverByThumbnailRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateCoverByThumbnailResponse.ts b/services/vod/v1/model/UpdateCoverByThumbnailResponse.ts new file mode 100644 index 000000000..525c7823b --- /dev/null +++ b/services/vod/v1/model/UpdateCoverByThumbnailResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateCoverByThumbnailResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateTemplateGroupRequest.ts b/services/vod/v1/model/UpdateTemplateGroupRequest.ts new file mode 100644 index 000000000..4181a9748 --- /dev/null +++ b/services/vod/v1/model/UpdateTemplateGroupRequest.ts @@ -0,0 +1,34 @@ +import { ModifyTransTemplateGroup } from './ModifyTransTemplateGroup'; + + +export class UpdateTemplateGroupRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: ModifyTransTemplateGroup; + public constructor() { + } + public withAuthorization(authorization: string): UpdateTemplateGroupRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateTemplateGroupRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: ModifyTransTemplateGroup): UpdateTemplateGroupRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateTemplateGroupResponse.ts b/services/vod/v1/model/UpdateTemplateGroupResponse.ts new file mode 100644 index 000000000..f59472d24 --- /dev/null +++ b/services/vod/v1/model/UpdateTemplateGroupResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateTemplateGroupResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateWatermarkTemplateReq.ts b/services/vod/v1/model/UpdateWatermarkTemplateReq.ts new file mode 100644 index 000000000..2c67a4246 --- /dev/null +++ b/services/vod/v1/model/UpdateWatermarkTemplateReq.ts @@ -0,0 +1,114 @@ + + +export class UpdateWatermarkTemplateReq { + public id: string; + public name?: string; + public dx?: string; + public dy?: string; + public position?: UpdateWatermarkTemplateReqPositionEnum; + public width?: string; + public height?: string; + private 'watermark_type'?: UpdateWatermarkTemplateReqWatermarkTypeEnum | undefined; + private 'image_process'?: UpdateWatermarkTemplateReqImageProcessEnum | undefined; + private 'timeline_start'?: string | undefined; + private 'timeline_duration'?: string | undefined; + public constructor(id?: any) { + this['id'] = id; + } + public withId(id: string): UpdateWatermarkTemplateReq { + this['id'] = id; + return this; + } + public withName(name: string): UpdateWatermarkTemplateReq { + this['name'] = name; + return this; + } + public withDx(dx: string): UpdateWatermarkTemplateReq { + this['dx'] = dx; + return this; + } + public withDy(dy: string): UpdateWatermarkTemplateReq { + this['dy'] = dy; + return this; + } + public withPosition(position: UpdateWatermarkTemplateReqPositionEnum): UpdateWatermarkTemplateReq { + this['position'] = position; + return this; + } + public withWidth(width: string): UpdateWatermarkTemplateReq { + this['width'] = width; + return this; + } + public withHeight(height: string): UpdateWatermarkTemplateReq { + this['height'] = height; + return this; + } + public withWatermarkType(watermarkType: UpdateWatermarkTemplateReqWatermarkTypeEnum): UpdateWatermarkTemplateReq { + this['watermark_type'] = watermarkType; + return this; + } + public set watermarkType(watermarkType: UpdateWatermarkTemplateReqWatermarkTypeEnum | undefined) { + this['watermark_type'] = watermarkType; + } + public get watermarkType() { + return this['watermark_type']; + } + public withImageProcess(imageProcess: UpdateWatermarkTemplateReqImageProcessEnum): UpdateWatermarkTemplateReq { + this['image_process'] = imageProcess; + return this; + } + public set imageProcess(imageProcess: UpdateWatermarkTemplateReqImageProcessEnum | undefined) { + this['image_process'] = imageProcess; + } + public get imageProcess() { + return this['image_process']; + } + public withTimelineStart(timelineStart: string): UpdateWatermarkTemplateReq { + this['timeline_start'] = timelineStart; + return this; + } + public set timelineStart(timelineStart: string | undefined) { + this['timeline_start'] = timelineStart; + } + public get timelineStart() { + return this['timeline_start']; + } + public withTimelineDuration(timelineDuration: string): UpdateWatermarkTemplateReq { + this['timeline_duration'] = timelineDuration; + return this; + } + public set timelineDuration(timelineDuration: string | undefined) { + this['timeline_duration'] = timelineDuration; + } + public get timelineDuration() { + return this['timeline_duration']; + } +} + +/** + * @export + * @enum {string} + */ +export enum UpdateWatermarkTemplateReqPositionEnum { + TOPRIGHT = 'TOPRIGHT', + TOPLEFT = 'TOPLEFT', + BOTTOMRIGHT = 'BOTTOMRIGHT', + BOTTOMLEFT = 'BOTTOMLEFT' +} +/** + * @export + * @enum {string} + */ +export enum UpdateWatermarkTemplateReqWatermarkTypeEnum { + IMAGE = 'IMAGE', + TEXT = 'TEXT' +} +/** + * @export + * @enum {string} + */ +export enum UpdateWatermarkTemplateReqImageProcessEnum { + ORIGINAL = 'ORIGINAL', + TRANSPARENT = 'TRANSPARENT', + GRAYED = 'GRAYED' +} diff --git a/services/vod/v1/model/UpdateWatermarkTemplateRequest.ts b/services/vod/v1/model/UpdateWatermarkTemplateRequest.ts new file mode 100644 index 000000000..ae33d1f36 --- /dev/null +++ b/services/vod/v1/model/UpdateWatermarkTemplateRequest.ts @@ -0,0 +1,34 @@ +import { UpdateWatermarkTemplateReq } from './UpdateWatermarkTemplateReq'; + + +export class UpdateWatermarkTemplateRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UpdateWatermarkTemplateReq; + public constructor() { + } + public withAuthorization(authorization: string): UpdateWatermarkTemplateRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UpdateWatermarkTemplateRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UpdateWatermarkTemplateReq): UpdateWatermarkTemplateRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UpdateWatermarkTemplateResponse.ts b/services/vod/v1/model/UpdateWatermarkTemplateResponse.ts new file mode 100644 index 000000000..9081947f7 --- /dev/null +++ b/services/vod/v1/model/UpdateWatermarkTemplateResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateWatermarkTemplateResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UploadAsset.ts b/services/vod/v1/model/UploadAsset.ts new file mode 100644 index 000000000..0133eb892 --- /dev/null +++ b/services/vod/v1/model/UploadAsset.ts @@ -0,0 +1,44 @@ + + +export class UploadAsset { + public url?: string; + private 'asset_id'?: string | undefined; + private 'error_code'?: string | undefined; + private 'error_msg'?: string | undefined; + public constructor() { + } + public withUrl(url: string): UploadAsset { + this['url'] = url; + return this; + } + public withAssetId(assetId: string): UploadAsset { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withErrorCode(errorCode: string): UploadAsset { + this['error_code'] = errorCode; + return this; + } + public set errorCode(errorCode: string | undefined) { + this['error_code'] = errorCode; + } + public get errorCode() { + return this['error_code']; + } + public withErrorMsg(errorMsg: string): UploadAsset { + this['error_msg'] = errorMsg; + return this; + } + public set errorMsg(errorMsg: string | undefined) { + this['error_msg'] = errorMsg; + } + public get errorMsg() { + return this['error_msg']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UploadAssetReq.ts b/services/vod/v1/model/UploadAssetReq.ts new file mode 100644 index 000000000..93db02909 --- /dev/null +++ b/services/vod/v1/model/UploadAssetReq.ts @@ -0,0 +1,132 @@ +import { Subtitle } from './Subtitle'; + + +export class UploadAssetReq { + private 'asset_id': string | undefined; + private 'video_md5'?: string | undefined; + private 'video_name'?: string | undefined; + private 'video_type'?: UploadAssetReqVideoTypeEnum | undefined; + private 'cover_id'?: number | undefined; + private 'cover_type'?: UploadAssetReqCoverTypeEnum | undefined; + private 'cover_md5'?: string | undefined; + public subtitles?: Array; + public constructor(assetId?: any) { + this['asset_id'] = assetId; + } + public withAssetId(assetId: string): UploadAssetReq { + this['asset_id'] = assetId; + return this; + } + public set assetId(assetId: string | undefined) { + this['asset_id'] = assetId; + } + public get assetId() { + return this['asset_id']; + } + public withVideoMd5(videoMd5: string): UploadAssetReq { + this['video_md5'] = videoMd5; + return this; + } + public set videoMd5(videoMd5: string | undefined) { + this['video_md5'] = videoMd5; + } + public get videoMd5() { + return this['video_md5']; + } + public withVideoName(videoName: string): UploadAssetReq { + this['video_name'] = videoName; + return this; + } + public set videoName(videoName: string | undefined) { + this['video_name'] = videoName; + } + public get videoName() { + return this['video_name']; + } + public withVideoType(videoType: UploadAssetReqVideoTypeEnum): UploadAssetReq { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: UploadAssetReqVideoTypeEnum | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withCoverId(coverId: number): UploadAssetReq { + this['cover_id'] = coverId; + return this; + } + public set coverId(coverId: number | undefined) { + this['cover_id'] = coverId; + } + public get coverId() { + return this['cover_id']; + } + public withCoverType(coverType: UploadAssetReqCoverTypeEnum): UploadAssetReq { + this['cover_type'] = coverType; + return this; + } + public set coverType(coverType: UploadAssetReqCoverTypeEnum | undefined) { + this['cover_type'] = coverType; + } + public get coverType() { + return this['cover_type']; + } + public withCoverMd5(coverMd5: string): UploadAssetReq { + this['cover_md5'] = coverMd5; + return this; + } + public set coverMd5(coverMd5: string | undefined) { + this['cover_md5'] = coverMd5; + } + public get coverMd5() { + return this['cover_md5']; + } + public withSubtitles(subtitles: Array): UploadAssetReq { + this['subtitles'] = subtitles; + return this; + } +} + +/** + * @export + * @enum {string} + */ +export enum UploadAssetReqVideoTypeEnum { + MP4 = 'MP4', + TS = 'TS', + MOV = 'MOV', + MXF = 'MXF', + MPG = 'MPG', + FLV = 'FLV', + WMV = 'WMV', + HLS = 'HLS', + MP3 = 'MP3', + WMA = 'WMA', + APE = 'APE', + FLAC = 'FLAC', + AAC = 'AAC', + AC3 = 'AC3', + MMF = 'MMF', + AMR = 'AMR', + M4A = 'M4A', + M4R = 'M4R', + OGG = 'OGG', + WAV = 'WAV', + WV = 'WV', + MP2 = 'MP2', + AVI = 'AVI', + F4V = 'F4V', + M4V = 'M4V', + MPEG = 'MPEG', + UNKNOW = 'UNKNOW' +} +/** + * @export + * @enum {string} + */ +export enum UploadAssetReqCoverTypeEnum { + JPG = 'JPG', + PNG = 'PNG' +} diff --git a/services/vod/v1/model/UploadMetaDataByUrl.ts b/services/vod/v1/model/UploadMetaDataByUrl.ts new file mode 100644 index 000000000..5e8f219ae --- /dev/null +++ b/services/vod/v1/model/UploadMetaDataByUrl.ts @@ -0,0 +1,153 @@ +import { Review } from './Review'; +import { Thumbnail } from './Thumbnail'; + + +export class UploadMetaDataByUrl { + private 'video_type': UploadMetaDataByUrlVideoTypeEnum | undefined; + public title: string; + public url: string; + public description?: string; + private 'category_id'?: number | undefined; + public tags?: string; + private 'auto_publish'?: number | undefined; + private 'template_group_name'?: string | undefined; + private 'auto_encrypt'?: number | undefined; + private 'auto_preheat'?: number | undefined; + public thumbnail?: Thumbnail; + public review?: Review; + private 'workflow_name'?: string | undefined; + public constructor(videoType?: any, title?: any, url?: any) { + this['video_type'] = videoType; + this['title'] = title; + this['url'] = url; + } + public withVideoType(videoType: UploadMetaDataByUrlVideoTypeEnum): UploadMetaDataByUrl { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: UploadMetaDataByUrlVideoTypeEnum | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withTitle(title: string): UploadMetaDataByUrl { + this['title'] = title; + return this; + } + public withUrl(url: string): UploadMetaDataByUrl { + this['url'] = url; + return this; + } + public withDescription(description: string): UploadMetaDataByUrl { + this['description'] = description; + return this; + } + public withCategoryId(categoryId: number): UploadMetaDataByUrl { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): UploadMetaDataByUrl { + this['tags'] = tags; + return this; + } + public withAutoPublish(autoPublish: number): UploadMetaDataByUrl { + this['auto_publish'] = autoPublish; + return this; + } + public set autoPublish(autoPublish: number | undefined) { + this['auto_publish'] = autoPublish; + } + public get autoPublish() { + return this['auto_publish']; + } + public withTemplateGroupName(templateGroupName: string): UploadMetaDataByUrl { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withAutoEncrypt(autoEncrypt: number): UploadMetaDataByUrl { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withAutoPreheat(autoPreheat: number): UploadMetaDataByUrl { + this['auto_preheat'] = autoPreheat; + return this; + } + public set autoPreheat(autoPreheat: number | undefined) { + this['auto_preheat'] = autoPreheat; + } + public get autoPreheat() { + return this['auto_preheat']; + } + public withThumbnail(thumbnail: Thumbnail): UploadMetaDataByUrl { + this['thumbnail'] = thumbnail; + return this; + } + public withReview(review: Review): UploadMetaDataByUrl { + this['review'] = review; + return this; + } + public withWorkflowName(workflowName: string): UploadMetaDataByUrl { + this['workflow_name'] = workflowName; + return this; + } + public set workflowName(workflowName: string | undefined) { + this['workflow_name'] = workflowName; + } + public get workflowName() { + return this['workflow_name']; + } +} + +/** + * @export + * @enum {string} + */ +export enum UploadMetaDataByUrlVideoTypeEnum { + MP4 = 'MP4', + TS = 'TS', + MOV = 'MOV', + MXF = 'MXF', + MPG = 'MPG', + FLV = 'FLV', + WMV = 'WMV', + AVI = 'AVI', + M4V = 'M4V', + F4V = 'F4V', + MPEG = 'MPEG', + E_3GP = '3GP', + ASF = 'ASF', + MKV = 'MKV', + MP3 = 'MP3', + OGG = 'OGG', + WAV = 'WAV', + WMA = 'WMA', + APE = 'APE', + FLAC = 'FLAC', + AAC = 'AAC', + AC3 = 'AC3', + MMF = 'MMF', + AMR = 'AMR', + M4A = 'M4A', + M4R = 'M4R', + WV = 'WV', + MP2 = 'MP2' +} diff --git a/services/vod/v1/model/UploadMetaDataByUrlReq.ts b/services/vod/v1/model/UploadMetaDataByUrlReq.ts new file mode 100644 index 000000000..671804352 --- /dev/null +++ b/services/vod/v1/model/UploadMetaDataByUrlReq.ts @@ -0,0 +1,19 @@ +import { UploadMetaDataByUrl } from './UploadMetaDataByUrl'; + + +export class UploadMetaDataByUrlReq { + private 'upload_metadatas': Array | undefined; + public constructor(uploadMetadatas?: any) { + this['upload_metadatas'] = uploadMetadatas; + } + public withUploadMetadatas(uploadMetadatas: Array): UploadMetaDataByUrlReq { + this['upload_metadatas'] = uploadMetadatas; + return this; + } + public set uploadMetadatas(uploadMetadatas: Array | undefined) { + this['upload_metadatas'] = uploadMetadatas; + } + public get uploadMetadatas() { + return this['upload_metadatas']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UploadMetaDataByUrlRequest.ts b/services/vod/v1/model/UploadMetaDataByUrlRequest.ts new file mode 100644 index 000000000..7d1cfa624 --- /dev/null +++ b/services/vod/v1/model/UploadMetaDataByUrlRequest.ts @@ -0,0 +1,34 @@ +import { UploadMetaDataByUrlReq } from './UploadMetaDataByUrlReq'; + + +export class UploadMetaDataByUrlRequest { + private 'Authorization'?: string | undefined; + private 'X-Sdk-Date'?: string | undefined; + public body?: UploadMetaDataByUrlReq; + public constructor() { + } + public withAuthorization(authorization: string): UploadMetaDataByUrlRequest { + this['Authorization'] = authorization; + return this; + } + public set authorization(authorization: string | undefined) { + this['Authorization'] = authorization; + } + public get authorization() { + return this['Authorization']; + } + public withXSdkDate(xSdkDate: string): UploadMetaDataByUrlRequest { + this['X-Sdk-Date'] = xSdkDate; + return this; + } + public set xSdkDate(xSdkDate: string | undefined) { + this['X-Sdk-Date'] = xSdkDate; + } + public get xSdkDate() { + return this['X-Sdk-Date']; + } + public withBody(body: UploadMetaDataByUrlReq): UploadMetaDataByUrlRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/UploadMetaDataByUrlResponse.ts b/services/vod/v1/model/UploadMetaDataByUrlResponse.ts new file mode 100644 index 000000000..984074ce7 --- /dev/null +++ b/services/vod/v1/model/UploadMetaDataByUrlResponse.ts @@ -0,0 +1,20 @@ +import { UploadAsset } from './UploadAsset'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UploadMetaDataByUrlResponse extends SdkResponse { + private 'upload_assets'?: Array | undefined; + public constructor() { + super(); + } + public withUploadAssets(uploadAssets: Array): UploadMetaDataByUrlResponse { + this['upload_assets'] = uploadAssets; + return this; + } + public set uploadAssets(uploadAssets: Array | undefined) { + this['upload_assets'] = uploadAssets; + } + public get uploadAssets() { + return this['upload_assets']; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/VideoTemplateInfo.ts b/services/vod/v1/model/VideoTemplateInfo.ts new file mode 100644 index 000000000..d4a07e384 --- /dev/null +++ b/services/vod/v1/model/VideoTemplateInfo.ts @@ -0,0 +1,53 @@ + + +export class VideoTemplateInfo { + public quality: VideoTemplateInfoQualityEnum; + public width?: number; + public height?: number; + public bitrate?: number; + private 'frame_rate'?: number | undefined; + public constructor(quality?: any) { + this['quality'] = quality; + } + public withQuality(quality: VideoTemplateInfoQualityEnum): VideoTemplateInfo { + this['quality'] = quality; + return this; + } + public withWidth(width: number): VideoTemplateInfo { + this['width'] = width; + return this; + } + public withHeight(height: number): VideoTemplateInfo { + this['height'] = height; + return this; + } + public withBitrate(bitrate: number): VideoTemplateInfo { + this['bitrate'] = bitrate; + return this; + } + public withFrameRate(frameRate: number): VideoTemplateInfo { + this['frame_rate'] = frameRate; + return this; + } + public set frameRate(frameRate: number | undefined) { + this['frame_rate'] = frameRate; + } + public get frameRate() { + return this['frame_rate']; + } +} + +/** + * @export + * @enum {string} + */ +export enum VideoTemplateInfoQualityEnum { + FULL_HD = 'FULL_HD', + HD = 'HD', + SD = 'SD', + FLUENT = 'FLUENT', + AD = 'AD', + E_2K = '2K', + E_4K = '4K', + UNKNOW = 'UNKNOW' +} diff --git a/services/vod/v1/model/VideoTypeRef.ts b/services/vod/v1/model/VideoTypeRef.ts new file mode 100644 index 000000000..d0d00255d --- /dev/null +++ b/services/vod/v1/model/VideoTypeRef.ts @@ -0,0 +1,148 @@ +import { Review } from './Review'; +import { Thumbnail } from './Thumbnail'; + + +export class VideoTypeRef { + private 'video_type': VideoTypeRefVideoTypeEnum | undefined; + public title: string; + public description?: string; + private 'category_id'?: number | undefined; + public tags?: string; + private 'auto_publish'?: number | undefined; + private 'template_group_name'?: string | undefined; + private 'auto_encrypt'?: number | undefined; + private 'auto_preheat'?: number | undefined; + public thumbnail?: Thumbnail; + public review?: Review; + private 'workflow_name'?: string | undefined; + public constructor(videoType?: any, title?: any) { + this['video_type'] = videoType; + this['title'] = title; + } + public withVideoType(videoType: VideoTypeRefVideoTypeEnum): VideoTypeRef { + this['video_type'] = videoType; + return this; + } + public set videoType(videoType: VideoTypeRefVideoTypeEnum | undefined) { + this['video_type'] = videoType; + } + public get videoType() { + return this['video_type']; + } + public withTitle(title: string): VideoTypeRef { + this['title'] = title; + return this; + } + public withDescription(description: string): VideoTypeRef { + this['description'] = description; + return this; + } + public withCategoryId(categoryId: number): VideoTypeRef { + this['category_id'] = categoryId; + return this; + } + public set categoryId(categoryId: number | undefined) { + this['category_id'] = categoryId; + } + public get categoryId() { + return this['category_id']; + } + public withTags(tags: string): VideoTypeRef { + this['tags'] = tags; + return this; + } + public withAutoPublish(autoPublish: number): VideoTypeRef { + this['auto_publish'] = autoPublish; + return this; + } + public set autoPublish(autoPublish: number | undefined) { + this['auto_publish'] = autoPublish; + } + public get autoPublish() { + return this['auto_publish']; + } + public withTemplateGroupName(templateGroupName: string): VideoTypeRef { + this['template_group_name'] = templateGroupName; + return this; + } + public set templateGroupName(templateGroupName: string | undefined) { + this['template_group_name'] = templateGroupName; + } + public get templateGroupName() { + return this['template_group_name']; + } + public withAutoEncrypt(autoEncrypt: number): VideoTypeRef { + this['auto_encrypt'] = autoEncrypt; + return this; + } + public set autoEncrypt(autoEncrypt: number | undefined) { + this['auto_encrypt'] = autoEncrypt; + } + public get autoEncrypt() { + return this['auto_encrypt']; + } + public withAutoPreheat(autoPreheat: number): VideoTypeRef { + this['auto_preheat'] = autoPreheat; + return this; + } + public set autoPreheat(autoPreheat: number | undefined) { + this['auto_preheat'] = autoPreheat; + } + public get autoPreheat() { + return this['auto_preheat']; + } + public withThumbnail(thumbnail: Thumbnail): VideoTypeRef { + this['thumbnail'] = thumbnail; + return this; + } + public withReview(review: Review): VideoTypeRef { + this['review'] = review; + return this; + } + public withWorkflowName(workflowName: string): VideoTypeRef { + this['workflow_name'] = workflowName; + return this; + } + public set workflowName(workflowName: string | undefined) { + this['workflow_name'] = workflowName; + } + public get workflowName() { + return this['workflow_name']; + } +} + +/** + * @export + * @enum {string} + */ +export enum VideoTypeRefVideoTypeEnum { + MP4 = 'MP4', + TS = 'TS', + MOV = 'MOV', + MXF = 'MXF', + MPG = 'MPG', + FLV = 'FLV', + WMV = 'WMV', + AVI = 'AVI', + M4V = 'M4V', + F4V = 'F4V', + MPEG = 'MPEG', + E_3GP = '3GP', + ASF = 'ASF', + MKV = 'MKV', + HLS = 'HLS', + MP3 = 'MP3', + OGG = 'OGG', + WAV = 'WAV', + WMA = 'WMA', + APE = 'APE', + FLAC = 'FLAC', + AAC = 'AAC', + AC3 = 'AC3', + MMF = 'MMF', + AMR = 'AMR', + M4A = 'M4A', + M4R = 'M4R', + WV = 'WV', + MP2 = 'MP2' +} diff --git a/services/vod/v1/model/VodSampleData.ts b/services/vod/v1/model/VodSampleData.ts new file mode 100644 index 000000000..47e5b694e --- /dev/null +++ b/services/vod/v1/model/VodSampleData.ts @@ -0,0 +1,16 @@ + + +export class VodSampleData { + public storage?: number; + public transcode?: number; + public constructor() { + } + public withStorage(storage: number): VodSampleData { + this['storage'] = storage; + return this; + } + public withTranscode(transcode: number): VodSampleData { + this['transcode'] = transcode; + return this; + } +} \ No newline at end of file diff --git a/services/vod/v1/model/WatermarkTemplate.ts b/services/vod/v1/model/WatermarkTemplate.ts new file mode 100644 index 000000000..df945a0e8 --- /dev/null +++ b/services/vod/v1/model/WatermarkTemplate.ts @@ -0,0 +1,117 @@ + + +export class WatermarkTemplate { + public name?: string; + public id?: string; + public status?: number; + public dx?: string; + public dy?: string; + public position?: string; + public width?: string; + public height?: string; + private 'create_time'?: string | undefined; + private 'image_url'?: string | undefined; + public type?: string; + private 'watermark_type'?: string | undefined; + private 'image_process'?: string | undefined; + private 'timeline_start'?: string | undefined; + private 'timeline_duration'?: string | undefined; + public constructor() { + } + public withName(name: string): WatermarkTemplate { + this['name'] = name; + return this; + } + public withId(id: string): WatermarkTemplate { + this['id'] = id; + return this; + } + public withStatus(status: number): WatermarkTemplate { + this['status'] = status; + return this; + } + public withDx(dx: string): WatermarkTemplate { + this['dx'] = dx; + return this; + } + public withDy(dy: string): WatermarkTemplate { + this['dy'] = dy; + return this; + } + public withPosition(position: string): WatermarkTemplate { + this['position'] = position; + return this; + } + public withWidth(width: string): WatermarkTemplate { + this['width'] = width; + return this; + } + public withHeight(height: string): WatermarkTemplate { + this['height'] = height; + return this; + } + public withCreateTime(createTime: string): WatermarkTemplate { + this['create_time'] = createTime; + return this; + } + public set createTime(createTime: string | undefined) { + this['create_time'] = createTime; + } + public get createTime() { + return this['create_time']; + } + public withImageUrl(imageUrl: string): WatermarkTemplate { + this['image_url'] = imageUrl; + return this; + } + public set imageUrl(imageUrl: string | undefined) { + this['image_url'] = imageUrl; + } + public get imageUrl() { + return this['image_url']; + } + public withType(type: string): WatermarkTemplate { + this['type'] = type; + return this; + } + public withWatermarkType(watermarkType: string): WatermarkTemplate { + this['watermark_type'] = watermarkType; + return this; + } + public set watermarkType(watermarkType: string | undefined) { + this['watermark_type'] = watermarkType; + } + public get watermarkType() { + return this['watermark_type']; + } + public withImageProcess(imageProcess: string): WatermarkTemplate { + this['image_process'] = imageProcess; + return this; + } + public set imageProcess(imageProcess: string | undefined) { + this['image_process'] = imageProcess; + } + public get imageProcess() { + return this['image_process']; + } + public withTimelineStart(timelineStart: string): WatermarkTemplate { + this['timeline_start'] = timelineStart; + return this; + } + public set timelineStart(timelineStart: string | undefined) { + this['timeline_start'] = timelineStart; + } + public get timelineStart() { + return this['timeline_start']; + } + public withTimelineDuration(timelineDuration: string): WatermarkTemplate { + this['timeline_duration'] = timelineDuration; + return this; + } + public set timelineDuration(timelineDuration: string | undefined) { + this['timeline_duration'] = timelineDuration; + } + public get timelineDuration() { + return this['timeline_duration']; + } +} \ No newline at end of file diff --git a/services/vod/v1/public-api.ts b/services/vod/v1/public-api.ts new file mode 100644 index 000000000..55b3b7b08 --- /dev/null +++ b/services/vod/v1/public-api.ts @@ -0,0 +1,147 @@ +export * from './VodClient'; + +export * from './model/AssetDetails'; +export * from './model/AssetInfo'; +export * from './model/AssetProcessReq'; +export * from './model/AssetReviewReq'; +export * from './model/AssetSummary'; +export * from './model/AudioTemplateInfo'; +export * from './model/BaseInfo'; +export * from './model/CancelAssetTranscodeTaskRequest'; +export * from './model/CancelAssetTranscodeTaskResponse'; +export * from './model/CancelExtractAudioTaskRequest'; +export * from './model/CancelExtractAudioTaskResponse'; +export * from './model/CheckMd5DuplicationRequest'; +export * from './model/CheckMd5DuplicationResponse'; +export * from './model/Common'; +export * from './model/ConfirmAssetUploadReq'; +export * from './model/ConfirmAssetUploadRequest'; +export * from './model/ConfirmAssetUploadResponse'; +export * from './model/ConfirmImageUploadReq'; +export * from './model/ConfirmImageUploadRequest'; +export * from './model/ConfirmImageUploadResponse'; +export * from './model/CoverInfo'; +export * from './model/CreateAssetByFileUploadReq'; +export * from './model/CreateAssetByFileUploadRequest'; +export * from './model/CreateAssetByFileUploadResponse'; +export * from './model/CreateAssetCategoryRequest'; +export * from './model/CreateAssetCategoryResponse'; +export * from './model/CreateAssetProcessTaskRequest'; +export * from './model/CreateAssetProcessTaskResponse'; +export * from './model/CreateAssetReviewTaskRequest'; +export * from './model/CreateAssetReviewTaskResponse'; +export * from './model/CreateCategoryReq'; +export * from './model/CreateExtractAudioTaskRequest'; +export * from './model/CreateExtractAudioTaskResponse'; +export * from './model/CreatePreheatingAssetReq'; +export * from './model/CreatePreheatingAssetRequest'; +export * from './model/CreatePreheatingAssetResponse'; +export * from './model/CreateTakeOverTaskReq'; +export * from './model/CreateTakeOverTaskRequest'; +export * from './model/CreateTakeOverTaskResponse'; +export * from './model/CreateTemplateGroupRequest'; +export * from './model/CreateTemplateGroupResponse'; +export * from './model/CreateWatermarkTemplateReq'; +export * from './model/CreateWatermarkTemplateRequest'; +export * from './model/CreateWatermarkTemplateResponse'; +export * from './model/DeleteAssetCategoryRequest'; +export * from './model/DeleteAssetCategoryResponse'; +export * from './model/DeleteAssetsRequest'; +export * from './model/DeleteAssetsResponse'; +export * from './model/DeleteResult'; +export * from './model/DeleteTemplateGroupRequest'; +export * from './model/DeleteTemplateGroupResponse'; +export * from './model/DeleteWatermarkTemplateRequest'; +export * from './model/DeleteWatermarkTemplateResponse'; +export * from './model/ExtractAudioTaskReq'; +export * from './model/FileAddr'; +export * from './model/ListAssetCategoryRequest'; +export * from './model/ListAssetCategoryResponse'; +export * from './model/ListAssetListRequest'; +export * from './model/ListAssetListResponse'; +export * from './model/ListTakeOverTaskRequest'; +export * from './model/ListTakeOverTaskResponse'; +export * from './model/ListTemplateGroupRequest'; +export * from './model/ListTemplateGroupResponse'; +export * from './model/ListTopStatisticsRequest'; +export * from './model/ListTopStatisticsResponse'; +export * from './model/ListWatermarkTemplateRequest'; +export * from './model/ListWatermarkTemplateResponse'; +export * from './model/MetaData'; +export * from './model/ModifyTransTemplateGroup'; +export * from './model/Output'; +export * from './model/Parameter'; +export * from './model/PictureReviewRet'; +export * from './model/PlayInfo'; +export * from './model/PreheatingResult'; +export * from './model/PublishAssetFromObsReq'; +export * from './model/PublishAssetFromObsRequest'; +export * from './model/PublishAssetFromObsResponse'; +export * from './model/PublishAssetReq'; +export * from './model/PublishAssetsRequest'; +export * from './model/PublishAssetsResponse'; +export * from './model/QualityInfo'; +export * from './model/QueryCategoryRsp'; +export * from './model/Review'; +export * from './model/ReviewDetail'; +export * from './model/ReviewInfo'; +export * from './model/ShowAssetCipherRequest'; +export * from './model/ShowAssetCipherResponse'; +export * from './model/ShowAssetDetailRequest'; +export * from './model/ShowAssetDetailResponse'; +export * from './model/ShowAssetMetaRequest'; +export * from './model/ShowAssetMetaResponse'; +export * from './model/ShowAssetTempAuthorityRequest'; +export * from './model/ShowAssetTempAuthorityResponse'; +export * from './model/ShowCdnStatisticsRequest'; +export * from './model/ShowCdnStatisticsResponse'; +export * from './model/ShowPreheatingAssetRequest'; +export * from './model/ShowPreheatingAssetResponse'; +export * from './model/ShowTakeOverAssetDetailsRequest'; +export * from './model/ShowTakeOverAssetDetailsResponse'; +export * from './model/ShowTakeOverTaskDetailsRequest'; +export * from './model/ShowTakeOverTaskDetailsResponse'; +export * from './model/ShowVodStatisticsRequest'; +export * from './model/ShowVodStatisticsResponse'; +export * from './model/Subtitle'; +export * from './model/SubtitleInfo'; +export * from './model/TakeOverTask'; +export * from './model/TemplateGroup'; +export * from './model/TextReviewRet'; +export * from './model/Thumbnail'; +export * from './model/ThumbnailInfo'; +export * from './model/ThumbnailRsp'; +export * from './model/TopUrl'; +export * from './model/TransTemplateGroup'; +export * from './model/TranscodeInfo'; +export * from './model/UnpublishAssetsRequest'; +export * from './model/UnpublishAssetsResponse'; +export * from './model/UpdateAssetCategoryRequest'; +export * from './model/UpdateAssetCategoryResponse'; +export * from './model/UpdateAssetMetaReq'; +export * from './model/UpdateAssetMetaRequest'; +export * from './model/UpdateAssetMetaResponse'; +export * from './model/UpdateAssetRequest'; +export * from './model/UpdateAssetResponse'; +export * from './model/UpdateBucketAuthorizedReq'; +export * from './model/UpdateBucketAuthorizedRequest'; +export * from './model/UpdateBucketAuthorizedResponse'; +export * from './model/UpdateCategoryReq'; +export * from './model/UpdateCoverByThumbnailReq'; +export * from './model/UpdateCoverByThumbnailRequest'; +export * from './model/UpdateCoverByThumbnailResponse'; +export * from './model/UpdateTemplateGroupRequest'; +export * from './model/UpdateTemplateGroupResponse'; +export * from './model/UpdateWatermarkTemplateReq'; +export * from './model/UpdateWatermarkTemplateRequest'; +export * from './model/UpdateWatermarkTemplateResponse'; +export * from './model/UploadAsset'; +export * from './model/UploadAssetReq'; +export * from './model/UploadMetaDataByUrl'; +export * from './model/UploadMetaDataByUrlReq'; +export * from './model/UploadMetaDataByUrlRequest'; +export * from './model/UploadMetaDataByUrlResponse'; +export * from './model/VideoTemplateInfo'; +export * from './model/VideoTypeRef'; +export * from './model/VodSampleData'; +export * from './model/WatermarkTemplate'; \ No newline at end of file diff --git a/services/vpc/v2/VpcClient.ts b/services/vpc/v2/VpcClient.ts index f50b13fa8..ffb7e3e42 100644 --- a/services/vpc/v2/VpcClient.ts +++ b/services/vpc/v2/VpcClient.ts @@ -5,6 +5,10 @@ import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; import { AcceptVpcPeeringRequest } from './model/AcceptVpcPeeringRequest'; import { AcceptVpcPeeringResponse } from './model/AcceptVpcPeeringResponse'; import { AllowedAddressPair } from './model/AllowedAddressPair'; +import { AsscoiateReq } from './model/AsscoiateReq'; +import { AssociateRouteTableAndSubnetReq } from './model/AssociateRouteTableAndSubnetReq'; +import { AssociateRouteTableRequest } from './model/AssociateRouteTableRequest'; +import { AssociateRouteTableResponse } from './model/AssociateRouteTableResponse'; import { BatchCreateSubnetTagsRequest } from './model/BatchCreateSubnetTagsRequest'; import { BatchCreateSubnetTagsRequestBody } from './model/BatchCreateSubnetTagsRequestBody'; import { BatchCreateSubnetTagsResponse } from './model/BatchCreateSubnetTagsResponse'; @@ -17,6 +21,7 @@ import { BatchDeleteSubnetTagsResponse } from './model/BatchDeleteSubnetTagsResp import { BatchDeleteVpcTagsRequest } from './model/BatchDeleteVpcTagsRequest'; import { BatchDeleteVpcTagsRequestBody } from './model/BatchDeleteVpcTagsRequestBody'; import { BatchDeleteVpcTagsResponse } from './model/BatchDeleteVpcTagsResponse'; +import { BindingVifDetails } from './model/BindingVifDetails'; import { CreatePortOption } from './model/CreatePortOption'; import { CreatePortRequest } from './model/CreatePortRequest'; import { CreatePortRequestBody } from './model/CreatePortRequestBody'; @@ -25,6 +30,10 @@ import { CreatePrivateipOption } from './model/CreatePrivateipOption'; import { CreatePrivateipRequest } from './model/CreatePrivateipRequest'; import { CreatePrivateipRequestBody } from './model/CreatePrivateipRequestBody'; import { CreatePrivateipResponse } from './model/CreatePrivateipResponse'; +import { CreateRouteTableReq } from './model/CreateRouteTableReq'; +import { CreateRouteTableRequest } from './model/CreateRouteTableRequest'; +import { CreateRouteTableResponse } from './model/CreateRouteTableResponse'; +import { CreateRoutetableReqBody } from './model/CreateRoutetableReqBody'; import { CreateSecurityGroupOption } from './model/CreateSecurityGroupOption'; import { CreateSecurityGroupRequest } from './model/CreateSecurityGroupRequest'; import { CreateSecurityGroupRequestBody } from './model/CreateSecurityGroupRequestBody'; @@ -59,6 +68,8 @@ import { DeletePortRequest } from './model/DeletePortRequest'; import { DeletePortResponse } from './model/DeletePortResponse'; import { DeletePrivateipRequest } from './model/DeletePrivateipRequest'; import { DeletePrivateipResponse } from './model/DeletePrivateipResponse'; +import { DeleteRouteTableRequest } from './model/DeleteRouteTableRequest'; +import { DeleteRouteTableResponse } from './model/DeleteRouteTableResponse'; import { DeleteSecurityGroupRequest } from './model/DeleteSecurityGroupRequest'; import { DeleteSecurityGroupResponse } from './model/DeleteSecurityGroupResponse'; import { DeleteSecurityGroupRuleRequest } from './model/DeleteSecurityGroupRuleRequest'; @@ -75,6 +86,8 @@ import { DeleteVpcRouteRequest } from './model/DeleteVpcRouteRequest'; import { DeleteVpcRouteResponse } from './model/DeleteVpcRouteResponse'; import { DeleteVpcTagRequest } from './model/DeleteVpcTagRequest'; import { DeleteVpcTagResponse } from './model/DeleteVpcTagResponse'; +import { DisassociateRouteTableRequest } from './model/DisassociateRouteTableRequest'; +import { DisassociateRouteTableResponse } from './model/DisassociateRouteTableResponse'; import { DnsAssignMent } from './model/DnsAssignMent'; import { ExtraDhcpOpt } from './model/ExtraDhcpOpt'; import { ExtraDhcpOption } from './model/ExtraDhcpOption'; @@ -84,6 +97,8 @@ import { ListPortsResponse } from './model/ListPortsResponse'; import { ListPrivateipsRequest } from './model/ListPrivateipsRequest'; import { ListPrivateipsResponse } from './model/ListPrivateipsResponse'; import { ListResourceResp } from './model/ListResourceResp'; +import { ListRouteTablesRequest } from './model/ListRouteTablesRequest'; +import { ListRouteTablesResponse } from './model/ListRouteTablesResponse'; import { ListSecurityGroupRulesRequest } from './model/ListSecurityGroupRulesRequest'; import { ListSecurityGroupRulesResponse } from './model/ListSecurityGroupRulesResponse'; import { ListSecurityGroupsRequest } from './model/ListSecurityGroupsRequest'; @@ -195,6 +210,9 @@ import { RejectVpcPeeringResponse } from './model/RejectVpcPeeringResponse'; import { ResourceResult } from './model/ResourceResult'; import { ResourceTag } from './model/ResourceTag'; import { Route } from './model/Route'; +import { RouteTableListResp } from './model/RouteTableListResp'; +import { RouteTableResp } from './model/RouteTableResp'; +import { RoutetableAssociateReqbody } from './model/RoutetableAssociateReqbody'; import { SecurityGroup } from './model/SecurityGroup'; import { SecurityGroupRule } from './model/SecurityGroupRule'; import { ShowNetworkIpAvailabilitiesRequest } from './model/ShowNetworkIpAvailabilitiesRequest'; @@ -205,6 +223,8 @@ import { ShowPrivateipRequest } from './model/ShowPrivateipRequest'; import { ShowPrivateipResponse } from './model/ShowPrivateipResponse'; import { ShowQuotaRequest } from './model/ShowQuotaRequest'; import { ShowQuotaResponse } from './model/ShowQuotaResponse'; +import { ShowRouteTableRequest } from './model/ShowRouteTableRequest'; +import { ShowRouteTableResponse } from './model/ShowRouteTableResponse'; import { ShowSecurityGroupRequest } from './model/ShowSecurityGroupRequest'; import { ShowSecurityGroupResponse } from './model/ShowSecurityGroupResponse'; import { ShowSecurityGroupRuleRequest } from './model/ShowSecurityGroupRuleRequest'; @@ -223,11 +243,16 @@ import { ShowVpcTagsRequest } from './model/ShowVpcTagsRequest'; import { ShowVpcTagsResponse } from './model/ShowVpcTagsResponse'; import { Subnet } from './model/Subnet'; import { SubnetIpAvailability } from './model/SubnetIpAvailability'; +import { SubnetList } from './model/SubnetList'; import { SubnetResult } from './model/SubnetResult'; import { UpdatePortOption } from './model/UpdatePortOption'; import { UpdatePortRequest } from './model/UpdatePortRequest'; import { UpdatePortRequestBody } from './model/UpdatePortRequestBody'; import { UpdatePortResponse } from './model/UpdatePortResponse'; +import { UpdateRouteTableReq } from './model/UpdateRouteTableReq'; +import { UpdateRouteTableRequest } from './model/UpdateRouteTableRequest'; +import { UpdateRouteTableResponse } from './model/UpdateRouteTableResponse'; +import { UpdateRoutetableReqBody } from './model/UpdateRoutetableReqBody'; import { UpdateSubnetOption } from './model/UpdateSubnetOption'; import { UpdateSubnetRequest } from './model/UpdateSubnetRequest'; import { UpdateSubnetRequestBody } from './model/UpdateSubnetRequestBody'; @@ -272,6 +297,20 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 路由表关联子网。子网关联路由表A后,再关联B,不需要先跟路由表A解关联再关联路由表B + * @summary 子网关联路由表 + * @param {string} routetableId 路由表ID + * @param {RoutetableAssociateReqbody} routetableAssociate 关联路由表与子网请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public associateRouteTable(associateRouteTableRequest?: AssociateRouteTableRequest): Promise { + const options = ParamCreater().associateRouteTable(associateRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 为指定的子网资源实例批量添加标签。 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 * @summary 批量创建子网资源标签 @@ -313,6 +352,19 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 创建路由表 + * @summary 创建路由表 + * @param {CreateRoutetableReqBody} routetable 创建路由表对象,参见CreateRouteTableReq对象 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public createRouteTable(createRouteTableRequest?: CreateRouteTableRequest): Promise { + const options = ParamCreater().createRouteTable(createRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 创建安全组。 * @summary 创建安全组 @@ -392,6 +444,19 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 删除路由表 + * @summary 删除路由表 + * @param {string} routetableId 路由表ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public deleteRouteTable(deleteRouteTableRequest?: DeleteRouteTableRequest): Promise { + const options = ParamCreater().deleteRouteTable(deleteRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 删除安全组。 * @summary 删除安全组 @@ -459,6 +524,20 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 子网解关联路由表 + * @summary 子网解关联路由表 + * @param {string} routetableId 路由表ID + * @param {RoutetableAssociateReqbody} routetableAssociate 关联路由表与子网请求体 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public disassociateRouteTable(disassociateRouteTableRequest?: DisassociateRouteTableRequest): Promise { + const options = ParamCreater().disassociateRouteTable(disassociateRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。 * @summary 查询端口列表 @@ -483,6 +562,23 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 查询提交请求的帐户的所有路由表列表,并根据过滤条件进行过滤 + * @summary 查询路由表列表 + * @param {number} [limit] 每页返回的个数 + * @param {string} [marker] 分页查询起始的资源ID,为空时为查询第一页 + * @param {string} [id] 路由表ID,可过滤对应ID的路由表 + * @param {string} [vpcId] 虚拟私有云ID,可过滤对应虚拟私有云包含的路由表 + * @param {string} [subnetId] 子网ID,可过滤对应子网关联的路由表 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public listRouteTables(listRouteTablesRequest?: ListRouteTablesRequest): Promise { + const options = ParamCreater().listRouteTables(listRouteTablesRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 查询安全组规则列表。 * @summary 查询安全组规则列表 @@ -612,6 +708,19 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 查询路由表详情 + * @summary 查询路由表 + * @param {string} routetableId 路由表ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public showRouteTable(showRouteTableRequest?: ShowRouteTableRequest): Promise { + const options = ParamCreater().showRouteTable(showRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 查询单个安全组详情。 * @summary 查询安全组 @@ -691,6 +800,20 @@ export class VpcClient { // @ts-ignore return this.hcClient.sendRequest(options); } + /** + * 更新路由表,包括可以更新路由表的名称,描述,以及新增、更新、删除路由条目 + * @summary 更新路由表 + * @param {string} routetableId 路由表ID + * @param {UpdateRoutetableReqBody} routetable 更新路由表对象,参见UpdateRouteTableReq对象 + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + public updateRouteTable(updateRouteTableRequest?: UpdateRouteTableRequest): Promise { + const options = ParamCreater().updateRouteTable(updateRouteTableRequest); + options['responseHeaders'] = ['']; + // @ts-ignore + return this.hcClient.sendRequest(options); + } /** * 更新子网。 * @summary 更新子网 @@ -1425,6 +1548,48 @@ export const ParamCreater = function () { return options; }, + /** + * 路由表关联子网。子网关联路由表A后,再关联B,不需要先跟路由表A解关联再关联路由表B + */ + associateRouteTable(associateRouteTableRequest?: AssociateRouteTableRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/routetables/{routetable_id}/action", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let routetableId; + + if (associateRouteTableRequest !== null && associateRouteTableRequest !== undefined) { + if (associateRouteTableRequest instanceof AssociateRouteTableRequest) { + routetableId = associateRouteTableRequest.routetableId; + body = associateRouteTableRequest.body + } else { + routetableId = associateRouteTableRequest['routetable_id']; + body = associateRouteTableRequest['body']; + } + } + + if (routetableId === null || routetableId === undefined) { + throw new RequiredError('routetableId','Required parameter routetableId was null or undefined when calling associateRouteTable.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'routetable_id': routetableId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 为指定的子网资源实例批量添加标签。 此接口为幂等接口:创建时如果请求体中存在重复key则报错。创建时,不允许设置重复key数据,如果数据库已存在该key,就覆盖value的值。 */ @@ -1544,6 +1709,41 @@ export const ParamCreater = function () { return options; }, + /** + * 创建路由表 + */ + createRouteTable(createRouteTableRequest?: CreateRouteTableRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/routetables", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + + if (createRouteTableRequest !== null && createRouteTableRequest !== undefined) { + if (createRouteTableRequest instanceof CreateRouteTableRequest) { + body = createRouteTableRequest.body + } else { + body = createRouteTableRequest['body']; + } + } + + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 创建安全组。 */ @@ -1760,6 +1960,40 @@ export const ParamCreater = function () { return options; }, + /** + * 删除路由表 + */ + deleteRouteTable(deleteRouteTableRequest?: DeleteRouteTableRequest) { + const options = { + method: "DELETE", + url: "/v1/{project_id}/routetables/{routetable_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let routetableId; + + if (deleteRouteTableRequest !== null && deleteRouteTableRequest !== undefined) { + if (deleteRouteTableRequest instanceof DeleteRouteTableRequest) { + routetableId = deleteRouteTableRequest.routetableId; + } else { + routetableId = deleteRouteTableRequest['routetable_id']; + } + } + + if (routetableId === null || routetableId === undefined) { + throw new RequiredError('routetableId','Required parameter routetableId was null or undefined when calling deleteRouteTable.'); + } + + options.pathParams = { 'routetable_id': routetableId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 删除安全组。 */ @@ -1942,6 +2176,48 @@ export const ParamCreater = function () { return options; }, + /** + * 子网解关联路由表 + */ + disassociateRouteTable(disassociateRouteTableRequest?: DisassociateRouteTableRequest) { + const options = { + method: "POST", + url: "/v1/{project_id}/routetables/{routetable_id}/action", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let routetableId; + + if (disassociateRouteTableRequest !== null && disassociateRouteTableRequest !== undefined) { + if (disassociateRouteTableRequest instanceof DisassociateRouteTableRequest) { + routetableId = disassociateRouteTableRequest.routetableId; + body = disassociateRouteTableRequest.body + } else { + routetableId = disassociateRouteTableRequest['routetable_id']; + body = disassociateRouteTableRequest['body']; + } + } + + if (routetableId === null || routetableId === undefined) { + throw new RequiredError('routetableId','Required parameter routetableId was null or undefined when calling disassociateRouteTable.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'routetable_id': routetableId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询提交请求的租户的所有端口,单次查询最多返回2000条数据。 */ @@ -2042,6 +2318,64 @@ export const ParamCreater = function () { return options; }, + /** + * 查询提交请求的帐户的所有路由表列表,并根据过滤条件进行过滤 + */ + listRouteTables(listRouteTablesRequest?: ListRouteTablesRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/routetables", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + let limit; + let marker; + let id; + let vpcId; + let subnetId; + + if (listRouteTablesRequest !== null && listRouteTablesRequest !== undefined) { + if (listRouteTablesRequest instanceof ListRouteTablesRequest) { + limit = listRouteTablesRequest.limit; + marker = listRouteTablesRequest.marker; + id = listRouteTablesRequest.id; + vpcId = listRouteTablesRequest.vpcId; + subnetId = listRouteTablesRequest.subnetId; + } else { + limit = listRouteTablesRequest['limit']; + marker = listRouteTablesRequest['marker']; + id = listRouteTablesRequest['id']; + vpcId = listRouteTablesRequest['vpc_id']; + subnetId = listRouteTablesRequest['subnet_id']; + } + } + + if (limit !== null && limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (marker !== null && marker !== undefined) { + localVarQueryParameter['marker'] = marker; + } + if (id !== null && id !== undefined) { + localVarQueryParameter['id'] = id; + } + if (vpcId !== null && vpcId !== undefined) { + localVarQueryParameter['vpc_id'] = vpcId; + } + if (subnetId !== null && subnetId !== undefined) { + localVarQueryParameter['subnet_id'] = subnetId; + } + + options.queryParams = localVarQueryParameter; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询安全组规则列表。 */ @@ -2413,6 +2747,40 @@ export const ParamCreater = function () { return options; }, + /** + * 查询路由表详情 + */ + showRouteTable(showRouteTableRequest?: ShowRouteTableRequest) { + const options = { + method: "GET", + url: "/v1/{project_id}/routetables/{routetable_id}", + contentType: "application/json", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + let routetableId; + + if (showRouteTableRequest !== null && showRouteTableRequest !== undefined) { + if (showRouteTableRequest instanceof ShowRouteTableRequest) { + routetableId = showRouteTableRequest.routetableId; + } else { + routetableId = showRouteTableRequest['routetable_id']; + } + } + + if (routetableId === null || routetableId === undefined) { + throw new RequiredError('routetableId','Required parameter routetableId was null or undefined when calling showRouteTable.'); + } + + options.pathParams = { 'routetable_id': routetableId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 查询单个安全组详情。 */ @@ -2625,6 +2993,48 @@ export const ParamCreater = function () { return options; }, + /** + * 更新路由表,包括可以更新路由表的名称,描述,以及新增、更新、删除路由条目 + */ + updateRouteTable(updateRouteTableRequest?: UpdateRouteTableRequest) { + const options = { + method: "PUT", + url: "/v1/{project_id}/routetables/{routetable_id}", + contentType: "application/json;charset=UTF-8", + queryParams: {}, + pathParams: {}, + headers: {}, + data: {} + }; + const localVarHeaderParameter = {} as any; + + var body: any; + let routetableId; + + if (updateRouteTableRequest !== null && updateRouteTableRequest !== undefined) { + if (updateRouteTableRequest instanceof UpdateRouteTableRequest) { + routetableId = updateRouteTableRequest.routetableId; + body = updateRouteTableRequest.body + } else { + routetableId = updateRouteTableRequest['routetable_id']; + body = updateRouteTableRequest['body']; + } + } + + if (routetableId === null || routetableId === undefined) { + throw new RequiredError('routetableId','Required parameter routetableId was null or undefined when calling updateRouteTable.'); + } + if (body === null || body === undefined) { + throw new RequiredError('body','Required parameter body was null or undefined when calling body.'); + } + localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8'; + + options.data = body !== undefined ? body : {}; + options.pathParams = { 'routetable_id': routetableId, }; + options.headers = localVarHeaderParameter; + return options; + }, + /** * 更新子网。 */ diff --git a/services/vpc/v2/model/AsscoiateReq.ts b/services/vpc/v2/model/AsscoiateReq.ts new file mode 100644 index 000000000..40e7dc72b --- /dev/null +++ b/services/vpc/v2/model/AsscoiateReq.ts @@ -0,0 +1,13 @@ +import { AssociateRouteTableAndSubnetReq } from './AssociateRouteTableAndSubnetReq'; + + +export class AsscoiateReq { + public subnets: AssociateRouteTableAndSubnetReq; + public constructor(subnets?: any) { + this['subnets'] = subnets; + } + public withSubnets(subnets: AssociateRouteTableAndSubnetReq): AsscoiateReq { + this['subnets'] = subnets; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/AssociateRouteTableAndSubnetReq.ts b/services/vpc/v2/model/AssociateRouteTableAndSubnetReq.ts new file mode 100644 index 000000000..0debbe593 --- /dev/null +++ b/services/vpc/v2/model/AssociateRouteTableAndSubnetReq.ts @@ -0,0 +1,16 @@ + + +export class AssociateRouteTableAndSubnetReq { + public associate?: Array; + public disassociate?: Array; + public constructor() { + } + public withAssociate(associate: Array): AssociateRouteTableAndSubnetReq { + this['associate'] = associate; + return this; + } + public withDisassociate(disassociate: Array): AssociateRouteTableAndSubnetReq { + this['disassociate'] = disassociate; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/AssociateRouteTableRequest.ts b/services/vpc/v2/model/AssociateRouteTableRequest.ts new file mode 100644 index 000000000..9a82083b4 --- /dev/null +++ b/services/vpc/v2/model/AssociateRouteTableRequest.ts @@ -0,0 +1,24 @@ +import { RoutetableAssociateReqbody } from './RoutetableAssociateReqbody'; + + +export class AssociateRouteTableRequest { + private 'routetable_id': string | undefined; + public body?: RoutetableAssociateReqbody; + public constructor(routetableId?: any) { + this['routetable_id'] = routetableId; + } + public withRoutetableId(routetableId: string): AssociateRouteTableRequest { + this['routetable_id'] = routetableId; + return this; + } + public set routetableId(routetableId: string | undefined) { + this['routetable_id'] = routetableId; + } + public get routetableId() { + return this['routetable_id']; + } + public withBody(body: RoutetableAssociateReqbody): AssociateRouteTableRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/AssociateRouteTableResponse.ts b/services/vpc/v2/model/AssociateRouteTableResponse.ts new file mode 100644 index 000000000..cc6770d8d --- /dev/null +++ b/services/vpc/v2/model/AssociateRouteTableResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableResp } from './RouteTableResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class AssociateRouteTableResponse extends SdkResponse { + public routetable?: RouteTableResp; + public constructor() { + super(); + } + public withRoutetable(routetable: RouteTableResp): AssociateRouteTableResponse { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/BindingVifDetails.ts b/services/vpc/v2/model/BindingVifDetails.ts new file mode 100644 index 000000000..0b5e945cf --- /dev/null +++ b/services/vpc/v2/model/BindingVifDetails.ts @@ -0,0 +1,17 @@ + + +export class BindingVifDetails { + private 'primary_interface'?: boolean | undefined; + public constructor() { + } + public withPrimaryInterface(primaryInterface: boolean): BindingVifDetails { + this['primary_interface'] = primaryInterface; + return this; + } + public set primaryInterface(primaryInterface: boolean | undefined) { + this['primary_interface'] = primaryInterface; + } + public get primaryInterface() { + return this['primary_interface']; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/CreateRouteTableReq.ts b/services/vpc/v2/model/CreateRouteTableReq.ts new file mode 100644 index 000000000..e7809cbae --- /dev/null +++ b/services/vpc/v2/model/CreateRouteTableReq.ts @@ -0,0 +1,34 @@ +import { Route } from './Route'; + + +export class CreateRouteTableReq { + public name?: string; + public routes?: Array; + private 'vpc_id': string | undefined; + public description?: string; + public constructor(vpcId?: any) { + this['vpc_id'] = vpcId; + } + public withName(name: string): CreateRouteTableReq { + this['name'] = name; + return this; + } + public withRoutes(routes: Array): CreateRouteTableReq { + this['routes'] = routes; + return this; + } + public withVpcId(vpcId: string): CreateRouteTableReq { + this['vpc_id'] = vpcId; + return this; + } + public set vpcId(vpcId: string | undefined) { + this['vpc_id'] = vpcId; + } + public get vpcId() { + return this['vpc_id']; + } + public withDescription(description: string): CreateRouteTableReq { + this['description'] = description; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/CreateRouteTableRequest.ts b/services/vpc/v2/model/CreateRouteTableRequest.ts new file mode 100644 index 000000000..fee46e4a2 --- /dev/null +++ b/services/vpc/v2/model/CreateRouteTableRequest.ts @@ -0,0 +1,12 @@ +import { CreateRoutetableReqBody } from './CreateRoutetableReqBody'; + + +export class CreateRouteTableRequest { + public body?: CreateRoutetableReqBody; + public constructor() { + } + public withBody(body: CreateRoutetableReqBody): CreateRouteTableRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/CreateRouteTableResponse.ts b/services/vpc/v2/model/CreateRouteTableResponse.ts new file mode 100644 index 000000000..98046941f --- /dev/null +++ b/services/vpc/v2/model/CreateRouteTableResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableResp } from './RouteTableResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class CreateRouteTableResponse extends SdkResponse { + public routetable?: RouteTableResp; + public constructor() { + super(); + } + public withRoutetable(routetable: RouteTableResp): CreateRouteTableResponse { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/CreateRoutetableReqBody.ts b/services/vpc/v2/model/CreateRoutetableReqBody.ts new file mode 100644 index 000000000..b10706557 --- /dev/null +++ b/services/vpc/v2/model/CreateRoutetableReqBody.ts @@ -0,0 +1,13 @@ +import { CreateRouteTableReq } from './CreateRouteTableReq'; + + +export class CreateRoutetableReqBody { + public routetable: CreateRouteTableReq; + public constructor(routetable?: any) { + this['routetable'] = routetable; + } + public withRoutetable(routetable: CreateRouteTableReq): CreateRoutetableReqBody { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/DeleteRouteTableRequest.ts b/services/vpc/v2/model/DeleteRouteTableRequest.ts new file mode 100644 index 000000000..93d2f819d --- /dev/null +++ b/services/vpc/v2/model/DeleteRouteTableRequest.ts @@ -0,0 +1,18 @@ + + +export class DeleteRouteTableRequest { + private 'routetable_id': string | undefined; + public constructor(routetableId?: any) { + this['routetable_id'] = routetableId; + } + public withRoutetableId(routetableId: string): DeleteRouteTableRequest { + this['routetable_id'] = routetableId; + return this; + } + public set routetableId(routetableId: string | undefined) { + this['routetable_id'] = routetableId; + } + public get routetableId() { + return this['routetable_id']; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/DeleteRouteTableResponse.ts b/services/vpc/v2/model/DeleteRouteTableResponse.ts new file mode 100644 index 000000000..b1d13d400 --- /dev/null +++ b/services/vpc/v2/model/DeleteRouteTableResponse.ts @@ -0,0 +1,8 @@ + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DeleteRouteTableResponse extends SdkResponse { + public constructor() { + super(); + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/DisassociateRouteTableRequest.ts b/services/vpc/v2/model/DisassociateRouteTableRequest.ts new file mode 100644 index 000000000..5ae0a3040 --- /dev/null +++ b/services/vpc/v2/model/DisassociateRouteTableRequest.ts @@ -0,0 +1,24 @@ +import { RoutetableAssociateReqbody } from './RoutetableAssociateReqbody'; + + +export class DisassociateRouteTableRequest { + private 'routetable_id': string | undefined; + public body?: RoutetableAssociateReqbody; + public constructor(routetableId?: any) { + this['routetable_id'] = routetableId; + } + public withRoutetableId(routetableId: string): DisassociateRouteTableRequest { + this['routetable_id'] = routetableId; + return this; + } + public set routetableId(routetableId: string | undefined) { + this['routetable_id'] = routetableId; + } + public get routetableId() { + return this['routetable_id']; + } + public withBody(body: RoutetableAssociateReqbody): DisassociateRouteTableRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/DisassociateRouteTableResponse.ts b/services/vpc/v2/model/DisassociateRouteTableResponse.ts new file mode 100644 index 000000000..e51ac6356 --- /dev/null +++ b/services/vpc/v2/model/DisassociateRouteTableResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableResp } from './RouteTableResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class DisassociateRouteTableResponse extends SdkResponse { + public routetable?: RouteTableResp; + public constructor() { + super(); + } + public withRoutetable(routetable: RouteTableResp): DisassociateRouteTableResponse { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/ListRouteTablesRequest.ts b/services/vpc/v2/model/ListRouteTablesRequest.ts new file mode 100644 index 000000000..93009a234 --- /dev/null +++ b/services/vpc/v2/model/ListRouteTablesRequest.ts @@ -0,0 +1,43 @@ + + +export class ListRouteTablesRequest { + public limit?: number; + public marker?: string; + public id?: string; + private 'vpc_id'?: string | undefined; + private 'subnet_id'?: string | undefined; + public constructor() { + } + public withLimit(limit: number): ListRouteTablesRequest { + this['limit'] = limit; + return this; + } + public withMarker(marker: string): ListRouteTablesRequest { + this['marker'] = marker; + return this; + } + public withId(id: string): ListRouteTablesRequest { + this['id'] = id; + return this; + } + public withVpcId(vpcId: string): ListRouteTablesRequest { + this['vpc_id'] = vpcId; + return this; + } + public set vpcId(vpcId: string | undefined) { + this['vpc_id'] = vpcId; + } + public get vpcId() { + return this['vpc_id']; + } + public withSubnetId(subnetId: string): ListRouteTablesRequest { + this['subnet_id'] = subnetId; + return this; + } + public set subnetId(subnetId: string | undefined) { + this['subnet_id'] = subnetId; + } + public get subnetId() { + return this['subnet_id']; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/ListRouteTablesResponse.ts b/services/vpc/v2/model/ListRouteTablesResponse.ts new file mode 100644 index 000000000..9d4f925b5 --- /dev/null +++ b/services/vpc/v2/model/ListRouteTablesResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableListResp } from './RouteTableListResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ListRouteTablesResponse extends SdkResponse { + public routetables?: Array; + public constructor() { + super(); + } + public withRoutetables(routetables: Array): ListRouteTablesResponse { + this['routetables'] = routetables; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/NeutronListSecurityGroupsResponse.ts b/services/vpc/v2/model/NeutronListSecurityGroupsResponse.ts index d45af89d8..84e80cbbe 100644 --- a/services/vpc/v2/model/NeutronListSecurityGroupsResponse.ts +++ b/services/vpc/v2/model/NeutronListSecurityGroupsResponse.ts @@ -1,9 +1,11 @@ +import { NeutronPageLink } from './NeutronPageLink'; import { NeutronSecurityGroup } from './NeutronSecurityGroup'; import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; export class NeutronListSecurityGroupsResponse extends SdkResponse { private 'security_groups'?: Array | undefined; + private 'security_groups_links'?: Array | undefined; public constructor() { super(); } @@ -17,4 +19,14 @@ export class NeutronListSecurityGroupsResponse extends SdkResponse { public get securityGroups() { return this['security_groups']; } + public withSecurityGroupsLinks(securityGroupsLinks: Array): NeutronListSecurityGroupsResponse { + this['security_groups_links'] = securityGroupsLinks; + return this; + } + public set securityGroupsLinks(securityGroupsLinks: Array | undefined) { + this['security_groups_links'] = securityGroupsLinks; + } + public get securityGroupsLinks() { + return this['security_groups_links']; + } } \ No newline at end of file diff --git a/services/vpc/v2/model/Port.ts b/services/vpc/v2/model/Port.ts index 44c56fdca..729cd0e68 100644 --- a/services/vpc/v2/model/Port.ts +++ b/services/vpc/v2/model/Port.ts @@ -1,4 +1,5 @@ import { AllowedAddressPair } from './AllowedAddressPair'; +import { BindingVifDetails } from './BindingVifDetails'; import { DnsAssignMent } from './DnsAssignMent'; import { ExtraDhcpOpt } from './ExtraDhcpOpt'; import { FixedIp } from './FixedIp'; @@ -21,7 +22,7 @@ export class Port { private 'binding:vnic_type': string | undefined; private 'dns_assignment': Array | undefined; private 'dns_name': string | undefined; - private 'binding:vif_details': object | undefined; + private 'binding:vif_details': BindingVifDetails | undefined; private 'binding:profile': object | undefined; private 'instance_id': string | undefined; private 'instance_type': string | undefined; @@ -193,11 +194,11 @@ export class Port { public get dnsName() { return this['dns_name']; } - public withBindingVifDetails(bindingVifDetails: object): Port { + public withBindingVifDetails(bindingVifDetails: BindingVifDetails): Port { this['binding:vif_details'] = bindingVifDetails; return this; } - public set bindingVifDetails(bindingVifDetails: object | undefined) { + public set bindingVifDetails(bindingVifDetails: BindingVifDetails | undefined) { this['binding:vif_details'] = bindingVifDetails; } public get bindingVifDetails() { diff --git a/services/vpc/v2/model/RouteTableListResp.ts b/services/vpc/v2/model/RouteTableListResp.ts new file mode 100644 index 000000000..6a59cdfbc --- /dev/null +++ b/services/vpc/v2/model/RouteTableListResp.ts @@ -0,0 +1,67 @@ +import { SubnetList } from './SubnetList'; + + +export class RouteTableListResp { + public id: string; + public name: string; + private 'default': boolean | undefined; + public subnets: Array; + private 'tenant_id': string | undefined; + private 'vpc_id': string | undefined; + public description: string; + public constructor(id?: any, name?: any, _default?: any, subnets?: any, tenantId?: any, vpcId?: any, description?: any) { + this['id'] = id; + this['name'] = name; + this['default'] = _default; + this['subnets'] = subnets; + this['tenant_id'] = tenantId; + this['vpc_id'] = vpcId; + this['description'] = description; + } + public withId(id: string): RouteTableListResp { + this['id'] = id; + return this; + } + public withName(name: string): RouteTableListResp { + this['name'] = name; + return this; + } + public withDefault(_default: boolean): RouteTableListResp { + this['default'] = _default; + return this; + } + public set _default(_default: boolean | undefined) { + this['default'] = _default; + } + public get _default() { + return this['default']; + } + public withSubnets(subnets: Array): RouteTableListResp { + this['subnets'] = subnets; + return this; + } + public withTenantId(tenantId: string): RouteTableListResp { + this['tenant_id'] = tenantId; + return this; + } + public set tenantId(tenantId: string | undefined) { + this['tenant_id'] = tenantId; + } + public get tenantId() { + return this['tenant_id']; + } + public withVpcId(vpcId: string): RouteTableListResp { + this['vpc_id'] = vpcId; + return this; + } + public set vpcId(vpcId: string | undefined) { + this['vpc_id'] = vpcId; + } + public get vpcId() { + return this['vpc_id']; + } + public withDescription(description: string): RouteTableListResp { + this['description'] = description; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/RouteTableResp.ts b/services/vpc/v2/model/RouteTableResp.ts new file mode 100644 index 000000000..a846cd2a7 --- /dev/null +++ b/services/vpc/v2/model/RouteTableResp.ts @@ -0,0 +1,74 @@ +import { Route } from './Route'; +import { SubnetList } from './SubnetList'; + + +export class RouteTableResp { + public id: string; + public name: string; + private 'default': boolean | undefined; + public routes: Array; + public subnets: Array; + private 'tenant_id': string | undefined; + private 'vpc_id': string | undefined; + public description: string; + public constructor(id?: any, name?: any, _default?: any, routes?: any, subnets?: any, tenantId?: any, vpcId?: any, description?: any) { + this['id'] = id; + this['name'] = name; + this['default'] = _default; + this['routes'] = routes; + this['subnets'] = subnets; + this['tenant_id'] = tenantId; + this['vpc_id'] = vpcId; + this['description'] = description; + } + public withId(id: string): RouteTableResp { + this['id'] = id; + return this; + } + public withName(name: string): RouteTableResp { + this['name'] = name; + return this; + } + public withDefault(_default: boolean): RouteTableResp { + this['default'] = _default; + return this; + } + public set _default(_default: boolean | undefined) { + this['default'] = _default; + } + public get _default() { + return this['default']; + } + public withRoutes(routes: Array): RouteTableResp { + this['routes'] = routes; + return this; + } + public withSubnets(subnets: Array): RouteTableResp { + this['subnets'] = subnets; + return this; + } + public withTenantId(tenantId: string): RouteTableResp { + this['tenant_id'] = tenantId; + return this; + } + public set tenantId(tenantId: string | undefined) { + this['tenant_id'] = tenantId; + } + public get tenantId() { + return this['tenant_id']; + } + public withVpcId(vpcId: string): RouteTableResp { + this['vpc_id'] = vpcId; + return this; + } + public set vpcId(vpcId: string | undefined) { + this['vpc_id'] = vpcId; + } + public get vpcId() { + return this['vpc_id']; + } + public withDescription(description: string): RouteTableResp { + this['description'] = description; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/RoutetableAssociateReqbody.ts b/services/vpc/v2/model/RoutetableAssociateReqbody.ts new file mode 100644 index 000000000..b9b4d5217 --- /dev/null +++ b/services/vpc/v2/model/RoutetableAssociateReqbody.ts @@ -0,0 +1,13 @@ +import { AsscoiateReq } from './AsscoiateReq'; + + +export class RoutetableAssociateReqbody { + public routetable: AsscoiateReq; + public constructor(routetable?: any) { + this['routetable'] = routetable; + } + public withRoutetable(routetable: AsscoiateReq): RoutetableAssociateReqbody { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/ShowRouteTableRequest.ts b/services/vpc/v2/model/ShowRouteTableRequest.ts new file mode 100644 index 000000000..64fc77e16 --- /dev/null +++ b/services/vpc/v2/model/ShowRouteTableRequest.ts @@ -0,0 +1,18 @@ + + +export class ShowRouteTableRequest { + private 'routetable_id': string | undefined; + public constructor(routetableId?: any) { + this['routetable_id'] = routetableId; + } + public withRoutetableId(routetableId: string): ShowRouteTableRequest { + this['routetable_id'] = routetableId; + return this; + } + public set routetableId(routetableId: string | undefined) { + this['routetable_id'] = routetableId; + } + public get routetableId() { + return this['routetable_id']; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/ShowRouteTableResponse.ts b/services/vpc/v2/model/ShowRouteTableResponse.ts new file mode 100644 index 000000000..15e31412b --- /dev/null +++ b/services/vpc/v2/model/ShowRouteTableResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableResp } from './RouteTableResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class ShowRouteTableResponse extends SdkResponse { + public routetable?: RouteTableResp; + public constructor() { + super(); + } + public withRoutetable(routetable: RouteTableResp): ShowRouteTableResponse { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/SubnetList.ts b/services/vpc/v2/model/SubnetList.ts new file mode 100644 index 000000000..614025e64 --- /dev/null +++ b/services/vpc/v2/model/SubnetList.ts @@ -0,0 +1,12 @@ + + +export class SubnetList { + public id: string; + public constructor(id?: any) { + this['id'] = id; + } + public withId(id: string): SubnetList { + this['id'] = id; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/UpdateRouteTableReq.ts b/services/vpc/v2/model/UpdateRouteTableReq.ts new file mode 100644 index 000000000..831d4574a --- /dev/null +++ b/services/vpc/v2/model/UpdateRouteTableReq.ts @@ -0,0 +1,22 @@ +import { Route } from './Route'; + + +export class UpdateRouteTableReq { + public name?: string; + public description?: string; + public routes?: { [key: string]: Array; }; + public constructor() { + } + public withName(name: string): UpdateRouteTableReq { + this['name'] = name; + return this; + } + public withDescription(description: string): UpdateRouteTableReq { + this['description'] = description; + return this; + } + public withRoutes(routes: { [key: string]: Array; }): UpdateRouteTableReq { + this['routes'] = routes; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/UpdateRouteTableRequest.ts b/services/vpc/v2/model/UpdateRouteTableRequest.ts new file mode 100644 index 000000000..4a7acffdb --- /dev/null +++ b/services/vpc/v2/model/UpdateRouteTableRequest.ts @@ -0,0 +1,24 @@ +import { UpdateRoutetableReqBody } from './UpdateRoutetableReqBody'; + + +export class UpdateRouteTableRequest { + private 'routetable_id': string | undefined; + public body?: UpdateRoutetableReqBody; + public constructor(routetableId?: any) { + this['routetable_id'] = routetableId; + } + public withRoutetableId(routetableId: string): UpdateRouteTableRequest { + this['routetable_id'] = routetableId; + return this; + } + public set routetableId(routetableId: string | undefined) { + this['routetable_id'] = routetableId; + } + public get routetableId() { + return this['routetable_id']; + } + public withBody(body: UpdateRoutetableReqBody): UpdateRouteTableRequest { + this['body'] = body; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/UpdateRouteTableResponse.ts b/services/vpc/v2/model/UpdateRouteTableResponse.ts new file mode 100644 index 000000000..5d2b9aff3 --- /dev/null +++ b/services/vpc/v2/model/UpdateRouteTableResponse.ts @@ -0,0 +1,14 @@ +import { RouteTableResp } from './RouteTableResp'; + +import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse"; + +export class UpdateRouteTableResponse extends SdkResponse { + public routetable?: RouteTableResp; + public constructor() { + super(); + } + public withRoutetable(routetable: RouteTableResp): UpdateRouteTableResponse { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/model/UpdateRoutetableReqBody.ts b/services/vpc/v2/model/UpdateRoutetableReqBody.ts new file mode 100644 index 000000000..f24a65d8a --- /dev/null +++ b/services/vpc/v2/model/UpdateRoutetableReqBody.ts @@ -0,0 +1,13 @@ +import { UpdateRouteTableReq } from './UpdateRouteTableReq'; + + +export class UpdateRoutetableReqBody { + public routetable: UpdateRouteTableReq; + public constructor(routetable?: any) { + this['routetable'] = routetable; + } + public withRoutetable(routetable: UpdateRouteTableReq): UpdateRoutetableReqBody { + this['routetable'] = routetable; + return this; + } +} \ No newline at end of file diff --git a/services/vpc/v2/public-api.ts b/services/vpc/v2/public-api.ts index 7ffc33f54..34b0eacd3 100644 --- a/services/vpc/v2/public-api.ts +++ b/services/vpc/v2/public-api.ts @@ -3,6 +3,10 @@ export * from './VpcClient'; export * from './model/AcceptVpcPeeringRequest'; export * from './model/AcceptVpcPeeringResponse'; export * from './model/AllowedAddressPair'; +export * from './model/AsscoiateReq'; +export * from './model/AssociateRouteTableAndSubnetReq'; +export * from './model/AssociateRouteTableRequest'; +export * from './model/AssociateRouteTableResponse'; export * from './model/BatchCreateSubnetTagsRequest'; export * from './model/BatchCreateSubnetTagsRequestBody'; export * from './model/BatchCreateSubnetTagsResponse'; @@ -15,6 +19,7 @@ export * from './model/BatchDeleteSubnetTagsResponse'; export * from './model/BatchDeleteVpcTagsRequest'; export * from './model/BatchDeleteVpcTagsRequestBody'; export * from './model/BatchDeleteVpcTagsResponse'; +export * from './model/BindingVifDetails'; export * from './model/CreatePortOption'; export * from './model/CreatePortRequest'; export * from './model/CreatePortRequestBody'; @@ -23,6 +28,10 @@ export * from './model/CreatePrivateipOption'; export * from './model/CreatePrivateipRequest'; export * from './model/CreatePrivateipRequestBody'; export * from './model/CreatePrivateipResponse'; +export * from './model/CreateRouteTableReq'; +export * from './model/CreateRouteTableRequest'; +export * from './model/CreateRouteTableResponse'; +export * from './model/CreateRoutetableReqBody'; export * from './model/CreateSecurityGroupOption'; export * from './model/CreateSecurityGroupRequest'; export * from './model/CreateSecurityGroupRequestBody'; @@ -57,6 +66,8 @@ export * from './model/DeletePortRequest'; export * from './model/DeletePortResponse'; export * from './model/DeletePrivateipRequest'; export * from './model/DeletePrivateipResponse'; +export * from './model/DeleteRouteTableRequest'; +export * from './model/DeleteRouteTableResponse'; export * from './model/DeleteSecurityGroupRequest'; export * from './model/DeleteSecurityGroupResponse'; export * from './model/DeleteSecurityGroupRuleRequest'; @@ -73,6 +84,8 @@ export * from './model/DeleteVpcRouteRequest'; export * from './model/DeleteVpcRouteResponse'; export * from './model/DeleteVpcTagRequest'; export * from './model/DeleteVpcTagResponse'; +export * from './model/DisassociateRouteTableRequest'; +export * from './model/DisassociateRouteTableResponse'; export * from './model/DnsAssignMent'; export * from './model/ExtraDhcpOpt'; export * from './model/ExtraDhcpOption'; @@ -82,6 +95,8 @@ export * from './model/ListPortsResponse'; export * from './model/ListPrivateipsRequest'; export * from './model/ListPrivateipsResponse'; export * from './model/ListResourceResp'; +export * from './model/ListRouteTablesRequest'; +export * from './model/ListRouteTablesResponse'; export * from './model/ListSecurityGroupRulesRequest'; export * from './model/ListSecurityGroupRulesResponse'; export * from './model/ListSecurityGroupsRequest'; @@ -193,6 +208,9 @@ export * from './model/RejectVpcPeeringResponse'; export * from './model/ResourceResult'; export * from './model/ResourceTag'; export * from './model/Route'; +export * from './model/RouteTableListResp'; +export * from './model/RouteTableResp'; +export * from './model/RoutetableAssociateReqbody'; export * from './model/SecurityGroup'; export * from './model/SecurityGroupRule'; export * from './model/ShowNetworkIpAvailabilitiesRequest'; @@ -203,6 +221,8 @@ export * from './model/ShowPrivateipRequest'; export * from './model/ShowPrivateipResponse'; export * from './model/ShowQuotaRequest'; export * from './model/ShowQuotaResponse'; +export * from './model/ShowRouteTableRequest'; +export * from './model/ShowRouteTableResponse'; export * from './model/ShowSecurityGroupRequest'; export * from './model/ShowSecurityGroupResponse'; export * from './model/ShowSecurityGroupRuleRequest'; @@ -221,11 +241,16 @@ export * from './model/ShowVpcTagsRequest'; export * from './model/ShowVpcTagsResponse'; export * from './model/Subnet'; export * from './model/SubnetIpAvailability'; +export * from './model/SubnetList'; export * from './model/SubnetResult'; export * from './model/UpdatePortOption'; export * from './model/UpdatePortRequest'; export * from './model/UpdatePortRequestBody'; export * from './model/UpdatePortResponse'; +export * from './model/UpdateRouteTableReq'; +export * from './model/UpdateRouteTableRequest'; +export * from './model/UpdateRouteTableResponse'; +export * from './model/UpdateRoutetableReqBody'; export * from './model/UpdateSubnetOption'; export * from './model/UpdateSubnetRequest'; export * from './model/UpdateSubnetRequestBody';