lightning-sdk 0.2.13__py3-none-any.whl → 0.2.15__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 (83) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +73 -0
  3. lightning_sdk/api/license_api.py +48 -0
  4. lightning_sdk/api/llm_api.py +61 -8
  5. lightning_sdk/api/studio_api.py +47 -1
  6. lightning_sdk/base_studio.py +70 -0
  7. lightning_sdk/cli/delete.py +6 -8
  8. lightning_sdk/cli/download.py +25 -0
  9. lightning_sdk/cli/serve.py +82 -30
  10. lightning_sdk/cli/teamspace_menu.py +9 -1
  11. lightning_sdk/cli/upload.py +0 -1
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
  16. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
  18. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  19. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  20. lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
  21. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  22. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  28. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  41. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  45. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
  55. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  58. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
  72. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  73. lightning_sdk/llm/llm.py +120 -30
  74. lightning_sdk/services/__init__.py +1 -1
  75. lightning_sdk/services/license.py +236 -0
  76. lightning_sdk/studio.py +30 -0
  77. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
  78. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
  79. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  80. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
  81. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
  82. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
  83. {lightning_sdk-0.2.13.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
@@ -41,24 +41,55 @@ class V1CompleteUpload(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'cluster_id': 'str',
44
45
  'etag': 'str',
45
- 'part_number': 'str'
46
+ 'part_number': 'str',
47
+ 'upload_id': 'str'
46
48
  }
47
49
 
48
50
  attribute_map = {
51
+ 'cluster_id': 'clusterId',
49
52
  'etag': 'etag',
50
- 'part_number': 'partNumber'
53
+ 'part_number': 'partNumber',
54
+ 'upload_id': 'uploadId'
51
55
  }
52
56
 
53
- def __init__(self, etag: 'str' =None, part_number: 'str' =None): # noqa: E501
57
+ def __init__(self, cluster_id: 'str' =None, etag: 'str' =None, part_number: 'str' =None, upload_id: 'str' =None): # noqa: E501
54
58
  """V1CompleteUpload - a model defined in Swagger""" # noqa: E501
59
+ self._cluster_id = None
55
60
  self._etag = None
56
61
  self._part_number = None
62
+ self._upload_id = None
57
63
  self.discriminator = None
64
+ if cluster_id is not None:
65
+ self.cluster_id = cluster_id
58
66
  if etag is not None:
59
67
  self.etag = etag
60
68
  if part_number is not None:
61
69
  self.part_number = part_number
70
+ if upload_id is not None:
71
+ self.upload_id = upload_id
72
+
73
+ @property
74
+ def cluster_id(self) -> 'str':
75
+ """Gets the cluster_id of this V1CompleteUpload. # noqa: E501
76
+
77
+
78
+ :return: The cluster_id of this V1CompleteUpload. # noqa: E501
79
+ :rtype: str
80
+ """
81
+ return self._cluster_id
82
+
83
+ @cluster_id.setter
84
+ def cluster_id(self, cluster_id: 'str'):
85
+ """Sets the cluster_id of this V1CompleteUpload.
86
+
87
+
88
+ :param cluster_id: The cluster_id of this V1CompleteUpload. # noqa: E501
89
+ :type: str
90
+ """
91
+
92
+ self._cluster_id = cluster_id
62
93
 
63
94
  @property
64
95
  def etag(self) -> 'str':
@@ -102,6 +133,27 @@ class V1CompleteUpload(object):
102
133
 
103
134
  self._part_number = part_number
104
135
 
136
+ @property
137
+ def upload_id(self) -> 'str':
138
+ """Gets the upload_id of this V1CompleteUpload. # noqa: E501
139
+
140
+
141
+ :return: The upload_id of this V1CompleteUpload. # noqa: E501
142
+ :rtype: str
143
+ """
144
+ return self._upload_id
145
+
146
+ @upload_id.setter
147
+ def upload_id(self, upload_id: 'str'):
148
+ """Sets the upload_id of this V1CompleteUpload.
149
+
150
+
151
+ :param upload_id: The upload_id of this V1CompleteUpload. # noqa: E501
152
+ :type: str
153
+ """
154
+
155
+ self._upload_id = upload_id
156
+
105
157
  def to_dict(self) -> dict:
106
158
  """Returns the model properties as a dict"""
107
159
  result = {}
@@ -45,6 +45,7 @@ class V1Conversation(object):
45
45
  'created_at': 'datetime',
46
46
  'id': 'str',
47
47
  'messages': 'list[V1Message]',
48
+ 'name': 'str',
48
49
  'project_id': 'str',
49
50
  'title': 'str',
50
51
  'updated_at': 'datetime',
@@ -56,18 +57,20 @@ class V1Conversation(object):
56
57
  'created_at': 'createdAt',
57
58
  'id': 'id',
58
59
  'messages': 'messages',
60
+ 'name': 'name',
59
61
  'project_id': 'projectId',
60
62
  'title': 'title',
61
63
  'updated_at': 'updatedAt',
62
64
  'user_id': 'userId'
63
65
  }
64
66
 
65
- def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, messages: 'list[V1Message]' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
67
+ def __init__(self, assistant_id: 'str' =None, created_at: 'datetime' =None, id: 'str' =None, messages: 'list[V1Message]' =None, name: 'str' =None, project_id: 'str' =None, title: 'str' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
66
68
  """V1Conversation - a model defined in Swagger""" # noqa: E501
67
69
  self._assistant_id = None
68
70
  self._created_at = None
69
71
  self._id = None
70
72
  self._messages = None
73
+ self._name = None
71
74
  self._project_id = None
72
75
  self._title = None
73
76
  self._updated_at = None
@@ -81,6 +84,8 @@ class V1Conversation(object):
81
84
  self.id = id
82
85
  if messages is not None:
83
86
  self.messages = messages
87
+ if name is not None:
88
+ self.name = name
84
89
  if project_id is not None:
85
90
  self.project_id = project_id
86
91
  if title is not None:
@@ -174,6 +179,27 @@ class V1Conversation(object):
174
179
 
175
180
  self._messages = messages
176
181
 
182
+ @property
183
+ def name(self) -> 'str':
184
+ """Gets the name of this V1Conversation. # noqa: E501
185
+
186
+
187
+ :return: The name of this V1Conversation. # noqa: E501
188
+ :rtype: str
189
+ """
190
+ return self._name
191
+
192
+ @name.setter
193
+ def name(self, name: 'str'):
194
+ """Sets the name of this V1Conversation.
195
+
196
+
197
+ :param name: The name of this V1Conversation. # noqa: E501
198
+ :type: str
199
+ """
200
+
201
+ self._name = name
202
+
177
203
  @property
178
204
  def project_id(self) -> 'str':
179
205
  """Gets the project_id of this V1Conversation. # noqa: E501
@@ -41,6 +41,9 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allowed_machines': 'list[str]',
45
+ 'default_machine': 'str',
46
+ 'environment_type': 'V1CloudSpaceEnvironmentType',
44
47
  'machine_image_version': 'str',
45
48
  'name': 'str',
46
49
  'org_id': 'str',
@@ -48,19 +51,31 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
48
51
  }
49
52
 
50
53
  attribute_map = {
54
+ 'allowed_machines': 'allowedMachines',
55
+ 'default_machine': 'defaultMachine',
56
+ 'environment_type': 'environmentType',
51
57
  'machine_image_version': 'machineImageVersion',
52
58
  'name': 'name',
53
59
  'org_id': 'orgId',
54
60
  'setup_script_text': 'setupScriptText'
55
61
  }
56
62
 
57
- def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
63
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
58
64
  """V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
65
+ self._allowed_machines = None
66
+ self._default_machine = None
67
+ self._environment_type = None
59
68
  self._machine_image_version = None
60
69
  self._name = None
61
70
  self._org_id = None
62
71
  self._setup_script_text = None
63
72
  self.discriminator = None
73
+ if allowed_machines is not None:
74
+ self.allowed_machines = allowed_machines
75
+ if default_machine is not None:
76
+ self.default_machine = default_machine
77
+ if environment_type is not None:
78
+ self.environment_type = environment_type
64
79
  if machine_image_version is not None:
65
80
  self.machine_image_version = machine_image_version
66
81
  if name is not None:
@@ -70,6 +85,69 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
70
85
  if setup_script_text is not None:
71
86
  self.setup_script_text = setup_script_text
72
87
 
88
+ @property
89
+ def allowed_machines(self) -> 'list[str]':
90
+ """Gets the allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
91
+
92
+
93
+ :return: The allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
94
+ :rtype: list[str]
95
+ """
96
+ return self._allowed_machines
97
+
98
+ @allowed_machines.setter
99
+ def allowed_machines(self, allowed_machines: 'list[str]'):
100
+ """Sets the allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest.
101
+
102
+
103
+ :param allowed_machines: The allowed_machines of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
104
+ :type: list[str]
105
+ """
106
+
107
+ self._allowed_machines = allowed_machines
108
+
109
+ @property
110
+ def default_machine(self) -> 'str':
111
+ """Gets the default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
112
+
113
+
114
+ :return: The default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
115
+ :rtype: str
116
+ """
117
+ return self._default_machine
118
+
119
+ @default_machine.setter
120
+ def default_machine(self, default_machine: 'str'):
121
+ """Sets the default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest.
122
+
123
+
124
+ :param default_machine: The default_machine of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
125
+ :type: str
126
+ """
127
+
128
+ self._default_machine = default_machine
129
+
130
+ @property
131
+ def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
132
+ """Gets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
133
+
134
+
135
+ :return: The environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
136
+ :rtype: V1CloudSpaceEnvironmentType
137
+ """
138
+ return self._environment_type
139
+
140
+ @environment_type.setter
141
+ def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
142
+ """Sets the environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest.
143
+
144
+
145
+ :param environment_type: The environment_type of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
146
+ :type: V1CloudSpaceEnvironmentType
147
+ """
148
+
149
+ self._environment_type = environment_type
150
+
73
151
  @property
74
152
  def machine_image_version(self) -> 'str':
75
153
  """Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
@@ -48,6 +48,7 @@ class V1DeploymentAPI(object):
48
48
  'method': 'str',
49
49
  'name': 'str',
50
50
  'path': 'str',
51
+ 'port': 'int',
51
52
  '_query_params': 'list[V1QueryParam]'
52
53
  }
53
54
 
@@ -59,10 +60,11 @@ class V1DeploymentAPI(object):
59
60
  'method': 'method',
60
61
  'name': 'name',
61
62
  'path': 'path',
63
+ 'port': 'port',
62
64
  '_query_params': 'queryParams'
63
65
  }
64
66
 
65
- def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, id: 'str' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
67
+ def __init__(self, body: 'V1Body' =None, description: 'str' =None, headers: 'list[V1Header]' =None, id: 'str' =None, method: 'str' =None, name: 'str' =None, path: 'str' =None, port: 'int' =None, _query_params: 'list[V1QueryParam]' =None): # noqa: E501
66
68
  """V1DeploymentAPI - a model defined in Swagger""" # noqa: E501
67
69
  self._body = None
68
70
  self._description = None
@@ -71,6 +73,7 @@ class V1DeploymentAPI(object):
71
73
  self._method = None
72
74
  self._name = None
73
75
  self._path = None
76
+ self._port = None
74
77
  self.__query_params = None
75
78
  self.discriminator = None
76
79
  if body is not None:
@@ -87,6 +90,8 @@ class V1DeploymentAPI(object):
87
90
  self.name = name
88
91
  if path is not None:
89
92
  self.path = path
93
+ if port is not None:
94
+ self.port = port
90
95
  if _query_params is not None:
91
96
  self._query_params = _query_params
92
97
 
@@ -237,6 +242,27 @@ class V1DeploymentAPI(object):
237
242
 
238
243
  self._path = path
239
244
 
245
+ @property
246
+ def port(self) -> 'int':
247
+ """Gets the port of this V1DeploymentAPI. # noqa: E501
248
+
249
+
250
+ :return: The port of this V1DeploymentAPI. # noqa: E501
251
+ :rtype: int
252
+ """
253
+ return self._port
254
+
255
+ @port.setter
256
+ def port(self, port: 'int'):
257
+ """Sets the port of this V1DeploymentAPI.
258
+
259
+
260
+ :param port: The port of this V1DeploymentAPI. # noqa: E501
261
+ :type: int
262
+ """
263
+
264
+ self._port = port
265
+
240
266
  @property
241
267
  def _query_params(self) -> 'list[V1QueryParam]':
242
268
  """Gets the _query_params of this V1DeploymentAPI. # noqa: E501
@@ -39,11 +39,11 @@ class V1DeploymentState(object):
39
39
  """
40
40
  UNSPECIFIED = "DEPLOYMENT_STATE_UNSPECIFIED"
41
41
  RUNNING = "DEPLOYMENT_STATE_RUNNING"
42
- DELETED = "DEPLOYMENT_STATE_DELETED"
43
- COMPLETED = "DEPLOYMENT_STATE_COMPLETED"
44
- FAILED = "DEPLOYMENT_STATE_FAILED"
45
- SUSPENDED = "DEPLOYMENT_STATE_SUSPENDED"
46
42
  PENDING = "DEPLOYMENT_STATE_PENDING"
43
+ FAILED = "DEPLOYMENT_STATE_FAILED"
44
+ SCALED_TO_0 = "DEPLOYMENT_STATE_SCALED_TO_0"
45
+ STOPPED = "DEPLOYMENT_STATE_STOPPED"
46
+ DELETED = "DEPLOYMENT_STATE_DELETED"
47
47
  """
48
48
  Attributes:
49
49
  swagger_types (dict): The key is attribute name
@@ -53,6 +53,7 @@ class V1Endpoint(object):
53
53
  'ports': 'list[str]',
54
54
  'prewarm': 'V1EndpointPrewarm',
55
55
  'project_id': 'str',
56
+ 'proxy': 'bool',
56
57
  'updated_at': 'datetime',
57
58
  'urls': 'list[str]',
58
59
  'user_id': 'str'
@@ -71,12 +72,13 @@ class V1Endpoint(object):
71
72
  'ports': 'ports',
72
73
  'prewarm': 'prewarm',
73
74
  'project_id': 'projectId',
75
+ 'proxy': 'proxy',
74
76
  'updated_at': 'updatedAt',
75
77
  'urls': 'urls',
76
78
  'user_id': 'userId'
77
79
  }
78
80
 
79
- def __init__(self, auth: 'V1EndpointAuth' =None, cloudspace: 'V1UpstreamCloudSpace' =None, created_at: 'datetime' =None, custom_domain: 'str' =None, id: 'str' =None, job: 'V1UpstreamJob' =None, managed: 'V1UpstreamManaged' =None, name: 'str' =None, openai: 'V1UpstreamOpenAI' =None, ports: 'list[str]' =None, prewarm: 'V1EndpointPrewarm' =None, project_id: 'str' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None): # noqa: E501
81
+ def __init__(self, auth: 'V1EndpointAuth' =None, cloudspace: 'V1UpstreamCloudSpace' =None, created_at: 'datetime' =None, custom_domain: 'str' =None, id: 'str' =None, job: 'V1UpstreamJob' =None, managed: 'V1UpstreamManaged' =None, name: 'str' =None, openai: 'V1UpstreamOpenAI' =None, ports: 'list[str]' =None, prewarm: 'V1EndpointPrewarm' =None, project_id: 'str' =None, proxy: 'bool' =None, updated_at: 'datetime' =None, urls: 'list[str]' =None, user_id: 'str' =None): # noqa: E501
80
82
  """V1Endpoint - a model defined in Swagger""" # noqa: E501
81
83
  self._auth = None
82
84
  self._cloudspace = None
@@ -90,6 +92,7 @@ class V1Endpoint(object):
90
92
  self._ports = None
91
93
  self._prewarm = None
92
94
  self._project_id = None
95
+ self._proxy = None
93
96
  self._updated_at = None
94
97
  self._urls = None
95
98
  self._user_id = None
@@ -118,6 +121,8 @@ class V1Endpoint(object):
118
121
  self.prewarm = prewarm
119
122
  if project_id is not None:
120
123
  self.project_id = project_id
124
+ if proxy is not None:
125
+ self.proxy = proxy
121
126
  if updated_at is not None:
122
127
  self.updated_at = updated_at
123
128
  if urls is not None:
@@ -377,6 +382,27 @@ class V1Endpoint(object):
377
382
 
378
383
  self._project_id = project_id
379
384
 
385
+ @property
386
+ def proxy(self) -> 'bool':
387
+ """Gets the proxy of this V1Endpoint. # noqa: E501
388
+
389
+
390
+ :return: The proxy of this V1Endpoint. # noqa: E501
391
+ :rtype: bool
392
+ """
393
+ return self._proxy
394
+
395
+ @proxy.setter
396
+ def proxy(self, proxy: 'bool'):
397
+ """Sets the proxy of this V1Endpoint.
398
+
399
+
400
+ :param proxy: The proxy of this V1Endpoint. # noqa: E501
401
+ :type: bool
402
+ """
403
+
404
+ self._proxy = proxy
405
+
380
406
  @property
381
407
  def updated_at(self) -> 'datetime':
382
408
  """Gets the updated_at of this V1Endpoint. # noqa: E501
@@ -47,6 +47,7 @@ class V1ExternalSearchUser(object):
47
47
  'organization': 'str',
48
48
  'picture_url': 'str',
49
49
  'role': 'str',
50
+ 'sb': 'bool',
50
51
  'username': 'str'
51
52
  }
52
53
 
@@ -57,10 +58,11 @@ class V1ExternalSearchUser(object):
57
58
  'organization': 'organization',
58
59
  'picture_url': 'pictureUrl',
59
60
  'role': 'role',
61
+ 'sb': 'sb',
60
62
  'username': 'username'
61
63
  }
62
64
 
63
- def __init__(self, first_name: 'str' =None, id: 'str' =None, last_name: 'str' =None, organization: 'str' =None, picture_url: 'str' =None, role: 'str' =None, username: 'str' =None): # noqa: E501
65
+ def __init__(self, first_name: 'str' =None, id: 'str' =None, last_name: 'str' =None, organization: 'str' =None, picture_url: 'str' =None, role: 'str' =None, sb: 'bool' =None, username: 'str' =None): # noqa: E501
64
66
  """V1ExternalSearchUser - a model defined in Swagger""" # noqa: E501
65
67
  self._first_name = None
66
68
  self._id = None
@@ -68,6 +70,7 @@ class V1ExternalSearchUser(object):
68
70
  self._organization = None
69
71
  self._picture_url = None
70
72
  self._role = None
73
+ self._sb = None
71
74
  self._username = None
72
75
  self.discriminator = None
73
76
  if first_name is not None:
@@ -82,6 +85,8 @@ class V1ExternalSearchUser(object):
82
85
  self.picture_url = picture_url
83
86
  if role is not None:
84
87
  self.role = role
88
+ if sb is not None:
89
+ self.sb = sb
85
90
  if username is not None:
86
91
  self.username = username
87
92
 
@@ -211,6 +216,27 @@ class V1ExternalSearchUser(object):
211
216
 
212
217
  self._role = role
213
218
 
219
+ @property
220
+ def sb(self) -> 'bool':
221
+ """Gets the sb of this V1ExternalSearchUser. # noqa: E501
222
+
223
+
224
+ :return: The sb of this V1ExternalSearchUser. # noqa: E501
225
+ :rtype: bool
226
+ """
227
+ return self._sb
228
+
229
+ @sb.setter
230
+ def sb(self, sb: 'bool'):
231
+ """Sets the sb of this V1ExternalSearchUser.
232
+
233
+
234
+ :param sb: The sb of this V1ExternalSearchUser. # noqa: E501
235
+ :type: bool
236
+ """
237
+
238
+ self._sb = sb
239
+
214
240
  @property
215
241
  def username(self) -> 'str':
216
242
  """Gets the username of this V1ExternalSearchUser. # noqa: E501
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1GeListDeploymentRoutingTelemetryResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1GeListDeploymentRoutingTelemetryResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1GeListDeploymentRoutingTelemetryResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1GeListDeploymentRoutingTelemetryResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1GeListDeploymentRoutingTelemetryResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1GeListDeploymentRoutingTelemetryResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -41,25 +41,56 @@ class V1GetJobStatsResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'running_deployments': 'int',
44
45
  'running_jobs': 'int',
46
+ 'running_pipelines': 'int',
45
47
  'total_jobs': 'int'
46
48
  }
47
49
 
48
50
  attribute_map = {
51
+ 'running_deployments': 'runningDeployments',
49
52
  'running_jobs': 'runningJobs',
53
+ 'running_pipelines': 'runningPipelines',
50
54
  'total_jobs': 'totalJobs'
51
55
  }
52
56
 
53
- def __init__(self, running_jobs: 'int' =None, total_jobs: 'int' =None): # noqa: E501
57
+ def __init__(self, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
54
58
  """V1GetJobStatsResponse - a model defined in Swagger""" # noqa: E501
59
+ self._running_deployments = None
55
60
  self._running_jobs = None
61
+ self._running_pipelines = None
56
62
  self._total_jobs = None
57
63
  self.discriminator = None
64
+ if running_deployments is not None:
65
+ self.running_deployments = running_deployments
58
66
  if running_jobs is not None:
59
67
  self.running_jobs = running_jobs
68
+ if running_pipelines is not None:
69
+ self.running_pipelines = running_pipelines
60
70
  if total_jobs is not None:
61
71
  self.total_jobs = total_jobs
62
72
 
73
+ @property
74
+ def running_deployments(self) -> 'int':
75
+ """Gets the running_deployments of this V1GetJobStatsResponse. # noqa: E501
76
+
77
+
78
+ :return: The running_deployments of this V1GetJobStatsResponse. # noqa: E501
79
+ :rtype: int
80
+ """
81
+ return self._running_deployments
82
+
83
+ @running_deployments.setter
84
+ def running_deployments(self, running_deployments: 'int'):
85
+ """Sets the running_deployments of this V1GetJobStatsResponse.
86
+
87
+
88
+ :param running_deployments: The running_deployments of this V1GetJobStatsResponse. # noqa: E501
89
+ :type: int
90
+ """
91
+
92
+ self._running_deployments = running_deployments
93
+
63
94
  @property
64
95
  def running_jobs(self) -> 'int':
65
96
  """Gets the running_jobs of this V1GetJobStatsResponse. # noqa: E501
@@ -81,6 +112,27 @@ class V1GetJobStatsResponse(object):
81
112
 
82
113
  self._running_jobs = running_jobs
83
114
 
115
+ @property
116
+ def running_pipelines(self) -> 'int':
117
+ """Gets the running_pipelines of this V1GetJobStatsResponse. # noqa: E501
118
+
119
+
120
+ :return: The running_pipelines of this V1GetJobStatsResponse. # noqa: E501
121
+ :rtype: int
122
+ """
123
+ return self._running_pipelines
124
+
125
+ @running_pipelines.setter
126
+ def running_pipelines(self, running_pipelines: 'int'):
127
+ """Sets the running_pipelines of this V1GetJobStatsResponse.
128
+
129
+
130
+ :param running_pipelines: The running_pipelines of this V1GetJobStatsResponse. # noqa: E501
131
+ :type: int
132
+ """
133
+
134
+ self._running_pipelines = running_pipelines
135
+
84
136
  @property
85
137
  def total_jobs(self) -> 'int':
86
138
  """Gets the total_jobs of this V1GetJobStatsResponse. # noqa: E501