Skip to content

Commit 0086eb5

Browse files
author
BitsAdmin
committed
Merge branch 'iam-Python-2021-08-01-online-621-2024_08_16_15_56_50' into 'integration_2024-08-19_389028705794'
feat: [development task] iam-Python-2021-08-01-online-621-2024_08_16_15_56_50 (752530) See merge request iaasng/volcengine-python-sdk!367
2 parents 6662a34 + 6de8d71 commit 0086eb5

10 files changed

+53
-11
lines changed

meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"lasted": "1.0.96",
3-
"meta_commit": "aa8a3e2b056a9043e2a902ea734abf0307350c5d"
2+
"lasted": "1.0.97",
3+
"meta_commit": "6413c44139f1a5b7a5f13fd5b1317da1bfb3c309"
44
}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from setuptools import setup, find_packages # noqa: H301
44

55
NAME = "volcengine-python-sdk"
6-
VERSION = "1.0.96"
6+
VERSION = "1.0.97"
77
# To install the library, run the following
88
#
99
# python setup.py install

volcenginesdkcore/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
6767
self.default_headers[header_name] = header_value
6868
self.cookie = cookie
6969
# Set default User-Agent.
70-
self.user_agent = 'volcstack-python-sdk/1.0.96'
70+
self.user_agent = 'volcstack-python-sdk/1.0.97'
7171
self.client_side_validation = configuration.client_side_validation
7272

7373
def __del__(self):

volcenginesdkcore/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,5 +221,5 @@ def to_debug_report(self):
221221
"OS: {env}\n"\
222222
"Python Version: {pyversion}\n"\
223223
"Version of the API: 0.1.0\n"\
224-
"SDK Package Version: 1.0.96".\
224+
"SDK Package Version: 1.0.97".\
225225
format(env=sys.platform, pyversion=sys.version)

volcenginesdkiam20210801/models/attach_policy_in_project_request.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ def policy_type(self, policy_type):
111111
"""
112112
if self._configuration.client_side_validation and policy_type is None:
113113
raise ValueError("Invalid value for `policy_type`, must not be `None`") # noqa: E501
114+
allowed_values = ["System", "Custom"] # noqa: E501
115+
if (self._configuration.client_side_validation and
116+
policy_type not in allowed_values):
117+
raise ValueError(
118+
"Invalid value for `policy_type` ({0}), must be one of {1}" # noqa: E501
119+
.format(policy_type, allowed_values)
120+
)
114121

115122
self._policy_type = policy_type
116123

@@ -157,6 +164,13 @@ def principal_type(self, principal_type):
157164
"""
158165
if self._configuration.client_side_validation and principal_type is None:
159166
raise ValueError("Invalid value for `principal_type`, must not be `None`") # noqa: E501
167+
allowed_values = ["User", "Role", "UserGroup"] # noqa: E501
168+
if (self._configuration.client_side_validation and
169+
principal_type not in allowed_values):
170+
raise ValueError(
171+
"Invalid value for `principal_type` ({0}), must be one of {1}" # noqa: E501
172+
.format(principal_type, allowed_values)
173+
)
160174

161175
self._principal_type = principal_type
162176

volcenginesdkiam20210801/models/detach_policy_in_project_request.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ def policy_type(self, policy_type):
111111
"""
112112
if self._configuration.client_side_validation and policy_type is None:
113113
raise ValueError("Invalid value for `policy_type`, must not be `None`") # noqa: E501
114+
allowed_values = ["System", "Custom"] # noqa: E501
115+
if (self._configuration.client_side_validation and
116+
policy_type not in allowed_values):
117+
raise ValueError(
118+
"Invalid value for `policy_type` ({0}), must be one of {1}" # noqa: E501
119+
.format(policy_type, allowed_values)
120+
)
114121

115122
self._policy_type = policy_type
116123

@@ -157,6 +164,13 @@ def principal_type(self, principal_type):
157164
"""
158165
if self._configuration.client_side_validation and principal_type is None:
159166
raise ValueError("Invalid value for `principal_type`, must not be `None`") # noqa: E501
167+
allowed_values = ["User", "Role", "UserGroup"] # noqa: E501
168+
if (self._configuration.client_side_validation and
169+
principal_type not in allowed_values):
170+
raise ValueError(
171+
"Invalid value for `principal_type` ({0}), must be one of {1}" # noqa: E501
172+
.format(principal_type, allowed_values)
173+
)
160174

161175
self._principal_type = principal_type
162176

volcenginesdkiam20210801/models/list_project_identities_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ def identity_type(self, identity_type):
9090
"""
9191
if self._configuration.client_side_validation and identity_type is None:
9292
raise ValueError("Invalid value for `identity_type`, must not be `None`") # noqa: E501
93+
allowed_values = ["User", "Role", "UserGroup"] # noqa: E501
94+
if (self._configuration.client_side_validation and
95+
identity_type not in allowed_values):
96+
raise ValueError(
97+
"Invalid value for `identity_type` ({0}), must be one of {1}" # noqa: E501
98+
.format(identity_type, allowed_values)
99+
)
93100

94101
self._identity_type = identity_type
95102

volcenginesdkiam20210801/models/list_project_resources_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,13 @@ def order_by(self, order_by):
156156
:param order_by: The order_by of this ListProjectResourcesRequest. # noqa: E501
157157
:type: str
158158
"""
159+
allowed_values = ["CreatedTime", "UpdatedTime"] # noqa: E501
160+
if (self._configuration.client_side_validation and
161+
order_by not in allowed_values):
162+
raise ValueError(
163+
"Invalid value for `order_by` ({0}), must be one of {1}" # noqa: E501
164+
.format(order_by, allowed_values)
165+
)
159166

160167
self._order_by = order_by
161168

volcenginesdkiam20210801/models/project_for_list_projects_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProjectForListProjectsOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'account_id': 'str',
36+
'account_id': 'int',
3737
'create_date': 'str',
3838
'description': 'str',
3939
'display_name': 'str',
@@ -103,7 +103,7 @@ def account_id(self):
103103
104104
105105
:return: The account_id of this ProjectForListProjectsOutput. # noqa: E501
106-
:rtype: str
106+
:rtype: int
107107
"""
108108
return self._account_id
109109

@@ -113,7 +113,7 @@ def account_id(self, account_id):
113113
114114
115115
:param account_id: The account_id of this ProjectForListProjectsOutput. # noqa: E501
116-
:type: str
116+
:type: int
117117
"""
118118

119119
self._account_id = account_id

volcenginesdkiam20210801/models/project_resource_for_list_project_resources_output.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class ProjectResourceForListProjectResourcesOutput(object):
3333
and the value is json key in definition.
3434
"""
3535
swagger_types = {
36-
'account_id': 'str',
36+
'account_id': 'int',
3737
'create_date': 'str',
3838
'project_name': 'str',
3939
'resource_id': 'str',
@@ -98,7 +98,7 @@ def account_id(self):
9898
9999
100100
:return: The account_id of this ProjectResourceForListProjectResourcesOutput. # noqa: E501
101-
:rtype: str
101+
:rtype: int
102102
"""
103103
return self._account_id
104104

@@ -108,7 +108,7 @@ def account_id(self, account_id):
108108
109109
110110
:param account_id: The account_id of this ProjectResourceForListProjectResourcesOutput. # noqa: E501
111-
:type: str
111+
:type: int
112112
"""
113113

114114
self._account_id = account_id

0 commit comments

Comments
 (0)