tencentcloud-sdk-python-sqlserver 3.0.1041__py2.py3-none-any.whl → 3.0.1044__py2.py3-none-any.whl

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.
tencentcloud/__init__.py CHANGED
@@ -14,4 +14,4 @@
14
14
  # limitations under the License.
15
15
 
16
16
 
17
- __version__ = '3.0.1041'
17
+ __version__ = '3.0.1044'
@@ -9858,6 +9858,8 @@ class DescribeDBInstancesAttributeResponse(AbstractModel):
9858
9858
  :type EventSaveDays: int
9859
9859
  :param _TDEConfig: TDE透明数据加密配置
9860
9860
  :type TDEConfig: :class:`tencentcloud.sqlserver.v20180328.models.TDEConfigAttribute`
9861
+ :param _SSLConfig: SSL加密
9862
+ :type SSLConfig: :class:`tencentcloud.sqlserver.v20180328.models.SSLConfig`
9861
9863
  :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
9862
9864
  :type RequestId: str
9863
9865
  """
@@ -9870,6 +9872,7 @@ class DescribeDBInstancesAttributeResponse(AbstractModel):
9870
9872
  self._BlockedThreshold = None
9871
9873
  self._EventSaveDays = None
9872
9874
  self._TDEConfig = None
9875
+ self._SSLConfig = None
9873
9876
  self._RequestId = None
9874
9877
 
9875
9878
  @property
@@ -9944,6 +9947,14 @@ class DescribeDBInstancesAttributeResponse(AbstractModel):
9944
9947
  def TDEConfig(self, TDEConfig):
9945
9948
  self._TDEConfig = TDEConfig
9946
9949
 
9950
+ @property
9951
+ def SSLConfig(self):
9952
+ return self._SSLConfig
9953
+
9954
+ @SSLConfig.setter
9955
+ def SSLConfig(self, SSLConfig):
9956
+ self._SSLConfig = SSLConfig
9957
+
9947
9958
  @property
9948
9959
  def RequestId(self):
9949
9960
  return self._RequestId
@@ -9965,6 +9976,9 @@ class DescribeDBInstancesAttributeResponse(AbstractModel):
9965
9976
  if params.get("TDEConfig") is not None:
9966
9977
  self._TDEConfig = TDEConfigAttribute()
9967
9978
  self._TDEConfig._deserialize(params.get("TDEConfig"))
9979
+ if params.get("SSLConfig") is not None:
9980
+ self._SSLConfig = SSLConfig()
9981
+ self._SSLConfig._deserialize(params.get("SSLConfig"))
9968
9982
  self._RequestId = params.get("RequestId")
9969
9983
 
9970
9984
 
@@ -19210,6 +19224,100 @@ class ModifyDBInstanceRenewFlagResponse(AbstractModel):
19210
19224
  self._RequestId = params.get("RequestId")
19211
19225
 
19212
19226
 
19227
+ class ModifyDBInstanceSSLRequest(AbstractModel):
19228
+ """ModifyDBInstanceSSL请求参数结构体
19229
+
19230
+ """
19231
+
19232
+ def __init__(self):
19233
+ r"""
19234
+ :param _InstanceId: 实例ID
19235
+ :type InstanceId: str
19236
+ :param _Type: 操作类型。enable-开启SSL,disable-关闭SSL,renew-更新证书有效期
19237
+ :type Type: str
19238
+ :param _WaitSwitch: 操作设置。0-立即执行,1- 维护时间内执行,默认取值0。
19239
+ :type WaitSwitch: int
19240
+ """
19241
+ self._InstanceId = None
19242
+ self._Type = None
19243
+ self._WaitSwitch = None
19244
+
19245
+ @property
19246
+ def InstanceId(self):
19247
+ return self._InstanceId
19248
+
19249
+ @InstanceId.setter
19250
+ def InstanceId(self, InstanceId):
19251
+ self._InstanceId = InstanceId
19252
+
19253
+ @property
19254
+ def Type(self):
19255
+ return self._Type
19256
+
19257
+ @Type.setter
19258
+ def Type(self, Type):
19259
+ self._Type = Type
19260
+
19261
+ @property
19262
+ def WaitSwitch(self):
19263
+ return self._WaitSwitch
19264
+
19265
+ @WaitSwitch.setter
19266
+ def WaitSwitch(self, WaitSwitch):
19267
+ self._WaitSwitch = WaitSwitch
19268
+
19269
+
19270
+ def _deserialize(self, params):
19271
+ self._InstanceId = params.get("InstanceId")
19272
+ self._Type = params.get("Type")
19273
+ self._WaitSwitch = params.get("WaitSwitch")
19274
+ memeber_set = set(params.keys())
19275
+ for name, value in vars(self).items():
19276
+ property_name = name[1:]
19277
+ if property_name in memeber_set:
19278
+ memeber_set.remove(property_name)
19279
+ if len(memeber_set) > 0:
19280
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
19281
+
19282
+
19283
+
19284
+ class ModifyDBInstanceSSLResponse(AbstractModel):
19285
+ """ModifyDBInstanceSSL返回参数结构体
19286
+
19287
+ """
19288
+
19289
+ def __init__(self):
19290
+ r"""
19291
+ :param _FlowId: 异步任务流程ID
19292
+ :type FlowId: int
19293
+ :param _RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
19294
+ :type RequestId: str
19295
+ """
19296
+ self._FlowId = None
19297
+ self._RequestId = None
19298
+
19299
+ @property
19300
+ def FlowId(self):
19301
+ return self._FlowId
19302
+
19303
+ @FlowId.setter
19304
+ def FlowId(self, FlowId):
19305
+ self._FlowId = FlowId
19306
+
19307
+ @property
19308
+ def RequestId(self):
19309
+ return self._RequestId
19310
+
19311
+ @RequestId.setter
19312
+ def RequestId(self, RequestId):
19313
+ self._RequestId = RequestId
19314
+
19315
+
19316
+ def _deserialize(self, params):
19317
+ self._FlowId = params.get("FlowId")
19318
+ self._RequestId = params.get("RequestId")
19319
+
19320
+
19213
19321
  class ModifyDBInstanceSecurityGroupsRequest(AbstractModel):
19214
19322
  """ModifyDBInstanceSecurityGroups请求参数结构体
19215
19323
 
@@ -23356,6 +23464,72 @@ class RunMigrationResponse(AbstractModel):
23356
23464
  self._RequestId = params.get("RequestId")
23357
23465
 
23358
23466
 
23467
+ class SSLConfig(AbstractModel):
23468
+ """SSL加密配置
23469
+
23470
+ """
23471
+
23472
+ def __init__(self):
23473
+ r"""
23474
+ :param _Encryption: SSL加密状态,
23475
+ enable-已开启
23476
+ disable-未开启
23477
+ enable_doing-开启中
23478
+ disable_doing-关闭中
23479
+ renew_doing-更新中
23480
+ wait_doing-等待维护时间内执行
23481
+ 注意:此字段可能返回 null,表示取不到有效值。
23482
+ :type Encryption: str
23483
+ :param _SSLValidityPeriod: SSL证书有效期,时间格式 YYYY-MM-DD HH:MM:SS
23484
+ 注意:此字段可能返回 null,表示取不到有效值。
23485
+ :type SSLValidityPeriod: str
23486
+ :param _SSLValidity: SSL证书有效性,0-无效,1-有效
23487
+ 注意:此字段可能返回 null,表示取不到有效值。
23488
+ :type SSLValidity: int
23489
+ """
23490
+ self._Encryption = None
23491
+ self._SSLValidityPeriod = None
23492
+ self._SSLValidity = None
23493
+
23494
+ @property
23495
+ def Encryption(self):
23496
+ return self._Encryption
23497
+
23498
+ @Encryption.setter
23499
+ def Encryption(self, Encryption):
23500
+ self._Encryption = Encryption
23501
+
23502
+ @property
23503
+ def SSLValidityPeriod(self):
23504
+ return self._SSLValidityPeriod
23505
+
23506
+ @SSLValidityPeriod.setter
23507
+ def SSLValidityPeriod(self, SSLValidityPeriod):
23508
+ self._SSLValidityPeriod = SSLValidityPeriod
23509
+
23510
+ @property
23511
+ def SSLValidity(self):
23512
+ return self._SSLValidity
23513
+
23514
+ @SSLValidity.setter
23515
+ def SSLValidity(self, SSLValidity):
23516
+ self._SSLValidity = SSLValidity
23517
+
23518
+
23519
+ def _deserialize(self, params):
23520
+ self._Encryption = params.get("Encryption")
23521
+ self._SSLValidityPeriod = params.get("SSLValidityPeriod")
23522
+ self._SSLValidity = params.get("SSLValidity")
23523
+ memeber_set = set(params.keys())
23524
+ for name, value in vars(self).items():
23525
+ property_name = name[1:]
23526
+ if property_name in memeber_set:
23527
+ memeber_set.remove(property_name)
23528
+ if len(memeber_set) > 0:
23529
+ warnings.warn("%s fileds are useless." % ",".join(memeber_set))
23530
+
23531
+
23532
+
23359
23533
  class SecurityGroup(AbstractModel):
23360
23534
  """安全组
23361
23535
 
@@ -2487,6 +2487,29 @@ class SqlserverClient(AbstractClient):
2487
2487
  raise TencentCloudSDKException(type(e).__name__, str(e))
2488
2488
 
2489
2489
 
2490
+ def ModifyDBInstanceSSL(self, request):
2491
+ """本接口(ModifyDBInstanceSSL)用于开启\关闭\更新SSL加密
2492
+
2493
+ :param request: Request instance for ModifyDBInstanceSSL.
2494
+ :type request: :class:`tencentcloud.sqlserver.v20180328.models.ModifyDBInstanceSSLRequest`
2495
+ :rtype: :class:`tencentcloud.sqlserver.v20180328.models.ModifyDBInstanceSSLResponse`
2496
+
2497
+ """
2498
+ try:
2499
+ params = request._serialize()
2500
+ headers = request.headers
2501
+ body = self.call("ModifyDBInstanceSSL", params, headers=headers)
2502
+ response = json.loads(body)
2503
+ model = models.ModifyDBInstanceSSLResponse()
2504
+ model._deserialize(response["Response"])
2505
+ return model
2506
+ except Exception as e:
2507
+ if isinstance(e, TencentCloudSDKException):
2508
+ raise
2509
+ else:
2510
+ raise TencentCloudSDKException(type(e).__name__, str(e))
2511
+
2512
+
2490
2513
  def ModifyDBInstanceSecurityGroups(self, request):
2491
2514
  """本接口(ModifyDBInstanceSecurityGroups)用于修改实例绑定的安全组。
2492
2515
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tencentcloud-sdk-python-sqlserver
3
- Version: 3.0.1041
3
+ Version: 3.0.1044
4
4
  Summary: Tencent Cloud Sqlserver SDK for Python
5
5
  Home-page: https://github.com/TencentCloud/tencentcloud-sdk-python
6
6
  Author: Tencent Cloud
@@ -15,7 +15,7 @@ Classifier: Programming Language :: Python :: 2.7
15
15
  Classifier: Programming Language :: Python :: 3
16
16
  Classifier: Programming Language :: Python :: 3.6
17
17
  Classifier: Programming Language :: Python :: 3.7
18
- Requires-Dist: tencentcloud-sdk-python-common (==3.0.1041)
18
+ Requires-Dist: tencentcloud-sdk-python-common (==3.0.1044)
19
19
 
20
20
  ============================
21
21
  Tencent Cloud SDK for Python
@@ -0,0 +1,10 @@
1
+ tencentcloud/__init__.py,sha256=CAYHTzyu9wRM0bedjEBJEdbH2IN7DcSi_cXnDKwrDsM,631
2
+ tencentcloud/sqlserver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ tencentcloud/sqlserver/v20180328/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ tencentcloud/sqlserver/v20180328/errorcodes.py,sha256=Vy3PKAP6KVmDyZgcJwpPFTxo0naCp9HhR5lOI7-VWxQ,10262
5
+ tencentcloud/sqlserver/v20180328/models.py,sha256=ibSkorg40_kufk1vu4_3VV8pxSfoUhgiL7y0t0Eilfs,746259
6
+ tencentcloud/sqlserver/v20180328/sqlserver_client.py,sha256=uzLSkT0yuEof2Gw-UUkOXw1CYCYpPP4XXr0zQ6GV5Rs,141824
7
+ tencentcloud_sdk_python_sqlserver-3.0.1044.dist-info/METADATA,sha256=rJ6mWeDEqykqGeUKZ7-6I7gDX1-ThXi0QKKJax-UMv0,1522
8
+ tencentcloud_sdk_python_sqlserver-3.0.1044.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
+ tencentcloud_sdk_python_sqlserver-3.0.1044.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
+ tencentcloud_sdk_python_sqlserver-3.0.1044.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- tencentcloud/__init__.py,sha256=k-ALeRBzHYGF4wo7O_-4nPywyV6STHAzIZDk3YY8c_4,631
2
- tencentcloud/sqlserver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- tencentcloud/sqlserver/v20180328/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- tencentcloud/sqlserver/v20180328/errorcodes.py,sha256=Vy3PKAP6KVmDyZgcJwpPFTxo0naCp9HhR5lOI7-VWxQ,10262
5
- tencentcloud/sqlserver/v20180328/models.py,sha256=-uJpulFm-gi-0hbT0MLXIsT-PnQJA1LO8YMwtz0hPok,741334
6
- tencentcloud/sqlserver/v20180328/sqlserver_client.py,sha256=ToI9F_6cOJmuCX_A-racSGcA1isqZj418eub9xDep1U,140880
7
- tencentcloud_sdk_python_sqlserver-3.0.1041.dist-info/METADATA,sha256=EbTNg5zhGvMGxI58nh3ifdc5NnSQmdfF141--kS-Jb8,1522
8
- tencentcloud_sdk_python_sqlserver-3.0.1041.dist-info/WHEEL,sha256=z9j0xAa_JmUKMpmz72K0ZGALSM_n-wQVmGbleXx2VHg,110
9
- tencentcloud_sdk_python_sqlserver-3.0.1041.dist-info/top_level.txt,sha256=g-8OyzoqI6O6LiS85zkeNzhB-osEnRIPZMdyRd_0eL0,13
10
- tencentcloud_sdk_python_sqlserver-3.0.1041.dist-info/RECORD,,