huaweicloudsdkdcs 3.1.74__py2.py3-none-any.whl → 3.1.76__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.

Potentially problematic release.


This version of huaweicloudsdkdcs might be problematic. Click here for more details.

@@ -109,6 +109,8 @@ from huaweicloudsdkdcs.v2.model.dim_child import DimChild
109
109
  from huaweicloudsdkdcs.v2.model.domain_name_entity import DomainNameEntity
110
110
  from huaweicloudsdkdcs.v2.model.domain_name_info import DomainNameInfo
111
111
  from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq
112
+ from huaweicloudsdkdcs.v2.model.download_ssl_cert_request import DownloadSslCertRequest
113
+ from huaweicloudsdkdcs.v2.model.download_ssl_cert_response import DownloadSslCertResponse
112
114
  from huaweicloudsdkdcs.v2.model.exchange_instance_ip_request import ExchangeInstanceIpRequest
113
115
  from huaweicloudsdkdcs.v2.model.exchange_instance_ip_response import ExchangeInstanceIpResponse
114
116
  from huaweicloudsdkdcs.v2.model.execute_cluster_switchover_request import ExecuteClusterSwitchoverRequest
@@ -263,6 +265,8 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotk
263
265
  from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse
264
266
  from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest
265
267
  from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse
268
+ from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest
269
+ from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse
266
270
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest
267
271
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse
268
272
  from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest
@@ -330,8 +334,11 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra
330
334
  from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse
331
335
  from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest
332
336
  from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse
337
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody
333
338
  from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest
334
339
  from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse
340
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest
341
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse
335
342
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest
336
343
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse
337
344
  from huaweicloudsdkdcs.v2.model.whitelist import Whitelist
@@ -1968,6 +1968,71 @@ class DcsAsyncClient(Client):
1968
1968
 
1969
1969
  return http_info
1970
1970
 
1971
+ def download_ssl_cert_async(self, request):
1972
+ """下载实例SSL证书
1973
+
1974
+ 下载实例SSL证书。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
1975
+
1976
+ Please refer to HUAWEI cloud API Explorer for details.
1977
+
1978
+
1979
+ :param request: Request instance for DownloadSslCert
1980
+ :type request: :class:`huaweicloudsdkdcs.v2.DownloadSslCertRequest`
1981
+ :rtype: :class:`huaweicloudsdkdcs.v2.DownloadSslCertResponse`
1982
+ """
1983
+ http_info = self._download_ssl_cert_http_info(request)
1984
+ return self._call_api(**http_info)
1985
+
1986
+ def download_ssl_cert_async_invoker(self, request):
1987
+ http_info = self._download_ssl_cert_http_info(request)
1988
+ return AsyncInvoker(self, http_info)
1989
+
1990
+ def _download_ssl_cert_http_info(self, request):
1991
+ http_info = {
1992
+ "method": "POST",
1993
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl-certs/download",
1994
+ "request_type": request.__class__.__name__,
1995
+ "response_type": "DownloadSslCertResponse"
1996
+ }
1997
+
1998
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1999
+
2000
+ cname = None
2001
+
2002
+ collection_formats = {}
2003
+
2004
+ path_params = {}
2005
+ if 'instance_id' in local_var_params:
2006
+ path_params['instance_id'] = local_var_params['instance_id']
2007
+
2008
+ query_params = []
2009
+
2010
+ header_params = {}
2011
+
2012
+ form_params = {}
2013
+
2014
+ body = None
2015
+ if isinstance(request, SdkStreamRequest):
2016
+ body = request.get_file_stream()
2017
+
2018
+ response_headers = []
2019
+
2020
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2021
+ ['application/json'])
2022
+
2023
+ auth_settings = []
2024
+
2025
+ http_info["cname"] = cname
2026
+ http_info["collection_formats"] = collection_formats
2027
+ http_info["path_params"] = path_params
2028
+ http_info["query_params"] = query_params
2029
+ http_info["header_params"] = header_params
2030
+ http_info["post_params"] = form_params
2031
+ http_info["body"] = body
2032
+ http_info["response_headers"] = response_headers
2033
+
2034
+ return http_info
2035
+
1971
2036
  def exchange_instance_ip_async(self, request):
1972
2037
  """进行IP交换
1973
2038
 
@@ -5521,6 +5586,71 @@ class DcsAsyncClient(Client):
5521
5586
 
5522
5587
  return http_info
5523
5588
 
5589
+ def show_instance_ssl_detail_async(self, request):
5590
+ """查询实例SSL信息
5591
+
5592
+ 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
5593
+
5594
+ Please refer to HUAWEI cloud API Explorer for details.
5595
+
5596
+
5597
+ :param request: Request instance for ShowInstanceSslDetail
5598
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest`
5599
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse`
5600
+ """
5601
+ http_info = self._show_instance_ssl_detail_http_info(request)
5602
+ return self._call_api(**http_info)
5603
+
5604
+ def show_instance_ssl_detail_async_invoker(self, request):
5605
+ http_info = self._show_instance_ssl_detail_http_info(request)
5606
+ return AsyncInvoker(self, http_info)
5607
+
5608
+ def _show_instance_ssl_detail_http_info(self, request):
5609
+ http_info = {
5610
+ "method": "GET",
5611
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
5612
+ "request_type": request.__class__.__name__,
5613
+ "response_type": "ShowInstanceSslDetailResponse"
5614
+ }
5615
+
5616
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5617
+
5618
+ cname = None
5619
+
5620
+ collection_formats = {}
5621
+
5622
+ path_params = {}
5623
+ if 'instance_id' in local_var_params:
5624
+ path_params['instance_id'] = local_var_params['instance_id']
5625
+
5626
+ query_params = []
5627
+
5628
+ header_params = {}
5629
+
5630
+ form_params = {}
5631
+
5632
+ body = None
5633
+ if isinstance(request, SdkStreamRequest):
5634
+ body = request.get_file_stream()
5635
+
5636
+ response_headers = []
5637
+
5638
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5639
+ ['application/json'])
5640
+
5641
+ auth_settings = []
5642
+
5643
+ http_info["cname"] = cname
5644
+ http_info["collection_formats"] = collection_formats
5645
+ http_info["path_params"] = path_params
5646
+ http_info["query_params"] = query_params
5647
+ http_info["header_params"] = header_params
5648
+ http_info["post_params"] = form_params
5649
+ http_info["body"] = body
5650
+ http_info["response_headers"] = response_headers
5651
+
5652
+ return http_info
5653
+
5524
5654
  def show_job_info_async(self, request):
5525
5655
  """查询租户Job执行结果
5526
5656
 
@@ -7188,6 +7318,73 @@ class DcsAsyncClient(Client):
7188
7318
 
7189
7319
  return http_info
7190
7320
 
7321
+ def update_ssl_switch_async(self, request):
7322
+ """开启/关闭SSL
7323
+
7324
+ 开启/关闭SSL。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
7325
+
7326
+ Please refer to HUAWEI cloud API Explorer for details.
7327
+
7328
+
7329
+ :param request: Request instance for UpdateSslSwitch
7330
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchRequest`
7331
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchResponse`
7332
+ """
7333
+ http_info = self._update_ssl_switch_http_info(request)
7334
+ return self._call_api(**http_info)
7335
+
7336
+ def update_ssl_switch_async_invoker(self, request):
7337
+ http_info = self._update_ssl_switch_http_info(request)
7338
+ return AsyncInvoker(self, http_info)
7339
+
7340
+ def _update_ssl_switch_http_info(self, request):
7341
+ http_info = {
7342
+ "method": "PUT",
7343
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
7344
+ "request_type": request.__class__.__name__,
7345
+ "response_type": "UpdateSslSwitchResponse"
7346
+ }
7347
+
7348
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7349
+
7350
+ cname = None
7351
+
7352
+ collection_formats = {}
7353
+
7354
+ path_params = {}
7355
+ if 'instance_id' in local_var_params:
7356
+ path_params['instance_id'] = local_var_params['instance_id']
7357
+
7358
+ query_params = []
7359
+
7360
+ header_params = {}
7361
+
7362
+ form_params = {}
7363
+
7364
+ body = None
7365
+ if 'body' in local_var_params:
7366
+ body = local_var_params['body']
7367
+ if isinstance(request, SdkStreamRequest):
7368
+ body = request.get_file_stream()
7369
+
7370
+ response_headers = []
7371
+
7372
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7373
+ ['application/json;charset=UTF-8'])
7374
+
7375
+ auth_settings = []
7376
+
7377
+ http_info["cname"] = cname
7378
+ http_info["collection_formats"] = collection_formats
7379
+ http_info["path_params"] = path_params
7380
+ http_info["query_params"] = query_params
7381
+ http_info["header_params"] = header_params
7382
+ http_info["post_params"] = form_params
7383
+ http_info["body"] = body
7384
+ http_info["response_headers"] = response_headers
7385
+
7386
+ return http_info
7387
+
7191
7388
  def validate_deletable_replica_async(self, request):
7192
7389
  """校验集群副本是否支持删除
7193
7390
 
@@ -1968,6 +1968,71 @@ class DcsClient(Client):
1968
1968
 
1969
1969
  return http_info
1970
1970
 
1971
+ def download_ssl_cert(self, request):
1972
+ """下载实例SSL证书
1973
+
1974
+ 下载实例SSL证书。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
1975
+
1976
+ Please refer to HUAWEI cloud API Explorer for details.
1977
+
1978
+ :param request: Request instance for DownloadSslCert
1979
+ :type request: :class:`huaweicloudsdkdcs.v2.DownloadSslCertRequest`
1980
+ :rtype: :class:`huaweicloudsdkdcs.v2.DownloadSslCertResponse`
1981
+ """
1982
+ http_info = self._download_ssl_cert_http_info(request)
1983
+ return self._call_api(**http_info)
1984
+
1985
+ def download_ssl_cert_invoker(self, request):
1986
+ http_info = self._download_ssl_cert_http_info(request)
1987
+ return SyncInvoker(self, http_info)
1988
+
1989
+ @classmethod
1990
+ def _download_ssl_cert_http_info(cls, request):
1991
+ http_info = {
1992
+ "method": "POST",
1993
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl-certs/download",
1994
+ "request_type": request.__class__.__name__,
1995
+ "response_type": "DownloadSslCertResponse"
1996
+ }
1997
+
1998
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1999
+
2000
+ cname = None
2001
+
2002
+ collection_formats = {}
2003
+
2004
+ path_params = {}
2005
+ if 'instance_id' in local_var_params:
2006
+ path_params['instance_id'] = local_var_params['instance_id']
2007
+
2008
+ query_params = []
2009
+
2010
+ header_params = {}
2011
+
2012
+ form_params = {}
2013
+
2014
+ body = None
2015
+ if isinstance(request, SdkStreamRequest):
2016
+ body = request.get_file_stream()
2017
+
2018
+ response_headers = []
2019
+
2020
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2021
+ ['application/json'])
2022
+
2023
+ auth_settings = []
2024
+
2025
+ http_info["cname"] = cname
2026
+ http_info["collection_formats"] = collection_formats
2027
+ http_info["path_params"] = path_params
2028
+ http_info["query_params"] = query_params
2029
+ http_info["header_params"] = header_params
2030
+ http_info["post_params"] = form_params
2031
+ http_info["body"] = body
2032
+ http_info["response_headers"] = response_headers
2033
+
2034
+ return http_info
2035
+
1971
2036
  def exchange_instance_ip(self, request):
1972
2037
  """进行IP交换
1973
2038
 
@@ -5521,6 +5586,71 @@ class DcsClient(Client):
5521
5586
 
5522
5587
  return http_info
5523
5588
 
5589
+ def show_instance_ssl_detail(self, request):
5590
+ """查询实例SSL信息
5591
+
5592
+ 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
5593
+
5594
+ Please refer to HUAWEI cloud API Explorer for details.
5595
+
5596
+ :param request: Request instance for ShowInstanceSslDetail
5597
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest`
5598
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse`
5599
+ """
5600
+ http_info = self._show_instance_ssl_detail_http_info(request)
5601
+ return self._call_api(**http_info)
5602
+
5603
+ def show_instance_ssl_detail_invoker(self, request):
5604
+ http_info = self._show_instance_ssl_detail_http_info(request)
5605
+ return SyncInvoker(self, http_info)
5606
+
5607
+ @classmethod
5608
+ def _show_instance_ssl_detail_http_info(cls, request):
5609
+ http_info = {
5610
+ "method": "GET",
5611
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
5612
+ "request_type": request.__class__.__name__,
5613
+ "response_type": "ShowInstanceSslDetailResponse"
5614
+ }
5615
+
5616
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5617
+
5618
+ cname = None
5619
+
5620
+ collection_formats = {}
5621
+
5622
+ path_params = {}
5623
+ if 'instance_id' in local_var_params:
5624
+ path_params['instance_id'] = local_var_params['instance_id']
5625
+
5626
+ query_params = []
5627
+
5628
+ header_params = {}
5629
+
5630
+ form_params = {}
5631
+
5632
+ body = None
5633
+ if isinstance(request, SdkStreamRequest):
5634
+ body = request.get_file_stream()
5635
+
5636
+ response_headers = []
5637
+
5638
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5639
+ ['application/json'])
5640
+
5641
+ auth_settings = []
5642
+
5643
+ http_info["cname"] = cname
5644
+ http_info["collection_formats"] = collection_formats
5645
+ http_info["path_params"] = path_params
5646
+ http_info["query_params"] = query_params
5647
+ http_info["header_params"] = header_params
5648
+ http_info["post_params"] = form_params
5649
+ http_info["body"] = body
5650
+ http_info["response_headers"] = response_headers
5651
+
5652
+ return http_info
5653
+
5524
5654
  def show_job_info(self, request):
5525
5655
  """查询租户Job执行结果
5526
5656
 
@@ -7188,6 +7318,73 @@ class DcsClient(Client):
7188
7318
 
7189
7319
  return http_info
7190
7320
 
7321
+ def update_ssl_switch(self, request):
7322
+ """开启/关闭SSL
7323
+
7324
+ 开启/关闭SSL。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
7325
+
7326
+ Please refer to HUAWEI cloud API Explorer for details.
7327
+
7328
+ :param request: Request instance for UpdateSslSwitch
7329
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchRequest`
7330
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateSslSwitchResponse`
7331
+ """
7332
+ http_info = self._update_ssl_switch_http_info(request)
7333
+ return self._call_api(**http_info)
7334
+
7335
+ def update_ssl_switch_invoker(self, request):
7336
+ http_info = self._update_ssl_switch_http_info(request)
7337
+ return SyncInvoker(self, http_info)
7338
+
7339
+ @classmethod
7340
+ def _update_ssl_switch_http_info(cls, request):
7341
+ http_info = {
7342
+ "method": "PUT",
7343
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
7344
+ "request_type": request.__class__.__name__,
7345
+ "response_type": "UpdateSslSwitchResponse"
7346
+ }
7347
+
7348
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7349
+
7350
+ cname = None
7351
+
7352
+ collection_formats = {}
7353
+
7354
+ path_params = {}
7355
+ if 'instance_id' in local_var_params:
7356
+ path_params['instance_id'] = local_var_params['instance_id']
7357
+
7358
+ query_params = []
7359
+
7360
+ header_params = {}
7361
+
7362
+ form_params = {}
7363
+
7364
+ body = None
7365
+ if 'body' in local_var_params:
7366
+ body = local_var_params['body']
7367
+ if isinstance(request, SdkStreamRequest):
7368
+ body = request.get_file_stream()
7369
+
7370
+ response_headers = []
7371
+
7372
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7373
+ ['application/json;charset=UTF-8'])
7374
+
7375
+ auth_settings = []
7376
+
7377
+ http_info["cname"] = cname
7378
+ http_info["collection_formats"] = collection_formats
7379
+ http_info["path_params"] = path_params
7380
+ http_info["query_params"] = query_params
7381
+ http_info["header_params"] = header_params
7382
+ http_info["post_params"] = form_params
7383
+ http_info["body"] = body
7384
+ http_info["response_headers"] = response_headers
7385
+
7386
+ return http_info
7387
+
7191
7388
  def validate_deletable_replica(self, request):
7192
7389
  """校验集群副本是否支持删除
7193
7390
 
@@ -107,6 +107,8 @@ from huaweicloudsdkdcs.v2.model.dim_child import DimChild
107
107
  from huaweicloudsdkdcs.v2.model.domain_name_entity import DomainNameEntity
108
108
  from huaweicloudsdkdcs.v2.model.domain_name_info import DomainNameInfo
109
109
  from huaweicloudsdkdcs.v2.model.download_backup_files_req import DownloadBackupFilesReq
110
+ from huaweicloudsdkdcs.v2.model.download_ssl_cert_request import DownloadSslCertRequest
111
+ from huaweicloudsdkdcs.v2.model.download_ssl_cert_response import DownloadSslCertResponse
110
112
  from huaweicloudsdkdcs.v2.model.exchange_instance_ip_request import ExchangeInstanceIpRequest
111
113
  from huaweicloudsdkdcs.v2.model.exchange_instance_ip_response import ExchangeInstanceIpResponse
112
114
  from huaweicloudsdkdcs.v2.model.execute_cluster_switchover_request import ExecuteClusterSwitchoverRequest
@@ -261,6 +263,8 @@ from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_request import ShowHotk
261
263
  from huaweicloudsdkdcs.v2.model.show_hotkey_task_details_response import ShowHotkeyTaskDetailsResponse
262
264
  from huaweicloudsdkdcs.v2.model.show_instance_request import ShowInstanceRequest
263
265
  from huaweicloudsdkdcs.v2.model.show_instance_response import ShowInstanceResponse
266
+ from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_request import ShowInstanceSslDetailRequest
267
+ from huaweicloudsdkdcs.v2.model.show_instance_ssl_detail_response import ShowInstanceSslDetailResponse
264
268
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_request import ShowIpWhitelistRequest
265
269
  from huaweicloudsdkdcs.v2.model.show_ip_whitelist_response import ShowIpWhitelistResponse
266
270
  from huaweicloudsdkdcs.v2.model.show_job_info_request import ShowJobInfoRequest
@@ -328,8 +332,11 @@ from huaweicloudsdkdcs.v2.model.update_migration_task_request import UpdateMigra
328
332
  from huaweicloudsdkdcs.v2.model.update_migration_task_response import UpdateMigrationTaskResponse
329
333
  from huaweicloudsdkdcs.v2.model.update_password_request import UpdatePasswordRequest
330
334
  from huaweicloudsdkdcs.v2.model.update_password_response import UpdatePasswordResponse
335
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_request_body import UpdateSSLSwitchRequestBody
331
336
  from huaweicloudsdkdcs.v2.model.update_slave_priority_request import UpdateSlavePriorityRequest
332
337
  from huaweicloudsdkdcs.v2.model.update_slave_priority_response import UpdateSlavePriorityResponse
338
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_request import UpdateSslSwitchRequest
339
+ from huaweicloudsdkdcs.v2.model.update_ssl_switch_response import UpdateSslSwitchResponse
333
340
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_request import ValidateDeletableReplicaRequest
334
341
  from huaweicloudsdkdcs.v2.model.validate_deletable_replica_response import ValidateDeletableReplicaResponse
335
342
  from huaweicloudsdkdcs.v2.model.whitelist import Whitelist
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DownloadSslCertRequest:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'instance_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'instance_id': 'instance_id'
25
+ }
26
+
27
+ def __init__(self, instance_id=None):
28
+ """DownloadSslCertRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id: 实例ID。
33
+ :type instance_id: str
34
+ """
35
+
36
+
37
+
38
+ self._instance_id = None
39
+ self.discriminator = None
40
+
41
+ self.instance_id = instance_id
42
+
43
+ @property
44
+ def instance_id(self):
45
+ """Gets the instance_id of this DownloadSslCertRequest.
46
+
47
+ 实例ID。
48
+
49
+ :return: The instance_id of this DownloadSslCertRequest.
50
+ :rtype: str
51
+ """
52
+ return self._instance_id
53
+
54
+ @instance_id.setter
55
+ def instance_id(self, instance_id):
56
+ """Sets the instance_id of this DownloadSslCertRequest.
57
+
58
+ 实例ID。
59
+
60
+ :param instance_id: The instance_id of this DownloadSslCertRequest.
61
+ :type instance_id: str
62
+ """
63
+ self._instance_id = instance_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, DownloadSslCertRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other