tencentcloud-sdk-wedata 3.0.425 → 3.0.426

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: 1c441a5e5a563a6efc0929af0274ad815f6dcb20
4
- data.tar.gz: 9ed547536f5d89e32c2f3b66fd6698c890b0e648
3
+ metadata.gz: 73ffd070ae55a7a1ebee25771435bb75bfd679eb
4
+ data.tar.gz: 824d2337cfacb85b1124683ee9e5d82d06393a77
5
5
  SHA512:
6
- metadata.gz: 5602634b0394751f29f73c634893f8832dffdbe94d1a1315554879240bb34b4e7baeb56a743441b1826915ef493da345598cd9a997de6776b5b62957cba78a87
7
- data.tar.gz: 9498265680d6d51a2705f8df577ba78f6e996763e16afc46bddb0b84d5cfb37930c77b8e14635f2d8f73ffdbeae5563de49e8d183f03acecc436b2b8bd49985f
6
+ metadata.gz: 85f4216b1a7d6676a9f36477d635463a43aff0143dc78e5f5a94c6354054164b255d9f54b140fc84359f73a87a9bd004b3497439d9ada77d8306736c789a96b1
7
+ data.tar.gz: 91225609e41c25de19da8749f71f512cc79707df9982475284de717f98ed56f97729a74ae89da0694a172aeb26233aa47a30897b874393e998f7865275164499
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.425
1
+ 3.0.426
@@ -104,6 +104,30 @@ module TencentCloud
104
104
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
105
105
  end
106
106
 
107
+ # 创建用户自定义函数
108
+
109
+ # @param request: Request instance for CreateCustomFunction.
110
+ # @type request: :class:`Tencentcloud::wedata::V20210820::CreateCustomFunctionRequest`
111
+ # @rtype: :class:`Tencentcloud::wedata::V20210820::CreateCustomFunctionResponse`
112
+ def CreateCustomFunction(request)
113
+ body = send_request('CreateCustomFunction', request.serialize)
114
+ response = JSON.parse(body)
115
+ if response['Response'].key?('Error') == false
116
+ model = CreateCustomFunctionResponse.new
117
+ model.deserialize(response['Response'])
118
+ model
119
+ else
120
+ code = response['Response']['Error']['Code']
121
+ message = response['Response']['Error']['Message']
122
+ reqid = response['Response']['RequestId']
123
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
124
+ end
125
+ rescue TencentCloud::Common::TencentCloudSDKException => e
126
+ raise e
127
+ rescue StandardError => e
128
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
129
+ end
130
+
107
131
  # <p style="color:red;">[注意:该Beta版本只满足广州区部分白名单客户使用]</p>
108
132
  # 创建数据源
109
133
 
@@ -358,6 +358,68 @@ module TencentCloud
358
358
  end
359
359
  end
360
360
 
361
+ # CreateCustomFunction请求参数结构体
362
+ class CreateCustomFunctionRequest < TencentCloud::Common::AbstractModel
363
+ # @param Type: 类型:HIVE、SPARK
364
+ # @type Type: String
365
+ # @param Kind: 分类:窗口函数、聚合函数、日期函数......
366
+ # @type Kind: String
367
+ # @param Name: 函数名称
368
+ # @type Name: String
369
+ # @param ClusterIdentifier: 集群实例引擎 ID
370
+ # @type ClusterIdentifier: String
371
+ # @param DbName: 数据库名称
372
+ # @type DbName: String
373
+ # @param ProjectId: 项目ID
374
+ # @type ProjectId: String
375
+
376
+ attr_accessor :Type, :Kind, :Name, :ClusterIdentifier, :DbName, :ProjectId
377
+
378
+ def initialize(type=nil, kind=nil, name=nil, clusteridentifier=nil, dbname=nil, projectid=nil)
379
+ @Type = type
380
+ @Kind = kind
381
+ @Name = name
382
+ @ClusterIdentifier = clusteridentifier
383
+ @DbName = dbname
384
+ @ProjectId = projectid
385
+ end
386
+
387
+ def deserialize(params)
388
+ @Type = params['Type']
389
+ @Kind = params['Kind']
390
+ @Name = params['Name']
391
+ @ClusterIdentifier = params['ClusterIdentifier']
392
+ @DbName = params['DbName']
393
+ @ProjectId = params['ProjectId']
394
+ end
395
+ end
396
+
397
+ # CreateCustomFunction返回参数结构体
398
+ class CreateCustomFunctionResponse < TencentCloud::Common::AbstractModel
399
+ # @param FunctionId: 函数唯一标识
400
+ # 注意:此字段可能返回 null,表示取不到有效值。
401
+ # @type FunctionId: String
402
+ # @param ErrorMessage: 无
403
+ # 注意:此字段可能返回 null,表示取不到有效值。
404
+ # @type ErrorMessage: String
405
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
406
+ # @type RequestId: String
407
+
408
+ attr_accessor :FunctionId, :ErrorMessage, :RequestId
409
+
410
+ def initialize(functionid=nil, errormessage=nil, requestid=nil)
411
+ @FunctionId = functionid
412
+ @ErrorMessage = errormessage
413
+ @RequestId = requestid
414
+ end
415
+
416
+ def deserialize(params)
417
+ @FunctionId = params['FunctionId']
418
+ @ErrorMessage = params['ErrorMessage']
419
+ @RequestId = params['RequestId']
420
+ end
421
+ end
422
+
361
423
  # CreateDataSource请求参数结构体
362
424
  class CreateDataSourceRequest < TencentCloud::Common::AbstractModel
363
425
  # @param Name: 数据源名称,在相同SpaceName下,数据源名称不能为空
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-wedata
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.425
4
+ version: 3.0.426
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-10-11 00:00:00.000000000 Z
11
+ date: 2022-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common