tencentcloud-sdk-oceanus 1.0.325 → 1.0.328
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 +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190422/client.rb +24 -0
- data/lib/v20190422/models.rb +59 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd9ba665e2190d8123605ab5518658a4a87757e1
|
|
4
|
+
data.tar.gz: 786e8ca937cc2a2f225646e38225452b538a09ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 18580797284e112b507f179d4b57e412512c35a4bbd2e9bca85186497e8ce1ad7c2189ff4d78ce16717df1a81e81b08051eb328149d65142c5bdad6da3f3243c
|
|
7
|
+
data.tar.gz: 0ba12588263f1a78c72ba4a2b1323253fe133ce629a1dfdbb4d61d0d4ca301c5633bccd592e2c4a196272b623a4b7d76542d4bdb05c5a334ad153d80e65aa81d
|
data/lib/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.0.
|
|
1
|
+
1.0.328
|
data/lib/v20190422/client.rb
CHANGED
|
@@ -437,6 +437,30 @@ module TencentCloud
|
|
|
437
437
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
438
438
|
end
|
|
439
439
|
|
|
440
|
+
# 触发Savepoint
|
|
441
|
+
|
|
442
|
+
# @param request: Request instance for TriggerJobSavepoint.
|
|
443
|
+
# @type request: :class:`Tencentcloud::oceanus::V20190422::TriggerJobSavepointRequest`
|
|
444
|
+
# @rtype: :class:`Tencentcloud::oceanus::V20190422::TriggerJobSavepointResponse`
|
|
445
|
+
def TriggerJobSavepoint(request)
|
|
446
|
+
body = send_request('TriggerJobSavepoint', request.serialize)
|
|
447
|
+
response = JSON.parse(body)
|
|
448
|
+
if response['Response'].key?('Error') == false
|
|
449
|
+
model = TriggerJobSavepointResponse.new
|
|
450
|
+
model.deserialize(response['Response'])
|
|
451
|
+
model
|
|
452
|
+
else
|
|
453
|
+
code = response['Response']['Error']['Code']
|
|
454
|
+
message = response['Response']['Error']['Message']
|
|
455
|
+
reqid = response['Response']['RequestId']
|
|
456
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
|
457
|
+
end
|
|
458
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
|
459
|
+
raise e
|
|
460
|
+
rescue StandardError => e
|
|
461
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
|
462
|
+
end
|
|
463
|
+
|
|
440
464
|
|
|
441
465
|
end
|
|
442
466
|
end
|
data/lib/v20190422/models.rb
CHANGED
|
@@ -1848,6 +1848,65 @@ module TencentCloud
|
|
|
1848
1848
|
end
|
|
1849
1849
|
end
|
|
1850
1850
|
|
|
1851
|
+
# TriggerJobSavepoint请求参数结构体
|
|
1852
|
+
class TriggerJobSavepointRequest < TencentCloud::Common::AbstractModel
|
|
1853
|
+
# @param JobId: 作业 SerialId
|
|
1854
|
+
# @type JobId: String
|
|
1855
|
+
# @param Description: 描述
|
|
1856
|
+
# @type Description: String
|
|
1857
|
+
# @param WorkSpaceId: 工作空间 SerialId
|
|
1858
|
+
# @type WorkSpaceId: String
|
|
1859
|
+
|
|
1860
|
+
attr_accessor :JobId, :Description, :WorkSpaceId
|
|
1861
|
+
|
|
1862
|
+
def initialize(jobid=nil, description=nil, workspaceid=nil)
|
|
1863
|
+
@JobId = jobid
|
|
1864
|
+
@Description = description
|
|
1865
|
+
@WorkSpaceId = workspaceid
|
|
1866
|
+
end
|
|
1867
|
+
|
|
1868
|
+
def deserialize(params)
|
|
1869
|
+
@JobId = params['JobId']
|
|
1870
|
+
@Description = params['Description']
|
|
1871
|
+
@WorkSpaceId = params['WorkSpaceId']
|
|
1872
|
+
end
|
|
1873
|
+
end
|
|
1874
|
+
|
|
1875
|
+
# TriggerJobSavepoint返回参数结构体
|
|
1876
|
+
class TriggerJobSavepointResponse < TencentCloud::Common::AbstractModel
|
|
1877
|
+
# @param SavepointTrigger: 是否成功
|
|
1878
|
+
# @type SavepointTrigger: Boolean
|
|
1879
|
+
# @param ErrorMsg: 错误消息
|
|
1880
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1881
|
+
# @type ErrorMsg: String
|
|
1882
|
+
# @param FinalSavepointPath: 快照路径
|
|
1883
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1884
|
+
# @type FinalSavepointPath: String
|
|
1885
|
+
# @param SavepointId: 快照 ID
|
|
1886
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
|
1887
|
+
# @type SavepointId: String
|
|
1888
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1889
|
+
# @type RequestId: String
|
|
1890
|
+
|
|
1891
|
+
attr_accessor :SavepointTrigger, :ErrorMsg, :FinalSavepointPath, :SavepointId, :RequestId
|
|
1892
|
+
|
|
1893
|
+
def initialize(savepointtrigger=nil, errormsg=nil, finalsavepointpath=nil, savepointid=nil, requestid=nil)
|
|
1894
|
+
@SavepointTrigger = savepointtrigger
|
|
1895
|
+
@ErrorMsg = errormsg
|
|
1896
|
+
@FinalSavepointPath = finalsavepointpath
|
|
1897
|
+
@SavepointId = savepointid
|
|
1898
|
+
@RequestId = requestid
|
|
1899
|
+
end
|
|
1900
|
+
|
|
1901
|
+
def deserialize(params)
|
|
1902
|
+
@SavepointTrigger = params['SavepointTrigger']
|
|
1903
|
+
@ErrorMsg = params['ErrorMsg']
|
|
1904
|
+
@FinalSavepointPath = params['FinalSavepointPath']
|
|
1905
|
+
@SavepointId = params['SavepointId']
|
|
1906
|
+
@RequestId = params['RequestId']
|
|
1907
|
+
end
|
|
1908
|
+
end
|
|
1909
|
+
|
|
1851
1910
|
end
|
|
1852
1911
|
end
|
|
1853
1912
|
end
|
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.
|
|
4
|
+
version: 1.0.328
|
|
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-06-
|
|
11
|
+
date: 2022-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: tencentcloud-sdk-common
|