tencentcloud-sdk-mongodb 3.0.798 → 3.0.799

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: 0971ba41e81e3fef003096b1c1cf95af52a18969
4
- data.tar.gz: 83dc67f2e0191b2166a0b0b97dee90d4a979c019
3
+ metadata.gz: 61154b0e65ac3bddc4ec5ecdb4d15c6dc51247b1
4
+ data.tar.gz: 5a7d76bfd3b7fa2e0d6f2f76dcf421b82818f5b1
5
5
  SHA512:
6
- metadata.gz: ce2901d93a4092042dfc6df2fbb85e2c1a67fd1db7f3c9cd88247b39097ac958a2e7f84ecdb01371001bee56ba03f846f675af0fdc545f4653135cbba7ad8418
7
- data.tar.gz: cecb5af604ff9be53f4fff5a58ceab384bd486202883f056f4fe8bb5b81c77070e6b50b3ca2e28aa354ce8903a17145b558639ca5649a2f5021cf3a8e8439bd7
6
+ metadata.gz: 360669c0574633e592458e053375a79698c0300b35b1c6f9b29d3331c61eb20fab8a61f8d173eb3de299d4057d3545f3dd298e45f593c1e2df3f4502fa44843b
7
+ data.tar.gz: 287fcb964ebdd4321b1415ffb094442eee08cead76d5e21c7ba37002ce1980ff3d3694546dbe963a67f2bb628d762620fd3f89a2c5235227d68eb8ff70019b1c
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.798
1
+ 3.0.799
@@ -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.
@@ -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.798
4
+ version: 3.0.799
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-08 00:00:00.000000000 Z
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