Skip to content

Commit c9cc3cc

Browse files
author
BitsAdmin
committed
Merge branch 'graph-Python-2018-01-01-online-1694-2025_10_13_19_45_40' into 'integration_2025-10-16_1070862462978'
feat: [development task] graph-1694-Python (1736405) See merge request iaasng/volcengine-python-sdk!853
2 parents 51679c2 + f7817da commit c9cc3cc

File tree

6 files changed

+612
-3
lines changed

6 files changed

+612
-3
lines changed

volcenginesdkgraph/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
from volcenginesdkgraph.models.get_version_set_and_components_info_request import GetVersionSetAndComponentsInfoRequest
8080
from volcenginesdkgraph.models.get_version_set_and_components_info_response import GetVersionSetAndComponentsInfoResponse
8181
from volcenginesdkgraph.models.gremlin_quota_config_for_add_tables_input import GremlinQuotaConfigForAddTablesInput
82+
from volcenginesdkgraph.models.gremlin_quota_config_for_alter_table_input import GremlinQuotaConfigForAlterTableInput
8283
from volcenginesdkgraph.models.gremlin_quota_config_for_get_table_output import GremlinQuotaConfigForGetTableOutput
8384
from volcenginesdkgraph.models.gremlin_quota_config_for_get_table_quota_output import GremlinQuotaConfigForGetTableQuotaOutput
8485
from volcenginesdkgraph.models.io_qos_options_for_alter_table_input import IOQosOptionsForAlterTableInput
@@ -115,6 +116,7 @@
115116
from volcenginesdkgraph.models.network_resource_for_get_vegraph_network_resource_output import NetworkResourceForGetVegraphNetworkResourceOutput
116117
from volcenginesdkgraph.models.node_scope_for_get_instance_spec_scope_output import NodeScopeForGetInstanceSpecScopeOutput
117118
from volcenginesdkgraph.models.psm_quota_config_for_add_tables_input import PsmQuotaConfigForAddTablesInput
119+
from volcenginesdkgraph.models.psm_quota_config_for_alter_table_input import PsmQuotaConfigForAlterTableInput
118120
from volcenginesdkgraph.models.psm_quota_config_for_get_table_output import PsmQuotaConfigForGetTableOutput
119121
from volcenginesdkgraph.models.psm_quota_config_for_get_table_quota_output import PsmQuotaConfigForGetTableQuotaOutput
120122
from volcenginesdkgraph.models.quotas_for_add_tables_input import QuotasForAddTablesInput
@@ -137,6 +139,7 @@
137139
from volcenginesdkgraph.models.table_limits_for_calc_table_limits_output import TableLimitsForCalcTableLimitsOutput
138140
from volcenginesdkgraph.models.table_limits_for_get_table_limit_output import TableLimitsForGetTableLimitOutput
139141
from volcenginesdkgraph.models.table_quota_config_for_get_table_quota_output import TableQuotaConfigForGetTableQuotaOutput
142+
from volcenginesdkgraph.models.table_quota_for_alter_table_input import TableQuotaForAlterTableInput
140143
from volcenginesdkgraph.models.table_quota_for_get_table_output import TableQuotaForGetTableOutput
141144
from volcenginesdkgraph.models.table_schema_for_get_table_schema_output import TableSchemaForGetTableSchemaOutput
142145
from volcenginesdkgraph.models.tables_info_for_add_tables_input import TablesInfoForAddTablesInput

volcenginesdkgraph/models/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
from volcenginesdkgraph.models.get_version_set_and_components_info_request import GetVersionSetAndComponentsInfoRequest
7676
from volcenginesdkgraph.models.get_version_set_and_components_info_response import GetVersionSetAndComponentsInfoResponse
7777
from volcenginesdkgraph.models.gremlin_quota_config_for_add_tables_input import GremlinQuotaConfigForAddTablesInput
78+
from volcenginesdkgraph.models.gremlin_quota_config_for_alter_table_input import GremlinQuotaConfigForAlterTableInput
7879
from volcenginesdkgraph.models.gremlin_quota_config_for_get_table_output import GremlinQuotaConfigForGetTableOutput
7980
from volcenginesdkgraph.models.gremlin_quota_config_for_get_table_quota_output import GremlinQuotaConfigForGetTableQuotaOutput
8081
from volcenginesdkgraph.models.io_qos_options_for_alter_table_input import IOQosOptionsForAlterTableInput
@@ -111,6 +112,7 @@
111112
from volcenginesdkgraph.models.network_resource_for_get_vegraph_network_resource_output import NetworkResourceForGetVegraphNetworkResourceOutput
112113
from volcenginesdkgraph.models.node_scope_for_get_instance_spec_scope_output import NodeScopeForGetInstanceSpecScopeOutput
113114
from volcenginesdkgraph.models.psm_quota_config_for_add_tables_input import PsmQuotaConfigForAddTablesInput
115+
from volcenginesdkgraph.models.psm_quota_config_for_alter_table_input import PsmQuotaConfigForAlterTableInput
114116
from volcenginesdkgraph.models.psm_quota_config_for_get_table_output import PsmQuotaConfigForGetTableOutput
115117
from volcenginesdkgraph.models.psm_quota_config_for_get_table_quota_output import PsmQuotaConfigForGetTableQuotaOutput
116118
from volcenginesdkgraph.models.quotas_for_add_tables_input import QuotasForAddTablesInput
@@ -133,6 +135,7 @@
133135
from volcenginesdkgraph.models.table_limits_for_calc_table_limits_output import TableLimitsForCalcTableLimitsOutput
134136
from volcenginesdkgraph.models.table_limits_for_get_table_limit_output import TableLimitsForGetTableLimitOutput
135137
from volcenginesdkgraph.models.table_quota_config_for_get_table_quota_output import TableQuotaConfigForGetTableQuotaOutput
138+
from volcenginesdkgraph.models.table_quota_for_alter_table_input import TableQuotaForAlterTableInput
136139
from volcenginesdkgraph.models.table_quota_for_get_table_output import TableQuotaForGetTableOutput
137140
from volcenginesdkgraph.models.table_schema_for_get_table_schema_output import TableSchemaForGetTableSchemaOutput
138141
from volcenginesdkgraph.models.tables_info_for_add_tables_input import TablesInfoForAddTablesInput

volcenginesdkgraph/models/alter_table_request.py

Lines changed: 29 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ class AlterTableRequest(object):
4242
'instance_id': 'str',
4343
'rw_schedulable_idcs': 'list[str]',
4444
'state': 'str',
45-
'table_name': 'str'
45+
'table_name': 'str',
46+
'table_quota': 'TableQuotaForAlterTableInput'
4647
}
4748

4849
attribute_map = {
@@ -55,10 +56,11 @@ class AlterTableRequest(object):
5556
'instance_id': 'InstanceId',
5657
'rw_schedulable_idcs': 'RwSchedulableIdcs',
5758
'state': 'State',
58-
'table_name': 'TableName'
59+
'table_name': 'TableName',
60+
'table_quota': 'TableQuota'
5961
}
6062

61-
def __init__(self, enable_read=None, enable_rw_seperate_schedule=None, enable_write=None, io_qos_options=None, idc_replica_nums=None, idc_ro_nums=None, instance_id=None, rw_schedulable_idcs=None, state=None, table_name=None, _configuration=None): # noqa: E501
63+
def __init__(self, enable_read=None, enable_rw_seperate_schedule=None, enable_write=None, io_qos_options=None, idc_replica_nums=None, idc_ro_nums=None, instance_id=None, rw_schedulable_idcs=None, state=None, table_name=None, table_quota=None, _configuration=None): # noqa: E501
6264
"""AlterTableRequest - a model defined in Swagger""" # noqa: E501
6365
if _configuration is None:
6466
_configuration = Configuration()
@@ -74,6 +76,7 @@ def __init__(self, enable_read=None, enable_rw_seperate_schedule=None, enable_wr
7476
self._rw_schedulable_idcs = None
7577
self._state = None
7678
self._table_name = None
79+
self._table_quota = None
7780
self.discriminator = None
7881

7982
if enable_read is not None:
@@ -94,6 +97,8 @@ def __init__(self, enable_read=None, enable_rw_seperate_schedule=None, enable_wr
9497
if state is not None:
9598
self.state = state
9699
self.table_name = table_name
100+
if table_quota is not None:
101+
self.table_quota = table_quota
97102

98103
@property
99104
def enable_read(self):
@@ -309,6 +314,27 @@ def table_name(self, table_name):
309314

310315
self._table_name = table_name
311316

317+
@property
318+
def table_quota(self):
319+
"""Gets the table_quota of this AlterTableRequest. # noqa: E501
320+
321+
322+
:return: The table_quota of this AlterTableRequest. # noqa: E501
323+
:rtype: TableQuotaForAlterTableInput
324+
"""
325+
return self._table_quota
326+
327+
@table_quota.setter
328+
def table_quota(self, table_quota):
329+
"""Sets the table_quota of this AlterTableRequest.
330+
331+
332+
:param table_quota: The table_quota of this AlterTableRequest. # noqa: E501
333+
:type: TableQuotaForAlterTableInput
334+
"""
335+
336+
self._table_quota = table_quota
337+
312338
def to_dict(self):
313339
"""Returns the model properties as a dict"""
314340
result = {}
Lines changed: 201 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,201 @@
1+
# coding: utf-8
2+
3+
"""
4+
graph
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 GremlinQuotaConfigForAlterTableInput(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+
'caller_psm': 'str',
37+
'fetch_size': 'int',
38+
'quota_size': 'int',
39+
'template': 'str'
40+
}
41+
42+
attribute_map = {
43+
'caller_psm': 'caller_psm',
44+
'fetch_size': 'fetch_size',
45+
'quota_size': 'quota_size',
46+
'template': 'template'
47+
}
48+
49+
def __init__(self, caller_psm=None, fetch_size=None, quota_size=None, template=None, _configuration=None): # noqa: E501
50+
"""GremlinQuotaConfigForAlterTableInput - a model defined in Swagger""" # noqa: E501
51+
if _configuration is None:
52+
_configuration = Configuration()
53+
self._configuration = _configuration
54+
55+
self._caller_psm = None
56+
self._fetch_size = None
57+
self._quota_size = None
58+
self._template = None
59+
self.discriminator = None
60+
61+
if caller_psm is not None:
62+
self.caller_psm = caller_psm
63+
if fetch_size is not None:
64+
self.fetch_size = fetch_size
65+
if quota_size is not None:
66+
self.quota_size = quota_size
67+
if template is not None:
68+
self.template = template
69+
70+
@property
71+
def caller_psm(self):
72+
"""Gets the caller_psm of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
73+
74+
75+
:return: The caller_psm of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
76+
:rtype: str
77+
"""
78+
return self._caller_psm
79+
80+
@caller_psm.setter
81+
def caller_psm(self, caller_psm):
82+
"""Sets the caller_psm of this GremlinQuotaConfigForAlterTableInput.
83+
84+
85+
:param caller_psm: The caller_psm of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
86+
:type: str
87+
"""
88+
89+
self._caller_psm = caller_psm
90+
91+
@property
92+
def fetch_size(self):
93+
"""Gets the fetch_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
94+
95+
96+
:return: The fetch_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
97+
:rtype: int
98+
"""
99+
return self._fetch_size
100+
101+
@fetch_size.setter
102+
def fetch_size(self, fetch_size):
103+
"""Sets the fetch_size of this GremlinQuotaConfigForAlterTableInput.
104+
105+
106+
:param fetch_size: The fetch_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
107+
:type: int
108+
"""
109+
110+
self._fetch_size = fetch_size
111+
112+
@property
113+
def quota_size(self):
114+
"""Gets the quota_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
115+
116+
117+
:return: The quota_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
118+
:rtype: int
119+
"""
120+
return self._quota_size
121+
122+
@quota_size.setter
123+
def quota_size(self, quota_size):
124+
"""Sets the quota_size of this GremlinQuotaConfigForAlterTableInput.
125+
126+
127+
:param quota_size: The quota_size of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
128+
:type: int
129+
"""
130+
131+
self._quota_size = quota_size
132+
133+
@property
134+
def template(self):
135+
"""Gets the template of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
136+
137+
138+
:return: The template of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
139+
:rtype: str
140+
"""
141+
return self._template
142+
143+
@template.setter
144+
def template(self, template):
145+
"""Sets the template of this GremlinQuotaConfigForAlterTableInput.
146+
147+
148+
:param template: The template of this GremlinQuotaConfigForAlterTableInput. # noqa: E501
149+
:type: str
150+
"""
151+
152+
self._template = template
153+
154+
def to_dict(self):
155+
"""Returns the model properties as a dict"""
156+
result = {}
157+
158+
for attr, _ in six.iteritems(self.swagger_types):
159+
value = getattr(self, attr)
160+
if isinstance(value, list):
161+
result[attr] = list(map(
162+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163+
value
164+
))
165+
elif hasattr(value, "to_dict"):
166+
result[attr] = value.to_dict()
167+
elif isinstance(value, dict):
168+
result[attr] = dict(map(
169+
lambda item: (item[0], item[1].to_dict())
170+
if hasattr(item[1], "to_dict") else item,
171+
value.items()
172+
))
173+
else:
174+
result[attr] = value
175+
if issubclass(GremlinQuotaConfigForAlterTableInput, dict):
176+
for key, value in self.items():
177+
result[key] = value
178+
179+
return result
180+
181+
def to_str(self):
182+
"""Returns the string representation of the model"""
183+
return pprint.pformat(self.to_dict())
184+
185+
def __repr__(self):
186+
"""For `print` and `pprint`"""
187+
return self.to_str()
188+
189+
def __eq__(self, other):
190+
"""Returns true if both objects are equal"""
191+
if not isinstance(other, GremlinQuotaConfigForAlterTableInput):
192+
return False
193+
194+
return self.to_dict() == other.to_dict()
195+
196+
def __ne__(self, other):
197+
"""Returns true if both objects are not equal"""
198+
if not isinstance(other, GremlinQuotaConfigForAlterTableInput):
199+
return True
200+
201+
return self.to_dict() != other.to_dict()

0 commit comments

Comments
 (0)