tencentcloud-sdk-oceanus 3.0.677 → 3.0.679

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: a1bcc5fbb5007b39e1e624241de63ddaf2005a0e
4
- data.tar.gz: 155f0ec9e510ca636ea7baea34be1c8eac927d36
3
+ metadata.gz: d7a885a7724240cefc72cf44178d252544dc12b9
4
+ data.tar.gz: a478ec610f0a039906a28fa5702845fe609156db
5
5
  SHA512:
6
- metadata.gz: 3bb91806cc887bcb90b30b94fe32a14a4ddcdd80ab38ac515186dbd90a2c728ac345aac63e7dd40e974a753b5a4f65b4a1817ecb05b3401757bb25fd834242c0
7
- data.tar.gz: 4205c78c19265e73cec91d37b718a7c328ab046744513347b95a89e1a9d91680aa5e1f65bd539a0468434d251b7893e77574a3d3ebea40f3d322926f6cf27b2e
6
+ metadata.gz: d582852da837f16c81004f763314e6037274a393bd5714a9e853077b2d0d5f8dcc0a7198b3c14ea2610aa1a50c7590a8743c5b964d420eb266a744e6213cf727
7
+ data.tar.gz: 3870b6fae586110a6a363a47a44ec2d523924efa291853391eb5ae8780ee4f40ae7c4b24331b90fcde26a8768c0de9484cc36b84de4e5962fdf4ab0d70198a37
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.677
1
+ 3.0.679
@@ -581,6 +581,30 @@ module TencentCloud
581
581
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
582
  end
583
583
 
584
+ # 查询Sql Gateway的Statement执行结果
585
+
586
+ # @param request: Request instance for FetchSqlGatewayStatementResult.
587
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::FetchSqlGatewayStatementResultRequest`
588
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::FetchSqlGatewayStatementResultResponse`
589
+ def FetchSqlGatewayStatementResult(request)
590
+ body = send_request('FetchSqlGatewayStatementResult', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = FetchSqlGatewayStatementResultResponse.new
594
+ model.deserialize(response['Response'])
595
+ model
596
+ else
597
+ code = response['Response']['Error']['Code']
598
+ message = response['Response']['Error']['Message']
599
+ reqid = response['Response']['RequestId']
600
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
601
+ end
602
+ rescue TencentCloud::Common::TencentCloudSDKException => e
603
+ raise e
604
+ rescue StandardError => e
605
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
606
+ end
607
+
584
608
  # 更新作业属性,仅允许以下3种操作,不支持组合操作:
585
609
  # (1) 更新作业名称
586
610
  # (2) 更新作业备注
@@ -638,6 +662,30 @@ module TencentCloud
638
662
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
639
663
  end
640
664
 
665
+ # 通过Sql gateway执行satement
666
+
667
+ # @param request: Request instance for RunSqlGatewayStatement.
668
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::RunSqlGatewayStatementRequest`
669
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::RunSqlGatewayStatementResponse`
670
+ def RunSqlGatewayStatement(request)
671
+ body = send_request('RunSqlGatewayStatement', request.serialize)
672
+ response = JSON.parse(body)
673
+ if response['Response'].key?('Error') == false
674
+ model = RunSqlGatewayStatementResponse.new
675
+ model.deserialize(response['Response'])
676
+ model
677
+ else
678
+ code = response['Response']['Error']['Code']
679
+ message = response['Response']['Error']['Message']
680
+ reqid = response['Response']['RequestId']
681
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
682
+ end
683
+ rescue TencentCloud::Common::TencentCloudSDKException => e
684
+ raise e
685
+ rescue StandardError => e
686
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
687
+ end
688
+
641
689
  # 批量停止作业,批量操作数量上限为20
642
690
 
643
691
  # @param request: Request instance for StopJobs.
@@ -2147,6 +2147,83 @@ module TencentCloud
2147
2147
  end
2148
2148
  end
2149
2149
 
2150
+ # FetchSqlGatewayStatementResult请求参数结构体
2151
+ class FetchSqlGatewayStatementResultRequest < TencentCloud::Common::AbstractModel
2152
+ # @param ClusterId: 集群ID
2153
+ # @type ClusterId: String
2154
+ # @param SessionId: Sql Gateway会话ID
2155
+ # @type SessionId: String
2156
+ # @param OperationHandleId: sql的查询id
2157
+ # @type OperationHandleId: String
2158
+ # @param ResultUri: 下一条结果的获取url,首次获取执行结果时可以为空,当获取下一批查询结果时需要传递
2159
+ # @type ResultUri: String
2160
+
2161
+ attr_accessor :ClusterId, :SessionId, :OperationHandleId, :ResultUri
2162
+
2163
+ def initialize(clusterid=nil, sessionid=nil, operationhandleid=nil, resulturi=nil)
2164
+ @ClusterId = clusterid
2165
+ @SessionId = sessionid
2166
+ @OperationHandleId = operationhandleid
2167
+ @ResultUri = resulturi
2168
+ end
2169
+
2170
+ def deserialize(params)
2171
+ @ClusterId = params['ClusterId']
2172
+ @SessionId = params['SessionId']
2173
+ @OperationHandleId = params['OperationHandleId']
2174
+ @ResultUri = params['ResultUri']
2175
+ end
2176
+ end
2177
+
2178
+ # FetchSqlGatewayStatementResult返回参数结构体
2179
+ class FetchSqlGatewayStatementResultResponse < TencentCloud::Common::AbstractModel
2180
+ # @param ErrorMessage: 错误信息
2181
+ # 注意:此字段可能返回 null,表示取不到有效值。
2182
+ # @type ErrorMessage: Array
2183
+ # @param ResultType: 返回类型
2184
+ # 注意:此字段可能返回 null,表示取不到有效值。
2185
+ # @type ResultType: String
2186
+ # @param IsQueryResult: 是否DQL结果
2187
+ # 注意:此字段可能返回 null,表示取不到有效值。
2188
+ # @type IsQueryResult: Boolean
2189
+ # @param ResultKind: 结果类型
2190
+ # 注意:此字段可能返回 null,表示取不到有效值。
2191
+ # @type ResultKind: String
2192
+ # @param Results: 结果
2193
+ # 注意:此字段可能返回 null,表示取不到有效值。
2194
+ # @type Results: :class:`Tencentcloud::Oceanus.v20190422.models.StatementResult`
2195
+ # @param NextResultUri: 下一次请求的uri
2196
+ # 注意:此字段可能返回 null,表示取不到有效值。
2197
+ # @type NextResultUri: String
2198
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
2199
+ # @type RequestId: String
2200
+
2201
+ attr_accessor :ErrorMessage, :ResultType, :IsQueryResult, :ResultKind, :Results, :NextResultUri, :RequestId
2202
+
2203
+ def initialize(errormessage=nil, resulttype=nil, isqueryresult=nil, resultkind=nil, results=nil, nextresulturi=nil, requestid=nil)
2204
+ @ErrorMessage = errormessage
2205
+ @ResultType = resulttype
2206
+ @IsQueryResult = isqueryresult
2207
+ @ResultKind = resultkind
2208
+ @Results = results
2209
+ @NextResultUri = nextresulturi
2210
+ @RequestId = requestid
2211
+ end
2212
+
2213
+ def deserialize(params)
2214
+ @ErrorMessage = params['ErrorMessage']
2215
+ @ResultType = params['ResultType']
2216
+ @IsQueryResult = params['IsQueryResult']
2217
+ @ResultKind = params['ResultKind']
2218
+ unless params['Results'].nil?
2219
+ @Results = StatementResult.new
2220
+ @Results.deserialize(params['Results'])
2221
+ end
2222
+ @NextResultUri = params['NextResultUri']
2223
+ @RequestId = params['RequestId']
2224
+ end
2225
+ end
2226
+
2150
2227
  # 查询作业列表时的过滤器
2151
2228
  class Filter < TencentCloud::Common::AbstractModel
2152
2229
  # @param Name: 要过滤的字段
@@ -2681,6 +2758,33 @@ module TencentCloud
2681
2758
  end
2682
2759
  end
2683
2760
 
2761
+ # SqlGateway返回LogicalType类型
2762
+ class LogicalType < TencentCloud::Common::AbstractModel
2763
+ # @param Type: 类型
2764
+ # 注意:此字段可能返回 null,表示取不到有效值。
2765
+ # @type Type: String
2766
+ # @param NullAble: 是否允许为空
2767
+ # 注意:此字段可能返回 null,表示取不到有效值。
2768
+ # @type NullAble: Boolean
2769
+ # @param Length: 长度
2770
+ # 注意:此字段可能返回 null,表示取不到有效值。
2771
+ # @type Length: Integer
2772
+
2773
+ attr_accessor :Type, :NullAble, :Length
2774
+
2775
+ def initialize(type=nil, nullable=nil, length=nil)
2776
+ @Type = type
2777
+ @NullAble = nullable
2778
+ @Length = length
2779
+ end
2780
+
2781
+ def deserialize(params)
2782
+ @Type = params['Type']
2783
+ @NullAble = params['NullAble']
2784
+ @Length = params['Length']
2785
+ end
2786
+ end
2787
+
2684
2788
  # ModifyJob请求参数结构体
2685
2789
  class ModifyJobRequest < TencentCloud::Common::AbstractModel
2686
2790
  # @param JobId: 作业Id
@@ -3158,6 +3262,58 @@ module TencentCloud
3158
3262
  end
3159
3263
  end
3160
3264
 
3265
+ # Sql Gateway返回Column类型
3266
+ class ResultColumn < TencentCloud::Common::AbstractModel
3267
+ # @param Name: 名称
3268
+ # 注意:此字段可能返回 null,表示取不到有效值。
3269
+ # @type Name: String
3270
+ # @param LogicalType: 本地类型描述
3271
+ # 注意:此字段可能返回 null,表示取不到有效值。
3272
+ # @type LogicalType: :class:`Tencentcloud::Oceanus.v20190422.models.LogicalType`
3273
+ # @param Comment: 备注
3274
+ # 注意:此字段可能返回 null,表示取不到有效值。
3275
+ # @type Comment: String
3276
+
3277
+ attr_accessor :Name, :LogicalType, :Comment
3278
+
3279
+ def initialize(name=nil, logicaltype=nil, comment=nil)
3280
+ @Name = name
3281
+ @LogicalType = logicaltype
3282
+ @Comment = comment
3283
+ end
3284
+
3285
+ def deserialize(params)
3286
+ @Name = params['Name']
3287
+ unless params['LogicalType'].nil?
3288
+ @LogicalType = LogicalType.new
3289
+ @LogicalType.deserialize(params['LogicalType'])
3290
+ end
3291
+ @Comment = params['Comment']
3292
+ end
3293
+ end
3294
+
3295
+ # Sql Gateway返回数据
3296
+ class ResultData < TencentCloud::Common::AbstractModel
3297
+ # @param Kind: 操作类型
3298
+ # 注意:此字段可能返回 null,表示取不到有效值。
3299
+ # @type Kind: String
3300
+ # @param Fields: 结果
3301
+ # 注意:此字段可能返回 null,表示取不到有效值。
3302
+ # @type Fields: Array
3303
+
3304
+ attr_accessor :Kind, :Fields
3305
+
3306
+ def initialize(kind=nil, fields=nil)
3307
+ @Kind = kind
3308
+ @Fields = fields
3309
+ end
3310
+
3311
+ def deserialize(params)
3312
+ @Kind = params['Kind']
3313
+ @Fields = params['Fields']
3314
+ end
3315
+ end
3316
+
3161
3317
  # 角色授权信息
3162
3318
  class RoleAuth < TencentCloud::Common::AbstractModel
3163
3319
  # @param AppId: 用户 AppID
@@ -3310,6 +3466,59 @@ module TencentCloud
3310
3466
  end
3311
3467
  end
3312
3468
 
3469
+ # RunSqlGatewayStatement请求参数结构体
3470
+ class RunSqlGatewayStatementRequest < TencentCloud::Common::AbstractModel
3471
+ # @param ClusterId: 集群ID
3472
+ # @type ClusterId: String
3473
+ # @param Sql: 需要执行的sql,该sql会被Sql Gateway执行,当前支持的是paimon修改需求,因此主要是DDL语句
3474
+ # @type Sql: String
3475
+ # @param SessionId: Sql Gateway会话ID,可不填,如果不填则会自动创建一个会话ID,每个会话ID都有一个存活时间,测试环境为10分钟,线上默认是30分钟
3476
+ # @type SessionId: String
3477
+
3478
+ attr_accessor :ClusterId, :Sql, :SessionId
3479
+
3480
+ def initialize(clusterid=nil, sql=nil, sessionid=nil)
3481
+ @ClusterId = clusterid
3482
+ @Sql = sql
3483
+ @SessionId = sessionid
3484
+ end
3485
+
3486
+ def deserialize(params)
3487
+ @ClusterId = params['ClusterId']
3488
+ @Sql = params['Sql']
3489
+ @SessionId = params['SessionId']
3490
+ end
3491
+ end
3492
+
3493
+ # RunSqlGatewayStatement返回参数结构体
3494
+ class RunSqlGatewayStatementResponse < TencentCloud::Common::AbstractModel
3495
+ # @param ErrorMessage: 错误信息
3496
+ # 注意:此字段可能返回 null,表示取不到有效值。
3497
+ # @type ErrorMessage: Array
3498
+ # @param SessionId: 会话id,若入参未传,则返回自动创建的会话id,若入参已经传递,则返回值与原传入值一致
3499
+ # @type SessionId: String
3500
+ # @param OperationHandleId: 返回执行id,可以根据该执行id和会话id获取执行结果
3501
+ # @type OperationHandleId: String
3502
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3503
+ # @type RequestId: String
3504
+
3505
+ attr_accessor :ErrorMessage, :SessionId, :OperationHandleId, :RequestId
3506
+
3507
+ def initialize(errormessage=nil, sessionid=nil, operationhandleid=nil, requestid=nil)
3508
+ @ErrorMessage = errormessage
3509
+ @SessionId = sessionid
3510
+ @OperationHandleId = operationhandleid
3511
+ @RequestId = requestid
3512
+ end
3513
+
3514
+ def deserialize(params)
3515
+ @ErrorMessage = params['ErrorMessage']
3516
+ @SessionId = params['SessionId']
3517
+ @OperationHandleId = params['OperationHandleId']
3518
+ @RequestId = params['RequestId']
3519
+ end
3520
+ end
3521
+
3313
3522
  # 描述Savepoint信息
3314
3523
  class Savepoint < TencentCloud::Common::AbstractModel
3315
3524
  # @param Id: 主键
@@ -3525,6 +3734,47 @@ module TencentCloud
3525
3734
  end
3526
3735
  end
3527
3736
 
3737
+ # Sql Gateway 返回Result结构类型
3738
+ class StatementResult < TencentCloud::Common::AbstractModel
3739
+ # @param Columns: 返回结果列
3740
+ # 注意:此字段可能返回 null,表示取不到有效值。
3741
+ # @type Columns: Array
3742
+ # @param RowFormat: 格式
3743
+ # 注意:此字段可能返回 null,表示取不到有效值。
3744
+ # @type RowFormat: String
3745
+ # @param Data: 结果值
3746
+ # 注意:此字段可能返回 null,表示取不到有效值。
3747
+ # @type Data: Array
3748
+
3749
+ attr_accessor :Columns, :RowFormat, :Data
3750
+
3751
+ def initialize(columns=nil, rowformat=nil, data=nil)
3752
+ @Columns = columns
3753
+ @RowFormat = rowformat
3754
+ @Data = data
3755
+ end
3756
+
3757
+ def deserialize(params)
3758
+ unless params['Columns'].nil?
3759
+ @Columns = []
3760
+ params['Columns'].each do |i|
3761
+ resultcolumn_tmp = ResultColumn.new
3762
+ resultcolumn_tmp.deserialize(i)
3763
+ @Columns << resultcolumn_tmp
3764
+ end
3765
+ end
3766
+ @RowFormat = params['RowFormat']
3767
+ unless params['Data'].nil?
3768
+ @Data = []
3769
+ params['Data'].each do |i|
3770
+ resultdata_tmp = ResultData.new
3771
+ resultdata_tmp.deserialize(i)
3772
+ @Data << resultdata_tmp
3773
+ end
3774
+ end
3775
+ end
3776
+ end
3777
+
3528
3778
  # 停止作业的描述信息
3529
3779
  class StopJobDescription < TencentCloud::Common::AbstractModel
3530
3780
  # @param JobId: 作业Id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-oceanus
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.677
4
+ version: 3.0.679
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-16 00:00:00.000000000 Z
11
+ date: 2023-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common
@@ -33,9 +33,9 @@ executables: []
33
33
  extensions: []
34
34
  extra_rdoc_files: []
35
35
  files:
36
- - lib/tencentcloud-sdk-oceanus.rb
37
- - lib/v20190422/client.rb
38
36
  - lib/v20190422/models.rb
37
+ - lib/v20190422/client.rb
38
+ - lib/tencentcloud-sdk-oceanus.rb
39
39
  - lib/VERSION
40
40
  homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
41
41
  licenses: