huaweicloudsdkelb 3.1.148__py2.py3-none-any.whl → 3.1.149__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.
Files changed (72) hide show
  1. huaweicloudsdkelb/v3/__init__.py +34 -0
  2. huaweicloudsdkelb/v3/elb_async_client.py +631 -3
  3. huaweicloudsdkelb/v3/elb_client.py +631 -3
  4. huaweicloudsdkelb/v3/model/__init__.py +34 -0
  5. huaweicloudsdkelb/v3/model/az_affinity.py +201 -0
  6. huaweicloudsdkelb/v3/model/batch_create_load_balancer_option.py +3 -3
  7. huaweicloudsdkelb/v3/model/batch_create_members_option.py +30 -1
  8. huaweicloudsdkelb/v3/model/batch_update_member.py +32 -3
  9. huaweicloudsdkelb/v3/model/batch_update_members_option.py +30 -1
  10. huaweicloudsdkelb/v3/model/certificate_info.py +90 -3
  11. huaweicloudsdkelb/v3/model/create_certificate_option.py +90 -3
  12. huaweicloudsdkelb/v3/model/create_health_monitor_option.py +3 -3
  13. huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +3 -3
  14. huaweicloudsdkelb/v3/model/create_member_health_check_job_option.py +142 -0
  15. huaweicloudsdkelb/v3/model/create_member_health_check_job_request.py +139 -0
  16. huaweicloudsdkelb/v3/model/create_member_health_check_job_request_body.py +111 -0
  17. huaweicloudsdkelb/v3/model/create_member_health_check_job_response.py +141 -0
  18. huaweicloudsdkelb/v3/model/create_member_option.py +32 -3
  19. huaweicloudsdkelb/v3/model/create_pool_option.py +26 -1
  20. huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +28 -3
  21. huaweicloudsdkelb/v3/model/create_traffic_mirror_config.py +144 -0
  22. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_request.py +114 -0
  23. huaweicloudsdkelb/v3/model/delete_recycle_load_balancer_response.py +85 -0
  24. huaweicloudsdkelb/v3/model/health_monitor.py +3 -3
  25. huaweicloudsdkelb/v3/model/list_certificates_request.py +90 -3
  26. huaweicloudsdkelb/v3/model/list_health_monitors_request.py +3 -3
  27. huaweicloudsdkelb/v3/model/list_listeners_request.py +30 -1
  28. huaweicloudsdkelb/v3/model/list_load_balancers_request.py +30 -1
  29. huaweicloudsdkelb/v3/model/list_members_request.py +32 -3
  30. huaweicloudsdkelb/v3/model/list_pools_request.py +32 -3
  31. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_request.py +1043 -0
  32. huaweicloudsdkelb/v3/model/list_recycle_bin_load_balancers_response.py +170 -0
  33. huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +3 -3
  34. huaweicloudsdkelb/v3/model/member.py +29 -1
  35. huaweicloudsdkelb/v3/model/member_check_job.py +115 -0
  36. huaweicloudsdkelb/v3/model/member_check_job_info.py +343 -0
  37. huaweicloudsdkelb/v3/model/member_check_job_result.py +161 -0
  38. huaweicloudsdkelb/v3/model/member_check_job_result_group.py +173 -0
  39. huaweicloudsdkelb/v3/model/member_check_job_result_item.py +289 -0
  40. huaweicloudsdkelb/v3/model/member_info.py +29 -1
  41. huaweicloudsdkelb/v3/model/pool.py +29 -4
  42. huaweicloudsdkelb/v3/model/prepaid_change_charge_mode_option.py +30 -1
  43. huaweicloudsdkelb/v3/model/recycle_bin_policy.py +144 -0
  44. huaweicloudsdkelb/v3/model/recycle_bin_policy_request_body.py +111 -0
  45. huaweicloudsdkelb/v3/model/recycle_bin_request_body.py +115 -0
  46. huaweicloudsdkelb/v3/model/recycle_bin_response_body.py +169 -0
  47. huaweicloudsdkelb/v3/model/recycle_load_balancer.py +1412 -0
  48. huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +28 -3
  49. huaweicloudsdkelb/v3/model/restore_loadbalancer_request.py +114 -0
  50. huaweicloudsdkelb/v3/model/restore_loadbalancer_response.py +174 -0
  51. huaweicloudsdkelb/v3/model/show_member_health_check_job_request.py +114 -0
  52. huaweicloudsdkelb/v3/model/show_member_health_check_job_response.py +141 -0
  53. huaweicloudsdkelb/v3/model/show_recycle_bin_request.py +84 -0
  54. huaweicloudsdkelb/v3/model/show_recycle_bin_response.py +112 -0
  55. huaweicloudsdkelb/v3/model/traffic_mirror_config.py +144 -0
  56. huaweicloudsdkelb/v3/model/update_az_affinity.py +202 -0
  57. huaweicloudsdkelb/v3/model/update_certificate_option.py +90 -3
  58. huaweicloudsdkelb/v3/model/update_health_monitor_option.py +3 -3
  59. huaweicloudsdkelb/v3/model/update_member_option.py +30 -1
  60. huaweicloudsdkelb/v3/model/update_pool_option.py +28 -3
  61. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request.py +111 -0
  62. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_request_body.py +111 -0
  63. huaweicloudsdkelb/v3/model/update_recycle_bin_enable_response.py +112 -0
  64. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request.py +111 -0
  65. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_request_body.py +111 -0
  66. huaweicloudsdkelb/v3/model/update_recycle_bin_policy_response.py +112 -0
  67. huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +28 -3
  68. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/METADATA +2 -2
  69. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/RECORD +72 -38
  70. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/LICENSE +0 -0
  71. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/WHEEL +0 -0
  72. {huaweicloudsdkelb-3.1.148.dist-info → huaweicloudsdkelb-3.1.149.dist-info}/top_level.txt +0 -0
@@ -34,7 +34,10 @@ class CertificateInfo:
34
34
  'scm_certificate_id': 'str',
35
35
  'common_name': 'str',
36
36
  'fingerprint': 'str',
37
- 'subject_alternative_names': 'list[str]'
37
+ 'subject_alternative_names': 'list[str]',
38
+ 'source': 'str',
39
+ 'protection_status': 'str',
40
+ 'protection_reason': 'str'
38
41
  }
39
42
 
40
43
  attribute_map = {
@@ -55,10 +58,13 @@ class CertificateInfo:
55
58
  'scm_certificate_id': 'scm_certificate_id',
56
59
  'common_name': 'common_name',
57
60
  'fingerprint': 'fingerprint',
58
- 'subject_alternative_names': 'subject_alternative_names'
61
+ 'subject_alternative_names': 'subject_alternative_names',
62
+ 'source': 'source',
63
+ 'protection_status': 'protection_status',
64
+ 'protection_reason': 'protection_reason'
59
65
  }
60
66
 
61
- def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, id=None, name=None, private_key=None, type=None, created_at=None, updated_at=None, expire_time=None, project_id=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None, common_name=None, fingerprint=None, subject_alternative_names=None):
67
+ def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, id=None, name=None, private_key=None, type=None, created_at=None, updated_at=None, expire_time=None, project_id=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None, common_name=None, fingerprint=None, subject_alternative_names=None, source=None, protection_status=None, protection_reason=None):
62
68
  r"""CertificateInfo
63
69
 
64
70
  The model defined in huaweicloud sdk
@@ -99,6 +105,12 @@ class CertificateInfo:
99
105
  :type fingerprint: str
100
106
  :param subject_alternative_names: 证书绑定的所有域名。
101
107
  :type subject_alternative_names: list[str]
108
+ :param source: 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
109
+ :type source: str
110
+ :param protection_status: 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
111
+ :type protection_status: str
112
+ :param protection_reason: 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
113
+ :type protection_reason: str
102
114
  """
103
115
 
104
116
 
@@ -121,6 +133,9 @@ class CertificateInfo:
121
133
  self._common_name = None
122
134
  self._fingerprint = None
123
135
  self._subject_alternative_names = None
136
+ self._source = None
137
+ self._protection_status = None
138
+ self._protection_reason = None
124
139
  self.discriminator = None
125
140
 
126
141
  self.admin_state_up = admin_state_up
@@ -147,6 +162,12 @@ class CertificateInfo:
147
162
  self.fingerprint = fingerprint
148
163
  if subject_alternative_names is not None:
149
164
  self.subject_alternative_names = subject_alternative_names
165
+ if source is not None:
166
+ self.source = source
167
+ if protection_status is not None:
168
+ self.protection_status = protection_status
169
+ if protection_reason is not None:
170
+ self.protection_reason = protection_reason
150
171
 
151
172
  @property
152
173
  def admin_state_up(self):
@@ -544,6 +565,72 @@ class CertificateInfo:
544
565
  """
545
566
  self._subject_alternative_names = subject_alternative_names
546
567
 
568
+ @property
569
+ def source(self):
570
+ r"""Gets the source of this CertificateInfo.
571
+
572
+ 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
573
+
574
+ :return: The source of this CertificateInfo.
575
+ :rtype: str
576
+ """
577
+ return self._source
578
+
579
+ @source.setter
580
+ def source(self, source):
581
+ r"""Sets the source of this CertificateInfo.
582
+
583
+ 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
584
+
585
+ :param source: The source of this CertificateInfo.
586
+ :type source: str
587
+ """
588
+ self._source = source
589
+
590
+ @property
591
+ def protection_status(self):
592
+ r"""Gets the protection_status of this CertificateInfo.
593
+
594
+ 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
595
+
596
+ :return: The protection_status of this CertificateInfo.
597
+ :rtype: str
598
+ """
599
+ return self._protection_status
600
+
601
+ @protection_status.setter
602
+ def protection_status(self, protection_status):
603
+ r"""Sets the protection_status of this CertificateInfo.
604
+
605
+ 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
606
+
607
+ :param protection_status: The protection_status of this CertificateInfo.
608
+ :type protection_status: str
609
+ """
610
+ self._protection_status = protection_status
611
+
612
+ @property
613
+ def protection_reason(self):
614
+ r"""Gets the protection_reason of this CertificateInfo.
615
+
616
+ 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
617
+
618
+ :return: The protection_reason of this CertificateInfo.
619
+ :rtype: str
620
+ """
621
+ return self._protection_reason
622
+
623
+ @protection_reason.setter
624
+ def protection_reason(self, protection_reason):
625
+ r"""Sets the protection_reason of this CertificateInfo.
626
+
627
+ 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
628
+
629
+ :param protection_reason: The protection_reason of this CertificateInfo.
630
+ :type protection_reason: str
631
+ """
632
+ self._protection_reason = protection_reason
633
+
547
634
  def to_dict(self):
548
635
  """Returns the model properties as a dict"""
549
636
  result = {}
@@ -28,7 +28,10 @@ class CreateCertificateOption:
28
28
  'enterprise_project_id': 'str',
29
29
  'enc_certificate': 'str',
30
30
  'enc_private_key': 'str',
31
- 'scm_certificate_id': 'str'
31
+ 'scm_certificate_id': 'str',
32
+ 'source': 'str',
33
+ 'protection_status': 'str',
34
+ 'protection_reason': 'str'
32
35
  }
33
36
 
34
37
  attribute_map = {
@@ -43,10 +46,13 @@ class CreateCertificateOption:
43
46
  'enterprise_project_id': 'enterprise_project_id',
44
47
  'enc_certificate': 'enc_certificate',
45
48
  'enc_private_key': 'enc_private_key',
46
- 'scm_certificate_id': 'scm_certificate_id'
49
+ 'scm_certificate_id': 'scm_certificate_id',
50
+ 'source': 'source',
51
+ 'protection_status': 'protection_status',
52
+ 'protection_reason': 'protection_reason'
47
53
  }
48
54
 
49
- def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, name=None, private_key=None, project_id=None, type=None, enterprise_project_id=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None):
55
+ def __init__(self, admin_state_up=None, certificate=None, description=None, domain=None, name=None, private_key=None, project_id=None, type=None, enterprise_project_id=None, enc_certificate=None, enc_private_key=None, scm_certificate_id=None, source=None, protection_status=None, protection_reason=None):
50
56
  r"""CreateCertificateOption
51
57
 
52
58
  The model defined in huaweicloud sdk
@@ -75,6 +81,12 @@ class CreateCertificateOption:
75
81
  :type enc_private_key: str
76
82
  :param scm_certificate_id: SM证书ID。
77
83
  :type scm_certificate_id: str
84
+ :param source: 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
85
+ :type source: str
86
+ :param protection_status: 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
87
+ :type protection_status: str
88
+ :param protection_reason: 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
89
+ :type protection_reason: str
78
90
  """
79
91
 
80
92
 
@@ -91,6 +103,9 @@ class CreateCertificateOption:
91
103
  self._enc_certificate = None
92
104
  self._enc_private_key = None
93
105
  self._scm_certificate_id = None
106
+ self._source = None
107
+ self._protection_status = None
108
+ self._protection_reason = None
94
109
  self.discriminator = None
95
110
 
96
111
  if admin_state_up is not None:
@@ -117,6 +132,12 @@ class CreateCertificateOption:
117
132
  self.enc_private_key = enc_private_key
118
133
  if scm_certificate_id is not None:
119
134
  self.scm_certificate_id = scm_certificate_id
135
+ if source is not None:
136
+ self.source = source
137
+ if protection_status is not None:
138
+ self.protection_status = protection_status
139
+ if protection_reason is not None:
140
+ self.protection_reason = protection_reason
120
141
 
121
142
  @property
122
143
  def admin_state_up(self):
@@ -382,6 +403,72 @@ class CreateCertificateOption:
382
403
  """
383
404
  self._scm_certificate_id = scm_certificate_id
384
405
 
406
+ @property
407
+ def source(self):
408
+ r"""Gets the source of this CreateCertificateOption.
409
+
410
+ 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
411
+
412
+ :return: The source of this CreateCertificateOption.
413
+ :rtype: str
414
+ """
415
+ return self._source
416
+
417
+ @source.setter
418
+ def source(self, source):
419
+ r"""Sets the source of this CreateCertificateOption.
420
+
421
+ 参数解释:证书来源 取值范围:无 默认取值:当scm_certificate_id不为空,且未传入source时,默认取值为“scm”; 其他情况下默认为空。
422
+
423
+ :param source: The source of this CreateCertificateOption.
424
+ :type source: str
425
+ """
426
+ self._source = source
427
+
428
+ @property
429
+ def protection_status(self):
430
+ r"""Gets the protection_status of this CreateCertificateOption.
431
+
432
+ 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
433
+
434
+ :return: The protection_status of this CreateCertificateOption.
435
+ :rtype: str
436
+ """
437
+ return self._protection_status
438
+
439
+ @protection_status.setter
440
+ def protection_status(self, protection_status):
441
+ r"""Sets the protection_status of this CreateCertificateOption.
442
+
443
+ 参数解释:修改保护状态 约束限制:无 取值范围: - nonProtection: 不保护 - consoleProtection: 控制台修改保护 默认取值:nonProtection
444
+
445
+ :param protection_status: The protection_status of this CreateCertificateOption.
446
+ :type protection_status: str
447
+ """
448
+ self._protection_status = protection_status
449
+
450
+ @property
451
+ def protection_reason(self):
452
+ r"""Gets the protection_reason of this CreateCertificateOption.
453
+
454
+ 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
455
+
456
+ :return: The protection_reason of this CreateCertificateOption.
457
+ :rtype: str
458
+ """
459
+ return self._protection_reason
460
+
461
+ @protection_reason.setter
462
+ def protection_reason(self, protection_reason):
463
+ r"""Sets the protection_reason of this CreateCertificateOption.
464
+
465
+ 参数解释:设置修改保护的原因 约束限制:仅当protection_status为consoleProtection时有效 取值范围:无 默认取值:空
466
+
467
+ :param protection_reason: The protection_reason of this CreateCertificateOption.
468
+ :type protection_reason: str
469
+ """
470
+ self._protection_reason = protection_reason
471
+
385
472
  def to_dict(self):
386
473
  """Returns the model properties as a dict"""
387
474
  result = {}
@@ -61,7 +61,7 @@ class CreateHealthMonitorOption:
61
61
  :type delay: int
62
62
  :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
63
63
  :type domain_name: str
64
- :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
64
+ :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
65
65
  :type expected_codes: str
66
66
  :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
67
67
  :type http_method: str
@@ -197,7 +197,7 @@ class CreateHealthMonitorOption:
197
197
  def expected_codes(self):
198
198
  r"""Gets the expected_codes of this CreateHealthMonitorOption.
199
199
 
200
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
200
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
201
201
 
202
202
  :return: The expected_codes of this CreateHealthMonitorOption.
203
203
  :rtype: str
@@ -208,7 +208,7 @@ class CreateHealthMonitorOption:
208
208
  def expected_codes(self, expected_codes):
209
209
  r"""Sets the expected_codes of this CreateHealthMonitorOption.
210
210
 
211
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
211
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:若健康检查type为GRPC,则默认值为0,;其他为200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
212
212
 
213
213
  :param expected_codes: The expected_codes of this CreateHealthMonitorOption.
214
214
  :type expected_codes: str
@@ -53,7 +53,7 @@ class CreateMasterSlaveHealthMonitorOption:
53
53
  :type delay: int
54
54
  :param domain_name: 发送健康检查请求的域名。 取值:以数字或字母开头,只能包含数字、字母、’-’、’.’。 默认为空,表示使用负载均衡器的vip作为http请求的目的地址。 使用说明:当type为HTTP/HTTPS时生效。
55
55
  :type domain_name: str
56
- :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
56
+ :param expected_codes: 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
57
57
  :type expected_codes: str
58
58
  :param http_method: HTTP请求方法。 取值:GET、HEAD、POST,默认GET。 使用说明:当type为HTTP/HTTPS时生效。
59
59
  :type http_method: str
@@ -155,7 +155,7 @@ class CreateMasterSlaveHealthMonitorOption:
155
155
  def expected_codes(self):
156
156
  r"""Gets the expected_codes of this CreateMasterSlaveHealthMonitorOption.
157
157
 
158
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
158
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
159
159
 
160
160
  :return: The expected_codes of this CreateMasterSlaveHealthMonitorOption.
161
161
  :rtype: str
@@ -166,7 +166,7 @@ class CreateMasterSlaveHealthMonitorOption:
166
166
  def expected_codes(self, expected_codes):
167
167
  r"""Sets the expected_codes of this CreateMasterSlaveHealthMonitorOption.
168
168
 
169
- 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 仅支持HTTP/HTTPS/GRPC设置该字段,其他协议设置不会生效。
169
+ 期望响应状态码。 取值: - 单值:单个返回码,例如200。 - 列表:多个特定返回码,例如200,202。 - 区间:一个返回码区间,例如200-204。 默认值:200。 该字段仅在HTTP/HTTPS/GRPC协议下有效,其他协议可以设置但不会生效。
170
170
 
171
171
  :param expected_codes: The expected_codes of this CreateMasterSlaveHealthMonitorOption.
172
172
  :type expected_codes: str
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateMemberHealthCheckJobOption:
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
+ 'listener_id': 'str',
21
+ 'subject': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'listener_id': 'listener_id',
26
+ 'subject': 'subject'
27
+ }
28
+
29
+ def __init__(self, listener_id=None, subject=None):
30
+ r"""CreateMemberHealthCheckJobOption
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param listener_id: 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
35
+ :type listener_id: str
36
+ :param subject: 参数法解释:检查项。 取值范围: - securityGroup:安全组检查。 - networkAcl:子网ACL配置检查。 - config:健康检查端口配置检查。 - all:所有检查项。
37
+ :type subject: str
38
+ """
39
+
40
+
41
+
42
+ self._listener_id = None
43
+ self._subject = None
44
+ self.discriminator = None
45
+
46
+ self.listener_id = listener_id
47
+ self.subject = subject
48
+
49
+ @property
50
+ def listener_id(self):
51
+ r"""Gets the listener_id of this CreateMemberHealthCheckJobOption.
52
+
53
+ 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
54
+
55
+ :return: The listener_id of this CreateMemberHealthCheckJobOption.
56
+ :rtype: str
57
+ """
58
+ return self._listener_id
59
+
60
+ @listener_id.setter
61
+ def listener_id(self, listener_id):
62
+ r"""Sets the listener_id of this CreateMemberHealthCheckJobOption.
63
+
64
+ 参数解释:后端服务器所关联的监听器,查询在该监听器下后端服务器的状态。
65
+
66
+ :param listener_id: The listener_id of this CreateMemberHealthCheckJobOption.
67
+ :type listener_id: str
68
+ """
69
+ self._listener_id = listener_id
70
+
71
+ @property
72
+ def subject(self):
73
+ r"""Gets the subject of this CreateMemberHealthCheckJobOption.
74
+
75
+ 参数法解释:检查项。 取值范围: - securityGroup:安全组检查。 - networkAcl:子网ACL配置检查。 - config:健康检查端口配置检查。 - all:所有检查项。
76
+
77
+ :return: The subject of this CreateMemberHealthCheckJobOption.
78
+ :rtype: str
79
+ """
80
+ return self._subject
81
+
82
+ @subject.setter
83
+ def subject(self, subject):
84
+ r"""Sets the subject of this CreateMemberHealthCheckJobOption.
85
+
86
+ 参数法解释:检查项。 取值范围: - securityGroup:安全组检查。 - networkAcl:子网ACL配置检查。 - config:健康检查端口配置检查。 - all:所有检查项。
87
+
88
+ :param subject: The subject of this CreateMemberHealthCheckJobOption.
89
+ :type subject: str
90
+ """
91
+ self._subject = subject
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, CreateMemberHealthCheckJobOption):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateMemberHealthCheckJobRequest:
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
+ 'member_id': 'str',
21
+ 'body': 'CreateMemberHealthCheckJobRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'member_id': 'member_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, member_id=None, body=None):
30
+ r"""CreateMemberHealthCheckJobRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param member_id: 参数解释:后端服务器ID。
35
+ :type member_id: str
36
+ :param body: Body of the CreateMemberHealthCheckJobRequest
37
+ :type body: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._member_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.member_id = member_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def member_id(self):
52
+ r"""Gets the member_id of this CreateMemberHealthCheckJobRequest.
53
+
54
+ 参数解释:后端服务器ID。
55
+
56
+ :return: The member_id of this CreateMemberHealthCheckJobRequest.
57
+ :rtype: str
58
+ """
59
+ return self._member_id
60
+
61
+ @member_id.setter
62
+ def member_id(self, member_id):
63
+ r"""Sets the member_id of this CreateMemberHealthCheckJobRequest.
64
+
65
+ 参数解释:后端服务器ID。
66
+
67
+ :param member_id: The member_id of this CreateMemberHealthCheckJobRequest.
68
+ :type member_id: str
69
+ """
70
+ self._member_id = member_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this CreateMemberHealthCheckJobRequest.
75
+
76
+ :return: The body of this CreateMemberHealthCheckJobRequest.
77
+ :rtype: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this CreateMemberHealthCheckJobRequest.
84
+
85
+ :param body: The body of this CreateMemberHealthCheckJobRequest.
86
+ :type body: :class:`huaweicloudsdkelb.v3.CreateMemberHealthCheckJobRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, CreateMemberHealthCheckJobRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other