tencentcloud-sdk-mongodb 3.0.840 → 3.0.841

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: 96c5b03906a1b9f49e7e29c796adaab881727d55
4
- data.tar.gz: b5b9d8f8eefa531bc0f9d59ec8c1e31aa58cf97c
3
+ metadata.gz: ab761002530e579cf91d88cdbc4b88e0ef4f72a8
4
+ data.tar.gz: b982ac0d24fc6972ac496673052beac595ba9f01
5
5
  SHA512:
6
- metadata.gz: 8e51d82bc98bfed921f964ffb364657424bb9e051f5d7123eb51f268a25baee67035d79f611256f51fd86976b0dea1a3f6569877e46e740b8cdca7b54b56c3f0
7
- data.tar.gz: 64b89a51b0b6a8de8189d9ba0aba9dc7ad53ddfec9572b7557513dc57d854119ed3ce412371bb946a826494230b4ba5e91328c19f65eef6e09d5dab636377ae4
6
+ metadata.gz: 71143282e89375e2e8213d6cdf3321ebbcfec76c1fdd2ebc16bffb858677754ab7a06b7d5f5f5e34895cc17e8bb0f1f90336c0a4219935b62dd5b3014f406716
7
+ data.tar.gz: ef1c2b5c6c201cf759a2b1d5f5405c78d0314b7516e456d0d5f287d05858adaa4fdf70928bf6495a2294aa9e294d48a337148a56210b6c4f744c688d24ce57e5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.840
1
+ 3.0.841
@@ -269,6 +269,30 @@ module TencentCloud
269
269
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
270
270
  end
271
271
 
272
+ # 本接口(DescribeBackupRules)用于获取实例自动备份配置信息。
273
+
274
+ # @param request: Request instance for DescribeBackupRules.
275
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeBackupRulesRequest`
276
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeBackupRulesResponse`
277
+ def DescribeBackupRules(request)
278
+ body = send_request('DescribeBackupRules', request.serialize)
279
+ response = JSON.parse(body)
280
+ if response['Response'].key?('Error') == false
281
+ model = DescribeBackupRulesResponse.new
282
+ model.deserialize(response['Response'])
283
+ model
284
+ else
285
+ code = response['Response']['Error']['Code']
286
+ message = response['Response']['Error']['Message']
287
+ reqid = response['Response']['RequestId']
288
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
289
+ end
290
+ rescue TencentCloud::Common::TencentCloudSDKException => e
291
+ raise e
292
+ rescue StandardError => e
293
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
+ end
295
+
272
296
  # 本接口(DescribeClientConnections)用于查询实例客户端连接信息,包括连接 IP 和连接数量。
273
297
 
274
298
  # @param request: Request instance for DescribeClientConnections.
@@ -533,6 +557,54 @@ module TencentCloud
533
557
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
534
558
  end
535
559
 
560
+ # 获取实例透明加密的开启状态
561
+
562
+ # @param request: Request instance for DescribeTransparentDataEncryptionStatus.
563
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeTransparentDataEncryptionStatusRequest`
564
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeTransparentDataEncryptionStatusResponse`
565
+ def DescribeTransparentDataEncryptionStatus(request)
566
+ body = send_request('DescribeTransparentDataEncryptionStatus', request.serialize)
567
+ response = JSON.parse(body)
568
+ if response['Response'].key?('Error') == false
569
+ model = DescribeTransparentDataEncryptionStatusResponse.new
570
+ model.deserialize(response['Response'])
571
+ model
572
+ else
573
+ code = response['Response']['Error']['Code']
574
+ message = response['Response']['Error']['Message']
575
+ reqid = response['Response']['RequestId']
576
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
577
+ end
578
+ rescue TencentCloud::Common::TencentCloudSDKException => e
579
+ raise e
580
+ rescue StandardError => e
581
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
582
+ end
583
+
584
+ # 本接口(EnableTransparentDataEncryption)用于开启云数据库 MongoDB 的透明加密能力。
585
+
586
+ # @param request: Request instance for EnableTransparentDataEncryption.
587
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::EnableTransparentDataEncryptionRequest`
588
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::EnableTransparentDataEncryptionResponse`
589
+ def EnableTransparentDataEncryption(request)
590
+ body = send_request('EnableTransparentDataEncryption', request.serialize)
591
+ response = JSON.parse(body)
592
+ if response['Response'].key?('Error') == false
593
+ model = EnableTransparentDataEncryptionResponse.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
+
536
608
  # 该接口用于发起按 Key 闪回任务,依据数据的闪回 Key(默认为 id)对数据进行极速回档,快速恢复业务。
537
609
  # **说明:按 Key 闪回于2023年09月11日正式进行公测,在此期间,该接口仅对公测用户开放。**
538
610
 
@@ -894,6 +966,30 @@ module TencentCloud
894
966
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
895
967
  end
896
968
 
969
+ # 本接口(SetBackupRules)用于设置 MongoDB 云数据库的自动备份规则。
970
+
971
+ # @param request: Request instance for SetBackupRules.
972
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::SetBackupRulesRequest`
973
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::SetBackupRulesResponse`
974
+ def SetBackupRules(request)
975
+ body = send_request('SetBackupRules', request.serialize)
976
+ response = JSON.parse(body)
977
+ if response['Response'].key?('Error') == false
978
+ model = SetBackupRulesResponse.new
979
+ model.deserialize(response['Response'])
980
+ model
981
+ else
982
+ code = response['Response']['Error']['Code']
983
+ message = response['Response']['Error']['Message']
984
+ reqid = response['Response']['RequestId']
985
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
986
+ end
987
+ rescue TencentCloud::Common::TencentCloudSDKException => e
988
+ raise e
989
+ rescue StandardError => e
990
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
991
+ end
992
+
897
993
  # 本接口(SetInstanceMaintenance ) 用于设置实例维护时间窗。
898
994
 
899
995
  # @param request: Request instance for SetInstanceMaintenance.
@@ -1077,6 +1077,52 @@ module TencentCloud
1077
1077
  end
1078
1078
  end
1079
1079
 
1080
+ # DescribeBackupRules请求参数结构体
1081
+ class DescribeBackupRulesRequest < TencentCloud::Common::AbstractModel
1082
+ # @param InstanceId: 指定实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
1083
+ # @type InstanceId: String
1084
+
1085
+ attr_accessor :InstanceId
1086
+
1087
+ def initialize(instanceid=nil)
1088
+ @InstanceId = instanceid
1089
+ end
1090
+
1091
+ def deserialize(params)
1092
+ @InstanceId = params['InstanceId']
1093
+ end
1094
+ end
1095
+
1096
+ # DescribeBackupRules返回参数结构体
1097
+ class DescribeBackupRulesResponse < TencentCloud::Common::AbstractModel
1098
+ # @param BackupSaveTime: 备份数据保留期限。单位为:天。
1099
+ # @type BackupSaveTime: Integer
1100
+ # @param BackupTime: 自动备份开始时间。
1101
+ # @type BackupTime: Integer
1102
+ # @param BackupMethod: 备份方式。
1103
+ # - 0:逻辑备份。
1104
+ # - 1:物理备份。
1105
+ # @type BackupMethod: Integer
1106
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1107
+ # @type RequestId: String
1108
+
1109
+ attr_accessor :BackupSaveTime, :BackupTime, :BackupMethod, :RequestId
1110
+
1111
+ def initialize(backupsavetime=nil, backuptime=nil, backupmethod=nil, requestid=nil)
1112
+ @BackupSaveTime = backupsavetime
1113
+ @BackupTime = backuptime
1114
+ @BackupMethod = backupmethod
1115
+ @RequestId = requestid
1116
+ end
1117
+
1118
+ def deserialize(params)
1119
+ @BackupSaveTime = params['BackupSaveTime']
1120
+ @BackupTime = params['BackupTime']
1121
+ @BackupMethod = params['BackupMethod']
1122
+ @RequestId = params['RequestId']
1123
+ end
1124
+ end
1125
+
1080
1126
  # DescribeClientConnections请求参数结构体
1081
1127
  class DescribeClientConnectionsRequest < TencentCloud::Common::AbstractModel
1082
1128
  # @param InstanceId: 指定待查询的实例ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
@@ -1829,6 +1875,100 @@ module TencentCloud
1829
1875
  end
1830
1876
  end
1831
1877
 
1878
+ # DescribeTransparentDataEncryptionStatus请求参数结构体
1879
+ class DescribeTransparentDataEncryptionStatusRequest < TencentCloud::Common::AbstractModel
1880
+ # @param InstanceId: 指定实例 ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
1881
+ # @type InstanceId: String
1882
+
1883
+ attr_accessor :InstanceId
1884
+
1885
+ def initialize(instanceid=nil)
1886
+ @InstanceId = instanceid
1887
+ end
1888
+
1889
+ def deserialize(params)
1890
+ @InstanceId = params['InstanceId']
1891
+ end
1892
+ end
1893
+
1894
+ # DescribeTransparentDataEncryptionStatus返回参数结构体
1895
+ class DescribeTransparentDataEncryptionStatusResponse < TencentCloud::Common::AbstractModel
1896
+ # @param TransparentDataEncryptionStatus: 表示是否开启了透明加密。
1897
+ # - close:未开启。
1898
+ # - open:已开启。
1899
+ # @type TransparentDataEncryptionStatus: String
1900
+ # @param KeyInfoList: 已绑定的密钥列表,如未绑定,返回null。
1901
+ # 注意:此字段可能返回 null,表示取不到有效值。
1902
+ # @type KeyInfoList: Array
1903
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1904
+ # @type RequestId: String
1905
+
1906
+ attr_accessor :TransparentDataEncryptionStatus, :KeyInfoList, :RequestId
1907
+
1908
+ def initialize(transparentdataencryptionstatus=nil, keyinfolist=nil, requestid=nil)
1909
+ @TransparentDataEncryptionStatus = transparentdataencryptionstatus
1910
+ @KeyInfoList = keyinfolist
1911
+ @RequestId = requestid
1912
+ end
1913
+
1914
+ def deserialize(params)
1915
+ @TransparentDataEncryptionStatus = params['TransparentDataEncryptionStatus']
1916
+ unless params['KeyInfoList'].nil?
1917
+ @KeyInfoList = []
1918
+ params['KeyInfoList'].each do |i|
1919
+ kmsinfodetail_tmp = KMSInfoDetail.new
1920
+ kmsinfodetail_tmp.deserialize(i)
1921
+ @KeyInfoList << kmsinfodetail_tmp
1922
+ end
1923
+ end
1924
+ @RequestId = params['RequestId']
1925
+ end
1926
+ end
1927
+
1928
+ # EnableTransparentDataEncryption请求参数结构体
1929
+ class EnableTransparentDataEncryptionRequest < TencentCloud::Common::AbstractModel
1930
+ # @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。目前支持通用版本包含:4.4、5.0,云盘版暂不支持。
1931
+ # @type InstanceId: String
1932
+ # @param KmsRegion: [密钥管理系统(Key Management Service,KMS)](https://cloud.tencent.com/document/product/573/18809)服务所在地域,例如 ap-shanghai。
1933
+ # @type KmsRegion: String
1934
+ # @param KeyId: 密钥 ID。若不设置该参数,不指定具体的密钥 ID,由腾讯云自动生成密钥。
1935
+ # @type KeyId: String
1936
+
1937
+ attr_accessor :InstanceId, :KmsRegion, :KeyId
1938
+
1939
+ def initialize(instanceid=nil, kmsregion=nil, keyid=nil)
1940
+ @InstanceId = instanceid
1941
+ @KmsRegion = kmsregion
1942
+ @KeyId = keyid
1943
+ end
1944
+
1945
+ def deserialize(params)
1946
+ @InstanceId = params['InstanceId']
1947
+ @KmsRegion = params['KmsRegion']
1948
+ @KeyId = params['KeyId']
1949
+ end
1950
+ end
1951
+
1952
+ # EnableTransparentDataEncryption返回参数结构体
1953
+ class EnableTransparentDataEncryptionResponse < TencentCloud::Common::AbstractModel
1954
+ # @param FlowId: 开启透明加密的异步流程id,用于查询流程状态。
1955
+ # @type FlowId: Integer
1956
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1957
+ # @type RequestId: String
1958
+
1959
+ attr_accessor :FlowId, :RequestId
1960
+
1961
+ def initialize(flowid=nil, requestid=nil)
1962
+ @FlowId = flowid
1963
+ @RequestId = requestid
1964
+ end
1965
+
1966
+ def deserialize(params)
1967
+ @FlowId = params['FlowId']
1968
+ @RequestId = params['RequestId']
1969
+ end
1970
+ end
1971
+
1832
1972
  # 按key回档,用于筛选数据的键值对
1833
1973
  class FBKeyValue < TencentCloud::Common::AbstractModel
1834
1974
  # @param Key: 用于按key回档过滤的key
@@ -2734,6 +2874,48 @@ module TencentCloud
2734
2874
  end
2735
2875
  end
2736
2876
 
2877
+ # KMS密钥信息
2878
+ class KMSInfoDetail < TencentCloud::Common::AbstractModel
2879
+ # @param KeyId: 主密钥 ID。
2880
+ # 注意:此字段可能返回 null,表示取不到有效值。
2881
+ # @type KeyId: String
2882
+ # @param KeyName: 主密钥名称。
2883
+ # 注意:此字段可能返回 null,表示取不到有效值。
2884
+ # @type KeyName: String
2885
+ # @param CreateTime: 实例与密钥绑定时间。
2886
+ # 注意:此字段可能返回 null,表示取不到有效值。
2887
+ # @type CreateTime: String
2888
+ # @param Status: 密钥状态。
2889
+ # 注意:此字段可能返回 null,表示取不到有效值。
2890
+ # @type Status: String
2891
+ # @param KeyUsage: 密钥用途。
2892
+ # 注意:此字段可能返回 null,表示取不到有效值。
2893
+ # @type KeyUsage: String
2894
+ # @param KeyOrigin: 密钥来源。
2895
+ # 注意:此字段可能返回 null,表示取不到有效值。
2896
+ # @type KeyOrigin: String
2897
+
2898
+ attr_accessor :KeyId, :KeyName, :CreateTime, :Status, :KeyUsage, :KeyOrigin
2899
+
2900
+ def initialize(keyid=nil, keyname=nil, createtime=nil, status=nil, keyusage=nil, keyorigin=nil)
2901
+ @KeyId = keyid
2902
+ @KeyName = keyname
2903
+ @CreateTime = createtime
2904
+ @Status = status
2905
+ @KeyUsage = keyusage
2906
+ @KeyOrigin = keyorigin
2907
+ end
2908
+
2909
+ def deserialize(params)
2910
+ @KeyId = params['KeyId']
2911
+ @KeyName = params['KeyName']
2912
+ @CreateTime = params['CreateTime']
2913
+ @Status = params['Status']
2914
+ @KeyUsage = params['KeyUsage']
2915
+ @KeyOrigin = params['KeyOrigin']
2916
+ end
2917
+ end
2918
+
2737
2919
  # KillOps请求参数结构体
2738
2920
  class KillOpsRequest < TencentCloud::Common::AbstractModel
2739
2921
  # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
@@ -3480,6 +3662,56 @@ module TencentCloud
3480
3662
  end
3481
3663
  end
3482
3664
 
3665
+ # SetBackupRules请求参数结构体
3666
+ class SetBackupRulesRequest < TencentCloud::Common::AbstractModel
3667
+ # @param InstanceId: 实例 ID,例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 ID。
3668
+ # @type InstanceId: String
3669
+ # @param BackupMethod: 设置自动备份方式。- 0:逻辑备份。- 1:物理备份。-3:快照备份(仅云盘版支持)。
3670
+ # @type BackupMethod: Integer
3671
+ # @param BackupTime: 设置自动备份开始时间。取值范围为:[0,23],例如:该参数设置为2,表示02:00开始备份。
3672
+ # @type BackupTime: Integer
3673
+ # @param Notify: 设置自动备份发生错误时,是否发送失败告警。
3674
+ # - true:发送。
3675
+ # - false:不发送。
3676
+ # @type Notify: Boolean
3677
+ # @param BackupRetentionPeriod: 指定备份数据保存天数。默认为 7 天,支持设置为7、30、90、180、365。
3678
+ # @type BackupRetentionPeriod: Integer
3679
+
3680
+ attr_accessor :InstanceId, :BackupMethod, :BackupTime, :Notify, :BackupRetentionPeriod
3681
+
3682
+ def initialize(instanceid=nil, backupmethod=nil, backuptime=nil, notify=nil, backupretentionperiod=nil)
3683
+ @InstanceId = instanceid
3684
+ @BackupMethod = backupmethod
3685
+ @BackupTime = backuptime
3686
+ @Notify = notify
3687
+ @BackupRetentionPeriod = backupretentionperiod
3688
+ end
3689
+
3690
+ def deserialize(params)
3691
+ @InstanceId = params['InstanceId']
3692
+ @BackupMethod = params['BackupMethod']
3693
+ @BackupTime = params['BackupTime']
3694
+ @Notify = params['Notify']
3695
+ @BackupRetentionPeriod = params['BackupRetentionPeriod']
3696
+ end
3697
+ end
3698
+
3699
+ # SetBackupRules返回参数结构体
3700
+ class SetBackupRulesResponse < TencentCloud::Common::AbstractModel
3701
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
3702
+ # @type RequestId: String
3703
+
3704
+ attr_accessor :RequestId
3705
+
3706
+ def initialize(requestid=nil)
3707
+ @RequestId = requestid
3708
+ end
3709
+
3710
+ def deserialize(params)
3711
+ @RequestId = params['RequestId']
3712
+ end
3713
+ end
3714
+
3483
3715
  # SetInstanceMaintenance请求参数结构体
3484
3716
  class SetInstanceMaintenanceRequest < TencentCloud::Common::AbstractModel
3485
3717
  # @param InstanceId: 指定实例ID。例如:cmgo-p8vn****。请登录 [MongoDB 控制台](https://console.cloud.tencent.com/mongodb)在实例列表复制实例 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.840
4
+ version: 3.0.841
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-06-09 00:00:00.000000000 Z
11
+ date: 2024-06-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common