lightning-sdk 0.2.18__py3-none-any.whl → 0.2.19__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 (46) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/deployment_api.py +2 -0
  3. lightning_sdk/deployment/deployment.py +2 -0
  4. lightning_sdk/lightning_cloud/openapi/__init__.py +8 -0
  5. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  6. lightning_sdk/lightning_cloud/openapi/api/blog_posts_service_api.py +533 -0
  7. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +113 -0
  8. lightning_sdk/lightning_cloud/openapi/models/__init__.py +7 -0
  9. lightning_sdk/lightning_cloud/openapi/models/blogposts_id_body.py +253 -0
  10. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  11. lightning_sdk/lightning_cloud/openapi/models/id_transfer_body.py +123 -0
  12. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +157 -157
  13. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  14. lightning_sdk/lightning_cloud/openapi/models/v1_blog_post.py +331 -0
  15. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  16. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +27 -1
  17. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_state.py +1 -0
  18. lightning_sdk/lightning_cloud/openapi/models/v1_create_blog_post_request.py +253 -0
  19. lightning_sdk/lightning_cloud/openapi/models/v1_daily_usage.py +81 -3
  20. lightning_sdk/lightning_cloud/openapi/models/v1_delete_blog_post_response.py +123 -0
  21. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  22. lightning_sdk/lightning_cloud/openapi/models/v1_get_organization_storage_metadata_response.py +79 -1
  23. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_storage_metadata_response.py +133 -3
  24. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_storage_breakdown_response.py +27 -1
  25. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +53 -1
  26. lightning_sdk/lightning_cloud/openapi/models/v1_list_blog_posts_response.py +175 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +27 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +157 -157
  29. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +27 -1
  30. lightning_sdk/lightning_cloud/openapi/models/v1_project.py +53 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +27 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  33. lightning_sdk/lightning_cloud/openapi/models/v1_project_storage.py +79 -27
  34. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_storage_asset_type.py +2 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_transfer_cloud_space_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_usage.py +79 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +197 -67
  39. lightning_sdk/serve.py +1 -0
  40. lightning_sdk/services/license.py +87 -22
  41. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/METADATA +1 -1
  42. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/RECORD +46 -38
  43. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/LICENSE +0 -0
  44. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/WHEEL +0 -0
  45. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/entry_points.txt +0 -0
  46. {lightning_sdk-0.2.18.dist-info → lightning_sdk-0.2.19.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1TransferCloudSpaceResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1TransferCloudSpaceResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1TransferCloudSpaceResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1TransferCloudSpaceResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1TransferCloudSpaceResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1TransferCloudSpaceResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -56,6 +56,9 @@ class V1Usage(object):
56
56
  'session_ended_at': 'datetime',
57
57
  'session_started_at': 'datetime',
58
58
  'spot': 'bool',
59
+ 'total_completion_tokens': 'str',
60
+ 'total_num_messages': 'str',
61
+ 'total_prompt_tokens': 'str',
59
62
  'user_id': 'str'
60
63
  }
61
64
 
@@ -75,10 +78,13 @@ class V1Usage(object):
75
78
  'session_ended_at': 'sessionEndedAt',
76
79
  'session_started_at': 'sessionStartedAt',
77
80
  'spot': 'spot',
81
+ 'total_completion_tokens': 'totalCompletionTokens',
82
+ 'total_num_messages': 'totalNumMessages',
83
+ 'total_prompt_tokens': 'totalPromptTokens',
78
84
  'user_id': 'userId'
79
85
  }
80
86
 
81
- def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None, name: 'str' =None, project_id: 'str' =None, reservations: 'list[V1ReservationBillingSession]' =None, resource_type: 'str' =None, saved_cost: 'float' =None, session_ended_at: 'datetime' =None, session_started_at: 'datetime' =None, spot: 'bool' =None, user_id: 'str' =None): # noqa: E501
87
+ def __init__(self, billed_time_seconds: 'str' =None, cluster_id: 'str' =None, cost: 'float' =None, created_at: 'datetime' =None, deleted_at: 'datetime' =None, free: 'bool' =None, id: 'str' =None, name: 'str' =None, project_id: 'str' =None, reservations: 'list[V1ReservationBillingSession]' =None, resource_type: 'str' =None, saved_cost: 'float' =None, session_ended_at: 'datetime' =None, session_started_at: 'datetime' =None, spot: 'bool' =None, total_completion_tokens: 'str' =None, total_num_messages: 'str' =None, total_prompt_tokens: 'str' =None, user_id: 'str' =None): # noqa: E501
82
88
  """V1Usage - a model defined in Swagger""" # noqa: E501
83
89
  self._billed_time_seconds = None
84
90
  self._cluster_id = None
@@ -95,6 +101,9 @@ class V1Usage(object):
95
101
  self._session_ended_at = None
96
102
  self._session_started_at = None
97
103
  self._spot = None
104
+ self._total_completion_tokens = None
105
+ self._total_num_messages = None
106
+ self._total_prompt_tokens = None
98
107
  self._user_id = None
99
108
  self.discriminator = None
100
109
  if billed_time_seconds is not None:
@@ -127,6 +136,12 @@ class V1Usage(object):
127
136
  self.session_started_at = session_started_at
128
137
  if spot is not None:
129
138
  self.spot = spot
139
+ if total_completion_tokens is not None:
140
+ self.total_completion_tokens = total_completion_tokens
141
+ if total_num_messages is not None:
142
+ self.total_num_messages = total_num_messages
143
+ if total_prompt_tokens is not None:
144
+ self.total_prompt_tokens = total_prompt_tokens
130
145
  if user_id is not None:
131
146
  self.user_id = user_id
132
147
 
@@ -445,6 +460,69 @@ class V1Usage(object):
445
460
 
446
461
  self._spot = spot
447
462
 
463
+ @property
464
+ def total_completion_tokens(self) -> 'str':
465
+ """Gets the total_completion_tokens of this V1Usage. # noqa: E501
466
+
467
+
468
+ :return: The total_completion_tokens of this V1Usage. # noqa: E501
469
+ :rtype: str
470
+ """
471
+ return self._total_completion_tokens
472
+
473
+ @total_completion_tokens.setter
474
+ def total_completion_tokens(self, total_completion_tokens: 'str'):
475
+ """Sets the total_completion_tokens of this V1Usage.
476
+
477
+
478
+ :param total_completion_tokens: The total_completion_tokens of this V1Usage. # noqa: E501
479
+ :type: str
480
+ """
481
+
482
+ self._total_completion_tokens = total_completion_tokens
483
+
484
+ @property
485
+ def total_num_messages(self) -> 'str':
486
+ """Gets the total_num_messages of this V1Usage. # noqa: E501
487
+
488
+
489
+ :return: The total_num_messages of this V1Usage. # noqa: E501
490
+ :rtype: str
491
+ """
492
+ return self._total_num_messages
493
+
494
+ @total_num_messages.setter
495
+ def total_num_messages(self, total_num_messages: 'str'):
496
+ """Sets the total_num_messages of this V1Usage.
497
+
498
+
499
+ :param total_num_messages: The total_num_messages of this V1Usage. # noqa: E501
500
+ :type: str
501
+ """
502
+
503
+ self._total_num_messages = total_num_messages
504
+
505
+ @property
506
+ def total_prompt_tokens(self) -> 'str':
507
+ """Gets the total_prompt_tokens of this V1Usage. # noqa: E501
508
+
509
+
510
+ :return: The total_prompt_tokens of this V1Usage. # noqa: E501
511
+ :rtype: str
512
+ """
513
+ return self._total_prompt_tokens
514
+
515
+ @total_prompt_tokens.setter
516
+ def total_prompt_tokens(self, total_prompt_tokens: 'str'):
517
+ """Sets the total_prompt_tokens of this V1Usage.
518
+
519
+
520
+ :param total_prompt_tokens: The total_prompt_tokens of this V1Usage. # noqa: E501
521
+ :type: str
522
+ """
523
+
524
+ self._total_prompt_tokens = total_prompt_tokens
525
+
448
526
  @property
449
527
  def user_id(self) -> 'str':
450
528
  """Gets the user_id of this V1Usage. # noqa: E501