tencentcloud-sdk-mongodb 3.0.1169 → 3.0.1171

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: 122b793a6e3cd90c330ed5a9143e2eb1f94722e5
4
- data.tar.gz: dfa911dc78e2631ae10006eb885271d7aeb03489
3
+ metadata.gz: 9353ce66cf33e1755c6a270d75e8631d4c844f4b
4
+ data.tar.gz: 032d6dfd38c9dbd3e467620e3d3c3af37bd71dd4
5
5
  SHA512:
6
- metadata.gz: b2c2ad558a8f18238a87f7dfaad0f0f5924a9f191452abeea360d4678a449d73366943535a7a787626a0cc6d7b34ac8df10854cfd3a418e8855cc9b42885b0aa
7
- data.tar.gz: 8b5c0294524c99bea8a3549bbf919753443abd09dd8b29820159ea6108f993a02690c4b097761c54d7f54d96862a0967fbd0bd7b50f89f270e7cb8247af191ed
6
+ metadata.gz: 6ee5d7be8bb63860b27bc670bda44376b3df0b6c1db7db8c659556d06e726640aa5d166cf7531bca508a8172e08c354e8d89d87909542a7b4794f08bea3ffe28
7
+ data.tar.gz: 968e890db30c69dc1a01f7a39e27640dd5087e800881ced3b1879565b4bdabb66e92ee1512f73cf296d4e21c81b7fd618f800401ec14532a211e80e8ed413b2a
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1169
1
+ 3.0.1171
@@ -728,6 +728,30 @@ module TencentCloud
728
728
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
729
729
  end
730
730
 
731
+ # 查看实例SSL开启状态
732
+
733
+ # @param request: Request instance for DescribeInstanceSSL.
734
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::DescribeInstanceSSLRequest`
735
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::DescribeInstanceSSLResponse`
736
+ def DescribeInstanceSSL(request)
737
+ body = send_request('DescribeInstanceSSL', request.serialize)
738
+ response = JSON.parse(body)
739
+ if response['Response'].key?('Error') == false
740
+ model = DescribeInstanceSSLResponse.new
741
+ model.deserialize(response['Response'])
742
+ model
743
+ else
744
+ code = response['Response']['Error']['Code']
745
+ message = response['Response']['Error']['Message']
746
+ reqid = response['Response']['RequestId']
747
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
748
+ end
749
+ rescue TencentCloud::Common::TencentCloudSDKException => e
750
+ raise e
751
+ rescue StandardError => e
752
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
753
+ end
754
+
731
755
  # 日志下载任务查询
732
756
 
733
757
  # @param request: Request instance for DescribeLogDownloadTasks.
@@ -1066,6 +1090,30 @@ module TencentCloud
1066
1090
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1067
1091
  end
1068
1092
 
1093
+ # 本接口(InstanceEnableSSL)用于设置实例SSL状态。
1094
+
1095
+ # @param request: Request instance for InstanceEnableSSL.
1096
+ # @type request: :class:`Tencentcloud::mongodb::V20190725::InstanceEnableSSLRequest`
1097
+ # @rtype: :class:`Tencentcloud::mongodb::V20190725::InstanceEnableSSLResponse`
1098
+ def InstanceEnableSSL(request)
1099
+ body = send_request('InstanceEnableSSL', request.serialize)
1100
+ response = JSON.parse(body)
1101
+ if response['Response'].key?('Error') == false
1102
+ model = InstanceEnableSSLResponse.new
1103
+ model.deserialize(response['Response'])
1104
+ model
1105
+ else
1106
+ code = response['Response']['Error']['Code']
1107
+ message = response['Response']['Error']['Message']
1108
+ reqid = response['Response']['RequestId']
1109
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1110
+ end
1111
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1112
+ raise e
1113
+ rescue StandardError => e
1114
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1115
+ end
1116
+
1069
1117
  # 本接口(IsolateDBInstance)用于隔离 MongoDB 云数据库按量计费实例。隔离后实例保留在回收站中,不能再写入数据。隔离一定时间后,实例会彻底删除,回收站保存时间请参考按量计费的服务条款。已删除的按量计费实例无法恢复,请谨慎操作。
1070
1118
 
1071
1119
  # @param request: Request instance for IsolateDBInstance.
@@ -2742,6 +2742,53 @@ module TencentCloud
2742
2742
  end
2743
2743
  end
2744
2744
 
2745
+ # DescribeInstanceSSL请求参数结构体
2746
+ class DescribeInstanceSSLRequest < TencentCloud::Common::AbstractModel
2747
+ # @param InstanceId: 实例ID,格式如:cmgo-p8vnipr5。与云数据库控制台页面中显示的实例ID相同
2748
+ # @type InstanceId: String
2749
+
2750
+ attr_accessor :InstanceId
2751
+
2752
+ def initialize(instanceid=nil)
2753
+ @InstanceId = instanceid
2754
+ end
2755
+
2756
+ def deserialize(params)
2757
+ @InstanceId = params['InstanceId']
2758
+ end
2759
+ end
2760
+
2761
+ # DescribeInstanceSSL返回参数结构体
2762
+ class DescribeInstanceSSLResponse < TencentCloud::Common::AbstractModel
2763
+ # @param Status: SSL开启状态。0为关闭,1为开启
2764
+ # 注意:此字段可能返回 null,表示取不到有效值。
2765
+ # @type Status: Integer
2766
+ # @param ExpiredTime: 证书过期时间,格式为2023-05-01 12:00:00
2767
+ # 注意:此字段可能返回 null,表示取不到有效值。
2768
+ # @type ExpiredTime: String
2769
+ # @param CertUrl: 证书下载链接
2770
+ # 注意:此字段可能返回 null,表示取不到有效值。
2771
+ # @type CertUrl: String
2772
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2773
+ # @type RequestId: String
2774
+
2775
+ attr_accessor :Status, :ExpiredTime, :CertUrl, :RequestId
2776
+
2777
+ def initialize(status=nil, expiredtime=nil, certurl=nil, requestid=nil)
2778
+ @Status = status
2779
+ @ExpiredTime = expiredtime
2780
+ @CertUrl = certurl
2781
+ @RequestId = requestid
2782
+ end
2783
+
2784
+ def deserialize(params)
2785
+ @Status = params['Status']
2786
+ @ExpiredTime = params['ExpiredTime']
2787
+ @CertUrl = params['CertUrl']
2788
+ @RequestId = params['RequestId']
2789
+ end
2790
+ end
2791
+
2745
2792
  # DescribeLogDownloadTasks请求参数结构体
2746
2793
  class DescribeLogDownloadTasksRequest < TencentCloud::Common::AbstractModel
2747
2794
  # @param InstanceId: 实例 ID
@@ -3965,6 +4012,65 @@ module TencentCloud
3965
4012
  end
3966
4013
  end
3967
4014
 
4015
+ # InstanceEnableSSL请求参数结构体
4016
+ class InstanceEnableSSLRequest < TencentCloud::Common::AbstractModel
4017
+ # @param InstanceId: 实例ID
4018
+ # @type InstanceId: String
4019
+ # @param Enable: 配置是否要开启SSL访问。
4020
+ # - true:开启。
4021
+ # - false:关闭。
4022
+ # @type Enable: Boolean
4023
+
4024
+ attr_accessor :InstanceId, :Enable
4025
+
4026
+ def initialize(instanceid=nil, enable=nil)
4027
+ @InstanceId = instanceid
4028
+ @Enable = enable
4029
+ end
4030
+
4031
+ def deserialize(params)
4032
+ @InstanceId = params['InstanceId']
4033
+ @Enable = params['Enable']
4034
+ end
4035
+ end
4036
+
4037
+ # InstanceEnableSSL返回参数结构体
4038
+ class InstanceEnableSSLResponse < TencentCloud::Common::AbstractModel
4039
+ # @param Status: SSL开启状态。
4040
+ # - 0:关闭。
4041
+ # - 1:开启。
4042
+ # 注意:此字段可能返回 null,表示取不到有效值。
4043
+ # @type Status: Integer
4044
+ # @param ExpiredTime: 证书文件过期时间,格式为:2023-05-01 12:00:00。
4045
+ # 注意:此字段可能返回 null,表示取不到有效值。
4046
+ # @type ExpiredTime: String
4047
+ # @param CertUrl: 证书文件的下载链接。
4048
+ # 注意:此字段可能返回 null,表示取不到有效值。
4049
+ # @type CertUrl: String
4050
+ # @param FlowId: 流程id
4051
+ # @type FlowId: Integer
4052
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
4053
+ # @type RequestId: String
4054
+
4055
+ attr_accessor :Status, :ExpiredTime, :CertUrl, :FlowId, :RequestId
4056
+
4057
+ def initialize(status=nil, expiredtime=nil, certurl=nil, flowid=nil, requestid=nil)
4058
+ @Status = status
4059
+ @ExpiredTime = expiredtime
4060
+ @CertUrl = certurl
4061
+ @FlowId = flowid
4062
+ @RequestId = requestid
4063
+ end
4064
+
4065
+ def deserialize(params)
4066
+ @Status = params['Status']
4067
+ @ExpiredTime = params['ExpiredTime']
4068
+ @CertUrl = params['CertUrl']
4069
+ @FlowId = params['FlowId']
4070
+ @RequestId = params['RequestId']
4071
+ end
4072
+ end
4073
+
3968
4074
  # 实例可修改参数枚举类型集合。
3969
4075
  class InstanceEnumParam < TencentCloud::Common::AbstractModel
3970
4076
  # @param CurrentValue: 参数当前值。
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.1169
4
+ version: 3.0.1171
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-11-19 00:00:00.000000000 Z
11
+ date: 2025-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common