byteplus-python-sdk-v2 3.0.52__py2.py3-none-any.whl → 3.0.53__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.53.dist-info}/METADATA +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/RECORD +184 -43
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/WHEEL +1 -1
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/top_level.txt +1 -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
- byteplussdkcore/api_client.py +1 -1
- byteplussdkcore/configuration.py +1 -1
- byteplussdkcore/endpoint/providers/default_provider.py +14 -0
- 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.53.dist-info}/licenses/LICENSE.txt +0 -0
- {byteplus_python_sdk_v2-3.0.52.dist-info → byteplus_python_sdk_v2-3.0.53.dist-info}/licenses/NOTICE.md +0 -0
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
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 DescribeInstanceGrantedRulesRequest(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
|
+
'instance_id': 'str',
|
|
37
|
+
'instance_region_id': 'str',
|
|
38
|
+
'instance_type': 'str',
|
|
39
|
+
'page_number': 'int',
|
|
40
|
+
'page_size': 'int'
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
attribute_map = {
|
|
44
|
+
'instance_id': 'InstanceId',
|
|
45
|
+
'instance_region_id': 'InstanceRegionId',
|
|
46
|
+
'instance_type': 'InstanceType',
|
|
47
|
+
'page_number': 'PageNumber',
|
|
48
|
+
'page_size': 'PageSize'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, instance_id=None, instance_region_id=None, instance_type=None, page_number=None, page_size=None, _configuration=None): # noqa: E501
|
|
52
|
+
"""DescribeInstanceGrantedRulesRequest - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
if _configuration is None:
|
|
54
|
+
_configuration = Configuration()
|
|
55
|
+
self._configuration = _configuration
|
|
56
|
+
|
|
57
|
+
self._instance_id = None
|
|
58
|
+
self._instance_region_id = None
|
|
59
|
+
self._instance_type = None
|
|
60
|
+
self._page_number = None
|
|
61
|
+
self._page_size = None
|
|
62
|
+
self.discriminator = None
|
|
63
|
+
|
|
64
|
+
if instance_id is not None:
|
|
65
|
+
self.instance_id = instance_id
|
|
66
|
+
if instance_region_id is not None:
|
|
67
|
+
self.instance_region_id = instance_region_id
|
|
68
|
+
if instance_type is not None:
|
|
69
|
+
self.instance_type = instance_type
|
|
70
|
+
if page_number is not None:
|
|
71
|
+
self.page_number = page_number
|
|
72
|
+
if page_size is not None:
|
|
73
|
+
self.page_size = page_size
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def instance_id(self):
|
|
77
|
+
"""Gets the instance_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:return: The instance_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
81
|
+
:rtype: str
|
|
82
|
+
"""
|
|
83
|
+
return self._instance_id
|
|
84
|
+
|
|
85
|
+
@instance_id.setter
|
|
86
|
+
def instance_id(self, instance_id):
|
|
87
|
+
"""Sets the instance_id of this DescribeInstanceGrantedRulesRequest.
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
:param instance_id: The instance_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
91
|
+
:type: str
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
self._instance_id = instance_id
|
|
95
|
+
|
|
96
|
+
@property
|
|
97
|
+
def instance_region_id(self):
|
|
98
|
+
"""Gets the instance_region_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:return: The instance_region_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
102
|
+
:rtype: str
|
|
103
|
+
"""
|
|
104
|
+
return self._instance_region_id
|
|
105
|
+
|
|
106
|
+
@instance_region_id.setter
|
|
107
|
+
def instance_region_id(self, instance_region_id):
|
|
108
|
+
"""Sets the instance_region_id of this DescribeInstanceGrantedRulesRequest.
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
:param instance_region_id: The instance_region_id of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
112
|
+
:type: str
|
|
113
|
+
"""
|
|
114
|
+
|
|
115
|
+
self._instance_region_id = instance_region_id
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def instance_type(self):
|
|
119
|
+
"""Gets the instance_type of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:return: The instance_type of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
123
|
+
:rtype: str
|
|
124
|
+
"""
|
|
125
|
+
return self._instance_type
|
|
126
|
+
|
|
127
|
+
@instance_type.setter
|
|
128
|
+
def instance_type(self, instance_type):
|
|
129
|
+
"""Sets the instance_type of this DescribeInstanceGrantedRulesRequest.
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
:param instance_type: The instance_type of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
133
|
+
:type: str
|
|
134
|
+
"""
|
|
135
|
+
allowed_values = ["VPC", "DCGW"] # noqa: E501
|
|
136
|
+
if (self._configuration.client_side_validation and
|
|
137
|
+
instance_type not in allowed_values):
|
|
138
|
+
raise ValueError(
|
|
139
|
+
"Invalid value for `instance_type` ({0}), must be one of {1}" # noqa: E501
|
|
140
|
+
.format(instance_type, allowed_values)
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
self._instance_type = instance_type
|
|
144
|
+
|
|
145
|
+
@property
|
|
146
|
+
def page_number(self):
|
|
147
|
+
"""Gets the page_number of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:return: The page_number of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
151
|
+
:rtype: int
|
|
152
|
+
"""
|
|
153
|
+
return self._page_number
|
|
154
|
+
|
|
155
|
+
@page_number.setter
|
|
156
|
+
def page_number(self, page_number):
|
|
157
|
+
"""Sets the page_number of this DescribeInstanceGrantedRulesRequest.
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
:param page_number: The page_number of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
161
|
+
:type: int
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
self._page_number = page_number
|
|
165
|
+
|
|
166
|
+
@property
|
|
167
|
+
def page_size(self):
|
|
168
|
+
"""Gets the page_size of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
:return: The page_size of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
172
|
+
:rtype: int
|
|
173
|
+
"""
|
|
174
|
+
return self._page_size
|
|
175
|
+
|
|
176
|
+
@page_size.setter
|
|
177
|
+
def page_size(self, page_size):
|
|
178
|
+
"""Sets the page_size of this DescribeInstanceGrantedRulesRequest.
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
:param page_size: The page_size of this DescribeInstanceGrantedRulesRequest. # noqa: E501
|
|
182
|
+
:type: int
|
|
183
|
+
"""
|
|
184
|
+
|
|
185
|
+
self._page_size = page_size
|
|
186
|
+
|
|
187
|
+
def to_dict(self):
|
|
188
|
+
"""Returns the model properties as a dict"""
|
|
189
|
+
result = {}
|
|
190
|
+
|
|
191
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
192
|
+
value = getattr(self, attr)
|
|
193
|
+
if isinstance(value, list):
|
|
194
|
+
result[attr] = list(map(
|
|
195
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
196
|
+
value
|
|
197
|
+
))
|
|
198
|
+
elif hasattr(value, "to_dict"):
|
|
199
|
+
result[attr] = value.to_dict()
|
|
200
|
+
elif isinstance(value, dict):
|
|
201
|
+
result[attr] = dict(map(
|
|
202
|
+
lambda item: (item[0], item[1].to_dict())
|
|
203
|
+
if hasattr(item[1], "to_dict") else item,
|
|
204
|
+
value.items()
|
|
205
|
+
))
|
|
206
|
+
else:
|
|
207
|
+
result[attr] = value
|
|
208
|
+
if issubclass(DescribeInstanceGrantedRulesRequest, dict):
|
|
209
|
+
for key, value in self.items():
|
|
210
|
+
result[key] = value
|
|
211
|
+
|
|
212
|
+
return result
|
|
213
|
+
|
|
214
|
+
def to_str(self):
|
|
215
|
+
"""Returns the string representation of the model"""
|
|
216
|
+
return pprint.pformat(self.to_dict())
|
|
217
|
+
|
|
218
|
+
def __repr__(self):
|
|
219
|
+
"""For `print` and `pprint`"""
|
|
220
|
+
return self.to_str()
|
|
221
|
+
|
|
222
|
+
def __eq__(self, other):
|
|
223
|
+
"""Returns true if both objects are equal"""
|
|
224
|
+
if not isinstance(other, DescribeInstanceGrantedRulesRequest):
|
|
225
|
+
return False
|
|
226
|
+
|
|
227
|
+
return self.to_dict() == other.to_dict()
|
|
228
|
+
|
|
229
|
+
def __ne__(self, other):
|
|
230
|
+
"""Returns true if both objects are not equal"""
|
|
231
|
+
if not isinstance(other, DescribeInstanceGrantedRulesRequest):
|
|
232
|
+
return True
|
|
233
|
+
|
|
234
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
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 DescribeInstanceGrantedRulesResponse(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
|
+
'cen_grant_rules': 'list[CenGrantRuleForDescribeInstanceGrantedRulesOutput]',
|
|
37
|
+
'page_number': 'int',
|
|
38
|
+
'page_size': 'int',
|
|
39
|
+
'total_count': 'int'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'cen_grant_rules': 'CenGrantRules',
|
|
44
|
+
'page_number': 'PageNumber',
|
|
45
|
+
'page_size': 'PageSize',
|
|
46
|
+
'total_count': 'TotalCount'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, cen_grant_rules=None, page_number=None, page_size=None, total_count=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DescribeInstanceGrantedRulesResponse - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._cen_grant_rules = None
|
|
56
|
+
self._page_number = None
|
|
57
|
+
self._page_size = None
|
|
58
|
+
self._total_count = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
if cen_grant_rules is not None:
|
|
62
|
+
self.cen_grant_rules = cen_grant_rules
|
|
63
|
+
if page_number is not None:
|
|
64
|
+
self.page_number = page_number
|
|
65
|
+
if page_size is not None:
|
|
66
|
+
self.page_size = page_size
|
|
67
|
+
if total_count is not None:
|
|
68
|
+
self.total_count = total_count
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def cen_grant_rules(self):
|
|
72
|
+
"""Gets the cen_grant_rules of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
:return: The cen_grant_rules of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
76
|
+
:rtype: list[CenGrantRuleForDescribeInstanceGrantedRulesOutput]
|
|
77
|
+
"""
|
|
78
|
+
return self._cen_grant_rules
|
|
79
|
+
|
|
80
|
+
@cen_grant_rules.setter
|
|
81
|
+
def cen_grant_rules(self, cen_grant_rules):
|
|
82
|
+
"""Sets the cen_grant_rules of this DescribeInstanceGrantedRulesResponse.
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
:param cen_grant_rules: The cen_grant_rules of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
86
|
+
:type: list[CenGrantRuleForDescribeInstanceGrantedRulesOutput]
|
|
87
|
+
"""
|
|
88
|
+
|
|
89
|
+
self._cen_grant_rules = cen_grant_rules
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def page_number(self):
|
|
93
|
+
"""Gets the page_number of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
:return: The page_number of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
97
|
+
:rtype: int
|
|
98
|
+
"""
|
|
99
|
+
return self._page_number
|
|
100
|
+
|
|
101
|
+
@page_number.setter
|
|
102
|
+
def page_number(self, page_number):
|
|
103
|
+
"""Sets the page_number of this DescribeInstanceGrantedRulesResponse.
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
:param page_number: The page_number of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
107
|
+
:type: int
|
|
108
|
+
"""
|
|
109
|
+
|
|
110
|
+
self._page_number = page_number
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def page_size(self):
|
|
114
|
+
"""Gets the page_size of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The page_size of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
118
|
+
:rtype: int
|
|
119
|
+
"""
|
|
120
|
+
return self._page_size
|
|
121
|
+
|
|
122
|
+
@page_size.setter
|
|
123
|
+
def page_size(self, page_size):
|
|
124
|
+
"""Sets the page_size of this DescribeInstanceGrantedRulesResponse.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param page_size: The page_size of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
128
|
+
:type: int
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
self._page_size = page_size
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def total_count(self):
|
|
135
|
+
"""Gets the total_count of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
:return: The total_count of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
139
|
+
:rtype: int
|
|
140
|
+
"""
|
|
141
|
+
return self._total_count
|
|
142
|
+
|
|
143
|
+
@total_count.setter
|
|
144
|
+
def total_count(self, total_count):
|
|
145
|
+
"""Sets the total_count of this DescribeInstanceGrantedRulesResponse.
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
:param total_count: The total_count of this DescribeInstanceGrantedRulesResponse. # noqa: E501
|
|
149
|
+
:type: int
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
self._total_count = total_count
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
result[attr] = value
|
|
175
|
+
if issubclass(DescribeInstanceGrantedRulesResponse, dict):
|
|
176
|
+
for key, value in self.items():
|
|
177
|
+
result[key] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
return pprint.pformat(self.to_dict())
|
|
184
|
+
|
|
185
|
+
def __repr__(self):
|
|
186
|
+
"""For `print` and `pprint`"""
|
|
187
|
+
return self.to_str()
|
|
188
|
+
|
|
189
|
+
def __eq__(self, other):
|
|
190
|
+
"""Returns true if both objects are equal"""
|
|
191
|
+
if not isinstance(other, DescribeInstanceGrantedRulesResponse):
|
|
192
|
+
return False
|
|
193
|
+
|
|
194
|
+
return self.to_dict() == other.to_dict()
|
|
195
|
+
|
|
196
|
+
def __ne__(self, other):
|
|
197
|
+
"""Returns true if both objects are not equal"""
|
|
198
|
+
if not isinstance(other, DescribeInstanceGrantedRulesResponse):
|
|
199
|
+
return True
|
|
200
|
+
|
|
201
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
cen
|
|
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 DetachInstanceFromCenRequest(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
|
+
'cen_id': 'str',
|
|
37
|
+
'instance_id': 'str',
|
|
38
|
+
'instance_region_id': 'str',
|
|
39
|
+
'instance_type': 'str'
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
attribute_map = {
|
|
43
|
+
'cen_id': 'CenId',
|
|
44
|
+
'instance_id': 'InstanceId',
|
|
45
|
+
'instance_region_id': 'InstanceRegionId',
|
|
46
|
+
'instance_type': 'InstanceType'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
def __init__(self, cen_id=None, instance_id=None, instance_region_id=None, instance_type=None, _configuration=None): # noqa: E501
|
|
50
|
+
"""DetachInstanceFromCenRequest - a model defined in Swagger""" # noqa: E501
|
|
51
|
+
if _configuration is None:
|
|
52
|
+
_configuration = Configuration()
|
|
53
|
+
self._configuration = _configuration
|
|
54
|
+
|
|
55
|
+
self._cen_id = None
|
|
56
|
+
self._instance_id = None
|
|
57
|
+
self._instance_region_id = None
|
|
58
|
+
self._instance_type = None
|
|
59
|
+
self.discriminator = None
|
|
60
|
+
|
|
61
|
+
self.cen_id = cen_id
|
|
62
|
+
self.instance_id = instance_id
|
|
63
|
+
self.instance_region_id = instance_region_id
|
|
64
|
+
self.instance_type = instance_type
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def cen_id(self):
|
|
68
|
+
"""Gets the cen_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
:return: The cen_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
72
|
+
:rtype: str
|
|
73
|
+
"""
|
|
74
|
+
return self._cen_id
|
|
75
|
+
|
|
76
|
+
@cen_id.setter
|
|
77
|
+
def cen_id(self, cen_id):
|
|
78
|
+
"""Sets the cen_id of this DetachInstanceFromCenRequest.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
:param cen_id: The cen_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
82
|
+
:type: str
|
|
83
|
+
"""
|
|
84
|
+
if self._configuration.client_side_validation and cen_id is None:
|
|
85
|
+
raise ValueError("Invalid value for `cen_id`, must not be `None`") # noqa: E501
|
|
86
|
+
|
|
87
|
+
self._cen_id = cen_id
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def instance_id(self):
|
|
91
|
+
"""Gets the instance_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
:return: The instance_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._instance_id
|
|
98
|
+
|
|
99
|
+
@instance_id.setter
|
|
100
|
+
def instance_id(self, instance_id):
|
|
101
|
+
"""Sets the instance_id of this DetachInstanceFromCenRequest.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:param instance_id: The instance_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
105
|
+
:type: str
|
|
106
|
+
"""
|
|
107
|
+
if self._configuration.client_side_validation and instance_id is None:
|
|
108
|
+
raise ValueError("Invalid value for `instance_id`, must not be `None`") # noqa: E501
|
|
109
|
+
|
|
110
|
+
self._instance_id = instance_id
|
|
111
|
+
|
|
112
|
+
@property
|
|
113
|
+
def instance_region_id(self):
|
|
114
|
+
"""Gets the instance_region_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
:return: The instance_region_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
118
|
+
:rtype: str
|
|
119
|
+
"""
|
|
120
|
+
return self._instance_region_id
|
|
121
|
+
|
|
122
|
+
@instance_region_id.setter
|
|
123
|
+
def instance_region_id(self, instance_region_id):
|
|
124
|
+
"""Sets the instance_region_id of this DetachInstanceFromCenRequest.
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
:param instance_region_id: The instance_region_id of this DetachInstanceFromCenRequest. # noqa: E501
|
|
128
|
+
:type: str
|
|
129
|
+
"""
|
|
130
|
+
if self._configuration.client_side_validation and instance_region_id is None:
|
|
131
|
+
raise ValueError("Invalid value for `instance_region_id`, must not be `None`") # noqa: E501
|
|
132
|
+
|
|
133
|
+
self._instance_region_id = instance_region_id
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def instance_type(self):
|
|
137
|
+
"""Gets the instance_type of this DetachInstanceFromCenRequest. # noqa: E501
|
|
138
|
+
|
|
139
|
+
|
|
140
|
+
:return: The instance_type of this DetachInstanceFromCenRequest. # noqa: E501
|
|
141
|
+
:rtype: str
|
|
142
|
+
"""
|
|
143
|
+
return self._instance_type
|
|
144
|
+
|
|
145
|
+
@instance_type.setter
|
|
146
|
+
def instance_type(self, instance_type):
|
|
147
|
+
"""Sets the instance_type of this DetachInstanceFromCenRequest.
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
:param instance_type: The instance_type of this DetachInstanceFromCenRequest. # noqa: E501
|
|
151
|
+
:type: str
|
|
152
|
+
"""
|
|
153
|
+
if self._configuration.client_side_validation and instance_type is None:
|
|
154
|
+
raise ValueError("Invalid value for `instance_type`, must not be `None`") # noqa: E501
|
|
155
|
+
|
|
156
|
+
self._instance_type = instance_type
|
|
157
|
+
|
|
158
|
+
def to_dict(self):
|
|
159
|
+
"""Returns the model properties as a dict"""
|
|
160
|
+
result = {}
|
|
161
|
+
|
|
162
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
163
|
+
value = getattr(self, attr)
|
|
164
|
+
if isinstance(value, list):
|
|
165
|
+
result[attr] = list(map(
|
|
166
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
167
|
+
value
|
|
168
|
+
))
|
|
169
|
+
elif hasattr(value, "to_dict"):
|
|
170
|
+
result[attr] = value.to_dict()
|
|
171
|
+
elif isinstance(value, dict):
|
|
172
|
+
result[attr] = dict(map(
|
|
173
|
+
lambda item: (item[0], item[1].to_dict())
|
|
174
|
+
if hasattr(item[1], "to_dict") else item,
|
|
175
|
+
value.items()
|
|
176
|
+
))
|
|
177
|
+
else:
|
|
178
|
+
result[attr] = value
|
|
179
|
+
if issubclass(DetachInstanceFromCenRequest, dict):
|
|
180
|
+
for key, value in self.items():
|
|
181
|
+
result[key] = value
|
|
182
|
+
|
|
183
|
+
return result
|
|
184
|
+
|
|
185
|
+
def to_str(self):
|
|
186
|
+
"""Returns the string representation of the model"""
|
|
187
|
+
return pprint.pformat(self.to_dict())
|
|
188
|
+
|
|
189
|
+
def __repr__(self):
|
|
190
|
+
"""For `print` and `pprint`"""
|
|
191
|
+
return self.to_str()
|
|
192
|
+
|
|
193
|
+
def __eq__(self, other):
|
|
194
|
+
"""Returns true if both objects are equal"""
|
|
195
|
+
if not isinstance(other, DetachInstanceFromCenRequest):
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
return self.to_dict() == other.to_dict()
|
|
199
|
+
|
|
200
|
+
def __ne__(self, other):
|
|
201
|
+
"""Returns true if both objects are not equal"""
|
|
202
|
+
if not isinstance(other, DetachInstanceFromCenRequest):
|
|
203
|
+
return True
|
|
204
|
+
|
|
205
|
+
return self.to_dict() != other.to_dict()
|