lightning-sdk 0.2.23__py3-none-any.whl → 0.2.24rc1__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 +9 -2
  3. lightning_sdk/api/deployment_api.py +9 -9
  4. lightning_sdk/api/llm_api.py +23 -13
  5. lightning_sdk/api/pipeline_api.py +31 -11
  6. lightning_sdk/api/studio_api.py +4 -0
  7. lightning_sdk/base_studio.py +22 -6
  8. lightning_sdk/deployment/deployment.py +17 -7
  9. lightning_sdk/lightning_cloud/openapi/__init__.py +18 -0
  10. lightning_sdk/lightning_cloud/openapi/api/__init__.py +2 -0
  11. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
  12. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
  13. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +9 -1
  14. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +13 -1
  15. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
  16. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +4 -4
  17. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
  18. lightning_sdk/lightning_cloud/openapi/api/volume_service_api.py +258 -0
  19. lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
  20. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +79 -1
  22. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
  23. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +53 -1
  25. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  26. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
  27. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
  32. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_billing_tier.py +1 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +53 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
  48. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection_tier.py +103 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
  50. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filestore_data_connection.py +29 -3
  52. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_volume_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +1 -27
  56. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +149 -0
  57. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +27 -1
  63. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_action_type.py +104 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +1 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_volume_response.py +123 -0
  69. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +317 -31
  70. lightning_sdk/lightning_cloud/openapi/models/volumes_id_body.py +123 -0
  71. lightning_sdk/llm/llm.py +118 -115
  72. lightning_sdk/llm/public_assistants.json +8 -0
  73. lightning_sdk/pipeline/pipeline.py +17 -2
  74. lightning_sdk/pipeline/printer.py +11 -10
  75. lightning_sdk/pipeline/steps.py +4 -1
  76. lightning_sdk/pipeline/utils.py +29 -4
  77. lightning_sdk/studio.py +3 -0
  78. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/METADATA +1 -1
  79. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/RECORD +83 -64
  80. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/LICENSE +0 -0
  81. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/WHEEL +0 -0
  82. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/entry_points.txt +0 -0
  83. {lightning_sdk-0.2.23.dist-info → lightning_sdk-0.2.24rc1.dist-info}/top_level.txt +0 -0
@@ -41,12 +41,13 @@ class V1DeploymentStatus(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'deleting_replicas': 'str',
45
- 'failing_replicas': 'str',
44
+ 'deleting_replicas': 'int',
45
+ 'failing_replicas': 'int',
46
46
  'first_job_state_current_release': 'str',
47
47
  'message': 'str',
48
- 'pending_replicas': 'str',
49
- 'ready_replicas': 'str',
48
+ 'pending_replicas': 'int',
49
+ 'queued_replicas': 'int',
50
+ 'ready_replicas': 'int',
50
51
  'urls': 'list[str]'
51
52
  }
52
53
 
@@ -56,17 +57,19 @@ class V1DeploymentStatus(object):
56
57
  'first_job_state_current_release': 'firstJobStateCurrentRelease',
57
58
  'message': 'message',
58
59
  'pending_replicas': 'pendingReplicas',
60
+ 'queued_replicas': 'queuedReplicas',
59
61
  'ready_replicas': 'readyReplicas',
60
62
  'urls': 'urls'
61
63
  }
62
64
 
63
- def __init__(self, deleting_replicas: 'str' =None, failing_replicas: 'str' =None, first_job_state_current_release: 'str' =None, message: 'str' =None, pending_replicas: 'str' =None, ready_replicas: 'str' =None, urls: 'list[str]' =None): # noqa: E501
65
+ def __init__(self, deleting_replicas: 'int' =None, failing_replicas: 'int' =None, first_job_state_current_release: 'str' =None, message: 'str' =None, pending_replicas: 'int' =None, queued_replicas: 'int' =None, ready_replicas: 'int' =None, urls: 'list[str]' =None): # noqa: E501
64
66
  """V1DeploymentStatus - a model defined in Swagger""" # noqa: E501
65
67
  self._deleting_replicas = None
66
68
  self._failing_replicas = None
67
69
  self._first_job_state_current_release = None
68
70
  self._message = None
69
71
  self._pending_replicas = None
72
+ self._queued_replicas = None
70
73
  self._ready_replicas = None
71
74
  self._urls = None
72
75
  self.discriminator = None
@@ -80,49 +83,51 @@ class V1DeploymentStatus(object):
80
83
  self.message = message
81
84
  if pending_replicas is not None:
82
85
  self.pending_replicas = pending_replicas
86
+ if queued_replicas is not None:
87
+ self.queued_replicas = queued_replicas
83
88
  if ready_replicas is not None:
84
89
  self.ready_replicas = ready_replicas
85
90
  if urls is not None:
86
91
  self.urls = urls
87
92
 
88
93
  @property
89
- def deleting_replicas(self) -> 'str':
94
+ def deleting_replicas(self) -> 'int':
90
95
  """Gets the deleting_replicas of this V1DeploymentStatus. # noqa: E501
91
96
 
92
97
 
93
98
  :return: The deleting_replicas of this V1DeploymentStatus. # noqa: E501
94
- :rtype: str
99
+ :rtype: int
95
100
  """
96
101
  return self._deleting_replicas
97
102
 
98
103
  @deleting_replicas.setter
99
- def deleting_replicas(self, deleting_replicas: 'str'):
104
+ def deleting_replicas(self, deleting_replicas: 'int'):
100
105
  """Sets the deleting_replicas of this V1DeploymentStatus.
101
106
 
102
107
 
103
108
  :param deleting_replicas: The deleting_replicas of this V1DeploymentStatus. # noqa: E501
104
- :type: str
109
+ :type: int
105
110
  """
106
111
 
107
112
  self._deleting_replicas = deleting_replicas
108
113
 
109
114
  @property
110
- def failing_replicas(self) -> 'str':
115
+ def failing_replicas(self) -> 'int':
111
116
  """Gets the failing_replicas of this V1DeploymentStatus. # noqa: E501
112
117
 
113
118
 
114
119
  :return: The failing_replicas of this V1DeploymentStatus. # noqa: E501
115
- :rtype: str
120
+ :rtype: int
116
121
  """
117
122
  return self._failing_replicas
118
123
 
119
124
  @failing_replicas.setter
120
- def failing_replicas(self, failing_replicas: 'str'):
125
+ def failing_replicas(self, failing_replicas: 'int'):
121
126
  """Sets the failing_replicas of this V1DeploymentStatus.
122
127
 
123
128
 
124
129
  :param failing_replicas: The failing_replicas of this V1DeploymentStatus. # noqa: E501
125
- :type: str
130
+ :type: int
126
131
  """
127
132
 
128
133
  self._failing_replicas = failing_replicas
@@ -170,43 +175,64 @@ class V1DeploymentStatus(object):
170
175
  self._message = message
171
176
 
172
177
  @property
173
- def pending_replicas(self) -> 'str':
178
+ def pending_replicas(self) -> 'int':
174
179
  """Gets the pending_replicas of this V1DeploymentStatus. # noqa: E501
175
180
 
176
181
 
177
182
  :return: The pending_replicas of this V1DeploymentStatus. # noqa: E501
178
- :rtype: str
183
+ :rtype: int
179
184
  """
180
185
  return self._pending_replicas
181
186
 
182
187
  @pending_replicas.setter
183
- def pending_replicas(self, pending_replicas: 'str'):
188
+ def pending_replicas(self, pending_replicas: 'int'):
184
189
  """Sets the pending_replicas of this V1DeploymentStatus.
185
190
 
186
191
 
187
192
  :param pending_replicas: The pending_replicas of this V1DeploymentStatus. # noqa: E501
188
- :type: str
193
+ :type: int
189
194
  """
190
195
 
191
196
  self._pending_replicas = pending_replicas
192
197
 
193
198
  @property
194
- def ready_replicas(self) -> 'str':
199
+ def queued_replicas(self) -> 'int':
200
+ """Gets the queued_replicas of this V1DeploymentStatus. # noqa: E501
201
+
202
+
203
+ :return: The queued_replicas of this V1DeploymentStatus. # noqa: E501
204
+ :rtype: int
205
+ """
206
+ return self._queued_replicas
207
+
208
+ @queued_replicas.setter
209
+ def queued_replicas(self, queued_replicas: 'int'):
210
+ """Sets the queued_replicas of this V1DeploymentStatus.
211
+
212
+
213
+ :param queued_replicas: The queued_replicas of this V1DeploymentStatus. # noqa: E501
214
+ :type: int
215
+ """
216
+
217
+ self._queued_replicas = queued_replicas
218
+
219
+ @property
220
+ def ready_replicas(self) -> 'int':
195
221
  """Gets the ready_replicas of this V1DeploymentStatus. # noqa: E501
196
222
 
197
223
 
198
224
  :return: The ready_replicas of this V1DeploymentStatus. # noqa: E501
199
- :rtype: str
225
+ :rtype: int
200
226
  """
201
227
  return self._ready_replicas
202
228
 
203
229
  @ready_replicas.setter
204
- def ready_replicas(self, ready_replicas: 'str'):
230
+ def ready_replicas(self, ready_replicas: 'int'):
205
231
  """Sets the ready_replicas of this V1DeploymentStatus.
206
232
 
207
233
 
208
234
  :param ready_replicas: The ready_replicas of this V1DeploymentStatus. # noqa: E501
209
- :type: str
235
+ :type: int
210
236
  """
211
237
 
212
238
  self._ready_replicas = ready_replicas
@@ -52,6 +52,7 @@ class V1ExternalClusterSpec(object):
52
52
  'domain': 'str',
53
53
  'driver': 'V1CloudProvider',
54
54
  'google_cloud_v1': 'V1GoogleCloudDirectV1',
55
+ 'kubernetes_v1': 'V1KubernetesDirectV1',
55
56
  'lambda_labs_v1': 'V1LambdaLabsDirectV1',
56
57
  'locked_zones': 'list[str]',
57
58
  'monitor_deletion_disabled': 'bool',
@@ -83,6 +84,7 @@ class V1ExternalClusterSpec(object):
83
84
  'domain': 'domain',
84
85
  'driver': 'driver',
85
86
  'google_cloud_v1': 'googleCloudV1',
87
+ 'kubernetes_v1': 'kubernetesV1',
86
88
  'lambda_labs_v1': 'lambdaLabsV1',
87
89
  'locked_zones': 'lockedZones',
88
90
  'monitor_deletion_disabled': 'monitorDeletionDisabled',
@@ -102,7 +104,7 @@ class V1ExternalClusterSpec(object):
102
104
  'vultr_v1': 'vultrV1'
103
105
  }
104
106
 
105
- def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, compute_cluster_ids: 'list[str]' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
107
+ def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =None, cloudflare_v1: 'V1CloudflareV1' =None, cluster_type: 'V1ClusterType' =None, compute_cluster_ids: 'list[str]' =None, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, kubernetes_v1: 'V1KubernetesDirectV1' =None, lambda_labs_v1: 'V1LambdaLabsDirectV1' =None, locked_zones: 'list[str]' =None, monitor_deletion_disabled: 'bool' =None, nebius_v1: 'V1NebiusDirectV1' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, parent_cluster_type: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: 'bool' =None, reserved_instances_only: 'bool' =None, security_options: 'V1ClusterSecurityOptions' =None, slurm_v1: 'V1SlurmV1' =None, tagging_options: 'V1ClusterTaggingOptions' =None, user_id: 'str' =None, voltage_park_v1: 'V1VoltageParkDirectV1' =None, vultr_v1: 'V1VultrDirectV1' =None): # noqa: E501
106
108
  """V1ExternalClusterSpec - a model defined in Swagger""" # noqa: E501
107
109
  self._auth_token = None
108
110
  self._available_accelerators = None
@@ -115,6 +117,7 @@ class V1ExternalClusterSpec(object):
115
117
  self._domain = None
116
118
  self._driver = None
117
119
  self._google_cloud_v1 = None
120
+ self._kubernetes_v1 = None
118
121
  self._lambda_labs_v1 = None
119
122
  self._locked_zones = None
120
123
  self._monitor_deletion_disabled = None
@@ -155,6 +158,8 @@ class V1ExternalClusterSpec(object):
155
158
  self.driver = driver
156
159
  if google_cloud_v1 is not None:
157
160
  self.google_cloud_v1 = google_cloud_v1
161
+ if kubernetes_v1 is not None:
162
+ self.kubernetes_v1 = kubernetes_v1
158
163
  if lambda_labs_v1 is not None:
159
164
  self.lambda_labs_v1 = lambda_labs_v1
160
165
  if locked_zones is not None:
@@ -423,6 +428,27 @@ class V1ExternalClusterSpec(object):
423
428
 
424
429
  self._google_cloud_v1 = google_cloud_v1
425
430
 
431
+ @property
432
+ def kubernetes_v1(self) -> 'V1KubernetesDirectV1':
433
+ """Gets the kubernetes_v1 of this V1ExternalClusterSpec. # noqa: E501
434
+
435
+
436
+ :return: The kubernetes_v1 of this V1ExternalClusterSpec. # noqa: E501
437
+ :rtype: V1KubernetesDirectV1
438
+ """
439
+ return self._kubernetes_v1
440
+
441
+ @kubernetes_v1.setter
442
+ def kubernetes_v1(self, kubernetes_v1: 'V1KubernetesDirectV1'):
443
+ """Sets the kubernetes_v1 of this V1ExternalClusterSpec.
444
+
445
+
446
+ :param kubernetes_v1: The kubernetes_v1 of this V1ExternalClusterSpec. # noqa: E501
447
+ :type: V1KubernetesDirectV1
448
+ """
449
+
450
+ self._kubernetes_v1 = kubernetes_v1
451
+
426
452
  @property
427
453
  def lambda_labs_v1(self) -> 'V1LambdaLabsDirectV1':
428
454
  """Gets the lambda_labs_v1 of this V1ExternalClusterSpec. # noqa: E501
@@ -44,22 +44,25 @@ class V1FilestoreDataConnection(object):
44
44
  'capacity_gb': 'str',
45
45
  'mount_ip': 'str',
46
46
  'region': 'str',
47
- 'source': 'str'
47
+ 'source': 'str',
48
+ 'tier': 'V1DataConnectionTier'
48
49
  }
49
50
 
50
51
  attribute_map = {
51
52
  'capacity_gb': 'capacityGb',
52
53
  'mount_ip': 'mountIp',
53
54
  'region': 'region',
54
- 'source': 'source'
55
+ 'source': 'source',
56
+ 'tier': 'tier'
55
57
  }
56
58
 
57
- def __init__(self, capacity_gb: 'str' =None, mount_ip: 'str' =None, region: 'str' =None, source: 'str' =None): # noqa: E501
59
+ def __init__(self, capacity_gb: 'str' =None, mount_ip: 'str' =None, region: 'str' =None, source: 'str' =None, tier: 'V1DataConnectionTier' =None): # noqa: E501
58
60
  """V1FilestoreDataConnection - a model defined in Swagger""" # noqa: E501
59
61
  self._capacity_gb = None
60
62
  self._mount_ip = None
61
63
  self._region = None
62
64
  self._source = None
65
+ self._tier = None
63
66
  self.discriminator = None
64
67
  if capacity_gb is not None:
65
68
  self.capacity_gb = capacity_gb
@@ -69,6 +72,8 @@ class V1FilestoreDataConnection(object):
69
72
  self.region = region
70
73
  if source is not None:
71
74
  self.source = source
75
+ if tier is not None:
76
+ self.tier = tier
72
77
 
73
78
  @property
74
79
  def capacity_gb(self) -> 'str':
@@ -154,6 +159,27 @@ class V1FilestoreDataConnection(object):
154
159
 
155
160
  self._source = source
156
161
 
162
+ @property
163
+ def tier(self) -> 'V1DataConnectionTier':
164
+ """Gets the tier of this V1FilestoreDataConnection. # noqa: E501
165
+
166
+
167
+ :return: The tier of this V1FilestoreDataConnection. # noqa: E501
168
+ :rtype: V1DataConnectionTier
169
+ """
170
+ return self._tier
171
+
172
+ @tier.setter
173
+ def tier(self, tier: 'V1DataConnectionTier'):
174
+ """Sets the tier of this V1FilestoreDataConnection.
175
+
176
+
177
+ :param tier: The tier of this V1FilestoreDataConnection. # noqa: E501
178
+ :type: V1DataConnectionTier
179
+ """
180
+
181
+ self._tier = tier
182
+
157
183
  def to_dict(self) -> dict:
158
184
  """Returns the model properties as a dict"""
159
185
  result = {}
@@ -41,6 +41,8 @@ class V1GetJobStatsResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'queued_deployments': 'int',
45
+ 'queued_jobs': 'int',
44
46
  'running_deployments': 'int',
45
47
  'running_jobs': 'int',
46
48
  'running_pipelines': 'int',
@@ -48,19 +50,27 @@ class V1GetJobStatsResponse(object):
48
50
  }
49
51
 
50
52
  attribute_map = {
53
+ 'queued_deployments': 'queuedDeployments',
54
+ 'queued_jobs': 'queuedJobs',
51
55
  'running_deployments': 'runningDeployments',
52
56
  'running_jobs': 'runningJobs',
53
57
  'running_pipelines': 'runningPipelines',
54
58
  'total_jobs': 'totalJobs'
55
59
  }
56
60
 
57
- def __init__(self, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
61
+ def __init__(self, queued_deployments: 'int' =None, queued_jobs: 'int' =None, running_deployments: 'int' =None, running_jobs: 'int' =None, running_pipelines: 'int' =None, total_jobs: 'int' =None): # noqa: E501
58
62
  """V1GetJobStatsResponse - a model defined in Swagger""" # noqa: E501
63
+ self._queued_deployments = None
64
+ self._queued_jobs = None
59
65
  self._running_deployments = None
60
66
  self._running_jobs = None
61
67
  self._running_pipelines = None
62
68
  self._total_jobs = None
63
69
  self.discriminator = None
70
+ if queued_deployments is not None:
71
+ self.queued_deployments = queued_deployments
72
+ if queued_jobs is not None:
73
+ self.queued_jobs = queued_jobs
64
74
  if running_deployments is not None:
65
75
  self.running_deployments = running_deployments
66
76
  if running_jobs is not None:
@@ -70,6 +80,48 @@ class V1GetJobStatsResponse(object):
70
80
  if total_jobs is not None:
71
81
  self.total_jobs = total_jobs
72
82
 
83
+ @property
84
+ def queued_deployments(self) -> 'int':
85
+ """Gets the queued_deployments of this V1GetJobStatsResponse. # noqa: E501
86
+
87
+
88
+ :return: The queued_deployments of this V1GetJobStatsResponse. # noqa: E501
89
+ :rtype: int
90
+ """
91
+ return self._queued_deployments
92
+
93
+ @queued_deployments.setter
94
+ def queued_deployments(self, queued_deployments: 'int'):
95
+ """Sets the queued_deployments of this V1GetJobStatsResponse.
96
+
97
+
98
+ :param queued_deployments: The queued_deployments of this V1GetJobStatsResponse. # noqa: E501
99
+ :type: int
100
+ """
101
+
102
+ self._queued_deployments = queued_deployments
103
+
104
+ @property
105
+ def queued_jobs(self) -> 'int':
106
+ """Gets the queued_jobs of this V1GetJobStatsResponse. # noqa: E501
107
+
108
+
109
+ :return: The queued_jobs of this V1GetJobStatsResponse. # noqa: E501
110
+ :rtype: int
111
+ """
112
+ return self._queued_jobs
113
+
114
+ @queued_jobs.setter
115
+ def queued_jobs(self, queued_jobs: 'int'):
116
+ """Sets the queued_jobs of this V1GetJobStatsResponse.
117
+
118
+
119
+ :param queued_jobs: The queued_jobs of this V1GetJobStatsResponse. # noqa: E501
120
+ :type: int
121
+ """
122
+
123
+ self._queued_jobs = queued_jobs
124
+
73
125
  @property
74
126
  def running_deployments(self) -> 'int':
75
127
  """Gets the running_deployments of this V1GetJobStatsResponse. # noqa: E501
@@ -54,6 +54,7 @@ class V1GetUserResponse(object):
54
54
  'first_name': 'str',
55
55
  'general_audience_mode': 'bool',
56
56
  'id': 'str',
57
+ 'internal_blog_admin': 'bool',
57
58
  'internal_docs_admin': 'bool',
58
59
  'invite_code': 'str',
59
60
  'is_internal': 'bool',
@@ -96,6 +97,7 @@ class V1GetUserResponse(object):
96
97
  'first_name': 'firstName',
97
98
  'general_audience_mode': 'generalAudienceMode',
98
99
  'id': 'id',
100
+ 'internal_blog_admin': 'internalBlogAdmin',
99
101
  'internal_docs_admin': 'internalDocsAdmin',
100
102
  'invite_code': 'inviteCode',
101
103
  'is_internal': 'isInternal',
@@ -124,7 +126,7 @@ class V1GetUserResponse(object):
124
126
  'website': 'website'
125
127
  }
126
128
 
127
- 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_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
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
128
130
  """V1GetUserResponse - a model defined in Swagger""" # noqa: E501
129
131
  self._agree_to_terms_and_conditions = None
130
132
  self._allow_credits_auto_replenish = None
@@ -139,6 +141,7 @@ class V1GetUserResponse(object):
139
141
  self._first_name = None
140
142
  self._general_audience_mode = None
141
143
  self._id = None
144
+ self._internal_blog_admin = None
142
145
  self._internal_docs_admin = None
143
146
  self._invite_code = None
144
147
  self._is_internal = None
@@ -192,6 +195,8 @@ class V1GetUserResponse(object):
192
195
  self.general_audience_mode = general_audience_mode
193
196
  if id is not None:
194
197
  self.id = id
198
+ if internal_blog_admin is not None:
199
+ self.internal_blog_admin = internal_blog_admin
195
200
  if internal_docs_admin is not None:
196
201
  self.internal_docs_admin = internal_docs_admin
197
202
  if invite_code is not None:
@@ -518,6 +523,27 @@ class V1GetUserResponse(object):
518
523
 
519
524
  self._id = id
520
525
 
526
+ @property
527
+ def internal_blog_admin(self) -> 'bool':
528
+ """Gets the internal_blog_admin of this V1GetUserResponse. # noqa: E501
529
+
530
+
531
+ :return: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
532
+ :rtype: bool
533
+ """
534
+ return self._internal_blog_admin
535
+
536
+ @internal_blog_admin.setter
537
+ def internal_blog_admin(self, internal_blog_admin: 'bool'):
538
+ """Sets the internal_blog_admin of this V1GetUserResponse.
539
+
540
+
541
+ :param internal_blog_admin: The internal_blog_admin of this V1GetUserResponse. # noqa: E501
542
+ :type: bool
543
+ """
544
+
545
+ self._internal_blog_admin = internal_blog_admin
546
+
521
547
  @property
522
548
  def internal_docs_admin(self) -> 'bool':
523
549
  """Gets the internal_docs_admin of this V1GetUserResponse. # noqa: E501
@@ -0,0 +1,123 @@
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 V1GetVolumeResponse(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
+ 'volume': 'V1Volume'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'volume': 'volume'
49
+ }
50
+
51
+ def __init__(self, volume: 'V1Volume' =None): # noqa: E501
52
+ """V1GetVolumeResponse - a model defined in Swagger""" # noqa: E501
53
+ self._volume = None
54
+ self.discriminator = None
55
+ if volume is not None:
56
+ self.volume = volume
57
+
58
+ @property
59
+ def volume(self) -> 'V1Volume':
60
+ """Gets the volume of this V1GetVolumeResponse. # noqa: E501
61
+
62
+
63
+ :return: The volume of this V1GetVolumeResponse. # noqa: E501
64
+ :rtype: V1Volume
65
+ """
66
+ return self._volume
67
+
68
+ @volume.setter
69
+ def volume(self, volume: 'V1Volume'):
70
+ """Sets the volume of this V1GetVolumeResponse.
71
+
72
+
73
+ :param volume: The volume of this V1GetVolumeResponse. # noqa: E501
74
+ :type: V1Volume
75
+ """
76
+
77
+ self._volume = volume
78
+
79
+ def to_dict(self) -> dict:
80
+ """Returns the model properties as a dict"""
81
+ result = {}
82
+
83
+ for attr, _ in six.iteritems(self.swagger_types):
84
+ value = getattr(self, attr)
85
+ if isinstance(value, list):
86
+ result[attr] = list(map(
87
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
88
+ value
89
+ ))
90
+ elif hasattr(value, "to_dict"):
91
+ result[attr] = value.to_dict()
92
+ elif isinstance(value, dict):
93
+ result[attr] = dict(map(
94
+ lambda item: (item[0], item[1].to_dict())
95
+ if hasattr(item[1], "to_dict") else item,
96
+ value.items()
97
+ ))
98
+ else:
99
+ result[attr] = value
100
+ if issubclass(V1GetVolumeResponse, dict):
101
+ for key, value in self.items():
102
+ result[key] = value
103
+
104
+ return result
105
+
106
+ def to_str(self) -> str:
107
+ """Returns the string representation of the model"""
108
+ return pprint.pformat(self.to_dict())
109
+
110
+ def __repr__(self) -> str:
111
+ """For `print` and `pprint`"""
112
+ return self.to_str()
113
+
114
+ def __eq__(self, other: 'V1GetVolumeResponse') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1GetVolumeResponse):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1GetVolumeResponse') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -47,7 +47,6 @@ class V1InstanceOverprovisioningSpec(object):
47
47
  'maximum_count': 'int',
48
48
  'minimum_count': 'int',
49
49
  'region': 'str',
50
- 'resource_type': 'str',
51
50
  'volume_size': 'int'
52
51
  }
53
52
 
@@ -58,11 +57,10 @@ class V1InstanceOverprovisioningSpec(object):
58
57
  'maximum_count': 'maximumCount',
59
58
  'minimum_count': 'minimumCount',
60
59
  'region': 'region',
61
- 'resource_type': 'resourceType',
62
60
  'volume_size': 'volumeSize'
63
61
  }
64
62
 
65
- def __init__(self, instance_type: 'str' =None, is_spot: 'bool' =None, machine_image_version: 'str' =None, maximum_count: 'int' =None, minimum_count: 'int' =None, region: 'str' =None, resource_type: 'str' =None, volume_size: 'int' =None): # noqa: E501
63
+ def __init__(self, instance_type: 'str' =None, is_spot: 'bool' =None, machine_image_version: 'str' =None, maximum_count: 'int' =None, minimum_count: 'int' =None, region: 'str' =None, volume_size: 'int' =None): # noqa: E501
66
64
  """V1InstanceOverprovisioningSpec - a model defined in Swagger""" # noqa: E501
67
65
  self._instance_type = None
68
66
  self._is_spot = None
@@ -70,7 +68,6 @@ class V1InstanceOverprovisioningSpec(object):
70
68
  self._maximum_count = None
71
69
  self._minimum_count = None
72
70
  self._region = None
73
- self._resource_type = None
74
71
  self._volume_size = None
75
72
  self.discriminator = None
76
73
  if instance_type is not None:
@@ -85,8 +82,6 @@ class V1InstanceOverprovisioningSpec(object):
85
82
  self.minimum_count = minimum_count
86
83
  if region is not None:
87
84
  self.region = region
88
- if resource_type is not None:
89
- self.resource_type = resource_type
90
85
  if volume_size is not None:
91
86
  self.volume_size = volume_size
92
87
 
@@ -218,27 +213,6 @@ class V1InstanceOverprovisioningSpec(object):
218
213
 
219
214
  self._region = region
220
215
 
221
- @property
222
- def resource_type(self) -> 'str':
223
- """Gets the resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
224
-
225
-
226
- :return: The resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
227
- :rtype: str
228
- """
229
- return self._resource_type
230
-
231
- @resource_type.setter
232
- def resource_type(self, resource_type: 'str'):
233
- """Sets the resource_type of this V1InstanceOverprovisioningSpec.
234
-
235
-
236
- :param resource_type: The resource_type of this V1InstanceOverprovisioningSpec. # noqa: E501
237
- :type: str
238
- """
239
-
240
- self._resource_type = resource_type
241
-
242
216
  @property
243
217
  def volume_size(self) -> 'int':
244
218
  """Gets the volume_size of this V1InstanceOverprovisioningSpec. # noqa: E501