huaweicloudsdkgaussdbforopengauss 3.1.128__py2.py3-none-any.whl → 3.1.129__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.
@@ -111,6 +111,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import Fla
111
111
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
112
112
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody
113
113
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles import GaussDBListDatabaseRoles
114
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles_priv import GaussDBListDatabaseRolesPriv
114
115
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest
115
116
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation
116
117
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq
@@ -118,6 +119,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_database
118
119
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_database_schema_req import GaussDBforOpenGaussDatabaseSchemaReq
119
120
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_grant_request import GaussDBforOpenGaussGrantRequest
120
121
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_list_database import GaussDBforOpenGaussListDatabase
122
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_role_attributes import GaussDBforOpenGaussRoleAttributes
121
123
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_creation import GaussDBforOpenGaussUserForCreation
122
124
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_list import GaussDBforOpenGaussUserForList
123
125
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_list_attribute import GaussDBforOpenGaussUserForListAttribute
@@ -109,6 +109,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_error_response import Fla
109
109
  from huaweicloudsdkgaussdbforopengauss.v3.model.flavor_result import FlavorResult
110
110
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_error_response_body import GaussDBErrorResponseBody
111
111
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles import GaussDBListDatabaseRoles
112
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_list_database_roles_priv import GaussDBListDatabaseRolesPriv
112
113
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_db_upgrade_instances_version_request import GaussDBUpgradeInstancesVersionRequest
113
114
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_database_for_creation import GaussDBforOpenDatabaseForCreation
114
115
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_create_schema_req import GaussDBforOpenGaussCreateSchemaReq
@@ -116,6 +117,7 @@ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_database
116
117
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_database_schema_req import GaussDBforOpenGaussDatabaseSchemaReq
117
118
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_grant_request import GaussDBforOpenGaussGrantRequest
118
119
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_list_database import GaussDBforOpenGaussListDatabase
120
+ from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_role_attributes import GaussDBforOpenGaussRoleAttributes
119
121
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_creation import GaussDBforOpenGaussUserForCreation
120
122
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_list import GaussDBforOpenGaussUserForList
121
123
  from huaweicloudsdkgaussdbforopengauss.v3.model.gauss_d_bfor_open_gauss_user_for_list_attribute import GaussDBforOpenGaussUserForListAttribute
@@ -18,7 +18,7 @@ class AllowDbRolePrivilegesRequestBody:
18
18
 
19
19
  openapi_types = {
20
20
  'db_name': 'str',
21
- 'user': 'object'
21
+ 'user': 'GaussDBforOpenGaussRoleAttributes'
22
22
  }
23
23
 
24
24
  attribute_map = {
@@ -33,8 +33,8 @@ class AllowDbRolePrivilegesRequestBody:
33
33
 
34
34
  :param db_name: 数据库名称。 不能使用模板库,且是已存在的数据库名称。 模板库包括postgres, template0 ,template1,templatea,template_pdb,templatem。
35
35
  :type db_name: str
36
- :param user: 角色权限信息。
37
- :type user: object
36
+ :param user:
37
+ :type user: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBforOpenGaussRoleAttributes`
38
38
  """
39
39
 
40
40
 
@@ -72,10 +72,8 @@ class AllowDbRolePrivilegesRequestBody:
72
72
  def user(self):
73
73
  """Gets the user of this AllowDbRolePrivilegesRequestBody.
74
74
 
75
- 角色权限信息。
76
-
77
75
  :return: The user of this AllowDbRolePrivilegesRequestBody.
78
- :rtype: object
76
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBforOpenGaussRoleAttributes`
79
77
  """
80
78
  return self._user
81
79
 
@@ -83,10 +81,8 @@ class AllowDbRolePrivilegesRequestBody:
83
81
  def user(self, user):
84
82
  """Sets the user of this AllowDbRolePrivilegesRequestBody.
85
83
 
86
- 角色权限信息。
87
-
88
84
  :param user: The user of this AllowDbRolePrivilegesRequestBody.
89
- :type user: object
85
+ :type user: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBforOpenGaussRoleAttributes`
90
86
  """
91
87
  self._user = user
92
88
 
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GaussDBforOpenGaussRoleAttributes:
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
+ 'name': 'str',
21
+ 'schema': 'str',
22
+ 'readonly': 'bool',
23
+ 'default_privilege_grantee': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'name': 'name',
28
+ 'schema': 'schema',
29
+ 'readonly': 'readonly',
30
+ 'default_privilege_grantee': 'default_privilege_grantee'
31
+ }
32
+
33
+ def __init__(self, name=None, schema=None, readonly=None, default_privilege_grantee=None):
34
+ """GaussDBforOpenGaussRoleAttributes
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param name: 数据库角色名称。 不能使用系统用户或角色,且名称必须存在。 系统用户/角色包括“rdsAdmin”,“rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
39
+ :type name: str
40
+ :param schema: SCHEMA名称。 不能和模板库以及系统内schema重名,且schema名称必须存在。 模板库包括postgres, template0 ,template1, 系统内schema包括public,information_schema。
41
+ :type schema: str
42
+ :param readonly: 数据库角色权限。 - true:只读。 - false:可读可写。
43
+ :type readonly: bool
44
+ :param default_privilege_grantee: 数据库用户/角色名称。 该字段的含义是将此用户/角色的权限授予给name字段指定的角色,通过readonly字段判断是否授予只读权限。 不能和系统用户/角色名称相同,且用户/角色名称必须存在,系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
45
+ :type default_privilege_grantee: str
46
+ """
47
+
48
+
49
+
50
+ self._name = None
51
+ self._schema = None
52
+ self._readonly = None
53
+ self._default_privilege_grantee = None
54
+ self.discriminator = None
55
+
56
+ self.name = name
57
+ self.schema = schema
58
+ self.readonly = readonly
59
+ if default_privilege_grantee is not None:
60
+ self.default_privilege_grantee = default_privilege_grantee
61
+
62
+ @property
63
+ def name(self):
64
+ """Gets the name of this GaussDBforOpenGaussRoleAttributes.
65
+
66
+ 数据库角色名称。 不能使用系统用户或角色,且名称必须存在。 系统用户/角色包括“rdsAdmin”,“rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
67
+
68
+ :return: The name of this GaussDBforOpenGaussRoleAttributes.
69
+ :rtype: str
70
+ """
71
+ return self._name
72
+
73
+ @name.setter
74
+ def name(self, name):
75
+ """Sets the name of this GaussDBforOpenGaussRoleAttributes.
76
+
77
+ 数据库角色名称。 不能使用系统用户或角色,且名称必须存在。 系统用户/角色包括“rdsAdmin”,“rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
78
+
79
+ :param name: The name of this GaussDBforOpenGaussRoleAttributes.
80
+ :type name: str
81
+ """
82
+ self._name = name
83
+
84
+ @property
85
+ def schema(self):
86
+ """Gets the schema of this GaussDBforOpenGaussRoleAttributes.
87
+
88
+ SCHEMA名称。 不能和模板库以及系统内schema重名,且schema名称必须存在。 模板库包括postgres, template0 ,template1, 系统内schema包括public,information_schema。
89
+
90
+ :return: The schema of this GaussDBforOpenGaussRoleAttributes.
91
+ :rtype: str
92
+ """
93
+ return self._schema
94
+
95
+ @schema.setter
96
+ def schema(self, schema):
97
+ """Sets the schema of this GaussDBforOpenGaussRoleAttributes.
98
+
99
+ SCHEMA名称。 不能和模板库以及系统内schema重名,且schema名称必须存在。 模板库包括postgres, template0 ,template1, 系统内schema包括public,information_schema。
100
+
101
+ :param schema: The schema of this GaussDBforOpenGaussRoleAttributes.
102
+ :type schema: str
103
+ """
104
+ self._schema = schema
105
+
106
+ @property
107
+ def readonly(self):
108
+ """Gets the readonly of this GaussDBforOpenGaussRoleAttributes.
109
+
110
+ 数据库角色权限。 - true:只读。 - false:可读可写。
111
+
112
+ :return: The readonly of this GaussDBforOpenGaussRoleAttributes.
113
+ :rtype: bool
114
+ """
115
+ return self._readonly
116
+
117
+ @readonly.setter
118
+ def readonly(self, readonly):
119
+ """Sets the readonly of this GaussDBforOpenGaussRoleAttributes.
120
+
121
+ 数据库角色权限。 - true:只读。 - false:可读可写。
122
+
123
+ :param readonly: The readonly of this GaussDBforOpenGaussRoleAttributes.
124
+ :type readonly: bool
125
+ """
126
+ self._readonly = readonly
127
+
128
+ @property
129
+ def default_privilege_grantee(self):
130
+ """Gets the default_privilege_grantee of this GaussDBforOpenGaussRoleAttributes.
131
+
132
+ 数据库用户/角色名称。 该字段的含义是将此用户/角色的权限授予给name字段指定的角色,通过readonly字段判断是否授予只读权限。 不能和系统用户/角色名称相同,且用户/角色名称必须存在,系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
133
+
134
+ :return: The default_privilege_grantee of this GaussDBforOpenGaussRoleAttributes.
135
+ :rtype: str
136
+ """
137
+ return self._default_privilege_grantee
138
+
139
+ @default_privilege_grantee.setter
140
+ def default_privilege_grantee(self, default_privilege_grantee):
141
+ """Sets the default_privilege_grantee of this GaussDBforOpenGaussRoleAttributes.
142
+
143
+ 数据库用户/角色名称。 该字段的含义是将此用户/角色的权限授予给name字段指定的角色,通过readonly字段判断是否授予只读权限。 不能和系统用户/角色名称相同,且用户/角色名称必须存在,系统用户/角色包括“rdsAdmin”,“ rdsMetric”, “rdsBackup”, “rdsRepl”, “root”。
144
+
145
+ :param default_privilege_grantee: The default_privilege_grantee of this GaussDBforOpenGaussRoleAttributes.
146
+ :type default_privilege_grantee: str
147
+ """
148
+ self._default_privilege_grantee = default_privilege_grantee
149
+
150
+ def to_dict(self):
151
+ """Returns the model properties as a dict"""
152
+ result = {}
153
+
154
+ for attr, _ in six.iteritems(self.openapi_types):
155
+ value = getattr(self, attr)
156
+ if isinstance(value, list):
157
+ result[attr] = list(map(
158
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
159
+ value
160
+ ))
161
+ elif hasattr(value, "to_dict"):
162
+ result[attr] = value.to_dict()
163
+ elif isinstance(value, dict):
164
+ result[attr] = dict(map(
165
+ lambda item: (item[0], item[1].to_dict())
166
+ if hasattr(item[1], "to_dict") else item,
167
+ value.items()
168
+ ))
169
+ else:
170
+ if attr in self.sensitive_list:
171
+ result[attr] = "****"
172
+ else:
173
+ result[attr] = value
174
+
175
+ return result
176
+
177
+ def to_str(self):
178
+ """Returns the string representation of the model"""
179
+ import simplejson as json
180
+ if six.PY2:
181
+ import sys
182
+ reload(sys)
183
+ sys.setdefaultencoding("utf-8")
184
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
185
+
186
+ def __repr__(self):
187
+ """For `print`"""
188
+ return self.to_str()
189
+
190
+ def __eq__(self, other):
191
+ """Returns true if both objects are equal"""
192
+ if not isinstance(other, GaussDBforOpenGaussRoleAttributes):
193
+ return False
194
+
195
+ return self.__dict__ == other.__dict__
196
+
197
+ def __ne__(self, other):
198
+ """Returns true if both objects are not equal"""
199
+ return not self == other
@@ -20,7 +20,7 @@ class GaussDBListDatabaseRoles:
20
20
  'name': 'str',
21
21
  'memberof': 'str',
22
22
  'lock_status': 'bool',
23
- 'attribute': 'object'
23
+ 'attribute': 'GaussDBListDatabaseRolesPriv'
24
24
  }
25
25
 
26
26
  attribute_map = {
@@ -41,8 +41,8 @@ class GaussDBListDatabaseRoles:
41
41
  :type memberof: str
42
42
  :param lock_status: 用户/角色是否被锁。
43
43
  :type lock_status: bool
44
- :param attribute: 用户/角色的权限属性。
45
- :type attribute: object
44
+ :param attribute:
45
+ :type attribute: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRolesPriv`
46
46
  """
47
47
 
48
48
 
@@ -131,10 +131,8 @@ class GaussDBListDatabaseRoles:
131
131
  def attribute(self):
132
132
  """Gets the attribute of this GaussDBListDatabaseRoles.
133
133
 
134
- 用户/角色的权限属性。
135
-
136
134
  :return: The attribute of this GaussDBListDatabaseRoles.
137
- :rtype: object
135
+ :rtype: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRolesPriv`
138
136
  """
139
137
  return self._attribute
140
138
 
@@ -142,10 +140,8 @@ class GaussDBListDatabaseRoles:
142
140
  def attribute(self, attribute):
143
141
  """Sets the attribute of this GaussDBListDatabaseRoles.
144
142
 
145
- 用户/角色的权限属性。
146
-
147
143
  :param attribute: The attribute of this GaussDBListDatabaseRoles.
148
- :type attribute: object
144
+ :type attribute: :class:`huaweicloudsdkgaussdbforopengauss.v3.GaussDBListDatabaseRolesPriv`
149
145
  """
150
146
  self._attribute = attribute
151
147
 
@@ -0,0 +1,347 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class GaussDBListDatabaseRolesPriv:
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
+ 'rolsuper': 'bool',
21
+ 'rolinherit': 'bool',
22
+ 'rolcreaterole': 'bool',
23
+ 'rolcreatedb': 'bool',
24
+ 'rolcanlogin': 'bool',
25
+ 'rolconnlimit': 'int',
26
+ 'rolreplication': 'bool',
27
+ 'rolbypassrls': 'bool',
28
+ 'rolpassworddeadline': 'str'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'rolsuper': 'rolsuper',
33
+ 'rolinherit': 'rolinherit',
34
+ 'rolcreaterole': 'rolcreaterole',
35
+ 'rolcreatedb': 'rolcreatedb',
36
+ 'rolcanlogin': 'rolcanlogin',
37
+ 'rolconnlimit': 'rolconnlimit',
38
+ 'rolreplication': 'rolreplication',
39
+ 'rolbypassrls': 'rolbypassrls',
40
+ 'rolpassworddeadline': 'rolpassworddeadline'
41
+ }
42
+
43
+ def __init__(self, rolsuper=None, rolinherit=None, rolcreaterole=None, rolcreatedb=None, rolcanlogin=None, rolconnlimit=None, rolreplication=None, rolbypassrls=None, rolpassworddeadline=None):
44
+ """GaussDBListDatabaseRolesPriv
45
+
46
+ The model defined in huaweicloud sdk
47
+
48
+ :param rolsuper: 用户/角色是否具有管理员权限。
49
+ :type rolsuper: bool
50
+ :param rolinherit: 用户/角色是否自动继承其所属角色的权限。
51
+ :type rolinherit: bool
52
+ :param rolcreaterole: 用户/角色是否支持创建其他子用户。
53
+ :type rolcreaterole: bool
54
+ :param rolcreatedb: 用户/角色是否可以创建数据库。
55
+ :type rolcreatedb: bool
56
+ :param rolcanlogin: 用户/角色是否可以登录数据库。
57
+ :type rolcanlogin: bool
58
+ :param rolconnlimit: 用户/角色连接实例的最大并发连接数。-1表示没有限制。
59
+ :type rolconnlimit: int
60
+ :param rolreplication: 用户/角色是否属于复制角色。
61
+ :type rolreplication: bool
62
+ :param rolbypassrls: 用户/角色是否绕过每个行级安全策略。
63
+ :type rolbypassrls: bool
64
+ :param rolpassworddeadline: 用户/角色密码过期时间。
65
+ :type rolpassworddeadline: str
66
+ """
67
+
68
+
69
+
70
+ self._rolsuper = None
71
+ self._rolinherit = None
72
+ self._rolcreaterole = None
73
+ self._rolcreatedb = None
74
+ self._rolcanlogin = None
75
+ self._rolconnlimit = None
76
+ self._rolreplication = None
77
+ self._rolbypassrls = None
78
+ self._rolpassworddeadline = None
79
+ self.discriminator = None
80
+
81
+ if rolsuper is not None:
82
+ self.rolsuper = rolsuper
83
+ if rolinherit is not None:
84
+ self.rolinherit = rolinherit
85
+ if rolcreaterole is not None:
86
+ self.rolcreaterole = rolcreaterole
87
+ if rolcreatedb is not None:
88
+ self.rolcreatedb = rolcreatedb
89
+ if rolcanlogin is not None:
90
+ self.rolcanlogin = rolcanlogin
91
+ if rolconnlimit is not None:
92
+ self.rolconnlimit = rolconnlimit
93
+ if rolreplication is not None:
94
+ self.rolreplication = rolreplication
95
+ if rolbypassrls is not None:
96
+ self.rolbypassrls = rolbypassrls
97
+ if rolpassworddeadline is not None:
98
+ self.rolpassworddeadline = rolpassworddeadline
99
+
100
+ @property
101
+ def rolsuper(self):
102
+ """Gets the rolsuper of this GaussDBListDatabaseRolesPriv.
103
+
104
+ 用户/角色是否具有管理员权限。
105
+
106
+ :return: The rolsuper of this GaussDBListDatabaseRolesPriv.
107
+ :rtype: bool
108
+ """
109
+ return self._rolsuper
110
+
111
+ @rolsuper.setter
112
+ def rolsuper(self, rolsuper):
113
+ """Sets the rolsuper of this GaussDBListDatabaseRolesPriv.
114
+
115
+ 用户/角色是否具有管理员权限。
116
+
117
+ :param rolsuper: The rolsuper of this GaussDBListDatabaseRolesPriv.
118
+ :type rolsuper: bool
119
+ """
120
+ self._rolsuper = rolsuper
121
+
122
+ @property
123
+ def rolinherit(self):
124
+ """Gets the rolinherit of this GaussDBListDatabaseRolesPriv.
125
+
126
+ 用户/角色是否自动继承其所属角色的权限。
127
+
128
+ :return: The rolinherit of this GaussDBListDatabaseRolesPriv.
129
+ :rtype: bool
130
+ """
131
+ return self._rolinherit
132
+
133
+ @rolinherit.setter
134
+ def rolinherit(self, rolinherit):
135
+ """Sets the rolinherit of this GaussDBListDatabaseRolesPriv.
136
+
137
+ 用户/角色是否自动继承其所属角色的权限。
138
+
139
+ :param rolinherit: The rolinherit of this GaussDBListDatabaseRolesPriv.
140
+ :type rolinherit: bool
141
+ """
142
+ self._rolinherit = rolinherit
143
+
144
+ @property
145
+ def rolcreaterole(self):
146
+ """Gets the rolcreaterole of this GaussDBListDatabaseRolesPriv.
147
+
148
+ 用户/角色是否支持创建其他子用户。
149
+
150
+ :return: The rolcreaterole of this GaussDBListDatabaseRolesPriv.
151
+ :rtype: bool
152
+ """
153
+ return self._rolcreaterole
154
+
155
+ @rolcreaterole.setter
156
+ def rolcreaterole(self, rolcreaterole):
157
+ """Sets the rolcreaterole of this GaussDBListDatabaseRolesPriv.
158
+
159
+ 用户/角色是否支持创建其他子用户。
160
+
161
+ :param rolcreaterole: The rolcreaterole of this GaussDBListDatabaseRolesPriv.
162
+ :type rolcreaterole: bool
163
+ """
164
+ self._rolcreaterole = rolcreaterole
165
+
166
+ @property
167
+ def rolcreatedb(self):
168
+ """Gets the rolcreatedb of this GaussDBListDatabaseRolesPriv.
169
+
170
+ 用户/角色是否可以创建数据库。
171
+
172
+ :return: The rolcreatedb of this GaussDBListDatabaseRolesPriv.
173
+ :rtype: bool
174
+ """
175
+ return self._rolcreatedb
176
+
177
+ @rolcreatedb.setter
178
+ def rolcreatedb(self, rolcreatedb):
179
+ """Sets the rolcreatedb of this GaussDBListDatabaseRolesPriv.
180
+
181
+ 用户/角色是否可以创建数据库。
182
+
183
+ :param rolcreatedb: The rolcreatedb of this GaussDBListDatabaseRolesPriv.
184
+ :type rolcreatedb: bool
185
+ """
186
+ self._rolcreatedb = rolcreatedb
187
+
188
+ @property
189
+ def rolcanlogin(self):
190
+ """Gets the rolcanlogin of this GaussDBListDatabaseRolesPriv.
191
+
192
+ 用户/角色是否可以登录数据库。
193
+
194
+ :return: The rolcanlogin of this GaussDBListDatabaseRolesPriv.
195
+ :rtype: bool
196
+ """
197
+ return self._rolcanlogin
198
+
199
+ @rolcanlogin.setter
200
+ def rolcanlogin(self, rolcanlogin):
201
+ """Sets the rolcanlogin of this GaussDBListDatabaseRolesPriv.
202
+
203
+ 用户/角色是否可以登录数据库。
204
+
205
+ :param rolcanlogin: The rolcanlogin of this GaussDBListDatabaseRolesPriv.
206
+ :type rolcanlogin: bool
207
+ """
208
+ self._rolcanlogin = rolcanlogin
209
+
210
+ @property
211
+ def rolconnlimit(self):
212
+ """Gets the rolconnlimit of this GaussDBListDatabaseRolesPriv.
213
+
214
+ 用户/角色连接实例的最大并发连接数。-1表示没有限制。
215
+
216
+ :return: The rolconnlimit of this GaussDBListDatabaseRolesPriv.
217
+ :rtype: int
218
+ """
219
+ return self._rolconnlimit
220
+
221
+ @rolconnlimit.setter
222
+ def rolconnlimit(self, rolconnlimit):
223
+ """Sets the rolconnlimit of this GaussDBListDatabaseRolesPriv.
224
+
225
+ 用户/角色连接实例的最大并发连接数。-1表示没有限制。
226
+
227
+ :param rolconnlimit: The rolconnlimit of this GaussDBListDatabaseRolesPriv.
228
+ :type rolconnlimit: int
229
+ """
230
+ self._rolconnlimit = rolconnlimit
231
+
232
+ @property
233
+ def rolreplication(self):
234
+ """Gets the rolreplication of this GaussDBListDatabaseRolesPriv.
235
+
236
+ 用户/角色是否属于复制角色。
237
+
238
+ :return: The rolreplication of this GaussDBListDatabaseRolesPriv.
239
+ :rtype: bool
240
+ """
241
+ return self._rolreplication
242
+
243
+ @rolreplication.setter
244
+ def rolreplication(self, rolreplication):
245
+ """Sets the rolreplication of this GaussDBListDatabaseRolesPriv.
246
+
247
+ 用户/角色是否属于复制角色。
248
+
249
+ :param rolreplication: The rolreplication of this GaussDBListDatabaseRolesPriv.
250
+ :type rolreplication: bool
251
+ """
252
+ self._rolreplication = rolreplication
253
+
254
+ @property
255
+ def rolbypassrls(self):
256
+ """Gets the rolbypassrls of this GaussDBListDatabaseRolesPriv.
257
+
258
+ 用户/角色是否绕过每个行级安全策略。
259
+
260
+ :return: The rolbypassrls of this GaussDBListDatabaseRolesPriv.
261
+ :rtype: bool
262
+ """
263
+ return self._rolbypassrls
264
+
265
+ @rolbypassrls.setter
266
+ def rolbypassrls(self, rolbypassrls):
267
+ """Sets the rolbypassrls of this GaussDBListDatabaseRolesPriv.
268
+
269
+ 用户/角色是否绕过每个行级安全策略。
270
+
271
+ :param rolbypassrls: The rolbypassrls of this GaussDBListDatabaseRolesPriv.
272
+ :type rolbypassrls: bool
273
+ """
274
+ self._rolbypassrls = rolbypassrls
275
+
276
+ @property
277
+ def rolpassworddeadline(self):
278
+ """Gets the rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
279
+
280
+ 用户/角色密码过期时间。
281
+
282
+ :return: The rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
283
+ :rtype: str
284
+ """
285
+ return self._rolpassworddeadline
286
+
287
+ @rolpassworddeadline.setter
288
+ def rolpassworddeadline(self, rolpassworddeadline):
289
+ """Sets the rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
290
+
291
+ 用户/角色密码过期时间。
292
+
293
+ :param rolpassworddeadline: The rolpassworddeadline of this GaussDBListDatabaseRolesPriv.
294
+ :type rolpassworddeadline: str
295
+ """
296
+ self._rolpassworddeadline = rolpassworddeadline
297
+
298
+ def to_dict(self):
299
+ """Returns the model properties as a dict"""
300
+ result = {}
301
+
302
+ for attr, _ in six.iteritems(self.openapi_types):
303
+ value = getattr(self, attr)
304
+ if isinstance(value, list):
305
+ result[attr] = list(map(
306
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
307
+ value
308
+ ))
309
+ elif hasattr(value, "to_dict"):
310
+ result[attr] = value.to_dict()
311
+ elif isinstance(value, dict):
312
+ result[attr] = dict(map(
313
+ lambda item: (item[0], item[1].to_dict())
314
+ if hasattr(item[1], "to_dict") else item,
315
+ value.items()
316
+ ))
317
+ else:
318
+ if attr in self.sensitive_list:
319
+ result[attr] = "****"
320
+ else:
321
+ result[attr] = value
322
+
323
+ return result
324
+
325
+ def to_str(self):
326
+ """Returns the string representation of the model"""
327
+ import simplejson as json
328
+ if six.PY2:
329
+ import sys
330
+ reload(sys)
331
+ sys.setdefaultencoding("utf-8")
332
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
333
+
334
+ def __repr__(self):
335
+ """For `print`"""
336
+ return self.to_str()
337
+
338
+ def __eq__(self, other):
339
+ """Returns true if both objects are equal"""
340
+ if not isinstance(other, GaussDBListDatabaseRolesPriv):
341
+ return False
342
+
343
+ return self.__dict__ == other.__dict__
344
+
345
+ def __ne__(self, other):
346
+ """Returns true if both objects are not equal"""
347
+ return not self == other
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huaweicloudsdkgaussdbforopengauss
3
- Version: 3.1.128
3
+ Version: 3.1.129
4
4
  Summary: GaussDBforopenGauss
5
5
  Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
6
6
  Author: HuaweiCloud SDK
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
22
22
  Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
- Requires-Dist: huaweicloudsdkcore>=3.1.128
25
+ Requires-Dist: huaweicloudsdkcore>=3.1.129
26
26
 
27
27
  See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
@@ -1,15 +1,15 @@
1
1
  huaweicloudsdkgaussdbforopengauss/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- huaweicloudsdkgaussdbforopengauss/v3/__init__.py,sha256=rUQ3WvmYmNqD0XDXrggT9WGP4Swhfqn4xjPNlOlFKXA,46438
2
+ huaweicloudsdkgaussdbforopengauss/v3/__init__.py,sha256=Jb0rh9caPoTHq84cz3Oi6ByRusoV2CO-n9Gp_2C1rmA,46685
3
3
  huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_async_client.py,sha256=_cG5kgGXsMEZaIQ13rn4QY1b39vKMN6xlGi5k-umqIY,317902
4
4
  huaweicloudsdkgaussdbforopengauss/v3/gaussdbforopengauss_client.py,sha256=sj04oYYA7ujHNNXhuMcFM_oGLTpIJ5rK0tt3Anc_sHg,318053
5
- huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py,sha256=FKm2rJqGnOnYonGIc6c7sbw3NDeaWhlswBqOkWVo73c,46256
5
+ huaweicloudsdkgaussdbforopengauss/v3/model/__init__.py,sha256=iweTOLcQ-iMMebQg7PfKZ5H4XV3pcDKeBTnxp3Zu07I,46503
6
6
  huaweicloudsdkgaussdbforopengauss/v3/model/add_instance_tags_request.py,sha256=wWayfcbJ4P3MA7CINc1L_BEj_RNLWXExO8YR_m1US58,4784
7
7
  huaweicloudsdkgaussdbforopengauss/v3/model/add_instance_tags_response.py,sha256=Z3MBz9wjgIqiNE3XJlcgsYJYKfIPvYYhoJIUsQ2uuiQ,4273
8
8
  huaweicloudsdkgaussdbforopengauss/v3/model/add_tags_request_body.py,sha256=fV7_rS3Q-6vMRmostu9KLEwy4BPMnw7oqTmArLTosUE,3076
9
9
  huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_privileges_request.py,sha256=FlrItAC5GFxvb3MBltS3sXdzJtjHNnglFq6ZCFaPJ64,4859
10
10
  huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_privileges_response.py,sha256=xAAEQ2HxWEnFDOVLDWhvZdHkU_2B_JbCadwnRzC0Y0I,2451
11
11
  huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request.py,sha256=yI8xf1FaPrsH43EPisJRuAIrDsyqHbuvhJCI183j2iI,4927
12
- huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py,sha256=tPVX2ssevS1aW6PHA8olEUVrsS7pRI01vwlvkrWHlYA,4308
12
+ huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_request_body.py,sha256=fkUVlcSrUiVvw6gjI8dFsCxb9x1g9GS6wmwhZQwkpn0,4471
13
13
  huaweicloudsdkgaussdbforopengauss/v3/model/allow_db_role_privileges_response.py,sha256=agQflCxFwsXU4Zi7opN_FzT-wo-aOdwzmXmWxbpHsZE,2467
14
14
  huaweicloudsdkgaussdbforopengauss/v3/model/applied_histories_result.py,sha256=B29V6rtEeSN8FY-9Mf_CdjzdK7Z7dT52lyX5El2X-go,6928
15
15
  huaweicloudsdkgaussdbforopengauss/v3/model/apply_configuration_request_body.py,sha256=32DU8RZ41Jwwbpd8fseBVOoTnlAxzTECFjitauwvY1I,3234
@@ -113,12 +113,14 @@ huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_database_for_
113
113
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_database_schema_req.py,sha256=TjEwl2-_PQZ_47xptTtIA1uJUgv3eLddf3zDDT3wer8,5217
114
114
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_grant_request.py,sha256=EV9M-6HcjqVV1CquyEhKFgdwlpPxcMusUdKgP6cDDPc,5108
115
115
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_list_database.py,sha256=7ELMSDaiyDAFTgDCFjXfPvzwEIGkNOjzlyeybNxPGSg,8701
116
+ huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_role_attributes.py,sha256=W7XLypRzAbTw7pY_XDTC0pyHp6EmlAHV2xR2nVuMUZw,8052
116
117
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_creation.py,sha256=lgjk-MZqHqlMgqgVQnNyAGTnm8WJHbgDM14qFJlYX3Q,7305
117
118
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list.py,sha256=wTUUST944g7wQiWKi6VXx3AsJSsWErnGtpDQ96-kyOY,5928
118
119
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_for_list_attribute.py,sha256=pbqFVzyz8shMYRaZmQ301XLrnFEnEW7LjM13ZvQ2rho,12391
119
120
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_d_bfor_open_gauss_user_with_privilege.py,sha256=WaFKkndJJEQHSIp5NwXd_6GW1hS471zLlSCi-9GtKug,6782
120
121
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_error_response_body.py,sha256=eDFSnxxJmwYRns2jVjZZAZr7E61ZGZktR0UfR9u2hg4,3889
121
- huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py,sha256=_fgeC3rTvs0VS9JDYRhnM-vdXnvSQ2BWBG1JJ0eG0yM,5639
122
+ huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles.py,sha256=7cwAOJkDOn-7fk3d7laCq5MDHMP38vzs_jwT4TnFAUg,5752
123
+ huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_list_database_roles_priv.py,sha256=00mFwszmN-d7ghlgvCjKx3aVDn1JRgt11hKrboSB-r4,11386
122
124
  huaweicloudsdkgaussdbforopengauss/v3/model/gauss_db_upgrade_instances_version_request.py,sha256=F5kjvs5rQ7zhwDVofG-U9i4UYlKsHpdN5X1yeddxRT4,7298
123
125
  huaweicloudsdkgaussdbforopengauss/v3/model/get_restore_time_response_restore_time.py,sha256=RoezLqgaEl2kj9pS0EuJTYPuFKF3HIvS_whmjCDpEDc,4449
124
126
  huaweicloudsdkgaussdbforopengauss/v3/model/hotfix_info.py,sha256=WSu0QXDRymkzulab56Ysu9bmxYzIKNSdoA2B0LbsEu4,5788
@@ -431,8 +433,8 @@ huaweicloudsdkgaussdbforopengauss/v3/model/validate_weak_password_response.py,sh
431
433
  huaweicloudsdkgaussdbforopengauss/v3/model/weak_password_request_body.py,sha256=o6aHUH5vLvSBEf2BJZkKk4XCiwcJgVu7rHklOd476B0,3101
432
434
  huaweicloudsdkgaussdbforopengauss/v3/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
433
435
  huaweicloudsdkgaussdbforopengauss/v3/region/gaussdbforopengauss_region.py,sha256=FbNUZqtmwEpCo-_xezK3z0tAjKztPMC4CuuE3bF6nJg,3125
434
- huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
435
- huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info/METADATA,sha256=J5reDwO7sp6Yz5kJvYfH1XbRMVY2424CCecCpxx-rDw,1183
436
- huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
437
- huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info/top_level.txt,sha256=Eu0Q0tFHFbnL_PjFOY4Uagc9Xd6tEIZWVieOKIvJ5-A,34
438
- huaweicloudsdkgaussdbforopengauss-3.1.128.dist-info/RECORD,,
436
+ huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
437
+ huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info/METADATA,sha256=OV6_-59tQhJfXzoKbtCed2WLaz2qaPT35oL8wgvxpQE,1183
438
+ huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
439
+ huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info/top_level.txt,sha256=Eu0Q0tFHFbnL_PjFOY4Uagc9Xd6tEIZWVieOKIvJ5-A,34
440
+ huaweicloudsdkgaussdbforopengauss-3.1.129.dist-info/RECORD,,