lightning-sdk 0.1.41__py3-none-any.whl → 0.1.43__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.
Files changed (77) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +8 -3
  3. lightning_sdk/api/ai_hub_api.py +3 -3
  4. lightning_sdk/api/deployment_api.py +6 -6
  5. lightning_sdk/api/job_api.py +32 -6
  6. lightning_sdk/api/mmt_api.py +59 -19
  7. lightning_sdk/api/studio_api.py +37 -19
  8. lightning_sdk/api/teamspace_api.py +34 -29
  9. lightning_sdk/api/utils.py +46 -34
  10. lightning_sdk/cli/ai_hub.py +3 -3
  11. lightning_sdk/cli/entrypoint.py +3 -1
  12. lightning_sdk/cli/run.py +122 -12
  13. lightning_sdk/cli/serve.py +218 -0
  14. lightning_sdk/deployment/deployment.py +18 -12
  15. lightning_sdk/job/base.py +118 -24
  16. lightning_sdk/job/job.py +98 -9
  17. lightning_sdk/job/v1.py +75 -18
  18. lightning_sdk/job/v2.py +51 -15
  19. lightning_sdk/job/work.py +36 -7
  20. lightning_sdk/lightning_cloud/openapi/__init__.py +12 -0
  21. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +215 -5
  22. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +218 -0
  23. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +226 -0
  24. lightning_sdk/lightning_cloud/openapi/api/snowflake_service_api.py +21 -1
  25. lightning_sdk/lightning_cloud/openapi/models/__init__.py +12 -0
  26. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/id_visibility_body.py +123 -0
  28. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +29 -3
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_multimachinejobs_body.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_snowflake_body.py +15 -67
  31. lightning_sdk/lightning_cloud/openapi/models/query_query_id_body.py +17 -69
  32. lightning_sdk/lightning_cloud/openapi/models/snowflake_export_body.py +29 -81
  33. lightning_sdk/lightning_cloud/openapi/models/snowflake_query_body.py +17 -69
  34. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_file_url_response.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_response.py +17 -17
  36. lightning_sdk/lightning_cloud/openapi/models/v1_get_model_files_url_response.py +149 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_list_multi_machine_job_events_response.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_model_file.py +175 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event.py +331 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_event_type.py +104 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_fault_tolerance_strategy.py +105 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_multi_machine_job_status.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_snowflake_data_connection.py +29 -81
  49. lightning_sdk/lightning_cloud/openapi/models/v1_system_metrics.py +29 -3
  50. lightning_sdk/lightning_cloud/openapi/models/v1_trainium_system_metrics.py +175 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_update_metrics_stream_visibility_response.py +97 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +27 -53
  53. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_request.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_validate_deployment_image_response.py +97 -0
  55. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  56. lightning_sdk/mmt/__init__.py +4 -0
  57. lightning_sdk/mmt/base.py +278 -0
  58. lightning_sdk/mmt/mmt.py +267 -0
  59. lightning_sdk/mmt/v1.py +181 -0
  60. lightning_sdk/mmt/v2.py +188 -0
  61. lightning_sdk/plugin.py +43 -16
  62. lightning_sdk/services/file_endpoint.py +11 -5
  63. lightning_sdk/studio.py +16 -9
  64. lightning_sdk/teamspace.py +21 -8
  65. lightning_sdk/utils/resolve.py +18 -0
  66. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/METADATA +4 -1
  67. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/RECORD +71 -59
  68. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/entry_points.txt +0 -1
  69. lightning_sdk/_mmt/__init__.py +0 -3
  70. lightning_sdk/_mmt/base.py +0 -180
  71. lightning_sdk/_mmt/mmt.py +0 -161
  72. lightning_sdk/_mmt/v1.py +0 -69
  73. lightning_sdk/_mmt/v2.py +0 -141
  74. lightning_sdk/cli/mmt.py +0 -137
  75. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/LICENSE +0 -0
  76. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/WHEEL +0 -0
  77. {lightning_sdk-0.1.41.dist-info → lightning_sdk-0.1.43.dist-info}/top_level.txt +0 -0
@@ -41,92 +41,40 @@ class ProjectIdSnowflakeBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'account': 'str',
45
- 'password': 'str',
46
- 'username': 'str'
44
+ 'credential_id': 'str'
47
45
  }
48
46
 
49
47
  attribute_map = {
50
- 'account': 'account',
51
- 'password': 'password',
52
- 'username': 'username'
48
+ 'credential_id': 'credentialId'
53
49
  }
54
50
 
55
- def __init__(self, account: 'str' =None, password: 'str' =None, username: 'str' =None): # noqa: E501
51
+ def __init__(self, credential_id: 'str' =None): # noqa: E501
56
52
  """ProjectIdSnowflakeBody - a model defined in Swagger""" # noqa: E501
57
- self._account = None
58
- self._password = None
59
- self._username = None
53
+ self._credential_id = None
60
54
  self.discriminator = None
61
- if account is not None:
62
- self.account = account
63
- if password is not None:
64
- self.password = password
65
- if username is not None:
66
- self.username = username
55
+ if credential_id is not None:
56
+ self.credential_id = credential_id
67
57
 
68
58
  @property
69
- def account(self) -> 'str':
70
- """Gets the account of this ProjectIdSnowflakeBody. # noqa: E501
59
+ def credential_id(self) -> 'str':
60
+ """Gets the credential_id of this ProjectIdSnowflakeBody. # noqa: E501
71
61
 
72
62
 
73
- :return: The account of this ProjectIdSnowflakeBody. # noqa: E501
63
+ :return: The credential_id of this ProjectIdSnowflakeBody. # noqa: E501
74
64
  :rtype: str
75
65
  """
76
- return self._account
66
+ return self._credential_id
77
67
 
78
- @account.setter
79
- def account(self, account: 'str'):
80
- """Sets the account of this ProjectIdSnowflakeBody.
68
+ @credential_id.setter
69
+ def credential_id(self, credential_id: 'str'):
70
+ """Sets the credential_id of this ProjectIdSnowflakeBody.
81
71
 
82
72
 
83
- :param account: The account of this ProjectIdSnowflakeBody. # noqa: E501
73
+ :param credential_id: The credential_id of this ProjectIdSnowflakeBody. # noqa: E501
84
74
  :type: str
85
75
  """
86
76
 
87
- self._account = account
88
-
89
- @property
90
- def password(self) -> 'str':
91
- """Gets the password of this ProjectIdSnowflakeBody. # noqa: E501
92
-
93
-
94
- :return: The password of this ProjectIdSnowflakeBody. # noqa: E501
95
- :rtype: str
96
- """
97
- return self._password
98
-
99
- @password.setter
100
- def password(self, password: 'str'):
101
- """Sets the password of this ProjectIdSnowflakeBody.
102
-
103
-
104
- :param password: The password of this ProjectIdSnowflakeBody. # noqa: E501
105
- :type: str
106
- """
107
-
108
- self._password = password
109
-
110
- @property
111
- def username(self) -> 'str':
112
- """Gets the username of this ProjectIdSnowflakeBody. # noqa: E501
113
-
114
-
115
- :return: The username of this ProjectIdSnowflakeBody. # noqa: E501
116
- :rtype: str
117
- """
118
- return self._username
119
-
120
- @username.setter
121
- def username(self, username: 'str'):
122
- """Sets the username of this ProjectIdSnowflakeBody.
123
-
124
-
125
- :param username: The username of this ProjectIdSnowflakeBody. # noqa: E501
126
- :type: str
127
- """
128
-
129
- self._username = username
77
+ self._credential_id = credential_id
130
78
 
131
79
  def to_dict(self) -> dict:
132
80
  """Returns the model properties as a dict"""
@@ -41,60 +41,29 @@ class QueryQueryIdBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'account': 'str',
45
44
  'connection_id': 'str',
46
- 'password': 'str',
47
- 'query': 'str',
48
- 'username': 'str'
45
+ 'credential_id': 'str',
46
+ 'query': 'str'
49
47
  }
50
48
 
51
49
  attribute_map = {
52
- 'account': 'account',
53
50
  'connection_id': 'connectionId',
54
- 'password': 'password',
55
- 'query': 'query',
56
- 'username': 'username'
51
+ 'credential_id': 'credentialId',
52
+ 'query': 'query'
57
53
  }
58
54
 
59
- def __init__(self, account: 'str' =None, connection_id: 'str' =None, password: 'str' =None, query: 'str' =None, username: 'str' =None): # noqa: E501
55
+ def __init__(self, connection_id: 'str' =None, credential_id: 'str' =None, query: 'str' =None): # noqa: E501
60
56
  """QueryQueryIdBody - a model defined in Swagger""" # noqa: E501
61
- self._account = None
62
57
  self._connection_id = None
63
- self._password = None
58
+ self._credential_id = None
64
59
  self._query = None
65
- self._username = None
66
60
  self.discriminator = None
67
- if account is not None:
68
- self.account = account
69
61
  if connection_id is not None:
70
62
  self.connection_id = connection_id
71
- if password is not None:
72
- self.password = password
63
+ if credential_id is not None:
64
+ self.credential_id = credential_id
73
65
  if query is not None:
74
66
  self.query = query
75
- if username is not None:
76
- self.username = username
77
-
78
- @property
79
- def account(self) -> 'str':
80
- """Gets the account of this QueryQueryIdBody. # noqa: E501
81
-
82
-
83
- :return: The account of this QueryQueryIdBody. # noqa: E501
84
- :rtype: str
85
- """
86
- return self._account
87
-
88
- @account.setter
89
- def account(self, account: 'str'):
90
- """Sets the account of this QueryQueryIdBody.
91
-
92
-
93
- :param account: The account of this QueryQueryIdBody. # noqa: E501
94
- :type: str
95
- """
96
-
97
- self._account = account
98
67
 
99
68
  @property
100
69
  def connection_id(self) -> 'str':
@@ -118,25 +87,25 @@ class QueryQueryIdBody(object):
118
87
  self._connection_id = connection_id
119
88
 
120
89
  @property
121
- def password(self) -> 'str':
122
- """Gets the password of this QueryQueryIdBody. # noqa: E501
90
+ def credential_id(self) -> 'str':
91
+ """Gets the credential_id of this QueryQueryIdBody. # noqa: E501
123
92
 
124
93
 
125
- :return: The password of this QueryQueryIdBody. # noqa: E501
94
+ :return: The credential_id of this QueryQueryIdBody. # noqa: E501
126
95
  :rtype: str
127
96
  """
128
- return self._password
97
+ return self._credential_id
129
98
 
130
- @password.setter
131
- def password(self, password: 'str'):
132
- """Sets the password of this QueryQueryIdBody.
99
+ @credential_id.setter
100
+ def credential_id(self, credential_id: 'str'):
101
+ """Sets the credential_id of this QueryQueryIdBody.
133
102
 
134
103
 
135
- :param password: The password of this QueryQueryIdBody. # noqa: E501
104
+ :param credential_id: The credential_id of this QueryQueryIdBody. # noqa: E501
136
105
  :type: str
137
106
  """
138
107
 
139
- self._password = password
108
+ self._credential_id = credential_id
140
109
 
141
110
  @property
142
111
  def query(self) -> 'str':
@@ -159,27 +128,6 @@ class QueryQueryIdBody(object):
159
128
 
160
129
  self._query = query
161
130
 
162
- @property
163
- def username(self) -> 'str':
164
- """Gets the username of this QueryQueryIdBody. # noqa: E501
165
-
166
-
167
- :return: The username of this QueryQueryIdBody. # noqa: E501
168
- :rtype: str
169
- """
170
- return self._username
171
-
172
- @username.setter
173
- def username(self, username: 'str'):
174
- """Sets the username of this QueryQueryIdBody.
175
-
176
-
177
- :param username: The username of this QueryQueryIdBody. # noqa: E501
178
- :type: str
179
- """
180
-
181
- self._username = username
182
-
183
131
  def to_dict(self) -> dict:
184
132
  """Returns the model properties as a dict"""
185
133
  result = {}
@@ -41,85 +41,54 @@ class SnowflakeExportBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'account': 'str',
45
44
  'cluster_id': 'str',
46
45
  'compress': 'bool',
47
46
  'connection_id': 'str',
47
+ 'credential_id': 'str',
48
48
  'format': 'str',
49
49
  'include_header': 'bool',
50
- 'password': 'str',
51
50
  'query': 'str',
52
- 'query_name': 'str',
53
- 'username': 'str'
51
+ 'query_name': 'str'
54
52
  }
55
53
 
56
54
  attribute_map = {
57
- 'account': 'account',
58
55
  'cluster_id': 'clusterId',
59
56
  'compress': 'compress',
60
57
  'connection_id': 'connectionId',
58
+ 'credential_id': 'credentialId',
61
59
  'format': 'format',
62
60
  'include_header': 'includeHeader',
63
- 'password': 'password',
64
61
  'query': 'query',
65
- 'query_name': 'queryName',
66
- 'username': 'username'
62
+ 'query_name': 'queryName'
67
63
  }
68
64
 
69
- def __init__(self, account: 'str' =None, cluster_id: 'str' =None, compress: 'bool' =None, connection_id: 'str' =None, format: 'str' =None, include_header: 'bool' =None, password: 'str' =None, query: 'str' =None, query_name: 'str' =None, username: 'str' =None): # noqa: E501
65
+ def __init__(self, cluster_id: 'str' =None, compress: 'bool' =None, connection_id: 'str' =None, credential_id: 'str' =None, format: 'str' =None, include_header: 'bool' =None, query: 'str' =None, query_name: 'str' =None): # noqa: E501
70
66
  """SnowflakeExportBody - a model defined in Swagger""" # noqa: E501
71
- self._account = None
72
67
  self._cluster_id = None
73
68
  self._compress = None
74
69
  self._connection_id = None
70
+ self._credential_id = None
75
71
  self._format = None
76
72
  self._include_header = None
77
- self._password = None
78
73
  self._query = None
79
74
  self._query_name = None
80
- self._username = None
81
75
  self.discriminator = None
82
- if account is not None:
83
- self.account = account
84
76
  if cluster_id is not None:
85
77
  self.cluster_id = cluster_id
86
78
  if compress is not None:
87
79
  self.compress = compress
88
80
  if connection_id is not None:
89
81
  self.connection_id = connection_id
82
+ if credential_id is not None:
83
+ self.credential_id = credential_id
90
84
  if format is not None:
91
85
  self.format = format
92
86
  if include_header is not None:
93
87
  self.include_header = include_header
94
- if password is not None:
95
- self.password = password
96
88
  if query is not None:
97
89
  self.query = query
98
90
  if query_name is not None:
99
91
  self.query_name = query_name
100
- if username is not None:
101
- self.username = username
102
-
103
- @property
104
- def account(self) -> 'str':
105
- """Gets the account of this SnowflakeExportBody. # noqa: E501
106
-
107
-
108
- :return: The account of this SnowflakeExportBody. # noqa: E501
109
- :rtype: str
110
- """
111
- return self._account
112
-
113
- @account.setter
114
- def account(self, account: 'str'):
115
- """Sets the account of this SnowflakeExportBody.
116
-
117
-
118
- :param account: The account of this SnowflakeExportBody. # noqa: E501
119
- :type: str
120
- """
121
-
122
- self._account = account
123
92
 
124
93
  @property
125
94
  def cluster_id(self) -> 'str':
@@ -184,6 +153,27 @@ class SnowflakeExportBody(object):
184
153
 
185
154
  self._connection_id = connection_id
186
155
 
156
+ @property
157
+ def credential_id(self) -> 'str':
158
+ """Gets the credential_id of this SnowflakeExportBody. # noqa: E501
159
+
160
+
161
+ :return: The credential_id of this SnowflakeExportBody. # noqa: E501
162
+ :rtype: str
163
+ """
164
+ return self._credential_id
165
+
166
+ @credential_id.setter
167
+ def credential_id(self, credential_id: 'str'):
168
+ """Sets the credential_id of this SnowflakeExportBody.
169
+
170
+
171
+ :param credential_id: The credential_id of this SnowflakeExportBody. # noqa: E501
172
+ :type: str
173
+ """
174
+
175
+ self._credential_id = credential_id
176
+
187
177
  @property
188
178
  def format(self) -> 'str':
189
179
  """Gets the format of this SnowflakeExportBody. # noqa: E501
@@ -226,27 +216,6 @@ class SnowflakeExportBody(object):
226
216
 
227
217
  self._include_header = include_header
228
218
 
229
- @property
230
- def password(self) -> 'str':
231
- """Gets the password of this SnowflakeExportBody. # noqa: E501
232
-
233
-
234
- :return: The password of this SnowflakeExportBody. # noqa: E501
235
- :rtype: str
236
- """
237
- return self._password
238
-
239
- @password.setter
240
- def password(self, password: 'str'):
241
- """Sets the password of this SnowflakeExportBody.
242
-
243
-
244
- :param password: The password of this SnowflakeExportBody. # noqa: E501
245
- :type: str
246
- """
247
-
248
- self._password = password
249
-
250
219
  @property
251
220
  def query(self) -> 'str':
252
221
  """Gets the query of this SnowflakeExportBody. # noqa: E501
@@ -289,27 +258,6 @@ class SnowflakeExportBody(object):
289
258
 
290
259
  self._query_name = query_name
291
260
 
292
- @property
293
- def username(self) -> 'str':
294
- """Gets the username of this SnowflakeExportBody. # noqa: E501
295
-
296
-
297
- :return: The username of this SnowflakeExportBody. # noqa: E501
298
- :rtype: str
299
- """
300
- return self._username
301
-
302
- @username.setter
303
- def username(self, username: 'str'):
304
- """Sets the username of this SnowflakeExportBody.
305
-
306
-
307
- :param username: The username of this SnowflakeExportBody. # noqa: E501
308
- :type: str
309
- """
310
-
311
- self._username = username
312
-
313
261
  def to_dict(self) -> dict:
314
262
  """Returns the model properties as a dict"""
315
263
  result = {}
@@ -41,60 +41,29 @@ class SnowflakeQueryBody(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'account': 'str',
45
44
  'connection_id': 'str',
46
- 'password': 'str',
47
- 'query': 'str',
48
- 'username': 'str'
45
+ 'credential_id': 'str',
46
+ 'query': 'str'
49
47
  }
50
48
 
51
49
  attribute_map = {
52
- 'account': 'account',
53
50
  'connection_id': 'connectionId',
54
- 'password': 'password',
55
- 'query': 'query',
56
- 'username': 'username'
51
+ 'credential_id': 'credentialId',
52
+ 'query': 'query'
57
53
  }
58
54
 
59
- def __init__(self, account: 'str' =None, connection_id: 'str' =None, password: 'str' =None, query: 'str' =None, username: 'str' =None): # noqa: E501
55
+ def __init__(self, connection_id: 'str' =None, credential_id: 'str' =None, query: 'str' =None): # noqa: E501
60
56
  """SnowflakeQueryBody - a model defined in Swagger""" # noqa: E501
61
- self._account = None
62
57
  self._connection_id = None
63
- self._password = None
58
+ self._credential_id = None
64
59
  self._query = None
65
- self._username = None
66
60
  self.discriminator = None
67
- if account is not None:
68
- self.account = account
69
61
  if connection_id is not None:
70
62
  self.connection_id = connection_id
71
- if password is not None:
72
- self.password = password
63
+ if credential_id is not None:
64
+ self.credential_id = credential_id
73
65
  if query is not None:
74
66
  self.query = query
75
- if username is not None:
76
- self.username = username
77
-
78
- @property
79
- def account(self) -> 'str':
80
- """Gets the account of this SnowflakeQueryBody. # noqa: E501
81
-
82
-
83
- :return: The account of this SnowflakeQueryBody. # noqa: E501
84
- :rtype: str
85
- """
86
- return self._account
87
-
88
- @account.setter
89
- def account(self, account: 'str'):
90
- """Sets the account of this SnowflakeQueryBody.
91
-
92
-
93
- :param account: The account of this SnowflakeQueryBody. # noqa: E501
94
- :type: str
95
- """
96
-
97
- self._account = account
98
67
 
99
68
  @property
100
69
  def connection_id(self) -> 'str':
@@ -118,25 +87,25 @@ class SnowflakeQueryBody(object):
118
87
  self._connection_id = connection_id
119
88
 
120
89
  @property
121
- def password(self) -> 'str':
122
- """Gets the password of this SnowflakeQueryBody. # noqa: E501
90
+ def credential_id(self) -> 'str':
91
+ """Gets the credential_id of this SnowflakeQueryBody. # noqa: E501
123
92
 
124
93
 
125
- :return: The password of this SnowflakeQueryBody. # noqa: E501
94
+ :return: The credential_id of this SnowflakeQueryBody. # noqa: E501
126
95
  :rtype: str
127
96
  """
128
- return self._password
97
+ return self._credential_id
129
98
 
130
- @password.setter
131
- def password(self, password: 'str'):
132
- """Sets the password of this SnowflakeQueryBody.
99
+ @credential_id.setter
100
+ def credential_id(self, credential_id: 'str'):
101
+ """Sets the credential_id of this SnowflakeQueryBody.
133
102
 
134
103
 
135
- :param password: The password of this SnowflakeQueryBody. # noqa: E501
104
+ :param credential_id: The credential_id of this SnowflakeQueryBody. # noqa: E501
136
105
  :type: str
137
106
  """
138
107
 
139
- self._password = password
108
+ self._credential_id = credential_id
140
109
 
141
110
  @property
142
111
  def query(self) -> 'str':
@@ -159,27 +128,6 @@ class SnowflakeQueryBody(object):
159
128
 
160
129
  self._query = query
161
130
 
162
- @property
163
- def username(self) -> 'str':
164
- """Gets the username of this SnowflakeQueryBody. # noqa: E501
165
-
166
-
167
- :return: The username of this SnowflakeQueryBody. # noqa: E501
168
- :rtype: str
169
- """
170
- return self._username
171
-
172
- @username.setter
173
- def username(self, username: 'str'):
174
- """Sets the username of this SnowflakeQueryBody.
175
-
176
-
177
- :param username: The username of this SnowflakeQueryBody. # noqa: E501
178
- :type: str
179
- """
180
-
181
- self._username = username
182
-
183
131
  def to_dict(self) -> dict:
184
132
  """Returns the model properties as a dict"""
185
133
  result = {}
@@ -41,25 +41,51 @@ class V1GetModelFileUrlResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'filepath': 'str',
44
45
  'size': 'str',
45
46
  'url': 'str'
46
47
  }
47
48
 
48
49
  attribute_map = {
50
+ 'filepath': 'filepath',
49
51
  'size': 'size',
50
52
  'url': 'url'
51
53
  }
52
54
 
53
- def __init__(self, size: 'str' =None, url: 'str' =None): # noqa: E501
55
+ def __init__(self, filepath: 'str' =None, size: 'str' =None, url: 'str' =None): # noqa: E501
54
56
  """V1GetModelFileUrlResponse - a model defined in Swagger""" # noqa: E501
57
+ self._filepath = None
55
58
  self._size = None
56
59
  self._url = None
57
60
  self.discriminator = None
61
+ if filepath is not None:
62
+ self.filepath = filepath
58
63
  if size is not None:
59
64
  self.size = size
60
65
  if url is not None:
61
66
  self.url = url
62
67
 
68
+ @property
69
+ def filepath(self) -> 'str':
70
+ """Gets the filepath of this V1GetModelFileUrlResponse. # noqa: E501
71
+
72
+
73
+ :return: The filepath of this V1GetModelFileUrlResponse. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._filepath
77
+
78
+ @filepath.setter
79
+ def filepath(self, filepath: 'str'):
80
+ """Sets the filepath of this V1GetModelFileUrlResponse.
81
+
82
+
83
+ :param filepath: The filepath of this V1GetModelFileUrlResponse. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._filepath = filepath
88
+
63
89
  @property
64
90
  def size(self) -> 'str':
65
91
  """Gets the size of this V1GetModelFileUrlResponse. # noqa: E501
@@ -42,7 +42,7 @@ class V1GetModelFilesResponse(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'filepaths': 'list[str]',
45
- 'filesizes': 'list[str]',
45
+ 'files': 'list[V1ModelFile]',
46
46
  'model_id': 'str',
47
47
  'project_id': 'str',
48
48
  'size_bytes': 'str',
@@ -52,7 +52,7 @@ class V1GetModelFilesResponse(object):
52
52
 
53
53
  attribute_map = {
54
54
  'filepaths': 'filepaths',
55
- 'filesizes': 'filesizes',
55
+ 'files': 'files',
56
56
  'model_id': 'modelId',
57
57
  'project_id': 'projectId',
58
58
  'size_bytes': 'sizeBytes',
@@ -60,10 +60,10 @@ class V1GetModelFilesResponse(object):
60
60
  'version': 'version'
61
61
  }
62
62
 
63
- def __init__(self, filepaths: 'list[str]' =None, filesizes: 'list[str]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
63
+ def __init__(self, filepaths: 'list[str]' =None, files: 'list[V1ModelFile]' =None, model_id: 'str' =None, project_id: 'str' =None, size_bytes: 'str' =None, upload_complete: 'bool' =None, version: 'str' =None): # noqa: E501
64
64
  """V1GetModelFilesResponse - a model defined in Swagger""" # noqa: E501
65
65
  self._filepaths = None
66
- self._filesizes = None
66
+ self._files = None
67
67
  self._model_id = None
68
68
  self._project_id = None
69
69
  self._size_bytes = None
@@ -72,8 +72,8 @@ class V1GetModelFilesResponse(object):
72
72
  self.discriminator = None
73
73
  if filepaths is not None:
74
74
  self.filepaths = filepaths
75
- if filesizes is not None:
76
- self.filesizes = filesizes
75
+ if files is not None:
76
+ self.files = files
77
77
  if model_id is not None:
78
78
  self.model_id = model_id
79
79
  if project_id is not None:
@@ -107,25 +107,25 @@ class V1GetModelFilesResponse(object):
107
107
  self._filepaths = filepaths
108
108
 
109
109
  @property
110
- def filesizes(self) -> 'list[str]':
111
- """Gets the filesizes of this V1GetModelFilesResponse. # noqa: E501
110
+ def files(self) -> 'list[V1ModelFile]':
111
+ """Gets the files of this V1GetModelFilesResponse. # noqa: E501
112
112
 
113
113
 
114
- :return: The filesizes of this V1GetModelFilesResponse. # noqa: E501
115
- :rtype: list[str]
114
+ :return: The files of this V1GetModelFilesResponse. # noqa: E501
115
+ :rtype: list[V1ModelFile]
116
116
  """
117
- return self._filesizes
117
+ return self._files
118
118
 
119
- @filesizes.setter
120
- def filesizes(self, filesizes: 'list[str]'):
121
- """Sets the filesizes of this V1GetModelFilesResponse.
119
+ @files.setter
120
+ def files(self, files: 'list[V1ModelFile]'):
121
+ """Sets the files of this V1GetModelFilesResponse.
122
122
 
123
123
 
124
- :param filesizes: The filesizes of this V1GetModelFilesResponse. # noqa: E501
125
- :type: list[str]
124
+ :param files: The files of this V1GetModelFilesResponse. # noqa: E501
125
+ :type: list[V1ModelFile]
126
126
  """
127
127
 
128
- self._filesizes = filesizes
128
+ self._files = files
129
129
 
130
130
  @property
131
131
  def model_id(self) -> 'str':