tencentcloud-sdk-oceanus 1.0.316 → 1.0.317

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 490d4981119d53176c1ebba4d441852b42e5e0ab
4
- data.tar.gz: 02d2bb845719b238791c890c0c16cf5907e0d561
3
+ metadata.gz: 676a11e20ee2b824c2024f0487883a072a311855
4
+ data.tar.gz: 132a2e5d9a44a5a48655ea268c679f2305412832
5
5
  SHA512:
6
- metadata.gz: 2235efad248e6f48a1b6b5fbda5dafef64317fbcc99c64579d8baccc314a836313a8467d508b09fcb55200398ba739b035b922c4dbc519fbff1e4c6614019d7c
7
- data.tar.gz: 35a093ba3704776bc01f51413c8c4bf6798816c0b38d50a591de09aeed02ca6b616b3eba014b0c939cf0ce315bccef21408f0bcfc8b7ceb559e544ac53517826
6
+ metadata.gz: cf769e94b75b175673bbfdc514d0cb02778e15f61c646f819f05260d219a4ee91c3abe02055151c50c5f3265a05016f246e6c24de875768b372fc6cbe917feb3
7
+ data.tar.gz: 6abfb8f32500698039988df70fa9e796cd4634f85940b625e4bcc297bc512b921835583a54176c3847b8e6948b4b95120eee5384201d4e10bb42368ea5eea87c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.316
1
+ 1.0.317
@@ -29,6 +29,30 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 检查快照是否可用
33
+
34
+ # @param request: Request instance for CheckSavepoint.
35
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::CheckSavepointRequest`
36
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::CheckSavepointResponse`
37
+ def CheckSavepoint(request)
38
+ body = send_request('CheckSavepoint', request.serialize)
39
+ response = JSON.parse(body)
40
+ if response['Response'].key?('Error') == false
41
+ model = CheckSavepointResponse.new
42
+ model.deserialize(response['Response'])
43
+ model
44
+ else
45
+ code = response['Response']['Error']['Code']
46
+ message = response['Response']['Error']['Message']
47
+ reqid = response['Response']['RequestId']
48
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
49
+ end
50
+ rescue TencentCloud::Common::TencentCloudSDKException => e
51
+ raise e
52
+ rescue StandardError => e
53
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
54
+ end
55
+
32
56
  # 新建作业接口,一个 AppId 最多允许创建1000个作业
33
57
 
34
58
  # @param request: Request instance for CreateJob.
@@ -221,6 +245,30 @@ module TencentCloud
221
245
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
222
246
  end
223
247
 
248
+ # 查找Savepoint列表
249
+
250
+ # @param request: Request instance for DescribeJobSavepoint.
251
+ # @type request: :class:`Tencentcloud::oceanus::V20190422::DescribeJobSavepointRequest`
252
+ # @rtype: :class:`Tencentcloud::oceanus::V20190422::DescribeJobSavepointResponse`
253
+ def DescribeJobSavepoint(request)
254
+ body = send_request('DescribeJobSavepoint', request.serialize)
255
+ response = JSON.parse(body)
256
+ if response['Response'].key?('Error') == false
257
+ model = DescribeJobSavepointResponse.new
258
+ model.deserialize(response['Response'])
259
+ model
260
+ else
261
+ code = response['Response']['Error']['Code']
262
+ message = response['Response']['Error']['Message']
263
+ reqid = response['Response']['RequestId']
264
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
265
+ end
266
+ rescue TencentCloud::Common::TencentCloudSDKException => e
267
+ raise e
268
+ rescue StandardError => e
269
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
+ end
271
+
224
272
  # 查询作业
225
273
 
226
274
  # @param request: Request instance for DescribeJobs.
@@ -17,6 +17,62 @@
17
17
  module TencentCloud
18
18
  module Oceanus
19
19
  module V20190422
20
+ # CheckSavepoint请求参数结构体
21
+ class CheckSavepointRequest < TencentCloud::Common::AbstractModel
22
+ # @param JobId: 作业 id
23
+ # @type JobId: String
24
+ # @param SerialId: 快照资源 id
25
+ # @type SerialId: String
26
+ # @param RecordType: 快照类型 1: savepoint;2: checkpoint;3: cancelWithSavepoint
27
+ # @type RecordType: Integer
28
+ # @param SavepointPath: 快照路径,目前只支持 cos 路径
29
+ # @type SavepointPath: String
30
+ # @param WorkSpaceId: 工作空间 id
31
+ # @type WorkSpaceId: String
32
+
33
+ attr_accessor :JobId, :SerialId, :RecordType, :SavepointPath, :WorkSpaceId
34
+
35
+ def initialize(jobid=nil, serialid=nil, recordtype=nil, savepointpath=nil, workspaceid=nil)
36
+ @JobId = jobid
37
+ @SerialId = serialid
38
+ @RecordType = recordtype
39
+ @SavepointPath = savepointpath
40
+ @WorkSpaceId = workspaceid
41
+ end
42
+
43
+ def deserialize(params)
44
+ @JobId = params['JobId']
45
+ @SerialId = params['SerialId']
46
+ @RecordType = params['RecordType']
47
+ @SavepointPath = params['SavepointPath']
48
+ @WorkSpaceId = params['WorkSpaceId']
49
+ end
50
+ end
51
+
52
+ # CheckSavepoint返回参数结构体
53
+ class CheckSavepointResponse < TencentCloud::Common::AbstractModel
54
+ # @param SerialId: 资源 id
55
+ # @type SerialId: String
56
+ # @param SavepointStatus: 1=可用,2=不可用
57
+ # @type SavepointStatus: Integer
58
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
59
+ # @type RequestId: String
60
+
61
+ attr_accessor :SerialId, :SavepointStatus, :RequestId
62
+
63
+ def initialize(serialid=nil, savepointstatus=nil, requestid=nil)
64
+ @SerialId = serialid
65
+ @SavepointStatus = savepointstatus
66
+ @RequestId = requestid
67
+ end
68
+
69
+ def deserialize(params)
70
+ @SerialId = params['SerialId']
71
+ @SavepointStatus = params['SavepointStatus']
72
+ @RequestId = params['RequestId']
73
+ end
74
+ end
75
+
20
76
  # CreateJobConfig请求参数结构体
21
77
  class CreateJobConfigRequest < TencentCloud::Common::AbstractModel
22
78
  # @param JobId: 作业Id
@@ -519,6 +575,84 @@ module TencentCloud
519
575
  end
520
576
  end
521
577
 
578
+ # DescribeJobSavepoint请求参数结构体
579
+ class DescribeJobSavepointRequest < TencentCloud::Common::AbstractModel
580
+ # @param JobId: 作业 SerialId
581
+ # @type JobId: String
582
+ # @param Limit: 分页参数,单页总数
583
+ # @type Limit: Integer
584
+ # @param Offset: 分页参数,偏移量
585
+ # @type Offset: Integer
586
+ # @param WorkSpaceId: 工作空间 SerialId
587
+ # @type WorkSpaceId: String
588
+
589
+ attr_accessor :JobId, :Limit, :Offset, :WorkSpaceId
590
+
591
+ def initialize(jobid=nil, limit=nil, offset=nil, workspaceid=nil)
592
+ @JobId = jobid
593
+ @Limit = limit
594
+ @Offset = offset
595
+ @WorkSpaceId = workspaceid
596
+ end
597
+
598
+ def deserialize(params)
599
+ @JobId = params['JobId']
600
+ @Limit = params['Limit']
601
+ @Offset = params['Offset']
602
+ @WorkSpaceId = params['WorkSpaceId']
603
+ end
604
+ end
605
+
606
+ # DescribeJobSavepoint返回参数结构体
607
+ class DescribeJobSavepointResponse < TencentCloud::Common::AbstractModel
608
+ # @param TotalNumber: 快照列表总数
609
+ # 注意:此字段可能返回 null,表示取不到有效值。
610
+ # @type TotalNumber: Integer
611
+ # @param Savepoint: 快照列表
612
+ # 注意:此字段可能返回 null,表示取不到有效值。
613
+ # @type Savepoint: Array
614
+ # @param RunningSavepoint: 进行中的快照列表
615
+ # 注意:此字段可能返回 null,表示取不到有效值。
616
+ # @type RunningSavepoint: Array
617
+ # @param RunningTotalNumber: 进行中的快照列表总数
618
+ # 注意:此字段可能返回 null,表示取不到有效值。
619
+ # @type RunningTotalNumber: Integer
620
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
621
+ # @type RequestId: String
622
+
623
+ attr_accessor :TotalNumber, :Savepoint, :RunningSavepoint, :RunningTotalNumber, :RequestId
624
+
625
+ def initialize(totalnumber=nil, savepoint=nil, runningsavepoint=nil, runningtotalnumber=nil, requestid=nil)
626
+ @TotalNumber = totalnumber
627
+ @Savepoint = savepoint
628
+ @RunningSavepoint = runningsavepoint
629
+ @RunningTotalNumber = runningtotalnumber
630
+ @RequestId = requestid
631
+ end
632
+
633
+ def deserialize(params)
634
+ @TotalNumber = params['TotalNumber']
635
+ unless params['Savepoint'].nil?
636
+ @Savepoint = []
637
+ params['Savepoint'].each do |i|
638
+ savepoint_tmp = Savepoint.new
639
+ savepoint_tmp.deserialize(i)
640
+ @Savepoint << savepoint_tmp
641
+ end
642
+ end
643
+ unless params['RunningSavepoint'].nil?
644
+ @RunningSavepoint = []
645
+ params['RunningSavepoint'].each do |i|
646
+ savepoint_tmp = Savepoint.new
647
+ savepoint_tmp.deserialize(i)
648
+ @RunningSavepoint << savepoint_tmp
649
+ end
650
+ end
651
+ @RunningTotalNumber = params['RunningTotalNumber']
652
+ @RequestId = params['RequestId']
653
+ end
654
+ end
655
+
522
656
  # DescribeJobs请求参数结构体
523
657
  class DescribeJobsRequest < TencentCloud::Common::AbstractModel
524
658
  # @param JobIds: 按照一个或者多个作业ID查询。作业ID形如:cql-11112222,每次请求的作业上限为100。参数不支持同时指定JobIds和Filters。
@@ -1543,6 +1677,78 @@ module TencentCloud
1543
1677
  end
1544
1678
  end
1545
1679
 
1680
+ # 描述Savepoint信息
1681
+ class Savepoint < TencentCloud::Common::AbstractModel
1682
+ # @param Id: 主键
1683
+ # 注意:此字段可能返回 null,表示取不到有效值。
1684
+ # @type Id: Integer
1685
+ # @param VersionId: 版本号
1686
+ # 注意:此字段可能返回 null,表示取不到有效值。
1687
+ # @type VersionId: Integer
1688
+ # @param Status: 状态 1: Active; 2: Expired; 3: InProgress; 4: Failed; 5: Timeout
1689
+ # 注意:此字段可能返回 null,表示取不到有效值。
1690
+ # @type Status: Integer
1691
+ # @param CreateTime: 创建时间
1692
+ # 注意:此字段可能返回 null,表示取不到有效值。
1693
+ # @type CreateTime: Integer
1694
+ # @param UpdateTime: 更新时间
1695
+ # 注意:此字段可能返回 null,表示取不到有效值。
1696
+ # @type UpdateTime: Integer
1697
+ # @param Path: 路径
1698
+ # 注意:此字段可能返回 null,表示取不到有效值。
1699
+ # @type Path: String
1700
+ # @param Size: 大小
1701
+ # 注意:此字段可能返回 null,表示取不到有效值。
1702
+ # @type Size: Integer
1703
+ # @param RecordType: 快照类型 1: savepoint;2: checkpoint;3: cancelWithSavepoint
1704
+ # 注意:此字段可能返回 null,表示取不到有效值。
1705
+ # @type RecordType: Integer
1706
+ # @param JobRuntimeId: 运行作业实例的顺序 ID
1707
+ # 注意:此字段可能返回 null,表示取不到有效值。
1708
+ # @type JobRuntimeId: Integer
1709
+ # @param Description: 描述
1710
+ # 注意:此字段可能返回 null,表示取不到有效值。
1711
+ # @type Description: String
1712
+ # @param Timeout: 固定超时时间
1713
+ # 注意:此字段可能返回 null,表示取不到有效值。
1714
+ # @type Timeout: Integer
1715
+ # @param SerialId: 快照 serialId
1716
+ # 注意:此字段可能返回 null,表示取不到有效值。
1717
+ # @type SerialId: String
1718
+
1719
+ attr_accessor :Id, :VersionId, :Status, :CreateTime, :UpdateTime, :Path, :Size, :RecordType, :JobRuntimeId, :Description, :Timeout, :SerialId
1720
+
1721
+ def initialize(id=nil, versionid=nil, status=nil, createtime=nil, updatetime=nil, path=nil, size=nil, recordtype=nil, jobruntimeid=nil, description=nil, timeout=nil, serialid=nil)
1722
+ @Id = id
1723
+ @VersionId = versionid
1724
+ @Status = status
1725
+ @CreateTime = createtime
1726
+ @UpdateTime = updatetime
1727
+ @Path = path
1728
+ @Size = size
1729
+ @RecordType = recordtype
1730
+ @JobRuntimeId = jobruntimeid
1731
+ @Description = description
1732
+ @Timeout = timeout
1733
+ @SerialId = serialid
1734
+ end
1735
+
1736
+ def deserialize(params)
1737
+ @Id = params['Id']
1738
+ @VersionId = params['VersionId']
1739
+ @Status = params['Status']
1740
+ @CreateTime = params['CreateTime']
1741
+ @UpdateTime = params['UpdateTime']
1742
+ @Path = params['Path']
1743
+ @Size = params['Size']
1744
+ @RecordType = params['RecordType']
1745
+ @JobRuntimeId = params['JobRuntimeId']
1746
+ @Description = params['Description']
1747
+ @Timeout = params['Timeout']
1748
+ @SerialId = params['SerialId']
1749
+ end
1750
+ end
1751
+
1546
1752
  # 停止作业的描述信息
1547
1753
  class StopJobDescription < TencentCloud::Common::AbstractModel
1548
1754
  # @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: 1.0.316
4
+ version: 1.0.317
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-05-19 00:00:00.000000000 Z
11
+ date: 2022-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common