huaweicloudsdkelb 3.1.85__py2.py3-none-any.whl → 3.1.132__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.
- huaweicloudsdkelb/v2/elb_async_client.py +2 -0
- huaweicloudsdkelb/v2/elb_client.py +2 -0
- huaweicloudsdkelb/v2/model/list_members_request.py +32 -3
- huaweicloudsdkelb/v2/region/elb_region.py +19 -1
- huaweicloudsdkelb/v3/__init__.py +29 -0
- huaweicloudsdkelb/v3/elb_async_client.py +175 -34
- huaweicloudsdkelb/v3/elb_client.py +175 -34
- huaweicloudsdkelb/v3/model/__init__.py +29 -0
- huaweicloudsdkelb/v3/model/autoscaling_ref.py +6 -6
- huaweicloudsdkelb/v3/model/availability_zone.py +15 -15
- huaweicloudsdkelb/v3/model/bandwidth_ref.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_add_available_zones_response.py +6 -6
- huaweicloudsdkelb/v3/model/batch_create_members_option.py +12 -12
- huaweicloudsdkelb/v3/model/batch_create_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_option.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/batch_delete_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_member.py +85 -27
- huaweicloudsdkelb/v3/model/batch_update_members_option.py +9 -9
- huaweicloudsdkelb/v3/model/batch_update_members_request.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_policies_priority_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/batch_update_priority_request_body.py +6 -6
- huaweicloudsdkelb/v3/model/certificate_info.py +93 -6
- huaweicloudsdkelb/v3/model/change_loadbalancer_charge_mode_request_body.py +3 -3
- huaweicloudsdkelb/v3/model/connection_drain.py +6 -6
- huaweicloudsdkelb/v3/model/count_preoccupy_ip_num_request.py +6 -6
- huaweicloudsdkelb/v3/model/create_certificate_option.py +5 -4
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request.py +111 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_request_body.py +114 -0
- huaweicloudsdkelb/v3/model/create_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/create_fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/create_health_monitor_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/create_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_ip_group_option.py +15 -15
- huaweicloudsdkelb/v3/model/create_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_option.py +91 -37
- huaweicloudsdkelb/v3/model/create_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_policy_rule_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_l7_rule_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_listener_option.py +84 -84
- huaweicloudsdkelb/v3/model/create_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_load_balancer_bandwidth_option.py +18 -18
- huaweicloudsdkelb/v3/model/create_load_balancer_option.py +76 -105
- huaweicloudsdkelb/v3/model/create_load_balancer_public_ip_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_load_balancer_response.py +9 -9
- huaweicloudsdkelb/v3/model/create_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_master_slave_health_monitor_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_master_slave_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/create_master_slave_pool_option.py +33 -33
- huaweicloudsdkelb/v3/model/create_member_option.py +21 -21
- huaweicloudsdkelb/v3/model/create_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/create_member_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_option.py +102 -48
- huaweicloudsdkelb/v3/model/create_pool_response.py +3 -3
- huaweicloudsdkelb/v3/model/create_pool_session_persistence_option.py +9 -9
- huaweicloudsdkelb/v3/model/create_pool_slow_start_option.py +6 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/create_redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/create_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/create_redirect_url_config.py +71 -21
- huaweicloudsdkelb/v3/model/create_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/create_rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/create_rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/create_rule_option.py +24 -24
- huaweicloudsdkelb/v3/model/create_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/delete_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/delete_member_request.py +6 -6
- huaweicloudsdkelb/v3/model/delete_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/flavor.py +79 -21
- huaweicloudsdkelb/v3/model/flavor_info.py +18 -18
- huaweicloudsdkelb/v3/model/global_eip_info.py +9 -9
- huaweicloudsdkelb/v3/model/health_monitor.py +18 -18
- huaweicloudsdkelb/v3/model/insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/ip_group.py +119 -90
- huaweicloudsdkelb/v3/model/ip_group_ip.py +3 -3
- huaweicloudsdkelb/v3/model/ip_info.py +6 -6
- huaweicloudsdkelb/v3/model/l7_policy.py +103 -49
- huaweicloudsdkelb/v3/model/l7_rule.py +36 -36
- huaweicloudsdkelb/v3/model/list_all_members_request.py +24 -24
- huaweicloudsdkelb/v3/model/list_all_members_response.py +4 -4
- huaweicloudsdkelb/v3/model/list_availability_zones_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_availability_zones_response.py +38 -9
- huaweicloudsdkelb/v3/model/list_certificates_request.py +64 -6
- huaweicloudsdkelb/v3/model/list_flavors_request.py +21 -21
- huaweicloudsdkelb/v3/model/list_flavors_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_health_monitors_request.py +15 -15
- huaweicloudsdkelb/v3/model/list_ip_groups_request.py +53 -24
- huaweicloudsdkelb/v3/model/list_ip_groups_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_policies_request.py +51 -51
- huaweicloudsdkelb/v3/model/list_l7_policies_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_request.py +6 -6
- huaweicloudsdkelb/v3/model/list_l7_rules_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_listeners_request.py +42 -42
- huaweicloudsdkelb/v3/model/list_listeners_response.py +6 -6
- huaweicloudsdkelb/v3/model/list_load_balancers_request.py +36 -36
- huaweicloudsdkelb/v3/model/list_logtanks_request.py +3 -3
- huaweicloudsdkelb/v3/model/list_master_slave_pools_request.py +39 -39
- huaweicloudsdkelb/v3/model/list_members_request.py +27 -27
- huaweicloudsdkelb/v3/model/list_pools_request.py +135 -48
- huaweicloudsdkelb/v3/model/list_security_policies_request.py +3 -3
- huaweicloudsdkelb/v3/model/listener.py +96 -96
- huaweicloudsdkelb/v3/model/listener_insert_headers.py +30 -30
- huaweicloudsdkelb/v3/model/listener_ip_group.py +9 -9
- huaweicloudsdkelb/v3/model/listener_member_info.py +3 -3
- huaweicloudsdkelb/v3/model/listener_quic_config.py +6 -6
- huaweicloudsdkelb/v3/model/listener_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer.py +129 -129
- huaweicloudsdkelb/v3/model/load_balancer_ref.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_policy.py +3 -3
- huaweicloudsdkelb/v3/model/load_balancer_status_pool.py +3 -3
- huaweicloudsdkelb/v3/model/logtank.py +3 -3
- huaweicloudsdkelb/v3/model/master_slave_health_monitor.py +12 -12
- huaweicloudsdkelb/v3/model/master_slave_member.py +18 -18
- huaweicloudsdkelb/v3/model/master_slave_pool.py +42 -42
- huaweicloudsdkelb/v3/model/member.py +46 -191
- huaweicloudsdkelb/v3/model/member_info.py +656 -0
- huaweicloudsdkelb/v3/model/member_ref.py +3 -3
- huaweicloudsdkelb/v3/model/member_status.py +6 -6
- huaweicloudsdkelb/v3/model/page_info.py +9 -9
- huaweicloudsdkelb/v3/model/pool.py +146 -63
- huaweicloudsdkelb/v3/model/pool_health.py +115 -0
- huaweicloudsdkelb/v3/model/pool_ref.py +3 -3
- huaweicloudsdkelb/v3/model/prepaid_create_option.py +12 -12
- huaweicloudsdkelb/v3/model/public_ip_info.py +9 -9
- huaweicloudsdkelb/v3/model/quota.py +21 -21
- huaweicloudsdkelb/v3/model/quota_info.py +3 -3
- huaweicloudsdkelb/v3/model/redirect_pools_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_pools_extend_config.py +81 -6
- huaweicloudsdkelb/v3/model/redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/redirect_url_config.py +83 -27
- huaweicloudsdkelb/v3/model/remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/rewrite_url_config.py +9 -9
- huaweicloudsdkelb/v3/model/rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/rule_ref.py +3 -3
- huaweicloudsdkelb/v3/model/session_persistence.py +9 -9
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_request.py +84 -0
- huaweicloudsdkelb/v3/model/show_certificate_private_key_echo_response.py +145 -0
- huaweicloudsdkelb/v3/model/show_flavor_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_flavor_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_load_balancer_status_response.py +3 -3
- huaweicloudsdkelb/v3/model/show_master_slave_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/show_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/slow_start.py +6 -6
- huaweicloudsdkelb/v3/model/tag.py +6 -6
- huaweicloudsdkelb/v3/model/traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/model/upadate_ip_group_ip_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_certificate_option.py +3 -3
- huaweicloudsdkelb/v3/model/update_fixted_response_config.py +87 -12
- huaweicloudsdkelb/v3/model/update_health_monitor_option.py +15 -15
- huaweicloudsdkelb/v3/model/update_insert_header_config.py +170 -0
- huaweicloudsdkelb/v3/model/update_insert_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_group_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_group_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_ip_list_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_ip_list_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_option.py +76 -22
- huaweicloudsdkelb/v3/model/update_l7_policy_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_policy_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_l7_rule_option.py +18 -18
- huaweicloudsdkelb/v3/model/update_l7_rule_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_listener_ip_group_option.py +9 -9
- huaweicloudsdkelb/v3/model/update_listener_option.py +66 -66
- huaweicloudsdkelb/v3/model/update_listener_quic_config_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_listener_response.py +3 -3
- huaweicloudsdkelb/v3/model/update_load_balancer_option.py +48 -48
- huaweicloudsdkelb/v3/model/update_load_balancer_response.py +9 -9
- huaweicloudsdkelb/v3/model/update_loadbalancer_autoscaling_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_member_option.py +12 -12
- huaweicloudsdkelb/v3/model/update_member_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_pool_option.py +52 -27
- huaweicloudsdkelb/v3/model/update_pool_request.py +3 -3
- huaweicloudsdkelb/v3/model/update_pool_session_persistence_option.py +6 -6
- huaweicloudsdkelb/v3/model/update_redirect_pools_config.py +143 -0
- huaweicloudsdkelb/v3/model/update_redirect_pools_extend_config.py +84 -9
- huaweicloudsdkelb/v3/model/update_redirect_pools_sticky_session_config.py +144 -0
- huaweicloudsdkelb/v3/model/update_redirect_url_config.py +71 -21
- huaweicloudsdkelb/v3/model/update_remove_header_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_remove_headers_config.py +114 -0
- huaweicloudsdkelb/v3/model/update_rewrite_url_config.py +173 -0
- huaweicloudsdkelb/v3/model/update_rule_condition.py +6 -6
- huaweicloudsdkelb/v3/model/update_traffic_limit_config.py +173 -0
- huaweicloudsdkelb/v3/region/elb_region.py +19 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/METADATA +2 -2
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/RECORD +213 -184
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/WHEEL +1 -1
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/LICENSE +0 -0
- {huaweicloudsdkelb-3.1.85.dist-info → huaweicloudsdkelb-3.1.132.dist-info}/top_level.txt +0 -0
@@ -29,7 +29,9 @@ class BatchUpdateMember:
|
|
29
29
|
'status': 'list[MemberStatus]',
|
30
30
|
'member_type': 'str',
|
31
31
|
'instance_id': 'str',
|
32
|
-
'port_id': 'str'
|
32
|
+
'port_id': 'str',
|
33
|
+
'created_at': 'str',
|
34
|
+
'updated_at': 'str'
|
33
35
|
}
|
34
36
|
|
35
37
|
attribute_map = {
|
@@ -45,10 +47,12 @@ class BatchUpdateMember:
|
|
45
47
|
'status': 'status',
|
46
48
|
'member_type': 'member_type',
|
47
49
|
'instance_id': 'instance_id',
|
48
|
-
'port_id': 'port_id'
|
50
|
+
'port_id': 'port_id',
|
51
|
+
'created_at': 'created_at',
|
52
|
+
'updated_at': 'updated_at'
|
49
53
|
}
|
50
54
|
|
51
|
-
def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, status=None, member_type=None, instance_id=None, port_id=None):
|
55
|
+
def __init__(self, id=None, name=None, project_id=None, admin_state_up=None, subnet_cidr_id=None, protocol_port=None, weight=None, address=None, operating_status=None, status=None, member_type=None, instance_id=None, port_id=None, created_at=None, updated_at=None):
|
52
56
|
"""BatchUpdateMember
|
53
57
|
|
54
58
|
The model defined in huaweicloud sdk
|
@@ -59,26 +63,30 @@ class BatchUpdateMember:
|
|
59
63
|
:type name: str
|
60
64
|
:param project_id: 后端服务器所在的项目ID。
|
61
65
|
:type project_id: str
|
62
|
-
:param admin_state_up:
|
66
|
+
:param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
63
67
|
:type admin_state_up: bool
|
64
|
-
:param subnet_cidr_id:
|
68
|
+
:param subnet_cidr_id: 后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
65
69
|
:type subnet_cidr_id: str
|
66
|
-
:param protocol_port:
|
70
|
+
:param protocol_port: 后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
67
71
|
:type protocol_port: int
|
68
|
-
:param weight:
|
72
|
+
:param weight: 后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
69
73
|
:type weight: int
|
70
|
-
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP
|
74
|
+
:param address: 后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
71
75
|
:type address: str
|
72
|
-
:param operating_status:
|
76
|
+
:param operating_status: 后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
73
77
|
:type operating_status: str
|
74
|
-
:param status:
|
78
|
+
:param status: 后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
75
79
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
76
|
-
:param member_type:
|
80
|
+
:param member_type: 后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
77
81
|
:type member_type: str
|
78
82
|
:param instance_id: member关联的实例ID,空表示跨VPC场景的member。
|
79
83
|
:type instance_id: str
|
80
84
|
:param port_id: IP地址对应的VPC port ID
|
81
85
|
:type port_id: str
|
86
|
+
:param created_at: 创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
87
|
+
:type created_at: str
|
88
|
+
:param updated_at: 更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
89
|
+
:type updated_at: str
|
82
90
|
"""
|
83
91
|
|
84
92
|
|
@@ -96,6 +104,8 @@ class BatchUpdateMember:
|
|
96
104
|
self._member_type = None
|
97
105
|
self._instance_id = None
|
98
106
|
self._port_id = None
|
107
|
+
self._created_at = None
|
108
|
+
self._updated_at = None
|
99
109
|
self.discriminator = None
|
100
110
|
|
101
111
|
self.id = id
|
@@ -115,6 +125,10 @@ class BatchUpdateMember:
|
|
115
125
|
if instance_id is not None:
|
116
126
|
self.instance_id = instance_id
|
117
127
|
self.port_id = port_id
|
128
|
+
if created_at is not None:
|
129
|
+
self.created_at = created_at
|
130
|
+
if updated_at is not None:
|
131
|
+
self.updated_at = updated_at
|
118
132
|
|
119
133
|
@property
|
120
134
|
def id(self):
|
@@ -186,7 +200,7 @@ class BatchUpdateMember:
|
|
186
200
|
def admin_state_up(self):
|
187
201
|
"""Gets the admin_state_up of this BatchUpdateMember.
|
188
202
|
|
189
|
-
|
203
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
190
204
|
|
191
205
|
:return: The admin_state_up of this BatchUpdateMember.
|
192
206
|
:rtype: bool
|
@@ -197,7 +211,7 @@ class BatchUpdateMember:
|
|
197
211
|
def admin_state_up(self, admin_state_up):
|
198
212
|
"""Sets the admin_state_up of this BatchUpdateMember.
|
199
213
|
|
200
|
-
|
214
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。
|
201
215
|
|
202
216
|
:param admin_state_up: The admin_state_up of this BatchUpdateMember.
|
203
217
|
:type admin_state_up: bool
|
@@ -208,7 +222,7 @@ class BatchUpdateMember:
|
|
208
222
|
def subnet_cidr_id(self):
|
209
223
|
"""Gets the subnet_cidr_id of this BatchUpdateMember.
|
210
224
|
|
211
|
-
|
225
|
+
后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
212
226
|
|
213
227
|
:return: The subnet_cidr_id of this BatchUpdateMember.
|
214
228
|
:rtype: str
|
@@ -219,7 +233,7 @@ class BatchUpdateMember:
|
|
219
233
|
def subnet_cidr_id(self, subnet_cidr_id):
|
220
234
|
"""Sets the subnet_cidr_id of this BatchUpdateMember.
|
221
235
|
|
222
|
-
|
236
|
+
后端服务器所在的子网,可以是IPv4或IPv6子网。若是IPv4子网,使用对应子网的子网ID(neutron_subnet_id);若是IPv6子网,使用对应子网的网络ID(neutron_network_id)。 ipv4子网的子网ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_subnet_id得到 ipv6子网的网络ID可以通过GET https://{VPC_Endpoint}/v1/{project_id}/subnets 响应参数中的neutron_network_id得到 使用说明: - 该子网和关联的负载均衡器的子网必须在同一VPC下。 - 若所属LB的跨VPC后端转发已开启(ip_target_enable=true),则该字段可以不传,表示添加跨VPC的后端服务器。此时address必须为IPv4地址,所在的pool的协议必须为UDP/TCP/TLS/HTTP/HTTPS/QUIC/GRPC。 - 若所属LB未开启跨VPC后端转发,该参数必填。 [- 网关型LB,即pool协议为IP时,必须指定该子网,且必须和负载均衡器的子网在同一个VPC下,但不能相同。](tag:hws_eu) [不支持IPv6,请勿设置为IPv6子网ID。](tag:dt,dt_test)
|
223
237
|
|
224
238
|
:param subnet_cidr_id: The subnet_cidr_id of this BatchUpdateMember.
|
225
239
|
:type subnet_cidr_id: str
|
@@ -230,7 +244,7 @@ class BatchUpdateMember:
|
|
230
244
|
def protocol_port(self):
|
231
245
|
"""Gets the protocol_port of this BatchUpdateMember.
|
232
246
|
|
233
|
-
|
247
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
234
248
|
|
235
249
|
:return: The protocol_port of this BatchUpdateMember.
|
236
250
|
:rtype: int
|
@@ -241,7 +255,7 @@ class BatchUpdateMember:
|
|
241
255
|
def protocol_port(self, protocol_port):
|
242
256
|
"""Sets the protocol_port of this BatchUpdateMember.
|
243
257
|
|
244
|
-
|
258
|
+
后端服务器业务端口。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu) >在开启端口透传的pool下创建member传该字段不生效,可不传该字段。
|
245
259
|
|
246
260
|
:param protocol_port: The protocol_port of this BatchUpdateMember.
|
247
261
|
:type protocol_port: int
|
@@ -252,7 +266,7 @@ class BatchUpdateMember:
|
|
252
266
|
def weight(self):
|
253
267
|
"""Gets the weight of this BatchUpdateMember.
|
254
268
|
|
255
|
-
|
269
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
256
270
|
|
257
271
|
:return: The weight of this BatchUpdateMember.
|
258
272
|
:rtype: int
|
@@ -263,7 +277,7 @@ class BatchUpdateMember:
|
|
263
277
|
def weight(self, weight):
|
264
278
|
"""Sets the weight of this BatchUpdateMember.
|
265
279
|
|
266
|
-
|
280
|
+
后端服务器的权重,请求将根据pool配置的负载均衡算法和后端服务器的权重进行负载分发。权重值越大,分发的请求越多。权重为0的后端不再接受新的请求。 取值:0-100,默认1。 使用说明: - 若所在pool的lb_algorithm取值为SOURCE_IP或QUIC_CID,该字段无效。
|
267
281
|
|
268
282
|
:param weight: The weight of this BatchUpdateMember.
|
269
283
|
:type weight: int
|
@@ -274,7 +288,7 @@ class BatchUpdateMember:
|
|
274
288
|
def address(self):
|
275
289
|
"""Gets the address of this BatchUpdateMember.
|
276
290
|
|
277
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP
|
291
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
278
292
|
|
279
293
|
:return: The address of this BatchUpdateMember.
|
280
294
|
:rtype: str
|
@@ -285,7 +299,7 @@ class BatchUpdateMember:
|
|
285
299
|
def address(self, address):
|
286
300
|
"""Sets the address of this BatchUpdateMember.
|
287
301
|
|
288
|
-
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP
|
302
|
+
后端服务器对应的IP地址。 使用说明: - 若subnet_cidr_id为空,表示添加跨VPC后端,此时address必须为IPv4地址。 - 若subnet_cidr_id不为空,表示是一个关联到ECS的后端服务器。该IP地址可以是私网IPv4或IPv6。但必须在subnet_cidr_id对应的子网网段中。 [不支持IPv6,请勿设置为IPv6地址。](tag:dt,dt_test)
|
289
303
|
|
290
304
|
:param address: The address of this BatchUpdateMember.
|
291
305
|
:type address: str
|
@@ -296,7 +310,7 @@ class BatchUpdateMember:
|
|
296
310
|
def operating_status(self):
|
297
311
|
"""Gets the operating_status of this BatchUpdateMember.
|
298
312
|
|
299
|
-
|
313
|
+
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
300
314
|
|
301
315
|
:return: The operating_status of this BatchUpdateMember.
|
302
316
|
:rtype: str
|
@@ -307,7 +321,7 @@ class BatchUpdateMember:
|
|
307
321
|
def operating_status(self, operating_status):
|
308
322
|
"""Sets the operating_status of this BatchUpdateMember.
|
309
323
|
|
310
|
-
|
324
|
+
后端服务器的健康状态。取值: - ONLINE:后端服务器正常。 - NO_MONITOR:后端服务器所在的服务器组没有健康检查器。 - OFFLINE:后端服务器关联的ECS服务器不存在或已关机。
|
311
325
|
|
312
326
|
:param operating_status: The operating_status of this BatchUpdateMember.
|
313
327
|
:type operating_status: str
|
@@ -318,7 +332,7 @@ class BatchUpdateMember:
|
|
318
332
|
def status(self):
|
319
333
|
"""Gets the status of this BatchUpdateMember.
|
320
334
|
|
321
|
-
|
335
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
322
336
|
|
323
337
|
:return: The status of this BatchUpdateMember.
|
324
338
|
:rtype: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -329,7 +343,7 @@ class BatchUpdateMember:
|
|
329
343
|
def status(self, status):
|
330
344
|
"""Sets the status of this BatchUpdateMember.
|
331
345
|
|
332
|
-
|
346
|
+
后端服务器监听器粒度的的健康状态。 若绑定的监听器在该字段中,则以该字段中监听器对应的operating_stauts为准。 若绑定的监听器不在该字段中,则以外层的operating_status为准。
|
333
347
|
|
334
348
|
:param status: The status of this BatchUpdateMember.
|
335
349
|
:type status: list[:class:`huaweicloudsdkelb.v3.MemberStatus`]
|
@@ -340,7 +354,7 @@ class BatchUpdateMember:
|
|
340
354
|
def member_type(self):
|
341
355
|
"""Gets the member_type of this BatchUpdateMember.
|
342
356
|
|
343
|
-
|
357
|
+
后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
344
358
|
|
345
359
|
:return: The member_type of this BatchUpdateMember.
|
346
360
|
:rtype: str
|
@@ -351,7 +365,7 @@ class BatchUpdateMember:
|
|
351
365
|
def member_type(self, member_type):
|
352
366
|
"""Sets the member_type of this BatchUpdateMember.
|
353
367
|
|
354
|
-
|
368
|
+
后端服务器的类型。取值: - ip:跨VPC的member。 - instance:关联到ECS的member。
|
355
369
|
|
356
370
|
:param member_type: The member_type of this BatchUpdateMember.
|
357
371
|
:type member_type: str
|
@@ -402,6 +416,50 @@ class BatchUpdateMember:
|
|
402
416
|
"""
|
403
417
|
self._port_id = port_id
|
404
418
|
|
419
|
+
@property
|
420
|
+
def created_at(self):
|
421
|
+
"""Gets the created_at of this BatchUpdateMember.
|
422
|
+
|
423
|
+
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
424
|
+
|
425
|
+
:return: The created_at of this BatchUpdateMember.
|
426
|
+
:rtype: str
|
427
|
+
"""
|
428
|
+
return self._created_at
|
429
|
+
|
430
|
+
@created_at.setter
|
431
|
+
def created_at(self, created_at):
|
432
|
+
"""Sets the created_at of this BatchUpdateMember.
|
433
|
+
|
434
|
+
创建时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
435
|
+
|
436
|
+
:param created_at: The created_at of this BatchUpdateMember.
|
437
|
+
:type created_at: str
|
438
|
+
"""
|
439
|
+
self._created_at = created_at
|
440
|
+
|
441
|
+
@property
|
442
|
+
def updated_at(self):
|
443
|
+
"""Gets the updated_at of this BatchUpdateMember.
|
444
|
+
|
445
|
+
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
446
|
+
|
447
|
+
:return: The updated_at of this BatchUpdateMember.
|
448
|
+
:rtype: str
|
449
|
+
"""
|
450
|
+
return self._updated_at
|
451
|
+
|
452
|
+
@updated_at.setter
|
453
|
+
def updated_at(self, updated_at):
|
454
|
+
"""Sets the updated_at of this BatchUpdateMember.
|
455
|
+
|
456
|
+
更新时间。格式:yyyy-MM-dd'T'HH:mm:ss'Z',UTC时区。 [注意:独享型实例的历史数据以及共享型实例下的资源,不返回该字段。 ](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm)
|
457
|
+
|
458
|
+
:param updated_at: The updated_at of this BatchUpdateMember.
|
459
|
+
:type updated_at: str
|
460
|
+
"""
|
461
|
+
self._updated_at = updated_at
|
462
|
+
|
405
463
|
def to_dict(self):
|
406
464
|
"""Returns the model properties as a dict"""
|
407
465
|
result = {}
|
@@ -39,13 +39,13 @@ class BatchUpdateMembersOption:
|
|
39
39
|
|
40
40
|
:param id: 后端服务器ID。 >此处并非ECS服务器的ID,而是ELB为绑定的后端服务器自动生成的member ID。
|
41
41
|
:type id: str
|
42
|
-
:param admin_state_up:
|
42
|
+
:param admin_state_up: 后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
43
43
|
:type admin_state_up: bool
|
44
44
|
:param name: 后端服务器名称。
|
45
45
|
:type name: str
|
46
|
-
:param protocol_port:
|
46
|
+
:param protocol_port: 后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu)
|
47
47
|
:type protocol_port: int
|
48
|
-
:param weight:
|
48
|
+
:param weight: 后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
49
49
|
:type weight: int
|
50
50
|
"""
|
51
51
|
|
@@ -94,7 +94,7 @@ class BatchUpdateMembersOption:
|
|
94
94
|
def admin_state_up(self):
|
95
95
|
"""Gets the admin_state_up of this BatchUpdateMembersOption.
|
96
96
|
|
97
|
-
|
97
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
98
98
|
|
99
99
|
:return: The admin_state_up of this BatchUpdateMembersOption.
|
100
100
|
:rtype: bool
|
@@ -105,7 +105,7 @@ class BatchUpdateMembersOption:
|
|
105
105
|
def admin_state_up(self, admin_state_up):
|
106
106
|
"""Sets the admin_state_up of this BatchUpdateMembersOption.
|
107
107
|
|
108
|
-
|
108
|
+
后端服务器的管理状态。取值:true、false。 虽然创建、更新请求支持该字段,但实际取值决定于后端服务器对应的弹性云服务器是否存在。若存在,该值为true,否则,该值为false。 请勿传入该字段。
|
109
109
|
|
110
110
|
:param admin_state_up: The admin_state_up of this BatchUpdateMembersOption.
|
111
111
|
:type admin_state_up: bool
|
@@ -138,7 +138,7 @@ class BatchUpdateMembersOption:
|
|
138
138
|
def protocol_port(self):
|
139
139
|
"""Gets the protocol_port of this BatchUpdateMembersOption.
|
140
140
|
|
141
|
-
|
141
|
+
后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu)
|
142
142
|
|
143
143
|
:return: The protocol_port of this BatchUpdateMembersOption.
|
144
144
|
:rtype: int
|
@@ -149,7 +149,7 @@ class BatchUpdateMembersOption:
|
|
149
149
|
def protocol_port(self, protocol_port):
|
150
150
|
"""Sets the protocol_port of this BatchUpdateMembersOption.
|
151
151
|
|
152
|
-
|
152
|
+
后端服务器端口。 在开启端口透传的pool下的member,该字段无法更新。 [网关型LB,即pool协议为IP时,protocol_port必须设置为0。](tag:hws_eu)
|
153
153
|
|
154
154
|
:param protocol_port: The protocol_port of this BatchUpdateMembersOption.
|
155
155
|
:type protocol_port: int
|
@@ -160,7 +160,7 @@ class BatchUpdateMembersOption:
|
|
160
160
|
def weight(self):
|
161
161
|
"""Gets the weight of this BatchUpdateMembersOption.
|
162
162
|
|
163
|
-
|
163
|
+
后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
164
164
|
|
165
165
|
:return: The weight of this BatchUpdateMembersOption.
|
166
166
|
:rtype: int
|
@@ -171,7 +171,7 @@ class BatchUpdateMembersOption:
|
|
171
171
|
def weight(self, weight):
|
172
172
|
"""Sets the weight of this BatchUpdateMembersOption.
|
173
173
|
|
174
|
-
|
174
|
+
后端服务器的权重,请求按权重在同一后端服务器组下的后端服务器间分发。权重为0的后端不再接受新的请求。当后端服务器所在的后端服务器组的lb_algorithm的取值为SOURCE_IP时,该字段无效。
|
175
175
|
|
176
176
|
:param weight: The weight of this BatchUpdateMembersOption.
|
177
177
|
:type weight: int
|
@@ -31,7 +31,7 @@ class BatchUpdateMembersRequest:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param pool_id:
|
34
|
+
:param pool_id: 参数解释:后端服务器组ID。
|
35
35
|
:type pool_id: str
|
36
36
|
:param body: Body of the BatchUpdateMembersRequest
|
37
37
|
:type body: :class:`huaweicloudsdkelb.v3.BatchUpdateMembersRequestBody`
|
@@ -51,7 +51,7 @@ class BatchUpdateMembersRequest:
|
|
51
51
|
def pool_id(self):
|
52
52
|
"""Gets the pool_id of this BatchUpdateMembersRequest.
|
53
53
|
|
54
|
-
|
54
|
+
参数解释:后端服务器组ID。
|
55
55
|
|
56
56
|
:return: The pool_id of this BatchUpdateMembersRequest.
|
57
57
|
:rtype: str
|
@@ -62,7 +62,7 @@ class BatchUpdateMembersRequest:
|
|
62
62
|
def pool_id(self, pool_id):
|
63
63
|
"""Sets the pool_id of this BatchUpdateMembersRequest.
|
64
64
|
|
65
|
-
|
65
|
+
参数解释:后端服务器组ID。
|
66
66
|
|
67
67
|
:param pool_id: The pool_id of this BatchUpdateMembersRequest.
|
68
68
|
:type pool_id: str
|
@@ -29,7 +29,7 @@ class BatchUpdatePoliciesPriorityRequestBody:
|
|
29
29
|
|
30
30
|
The model defined in huaweicloud sdk
|
31
31
|
|
32
|
-
:param l7policies:
|
32
|
+
:param l7policies: 参数解释:转发策略的结构体。
|
33
33
|
:type l7policies: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`]
|
34
34
|
"""
|
35
35
|
|
@@ -45,7 +45,7 @@ class BatchUpdatePoliciesPriorityRequestBody:
|
|
45
45
|
def l7policies(self):
|
46
46
|
"""Gets the l7policies of this BatchUpdatePoliciesPriorityRequestBody.
|
47
47
|
|
48
|
-
|
48
|
+
参数解释:转发策略的结构体。
|
49
49
|
|
50
50
|
:return: The l7policies of this BatchUpdatePoliciesPriorityRequestBody.
|
51
51
|
:rtype: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`]
|
@@ -56,7 +56,7 @@ class BatchUpdatePoliciesPriorityRequestBody:
|
|
56
56
|
def l7policies(self, l7policies):
|
57
57
|
"""Sets the l7policies of this BatchUpdatePoliciesPriorityRequestBody.
|
58
58
|
|
59
|
-
|
59
|
+
参数解释:转发策略的结构体。
|
60
60
|
|
61
61
|
:param l7policies: The l7policies of this BatchUpdatePoliciesPriorityRequestBody.
|
62
62
|
:type l7policies: list[:class:`huaweicloudsdkelb.v3.BatchUpdatePriorityRequestBody`]
|
@@ -31,9 +31,9 @@ class BatchUpdatePriorityRequestBody:
|
|
31
31
|
|
32
32
|
The model defined in huaweicloud sdk
|
33
33
|
|
34
|
-
:param id:
|
34
|
+
:param id: 参数解释:待更新的l7policy的ID。
|
35
35
|
:type id: str
|
36
|
-
:param priority:
|
36
|
+
:param priority: 参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
37
37
|
:type priority: int
|
38
38
|
"""
|
39
39
|
|
@@ -50,7 +50,7 @@ class BatchUpdatePriorityRequestBody:
|
|
50
50
|
def id(self):
|
51
51
|
"""Gets the id of this BatchUpdatePriorityRequestBody.
|
52
52
|
|
53
|
-
|
53
|
+
参数解释:待更新的l7policy的ID。
|
54
54
|
|
55
55
|
:return: The id of this BatchUpdatePriorityRequestBody.
|
56
56
|
:rtype: str
|
@@ -61,7 +61,7 @@ class BatchUpdatePriorityRequestBody:
|
|
61
61
|
def id(self, id):
|
62
62
|
"""Sets the id of this BatchUpdatePriorityRequestBody.
|
63
63
|
|
64
|
-
|
64
|
+
参数解释:待更新的l7policy的ID。
|
65
65
|
|
66
66
|
:param id: The id of this BatchUpdatePriorityRequestBody.
|
67
67
|
:type id: str
|
@@ -72,7 +72,7 @@ class BatchUpdatePriorityRequestBody:
|
|
72
72
|
def priority(self):
|
73
73
|
"""Gets the priority of this BatchUpdatePriorityRequestBody.
|
74
74
|
|
75
|
-
|
75
|
+
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
76
76
|
|
77
77
|
:return: The priority of this BatchUpdatePriorityRequestBody.
|
78
78
|
:rtype: int
|
@@ -83,7 +83,7 @@ class BatchUpdatePriorityRequestBody:
|
|
83
83
|
def priority(self, priority):
|
84
84
|
"""Sets the priority of this BatchUpdatePriorityRequestBody.
|
85
85
|
|
86
|
-
|
86
|
+
参数解释:转发策略的优先级。数字越小表示优先级越高。 约束限制: - 同一个监听器下不同转发策略之间不允许重复的优先级数值。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)开启后才会生效,未开启传入该字段会报错。 - 当关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,按原有policy的排序逻辑,自动排序。 不同域名优先级独立。相同域名下,按path的compare_type排序, 精确>前缀>正则,匹配类型相同时,path的长度越长优先级越高。 若policy下只有域名rule,没有路径rule,默认path为前缀匹配/。 [- 共享型负载均衡器下的转发策略不支持该字段。](tag:hws,hws_hk,ocb,ctc,g42,tm,cmcc,hk_g42,hws_ocb,hk_vdf,fcs,dt,hk_tm) 取值范围: - 当action为REDIRECT_TO_LISTENER时,支持指定为0-10000。 - 其它action取值,支持指定为1-10000。 默认取值: - 若关联的监听器的高级转发策略功能(enhance_l7policy_enable)未开启,且不传入该字段,则新创建的转发策略的优先级的值为1。 - 当action为REDIRECT_TO_LISTENER时,则新创建的转发策略的优先级的值为0。 - 其它action取值,新创建的转发策略的优先级的值为同一监听器下已有转发策略的优先级的最大值+1。 + 若监听器下没有转发策略,则新建的转发策略的优先级为1。 + 若当前已有转发策略的优先级的最大值是10000,则新创建的转发策略会因超出取值范围10000而失败。此时可通过传入指定priority,或调整原有policy的优先级来避免错误。 [不支持该字段,请勿使用。](tag:hcso_dt) [荷兰region不支持该字段,请勿使用。](tag:dt,dt_test)
|
87
87
|
|
88
88
|
:param priority: The priority of this BatchUpdatePriorityRequestBody.
|
89
89
|
:type priority: int
|
@@ -30,7 +30,10 @@ class CertificateInfo:
|
|
30
30
|
'expire_time': 'str',
|
31
31
|
'project_id': 'str',
|
32
32
|
'enc_certificate': 'str',
|
33
|
-
'enc_private_key': 'str'
|
33
|
+
'enc_private_key': 'str',
|
34
|
+
'common_name': 'str',
|
35
|
+
'fingerprint': 'str',
|
36
|
+
'subject_alternative_names': 'list[str]'
|
34
37
|
}
|
35
38
|
|
36
39
|
attribute_map = {
|
@@ -47,10 +50,13 @@ class CertificateInfo:
|
|
47
50
|
'expire_time': 'expire_time',
|
48
51
|
'project_id': 'project_id',
|
49
52
|
'enc_certificate': 'enc_certificate',
|
50
|
-
'enc_private_key': 'enc_private_key'
|
53
|
+
'enc_private_key': 'enc_private_key',
|
54
|
+
'common_name': 'common_name',
|
55
|
+
'fingerprint': 'fingerprint',
|
56
|
+
'subject_alternative_names': 'subject_alternative_names'
|
51
57
|
}
|
52
58
|
|
53
|
-
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):
|
59
|
+
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, common_name=None, fingerprint=None, subject_alternative_names=None):
|
54
60
|
"""CertificateInfo
|
55
61
|
|
56
62
|
The model defined in huaweicloud sdk
|
@@ -61,7 +67,7 @@ class CertificateInfo:
|
|
61
67
|
:type certificate: str
|
62
68
|
:param description: 证书的描述。
|
63
69
|
:type description: str
|
64
|
-
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"
|
70
|
+
:param domain: 服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
65
71
|
:type domain: str
|
66
72
|
:param id: 证书ID。
|
67
73
|
:type id: str
|
@@ -83,6 +89,12 @@ class CertificateInfo:
|
|
83
89
|
:type enc_certificate: str
|
84
90
|
:param enc_private_key: HTTPS协议使用的SM加密证书私钥。 取值:PEM编码格式。 注意:仅在当前局点的SM加密证书特性开启才会返回该字段。
|
85
91
|
:type enc_private_key: str
|
92
|
+
:param common_name: 证书主域名
|
93
|
+
:type common_name: str
|
94
|
+
:param fingerprint: 证书指纹
|
95
|
+
:type fingerprint: str
|
96
|
+
:param subject_alternative_names: 证书全部域名
|
97
|
+
:type subject_alternative_names: list[str]
|
86
98
|
"""
|
87
99
|
|
88
100
|
|
@@ -101,6 +113,9 @@ class CertificateInfo:
|
|
101
113
|
self._project_id = None
|
102
114
|
self._enc_certificate = None
|
103
115
|
self._enc_private_key = None
|
116
|
+
self._common_name = None
|
117
|
+
self._fingerprint = None
|
118
|
+
self._subject_alternative_names = None
|
104
119
|
self.discriminator = None
|
105
120
|
|
106
121
|
self.admin_state_up = admin_state_up
|
@@ -119,6 +134,12 @@ class CertificateInfo:
|
|
119
134
|
self.enc_certificate = enc_certificate
|
120
135
|
if enc_private_key is not None:
|
121
136
|
self.enc_private_key = enc_private_key
|
137
|
+
if common_name is not None:
|
138
|
+
self.common_name = common_name
|
139
|
+
if fingerprint is not None:
|
140
|
+
self.fingerprint = fingerprint
|
141
|
+
if subject_alternative_names is not None:
|
142
|
+
self.subject_alternative_names = subject_alternative_names
|
122
143
|
|
123
144
|
@property
|
124
145
|
def admin_state_up(self):
|
@@ -190,7 +211,7 @@ class CertificateInfo:
|
|
190
211
|
def domain(self):
|
191
212
|
"""Gets the domain of this CertificateInfo.
|
192
213
|
|
193
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"
|
214
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
194
215
|
|
195
216
|
:return: The domain of this CertificateInfo.
|
196
217
|
:rtype: str
|
@@ -201,7 +222,7 @@ class CertificateInfo:
|
|
201
222
|
def domain(self, domain):
|
202
223
|
"""Sets the domain of this CertificateInfo.
|
203
224
|
|
204
|
-
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"
|
225
|
+
服务器证书所签域名。该字段仅type为server时有效。 总长度为0-10000,由若干普通域名或泛域名组成,域名之间以\",\"分割,不超过100个域名。 普通域名:由若干字符串组成,字符串间以\".\"分割,单个字符串长度不超过63个字符, 只能包含英文字母、数字或\"-\",且必须以字母或数字开头和结尾。例:www.test.com。 泛域名:在普通域名的基础上仅允许首字母为\"\\*\"。例:\\*.test.com
|
205
226
|
|
206
227
|
:param domain: The domain of this CertificateInfo.
|
207
228
|
:type domain: str
|
@@ -428,6 +449,72 @@ class CertificateInfo:
|
|
428
449
|
"""
|
429
450
|
self._enc_private_key = enc_private_key
|
430
451
|
|
452
|
+
@property
|
453
|
+
def common_name(self):
|
454
|
+
"""Gets the common_name of this CertificateInfo.
|
455
|
+
|
456
|
+
证书主域名
|
457
|
+
|
458
|
+
:return: The common_name of this CertificateInfo.
|
459
|
+
:rtype: str
|
460
|
+
"""
|
461
|
+
return self._common_name
|
462
|
+
|
463
|
+
@common_name.setter
|
464
|
+
def common_name(self, common_name):
|
465
|
+
"""Sets the common_name of this CertificateInfo.
|
466
|
+
|
467
|
+
证书主域名
|
468
|
+
|
469
|
+
:param common_name: The common_name of this CertificateInfo.
|
470
|
+
:type common_name: str
|
471
|
+
"""
|
472
|
+
self._common_name = common_name
|
473
|
+
|
474
|
+
@property
|
475
|
+
def fingerprint(self):
|
476
|
+
"""Gets the fingerprint of this CertificateInfo.
|
477
|
+
|
478
|
+
证书指纹
|
479
|
+
|
480
|
+
:return: The fingerprint of this CertificateInfo.
|
481
|
+
:rtype: str
|
482
|
+
"""
|
483
|
+
return self._fingerprint
|
484
|
+
|
485
|
+
@fingerprint.setter
|
486
|
+
def fingerprint(self, fingerprint):
|
487
|
+
"""Sets the fingerprint of this CertificateInfo.
|
488
|
+
|
489
|
+
证书指纹
|
490
|
+
|
491
|
+
:param fingerprint: The fingerprint of this CertificateInfo.
|
492
|
+
:type fingerprint: str
|
493
|
+
"""
|
494
|
+
self._fingerprint = fingerprint
|
495
|
+
|
496
|
+
@property
|
497
|
+
def subject_alternative_names(self):
|
498
|
+
"""Gets the subject_alternative_names of this CertificateInfo.
|
499
|
+
|
500
|
+
证书全部域名
|
501
|
+
|
502
|
+
:return: The subject_alternative_names of this CertificateInfo.
|
503
|
+
:rtype: list[str]
|
504
|
+
"""
|
505
|
+
return self._subject_alternative_names
|
506
|
+
|
507
|
+
@subject_alternative_names.setter
|
508
|
+
def subject_alternative_names(self, subject_alternative_names):
|
509
|
+
"""Sets the subject_alternative_names of this CertificateInfo.
|
510
|
+
|
511
|
+
证书全部域名
|
512
|
+
|
513
|
+
:param subject_alternative_names: The subject_alternative_names of this CertificateInfo.
|
514
|
+
:type subject_alternative_names: list[str]
|
515
|
+
"""
|
516
|
+
self._subject_alternative_names = subject_alternative_names
|
517
|
+
|
431
518
|
def to_dict(self):
|
432
519
|
"""Returns the model properties as a dict"""
|
433
520
|
result = {}
|