lightning-sdk 2025.7.17__py3-none-any.whl → 2025.7.30rc0__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 (99) hide show
  1. lightning_sdk/__init__.py +3 -2
  2. lightning_sdk/api/cloud_account_api.py +204 -0
  3. lightning_sdk/api/deployment_api.py +11 -0
  4. lightning_sdk/api/job_api.py +82 -10
  5. lightning_sdk/api/llm_api.py +1 -1
  6. lightning_sdk/api/mmt_api.py +44 -5
  7. lightning_sdk/api/pipeline_api.py +4 -3
  8. lightning_sdk/api/studio_api.py +51 -8
  9. lightning_sdk/api/utils.py +6 -2
  10. lightning_sdk/cli/clusters_menu.py +3 -3
  11. lightning_sdk/cli/create.py +25 -11
  12. lightning_sdk/cli/deploy/_auth.py +19 -3
  13. lightning_sdk/cli/deploy/serve.py +21 -5
  14. lightning_sdk/cli/download.py +25 -1
  15. lightning_sdk/cli/entrypoint.py +4 -2
  16. lightning_sdk/cli/list.py +5 -1
  17. lightning_sdk/cli/run.py +3 -1
  18. lightning_sdk/cli/start.py +40 -8
  19. lightning_sdk/cli/switch.py +3 -1
  20. lightning_sdk/deployment/deployment.py +8 -0
  21. lightning_sdk/job/base.py +27 -3
  22. lightning_sdk/job/job.py +28 -4
  23. lightning_sdk/job/v1.py +10 -1
  24. lightning_sdk/job/v2.py +22 -2
  25. lightning_sdk/job/work.py +5 -1
  26. lightning_sdk/lightning_cloud/openapi/__init__.py +14 -1
  27. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +428 -0
  28. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +153 -48
  29. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +295 -0
  30. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +93 -0
  31. lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -1
  32. lightning_sdk/lightning_cloud/openapi/models/agentmanagedendpoints_id_body.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +53 -1
  34. lightning_sdk/lightning_cloud/openapi/models/conversations_id_body1.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/messages_id_body.py +123 -0
  36. lightning_sdk/lightning_cloud/openapi/models/metricsstream_id_body.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +81 -3
  38. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +79 -1
  39. lightning_sdk/lightning_cloud/openapi/models/user_id_upgradetrigger_body.py +201 -0
  40. lightning_sdk/lightning_cloud/openapi/models/user_user_id_body.py +201 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_billing_subscription.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_settings.py +227 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_billing_upgrade_trigger_record_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_create_checkout_session_request.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_create_subscription_checkout_session_request.py +55 -3
  51. lightning_sdk/lightning_cloud/openapi/models/v1_function_call.py +149 -0
  52. lightning_sdk/lightning_cloud/openapi/models/{v1_get_clickhouse_assistant_session_daily_aggregated_response.py → v1_get_assistant_session_daily_aggregated_response.py} +22 -22
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cluster_health_response.py +149 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +105 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_like_status.py +104 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_published_managed_endpoints_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_managed_endpoint.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +95 -17
  61. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_quote_subscription_response.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_resource_visibility.py +27 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_response_choice.py +29 -3
  65. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_service_health.py +27 -1
  67. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1.py +79 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_v1_status.py +79 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_tool_call.py +175 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_like_response.py +149 -0
  71. lightning_sdk/lightning_cloud/openapi/models/v1_update_conversation_message_like_response.py +149 -0
  72. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +79 -313
  73. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +1 -0
  74. lightning_sdk/llm/llm.py +69 -11
  75. lightning_sdk/llm/public_assistants.json +32 -8
  76. lightning_sdk/machine.py +151 -43
  77. lightning_sdk/mmt/base.py +20 -2
  78. lightning_sdk/mmt/mmt.py +25 -3
  79. lightning_sdk/mmt/v1.py +7 -1
  80. lightning_sdk/mmt/v2.py +27 -3
  81. lightning_sdk/models.py +1 -1
  82. lightning_sdk/organization.py +4 -0
  83. lightning_sdk/pipeline/pipeline.py +16 -5
  84. lightning_sdk/pipeline/printer.py +5 -3
  85. lightning_sdk/pipeline/schedule.py +844 -1
  86. lightning_sdk/pipeline/steps.py +19 -4
  87. lightning_sdk/sandbox.py +4 -1
  88. lightning_sdk/serve.py +2 -0
  89. lightning_sdk/studio.py +91 -44
  90. lightning_sdk/teamspace.py +19 -10
  91. lightning_sdk/utils/resolve.py +37 -2
  92. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/METADATA +7 -5
  93. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/RECORD +98 -85
  94. lightning_sdk/api/cluster_api.py +0 -119
  95. /lightning_sdk/cli/{inspect.py → inspection.py} +0 -0
  96. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/LICENSE +0 -0
  97. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/WHEEL +0 -0
  98. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/entry_points.txt +0 -0
  99. {lightning_sdk-2025.7.17.dist-info → lightning_sdk-2025.7.30rc0.dist-info}/top_level.txt +0 -0
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
31
+ class V1GetAssistantSessionDailyAggregatedResponse(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -55,7 +55,7 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
55
55
  }
56
56
 
57
57
  def __init__(self, daily_usage: 'list[V1AssistantSessionDailyAggregated]' =None, total_cost: 'float' =None, total_users: 'int' =None, usage: 'list[V1AssistantSessionDailyAggregated]' =None): # noqa: E501
58
- """V1GetClickhouseAssistantSessionDailyAggregatedResponse - a model defined in Swagger""" # noqa: E501
58
+ """V1GetAssistantSessionDailyAggregatedResponse - a model defined in Swagger""" # noqa: E501
59
59
  self._daily_usage = None
60
60
  self._total_cost = None
61
61
  self._total_users = None
@@ -72,20 +72,20 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
72
72
 
73
73
  @property
74
74
  def daily_usage(self) -> 'list[V1AssistantSessionDailyAggregated]':
75
- """Gets the daily_usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
75
+ """Gets the daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
76
76
 
77
77
 
78
- :return: The daily_usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
78
+ :return: The daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
79
79
  :rtype: list[V1AssistantSessionDailyAggregated]
80
80
  """
81
81
  return self._daily_usage
82
82
 
83
83
  @daily_usage.setter
84
84
  def daily_usage(self, daily_usage: 'list[V1AssistantSessionDailyAggregated]'):
85
- """Sets the daily_usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse.
85
+ """Sets the daily_usage of this V1GetAssistantSessionDailyAggregatedResponse.
86
86
 
87
87
 
88
- :param daily_usage: The daily_usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
88
+ :param daily_usage: The daily_usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
89
89
  :type: list[V1AssistantSessionDailyAggregated]
90
90
  """
91
91
 
@@ -93,20 +93,20 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
93
93
 
94
94
  @property
95
95
  def total_cost(self) -> 'float':
96
- """Gets the total_cost of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
96
+ """Gets the total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
97
97
 
98
98
 
99
- :return: The total_cost of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
99
+ :return: The total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
100
100
  :rtype: float
101
101
  """
102
102
  return self._total_cost
103
103
 
104
104
  @total_cost.setter
105
105
  def total_cost(self, total_cost: 'float'):
106
- """Sets the total_cost of this V1GetClickhouseAssistantSessionDailyAggregatedResponse.
106
+ """Sets the total_cost of this V1GetAssistantSessionDailyAggregatedResponse.
107
107
 
108
108
 
109
- :param total_cost: The total_cost of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
109
+ :param total_cost: The total_cost of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
110
110
  :type: float
111
111
  """
112
112
 
@@ -114,20 +114,20 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
114
114
 
115
115
  @property
116
116
  def total_users(self) -> 'int':
117
- """Gets the total_users of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
117
+ """Gets the total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
118
118
 
119
119
 
120
- :return: The total_users of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
120
+ :return: The total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
121
121
  :rtype: int
122
122
  """
123
123
  return self._total_users
124
124
 
125
125
  @total_users.setter
126
126
  def total_users(self, total_users: 'int'):
127
- """Sets the total_users of this V1GetClickhouseAssistantSessionDailyAggregatedResponse.
127
+ """Sets the total_users of this V1GetAssistantSessionDailyAggregatedResponse.
128
128
 
129
129
 
130
- :param total_users: The total_users of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
130
+ :param total_users: The total_users of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
131
131
  :type: int
132
132
  """
133
133
 
@@ -135,20 +135,20 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
135
135
 
136
136
  @property
137
137
  def usage(self) -> 'list[V1AssistantSessionDailyAggregated]':
138
- """Gets the usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
138
+ """Gets the usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
139
139
 
140
140
 
141
- :return: The usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
141
+ :return: The usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
142
142
  :rtype: list[V1AssistantSessionDailyAggregated]
143
143
  """
144
144
  return self._usage
145
145
 
146
146
  @usage.setter
147
147
  def usage(self, usage: 'list[V1AssistantSessionDailyAggregated]'):
148
- """Sets the usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse.
148
+ """Sets the usage of this V1GetAssistantSessionDailyAggregatedResponse.
149
149
 
150
150
 
151
- :param usage: The usage of this V1GetClickhouseAssistantSessionDailyAggregatedResponse. # noqa: E501
151
+ :param usage: The usage of this V1GetAssistantSessionDailyAggregatedResponse. # noqa: E501
152
152
  :type: list[V1AssistantSessionDailyAggregated]
153
153
  """
154
154
 
@@ -175,7 +175,7 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
175
175
  ))
176
176
  else:
177
177
  result[attr] = value
178
- if issubclass(V1GetClickhouseAssistantSessionDailyAggregatedResponse, dict):
178
+ if issubclass(V1GetAssistantSessionDailyAggregatedResponse, dict):
179
179
  for key, value in self.items():
180
180
  result[key] = value
181
181
 
@@ -189,13 +189,13 @@ class V1GetClickhouseAssistantSessionDailyAggregatedResponse(object):
189
189
  """For `print` and `pprint`"""
190
190
  return self.to_str()
191
191
 
192
- def __eq__(self, other: 'V1GetClickhouseAssistantSessionDailyAggregatedResponse') -> bool:
192
+ def __eq__(self, other: 'V1GetAssistantSessionDailyAggregatedResponse') -> bool:
193
193
  """Returns true if both objects are equal"""
194
- if not isinstance(other, V1GetClickhouseAssistantSessionDailyAggregatedResponse):
194
+ if not isinstance(other, V1GetAssistantSessionDailyAggregatedResponse):
195
195
  return False
196
196
 
197
197
  return self.__dict__ == other.__dict__
198
198
 
199
- def __ne__(self, other: 'V1GetClickhouseAssistantSessionDailyAggregatedResponse') -> bool:
199
+ def __ne__(self, other: 'V1GetAssistantSessionDailyAggregatedResponse') -> bool:
200
200
  """Returns true if both objects are not equal"""
201
201
  return not self == other
@@ -0,0 +1,149 @@
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 V1GetClusterHealthResponse(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
+ 'dependency_service_health': 'list[V1ServiceHealth]',
45
+ 'ok': 'bool'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'dependency_service_health': 'dependencyServiceHealth',
50
+ 'ok': 'ok'
51
+ }
52
+
53
+ def __init__(self, dependency_service_health: 'list[V1ServiceHealth]' =None, ok: 'bool' =None): # noqa: E501
54
+ """V1GetClusterHealthResponse - a model defined in Swagger""" # noqa: E501
55
+ self._dependency_service_health = None
56
+ self._ok = None
57
+ self.discriminator = None
58
+ if dependency_service_health is not None:
59
+ self.dependency_service_health = dependency_service_health
60
+ if ok is not None:
61
+ self.ok = ok
62
+
63
+ @property
64
+ def dependency_service_health(self) -> 'list[V1ServiceHealth]':
65
+ """Gets the dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
66
+
67
+
68
+ :return: The dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
69
+ :rtype: list[V1ServiceHealth]
70
+ """
71
+ return self._dependency_service_health
72
+
73
+ @dependency_service_health.setter
74
+ def dependency_service_health(self, dependency_service_health: 'list[V1ServiceHealth]'):
75
+ """Sets the dependency_service_health of this V1GetClusterHealthResponse.
76
+
77
+
78
+ :param dependency_service_health: The dependency_service_health of this V1GetClusterHealthResponse. # noqa: E501
79
+ :type: list[V1ServiceHealth]
80
+ """
81
+
82
+ self._dependency_service_health = dependency_service_health
83
+
84
+ @property
85
+ def ok(self) -> 'bool':
86
+ """Gets the ok of this V1GetClusterHealthResponse. # noqa: E501
87
+
88
+
89
+ :return: The ok of this V1GetClusterHealthResponse. # noqa: E501
90
+ :rtype: bool
91
+ """
92
+ return self._ok
93
+
94
+ @ok.setter
95
+ def ok(self, ok: 'bool'):
96
+ """Sets the ok of this V1GetClusterHealthResponse.
97
+
98
+
99
+ :param ok: The ok of this V1GetClusterHealthResponse. # noqa: E501
100
+ :type: bool
101
+ """
102
+
103
+ self._ok = ok
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1GetClusterHealthResponse, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1GetClusterHealthResponse') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1GetClusterHealthResponse):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1GetClusterHealthResponse') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -77,6 +77,7 @@ class V1GetUserResponse(object):
77
77
  'status': 'Externalv1UserStatus',
78
78
  'storage_bytes': 'str',
79
79
  'storage_overuse_deletion_at': 'datetime',
80
+ 'test_user': 'bool',
80
81
  'user_metadata': 'str',
81
82
  'username': 'str',
82
83
  'waitlisted': 'bool',
@@ -120,13 +121,14 @@ class V1GetUserResponse(object):
120
121
  'status': 'status',
121
122
  'storage_bytes': 'storageBytes',
122
123
  'storage_overuse_deletion_at': 'storageOveruseDeletionAt',
124
+ 'test_user': 'testUser',
123
125
  'user_metadata': 'userMetadata',
124
126
  'username': 'username',
125
127
  'waitlisted': 'waitlisted',
126
128
  'website': 'website'
127
129
  }
128
130
 
129
- def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_blog_admin: 'bool' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
131
+ def __init__(self, agree_to_terms_and_conditions: 'bool' =None, allow_credits_auto_replenish: 'bool' =None, api_key: 'str' =None, auto_replenish_amount: 'float' =None, auto_replenish_threshold: 'float' =None, country: 'str' =None, discounted_pro_plan: 'bool' =None, email: 'str' =None, experimentation_id: 'str' =None, features: 'V1UserFeatures' =None, first_name: 'str' =None, general_audience_mode: 'bool' =None, id: 'str' =None, internal_blog_admin: 'bool' =None, internal_docs_admin: 'bool' =None, invite_code: 'str' =None, is_internal: 'bool' =None, last_name: 'str' =None, non_developer_mode: 'bool' =None, opted_in_marketing_emails: 'bool' =None, organization: 'str' =None, organizations: 'list[V1Organization]' =None, phone_number: 'str' =None, picture_url: 'str' =None, preferred_color_scheme: 'str' =None, preferred_ide: 'str' =None, preferred_shell: 'str' =None, preferred_vscode_marketplace: 'str' =None, role: 'str' =None, saw_create_first_project_dialog: 'bool' =None, saw_forums_login_merge_dialog: 'bool' =None, saw_free_credits_notification: 'bool' =None, sb: 'bool' =None, status: 'Externalv1UserStatus' =None, storage_bytes: 'str' =None, storage_overuse_deletion_at: 'datetime' =None, test_user: 'bool' =None, user_metadata: 'str' =None, username: 'str' =None, waitlisted: 'bool' =None, website: 'str' =None): # noqa: E501
130
132
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
131
133
  self._agree_to_terms_and_conditions = None
132
134
  self._allow_credits_auto_replenish = None
@@ -164,6 +166,7 @@ class V1GetUserResponse(object):
164
166
  self._status = None
165
167
  self._storage_bytes = None
166
168
  self._storage_overuse_deletion_at = None
169
+ self._test_user = None
167
170
  self._user_metadata = None
168
171
  self._username = None
169
172
  self._waitlisted = None
@@ -241,6 +244,8 @@ class V1GetUserResponse(object):
241
244
  self.storage_bytes = storage_bytes
242
245
  if storage_overuse_deletion_at is not None:
243
246
  self.storage_overuse_deletion_at = storage_overuse_deletion_at
247
+ if test_user is not None:
248
+ self.test_user = test_user
244
249
  if user_metadata is not None:
245
250
  self.user_metadata = user_metadata
246
251
  if username is not None:
@@ -1006,6 +1011,27 @@ class V1GetUserResponse(object):
1006
1011
 
1007
1012
  self._storage_overuse_deletion_at = storage_overuse_deletion_at
1008
1013
 
1014
+ @property
1015
+ def test_user(self) -> 'bool':
1016
+ """Gets the test_user of this V1GetUserResponse. # noqa: E501
1017
+
1018
+
1019
+ :return: The test_user of this V1GetUserResponse. # noqa: E501
1020
+ :rtype: bool
1021
+ """
1022
+ return self._test_user
1023
+
1024
+ @test_user.setter
1025
+ def test_user(self, test_user: 'bool'):
1026
+ """Sets the test_user of this V1GetUserResponse.
1027
+
1028
+
1029
+ :param test_user: The test_user of this V1GetUserResponse. # noqa: E501
1030
+ :type: bool
1031
+ """
1032
+
1033
+ self._test_user = test_user
1034
+
1009
1035
  @property
1010
1036
  def user_metadata(self) -> 'str':
1011
1037
  """Gets the user_metadata of this V1GetUserResponse. # noqa: E501
@@ -68,6 +68,7 @@ class V1JobSpec(object):
68
68
  'restart_policy': 'str',
69
69
  'run_id': 'str',
70
70
  'spot': 'bool',
71
+ 'use_tls': 'bool',
71
72
  'volumes': 'list[V1Volume]'
72
73
  }
73
74
 
@@ -99,10 +100,11 @@ class V1JobSpec(object):
99
100
  'restart_policy': 'restartPolicy',
100
101
  'run_id': 'runId',
101
102
  'spot': 'spot',
103
+ 'use_tls': 'useTls',
102
104
  'volumes': 'volumes'
103
105
  }
104
106
 
105
- def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, machine_image_version: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, pipeline_id: 'str' =None, quantity: 'int' =None, rank: 'int' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
107
+ def __init__(self, artifacts_destination: 'str' =None, artifacts_source: 'str' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, machine_image_version: 'str' =None, modified_volume: 'bool' =None, path_mappings: 'list[V1PathMapping]' =None, pipeline_id: 'str' =None, quantity: 'int' =None, rank: 'int' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, regions: 'list[str]' =None, requested_run_duration_seconds: 'str' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, spot: 'bool' =None, use_tls: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
106
108
  """V1JobSpec - a model defined in Swagger""" # noqa: E501
107
109
  self._artifacts_destination = None
108
110
  self._artifacts_source = None
@@ -131,6 +133,7 @@ class V1JobSpec(object):
131
133
  self._restart_policy = None
132
134
  self._run_id = None
133
135
  self._spot = None
136
+ self._use_tls = None
134
137
  self._volumes = None
135
138
  self.discriminator = None
136
139
  if artifacts_destination is not None:
@@ -187,6 +190,8 @@ class V1JobSpec(object):
187
190
  self.run_id = run_id
188
191
  if spot is not None:
189
192
  self.spot = spot
193
+ if use_tls is not None:
194
+ self.use_tls = use_tls
190
195
  if volumes is not None:
191
196
  self.volumes = volumes
192
197
 
@@ -757,6 +762,27 @@ class V1JobSpec(object):
757
762
 
758
763
  self._spot = spot
759
764
 
765
+ @property
766
+ def use_tls(self) -> 'bool':
767
+ """Gets the use_tls of this V1JobSpec. # noqa: E501
768
+
769
+
770
+ :return: The use_tls of this V1JobSpec. # noqa: E501
771
+ :rtype: bool
772
+ """
773
+ return self._use_tls
774
+
775
+ @use_tls.setter
776
+ def use_tls(self, use_tls: 'bool'):
777
+ """Sets the use_tls of this V1JobSpec.
778
+
779
+
780
+ :param use_tls: The use_tls of this V1JobSpec. # noqa: E501
781
+ :type: bool
782
+ """
783
+
784
+ self._use_tls = use_tls
785
+
760
786
  @property
761
787
  def volumes(self) -> 'list[V1Volume]':
762
788
  """Gets the volumes of this V1JobSpec. # noqa: E501
@@ -41,25 +41,129 @@ class V1KubernetesDirectV1(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'grafana_dashboard_url': 'str',
45
+ 'grafana_namespace': 'str',
46
+ 'grafana_service_name': 'str',
47
+ 'grafana_service_port': 'str',
44
48
  'kubeconfig': 'str',
45
49
  'kubeconfig_elevated': 'str'
46
50
  }
47
51
 
48
52
  attribute_map = {
53
+ 'grafana_dashboard_url': 'grafanaDashboardUrl',
54
+ 'grafana_namespace': 'grafanaNamespace',
55
+ 'grafana_service_name': 'grafanaServiceName',
56
+ 'grafana_service_port': 'grafanaServicePort',
49
57
  'kubeconfig': 'kubeconfig',
50
58
  'kubeconfig_elevated': 'kubeconfigElevated'
51
59
  }
52
60
 
53
- def __init__(self, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
61
+ def __init__(self, grafana_dashboard_url: 'str' =None, grafana_namespace: 'str' =None, grafana_service_name: 'str' =None, grafana_service_port: 'str' =None, kubeconfig: 'str' =None, kubeconfig_elevated: 'str' =None): # noqa: E501
54
62
  """V1KubernetesDirectV1 - a model defined in Swagger""" # noqa: E501
63
+ self._grafana_dashboard_url = None
64
+ self._grafana_namespace = None
65
+ self._grafana_service_name = None
66
+ self._grafana_service_port = None
55
67
  self._kubeconfig = None
56
68
  self._kubeconfig_elevated = None
57
69
  self.discriminator = None
70
+ if grafana_dashboard_url is not None:
71
+ self.grafana_dashboard_url = grafana_dashboard_url
72
+ if grafana_namespace is not None:
73
+ self.grafana_namespace = grafana_namespace
74
+ if grafana_service_name is not None:
75
+ self.grafana_service_name = grafana_service_name
76
+ if grafana_service_port is not None:
77
+ self.grafana_service_port = grafana_service_port
58
78
  if kubeconfig is not None:
59
79
  self.kubeconfig = kubeconfig
60
80
  if kubeconfig_elevated is not None:
61
81
  self.kubeconfig_elevated = kubeconfig_elevated
62
82
 
83
+ @property
84
+ def grafana_dashboard_url(self) -> 'str':
85
+ """Gets the grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
86
+
87
+
88
+ :return: The grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
89
+ :rtype: str
90
+ """
91
+ return self._grafana_dashboard_url
92
+
93
+ @grafana_dashboard_url.setter
94
+ def grafana_dashboard_url(self, grafana_dashboard_url: 'str'):
95
+ """Sets the grafana_dashboard_url of this V1KubernetesDirectV1.
96
+
97
+
98
+ :param grafana_dashboard_url: The grafana_dashboard_url of this V1KubernetesDirectV1. # noqa: E501
99
+ :type: str
100
+ """
101
+
102
+ self._grafana_dashboard_url = grafana_dashboard_url
103
+
104
+ @property
105
+ def grafana_namespace(self) -> 'str':
106
+ """Gets the grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
107
+
108
+
109
+ :return: The grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
110
+ :rtype: str
111
+ """
112
+ return self._grafana_namespace
113
+
114
+ @grafana_namespace.setter
115
+ def grafana_namespace(self, grafana_namespace: 'str'):
116
+ """Sets the grafana_namespace of this V1KubernetesDirectV1.
117
+
118
+
119
+ :param grafana_namespace: The grafana_namespace of this V1KubernetesDirectV1. # noqa: E501
120
+ :type: str
121
+ """
122
+
123
+ self._grafana_namespace = grafana_namespace
124
+
125
+ @property
126
+ def grafana_service_name(self) -> 'str':
127
+ """Gets the grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
128
+
129
+
130
+ :return: The grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
131
+ :rtype: str
132
+ """
133
+ return self._grafana_service_name
134
+
135
+ @grafana_service_name.setter
136
+ def grafana_service_name(self, grafana_service_name: 'str'):
137
+ """Sets the grafana_service_name of this V1KubernetesDirectV1.
138
+
139
+
140
+ :param grafana_service_name: The grafana_service_name of this V1KubernetesDirectV1. # noqa: E501
141
+ :type: str
142
+ """
143
+
144
+ self._grafana_service_name = grafana_service_name
145
+
146
+ @property
147
+ def grafana_service_port(self) -> 'str':
148
+ """Gets the grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
149
+
150
+
151
+ :return: The grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
152
+ :rtype: str
153
+ """
154
+ return self._grafana_service_port
155
+
156
+ @grafana_service_port.setter
157
+ def grafana_service_port(self, grafana_service_port: 'str'):
158
+ """Sets the grafana_service_port of this V1KubernetesDirectV1.
159
+
160
+
161
+ :param grafana_service_port: The grafana_service_port of this V1KubernetesDirectV1. # noqa: E501
162
+ :type: str
163
+ """
164
+
165
+ self._grafana_service_port = grafana_service_port
166
+
63
167
  @property
64
168
  def kubeconfig(self) -> 'str':
65
169
  """Gets the kubeconfig of this V1KubernetesDirectV1. # noqa: E501
@@ -0,0 +1,104 @@
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 V1LikeStatus(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
+ """
38
+ allowed enum values
39
+ """
40
+ NONE = "NONE"
41
+ LIKE = "LIKE"
42
+ DISLIKE = "DISLIKE"
43
+ """
44
+ Attributes:
45
+ swagger_types (dict): The key is attribute name
46
+ and the value is attribute type.
47
+ attribute_map (dict): The key is attribute name
48
+ and the value is json key in definition.
49
+ """
50
+ swagger_types = {
51
+ }
52
+
53
+ attribute_map = {
54
+ }
55
+
56
+ def __init__(self): # noqa: E501
57
+ """V1LikeStatus - a model defined in Swagger""" # noqa: E501
58
+ self.discriminator = None
59
+
60
+ def to_dict(self) -> dict:
61
+ """Returns the model properties as a dict"""
62
+ result = {}
63
+
64
+ for attr, _ in six.iteritems(self.swagger_types):
65
+ value = getattr(self, attr)
66
+ if isinstance(value, list):
67
+ result[attr] = list(map(
68
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
69
+ value
70
+ ))
71
+ elif hasattr(value, "to_dict"):
72
+ result[attr] = value.to_dict()
73
+ elif isinstance(value, dict):
74
+ result[attr] = dict(map(
75
+ lambda item: (item[0], item[1].to_dict())
76
+ if hasattr(item[1], "to_dict") else item,
77
+ value.items()
78
+ ))
79
+ else:
80
+ result[attr] = value
81
+ if issubclass(V1LikeStatus, dict):
82
+ for key, value in self.items():
83
+ result[key] = value
84
+
85
+ return result
86
+
87
+ def to_str(self) -> str:
88
+ """Returns the string representation of the model"""
89
+ return pprint.pformat(self.to_dict())
90
+
91
+ def __repr__(self) -> str:
92
+ """For `print` and `pprint`"""
93
+ return self.to_str()
94
+
95
+ def __eq__(self, other: 'V1LikeStatus') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1LikeStatus):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1LikeStatus') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other