lightning-sdk 0.2.22__py3-none-any.whl → 0.2.24rc0__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 (101) 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/license_api.py +2 -2
  5. lightning_sdk/api/llm_api.py +7 -11
  6. lightning_sdk/api/pipeline_api.py +31 -10
  7. lightning_sdk/api/studio_api.py +6 -0
  8. lightning_sdk/base_studio.py +22 -6
  9. lightning_sdk/cli/entrypoint.py +15 -13
  10. lightning_sdk/cli/start.py +5 -2
  11. lightning_sdk/deployment/deployment.py +17 -7
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +20 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/assistants_service_api.py +114 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +206 -0
  16. lightning_sdk/lightning_cloud/openapi/api/cloudy_service_api.py +129 -0
  17. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +97 -0
  18. lightning_sdk/lightning_cloud/openapi/api/organizations_service_api.py +105 -0
  19. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +118 -1
  20. lightning_sdk/lightning_cloud/openapi/api/user_service_api.py +105 -0
  21. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  22. lightning_sdk/lightning_cloud/openapi/models/__init__.py +19 -0
  23. lightning_sdk/lightning_cloud/openapi/models/agents_id_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +81 -3
  25. lightning_sdk/lightning_cloud/openapi/models/cloudspace_id_visibility_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/create_deployment_request_defines_a_spec_for_the_job_that_allows_for_autoscaling_jobs.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body.py +175 -0
  28. lightning_sdk/lightning_cloud/openapi/models/credits_autoreplenish_body1.py +175 -0
  29. lightning_sdk/lightning_cloud/openapi/models/externalv1_user_status.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +27 -1
  33. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body1.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/project_id_agents_body.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +53 -1
  36. lightning_sdk/lightning_cloud/openapi/models/update.py +29 -3
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_request.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_check_cluster_name_availability_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +2 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +79 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +29 -3
  43. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +29 -3
  44. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +1 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_session.py +29 -3
  46. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_specialized_view.py +104 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_cloudy_expert.py +279 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +79 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_capacity_reservation.py +27 -1
  50. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +105 -1
  52. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_status.py +27 -1
  53. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  54. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_request.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_status.py +47 -21
  58. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster.py +253 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_external_cluster_spec.py +853 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  61. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  62. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +29 -27
  63. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_direct_v1_status.py +149 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lightning_run.py +53 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloudy_experts_response.py +123 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_list_clusters_response.py +6 -6
  68. lightning_sdk/lightning_cloud/openapi/models/v1_list_project_clusters_response.py +6 -6
  69. lightning_sdk/lightning_cloud/openapi/models/v1_lite_published_cloud_space_response.py +513 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_login_request.py +27 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +29 -3
  72. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_response.py +27 -1
  73. lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
  74. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +27 -1
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +27 -1
  76. lightning_sdk/lightning_cloud/openapi/models/v1_shared_filesystem.py +131 -1
  77. lightning_sdk/lightning_cloud/openapi/models/v1_token_usage.py +175 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_update_cloud_space_visibility_response.py +97 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_update_organization_credits_auto_replenish_response.py +97 -0
  80. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_credits_auto_replenish_response.py +97 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  82. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +234 -104
  83. lightning_sdk/lightning_cloud/openapi/models/v1_volume.py +78 -104
  84. lightning_sdk/lightning_cloud/openapi/models/v1_volume_state.py +104 -0
  85. lightning_sdk/llm/llm.py +113 -115
  86. lightning_sdk/llm/public_assistants.json +8 -0
  87. lightning_sdk/pipeline/__init__.py +11 -2
  88. lightning_sdk/pipeline/pipeline.py +54 -14
  89. lightning_sdk/pipeline/printer.py +36 -16
  90. lightning_sdk/pipeline/schedule.py +2 -1
  91. lightning_sdk/pipeline/{types.py → steps.py} +77 -56
  92. lightning_sdk/pipeline/utils.py +65 -3
  93. lightning_sdk/sandbox.py +157 -0
  94. lightning_sdk/services/license.py +12 -6
  95. lightning_sdk/studio.py +10 -1
  96. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/METADATA +1 -1
  97. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/RECORD +101 -79
  98. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/LICENSE +0 -0
  99. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/WHEEL +0 -0
  100. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/entry_points.txt +0 -0
  101. {lightning_sdk-0.2.22.dist-info → lightning_sdk-0.2.24rc0.dist-info}/top_level.txt +0 -0
@@ -44,43 +44,52 @@ class AssistantIdConversationsBody(object):
44
44
  'auto_name': 'bool',
45
45
  'billing_project_id': 'str',
46
46
  'conversation_id': 'str',
47
+ 'ephemeral': 'bool',
47
48
  'internal_conversation': 'bool',
48
49
  'max_tokens': 'str',
49
50
  'message': 'V1Message',
50
51
  'metadata': 'dict(str, str)',
51
52
  'name': 'str',
52
53
  'parent_message_id': 'str',
54
+ 'reasoning_effort': 'str',
53
55
  'store': 'bool',
54
- 'stream': 'bool'
56
+ 'stream': 'bool',
57
+ 'system_prompt': 'str'
55
58
  }
56
59
 
57
60
  attribute_map = {
58
61
  'auto_name': 'autoName',
59
62
  'billing_project_id': 'billingProjectId',
60
63
  'conversation_id': 'conversationId',
64
+ 'ephemeral': 'ephemeral',
61
65
  'internal_conversation': 'internalConversation',
62
66
  'max_tokens': 'maxTokens',
63
67
  'message': 'message',
64
68
  'metadata': 'metadata',
65
69
  'name': 'name',
66
70
  'parent_message_id': 'parentMessageId',
71
+ 'reasoning_effort': 'reasoningEffort',
67
72
  'store': 'store',
68
- 'stream': 'stream'
73
+ 'stream': 'stream',
74
+ 'system_prompt': 'systemPrompt'
69
75
  }
70
76
 
71
- def __init__(self, auto_name: 'bool' =None, billing_project_id: 'str' =None, conversation_id: 'str' =None, internal_conversation: 'bool' =None, max_tokens: 'str' =None, message: 'V1Message' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, parent_message_id: 'str' =None, store: 'bool' =None, stream: 'bool' =None): # noqa: E501
77
+ def __init__(self, auto_name: 'bool' =None, billing_project_id: 'str' =None, conversation_id: 'str' =None, ephemeral: 'bool' =None, internal_conversation: 'bool' =None, max_tokens: 'str' =None, message: 'V1Message' =None, metadata: 'dict(str, str)' =None, name: 'str' =None, parent_message_id: 'str' =None, reasoning_effort: 'str' =None, store: 'bool' =None, stream: 'bool' =None, system_prompt: 'str' =None): # noqa: E501
72
78
  """AssistantIdConversationsBody - a model defined in Swagger""" # noqa: E501
73
79
  self._auto_name = None
74
80
  self._billing_project_id = None
75
81
  self._conversation_id = None
82
+ self._ephemeral = None
76
83
  self._internal_conversation = None
77
84
  self._max_tokens = None
78
85
  self._message = None
79
86
  self._metadata = None
80
87
  self._name = None
81
88
  self._parent_message_id = None
89
+ self._reasoning_effort = None
82
90
  self._store = None
83
91
  self._stream = None
92
+ self._system_prompt = None
84
93
  self.discriminator = None
85
94
  if auto_name is not None:
86
95
  self.auto_name = auto_name
@@ -88,6 +97,8 @@ class AssistantIdConversationsBody(object):
88
97
  self.billing_project_id = billing_project_id
89
98
  if conversation_id is not None:
90
99
  self.conversation_id = conversation_id
100
+ if ephemeral is not None:
101
+ self.ephemeral = ephemeral
91
102
  if internal_conversation is not None:
92
103
  self.internal_conversation = internal_conversation
93
104
  if max_tokens is not None:
@@ -100,10 +111,14 @@ class AssistantIdConversationsBody(object):
100
111
  self.name = name
101
112
  if parent_message_id is not None:
102
113
  self.parent_message_id = parent_message_id
114
+ if reasoning_effort is not None:
115
+ self.reasoning_effort = reasoning_effort
103
116
  if store is not None:
104
117
  self.store = store
105
118
  if stream is not None:
106
119
  self.stream = stream
120
+ if system_prompt is not None:
121
+ self.system_prompt = system_prompt
107
122
 
108
123
  @property
109
124
  def auto_name(self) -> 'bool':
@@ -168,6 +183,27 @@ class AssistantIdConversationsBody(object):
168
183
 
169
184
  self._conversation_id = conversation_id
170
185
 
186
+ @property
187
+ def ephemeral(self) -> 'bool':
188
+ """Gets the ephemeral of this AssistantIdConversationsBody. # noqa: E501
189
+
190
+
191
+ :return: The ephemeral of this AssistantIdConversationsBody. # noqa: E501
192
+ :rtype: bool
193
+ """
194
+ return self._ephemeral
195
+
196
+ @ephemeral.setter
197
+ def ephemeral(self, ephemeral: 'bool'):
198
+ """Sets the ephemeral of this AssistantIdConversationsBody.
199
+
200
+
201
+ :param ephemeral: The ephemeral of this AssistantIdConversationsBody. # noqa: E501
202
+ :type: bool
203
+ """
204
+
205
+ self._ephemeral = ephemeral
206
+
171
207
  @property
172
208
  def internal_conversation(self) -> 'bool':
173
209
  """Gets the internal_conversation of this AssistantIdConversationsBody. # noqa: E501
@@ -294,6 +330,27 @@ class AssistantIdConversationsBody(object):
294
330
 
295
331
  self._parent_message_id = parent_message_id
296
332
 
333
+ @property
334
+ def reasoning_effort(self) -> 'str':
335
+ """Gets the reasoning_effort of this AssistantIdConversationsBody. # noqa: E501
336
+
337
+
338
+ :return: The reasoning_effort of this AssistantIdConversationsBody. # noqa: E501
339
+ :rtype: str
340
+ """
341
+ return self._reasoning_effort
342
+
343
+ @reasoning_effort.setter
344
+ def reasoning_effort(self, reasoning_effort: 'str'):
345
+ """Sets the reasoning_effort of this AssistantIdConversationsBody.
346
+
347
+
348
+ :param reasoning_effort: The reasoning_effort of this AssistantIdConversationsBody. # noqa: E501
349
+ :type: str
350
+ """
351
+
352
+ self._reasoning_effort = reasoning_effort
353
+
297
354
  @property
298
355
  def store(self) -> 'bool':
299
356
  """Gets the store of this AssistantIdConversationsBody. # noqa: E501
@@ -336,6 +393,27 @@ class AssistantIdConversationsBody(object):
336
393
 
337
394
  self._stream = stream
338
395
 
396
+ @property
397
+ def system_prompt(self) -> 'str':
398
+ """Gets the system_prompt of this AssistantIdConversationsBody. # noqa: E501
399
+
400
+
401
+ :return: The system_prompt of this AssistantIdConversationsBody. # noqa: E501
402
+ :rtype: str
403
+ """
404
+ return self._system_prompt
405
+
406
+ @system_prompt.setter
407
+ def system_prompt(self, system_prompt: 'str'):
408
+ """Sets the system_prompt of this AssistantIdConversationsBody.
409
+
410
+
411
+ :param system_prompt: The system_prompt of this AssistantIdConversationsBody. # noqa: E501
412
+ :type: str
413
+ """
414
+
415
+ self._system_prompt = system_prompt
416
+
339
417
  def to_dict(self) -> dict:
340
418
  """Returns the model properties as a dict"""
341
419
  result = {}
@@ -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 CloudspaceIdVisibilityBody(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
+ 'visibility': 'V1ResourceVisibility'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'visibility': 'visibility'
49
+ }
50
+
51
+ def __init__(self, visibility: 'V1ResourceVisibility' =None): # noqa: E501
52
+ """CloudspaceIdVisibilityBody - a model defined in Swagger""" # noqa: E501
53
+ self._visibility = None
54
+ self.discriminator = None
55
+ if visibility is not None:
56
+ self.visibility = visibility
57
+
58
+ @property
59
+ def visibility(self) -> 'V1ResourceVisibility':
60
+ """Gets the visibility of this CloudspaceIdVisibilityBody. # noqa: E501
61
+
62
+
63
+ :return: The visibility of this CloudspaceIdVisibilityBody. # noqa: E501
64
+ :rtype: V1ResourceVisibility
65
+ """
66
+ return self._visibility
67
+
68
+ @visibility.setter
69
+ def visibility(self, visibility: 'V1ResourceVisibility'):
70
+ """Sets the visibility of this CloudspaceIdVisibilityBody.
71
+
72
+
73
+ :param visibility: The visibility of this CloudspaceIdVisibilityBody. # noqa: E501
74
+ :type: V1ResourceVisibility
75
+ """
76
+
77
+ self._visibility = visibility
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(CloudspaceIdVisibilityBody, 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: 'CloudspaceIdVisibilityBody') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, CloudspaceIdVisibilityBody):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'CloudspaceIdVisibilityBody') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -52,6 +52,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
52
52
  'name': 'str',
53
53
  'parameter_spec': 'V1ParameterizationSpec',
54
54
  'parent_template_id': 'str',
55
+ 'pipeline_reuse_deployment_between_runs': 'bool',
55
56
  'recipients': 'V1DeploymentAlertingRecipients',
56
57
  'replicas': 'int',
57
58
  'spec': 'V1JobSpec',
@@ -70,13 +71,14 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
70
71
  'name': 'name',
71
72
  'parameter_spec': 'parameterSpec',
72
73
  'parent_template_id': 'parentTemplateId',
74
+ 'pipeline_reuse_deployment_between_runs': 'pipelineReuseDeploymentBetweenRuns',
73
75
  'recipients': 'recipients',
74
76
  'replicas': 'replicas',
75
77
  'spec': 'spec',
76
78
  'strategy': 'strategy'
77
79
  }
78
80
 
79
- def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, recipients: 'V1DeploymentAlertingRecipients' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
81
+ def __init__(self, api_standard: 'str' =None, apis: 'list[V1DeploymentAPI]' =None, autoscaling: 'V1AutoscalingSpec' =None, cloudspace_id: 'str' =None, cluster_id: 'str' =None, endpoint: 'V1Endpoint' =None, from_litserve: 'bool' =None, from_onboarding: 'bool' =None, name: 'str' =None, parameter_spec: 'V1ParameterizationSpec' =None, parent_template_id: 'str' =None, pipeline_reuse_deployment_between_runs: 'bool' =None, recipients: 'V1DeploymentAlertingRecipients' =None, replicas: 'int' =None, spec: 'V1JobSpec' =None, strategy: 'V1DeploymentStrategy' =None): # noqa: E501
80
82
  """CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs - a model defined in Swagger""" # noqa: E501
81
83
  self._api_standard = None
82
84
  self._apis = None
@@ -89,6 +91,7 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
89
91
  self._name = None
90
92
  self._parameter_spec = None
91
93
  self._parent_template_id = None
94
+ self._pipeline_reuse_deployment_between_runs = None
92
95
  self._recipients = None
93
96
  self._replicas = None
94
97
  self._spec = None
@@ -116,6 +119,8 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
116
119
  self.parameter_spec = parameter_spec
117
120
  if parent_template_id is not None:
118
121
  self.parent_template_id = parent_template_id
122
+ if pipeline_reuse_deployment_between_runs is not None:
123
+ self.pipeline_reuse_deployment_between_runs = pipeline_reuse_deployment_between_runs
119
124
  if recipients is not None:
120
125
  self.recipients = recipients
121
126
  if replicas is not None:
@@ -356,6 +361,27 @@ class CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs(o
356
361
 
357
362
  self._parent_template_id = parent_template_id
358
363
 
364
+ @property
365
+ def pipeline_reuse_deployment_between_runs(self) -> 'bool':
366
+ """Gets the pipeline_reuse_deployment_between_runs of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
367
+
368
+
369
+ :return: The pipeline_reuse_deployment_between_runs of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
370
+ :rtype: bool
371
+ """
372
+ return self._pipeline_reuse_deployment_between_runs
373
+
374
+ @pipeline_reuse_deployment_between_runs.setter
375
+ def pipeline_reuse_deployment_between_runs(self, pipeline_reuse_deployment_between_runs: 'bool'):
376
+ """Sets the pipeline_reuse_deployment_between_runs of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs.
377
+
378
+
379
+ :param pipeline_reuse_deployment_between_runs: The pipeline_reuse_deployment_between_runs of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
380
+ :type: bool
381
+ """
382
+
383
+ self._pipeline_reuse_deployment_between_runs = pipeline_reuse_deployment_between_runs
384
+
359
385
  @property
360
386
  def recipients(self) -> 'V1DeploymentAlertingRecipients':
361
387
  """Gets the recipients of this CreateDeploymentRequestDefinesASpecForTheJobThatAllowsForAutoscalingJobs. # noqa: E501
@@ -0,0 +1,175 @@
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 CreditsAutoreplenishBody(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
+ 'allow_credits_auto_replenish': 'bool',
45
+ 'auto_replenish_amount': 'str',
46
+ 'auto_replenish_threshold': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'allow_credits_auto_replenish': 'allowCreditsAutoReplenish',
51
+ 'auto_replenish_amount': 'autoReplenishAmount',
52
+ 'auto_replenish_threshold': 'autoReplenishThreshold'
53
+ }
54
+
55
+ def __init__(self, allow_credits_auto_replenish: 'bool' =None, auto_replenish_amount: 'str' =None, auto_replenish_threshold: 'str' =None): # noqa: E501
56
+ """CreditsAutoreplenishBody - a model defined in Swagger""" # noqa: E501
57
+ self._allow_credits_auto_replenish = None
58
+ self._auto_replenish_amount = None
59
+ self._auto_replenish_threshold = None
60
+ self.discriminator = None
61
+ if allow_credits_auto_replenish is not None:
62
+ self.allow_credits_auto_replenish = allow_credits_auto_replenish
63
+ if auto_replenish_amount is not None:
64
+ self.auto_replenish_amount = auto_replenish_amount
65
+ if auto_replenish_threshold is not None:
66
+ self.auto_replenish_threshold = auto_replenish_threshold
67
+
68
+ @property
69
+ def allow_credits_auto_replenish(self) -> 'bool':
70
+ """Gets the allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
71
+
72
+
73
+ :return: The allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
74
+ :rtype: bool
75
+ """
76
+ return self._allow_credits_auto_replenish
77
+
78
+ @allow_credits_auto_replenish.setter
79
+ def allow_credits_auto_replenish(self, allow_credits_auto_replenish: 'bool'):
80
+ """Sets the allow_credits_auto_replenish of this CreditsAutoreplenishBody.
81
+
82
+
83
+ :param allow_credits_auto_replenish: The allow_credits_auto_replenish of this CreditsAutoreplenishBody. # noqa: E501
84
+ :type: bool
85
+ """
86
+
87
+ self._allow_credits_auto_replenish = allow_credits_auto_replenish
88
+
89
+ @property
90
+ def auto_replenish_amount(self) -> 'str':
91
+ """Gets the auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
92
+
93
+
94
+ :return: The auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._auto_replenish_amount
98
+
99
+ @auto_replenish_amount.setter
100
+ def auto_replenish_amount(self, auto_replenish_amount: 'str'):
101
+ """Sets the auto_replenish_amount of this CreditsAutoreplenishBody.
102
+
103
+
104
+ :param auto_replenish_amount: The auto_replenish_amount of this CreditsAutoreplenishBody. # noqa: E501
105
+ :type: str
106
+ """
107
+
108
+ self._auto_replenish_amount = auto_replenish_amount
109
+
110
+ @property
111
+ def auto_replenish_threshold(self) -> 'str':
112
+ """Gets the auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
113
+
114
+
115
+ :return: The auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._auto_replenish_threshold
119
+
120
+ @auto_replenish_threshold.setter
121
+ def auto_replenish_threshold(self, auto_replenish_threshold: 'str'):
122
+ """Sets the auto_replenish_threshold of this CreditsAutoreplenishBody.
123
+
124
+
125
+ :param auto_replenish_threshold: The auto_replenish_threshold of this CreditsAutoreplenishBody. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._auto_replenish_threshold = auto_replenish_threshold
130
+
131
+ def to_dict(self) -> dict:
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.swagger_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+ if issubclass(CreditsAutoreplenishBody, dict):
153
+ for key, value in self.items():
154
+ result[key] = value
155
+
156
+ return result
157
+
158
+ def to_str(self) -> str:
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self) -> str:
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other: 'CreditsAutoreplenishBody') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, CreditsAutoreplenishBody):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'CreditsAutoreplenishBody') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other