byteplus-python-sdk-v2 3.0.52__py2.py3-none-any.whl → 3.0.54__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.
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/RECORD +213 -61
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/WHEEL +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/top_level.txt +2 -0
- byteplussdkarkruntime/resources/content_generation/tasks.py +4 -0
- byteplussdkarkruntime/types/content_generation/content_generation_task.py +3 -0
- byteplussdkarkruntime/types/content_generation/create_task_content_param.py +31 -1
- byteplussdkcen/__init__.py +133 -0
- byteplussdkcen/api/__init__.py +6 -0
- byteplussdkcen/api/cen_api.py +4205 -0
- byteplussdkcen/models/__init__.py +129 -0
- byteplussdkcen/models/associate_cen_bandwidth_package_request.py +151 -0
- byteplussdkcen/models/associate_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/attach_instance_to_cen_request.py +231 -0
- byteplussdkcen/models/attach_instance_to_cen_response.py +95 -0
- byteplussdkcen/models/attached_instance_for_describe_cen_attached_instances_output.py +279 -0
- byteplussdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_billing_output.py +279 -0
- byteplussdkcen/models/cen_bandwidth_package_for_describe_cen_bandwidth_packages_output.py +617 -0
- byteplussdkcen/models/cen_for_describe_cens_output.py +357 -0
- byteplussdkcen/models/cen_grant_rule_for_describe_grant_rules_to_cen_output.py +253 -0
- byteplussdkcen/models/cen_grant_rule_for_describe_instance_granted_rules_output.py +253 -0
- byteplussdkcen/models/cen_route_entry_for_describe_cen_route_entries_output.py +331 -0
- byteplussdkcen/models/cen_summary_route_entry_for_describe_cen_summary_route_entries_output.py +253 -0
- byteplussdkcen/models/create_cen_bandwidth_package_request.py +462 -0
- byteplussdkcen/models/create_cen_bandwidth_package_response.py +123 -0
- byteplussdkcen/models/create_cen_inter_region_bandwidth_request.py +231 -0
- byteplussdkcen/models/create_cen_inter_region_bandwidth_response.py +123 -0
- byteplussdkcen/models/create_cen_request.py +230 -0
- byteplussdkcen/models/create_cen_response.py +123 -0
- byteplussdkcen/models/create_cen_service_route_entry_request.py +283 -0
- byteplussdkcen/models/create_cen_service_route_entry_response.py +95 -0
- byteplussdkcen/models/create_cen_summary_route_entry_request.py +177 -0
- byteplussdkcen/models/create_cen_summary_route_entry_response.py +95 -0
- byteplussdkcen/models/delete_cen_bandwidth_package_request.py +124 -0
- byteplussdkcen/models/delete_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/delete_cen_inter_region_bandwidth_request.py +124 -0
- byteplussdkcen/models/delete_cen_inter_region_bandwidth_response.py +95 -0
- byteplussdkcen/models/delete_cen_request.py +124 -0
- byteplussdkcen/models/delete_cen_response.py +95 -0
- byteplussdkcen/models/delete_cen_service_route_entry_request.py +178 -0
- byteplussdkcen/models/delete_cen_service_route_entry_response.py +95 -0
- byteplussdkcen/models/delete_cen_summary_route_entry_request.py +151 -0
- byteplussdkcen/models/delete_cen_summary_route_entry_response.py +95 -0
- byteplussdkcen/models/describe95_traffic_request.py +178 -0
- byteplussdkcen/models/describe95_traffic_response.py +123 -0
- byteplussdkcen/models/describe_cen_attached_instance_attributes_request.py +205 -0
- byteplussdkcen/models/describe_cen_attached_instance_attributes_response.py +279 -0
- byteplussdkcen/models/describe_cen_attached_instances_request.py +253 -0
- byteplussdkcen/models/describe_cen_attached_instances_response.py +201 -0
- byteplussdkcen/models/describe_cen_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_attributes_response.py +357 -0
- byteplussdkcen/models/describe_cen_bandwidth_package_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_bandwidth_package_attributes_response.py +591 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_billing_request.py +175 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_billing_response.py +201 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_request.py +331 -0
- byteplussdkcen/models/describe_cen_bandwidth_packages_response.py +201 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidth_attributes_request.py +124 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidth_attributes_response.py +331 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidths_request.py +201 -0
- byteplussdkcen/models/describe_cen_inter_region_bandwidths_response.py +201 -0
- byteplussdkcen/models/describe_cen_route_entries_request.py +279 -0
- byteplussdkcen/models/describe_cen_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cen_service_route_entries_request.py +279 -0
- byteplussdkcen/models/describe_cen_service_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cen_summary_route_entries_request.py +202 -0
- byteplussdkcen/models/describe_cen_summary_route_entries_response.py +201 -0
- byteplussdkcen/models/describe_cens_request.py +253 -0
- byteplussdkcen/models/describe_cens_response.py +201 -0
- byteplussdkcen/models/describe_grant_rules_to_cen_request.py +260 -0
- byteplussdkcen/models/describe_grant_rules_to_cen_response.py +201 -0
- byteplussdkcen/models/describe_instance_granted_rules_request.py +234 -0
- byteplussdkcen/models/describe_instance_granted_rules_response.py +201 -0
- byteplussdkcen/models/detach_instance_from_cen_request.py +205 -0
- byteplussdkcen/models/detach_instance_from_cen_response.py +95 -0
- byteplussdkcen/models/disassociate_cen_bandwidth_package_request.py +151 -0
- byteplussdkcen/models/disassociate_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/grant_instance_to_cen_request.py +239 -0
- byteplussdkcen/models/grant_instance_to_cen_response.py +95 -0
- byteplussdkcen/models/inter_region_bandwidth_for_describe_cen_inter_region_bandwidths_output.py +331 -0
- byteplussdkcen/models/list_tags_for_resources_request.py +264 -0
- byteplussdkcen/models/list_tags_for_resources_response.py +149 -0
- byteplussdkcen/models/modify_cen_attributes_request.py +176 -0
- byteplussdkcen/models/modify_cen_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_association_request.py +151 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_association_response.py +95 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_attributes_request.py +214 -0
- byteplussdkcen/models/modify_cen_bandwidth_package_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_inter_region_bandwidth_attributes_request.py +176 -0
- byteplussdkcen/models/modify_cen_inter_region_bandwidth_attributes_response.py +95 -0
- byteplussdkcen/models/modify_cen_service_route_entry_attributes_request.py +256 -0
- byteplussdkcen/models/modify_cen_service_route_entry_attributes_response.py +95 -0
- byteplussdkcen/models/publish_cen_route_entry_request.py +232 -0
- byteplussdkcen/models/publish_cen_route_entry_response.py +95 -0
- byteplussdkcen/models/publish_to_instance_for_create_cen_service_route_entry_input.py +175 -0
- byteplussdkcen/models/publish_to_instance_for_describe_cen_service_route_entries_output.py +175 -0
- byteplussdkcen/models/publish_to_instance_for_modify_cen_service_route_entry_attributes_input.py +175 -0
- byteplussdkcen/models/renew_cen_bandwidth_package_request.py +176 -0
- byteplussdkcen/models/renew_cen_bandwidth_package_response.py +95 -0
- byteplussdkcen/models/resource_tag_for_list_tags_for_resources_output.py +201 -0
- byteplussdkcen/models/revoke_instance_from_cen_request.py +239 -0
- byteplussdkcen/models/revoke_instance_from_cen_response.py +95 -0
- byteplussdkcen/models/service_route_entry_for_describe_cen_service_route_entries_output.py +331 -0
- byteplussdkcen/models/set_cen_bandwidth_package_renewal_request.py +203 -0
- byteplussdkcen/models/set_cen_bandwidth_package_renewal_response.py +95 -0
- byteplussdkcen/models/tag_filter_for_describe_cen_bandwidth_packages_input.py +149 -0
- byteplussdkcen/models/tag_filter_for_describe_cens_input.py +149 -0
- byteplussdkcen/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
- byteplussdkcen/models/tag_for_create_cen_bandwidth_package_input.py +149 -0
- byteplussdkcen/models/tag_for_create_cen_input.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_attributes_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_bandwidth_package_attributes_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cen_bandwidth_packages_output.py +149 -0
- byteplussdkcen/models/tag_for_describe_cens_output.py +149 -0
- byteplussdkcen/models/tag_for_tag_resources_input.py +150 -0
- byteplussdkcen/models/tag_resources_request.py +183 -0
- byteplussdkcen/models/tag_resources_response.py +95 -0
- byteplussdkcen/models/traffic_data_for_describe95_traffic_output.py +201 -0
- byteplussdkcen/models/traffic_detail_data_for_describe95_traffic_output.py +175 -0
- byteplussdkcen/models/untag_resources_request.py +183 -0
- byteplussdkcen/models/untag_resources_response.py +95 -0
- byteplussdkcen/models/withdraw_cen_route_entry_request.py +232 -0
- byteplussdkcen/models/withdraw_cen_route_entry_response.py +95 -0
- byteplussdkclawsentry/__init__.py +24 -0
- byteplussdkclawsentry/api/__init__.py +6 -0
- byteplussdkclawsentry/api/clawsentry_api.py +131 -0
- byteplussdkclawsentry/models/__init__.py +20 -0
- byteplussdkclawsentry/models/base_for_create_claw_input.py +126 -0
- byteplussdkclawsentry/models/create_claw_request.py +251 -0
- byteplussdkclawsentry/models/create_claw_response.py +279 -0
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkcore/endpoint/providers/default_provider.py +21 -0
- byteplussdkcore/endpoint/providers/standard_provider.py +1 -0
- byteplussdkcpaas/__init__.py +4 -0
- byteplussdkcpaas/models/__init__.py +4 -0
- byteplussdkcpaas/models/create_template_v2_request.py +27 -1
- byteplussdkcpaas/models/data_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/element_style_for_create_template_v2_input.py +497 -3
- byteplussdkcpaas/models/element_style_for_get_template_v2_output.py +497 -3
- byteplussdkcpaas/models/extend_attrs_for_create_template_v2_input.py +79 -1
- byteplussdkcpaas/models/extend_attrs_for_get_template_v2_output.py +79 -1
- byteplussdkcpaas/models/item_for_create_template_v2_input.py +149 -0
- byteplussdkcpaas/models/item_for_get_template_v2_output.py +149 -0
- byteplussdkcpaas/models/page_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_create_template_v2_input.py +29 -3
- byteplussdkcpaas/models/page_element_dto_list_for_get_template_v2_output.py +29 -3
- byteplussdkcpaas/models/template_button_list_for_create_template_v2_input.py +227 -0
- byteplussdkcpaas/models/template_button_list_for_get_template_v2_output.py +227 -0
- byteplussdkcpaas/models/template_list_for_create_template_v2_input.py +235 -1
- byteplussdkcpaas/models/template_list_for_get_template_v2_output.py +235 -1
- byteplussdkcpaas/models/template_status_for_list_template_v2_output.py +79 -1
- byteplussdkcpaas/models/variables_dto_list_for_create_template_v2_input.py +27 -1
- byteplussdkcpaas/models/variables_dto_list_for_get_template_v2_output.py +27 -1
- byteplussdkexamples/byteplussdkarkruntime/content_generation_tasks.py +8 -0
- byteplussdktransitrouter/__init__.py +24 -1
- byteplussdktransitrouter/api/transitrouter_api.py +983 -13
- byteplussdktransitrouter/models/__init__.py +24 -1
- byteplussdktransitrouter/models/accept_shared_transit_router_request.py +124 -0
- byteplussdktransitrouter/models/accept_shared_transit_router_response.py +95 -0
- byteplussdktransitrouter/models/accept_transit_router_peer_attachment_request.py +124 -0
- byteplussdktransitrouter/models/accept_transit_router_peer_attachment_response.py +95 -0
- byteplussdktransitrouter/models/create_transit_router_grant_rule_request.py +177 -0
- byteplussdktransitrouter/models/create_transit_router_grant_rule_response.py +95 -0
- byteplussdktransitrouter/models/create_transit_router_peer_attachment_request.py +79 -1
- byteplussdktransitrouter/models/create_transit_router_route_entry_request.py +29 -4
- byteplussdktransitrouter/models/create_transit_router_route_policy_entry_request.py +33 -1
- byteplussdktransitrouter/models/create_transit_router_traffic_qos_queue_entry_request.py +39 -4
- byteplussdktransitrouter/models/create_transit_router_vpn_attachment_request.py +27 -1
- byteplussdktransitrouter/models/delete_transit_router_grant_rule_request.py +151 -0
- byteplussdktransitrouter/models/delete_transit_router_grant_rule_response.py +95 -0
- byteplussdktransitrouter/models/describe95_traffic_request.py +185 -0
- byteplussdktransitrouter/models/describe95_traffic_response.py +123 -0
- byteplussdktransitrouter/models/describe_transit_router_attachments_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_grant_rules_request.py +202 -0
- byteplussdktransitrouter/models/describe_transit_router_grant_rules_response.py +201 -0
- byteplussdktransitrouter/models/describe_transit_router_multicast_domains_response.py +3 -3
- byteplussdktransitrouter/models/describe_transit_router_route_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_route_policy_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_traffic_qos_queue_entries_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_router_vpn_attachments_request.py +3 -0
- byteplussdktransitrouter/models/describe_transit_routers_request.py +3 -0
- byteplussdktransitrouter/models/enable_transit_router_route_table_propagation_request.py +27 -1
- byteplussdktransitrouter/models/models.py +1522 -1447
- byteplussdktransitrouter/models/modify_transit_router_attributes_request.py +34 -1
- byteplussdktransitrouter/models/modify_transit_router_grant_rule_attributes_request.py +177 -0
- byteplussdktransitrouter/models/modify_transit_router_grant_rule_attributes_response.py +95 -0
- byteplussdktransitrouter/models/modify_transit_router_peer_attachment_attributes_request.py +53 -1
- byteplussdktransitrouter/models/modify_transit_router_route_policy_entry_attributes_request.py +33 -1
- byteplussdktransitrouter/models/modify_transit_router_traffic_qos_queue_entry_attributes_request.py +208 -0
- byteplussdktransitrouter/models/modify_transit_router_traffic_qos_queue_entry_attributes_response.py +95 -0
- byteplussdktransitrouter/models/reject_shared_transit_router_request.py +124 -0
- byteplussdktransitrouter/models/reject_shared_transit_router_response.py +95 -0
- byteplussdktransitrouter/models/reject_transit_router_peer_attachment_request.py +124 -0
- byteplussdktransitrouter/models/reject_transit_router_peer_attachment_response.py +95 -0
- byteplussdktransitrouter/models/traffic_data_for_describe95_traffic_output.py +201 -0
- byteplussdktransitrouter/models/traffic_detail_data_for_describe95_traffic_output.py +175 -0
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_attachments_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_peer_attachments_output.py +105 -1
- byteplussdktransitrouter/models/transit_router_attachment_for_describe_transit_router_vpn_attachments_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_for_describe_transit_routers_output.py +27 -1
- byteplussdktransitrouter/models/transit_router_grant_rule_for_describe_transit_router_grant_rules_output.py +253 -0
- byteplussdktransitrouter/models/{transit_router_multicast_domains_for_describe_transit_router_multicast_domains_output.py → transit_router_multicast_domain_for_describe_transit_router_multicast_domains_output.py} +33 -33
- byteplussdktransitrouter/models/transit_router_route_entry_for_describe_transit_router_route_entries_output.py +53 -1
- byteplussdkvke/__init__.py +2 -0
- byteplussdkvke/api/vke_api.py +97 -0
- byteplussdkvke/models/__init__.py +2 -0
- byteplussdkvke/models/item_for_list_scaling_policies_output.py +27 -1
- byteplussdkvke/models/scale_node_pool_request.py +204 -0
- byteplussdkvke/models/scale_node_pool_response.py +95 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.54.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -33,34 +33,67 @@ class ModifyTransitRouterAttributesRequest(object):
|
|
|
33
33
|
and the value is json key in definition.
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
|
+
'billing_owner_type': 'str',
|
|
36
37
|
'description': 'str',
|
|
37
38
|
'transit_router_id': 'str',
|
|
38
39
|
'transit_router_name': 'str'
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
attribute_map = {
|
|
43
|
+
'billing_owner_type': 'BillingOwnerType',
|
|
42
44
|
'description': 'Description',
|
|
43
45
|
'transit_router_id': 'TransitRouterId',
|
|
44
46
|
'transit_router_name': 'TransitRouterName'
|
|
45
47
|
}
|
|
46
48
|
|
|
47
|
-
def __init__(self, description=None, transit_router_id=None, transit_router_name=None, _configuration=None): # noqa: E501
|
|
49
|
+
def __init__(self, billing_owner_type=None, description=None, transit_router_id=None, transit_router_name=None, _configuration=None): # noqa: E501
|
|
48
50
|
"""ModifyTransitRouterAttributesRequest - a model defined in Swagger""" # noqa: E501
|
|
49
51
|
if _configuration is None:
|
|
50
52
|
_configuration = Configuration()
|
|
51
53
|
self._configuration = _configuration
|
|
52
54
|
|
|
55
|
+
self._billing_owner_type = None
|
|
53
56
|
self._description = None
|
|
54
57
|
self._transit_router_id = None
|
|
55
58
|
self._transit_router_name = None
|
|
56
59
|
self.discriminator = None
|
|
57
60
|
|
|
61
|
+
if billing_owner_type is not None:
|
|
62
|
+
self.billing_owner_type = billing_owner_type
|
|
58
63
|
if description is not None:
|
|
59
64
|
self.description = description
|
|
60
65
|
self.transit_router_id = transit_router_id
|
|
61
66
|
if transit_router_name is not None:
|
|
62
67
|
self.transit_router_name = transit_router_name
|
|
63
68
|
|
|
69
|
+
@property
|
|
70
|
+
def billing_owner_type(self):
|
|
71
|
+
"""Gets the billing_owner_type of this ModifyTransitRouterAttributesRequest. # noqa: E501
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:return: The billing_owner_type of this ModifyTransitRouterAttributesRequest. # noqa: E501
|
|
75
|
+
:rtype: str
|
|
76
|
+
"""
|
|
77
|
+
return self._billing_owner_type
|
|
78
|
+
|
|
79
|
+
@billing_owner_type.setter
|
|
80
|
+
def billing_owner_type(self, billing_owner_type):
|
|
81
|
+
"""Sets the billing_owner_type of this ModifyTransitRouterAttributesRequest.
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
:param billing_owner_type: The billing_owner_type of this ModifyTransitRouterAttributesRequest. # noqa: E501
|
|
85
|
+
:type: str
|
|
86
|
+
"""
|
|
87
|
+
allowed_values = ["ResourceOwner", "TransitRouterOwner"] # noqa: E501
|
|
88
|
+
if (self._configuration.client_side_validation and
|
|
89
|
+
billing_owner_type not in allowed_values):
|
|
90
|
+
raise ValueError(
|
|
91
|
+
"Invalid value for `billing_owner_type` ({0}), must be one of {1}" # noqa: E501
|
|
92
|
+
.format(billing_owner_type, allowed_values)
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
self._billing_owner_type = billing_owner_type
|
|
96
|
+
|
|
64
97
|
@property
|
|
65
98
|
def description(self):
|
|
66
99
|
"""Gets the description of this ModifyTransitRouterAttributesRequest. # noqa: E501
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
transitrouter
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ModifyTransitRouterGrantRuleAttributesRequest(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
'description': 'str',
|
|
37
|
+
'grant_account_id': 'str',
|
|
38
|
+
'transit_router_id': 'str'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'description': 'Description',
|
|
43
|
+
'grant_account_id': 'GrantAccountId',
|
|
44
|
+
'transit_router_id': 'TransitRouterId'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, description=None, grant_account_id=None, transit_router_id=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""ModifyTransitRouterGrantRuleAttributesRequest - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._description = None
|
|
54
|
+
self._grant_account_id = None
|
|
55
|
+
self._transit_router_id = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if description is not None:
|
|
59
|
+
self.description = description
|
|
60
|
+
self.grant_account_id = grant_account_id
|
|
61
|
+
self.transit_router_id = transit_router_id
|
|
62
|
+
|
|
63
|
+
@property
|
|
64
|
+
def description(self):
|
|
65
|
+
"""Gets the description of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
:return: The description of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
69
|
+
:rtype: str
|
|
70
|
+
"""
|
|
71
|
+
return self._description
|
|
72
|
+
|
|
73
|
+
@description.setter
|
|
74
|
+
def description(self, description):
|
|
75
|
+
"""Sets the description of this ModifyTransitRouterGrantRuleAttributesRequest.
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
:param description: The description of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
79
|
+
:type: str
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
self._description = description
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def grant_account_id(self):
|
|
86
|
+
"""Gets the grant_account_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
:return: The grant_account_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
90
|
+
:rtype: str
|
|
91
|
+
"""
|
|
92
|
+
return self._grant_account_id
|
|
93
|
+
|
|
94
|
+
@grant_account_id.setter
|
|
95
|
+
def grant_account_id(self, grant_account_id):
|
|
96
|
+
"""Sets the grant_account_id of this ModifyTransitRouterGrantRuleAttributesRequest.
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
:param grant_account_id: The grant_account_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
100
|
+
:type: str
|
|
101
|
+
"""
|
|
102
|
+
if self._configuration.client_side_validation and grant_account_id is None:
|
|
103
|
+
raise ValueError("Invalid value for `grant_account_id`, must not be `None`") # noqa: E501
|
|
104
|
+
|
|
105
|
+
self._grant_account_id = grant_account_id
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def transit_router_id(self):
|
|
109
|
+
"""Gets the transit_router_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The transit_router_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
113
|
+
:rtype: str
|
|
114
|
+
"""
|
|
115
|
+
return self._transit_router_id
|
|
116
|
+
|
|
117
|
+
@transit_router_id.setter
|
|
118
|
+
def transit_router_id(self, transit_router_id):
|
|
119
|
+
"""Sets the transit_router_id of this ModifyTransitRouterGrantRuleAttributesRequest.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param transit_router_id: The transit_router_id of this ModifyTransitRouterGrantRuleAttributesRequest. # noqa: E501
|
|
123
|
+
:type: str
|
|
124
|
+
"""
|
|
125
|
+
if self._configuration.client_side_validation and transit_router_id is None:
|
|
126
|
+
raise ValueError("Invalid value for `transit_router_id`, must not be `None`") # noqa: E501
|
|
127
|
+
|
|
128
|
+
self._transit_router_id = transit_router_id
|
|
129
|
+
|
|
130
|
+
def to_dict(self):
|
|
131
|
+
"""Returns the model properties as a dict"""
|
|
132
|
+
result = {}
|
|
133
|
+
|
|
134
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
135
|
+
value = getattr(self, attr)
|
|
136
|
+
if isinstance(value, list):
|
|
137
|
+
result[attr] = list(map(
|
|
138
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
139
|
+
value
|
|
140
|
+
))
|
|
141
|
+
elif hasattr(value, "to_dict"):
|
|
142
|
+
result[attr] = value.to_dict()
|
|
143
|
+
elif isinstance(value, dict):
|
|
144
|
+
result[attr] = dict(map(
|
|
145
|
+
lambda item: (item[0], item[1].to_dict())
|
|
146
|
+
if hasattr(item[1], "to_dict") else item,
|
|
147
|
+
value.items()
|
|
148
|
+
))
|
|
149
|
+
else:
|
|
150
|
+
result[attr] = value
|
|
151
|
+
if issubclass(ModifyTransitRouterGrantRuleAttributesRequest, dict):
|
|
152
|
+
for key, value in self.items():
|
|
153
|
+
result[key] = value
|
|
154
|
+
|
|
155
|
+
return result
|
|
156
|
+
|
|
157
|
+
def to_str(self):
|
|
158
|
+
"""Returns the string representation of the model"""
|
|
159
|
+
return pprint.pformat(self.to_dict())
|
|
160
|
+
|
|
161
|
+
def __repr__(self):
|
|
162
|
+
"""For `print` and `pprint`"""
|
|
163
|
+
return self.to_str()
|
|
164
|
+
|
|
165
|
+
def __eq__(self, other):
|
|
166
|
+
"""Returns true if both objects are equal"""
|
|
167
|
+
if not isinstance(other, ModifyTransitRouterGrantRuleAttributesRequest):
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
return self.to_dict() == other.to_dict()
|
|
171
|
+
|
|
172
|
+
def __ne__(self, other):
|
|
173
|
+
"""Returns true if both objects are not equal"""
|
|
174
|
+
if not isinstance(other, ModifyTransitRouterGrantRuleAttributesRequest):
|
|
175
|
+
return True
|
|
176
|
+
|
|
177
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
transitrouter
|
|
5
|
+
|
|
6
|
+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
|
|
7
|
+
|
|
8
|
+
OpenAPI spec version: common-version
|
|
9
|
+
|
|
10
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
import pprint
|
|
15
|
+
import re # noqa: F401
|
|
16
|
+
|
|
17
|
+
import six
|
|
18
|
+
|
|
19
|
+
from byteplussdkcore.configuration import Configuration
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class ModifyTransitRouterGrantRuleAttributesResponse(object):
|
|
23
|
+
"""NOTE: This class is auto generated by the swagger code generator program.
|
|
24
|
+
|
|
25
|
+
Do not edit the class manually.
|
|
26
|
+
"""
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
Attributes:
|
|
30
|
+
swagger_types (dict): The key is attribute name
|
|
31
|
+
and the value is attribute type.
|
|
32
|
+
attribute_map (dict): The key is attribute name
|
|
33
|
+
and the value is json key in definition.
|
|
34
|
+
"""
|
|
35
|
+
swagger_types = {
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
attribute_map = {
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
def __init__(self, _configuration=None): # noqa: E501
|
|
42
|
+
"""ModifyTransitRouterGrantRuleAttributesResponse - a model defined in Swagger""" # noqa: E501
|
|
43
|
+
if _configuration is None:
|
|
44
|
+
_configuration = Configuration()
|
|
45
|
+
self._configuration = _configuration
|
|
46
|
+
self.discriminator = None
|
|
47
|
+
|
|
48
|
+
def to_dict(self):
|
|
49
|
+
"""Returns the model properties as a dict"""
|
|
50
|
+
result = {}
|
|
51
|
+
|
|
52
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
53
|
+
value = getattr(self, attr)
|
|
54
|
+
if isinstance(value, list):
|
|
55
|
+
result[attr] = list(map(
|
|
56
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
57
|
+
value
|
|
58
|
+
))
|
|
59
|
+
elif hasattr(value, "to_dict"):
|
|
60
|
+
result[attr] = value.to_dict()
|
|
61
|
+
elif isinstance(value, dict):
|
|
62
|
+
result[attr] = dict(map(
|
|
63
|
+
lambda item: (item[0], item[1].to_dict())
|
|
64
|
+
if hasattr(item[1], "to_dict") else item,
|
|
65
|
+
value.items()
|
|
66
|
+
))
|
|
67
|
+
else:
|
|
68
|
+
result[attr] = value
|
|
69
|
+
if issubclass(ModifyTransitRouterGrantRuleAttributesResponse, dict):
|
|
70
|
+
for key, value in self.items():
|
|
71
|
+
result[key] = value
|
|
72
|
+
|
|
73
|
+
return result
|
|
74
|
+
|
|
75
|
+
def to_str(self):
|
|
76
|
+
"""Returns the string representation of the model"""
|
|
77
|
+
return pprint.pformat(self.to_dict())
|
|
78
|
+
|
|
79
|
+
def __repr__(self):
|
|
80
|
+
"""For `print` and `pprint`"""
|
|
81
|
+
return self.to_str()
|
|
82
|
+
|
|
83
|
+
def __eq__(self, other):
|
|
84
|
+
"""Returns true if both objects are equal"""
|
|
85
|
+
if not isinstance(other, ModifyTransitRouterGrantRuleAttributesResponse):
|
|
86
|
+
return False
|
|
87
|
+
|
|
88
|
+
return self.to_dict() == other.to_dict()
|
|
89
|
+
|
|
90
|
+
def __ne__(self, other):
|
|
91
|
+
"""Returns true if both objects are not equal"""
|
|
92
|
+
if not isinstance(other, ModifyTransitRouterGrantRuleAttributesResponse):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -34,7 +34,9 @@ class ModifyTransitRouterPeerAttachmentAttributesRequest(object):
|
|
|
34
34
|
"""
|
|
35
35
|
swagger_types = {
|
|
36
36
|
'bandwidth': 'int',
|
|
37
|
+
'bandwidth_type': 'str',
|
|
37
38
|
'description': 'str',
|
|
39
|
+
'line_operator': 'str',
|
|
38
40
|
'transit_router_attachment_id': 'str',
|
|
39
41
|
'transit_router_attachment_name': 'str',
|
|
40
42
|
'transit_router_bandwidth_package_id': 'str'
|
|
@@ -42,20 +44,24 @@ class ModifyTransitRouterPeerAttachmentAttributesRequest(object):
|
|
|
42
44
|
|
|
43
45
|
attribute_map = {
|
|
44
46
|
'bandwidth': 'Bandwidth',
|
|
47
|
+
'bandwidth_type': 'BandwidthType',
|
|
45
48
|
'description': 'Description',
|
|
49
|
+
'line_operator': 'LineOperator',
|
|
46
50
|
'transit_router_attachment_id': 'TransitRouterAttachmentId',
|
|
47
51
|
'transit_router_attachment_name': 'TransitRouterAttachmentName',
|
|
48
52
|
'transit_router_bandwidth_package_id': 'TransitRouterBandwidthPackageId'
|
|
49
53
|
}
|
|
50
54
|
|
|
51
|
-
def __init__(self, bandwidth=None, description=None, transit_router_attachment_id=None, transit_router_attachment_name=None, transit_router_bandwidth_package_id=None, _configuration=None): # noqa: E501
|
|
55
|
+
def __init__(self, bandwidth=None, bandwidth_type=None, description=None, line_operator=None, transit_router_attachment_id=None, transit_router_attachment_name=None, transit_router_bandwidth_package_id=None, _configuration=None): # noqa: E501
|
|
52
56
|
"""ModifyTransitRouterPeerAttachmentAttributesRequest - a model defined in Swagger""" # noqa: E501
|
|
53
57
|
if _configuration is None:
|
|
54
58
|
_configuration = Configuration()
|
|
55
59
|
self._configuration = _configuration
|
|
56
60
|
|
|
57
61
|
self._bandwidth = None
|
|
62
|
+
self._bandwidth_type = None
|
|
58
63
|
self._description = None
|
|
64
|
+
self._line_operator = None
|
|
59
65
|
self._transit_router_attachment_id = None
|
|
60
66
|
self._transit_router_attachment_name = None
|
|
61
67
|
self._transit_router_bandwidth_package_id = None
|
|
@@ -63,8 +69,12 @@ class ModifyTransitRouterPeerAttachmentAttributesRequest(object):
|
|
|
63
69
|
|
|
64
70
|
if bandwidth is not None:
|
|
65
71
|
self.bandwidth = bandwidth
|
|
72
|
+
if bandwidth_type is not None:
|
|
73
|
+
self.bandwidth_type = bandwidth_type
|
|
66
74
|
if description is not None:
|
|
67
75
|
self.description = description
|
|
76
|
+
if line_operator is not None:
|
|
77
|
+
self.line_operator = line_operator
|
|
68
78
|
self.transit_router_attachment_id = transit_router_attachment_id
|
|
69
79
|
if transit_router_attachment_name is not None:
|
|
70
80
|
self.transit_router_attachment_name = transit_router_attachment_name
|
|
@@ -92,6 +102,27 @@ class ModifyTransitRouterPeerAttachmentAttributesRequest(object):
|
|
|
92
102
|
|
|
93
103
|
self._bandwidth = bandwidth
|
|
94
104
|
|
|
105
|
+
@property
|
|
106
|
+
def bandwidth_type(self):
|
|
107
|
+
"""Gets the bandwidth_type of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
:return: The bandwidth_type of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
111
|
+
:rtype: str
|
|
112
|
+
"""
|
|
113
|
+
return self._bandwidth_type
|
|
114
|
+
|
|
115
|
+
@bandwidth_type.setter
|
|
116
|
+
def bandwidth_type(self, bandwidth_type):
|
|
117
|
+
"""Sets the bandwidth_type of this ModifyTransitRouterPeerAttachmentAttributesRequest.
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
:param bandwidth_type: The bandwidth_type of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
121
|
+
:type: str
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
self._bandwidth_type = bandwidth_type
|
|
125
|
+
|
|
95
126
|
@property
|
|
96
127
|
def description(self):
|
|
97
128
|
"""Gets the description of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
@@ -113,6 +144,27 @@ class ModifyTransitRouterPeerAttachmentAttributesRequest(object):
|
|
|
113
144
|
|
|
114
145
|
self._description = description
|
|
115
146
|
|
|
147
|
+
@property
|
|
148
|
+
def line_operator(self):
|
|
149
|
+
"""Gets the line_operator of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
:return: The line_operator of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
153
|
+
:rtype: str
|
|
154
|
+
"""
|
|
155
|
+
return self._line_operator
|
|
156
|
+
|
|
157
|
+
@line_operator.setter
|
|
158
|
+
def line_operator(self, line_operator):
|
|
159
|
+
"""Sets the line_operator of this ModifyTransitRouterPeerAttachmentAttributesRequest.
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
:param line_operator: The line_operator of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
|
163
|
+
:type: str
|
|
164
|
+
"""
|
|
165
|
+
|
|
166
|
+
self._line_operator = line_operator
|
|
167
|
+
|
|
116
168
|
@property
|
|
117
169
|
def transit_router_attachment_id(self):
|
|
118
170
|
"""Gets the transit_router_attachment_id of this ModifyTransitRouterPeerAttachmentAttributesRequest. # noqa: E501
|
byteplussdktransitrouter/models/modify_transit_router_route_policy_entry_attributes_request.py
CHANGED
|
@@ -41,6 +41,7 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
41
41
|
'destination_resource_types': 'list[str]',
|
|
42
42
|
'ip_prefix_match_mode': 'str',
|
|
43
43
|
'ip_prefixes': 'list[str]',
|
|
44
|
+
'prefix_list_id': 'str',
|
|
44
45
|
'priority': 'int',
|
|
45
46
|
'source_resource_ids': 'list[str]',
|
|
46
47
|
'source_resource_types': 'list[str]',
|
|
@@ -56,13 +57,14 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
56
57
|
'destination_resource_types': 'DestinationResourceTypes',
|
|
57
58
|
'ip_prefix_match_mode': 'IpPrefixMatchMode',
|
|
58
59
|
'ip_prefixes': 'IpPrefixes',
|
|
60
|
+
'prefix_list_id': 'PrefixListId',
|
|
59
61
|
'priority': 'Priority',
|
|
60
62
|
'source_resource_ids': 'SourceResourceIds',
|
|
61
63
|
'source_resource_types': 'SourceResourceTypes',
|
|
62
64
|
'transit_router_route_policy_entry_id': 'TransitRouterRoutePolicyEntryId'
|
|
63
65
|
}
|
|
64
66
|
|
|
65
|
-
def __init__(self, action_result=None, apply_as_path_values=None, as_path_operate_mode=None, description=None, destination_resource_ids=None, destination_resource_types=None, ip_prefix_match_mode=None, ip_prefixes=None, priority=None, source_resource_ids=None, source_resource_types=None, transit_router_route_policy_entry_id=None, _configuration=None): # noqa: E501
|
|
67
|
+
def __init__(self, action_result=None, apply_as_path_values=None, as_path_operate_mode=None, description=None, destination_resource_ids=None, destination_resource_types=None, ip_prefix_match_mode=None, ip_prefixes=None, prefix_list_id=None, priority=None, source_resource_ids=None, source_resource_types=None, transit_router_route_policy_entry_id=None, _configuration=None): # noqa: E501
|
|
66
68
|
"""ModifyTransitRouterRoutePolicyEntryAttributesRequest - a model defined in Swagger""" # noqa: E501
|
|
67
69
|
if _configuration is None:
|
|
68
70
|
_configuration = Configuration()
|
|
@@ -76,6 +78,7 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
76
78
|
self._destination_resource_types = None
|
|
77
79
|
self._ip_prefix_match_mode = None
|
|
78
80
|
self._ip_prefixes = None
|
|
81
|
+
self._prefix_list_id = None
|
|
79
82
|
self._priority = None
|
|
80
83
|
self._source_resource_ids = None
|
|
81
84
|
self._source_resource_types = None
|
|
@@ -98,6 +101,8 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
98
101
|
self.ip_prefix_match_mode = ip_prefix_match_mode
|
|
99
102
|
if ip_prefixes is not None:
|
|
100
103
|
self.ip_prefixes = ip_prefixes
|
|
104
|
+
if prefix_list_id is not None:
|
|
105
|
+
self.prefix_list_id = prefix_list_id
|
|
101
106
|
if priority is not None:
|
|
102
107
|
self.priority = priority
|
|
103
108
|
if source_resource_ids is not None:
|
|
@@ -274,6 +279,27 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
274
279
|
|
|
275
280
|
self._ip_prefixes = ip_prefixes
|
|
276
281
|
|
|
282
|
+
@property
|
|
283
|
+
def prefix_list_id(self):
|
|
284
|
+
"""Gets the prefix_list_id of this ModifyTransitRouterRoutePolicyEntryAttributesRequest. # noqa: E501
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
:return: The prefix_list_id of this ModifyTransitRouterRoutePolicyEntryAttributesRequest. # noqa: E501
|
|
288
|
+
:rtype: str
|
|
289
|
+
"""
|
|
290
|
+
return self._prefix_list_id
|
|
291
|
+
|
|
292
|
+
@prefix_list_id.setter
|
|
293
|
+
def prefix_list_id(self, prefix_list_id):
|
|
294
|
+
"""Sets the prefix_list_id of this ModifyTransitRouterRoutePolicyEntryAttributesRequest.
|
|
295
|
+
|
|
296
|
+
|
|
297
|
+
:param prefix_list_id: The prefix_list_id of this ModifyTransitRouterRoutePolicyEntryAttributesRequest. # noqa: E501
|
|
298
|
+
:type: str
|
|
299
|
+
"""
|
|
300
|
+
|
|
301
|
+
self._prefix_list_id = prefix_list_id
|
|
302
|
+
|
|
277
303
|
@property
|
|
278
304
|
def priority(self):
|
|
279
305
|
"""Gets the priority of this ModifyTransitRouterRoutePolicyEntryAttributesRequest. # noqa: E501
|
|
@@ -292,6 +318,12 @@ class ModifyTransitRouterRoutePolicyEntryAttributesRequest(object):
|
|
|
292
318
|
:param priority: The priority of this ModifyTransitRouterRoutePolicyEntryAttributesRequest. # noqa: E501
|
|
293
319
|
:type: int
|
|
294
320
|
"""
|
|
321
|
+
if (self._configuration.client_side_validation and
|
|
322
|
+
priority is not None and priority > 10000): # noqa: E501
|
|
323
|
+
raise ValueError("Invalid value for `priority`, must be a value less than or equal to `10000`") # noqa: E501
|
|
324
|
+
if (self._configuration.client_side_validation and
|
|
325
|
+
priority is not None and priority < 1): # noqa: E501
|
|
326
|
+
raise ValueError("Invalid value for `priority`, must be a value greater than or equal to `1`") # noqa: E501
|
|
295
327
|
|
|
296
328
|
self._priority = priority
|
|
297
329
|
|