huaweicloudsdkgaussdbforopengauss 3.1.126__py2.py3-none-any.whl → 3.1.128__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.
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py +1315 -46
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py +50 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/batch_show_upgrade_candidate_versions_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_rollbacked_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/can_be_upgraded_hotfix_detail.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/configurations_result.py +339 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request.py +140 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_request_body.py +722 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_response.py +170 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_database_instance_result.py +544 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_db_role_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/create_instance_datastore_option.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/datastore_result.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request.py +168 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_request_body.py +142 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/delete_database_schema_response.py +85 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info_result.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_request.py +318 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_backups_result.py +372 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_request.py +405 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_instances_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_request.py +201 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_database_roles_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_request.py +115 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_datastores_details_response.py +112 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_request.py +260 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_flavors_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_request.py +173 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_parameter_group_templates_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_recycle_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_request.py +259 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/list_restorable_instances_details_response.py +145 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/recycle_instances_detail_result_v1.py +566 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_instance_param_group_detail_response.py +232 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_parameter_group_detail_response.py +319 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_request.py +202 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_source_instance_detail_response.py +348 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_request.py +143 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_details_response.py +373 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/show_upgrade_candidate_versions_response.py +18 -10
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_request.py +114 -0
- huaweicloudsdkgaussdbforopengauss/v3/model/sync_limit_data_response.py +203 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/METADATA +2 -2
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/RECORD +60 -10
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/LICENSE +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/WHEEL +0 -0
- {huaweicloudsdkgaussdbforopengauss-3.1.126.dist-info → huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info}/top_level.txt +0 -0
@@ -8,6 +8,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.add_instance_tags_response impor
|
|
8
8
|
from huaweicloudsdkgaussdbforopengauss.v3.model.add_tags_request_body import AddTagsRequestBody
|
9
9
|
from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_request import AllowDbPrivilegesRequest
|
10
10
|
from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_privileges_response import AllowDbPrivilegesResponse
|
11
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request import AllowDbRolePrivilegesRequest
|
12
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_request_body import AllowDbRolePrivilegesRequestBody
|
13
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.allow_db_role_privileges_response import AllowDbRolePrivilegesResponse
|
11
14
|
from huaweicloudsdkgaussdbforopengauss.v3.model.applied_histories_result import AppliedHistoriesResult
|
12
15
|
from huaweicloudsdkgaussdbforopengauss.v3.model.apply_configuration_request_body import ApplyConfigurationRequestBody
|
13
16
|
from huaweicloudsdkgaussdbforopengauss.v3.model.attach_eip_request import AttachEipRequest
|
@@ -19,13 +22,18 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.backup_policy_error_response imp
|
|
19
22
|
from huaweicloudsdkgaussdbforopengauss.v3.model.backup_policy_info import BackupPolicyInfo
|
20
23
|
from huaweicloudsdkgaussdbforopengauss.v3.model.backups import Backups
|
21
24
|
from huaweicloudsdkgaussdbforopengauss.v3.model.backups_result import BackupsResult
|
25
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_request import BatchShowUpgradeCandidateVersionsRequest
|
26
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.batch_show_upgrade_candidate_versions_response import BatchShowUpgradeCandidateVersionsResponse
|
22
27
|
from huaweicloudsdkgaussdbforopengauss.v3.model.bind_eip_request_body import BindEIPRequestBody
|
23
28
|
from huaweicloudsdkgaussdbforopengauss.v3.model.binded_eip_result import BindedEipResult
|
29
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_rollbacked_hotfix_detail import CanBeRollbackedHotfixDetail
|
30
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.can_be_upgraded_hotfix_detail import CanBeUpgradedHotfixDetail
|
24
31
|
from huaweicloudsdkgaussdbforopengauss.v3.model.cn_info_before_reduce import CnInfoBeforeReduce
|
25
32
|
from huaweicloudsdkgaussdbforopengauss.v3.model.components import Components
|
26
33
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_parameter import ConfigurationParameter
|
27
34
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_result import ConfigurationResult
|
28
35
|
from huaweicloudsdkgaussdbforopengauss.v3.model.configuration_summary import ConfigurationSummary
|
36
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.configurations_result import ConfigurationsResult
|
29
37
|
from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_request import ConfirmRestoredDataRequest
|
30
38
|
from huaweicloudsdkgaussdbforopengauss.v3.model.confirm_restored_data_response import ConfirmRestoredDataResponse
|
31
39
|
from huaweicloudsdkgaussdbforopengauss.v3.model.copy_configuration_request import CopyConfigurationRequest
|
@@ -33,16 +41,24 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.copy_configuration_response impo
|
|
33
41
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request import CreateConfigurationTemplateRequest
|
34
42
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_request_body import CreateConfigurationTemplateRequestBody
|
35
43
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_configuration_template_response import CreateConfigurationTemplateResponse
|
44
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request import CreateDatabaseInstanceRequest
|
45
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_request_body import CreateDatabaseInstanceRequestBody
|
46
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_response import CreateDatabaseInstanceResponse
|
47
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_instance_result import CreateDatabaseInstanceResult
|
36
48
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_request import CreateDatabaseRequest
|
37
49
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_response import CreateDatabaseResponse
|
38
50
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_request import CreateDatabaseSchemasRequest
|
39
51
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_database_schemas_response import CreateDatabaseSchemasResponse
|
40
52
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_request import CreateDbInstanceRequest
|
41
53
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_instance_response import CreateDbInstanceResponse
|
54
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request import CreateDbRoleRequest
|
55
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_request_body import CreateDbRoleRequestBody
|
56
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_role_response import CreateDbRoleResponse
|
42
57
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_request import CreateDbUserRequest
|
43
58
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_db_user_response import CreateDbUserResponse
|
44
59
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_request import CreateGaussDbInstanceRequest
|
45
60
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_gauss_db_instance_response import CreateGaussDbInstanceResponse
|
61
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_datastore_option import CreateInstanceDatastoreOption
|
46
62
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_request import CreateInstanceRequest
|
47
63
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_resp_item import CreateInstanceRespItem
|
48
64
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_instance_response import CreateInstanceResponse
|
@@ -60,6 +76,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_request
|
|
60
76
|
from huaweicloudsdkgaussdbforopengauss.v3.model.create_slow_log_download_response import CreateSlowLogDownloadResponse
|
61
77
|
from huaweicloudsdkgaussdbforopengauss.v3.model.data_stroe_error_response import DataStroeErrorResponse
|
62
78
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_option import DatastoreOption
|
79
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.datastore_result import DatastoreResult
|
63
80
|
from huaweicloudsdkgaussdbforopengauss.v3.model.datastores_result import DatastoresResult
|
64
81
|
from huaweicloudsdkgaussdbforopengauss.v3.model.db_user_pwd_request import DbUserPwdRequest
|
65
82
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_backup_error_response import DeleteBackupErrorResponse
|
@@ -67,6 +84,9 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.delete_configuration_request imp
|
|
67
84
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_configuration_response import DeleteConfigurationResponse
|
68
85
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_request import DeleteDatabaseRequest
|
69
86
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_response import DeleteDatabaseResponse
|
87
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request import DeleteDatabaseSchemaRequest
|
88
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_request_body import DeleteDatabaseSchemaRequestBody
|
89
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_database_schema_response import DeleteDatabaseSchemaResponse
|
70
90
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_request import DeleteInstanceRequest
|
71
91
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_response import DeleteInstanceResponse
|
72
92
|
from huaweicloudsdkgaussdbforopengauss.v3.model.delete_instance_tag_request import DeleteInstanceTagRequest
|
@@ -88,6 +108,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.flavor import Flavor
|
|
88
108
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import FlavorErrorResponse
|
89
109
|
from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
|
90
110
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody
|
111
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles import GaussDBListDatabaseRoles
|
91
112
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest
|
92
113
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation
|
93
114
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq
|
@@ -101,6 +122,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for
|
|
101
122
|
from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_with_privilege import GaussDBforOpenGaussUserWithPrivilege
|
102
123
|
from huaweicloudsdkgaussdbforopengauss.v3.model.get_restore_time_response_restore_time import GetRestoreTimeResponseRestoreTime
|
103
124
|
from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info import HotfixInfo
|
125
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_info_result import HotfixInfoResult
|
104
126
|
from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_rollback_infos import HotfixRollbackInfos
|
105
127
|
from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_upgrade_infos import HotfixUpgradeInfos
|
106
128
|
from huaweicloudsdkgaussdbforopengauss.v3.model.hotfix_version_info import HotfixVersionInfo
|
@@ -120,8 +142,11 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_applied_histories_request i
|
|
120
142
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_applied_histories_response import ListAppliedHistoriesResponse
|
121
143
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_request import ListAvailableFlavorsRequest
|
122
144
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_available_flavors_response import ListAvailableFlavorsResponse
|
145
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_request import ListBackupsDetailsRequest
|
146
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_details_response import ListBackupsDetailsResponse
|
123
147
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_request import ListBackupsRequest
|
124
148
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_response import ListBackupsResponse
|
149
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_backups_result import ListBackupsResult
|
125
150
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_request import ListBindedEipsRequest
|
126
151
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_binded_eips_response import ListBindedEipsResponse
|
127
152
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_cn_infos_before_reduce_request import ListCnInfosBeforeReduceRequest
|
@@ -132,11 +157,17 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_request
|
|
132
157
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_diff_response import ListConfigurationsDiffResponse
|
133
158
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_request import ListConfigurationsRequest
|
134
159
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_configurations_response import ListConfigurationsResponse
|
160
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_request import ListDatabaseInstancesRequest
|
161
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_instances_response import ListDatabaseInstancesResponse
|
162
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_request import ListDatabaseRolesRequest
|
163
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_roles_response import ListDatabaseRolesResponse
|
135
164
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_request import ListDatabaseSchemasRequest
|
136
165
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_database_schemas_response import ListDatabaseSchemasResponse
|
137
166
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_request import ListDatabasesRequest
|
138
167
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_databases_response import ListDatabasesResponse
|
139
168
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastore import ListDatastore
|
169
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_request import ListDatastoresDetailsRequest
|
170
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_details_response import ListDatastoresDetailsResponse
|
140
171
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_request import ListDatastoresRequest
|
141
172
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_datastores_response import ListDatastoresResponse
|
142
173
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_db_backups_request import ListDbBackupsRequest
|
@@ -151,6 +182,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_eps_quotas_response import
|
|
151
182
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_request import ListFeaturesRequest
|
152
183
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_features_response import ListFeaturesResponse
|
153
184
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavor_info import ListFlavorInfo
|
185
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_request import ListFlavorsDetailsRequest
|
186
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_details_response import ListFlavorsDetailsResponse
|
154
187
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_request import ListFlavorsRequest
|
155
188
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_flavors_response import ListFlavorsResponse
|
156
189
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_gauss_db_datastores_request import ListGaussDbDatastoresRequest
|
@@ -184,6 +217,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_respon
|
|
184
217
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_node_limit_sql_model_response_result import ListNodeLimitSqlModelResponseResult
|
185
218
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_request import ListParamGroupTemplatesRequest
|
186
219
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_param_group_templates_response import ListParamGroupTemplatesResponse
|
220
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_request import ListParameterGroupTemplatesRequest
|
221
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_parameter_group_templates_response import ListParameterGroupTemplatesResponse
|
187
222
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request import ListPluginExtensionsRequest
|
188
223
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_request_body import ListPluginExtensionsRequestBody
|
189
224
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_plugin_extensions_response import ListPluginExtensionsResponse
|
@@ -192,8 +227,12 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.list_predefined_tags_response im
|
|
192
227
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_request import ListProjectTagsRequest
|
193
228
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_project_tags_response import ListProjectTagsResponse
|
194
229
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_quota_result import ListQuotaResult
|
230
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_request import ListRecycleInstancesDetailsRequest
|
231
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_details_response import ListRecycleInstancesDetailsResponse
|
195
232
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_request import ListRecycleInstancesRequest
|
196
233
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_recycle_instances_response import ListRecycleInstancesResponse
|
234
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_request import ListRestorableInstancesDetailsRequest
|
235
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_details_response import ListRestorableInstancesDetailsResponse
|
197
236
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_request import ListRestorableInstancesRequest
|
198
237
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restorable_instances_response import ListRestorableInstancesResponse
|
199
238
|
from huaweicloudsdkgaussdbforopengauss.v3.model.list_restore_times_request import ListRestoreTimesRequest
|
@@ -255,6 +294,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.pwd_reset_request import PwdRese
|
|
255
294
|
from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_source import RecoveryBackupSource
|
256
295
|
from huaweicloudsdkgaussdbforopengauss.v3.model.recovery_backup_target import RecoveryBackupTarget
|
257
296
|
from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result import RecycleInstancesDetailResult
|
297
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_instances_detail_result_v1 import RecycleInstancesDetailResultV1
|
258
298
|
from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy import RecyclePolicy
|
259
299
|
from huaweicloudsdkgaussdbforopengauss.v3.model.recycle_policy_request_body import RecyclePolicyRequestBody
|
260
300
|
from huaweicloudsdkgaussdbforopengauss.v3.model.reset_configuration_request import ResetConfigurationRequest
|
@@ -310,6 +350,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_requ
|
|
310
350
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_configuration_response import ShowInstanceConfigurationResponse
|
311
351
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_request import ShowInstanceDiskRequest
|
312
352
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_disk_response import ShowInstanceDiskResponse
|
353
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_request import ShowInstanceParamGroupDetailRequest
|
354
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_detail_response import ShowInstanceParamGroupDetailResponse
|
313
355
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_request import ShowInstanceParamGroupRequest
|
314
356
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_param_group_response import ShowInstanceParamGroupResponse
|
315
357
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_instance_snapshot_request import ShowInstanceSnapshotRequest
|
@@ -319,14 +361,20 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.show_job_detail_response import
|
|
319
361
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_node_option import ShowLimitTaskNodeOption
|
320
362
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_request import ShowLimitTaskRequest
|
321
363
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_limit_task_response import ShowLimitTaskResponse
|
364
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_request import ShowParameterGroupDetailRequest
|
365
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_parameter_group_detail_response import ShowParameterGroupDetailResponse
|
322
366
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_request import ShowProjectQuotasRequest
|
323
367
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_project_quotas_response import ShowProjectQuotasResponse
|
324
368
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_request import ShowRecyclePolicyRequest
|
325
369
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_recycle_policy_response import ShowRecyclePolicyResponse
|
326
370
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_request import ShowSlowLogDownloadRequest
|
327
371
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_slow_log_download_response import ShowSlowLogDownloadResponse
|
372
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_request import ShowSourceInstanceDetailRequest
|
373
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_source_instance_detail_response import ShowSourceInstanceDetailResponse
|
328
374
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_request import ShowSslCertDownloadLinkRequest
|
329
375
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_ssl_cert_download_link_response import ShowSslCertDownloadLinkResponse
|
376
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_request import ShowUpgradeCandidateVersionsDetailsRequest
|
377
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_details_response import ShowUpgradeCandidateVersionsDetailsResponse
|
330
378
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_request import ShowUpgradeCandidateVersionsRequest
|
331
379
|
from huaweicloudsdkgaussdbforopengauss.v3.model.show_upgrade_candidate_versions_response import ShowUpgradeCandidateVersionsResponse
|
332
380
|
from huaweicloudsdkgaussdbforopengauss.v3.model.slow_log_download_info import SlowLogDownloadInfo
|
@@ -347,6 +395,8 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.switch_configuration_response im
|
|
347
395
|
from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request import SwitchShardRequest
|
348
396
|
from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_request_body import SwitchShardRequestBody
|
349
397
|
from huaweicloudsdkgaussdbforopengauss.v3.model.switch_shard_response import SwitchShardResponse
|
398
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_request import SyncLimitDataRequest
|
399
|
+
from huaweicloudsdkgaussdbforopengauss.v3.model.sync_limit_data_response import SyncLimitDataResponse
|
350
400
|
from huaweicloudsdkgaussdbforopengauss.v3.model.tag_result import TagResult
|
351
401
|
from huaweicloudsdkgaussdbforopengauss.v3.model.tags_option import TagsOption
|
352
402
|
from huaweicloudsdkgaussdbforopengauss.v3.model.tags_result import TagsResult
|
@@ -0,0 +1,168 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AllowDbRolePrivilegesRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_language': 'str',
|
21
|
+
'instance_id': 'str',
|
22
|
+
'body': 'AllowDbRolePrivilegesRequestBody'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'x_language': 'X-Language',
|
27
|
+
'instance_id': 'instance_id',
|
28
|
+
'body': 'body'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, x_language=None, instance_id=None, body=None):
|
32
|
+
"""AllowDbRolePrivilegesRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param x_language: 语言
|
37
|
+
:type x_language: str
|
38
|
+
:param instance_id: 实例ID。
|
39
|
+
:type instance_id: str
|
40
|
+
:param body: Body of the AllowDbRolePrivilegesRequest
|
41
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody`
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._x_language = None
|
47
|
+
self._instance_id = None
|
48
|
+
self._body = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if x_language is not None:
|
52
|
+
self.x_language = x_language
|
53
|
+
self.instance_id = instance_id
|
54
|
+
if body is not None:
|
55
|
+
self.body = body
|
56
|
+
|
57
|
+
@property
|
58
|
+
def x_language(self):
|
59
|
+
"""Gets the x_language of this AllowDbRolePrivilegesRequest.
|
60
|
+
|
61
|
+
语言
|
62
|
+
|
63
|
+
:return: The x_language of this AllowDbRolePrivilegesRequest.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._x_language
|
67
|
+
|
68
|
+
@x_language.setter
|
69
|
+
def x_language(self, x_language):
|
70
|
+
"""Sets the x_language of this AllowDbRolePrivilegesRequest.
|
71
|
+
|
72
|
+
语言
|
73
|
+
|
74
|
+
:param x_language: The x_language of this AllowDbRolePrivilegesRequest.
|
75
|
+
:type x_language: str
|
76
|
+
"""
|
77
|
+
self._x_language = x_language
|
78
|
+
|
79
|
+
@property
|
80
|
+
def instance_id(self):
|
81
|
+
"""Gets the instance_id of this AllowDbRolePrivilegesRequest.
|
82
|
+
|
83
|
+
实例ID。
|
84
|
+
|
85
|
+
:return: The instance_id of this AllowDbRolePrivilegesRequest.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._instance_id
|
89
|
+
|
90
|
+
@instance_id.setter
|
91
|
+
def instance_id(self, instance_id):
|
92
|
+
"""Sets the instance_id of this AllowDbRolePrivilegesRequest.
|
93
|
+
|
94
|
+
实例ID。
|
95
|
+
|
96
|
+
:param instance_id: The instance_id of this AllowDbRolePrivilegesRequest.
|
97
|
+
:type instance_id: str
|
98
|
+
"""
|
99
|
+
self._instance_id = instance_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def body(self):
|
103
|
+
"""Gets the body of this AllowDbRolePrivilegesRequest.
|
104
|
+
|
105
|
+
:return: The body of this AllowDbRolePrivilegesRequest.
|
106
|
+
:rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody`
|
107
|
+
"""
|
108
|
+
return self._body
|
109
|
+
|
110
|
+
@body.setter
|
111
|
+
def body(self, body):
|
112
|
+
"""Sets the body of this AllowDbRolePrivilegesRequest.
|
113
|
+
|
114
|
+
:param body: The body of this AllowDbRolePrivilegesRequest.
|
115
|
+
:type body: :class:`huaweicloudsdkgaussdbforopengauss.v3.AllowDbRolePrivilegesRequestBody`
|
116
|
+
"""
|
117
|
+
self._body = body
|
118
|
+
|
119
|
+
def to_dict(self):
|
120
|
+
"""Returns the model properties as a dict"""
|
121
|
+
result = {}
|
122
|
+
|
123
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
124
|
+
value = getattr(self, attr)
|
125
|
+
if isinstance(value, list):
|
126
|
+
result[attr] = list(map(
|
127
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
128
|
+
value
|
129
|
+
))
|
130
|
+
elif hasattr(value, "to_dict"):
|
131
|
+
result[attr] = value.to_dict()
|
132
|
+
elif isinstance(value, dict):
|
133
|
+
result[attr] = dict(map(
|
134
|
+
lambda item: (item[0], item[1].to_dict())
|
135
|
+
if hasattr(item[1], "to_dict") else item,
|
136
|
+
value.items()
|
137
|
+
))
|
138
|
+
else:
|
139
|
+
if attr in self.sensitive_list:
|
140
|
+
result[attr] = "****"
|
141
|
+
else:
|
142
|
+
result[attr] = value
|
143
|
+
|
144
|
+
return result
|
145
|
+
|
146
|
+
def to_str(self):
|
147
|
+
"""Returns the string representation of the model"""
|
148
|
+
import simplejson as json
|
149
|
+
if six.PY2:
|
150
|
+
import sys
|
151
|
+
reload(sys)
|
152
|
+
sys.setdefaultencoding("utf-8")
|
153
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
154
|
+
|
155
|
+
def __repr__(self):
|
156
|
+
"""For `print`"""
|
157
|
+
return self.to_str()
|
158
|
+
|
159
|
+
def __eq__(self, other):
|
160
|
+
"""Returns true if both objects are equal"""
|
161
|
+
if not isinstance(other, AllowDbRolePrivilegesRequest):
|
162
|
+
return False
|
163
|
+
|
164
|
+
return self.__dict__ == other.__dict__
|
165
|
+
|
166
|
+
def __ne__(self, other):
|
167
|
+
"""Returns true if both objects are not equal"""
|
168
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AllowDbRolePrivilegesRequestBody:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'db_name': 'str',
|
21
|
+
'user': 'object'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'db_name': 'db_name',
|
26
|
+
'user': 'user'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, db_name=None, user=None):
|
30
|
+
"""AllowDbRolePrivilegesRequestBody
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param db_name: 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
|
35
|
+
:type db_name: str
|
36
|
+
:param user: 角色权限信息。
|
37
|
+
:type user: object
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._db_name = None
|
43
|
+
self._user = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.db_name = db_name
|
47
|
+
self.user = user
|
48
|
+
|
49
|
+
@property
|
50
|
+
def db_name(self):
|
51
|
+
"""Gets the db_name of this AllowDbRolePrivilegesRequestBody.
|
52
|
+
|
53
|
+
数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
|
54
|
+
|
55
|
+
:return: The db_name of this AllowDbRolePrivilegesRequestBody.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._db_name
|
59
|
+
|
60
|
+
@db_name.setter
|
61
|
+
def db_name(self, db_name):
|
62
|
+
"""Sets the db_name of this AllowDbRolePrivilegesRequestBody.
|
63
|
+
|
64
|
+
数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
|
65
|
+
|
66
|
+
:param db_name: The db_name of this AllowDbRolePrivilegesRequestBody.
|
67
|
+
:type db_name: str
|
68
|
+
"""
|
69
|
+
self._db_name = db_name
|
70
|
+
|
71
|
+
@property
|
72
|
+
def user(self):
|
73
|
+
"""Gets the user of this AllowDbRolePrivilegesRequestBody.
|
74
|
+
|
75
|
+
角色权限信息。
|
76
|
+
|
77
|
+
:return: The user of this AllowDbRolePrivilegesRequestBody.
|
78
|
+
:rtype: object
|
79
|
+
"""
|
80
|
+
return self._user
|
81
|
+
|
82
|
+
@user.setter
|
83
|
+
def user(self, user):
|
84
|
+
"""Sets the user of this AllowDbRolePrivilegesRequestBody.
|
85
|
+
|
86
|
+
角色权限信息。
|
87
|
+
|
88
|
+
:param user: The user of this AllowDbRolePrivilegesRequestBody.
|
89
|
+
:type user: object
|
90
|
+
"""
|
91
|
+
self._user = user
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, AllowDbRolePrivilegesRequestBody):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class AllowDbRolePrivilegesResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
}
|
25
|
+
|
26
|
+
def __init__(self):
|
27
|
+
"""AllowDbRolePrivilegesResponse
|
28
|
+
|
29
|
+
The model defined in huaweicloud sdk
|
30
|
+
|
31
|
+
"""
|
32
|
+
|
33
|
+
super(AllowDbRolePrivilegesResponse, self).__init__()
|
34
|
+
self.discriminator = None
|
35
|
+
|
36
|
+
def to_dict(self):
|
37
|
+
"""Returns the model properties as a dict"""
|
38
|
+
result = {}
|
39
|
+
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
41
|
+
value = getattr(self, attr)
|
42
|
+
if isinstance(value, list):
|
43
|
+
result[attr] = list(map(
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
45
|
+
value
|
46
|
+
))
|
47
|
+
elif hasattr(value, "to_dict"):
|
48
|
+
result[attr] = value.to_dict()
|
49
|
+
elif isinstance(value, dict):
|
50
|
+
result[attr] = dict(map(
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
53
|
+
value.items()
|
54
|
+
))
|
55
|
+
else:
|
56
|
+
if attr in self.sensitive_list:
|
57
|
+
result[attr] = "****"
|
58
|
+
else:
|
59
|
+
result[attr] = value
|
60
|
+
|
61
|
+
return result
|
62
|
+
|
63
|
+
def to_str(self):
|
64
|
+
"""Returns the string representation of the model"""
|
65
|
+
import simplejson as json
|
66
|
+
if six.PY2:
|
67
|
+
import sys
|
68
|
+
reload(sys)
|
69
|
+
sys.setdefaultencoding("utf-8")
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
71
|
+
|
72
|
+
def __repr__(self):
|
73
|
+
"""For `print`"""
|
74
|
+
return self.to_str()
|
75
|
+
|
76
|
+
def __eq__(self, other):
|
77
|
+
"""Returns true if both objects are equal"""
|
78
|
+
if not isinstance(other, AllowDbRolePrivilegesResponse):
|
79
|
+
return False
|
80
|
+
|
81
|
+
return self.__dict__ == other.__dict__
|
82
|
+
|
83
|
+
def __ne__(self, other):
|
84
|
+
"""Returns true if both objects are not equal"""
|
85
|
+
return not self == other
|