tencentcloud-sdk-mongodb 3.0.798 → 3.0.800
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20190725/client.rb +25 -0
- data/lib/v20190725/models.rb +138 -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: d0cfcba24329f1217a4c49a6e1fffc3c91f6753c
|
4
|
+
data.tar.gz: 431089fdb8037814457ea6604995707b473a5c87
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e69d98c22ee6e65324648f77b91942f86623a0cf7f4828389936b15c74f55b6463459a4b5405b3e50e93903d0da5aba69ca292ce0ed2c61854f3dd1a87a8901
|
7
|
+
data.tar.gz: 0e42dcc37196c352b97a75f11445facdd501d94910a6bd08aa6808b4e9e53df3849242a1a26b3617e5c93d475a30f92d7fe5529c57fb6424a32b2fd6c4bad8ac
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.800
|
data/lib/v20190725/client.rb
CHANGED
@@ -533,6 +533,31 @@ module TencentCloud
|
|
533
533
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
534
534
|
end
|
535
535
|
|
536
|
+
# 该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
|
537
|
+
# **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
|
538
|
+
|
539
|
+
# @param request: Request instance for FlashBackDBInstance.
|
540
|
+
# @type request: :class:`Tencentcloud::mongodb::V20190725::FlashBackDBInstanceRequest`
|
541
|
+
# @rtype: :class:`Tencentcloud::mongodb::V20190725::FlashBackDBInstanceResponse`
|
542
|
+
def FlashBackDBInstance(request)
|
543
|
+
body = send_request('FlashBackDBInstance', request.serialize)
|
544
|
+
response = JSON.parse(body)
|
545
|
+
if response['Response'].key?('Error') == false
|
546
|
+
model = FlashBackDBInstanceResponse.new
|
547
|
+
model.deserialize(response['Response'])
|
548
|
+
model
|
549
|
+
else
|
550
|
+
code = response['Response']['Error']['Code']
|
551
|
+
message = response['Response']['Error']['Message']
|
552
|
+
reqid = response['Response']['RequestId']
|
553
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
554
|
+
end
|
555
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
556
|
+
raise e
|
557
|
+
rescue StandardError => e
|
558
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
559
|
+
end
|
560
|
+
|
536
561
|
# 在所有mongos上执行FlushRouterConfig命令
|
537
562
|
|
538
563
|
# @param request: Request instance for FlushInstanceRouterConfig.
|
data/lib/v20190725/models.rb
CHANGED
@@ -1829,6 +1829,144 @@ module TencentCloud
|
|
1829
1829
|
end
|
1830
1830
|
end
|
1831
1831
|
|
1832
|
+
# 按key回档,用于筛选数据的键值对
|
1833
|
+
class FBKeyValue < TencentCloud::Common::AbstractModel
|
1834
|
+
# @param Key: 用于按key回档过滤的key
|
1835
|
+
# @type Key: String
|
1836
|
+
# @param Value: 用于按key回档过滤的value
|
1837
|
+
# @type Value: String
|
1838
|
+
|
1839
|
+
attr_accessor :Key, :Value
|
1840
|
+
|
1841
|
+
def initialize(key=nil, value=nil)
|
1842
|
+
@Key = key
|
1843
|
+
@Value = value
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
def deserialize(params)
|
1847
|
+
@Key = params['Key']
|
1848
|
+
@Value = params['Value']
|
1849
|
+
end
|
1850
|
+
end
|
1851
|
+
|
1852
|
+
# FlashBackDBInstance请求参数结构体
|
1853
|
+
class FlashBackDBInstanceRequest < TencentCloud::Common::AbstractModel
|
1854
|
+
# @param InstanceId: 开启按 Key 回档的实例 ID。
|
1855
|
+
# @type InstanceId: String
|
1856
|
+
# @param TargetFlashbackTime: 源数据想恢复到的时间。
|
1857
|
+
# @type TargetFlashbackTime: String
|
1858
|
+
# @param TargetDatabases: 源数据所在的库表信息。
|
1859
|
+
# @type TargetDatabases: Array
|
1860
|
+
# @param TargetInstanceId: 数据最终写入的实例 ID。
|
1861
|
+
# @type TargetInstanceId: String
|
1862
|
+
|
1863
|
+
attr_accessor :InstanceId, :TargetFlashbackTime, :TargetDatabases, :TargetInstanceId
|
1864
|
+
|
1865
|
+
def initialize(instanceid=nil, targetflashbacktime=nil, targetdatabases=nil, targetinstanceid=nil)
|
1866
|
+
@InstanceId = instanceid
|
1867
|
+
@TargetFlashbackTime = targetflashbacktime
|
1868
|
+
@TargetDatabases = targetdatabases
|
1869
|
+
@TargetInstanceId = targetinstanceid
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
def deserialize(params)
|
1873
|
+
@InstanceId = params['InstanceId']
|
1874
|
+
@TargetFlashbackTime = params['TargetFlashbackTime']
|
1875
|
+
unless params['TargetDatabases'].nil?
|
1876
|
+
@TargetDatabases = []
|
1877
|
+
params['TargetDatabases'].each do |i|
|
1878
|
+
flashbackdatabase_tmp = FlashbackDatabase.new
|
1879
|
+
flashbackdatabase_tmp.deserialize(i)
|
1880
|
+
@TargetDatabases << flashbackdatabase_tmp
|
1881
|
+
end
|
1882
|
+
end
|
1883
|
+
@TargetInstanceId = params['TargetInstanceId']
|
1884
|
+
end
|
1885
|
+
end
|
1886
|
+
|
1887
|
+
# FlashBackDBInstance返回参数结构体
|
1888
|
+
class FlashBackDBInstanceResponse < TencentCloud::Common::AbstractModel
|
1889
|
+
# @param FlowId: 回档数据异步任务 ID。
|
1890
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
1891
|
+
# @type FlowId: Integer
|
1892
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1893
|
+
# @type RequestId: String
|
1894
|
+
|
1895
|
+
attr_accessor :FlowId, :RequestId
|
1896
|
+
|
1897
|
+
def initialize(flowid=nil, requestid=nil)
|
1898
|
+
@FlowId = flowid
|
1899
|
+
@RequestId = requestid
|
1900
|
+
end
|
1901
|
+
|
1902
|
+
def deserialize(params)
|
1903
|
+
@FlowId = params['FlowId']
|
1904
|
+
@RequestId = params['RequestId']
|
1905
|
+
end
|
1906
|
+
end
|
1907
|
+
|
1908
|
+
# 按key回档,源数据所在的表
|
1909
|
+
class FlashbackCollection < TencentCloud::Common::AbstractModel
|
1910
|
+
# @param CollectionName: 按key回档指定的集合名
|
1911
|
+
# @type CollectionName: String
|
1912
|
+
# @param TargetResultCollectionName: 按key回档到的目标集合名
|
1913
|
+
# @type TargetResultCollectionName: String
|
1914
|
+
# @param FilterKey: 上传到cos的文件的value所对应的key值
|
1915
|
+
# @type FilterKey: String
|
1916
|
+
# @param KeyValues: 用于按key回档过滤的键值对
|
1917
|
+
# @type KeyValues: Array
|
1918
|
+
|
1919
|
+
attr_accessor :CollectionName, :TargetResultCollectionName, :FilterKey, :KeyValues
|
1920
|
+
|
1921
|
+
def initialize(collectionname=nil, targetresultcollectionname=nil, filterkey=nil, keyvalues=nil)
|
1922
|
+
@CollectionName = collectionname
|
1923
|
+
@TargetResultCollectionName = targetresultcollectionname
|
1924
|
+
@FilterKey = filterkey
|
1925
|
+
@KeyValues = keyvalues
|
1926
|
+
end
|
1927
|
+
|
1928
|
+
def deserialize(params)
|
1929
|
+
@CollectionName = params['CollectionName']
|
1930
|
+
@TargetResultCollectionName = params['TargetResultCollectionName']
|
1931
|
+
@FilterKey = params['FilterKey']
|
1932
|
+
unless params['KeyValues'].nil?
|
1933
|
+
@KeyValues = []
|
1934
|
+
params['KeyValues'].each do |i|
|
1935
|
+
fbkeyvalue_tmp = FBKeyValue.new
|
1936
|
+
fbkeyvalue_tmp.deserialize(i)
|
1937
|
+
@KeyValues << fbkeyvalue_tmp
|
1938
|
+
end
|
1939
|
+
end
|
1940
|
+
end
|
1941
|
+
end
|
1942
|
+
|
1943
|
+
# 按key回档,源数据所在的库表
|
1944
|
+
class FlashbackDatabase < TencentCloud::Common::AbstractModel
|
1945
|
+
# @param DBName: 按key回档源数据所在库
|
1946
|
+
# @type DBName: String
|
1947
|
+
# @param Collections: 按key回档的集群数组
|
1948
|
+
# @type Collections: Array
|
1949
|
+
|
1950
|
+
attr_accessor :DBName, :Collections
|
1951
|
+
|
1952
|
+
def initialize(dbname=nil, collections=nil)
|
1953
|
+
@DBName = dbname
|
1954
|
+
@Collections = collections
|
1955
|
+
end
|
1956
|
+
|
1957
|
+
def deserialize(params)
|
1958
|
+
@DBName = params['DBName']
|
1959
|
+
unless params['Collections'].nil?
|
1960
|
+
@Collections = []
|
1961
|
+
params['Collections'].each do |i|
|
1962
|
+
flashbackcollection_tmp = FlashbackCollection.new
|
1963
|
+
flashbackcollection_tmp.deserialize(i)
|
1964
|
+
@Collections << flashbackcollection_tmp
|
1965
|
+
end
|
1966
|
+
end
|
1967
|
+
end
|
1968
|
+
end
|
1969
|
+
|
1832
1970
|
# FlushInstanceRouterConfig请求参数结构体
|
1833
1971
|
class FlushInstanceRouterConfigRequest < TencentCloud::Common::AbstractModel
|
1834
1972
|
# @param InstanceId: 实例ID
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-mongodb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.800
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|