volcengine-python-sdk 4.0.15__py2.py3-none-any.whl → 4.0.17__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.
- volcengine_python_sdk-4.0.17.dist-info/METADATA +20 -0
- {volcengine_python_sdk-4.0.15.dist-info → volcengine_python_sdk-4.0.17.dist-info}/RECORD +179 -31
- {volcengine_python_sdk-4.0.15.dist-info → volcengine_python_sdk-4.0.17.dist-info}/WHEEL +1 -1
- {volcengine_python_sdk-4.0.15.dist-info → volcengine_python_sdk-4.0.17.dist-info}/top_level.txt +2 -0
- volcenginesdkarkruntime/_client.py +1 -1
- volcenginesdkbmq/models/item_for_preview_topic_data_output.py +3 -3
- volcenginesdkcloudidentity/__init__.py +146 -0
- volcenginesdkcloudidentity/api/__init__.py +6 -0
- volcenginesdkcloudidentity/api/cloudidentity_api.py +5369 -0
- volcenginesdkcloudidentity/models/__init__.py +142 -0
- volcenginesdkcloudidentity/models/account_assignment_for_list_account_assignments_output.py +305 -0
- volcenginesdkcloudidentity/models/add_inline_policy_to_permission_set_request.py +151 -0
- volcenginesdkcloudidentity/models/add_inline_policy_to_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/add_system_policy_to_permission_set_request.py +151 -0
- volcenginesdkcloudidentity/models/add_system_policy_to_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/add_user_to_group_request.py +151 -0
- volcenginesdkcloudidentity/models/add_user_to_group_response.py +95 -0
- volcenginesdkcloudidentity/models/attach_policy_to_user_provision_request.py +151 -0
- volcenginesdkcloudidentity/models/attach_policy_to_user_provision_response.py +95 -0
- volcenginesdkcloudidentity/models/create_account_assignment_request.py +212 -0
- volcenginesdkcloudidentity/models/create_account_assignment_response.py +123 -0
- volcenginesdkcloudidentity/models/create_external_saml_identity_provider_request.py +124 -0
- volcenginesdkcloudidentity/models/create_external_saml_identity_provider_response.py +227 -0
- volcenginesdkcloudidentity/models/create_group_request.py +219 -0
- volcenginesdkcloudidentity/models/create_group_response.py +305 -0
- volcenginesdkcloudidentity/models/create_permission_set_request.py +205 -0
- volcenginesdkcloudidentity/models/create_permission_set_response.py +123 -0
- volcenginesdkcloudidentity/models/create_scim_server_credential_request.py +95 -0
- volcenginesdkcloudidentity/models/create_scim_server_credential_response.py +253 -0
- volcenginesdkcloudidentity/models/create_user_provisioning_request.py +339 -0
- volcenginesdkcloudidentity/models/create_user_provisioning_response.py +383 -0
- volcenginesdkcloudidentity/models/create_user_request.py +246 -0
- volcenginesdkcloudidentity/models/create_user_response.py +331 -0
- volcenginesdkcloudidentity/models/delete_account_assignment_request.py +245 -0
- volcenginesdkcloudidentity/models/delete_account_assignment_response.py +123 -0
- volcenginesdkcloudidentity/models/delete_group_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_group_response.py +95 -0
- volcenginesdkcloudidentity/models/delete_permission_set_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/delete_scim_server_credential_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_scim_server_credential_response.py +95 -0
- volcenginesdkcloudidentity/models/delete_user_provisioning_event_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_user_provisioning_event_response.py +95 -0
- volcenginesdkcloudidentity/models/delete_user_provisioning_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_user_provisioning_response.py +95 -0
- volcenginesdkcloudidentity/models/delete_user_request.py +124 -0
- volcenginesdkcloudidentity/models/delete_user_response.py +95 -0
- volcenginesdkcloudidentity/models/deprovision_permission_set_request.py +151 -0
- volcenginesdkcloudidentity/models/deprovision_permission_set_response.py +123 -0
- volcenginesdkcloudidentity/models/detach_policy_to_user_provision_request.py +151 -0
- volcenginesdkcloudidentity/models/detach_policy_to_user_provision_response.py +95 -0
- volcenginesdkcloudidentity/models/disable_portal_login_setting_request.py +124 -0
- volcenginesdkcloudidentity/models/disable_portal_login_setting_response.py +95 -0
- volcenginesdkcloudidentity/models/disable_service_request.py +95 -0
- volcenginesdkcloudidentity/models/disable_service_response.py +95 -0
- volcenginesdkcloudidentity/models/enable_portal_login_setting_request.py +124 -0
- volcenginesdkcloudidentity/models/enable_portal_login_setting_response.py +95 -0
- volcenginesdkcloudidentity/models/enable_service_request.py +95 -0
- volcenginesdkcloudidentity/models/enable_service_response.py +95 -0
- volcenginesdkcloudidentity/models/get_external_saml_identity_provider_request.py +95 -0
- volcenginesdkcloudidentity/models/get_external_saml_identity_provider_response.py +227 -0
- volcenginesdkcloudidentity/models/get_group_request.py +124 -0
- volcenginesdkcloudidentity/models/get_group_response.py +305 -0
- volcenginesdkcloudidentity/models/get_permission_set_request.py +124 -0
- volcenginesdkcloudidentity/models/get_permission_set_response.py +279 -0
- volcenginesdkcloudidentity/models/get_portal_login_config_request.py +95 -0
- volcenginesdkcloudidentity/models/get_portal_login_config_response.py +175 -0
- volcenginesdkcloudidentity/models/get_saml_service_provider_request.py +95 -0
- volcenginesdkcloudidentity/models/get_saml_service_provider_response.py +175 -0
- volcenginesdkcloudidentity/models/get_service_status_request.py +95 -0
- volcenginesdkcloudidentity/models/get_service_status_response.py +149 -0
- volcenginesdkcloudidentity/models/get_task_status_request.py +124 -0
- volcenginesdkcloudidentity/models/get_task_status_response.py +227 -0
- volcenginesdkcloudidentity/models/get_user_provisioning_request.py +124 -0
- volcenginesdkcloudidentity/models/get_user_provisioning_response.py +435 -0
- volcenginesdkcloudidentity/models/get_user_request.py +124 -0
- volcenginesdkcloudidentity/models/get_user_response.py +357 -0
- volcenginesdkcloudidentity/models/group_for_list_groups_output.py +305 -0
- volcenginesdkcloudidentity/models/idp_certificate_for_create_external_saml_identity_provider_output.py +149 -0
- volcenginesdkcloudidentity/models/idp_certificate_for_get_external_saml_identity_provider_output.py +149 -0
- volcenginesdkcloudidentity/models/instance_for_get_service_status_output.py +227 -0
- volcenginesdkcloudidentity/models/list_account_assignments_request.py +260 -0
- volcenginesdkcloudidentity/models/list_account_assignments_response.py +201 -0
- volcenginesdkcloudidentity/models/list_group_members_request.py +208 -0
- volcenginesdkcloudidentity/models/list_group_members_response.py +201 -0
- volcenginesdkcloudidentity/models/list_groups_request.py +208 -0
- volcenginesdkcloudidentity/models/list_groups_response.py +201 -0
- volcenginesdkcloudidentity/models/list_permission_policies_in_permission_set_request.py +209 -0
- volcenginesdkcloudidentity/models/list_permission_policies_in_permission_set_response.py +201 -0
- volcenginesdkcloudidentity/models/list_permission_set_provisionings_request.py +234 -0
- volcenginesdkcloudidentity/models/list_permission_set_provisionings_response.py +201 -0
- volcenginesdkcloudidentity/models/list_permission_sets_request.py +210 -0
- volcenginesdkcloudidentity/models/list_permission_sets_response.py +201 -0
- volcenginesdkcloudidentity/models/list_portal_login_settings_request.py +95 -0
- volcenginesdkcloudidentity/models/list_portal_login_settings_response.py +123 -0
- volcenginesdkcloudidentity/models/list_scim_server_credentials_request.py +95 -0
- volcenginesdkcloudidentity/models/list_scim_server_credentials_response.py +123 -0
- volcenginesdkcloudidentity/models/list_tasks_request.py +270 -0
- volcenginesdkcloudidentity/models/list_tasks_response.py +201 -0
- volcenginesdkcloudidentity/models/list_user_provisioning_events_request.py +209 -0
- volcenginesdkcloudidentity/models/list_user_provisioning_events_response.py +201 -0
- volcenginesdkcloudidentity/models/list_user_provisionings_request.py +175 -0
- volcenginesdkcloudidentity/models/list_user_provisionings_response.py +201 -0
- volcenginesdkcloudidentity/models/list_users_request.py +243 -0
- volcenginesdkcloudidentity/models/list_users_response.py +201 -0
- volcenginesdkcloudidentity/models/member_for_list_group_members_output.py +331 -0
- volcenginesdkcloudidentity/models/permission_policy_for_list_permission_policies_in_permission_set_output.py +201 -0
- volcenginesdkcloudidentity/models/permission_set_for_list_permission_sets_output.py +305 -0
- volcenginesdkcloudidentity/models/permission_set_provisioning_for_list_permission_set_provisionings_output.py +279 -0
- volcenginesdkcloudidentity/models/portal_login_setting_for_list_portal_login_settings_output.py +149 -0
- volcenginesdkcloudidentity/models/provision_permission_set_request.py +151 -0
- volcenginesdkcloudidentity/models/provision_permission_set_response.py +123 -0
- volcenginesdkcloudidentity/models/remove_permission_policy_from_permission_set_request.py +184 -0
- volcenginesdkcloudidentity/models/remove_permission_policy_from_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/remove_user_from_group_request.py +151 -0
- volcenginesdkcloudidentity/models/remove_user_from_group_response.py +95 -0
- volcenginesdkcloudidentity/models/reset_password_request.py +210 -0
- volcenginesdkcloudidentity/models/reset_password_response.py +123 -0
- volcenginesdkcloudidentity/models/retry_user_provisioning_event_request.py +124 -0
- volcenginesdkcloudidentity/models/retry_user_provisioning_event_response.py +95 -0
- volcenginesdkcloudidentity/models/scim_server_credential_for_list_scim_server_credentials_output.py +227 -0
- volcenginesdkcloudidentity/models/task_for_list_tasks_output.py +409 -0
- volcenginesdkcloudidentity/models/update_group_request.py +182 -0
- volcenginesdkcloudidentity/models/update_group_response.py +95 -0
- volcenginesdkcloudidentity/models/update_inline_policy_to_permission_set_request.py +151 -0
- volcenginesdkcloudidentity/models/update_inline_policy_to_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/update_instance_name_request.py +124 -0
- volcenginesdkcloudidentity/models/update_instance_name_response.py +95 -0
- volcenginesdkcloudidentity/models/update_permission_set_request.py +205 -0
- volcenginesdkcloudidentity/models/update_permission_set_response.py +95 -0
- volcenginesdkcloudidentity/models/update_user_request.py +272 -0
- volcenginesdkcloudidentity/models/update_user_response.py +95 -0
- volcenginesdkcloudidentity/models/user_for_list_users_output.py +331 -0
- volcenginesdkcloudidentity/models/user_provisioning_event_for_list_user_provisioning_events_output.py +409 -0
- volcenginesdkcloudidentity/models/user_provisioning_for_list_user_provisionings_output.py +435 -0
- volcenginesdkcore/api_client.py +1 -1
- volcenginesdkcore/auth/providers/sts_provider.py +1 -1
- volcenginesdkcore/configuration.py +1 -1
- volcenginesdkcore/endpoint/providers/default_provider.py +6 -0
- volcenginesdkdms/__init__.py +6 -0
- volcenginesdkdms/api/dms_api.py +97 -0
- volcenginesdkdms/models/__init__.py +6 -0
- volcenginesdkdms/models/basic_config_for_create_data_migrate_task_input.py +53 -7
- volcenginesdkdms/models/basic_config_for_query_data_migrate_task_output.py +53 -1
- volcenginesdkdms/models/delete_data_migrate_task_request.py +150 -0
- volcenginesdkdms/models/delete_data_migrate_task_response.py +95 -0
- volcenginesdkdms/models/increase_setting_for_create_data_migrate_task_input.py +2 -2
- volcenginesdkdms/models/object_migration_policy_for_create_data_migrate_task_input.py +175 -0
- volcenginesdkdms/models/object_migration_policy_for_query_data_migrate_task_output.py +175 -0
- volcenginesdkdms/models/offline_migration_policy_for_create_data_migrate_task_input.py +149 -0
- volcenginesdkdms/models/offline_migration_policy_for_query_data_migrate_task_output.py +149 -0
- volcenginesdkgraph/__init__.py +8 -0
- volcenginesdkgraph/models/__init__.py +8 -0
- volcenginesdkgraph/models/alter_table_request.py +108 -4
- volcenginesdkgraph/models/get_table_response.py +211 -3
- volcenginesdkgraph/models/get_version_set_and_components_info_request.py +29 -3
- volcenginesdkgraph/models/gremlin_quota_config_for_add_tables_input.py +27 -1
- volcenginesdkgraph/models/gremlin_quota_config_for_get_table_output.py +201 -0
- volcenginesdkgraph/models/gremlin_quota_config_for_get_table_quota_output.py +27 -1
- volcenginesdkgraph/models/idc_replica_num_for_alter_table_input.py +149 -0
- volcenginesdkgraph/models/idc_replica_num_for_get_table_output.py +149 -0
- volcenginesdkgraph/models/idc_ro_num_for_alter_table_input.py +149 -0
- volcenginesdkgraph/models/idc_ro_num_for_get_table_output.py +149 -0
- volcenginesdkgraph/models/io_qos_options_for_get_table_output.py +201 -0
- volcenginesdkgraph/models/psm_quota_config_for_add_tables_input.py +53 -1
- volcenginesdkgraph/models/psm_quota_config_for_get_table_output.py +227 -0
- volcenginesdkgraph/models/psm_quota_config_for_get_table_quota_output.py +53 -1
- volcenginesdkgraph/models/table_quota_for_get_table_output.py +149 -0
- volcenginesdklivesaas/models/line_detail_for_get_streams_api_output.py +12 -12
- volcenginesdkllmshield/__init__.py +82 -0
- volcenginesdkllmshield/api/__init__.py +4 -0
- volcenginesdkllmshield/api/llm_shield_sdk_v2.py +470 -0
- volcenginesdkllmshield/models/__init__.py +20 -0
- volcenginesdkllmshield/models/llm_shield_sign.py +159 -0
- volcenginesdkwafruntime/__init__.py +4 -2
- volcenginesdkwafruntime/api/waf_runtime_api.py +7 -3
- volcenginesdkwafruntime/models/llm_stream_session.py +4 -2
- volcengine_python_sdk-4.0.15.dist-info/METADATA +0 -21
- {volcengine_python_sdk-4.0.15.dist-info → volcengine_python_sdk-4.0.17.dist-info}/LICENSE.txt +0 -0
- {volcengine_python_sdk-4.0.15.dist-info → volcengine_python_sdk-4.0.17.dist-info}/NOTICE.md +0 -0
|
@@ -36,6 +36,8 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
36
36
|
'bandwidth': 'int',
|
|
37
37
|
'enable_range_check': 'bool',
|
|
38
38
|
'failed_num_to_abort': 'int',
|
|
39
|
+
'object_migration_policy': 'ObjectMigrationPolicyForCreateDataMigrateTaskInput',
|
|
40
|
+
'offline_migration_policy': 'OfflineMigrationPolicyForCreateDataMigrateTaskInput',
|
|
39
41
|
'overwrite_policy': 'str',
|
|
40
42
|
'source_type': 'str',
|
|
41
43
|
'storage_class': 'str',
|
|
@@ -46,13 +48,15 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
46
48
|
'bandwidth': 'Bandwidth',
|
|
47
49
|
'enable_range_check': 'EnableRangeCheck',
|
|
48
50
|
'failed_num_to_abort': 'FailedNumToAbort',
|
|
51
|
+
'object_migration_policy': 'ObjectMigrationPolicy',
|
|
52
|
+
'offline_migration_policy': 'OfflineMigrationPolicy',
|
|
49
53
|
'overwrite_policy': 'OverwritePolicy',
|
|
50
54
|
'source_type': 'SourceType',
|
|
51
55
|
'storage_class': 'StorageClass',
|
|
52
56
|
'task_name': 'TaskName'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, bandwidth=None, enable_range_check=None, failed_num_to_abort=None, overwrite_policy=None, source_type=None, storage_class=None, task_name=None, _configuration=None): # noqa: E501
|
|
59
|
+
def __init__(self, bandwidth=None, enable_range_check=None, failed_num_to_abort=None, object_migration_policy=None, offline_migration_policy=None, overwrite_policy=None, source_type=None, storage_class=None, task_name=None, _configuration=None): # noqa: E501
|
|
56
60
|
"""BasicConfigForCreateDataMigrateTaskInput - a model defined in Swagger""" # noqa: E501
|
|
57
61
|
if _configuration is None:
|
|
58
62
|
_configuration = Configuration()
|
|
@@ -61,6 +65,8 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
61
65
|
self._bandwidth = None
|
|
62
66
|
self._enable_range_check = None
|
|
63
67
|
self._failed_num_to_abort = None
|
|
68
|
+
self._object_migration_policy = None
|
|
69
|
+
self._offline_migration_policy = None
|
|
64
70
|
self._overwrite_policy = None
|
|
65
71
|
self._source_type = None
|
|
66
72
|
self._storage_class = None
|
|
@@ -73,6 +79,10 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
73
79
|
self.enable_range_check = enable_range_check
|
|
74
80
|
if failed_num_to_abort is not None:
|
|
75
81
|
self.failed_num_to_abort = failed_num_to_abort
|
|
82
|
+
if object_migration_policy is not None:
|
|
83
|
+
self.object_migration_policy = object_migration_policy
|
|
84
|
+
if offline_migration_policy is not None:
|
|
85
|
+
self.offline_migration_policy = offline_migration_policy
|
|
76
86
|
if overwrite_policy is not None:
|
|
77
87
|
self.overwrite_policy = overwrite_policy
|
|
78
88
|
if source_type is not None:
|
|
@@ -100,12 +110,6 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
100
110
|
:param bandwidth: The bandwidth of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
101
111
|
:type: int
|
|
102
112
|
"""
|
|
103
|
-
if (self._configuration.client_side_validation and
|
|
104
|
-
bandwidth is not None and bandwidth > 1073741824): # noqa: E501
|
|
105
|
-
raise ValueError("Invalid value for `bandwidth`, must be a value less than or equal to `1073741824`") # noqa: E501
|
|
106
|
-
if (self._configuration.client_side_validation and
|
|
107
|
-
bandwidth is not None and bandwidth < 1): # noqa: E501
|
|
108
|
-
raise ValueError("Invalid value for `bandwidth`, must be a value greater than or equal to `1`") # noqa: E501
|
|
109
113
|
|
|
110
114
|
self._bandwidth = bandwidth
|
|
111
115
|
|
|
@@ -154,6 +158,48 @@ class BasicConfigForCreateDataMigrateTaskInput(object):
|
|
|
154
158
|
|
|
155
159
|
self._failed_num_to_abort = failed_num_to_abort
|
|
156
160
|
|
|
161
|
+
@property
|
|
162
|
+
def object_migration_policy(self):
|
|
163
|
+
"""Gets the object_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
:return: The object_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
167
|
+
:rtype: ObjectMigrationPolicyForCreateDataMigrateTaskInput
|
|
168
|
+
"""
|
|
169
|
+
return self._object_migration_policy
|
|
170
|
+
|
|
171
|
+
@object_migration_policy.setter
|
|
172
|
+
def object_migration_policy(self, object_migration_policy):
|
|
173
|
+
"""Sets the object_migration_policy of this BasicConfigForCreateDataMigrateTaskInput.
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
:param object_migration_policy: The object_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
177
|
+
:type: ObjectMigrationPolicyForCreateDataMigrateTaskInput
|
|
178
|
+
"""
|
|
179
|
+
|
|
180
|
+
self._object_migration_policy = object_migration_policy
|
|
181
|
+
|
|
182
|
+
@property
|
|
183
|
+
def offline_migration_policy(self):
|
|
184
|
+
"""Gets the offline_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
:return: The offline_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
188
|
+
:rtype: OfflineMigrationPolicyForCreateDataMigrateTaskInput
|
|
189
|
+
"""
|
|
190
|
+
return self._offline_migration_policy
|
|
191
|
+
|
|
192
|
+
@offline_migration_policy.setter
|
|
193
|
+
def offline_migration_policy(self, offline_migration_policy):
|
|
194
|
+
"""Sets the offline_migration_policy of this BasicConfigForCreateDataMigrateTaskInput.
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
:param offline_migration_policy: The offline_migration_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
198
|
+
:type: OfflineMigrationPolicyForCreateDataMigrateTaskInput
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
self._offline_migration_policy = offline_migration_policy
|
|
202
|
+
|
|
157
203
|
@property
|
|
158
204
|
def overwrite_policy(self):
|
|
159
205
|
"""Gets the overwrite_policy of this BasicConfigForCreateDataMigrateTaskInput. # noqa: E501
|
|
@@ -36,6 +36,8 @@ class BasicConfigForQueryDataMigrateTaskOutput(object):
|
|
|
36
36
|
'bandwidth': 'int',
|
|
37
37
|
'enable_range_check': 'bool',
|
|
38
38
|
'failed_num_to_abort': 'int',
|
|
39
|
+
'object_migration_policy': 'ObjectMigrationPolicyForQueryDataMigrateTaskOutput',
|
|
40
|
+
'offline_migration_policy': 'OfflineMigrationPolicyForQueryDataMigrateTaskOutput',
|
|
39
41
|
'overwrite_policy': 'str',
|
|
40
42
|
'source_type': 'str',
|
|
41
43
|
'storage_class': 'str',
|
|
@@ -46,13 +48,15 @@ class BasicConfigForQueryDataMigrateTaskOutput(object):
|
|
|
46
48
|
'bandwidth': 'Bandwidth',
|
|
47
49
|
'enable_range_check': 'EnableRangeCheck',
|
|
48
50
|
'failed_num_to_abort': 'FailedNumToAbort',
|
|
51
|
+
'object_migration_policy': 'ObjectMigrationPolicy',
|
|
52
|
+
'offline_migration_policy': 'OfflineMigrationPolicy',
|
|
49
53
|
'overwrite_policy': 'OverwritePolicy',
|
|
50
54
|
'source_type': 'SourceType',
|
|
51
55
|
'storage_class': 'StorageClass',
|
|
52
56
|
'task_name': 'TaskName'
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
def __init__(self, bandwidth=None, enable_range_check=None, failed_num_to_abort=None, overwrite_policy=None, source_type=None, storage_class=None, task_name=None, _configuration=None): # noqa: E501
|
|
59
|
+
def __init__(self, bandwidth=None, enable_range_check=None, failed_num_to_abort=None, object_migration_policy=None, offline_migration_policy=None, overwrite_policy=None, source_type=None, storage_class=None, task_name=None, _configuration=None): # noqa: E501
|
|
56
60
|
"""BasicConfigForQueryDataMigrateTaskOutput - a model defined in Swagger""" # noqa: E501
|
|
57
61
|
if _configuration is None:
|
|
58
62
|
_configuration = Configuration()
|
|
@@ -61,6 +65,8 @@ class BasicConfigForQueryDataMigrateTaskOutput(object):
|
|
|
61
65
|
self._bandwidth = None
|
|
62
66
|
self._enable_range_check = None
|
|
63
67
|
self._failed_num_to_abort = None
|
|
68
|
+
self._object_migration_policy = None
|
|
69
|
+
self._offline_migration_policy = None
|
|
64
70
|
self._overwrite_policy = None
|
|
65
71
|
self._source_type = None
|
|
66
72
|
self._storage_class = None
|
|
@@ -73,6 +79,10 @@ class BasicConfigForQueryDataMigrateTaskOutput(object):
|
|
|
73
79
|
self.enable_range_check = enable_range_check
|
|
74
80
|
if failed_num_to_abort is not None:
|
|
75
81
|
self.failed_num_to_abort = failed_num_to_abort
|
|
82
|
+
if object_migration_policy is not None:
|
|
83
|
+
self.object_migration_policy = object_migration_policy
|
|
84
|
+
if offline_migration_policy is not None:
|
|
85
|
+
self.offline_migration_policy = offline_migration_policy
|
|
76
86
|
if overwrite_policy is not None:
|
|
77
87
|
self.overwrite_policy = overwrite_policy
|
|
78
88
|
if source_type is not None:
|
|
@@ -145,6 +155,48 @@ class BasicConfigForQueryDataMigrateTaskOutput(object):
|
|
|
145
155
|
|
|
146
156
|
self._failed_num_to_abort = failed_num_to_abort
|
|
147
157
|
|
|
158
|
+
@property
|
|
159
|
+
def object_migration_policy(self):
|
|
160
|
+
"""Gets the object_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
:return: The object_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
164
|
+
:rtype: ObjectMigrationPolicyForQueryDataMigrateTaskOutput
|
|
165
|
+
"""
|
|
166
|
+
return self._object_migration_policy
|
|
167
|
+
|
|
168
|
+
@object_migration_policy.setter
|
|
169
|
+
def object_migration_policy(self, object_migration_policy):
|
|
170
|
+
"""Sets the object_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
:param object_migration_policy: The object_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
174
|
+
:type: ObjectMigrationPolicyForQueryDataMigrateTaskOutput
|
|
175
|
+
"""
|
|
176
|
+
|
|
177
|
+
self._object_migration_policy = object_migration_policy
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def offline_migration_policy(self):
|
|
181
|
+
"""Gets the offline_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
:return: The offline_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
185
|
+
:rtype: OfflineMigrationPolicyForQueryDataMigrateTaskOutput
|
|
186
|
+
"""
|
|
187
|
+
return self._offline_migration_policy
|
|
188
|
+
|
|
189
|
+
@offline_migration_policy.setter
|
|
190
|
+
def offline_migration_policy(self, offline_migration_policy):
|
|
191
|
+
"""Sets the offline_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput.
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
:param offline_migration_policy: The offline_migration_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
195
|
+
:type: OfflineMigrationPolicyForQueryDataMigrateTaskOutput
|
|
196
|
+
"""
|
|
197
|
+
|
|
198
|
+
self._offline_migration_policy = offline_migration_policy
|
|
199
|
+
|
|
148
200
|
@property
|
|
149
201
|
def overwrite_policy(self):
|
|
150
202
|
"""Gets the overwrite_policy of this BasicConfigForQueryDataMigrateTaskOutput. # noqa: E501
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
dms
|
|
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 DeleteDataMigrateTaskRequest(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
|
+
'id': 'int',
|
|
37
|
+
'task_name': 'str'
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
attribute_map = {
|
|
41
|
+
'id': 'ID',
|
|
42
|
+
'task_name': 'TaskName'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
def __init__(self, id=None, task_name=None, _configuration=None): # noqa: E501
|
|
46
|
+
"""DeleteDataMigrateTaskRequest - a model defined in Swagger""" # noqa: E501
|
|
47
|
+
if _configuration is None:
|
|
48
|
+
_configuration = Configuration()
|
|
49
|
+
self._configuration = _configuration
|
|
50
|
+
|
|
51
|
+
self._id = None
|
|
52
|
+
self._task_name = None
|
|
53
|
+
self.discriminator = None
|
|
54
|
+
|
|
55
|
+
self.id = id
|
|
56
|
+
if task_name is not None:
|
|
57
|
+
self.task_name = task_name
|
|
58
|
+
|
|
59
|
+
@property
|
|
60
|
+
def id(self):
|
|
61
|
+
"""Gets the id of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
:return: The id of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
65
|
+
:rtype: int
|
|
66
|
+
"""
|
|
67
|
+
return self._id
|
|
68
|
+
|
|
69
|
+
@id.setter
|
|
70
|
+
def id(self, id):
|
|
71
|
+
"""Sets the id of this DeleteDataMigrateTaskRequest.
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
:param id: The id of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
75
|
+
:type: int
|
|
76
|
+
"""
|
|
77
|
+
if self._configuration.client_side_validation and id is None:
|
|
78
|
+
raise ValueError("Invalid value for `id`, must not be `None`") # noqa: E501
|
|
79
|
+
|
|
80
|
+
self._id = id
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def task_name(self):
|
|
84
|
+
"""Gets the task_name of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
:return: The task_name of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
88
|
+
:rtype: str
|
|
89
|
+
"""
|
|
90
|
+
return self._task_name
|
|
91
|
+
|
|
92
|
+
@task_name.setter
|
|
93
|
+
def task_name(self, task_name):
|
|
94
|
+
"""Sets the task_name of this DeleteDataMigrateTaskRequest.
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
:param task_name: The task_name of this DeleteDataMigrateTaskRequest. # noqa: E501
|
|
98
|
+
:type: str
|
|
99
|
+
"""
|
|
100
|
+
|
|
101
|
+
self._task_name = task_name
|
|
102
|
+
|
|
103
|
+
def to_dict(self):
|
|
104
|
+
"""Returns the model properties as a dict"""
|
|
105
|
+
result = {}
|
|
106
|
+
|
|
107
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
108
|
+
value = getattr(self, attr)
|
|
109
|
+
if isinstance(value, list):
|
|
110
|
+
result[attr] = list(map(
|
|
111
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
112
|
+
value
|
|
113
|
+
))
|
|
114
|
+
elif hasattr(value, "to_dict"):
|
|
115
|
+
result[attr] = value.to_dict()
|
|
116
|
+
elif isinstance(value, dict):
|
|
117
|
+
result[attr] = dict(map(
|
|
118
|
+
lambda item: (item[0], item[1].to_dict())
|
|
119
|
+
if hasattr(item[1], "to_dict") else item,
|
|
120
|
+
value.items()
|
|
121
|
+
))
|
|
122
|
+
else:
|
|
123
|
+
result[attr] = value
|
|
124
|
+
if issubclass(DeleteDataMigrateTaskRequest, dict):
|
|
125
|
+
for key, value in self.items():
|
|
126
|
+
result[key] = value
|
|
127
|
+
|
|
128
|
+
return result
|
|
129
|
+
|
|
130
|
+
def to_str(self):
|
|
131
|
+
"""Returns the string representation of the model"""
|
|
132
|
+
return pprint.pformat(self.to_dict())
|
|
133
|
+
|
|
134
|
+
def __repr__(self):
|
|
135
|
+
"""For `print` and `pprint`"""
|
|
136
|
+
return self.to_str()
|
|
137
|
+
|
|
138
|
+
def __eq__(self, other):
|
|
139
|
+
"""Returns true if both objects are equal"""
|
|
140
|
+
if not isinstance(other, DeleteDataMigrateTaskRequest):
|
|
141
|
+
return False
|
|
142
|
+
|
|
143
|
+
return self.to_dict() == other.to_dict()
|
|
144
|
+
|
|
145
|
+
def __ne__(self, other):
|
|
146
|
+
"""Returns true if both objects are not equal"""
|
|
147
|
+
if not isinstance(other, DeleteDataMigrateTaskRequest):
|
|
148
|
+
return True
|
|
149
|
+
|
|
150
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
dms
|
|
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 DeleteDataMigrateTaskResponse(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
|
+
"""DeleteDataMigrateTaskResponse - 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(DeleteDataMigrateTaskResponse, 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, DeleteDataMigrateTaskResponse):
|
|
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, DeleteDataMigrateTaskResponse):
|
|
93
|
+
return True
|
|
94
|
+
|
|
95
|
+
return self.to_dict() != other.to_dict()
|
|
@@ -103,8 +103,8 @@ class IncreaseSettingForCreateDataMigrateTaskInput(object):
|
|
|
103
103
|
:type: int
|
|
104
104
|
"""
|
|
105
105
|
if (self._configuration.client_side_validation and
|
|
106
|
-
times is not None and times >
|
|
107
|
-
raise ValueError("Invalid value for `times`, must be a value less than or equal to `
|
|
106
|
+
times is not None and times > 100): # noqa: E501
|
|
107
|
+
raise ValueError("Invalid value for `times`, must be a value less than or equal to `100`") # noqa: E501
|
|
108
108
|
if (self._configuration.client_side_validation and
|
|
109
109
|
times is not None and times < 1): # noqa: E501
|
|
110
110
|
raise ValueError("Invalid value for `times`, must be a value greater than or equal to `1`") # noqa: E501
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
dms
|
|
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 ObjectMigrationPolicyForCreateDataMigrateTaskInput(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
|
+
'sync_acl': 'bool',
|
|
37
|
+
'sync_symlink': 'bool',
|
|
38
|
+
'sync_tag': 'bool'
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
attribute_map = {
|
|
42
|
+
'sync_acl': 'SyncAcl',
|
|
43
|
+
'sync_symlink': 'SyncSymlink',
|
|
44
|
+
'sync_tag': 'SyncTag'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
def __init__(self, sync_acl=None, sync_symlink=None, sync_tag=None, _configuration=None): # noqa: E501
|
|
48
|
+
"""ObjectMigrationPolicyForCreateDataMigrateTaskInput - a model defined in Swagger""" # noqa: E501
|
|
49
|
+
if _configuration is None:
|
|
50
|
+
_configuration = Configuration()
|
|
51
|
+
self._configuration = _configuration
|
|
52
|
+
|
|
53
|
+
self._sync_acl = None
|
|
54
|
+
self._sync_symlink = None
|
|
55
|
+
self._sync_tag = None
|
|
56
|
+
self.discriminator = None
|
|
57
|
+
|
|
58
|
+
if sync_acl is not None:
|
|
59
|
+
self.sync_acl = sync_acl
|
|
60
|
+
if sync_symlink is not None:
|
|
61
|
+
self.sync_symlink = sync_symlink
|
|
62
|
+
if sync_tag is not None:
|
|
63
|
+
self.sync_tag = sync_tag
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def sync_acl(self):
|
|
67
|
+
"""Gets the sync_acl of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
:return: The sync_acl of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
71
|
+
:rtype: bool
|
|
72
|
+
"""
|
|
73
|
+
return self._sync_acl
|
|
74
|
+
|
|
75
|
+
@sync_acl.setter
|
|
76
|
+
def sync_acl(self, sync_acl):
|
|
77
|
+
"""Sets the sync_acl of this ObjectMigrationPolicyForCreateDataMigrateTaskInput.
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
:param sync_acl: The sync_acl of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
81
|
+
:type: bool
|
|
82
|
+
"""
|
|
83
|
+
|
|
84
|
+
self._sync_acl = sync_acl
|
|
85
|
+
|
|
86
|
+
@property
|
|
87
|
+
def sync_symlink(self):
|
|
88
|
+
"""Gets the sync_symlink of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
:return: The sync_symlink of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
92
|
+
:rtype: bool
|
|
93
|
+
"""
|
|
94
|
+
return self._sync_symlink
|
|
95
|
+
|
|
96
|
+
@sync_symlink.setter
|
|
97
|
+
def sync_symlink(self, sync_symlink):
|
|
98
|
+
"""Sets the sync_symlink of this ObjectMigrationPolicyForCreateDataMigrateTaskInput.
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
:param sync_symlink: The sync_symlink of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
102
|
+
:type: bool
|
|
103
|
+
"""
|
|
104
|
+
|
|
105
|
+
self._sync_symlink = sync_symlink
|
|
106
|
+
|
|
107
|
+
@property
|
|
108
|
+
def sync_tag(self):
|
|
109
|
+
"""Gets the sync_tag of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
:return: The sync_tag of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
113
|
+
:rtype: bool
|
|
114
|
+
"""
|
|
115
|
+
return self._sync_tag
|
|
116
|
+
|
|
117
|
+
@sync_tag.setter
|
|
118
|
+
def sync_tag(self, sync_tag):
|
|
119
|
+
"""Sets the sync_tag of this ObjectMigrationPolicyForCreateDataMigrateTaskInput.
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
:param sync_tag: The sync_tag of this ObjectMigrationPolicyForCreateDataMigrateTaskInput. # noqa: E501
|
|
123
|
+
:type: bool
|
|
124
|
+
"""
|
|
125
|
+
|
|
126
|
+
self._sync_tag = sync_tag
|
|
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(ObjectMigrationPolicyForCreateDataMigrateTaskInput, 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, ObjectMigrationPolicyForCreateDataMigrateTaskInput):
|
|
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, ObjectMigrationPolicyForCreateDataMigrateTaskInput):
|
|
173
|
+
return True
|
|
174
|
+
|
|
175
|
+
return self.to_dict() != other.to_dict()
|