volcengine-python-sdk 4.0.20__py2.py3-none-any.whl → 4.0.21__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of volcengine-python-sdk might be problematic. Click here for more details.

Files changed (101) hide show
  1. volcengine_python_sdk-4.0.21.dist-info/METADATA +214 -0
  2. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/RECORD +88 -62
  3. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/WHEEL +1 -1
  4. volcenginesdkarkruntime/resources/images/images.py +1 -1
  5. volcenginesdkarkruntime/resources/responses/input_items.py +2 -2
  6. volcenginesdkarkruntime/resources/responses/responses.py +4 -1
  7. volcenginesdkarkruntime/types/images/images.py +3 -0
  8. volcenginesdkcore/api_client.py +1 -1
  9. volcenginesdkcore/configuration.py +1 -1
  10. volcenginesdkrdsmysqlv2/__init__.py +39 -25
  11. volcenginesdkrdsmysqlv2/api/rds_mysql_v2_api.py +1347 -1153
  12. volcenginesdkrdsmysqlv2/models/__init__.py +39 -25
  13. volcenginesdkrdsmysqlv2/models/address_for_describe_db_instance_endpoints_output.py +305 -0
  14. volcenginesdkrdsmysqlv2/models/allow_list_for_describe_allow_lists_output.py +27 -1
  15. volcenginesdkrdsmysqlv2/models/basic_info_for_describe_db_instance_detail_output.py +1 -105
  16. volcenginesdkrdsmysqlv2/models/change_object_for_sync_allow_list_output.py +331 -0
  17. volcenginesdkrdsmysqlv2/models/charge_detail_for_describe_db_instance_charge_detail_output.py +383 -0
  18. volcenginesdkrdsmysqlv2/models/create_db_endpoint_request.py +27 -1
  19. volcenginesdkrdsmysqlv2/models/create_db_instance_request.py +27 -1
  20. volcenginesdkrdsmysqlv2/models/create_dr_db_instance_request.py +27 -1
  21. volcenginesdkrdsmysqlv2/models/db_instance_attribute_for_describe_db_instance_attribute_output.py +825 -0
  22. volcenginesdkrdsmysqlv2/models/describe_allow_lists_request.py +29 -3
  23. volcenginesdkrdsmysqlv2/models/describe_backup_policy_response.py +53 -1
  24. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_request.py +124 -0
  25. volcenginesdkrdsmysqlv2/models/describe_db_disaster_recovery_instances_response.py +305 -0
  26. volcenginesdkrdsmysqlv2/models/{describe_db_auto_scaling_config_request.py → describe_db_instance_attribute_request.py} +9 -9
  27. volcenginesdkrdsmysqlv2/models/describe_db_instance_attribute_response.py +123 -0
  28. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_request.py +124 -0
  29. volcenginesdkrdsmysqlv2/models/describe_db_instance_charge_detail_response.py +123 -0
  30. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_request.py +124 -0
  31. volcenginesdkrdsmysqlv2/models/describe_db_instance_endpoints_response.py +123 -0
  32. volcenginesdkrdsmysqlv2/models/describe_db_instance_ha_config_request.py +124 -0
  33. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_request.py → describe_db_instance_ha_config_response.py} +36 -37
  34. volcenginesdkrdsmysqlv2/models/describe_db_instance_price_detail_response.py +29 -3
  35. volcenginesdkrdsmysqlv2/models/{describe_cross_backup_policy_request.py → describe_db_instance_tde_request.py} +9 -9
  36. volcenginesdkrdsmysqlv2/models/describe_db_instance_tde_response.py +123 -0
  37. volcenginesdkrdsmysqlv2/models/describe_db_proxy_price_detail_response.py +27 -1
  38. volcenginesdkrdsmysqlv2/models/describe_db_proxy_request.py +124 -0
  39. volcenginesdkrdsmysqlv2/models/describe_db_proxy_response.py +123 -0
  40. volcenginesdkrdsmysqlv2/models/describe_resource_usage_request.py +124 -0
  41. volcenginesdkrdsmysqlv2/models/describe_resource_usage_response.py +565 -0
  42. volcenginesdkrdsmysqlv2/models/disaster_recovery_instance_for_describe_db_disaster_recovery_instances_output.py +279 -0
  43. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_detail_output.py +27 -1
  44. volcenginesdkrdsmysqlv2/models/endpoint_for_describe_db_instance_endpoints_output.py +669 -0
  45. volcenginesdkrdsmysqlv2/models/maintenance_window_for_describe_db_instance_attribute_output.py +175 -0
  46. volcenginesdkrdsmysqlv2/models/modify_backup_policy_request.py +53 -1
  47. volcenginesdkrdsmysqlv2/models/modify_backup_policy_response.py +53 -1
  48. volcenginesdkrdsmysqlv2/models/modify_db_endpoint_request.py +53 -1
  49. volcenginesdkrdsmysqlv2/models/modify_db_instance_tde_request.py +281 -0
  50. volcenginesdkrdsmysqlv2/models/{modify_db_auto_scaling_config_response.py → modify_db_instance_tde_response.py} +5 -5
  51. volcenginesdkrdsmysqlv2/models/{upgrade_db_instance_kernel_version_request.py → modify_db_instance_type_request.py} +55 -29
  52. volcenginesdkrdsmysqlv2/models/{restore_to_cross_region_instance_response.py → modify_db_instance_type_response.py} +13 -13
  53. volcenginesdkrdsmysqlv2/models/node_for_describe_db_instance_ha_config_output.py +435 -0
  54. volcenginesdkrdsmysqlv2/models/{node_info_for_restore_to_cross_region_instance_input.py → node_info_for_modify_db_instance_type_input.py} +25 -25
  55. volcenginesdkrdsmysqlv2/models/{modify_db_auto_scaling_config_request.py → proxy_detail_for_describe_db_proxy_output.py} +36 -37
  56. volcenginesdkrdsmysqlv2/models/{describe_available_cross_region_response.py → proxy_node_custom_for_create_db_instance_input.py} +22 -22
  57. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_create_dr_db_instance_input.py +123 -0
  58. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_rebuild_db_instance_input.py +123 -0
  59. volcenginesdkrdsmysqlv2/models/proxy_node_custom_for_restore_to_new_instance_input.py +123 -0
  60. volcenginesdkrdsmysqlv2/models/proxy_resource_info_for_describe_db_proxy_output.py +175 -0
  61. volcenginesdkrdsmysqlv2/models/read_only_node_weight_for_describe_db_instance_endpoints_output.py +175 -0
  62. volcenginesdkrdsmysqlv2/models/rebuild_db_instance_request.py +27 -1
  63. volcenginesdkrdsmysqlv2/models/restore_to_new_instance_request.py +27 -1
  64. volcenginesdkrdsmysqlv2/models/sync_allow_list_request.py +150 -0
  65. volcenginesdkrdsmysqlv2/models/sync_allow_list_response.py +123 -0
  66. volcenginesdkrdsmysqlv2/models/{instance_tag_for_restore_to_cross_region_instance_input.py → tag_for_describe_db_instance_attribute_output.py} +13 -13
  67. volcenginesdkresourceshare/__init__.py +12 -0
  68. volcenginesdkresourceshare/api/resource_share_api.py +291 -0
  69. volcenginesdkresourceshare/models/__init__.py +12 -0
  70. volcenginesdkresourceshare/models/create_resource_share_request.py +29 -3
  71. volcenginesdkresourceshare/models/create_resource_share_response.py +29 -1
  72. volcenginesdkresourceshare/models/describe_resource_shares_request.py +31 -6
  73. volcenginesdkresourceshare/models/list_tags_for_resources_request.py +228 -0
  74. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_response.py → volcenginesdkresourceshare/models/list_tags_for_resources_response.py +53 -27
  75. volcenginesdkresourceshare/models/resource_share_for_describe_resource_shares_output.py +27 -1
  76. volcenginesdkresourceshare/models/resource_tag_for_list_tags_for_resources_output.py +201 -0
  77. volcenginesdkresourceshare/models/tag_filter_for_describe_resource_shares_input.py +149 -0
  78. volcenginesdkresourceshare/models/tag_filter_for_list_tags_for_resources_input.py +149 -0
  79. volcenginesdkresourceshare/models/tag_for_create_resource_share_input.py +149 -0
  80. volcenginesdkresourceshare/models/tag_for_describe_resource_shares_output.py +149 -0
  81. volcenginesdkresourceshare/models/tag_for_tag_resources_input.py +151 -0
  82. volcenginesdkresourceshare/models/tag_resources_request.py +176 -0
  83. volcenginesdkrdsmysqlv2/models/upgrade_db_instance_kernel_version_response.py → volcenginesdkresourceshare/models/tag_resources_response.py +6 -6
  84. volcenginesdkresourceshare/models/untag_resources_request.py +176 -0
  85. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_response.py → volcenginesdkresourceshare/models/untag_resources_response.py +6 -6
  86. volcengine_python_sdk-4.0.20.dist-info/METADATA +0 -20
  87. volcenginesdkrdsmysqlv2/models/auto_storage_scaling_config_for_restore_to_cross_region_instance_input.py +0 -175
  88. volcenginesdkrdsmysqlv2/models/charge_info_for_restore_to_cross_region_instance_input.py +0 -227
  89. volcenginesdkrdsmysqlv2/models/data_for_describe_cross_region_backup_db_instances_output.py +0 -357
  90. volcenginesdkrdsmysqlv2/models/describe_cross_backup_policy_response.py +0 -227
  91. volcenginesdkrdsmysqlv2/models/describe_cross_region_backup_db_instances_request.py +0 -279
  92. volcenginesdkrdsmysqlv2/models/describe_db_auto_scaling_config_response.py +0 -227
  93. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_request.py +0 -228
  94. volcenginesdkrdsmysqlv2/models/modify_cross_backup_policy_response.py +0 -227
  95. volcenginesdkrdsmysqlv2/models/modify_db_instance_auto_upgrade_minor_version_request.py +0 -151
  96. volcenginesdkrdsmysqlv2/models/restore_to_cross_region_instance_request.py +0 -597
  97. volcenginesdkrdsmysqlv2/models/storage_config_for_describe_db_auto_scaling_config_output.py +0 -175
  98. volcenginesdkrdsmysqlv2/models/storage_config_for_modify_db_auto_scaling_config_input.py +0 -175
  99. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/LICENSE.txt +0 -0
  100. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info/licenses}/NOTICE.md +0 -0
  101. {volcengine_python_sdk-4.0.20.dist-info → volcengine_python_sdk-4.0.21.dist-info}/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
 
3
3
  """
4
- rds_mysql_v2
4
+ resource_share
5
5
 
6
6
  No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
7
 
@@ -19,7 +19,7 @@ import six
19
19
  from volcenginesdkcore.configuration import Configuration
20
20
 
21
21
 
22
- class ModifyDBInstanceAutoUpgradeMinorVersionResponse(object):
22
+ class UntagResourcesResponse(object):
23
23
  """NOTE: This class is auto generated by the swagger code generator program.
24
24
 
25
25
  Do not edit the class manually.
@@ -39,7 +39,7 @@ class ModifyDBInstanceAutoUpgradeMinorVersionResponse(object):
39
39
  }
40
40
 
41
41
  def __init__(self, _configuration=None): # noqa: E501
42
- """ModifyDBInstanceAutoUpgradeMinorVersionResponse - a model defined in Swagger""" # noqa: E501
42
+ """UntagResourcesResponse - a model defined in Swagger""" # noqa: E501
43
43
  if _configuration is None:
44
44
  _configuration = Configuration()
45
45
  self._configuration = _configuration
@@ -66,7 +66,7 @@ class ModifyDBInstanceAutoUpgradeMinorVersionResponse(object):
66
66
  ))
67
67
  else:
68
68
  result[attr] = value
69
- if issubclass(ModifyDBInstanceAutoUpgradeMinorVersionResponse, dict):
69
+ if issubclass(UntagResourcesResponse, dict):
70
70
  for key, value in self.items():
71
71
  result[key] = value
72
72
 
@@ -82,14 +82,14 @@ class ModifyDBInstanceAutoUpgradeMinorVersionResponse(object):
82
82
 
83
83
  def __eq__(self, other):
84
84
  """Returns true if both objects are equal"""
85
- if not isinstance(other, ModifyDBInstanceAutoUpgradeMinorVersionResponse):
85
+ if not isinstance(other, UntagResourcesResponse):
86
86
  return False
87
87
 
88
88
  return self.to_dict() == other.to_dict()
89
89
 
90
90
  def __ne__(self, other):
91
91
  """Returns true if both objects are not equal"""
92
- if not isinstance(other, ModifyDBInstanceAutoUpgradeMinorVersionResponse):
92
+ if not isinstance(other, UntagResourcesResponse):
93
93
  return True
94
94
 
95
95
  return self.to_dict() != other.to_dict()
@@ -1,20 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: volcengine-python-sdk
3
- Version: 4.0.20
4
- Summary: Volcengine SDK for Python
5
- Home-page: https://github.com/volcengine/volcengine-python-sdk
6
- License: Apache License 2.0
7
- Platform: any
8
- License-File: LICENSE.txt
9
- License-File: NOTICE.md
10
- Requires-Dist: certifi>=2017.4.17
11
- Requires-Dist: python-dateutil>=2.1
12
- Requires-Dist: six>=1.16
13
- Requires-Dist: urllib3>=1.26.5
14
- Provides-Extra: ark
15
- Requires-Dist: pydantic<3,>=1.9.0; extra == "ark"
16
- Requires-Dist: httpx<1,>=0.23.0; extra == "ark"
17
- Requires-Dist: anyio<5,>=3.5.0; extra == "ark"
18
- Requires-Dist: cryptography>=44.0.1; extra == "ark"
19
- Requires-Dist: cached-property; python_version < "3.8" and extra == "ark"
20
-
@@ -1,175 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- rds_mysql_v2
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 volcenginesdkcore.configuration import Configuration
20
-
21
-
22
- class AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput(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
- 'enable_storage_auto_scale': 'bool',
37
- 'storage_threshold': 'int',
38
- 'storage_upper_bound': 'int'
39
- }
40
-
41
- attribute_map = {
42
- 'enable_storage_auto_scale': 'EnableStorageAutoScale',
43
- 'storage_threshold': 'StorageThreshold',
44
- 'storage_upper_bound': 'StorageUpperBound'
45
- }
46
-
47
- def __init__(self, enable_storage_auto_scale=None, storage_threshold=None, storage_upper_bound=None, _configuration=None): # noqa: E501
48
- """AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput - a model defined in Swagger""" # noqa: E501
49
- if _configuration is None:
50
- _configuration = Configuration()
51
- self._configuration = _configuration
52
-
53
- self._enable_storage_auto_scale = None
54
- self._storage_threshold = None
55
- self._storage_upper_bound = None
56
- self.discriminator = None
57
-
58
- if enable_storage_auto_scale is not None:
59
- self.enable_storage_auto_scale = enable_storage_auto_scale
60
- if storage_threshold is not None:
61
- self.storage_threshold = storage_threshold
62
- if storage_upper_bound is not None:
63
- self.storage_upper_bound = storage_upper_bound
64
-
65
- @property
66
- def enable_storage_auto_scale(self):
67
- """Gets the enable_storage_auto_scale of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
68
-
69
-
70
- :return: The enable_storage_auto_scale of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
71
- :rtype: bool
72
- """
73
- return self._enable_storage_auto_scale
74
-
75
- @enable_storage_auto_scale.setter
76
- def enable_storage_auto_scale(self, enable_storage_auto_scale):
77
- """Sets the enable_storage_auto_scale of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput.
78
-
79
-
80
- :param enable_storage_auto_scale: The enable_storage_auto_scale of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
81
- :type: bool
82
- """
83
-
84
- self._enable_storage_auto_scale = enable_storage_auto_scale
85
-
86
- @property
87
- def storage_threshold(self):
88
- """Gets the storage_threshold of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
89
-
90
-
91
- :return: The storage_threshold of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
92
- :rtype: int
93
- """
94
- return self._storage_threshold
95
-
96
- @storage_threshold.setter
97
- def storage_threshold(self, storage_threshold):
98
- """Sets the storage_threshold of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput.
99
-
100
-
101
- :param storage_threshold: The storage_threshold of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
102
- :type: int
103
- """
104
-
105
- self._storage_threshold = storage_threshold
106
-
107
- @property
108
- def storage_upper_bound(self):
109
- """Gets the storage_upper_bound of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
110
-
111
-
112
- :return: The storage_upper_bound of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
113
- :rtype: int
114
- """
115
- return self._storage_upper_bound
116
-
117
- @storage_upper_bound.setter
118
- def storage_upper_bound(self, storage_upper_bound):
119
- """Sets the storage_upper_bound of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput.
120
-
121
-
122
- :param storage_upper_bound: The storage_upper_bound of this AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput. # noqa: E501
123
- :type: int
124
- """
125
-
126
- self._storage_upper_bound = storage_upper_bound
127
-
128
- def to_dict(self):
129
- """Returns the model properties as a dict"""
130
- result = {}
131
-
132
- for attr, _ in six.iteritems(self.swagger_types):
133
- value = getattr(self, attr)
134
- if isinstance(value, list):
135
- result[attr] = list(map(
136
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
137
- value
138
- ))
139
- elif hasattr(value, "to_dict"):
140
- result[attr] = value.to_dict()
141
- elif isinstance(value, dict):
142
- result[attr] = dict(map(
143
- lambda item: (item[0], item[1].to_dict())
144
- if hasattr(item[1], "to_dict") else item,
145
- value.items()
146
- ))
147
- else:
148
- result[attr] = value
149
- if issubclass(AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput, dict):
150
- for key, value in self.items():
151
- result[key] = value
152
-
153
- return result
154
-
155
- def to_str(self):
156
- """Returns the string representation of the model"""
157
- return pprint.pformat(self.to_dict())
158
-
159
- def __repr__(self):
160
- """For `print` and `pprint`"""
161
- return self.to_str()
162
-
163
- def __eq__(self, other):
164
- """Returns true if both objects are equal"""
165
- if not isinstance(other, AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput):
166
- return False
167
-
168
- return self.to_dict() == other.to_dict()
169
-
170
- def __ne__(self, other):
171
- """Returns true if both objects are not equal"""
172
- if not isinstance(other, AutoStorageScalingConfigForRestoreToCrossRegionInstanceInput):
173
- return True
174
-
175
- return self.to_dict() != other.to_dict()
@@ -1,227 +0,0 @@
1
- # coding: utf-8
2
-
3
- """
4
- rds_mysql_v2
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 volcenginesdkcore.configuration import Configuration
20
-
21
-
22
- class ChargeInfoForRestoreToCrossRegionInstanceInput(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
- 'auto_renew': 'bool',
37
- 'charge_type': 'str',
38
- 'number': 'int',
39
- 'period': 'int',
40
- 'period_unit': 'str'
41
- }
42
-
43
- attribute_map = {
44
- 'auto_renew': 'AutoRenew',
45
- 'charge_type': 'ChargeType',
46
- 'number': 'Number',
47
- 'period': 'Period',
48
- 'period_unit': 'PeriodUnit'
49
- }
50
-
51
- def __init__(self, auto_renew=None, charge_type=None, number=None, period=None, period_unit=None, _configuration=None): # noqa: E501
52
- """ChargeInfoForRestoreToCrossRegionInstanceInput - a model defined in Swagger""" # noqa: E501
53
- if _configuration is None:
54
- _configuration = Configuration()
55
- self._configuration = _configuration
56
-
57
- self._auto_renew = None
58
- self._charge_type = None
59
- self._number = None
60
- self._period = None
61
- self._period_unit = None
62
- self.discriminator = None
63
-
64
- if auto_renew is not None:
65
- self.auto_renew = auto_renew
66
- if charge_type is not None:
67
- self.charge_type = charge_type
68
- if number is not None:
69
- self.number = number
70
- if period is not None:
71
- self.period = period
72
- if period_unit is not None:
73
- self.period_unit = period_unit
74
-
75
- @property
76
- def auto_renew(self):
77
- """Gets the auto_renew of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
78
-
79
-
80
- :return: The auto_renew of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
81
- :rtype: bool
82
- """
83
- return self._auto_renew
84
-
85
- @auto_renew.setter
86
- def auto_renew(self, auto_renew):
87
- """Sets the auto_renew of this ChargeInfoForRestoreToCrossRegionInstanceInput.
88
-
89
-
90
- :param auto_renew: The auto_renew of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
91
- :type: bool
92
- """
93
-
94
- self._auto_renew = auto_renew
95
-
96
- @property
97
- def charge_type(self):
98
- """Gets the charge_type of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
99
-
100
-
101
- :return: The charge_type of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
102
- :rtype: str
103
- """
104
- return self._charge_type
105
-
106
- @charge_type.setter
107
- def charge_type(self, charge_type):
108
- """Sets the charge_type of this ChargeInfoForRestoreToCrossRegionInstanceInput.
109
-
110
-
111
- :param charge_type: The charge_type of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
112
- :type: str
113
- """
114
-
115
- self._charge_type = charge_type
116
-
117
- @property
118
- def number(self):
119
- """Gets the number of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
120
-
121
-
122
- :return: The number of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
123
- :rtype: int
124
- """
125
- return self._number
126
-
127
- @number.setter
128
- def number(self, number):
129
- """Sets the number of this ChargeInfoForRestoreToCrossRegionInstanceInput.
130
-
131
-
132
- :param number: The number of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
133
- :type: int
134
- """
135
-
136
- self._number = number
137
-
138
- @property
139
- def period(self):
140
- """Gets the period of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
141
-
142
-
143
- :return: The period of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
144
- :rtype: int
145
- """
146
- return self._period
147
-
148
- @period.setter
149
- def period(self, period):
150
- """Sets the period of this ChargeInfoForRestoreToCrossRegionInstanceInput.
151
-
152
-
153
- :param period: The period of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
154
- :type: int
155
- """
156
-
157
- self._period = period
158
-
159
- @property
160
- def period_unit(self):
161
- """Gets the period_unit of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
162
-
163
-
164
- :return: The period_unit of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
165
- :rtype: str
166
- """
167
- return self._period_unit
168
-
169
- @period_unit.setter
170
- def period_unit(self, period_unit):
171
- """Sets the period_unit of this ChargeInfoForRestoreToCrossRegionInstanceInput.
172
-
173
-
174
- :param period_unit: The period_unit of this ChargeInfoForRestoreToCrossRegionInstanceInput. # noqa: E501
175
- :type: str
176
- """
177
-
178
- self._period_unit = period_unit
179
-
180
- def to_dict(self):
181
- """Returns the model properties as a dict"""
182
- result = {}
183
-
184
- for attr, _ in six.iteritems(self.swagger_types):
185
- value = getattr(self, attr)
186
- if isinstance(value, list):
187
- result[attr] = list(map(
188
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189
- value
190
- ))
191
- elif hasattr(value, "to_dict"):
192
- result[attr] = value.to_dict()
193
- elif isinstance(value, dict):
194
- result[attr] = dict(map(
195
- lambda item: (item[0], item[1].to_dict())
196
- if hasattr(item[1], "to_dict") else item,
197
- value.items()
198
- ))
199
- else:
200
- result[attr] = value
201
- if issubclass(ChargeInfoForRestoreToCrossRegionInstanceInput, dict):
202
- for key, value in self.items():
203
- result[key] = value
204
-
205
- return result
206
-
207
- def to_str(self):
208
- """Returns the string representation of the model"""
209
- return pprint.pformat(self.to_dict())
210
-
211
- def __repr__(self):
212
- """For `print` and `pprint`"""
213
- return self.to_str()
214
-
215
- def __eq__(self, other):
216
- """Returns true if both objects are equal"""
217
- if not isinstance(other, ChargeInfoForRestoreToCrossRegionInstanceInput):
218
- return False
219
-
220
- return self.to_dict() == other.to_dict()
221
-
222
- def __ne__(self, other):
223
- """Returns true if both objects are not equal"""
224
- if not isinstance(other, ChargeInfoForRestoreToCrossRegionInstanceInput):
225
- return True
226
-
227
- return self.to_dict() != other.to_dict()