tencentcloud-sdk-vod 1.0.294 → 1.0.295

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b84dfaf56f9bcbdc667b48de30774b7554302c58
4
- data.tar.gz: 61d8b1456cf416301517e12fa12c21b86dd54d9f
3
+ metadata.gz: 8d238fea66a24f911da849ba55ab1dabe02e3c5f
4
+ data.tar.gz: 1643688e7b7ed682b0e242ee51868098191ac006
5
5
  SHA512:
6
- metadata.gz: fd962983cd0b882dd0fa5d90ac22b68453376cdb818ec4a396184e2fb4178367e2358b6b96548651ce45819dff870862fbfc3d29113e34a4584152312ef10189
7
- data.tar.gz: f682dd705c5e94e18eda47d925c81719041e0d8482ab7e5cc975cff43d53404a1fc91109f2f1b8d81abd7fc4ae74905fe842c01bf868b81eb7fd8063c2d95348
6
+ metadata.gz: b03db6adb57547301bbc318f901a2b999711f0c2bd9c4e9d70dad40f189402c2ba1e8ec90e8a1107549b242fa478af5aa722c2f379bb093bf236db7153d3302b
7
+ data.tar.gz: 82f69a2d7d0c7d795f3c03f7b160a9f145eef7ea42865fcbaf3940e298092d63fdc9d27a1118c18f32e9def465269a5ef104c39022e218be155a3af0023f3c59
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.294
1
+ 1.0.295
@@ -474,6 +474,32 @@ module TencentCloud
474
474
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
475
475
  end
476
476
 
477
+ # 该接口用于开通某地域的存储。
478
+ # 1. 用户开通点播业务时,系统默认为用户开通了部分地域的存储,用户如果需要开通其它地域的存储,可以通过该接口进行开通。
479
+ # 2. 通过 DescribeStorageRegions 接口可以查询到所有存储地域及已经开通的地域。
480
+
481
+ # @param request: Request instance for CreateStorageRegion.
482
+ # @type request: :class:`Tencentcloud::vod::V20180717::CreateStorageRegionRequest`
483
+ # @rtype: :class:`Tencentcloud::vod::V20180717::CreateStorageRegionResponse`
484
+ def CreateStorageRegion(request)
485
+ body = send_request('CreateStorageRegion', request.serialize)
486
+ response = JSON.parse(body)
487
+ if response['Response'].key?('Error') == false
488
+ model = CreateStorageRegionResponse.new
489
+ model.deserialize(response['Response'])
490
+ model
491
+ else
492
+ code = response['Response']['Error']['Code']
493
+ message = response['Response']['Error']['Message']
494
+ reqid = response['Response']['RequestId']
495
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
496
+ end
497
+ rescue TencentCloud::Common::TencentCloudSDKException => e
498
+ raise e
499
+ rescue StandardError => e
500
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
501
+ end
502
+
477
503
  # 该接口用于创建点播子应用。
478
504
 
479
505
  # @param request: Request instance for CreateSubAppId.
@@ -1832,6 +1858,33 @@ module TencentCloud
1832
1858
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1833
1859
  end
1834
1860
 
1861
+ # 该接口用于:
1862
+ # 1. 查询点播可开通的所有存储园区列表。
1863
+ # 2. 查询已经开通的园区列表。
1864
+ # 3. 查询默认使用的存储园区。
1865
+
1866
+ # @param request: Request instance for DescribeStorageRegions.
1867
+ # @type request: :class:`Tencentcloud::vod::V20180717::DescribeStorageRegionsRequest`
1868
+ # @rtype: :class:`Tencentcloud::vod::V20180717::DescribeStorageRegionsResponse`
1869
+ def DescribeStorageRegions(request)
1870
+ body = send_request('DescribeStorageRegions', request.serialize)
1871
+ response = JSON.parse(body)
1872
+ if response['Response'].key?('Error') == false
1873
+ model = DescribeStorageRegionsResponse.new
1874
+ model.deserialize(response['Response'])
1875
+ model
1876
+ else
1877
+ code = response['Response']['Error']['Code']
1878
+ message = response['Response']['Error']['Message']
1879
+ reqid = response['Response']['RequestId']
1880
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1881
+ end
1882
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1883
+ raise e
1884
+ rescue StandardError => e
1885
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1886
+ end
1887
+
1835
1888
  # 该接口用于获取当前账号的子应用列表,包含主应用。
1836
1889
 
1837
1890
  # @param request: Request instance for DescribeSubAppIds.
@@ -2330,6 +2383,30 @@ module TencentCloud
2330
2383
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2331
2384
  end
2332
2385
 
2386
+ # 该接口用于设置默认的存储地域。上传文件时如果没有指定地域,将上传到默认地域。
2387
+
2388
+ # @param request: Request instance for ModifyDefaultStorageRegion.
2389
+ # @type request: :class:`Tencentcloud::vod::V20180717::ModifyDefaultStorageRegionRequest`
2390
+ # @rtype: :class:`Tencentcloud::vod::V20180717::ModifyDefaultStorageRegionResponse`
2391
+ def ModifyDefaultStorageRegion(request)
2392
+ body = send_request('ModifyDefaultStorageRegion', request.serialize)
2393
+ response = JSON.parse(body)
2394
+ if response['Response'].key?('Error') == false
2395
+ model = ModifyDefaultStorageRegionResponse.new
2396
+ model.deserialize(response['Response'])
2397
+ model
2398
+ else
2399
+ code = response['Response']['Error']['Code']
2400
+ message = response['Response']['Error']['Message']
2401
+ reqid = response['Response']['RequestId']
2402
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
2403
+ end
2404
+ rescue TencentCloud::Common::TencentCloudSDKException => e
2405
+ raise e
2406
+ rescue StandardError => e
2407
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2408
+ end
2409
+
2333
2410
  # 腾讯云点播为客户提供了媒体上传、媒体管理、媒体处理等等服务,在这些服务执行过程或执行结束时,腾讯云点播也提供各种对应的事件通知,方便开发者感知服务处理状态,并做下一步的业务操作。
2334
2411
 
2335
2412
  # 开发者可以通过调用本接口来实现:
@@ -5953,6 +5953,42 @@ module TencentCloud
5953
5953
  end
5954
5954
  end
5955
5955
 
5956
+ # CreateStorageRegion请求参数结构体
5957
+ class CreateStorageRegionRequest < TencentCloud::Common::AbstractModel
5958
+ # @param StorageRegion: 待开通的存储地域,必须是系统支持的地域。
5959
+ # @type StorageRegion: String
5960
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
5961
+ # @type SubAppId: Integer
5962
+
5963
+ attr_accessor :StorageRegion, :SubAppId
5964
+
5965
+ def initialize(storageregion=nil, subappid=nil)
5966
+ @StorageRegion = storageregion
5967
+ @SubAppId = subappid
5968
+ end
5969
+
5970
+ def deserialize(params)
5971
+ @StorageRegion = params['StorageRegion']
5972
+ @SubAppId = params['SubAppId']
5973
+ end
5974
+ end
5975
+
5976
+ # CreateStorageRegion返回参数结构体
5977
+ class CreateStorageRegionResponse < TencentCloud::Common::AbstractModel
5978
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5979
+ # @type RequestId: String
5980
+
5981
+ attr_accessor :RequestId
5982
+
5983
+ def initialize(requestid=nil)
5984
+ @RequestId = requestid
5985
+ end
5986
+
5987
+ def deserialize(params)
5988
+ @RequestId = params['RequestId']
5989
+ end
5990
+ end
5991
+
5956
5992
  # CreateSubAppId请求参数结构体
5957
5993
  class CreateSubAppIdRequest < TencentCloud::Common::AbstractModel
5958
5994
  # @param Name: 子应用名称,长度限制:40个字符。
@@ -8928,6 +8964,49 @@ module TencentCloud
8928
8964
  end
8929
8965
  end
8930
8966
 
8967
+ # DescribeStorageRegions请求参数结构体
8968
+ class DescribeStorageRegionsRequest < TencentCloud::Common::AbstractModel
8969
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
8970
+ # @type SubAppId: Integer
8971
+
8972
+ attr_accessor :SubAppId
8973
+
8974
+ def initialize(subappid=nil)
8975
+ @SubAppId = subappid
8976
+ end
8977
+
8978
+ def deserialize(params)
8979
+ @SubAppId = params['SubAppId']
8980
+ end
8981
+ end
8982
+
8983
+ # DescribeStorageRegions返回参数结构体
8984
+ class DescribeStorageRegionsResponse < TencentCloud::Common::AbstractModel
8985
+ # @param StorageRegionInfos: 存储地域信息列表。
8986
+ # @type StorageRegionInfos: Array
8987
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
8988
+ # @type RequestId: String
8989
+
8990
+ attr_accessor :StorageRegionInfos, :RequestId
8991
+
8992
+ def initialize(storageregioninfos=nil, requestid=nil)
8993
+ @StorageRegionInfos = storageregioninfos
8994
+ @RequestId = requestid
8995
+ end
8996
+
8997
+ def deserialize(params)
8998
+ unless params['StorageRegionInfos'].nil?
8999
+ @StorageRegionInfos = []
9000
+ params['StorageRegionInfos'].each do |i|
9001
+ storageregioninfo_tmp = StorageRegionInfo.new
9002
+ storageregioninfo_tmp.deserialize(i)
9003
+ @StorageRegionInfos << storageregioninfo_tmp
9004
+ end
9005
+ end
9006
+ @RequestId = params['RequestId']
9007
+ end
9008
+ end
9009
+
8931
9010
  # DescribeSubAppIds请求参数结构体
8932
9011
  class DescribeSubAppIdsRequest < TencentCloud::Common::AbstractModel
8933
9012
  # @param Name: 子应用名称。
@@ -13775,6 +13854,42 @@ module TencentCloud
13775
13854
  end
13776
13855
  end
13777
13856
 
13857
+ # ModifyDefaultStorageRegion请求参数结构体
13858
+ class ModifyDefaultStorageRegionRequest < TencentCloud::Common::AbstractModel
13859
+ # @param StorageRegion: 默认的存储地域,必须是已经开通的地域」,建议改成「默认的存储地域,必须是已经开通的地域(通过 DescribeStorageRegions 接口查询)。
13860
+ # @type StorageRegion: String
13861
+ # @param SubAppId: 点播[子应用](/document/product/266/14574) ID。如果要访问子应用中的资源,则将该字段填写为子应用 ID;否则无需填写该字段。
13862
+ # @type SubAppId: Integer
13863
+
13864
+ attr_accessor :StorageRegion, :SubAppId
13865
+
13866
+ def initialize(storageregion=nil, subappid=nil)
13867
+ @StorageRegion = storageregion
13868
+ @SubAppId = subappid
13869
+ end
13870
+
13871
+ def deserialize(params)
13872
+ @StorageRegion = params['StorageRegion']
13873
+ @SubAppId = params['SubAppId']
13874
+ end
13875
+ end
13876
+
13877
+ # ModifyDefaultStorageRegion返回参数结构体
13878
+ class ModifyDefaultStorageRegionResponse < TencentCloud::Common::AbstractModel
13879
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
13880
+ # @type RequestId: String
13881
+
13882
+ attr_accessor :RequestId
13883
+
13884
+ def initialize(requestid=nil)
13885
+ @RequestId = requestid
13886
+ end
13887
+
13888
+ def deserialize(params)
13889
+ @RequestId = params['RequestId']
13890
+ end
13891
+ end
13892
+
13778
13893
  # ModifyEventConfig请求参数结构体
13779
13894
  class ModifyEventConfigRequest < TencentCloud::Common::AbstractModel
13780
13895
  # @param Mode: 接收事件通知的方式。
@@ -18078,6 +18193,36 @@ module TencentCloud
18078
18193
  end
18079
18194
  end
18080
18195
 
18196
+ # 存储地域信息
18197
+ class StorageRegionInfo < TencentCloud::Common::AbstractModel
18198
+ # @param Region: 存储地域
18199
+ # @type Region: String
18200
+ # @param Description: 存储地域描述信息
18201
+ # @type Description: String
18202
+ # @param Status: 状态,是否开通,取值有:
18203
+ # <li>opened:已经开通。</li>
18204
+ # <li>unopened:未开通。</li>
18205
+ # @type Status: String
18206
+ # @param IsDefault: 是否默认的存储地域,true:是;false:否
18207
+ # @type IsDefault: Boolean
18208
+
18209
+ attr_accessor :Region, :Description, :Status, :IsDefault
18210
+
18211
+ def initialize(region=nil, description=nil, status=nil, isdefault=nil)
18212
+ @Region = region
18213
+ @Description = description
18214
+ @Status = status
18215
+ @IsDefault = isdefault
18216
+ end
18217
+
18218
+ def deserialize(params)
18219
+ @Region = params['Region']
18220
+ @Description = params['Description']
18221
+ @Status = params['Status']
18222
+ @IsDefault = params['IsDefault']
18223
+ end
18224
+ end
18225
+
18081
18226
  # 云点播存储用量的分区统计数据
18082
18227
  class StorageStatData < TencentCloud::Common::AbstractModel
18083
18228
  # @param Area: 点播存储的计费区域,可能值:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-vod
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.294
4
+ version: 1.0.295
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common