lightning-sdk 0.2.14__py3-none-any.whl → 0.2.15__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/base_studio_api.py +73 -0
  3. lightning_sdk/api/license_api.py +48 -0
  4. lightning_sdk/api/llm_api.py +50 -8
  5. lightning_sdk/api/studio_api.py +47 -1
  6. lightning_sdk/base_studio.py +70 -0
  7. lightning_sdk/cli/delete.py +6 -8
  8. lightning_sdk/cli/download.py +25 -0
  9. lightning_sdk/cli/serve.py +82 -30
  10. lightning_sdk/cli/teamspace_menu.py +9 -1
  11. lightning_sdk/cli/upload.py +0 -1
  12. lightning_sdk/lightning_cloud/openapi/__init__.py +11 -0
  13. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  14. lightning_sdk/lightning_cloud/openapi/api/billing_service_api.py +9 -1
  15. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +121 -0
  16. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +178 -0
  17. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +243 -2
  18. lightning_sdk/lightning_cloud/openapi/api/product_license_service_api.py +525 -0
  19. lightning_sdk/lightning_cloud/openapi/configuration.py +1 -1
  20. lightning_sdk/lightning_cloud/openapi/models/__init__.py +10 -0
  21. lightning_sdk/lightning_cloud/openapi/models/assistant_id_conversations_body.py +53 -1
  22. lightning_sdk/lightning_cloud/openapi/models/endpoints_id_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +79 -1
  25. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +6 -6
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_storage_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +79 -1
  28. lightning_sdk/lightning_cloud/openapi/models/storage_complete_body.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/update.py +79 -1
  30. lightning_sdk/lightning_cloud/openapi/models/uploads_upload_id_body1.py +55 -3
  31. lightning_sdk/lightning_cloud/openapi/models/v1_aws_direct_v1.py +53 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +3 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_config.py +123 -0
  35. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +79 -1
  36. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_type.py +104 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_cloudflare_v1.py +66 -66
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_upload.py +149 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_complete_upload.py +55 -3
  41. lightning_sdk/lightning_cloud/openapi/models/v1_conversation.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +79 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_api.py +27 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_state.py +4 -4
  45. lightning_sdk/lightning_cloud/openapi/models/v1_endpoint.py +27 -1
  46. lightning_sdk/lightning_cloud/openapi/models/v1_external_search_user.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_ge_list_deployment_routing_telemetry_response.py +97 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_get_job_stats_response.py +53 -1
  49. lightning_sdk/lightning_cloud/openapi/models/v1_get_project_balance_response.py +1 -27
  50. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  51. lightning_sdk/lightning_cloud/openapi/models/v1_job_type.py +1 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_list_product_licenses_response.py +123 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +27 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_membership.py +17 -17
  55. lightning_sdk/lightning_cloud/openapi/models/v1_modify_filesystem_volume_response.py +97 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +79 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +6 -6
  58. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_state.py +111 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_presigned_url.py +53 -1
  60. lightning_sdk/lightning_cloud/openapi/models/v1_product_license.py +409 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_product_license_check_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_project_membership.py +17 -17
  63. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +79 -1
  64. lightning_sdk/lightning_cloud/openapi/models/v1_r2_data_connection.py +53 -1
  65. lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +1 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_trigger_filesystem_upgrade_response.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_upload_project_artifact_response.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_usage_report.py +79 -1
  71. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +295 -113
  72. lightning_sdk/lightning_cloud/rest_client.py +4 -0
  73. lightning_sdk/llm/llm.py +88 -40
  74. lightning_sdk/services/__init__.py +1 -1
  75. lightning_sdk/services/license.py +236 -0
  76. lightning_sdk/studio.py +30 -0
  77. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/METADATA +1 -1
  78. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/RECORD +83 -68
  79. /lightning_sdk/services/{finetune/__init__.py → finetune_llm.py} +0 -0
  80. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/LICENSE +0 -0
  81. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/WHEEL +0 -0
  82. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/entry_points.txt +0 -0
  83. {lightning_sdk-0.2.14.dist-info → lightning_sdk-0.2.15.dist-info}/top_level.txt +0 -0
@@ -41,25 +41,103 @@ class V1CloudSpaceEnvironmentTemplateConfig(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'allowed_machines': 'list[str]',
45
+ 'default_machine': 'str',
46
+ 'environment_type': 'V1CloudSpaceEnvironmentType',
44
47
  'machine_image_version': 'str',
45
48
  'setup_script_text': 'str'
46
49
  }
47
50
 
48
51
  attribute_map = {
52
+ 'allowed_machines': 'allowedMachines',
53
+ 'default_machine': 'defaultMachine',
54
+ 'environment_type': 'environmentType',
49
55
  'machine_image_version': 'machineImageVersion',
50
56
  'setup_script_text': 'setupScriptText'
51
57
  }
52
58
 
53
- def __init__(self, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
59
+ def __init__(self, allowed_machines: 'list[str]' =None, default_machine: 'str' =None, environment_type: 'V1CloudSpaceEnvironmentType' =None, machine_image_version: 'str' =None, setup_script_text: 'str' =None): # noqa: E501
54
60
  """V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
61
+ self._allowed_machines = None
62
+ self._default_machine = None
63
+ self._environment_type = None
55
64
  self._machine_image_version = None
56
65
  self._setup_script_text = None
57
66
  self.discriminator = None
67
+ if allowed_machines is not None:
68
+ self.allowed_machines = allowed_machines
69
+ if default_machine is not None:
70
+ self.default_machine = default_machine
71
+ if environment_type is not None:
72
+ self.environment_type = environment_type
58
73
  if machine_image_version is not None:
59
74
  self.machine_image_version = machine_image_version
60
75
  if setup_script_text is not None:
61
76
  self.setup_script_text = setup_script_text
62
77
 
78
+ @property
79
+ def allowed_machines(self) -> 'list[str]':
80
+ """Gets the allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
81
+
82
+
83
+ :return: The allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
84
+ :rtype: list[str]
85
+ """
86
+ return self._allowed_machines
87
+
88
+ @allowed_machines.setter
89
+ def allowed_machines(self, allowed_machines: 'list[str]'):
90
+ """Sets the allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig.
91
+
92
+
93
+ :param allowed_machines: The allowed_machines of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
94
+ :type: list[str]
95
+ """
96
+
97
+ self._allowed_machines = allowed_machines
98
+
99
+ @property
100
+ def default_machine(self) -> 'str':
101
+ """Gets the default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
102
+
103
+
104
+ :return: The default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._default_machine
108
+
109
+ @default_machine.setter
110
+ def default_machine(self, default_machine: 'str'):
111
+ """Sets the default_machine of this V1CloudSpaceEnvironmentTemplateConfig.
112
+
113
+
114
+ :param default_machine: The default_machine of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._default_machine = default_machine
119
+
120
+ @property
121
+ def environment_type(self) -> 'V1CloudSpaceEnvironmentType':
122
+ """Gets the environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
123
+
124
+
125
+ :return: The environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
126
+ :rtype: V1CloudSpaceEnvironmentType
127
+ """
128
+ return self._environment_type
129
+
130
+ @environment_type.setter
131
+ def environment_type(self, environment_type: 'V1CloudSpaceEnvironmentType'):
132
+ """Sets the environment_type of this V1CloudSpaceEnvironmentTemplateConfig.
133
+
134
+
135
+ :param environment_type: The environment_type of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
136
+ :type: V1CloudSpaceEnvironmentType
137
+ """
138
+
139
+ self._environment_type = environment_type
140
+
63
141
  @property
64
142
  def machine_image_version(self) -> 'str':
65
143
  """Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # 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 V1CloudSpaceEnvironmentType(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
+ UNSPECIFIED = "CLOUD_SPACE_ENVIRONMENT_TYPE_UNSPECIFIED"
41
+ DEFAULT = "CLOUD_SPACE_ENVIRONMENT_TYPE_DEFAULT"
42
+ BLANK = "CLOUD_SPACE_ENVIRONMENT_TYPE_BLANK"
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
+ """V1CloudSpaceEnvironmentType - 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(V1CloudSpaceEnvironmentType, 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: 'V1CloudSpaceEnvironmentType') -> bool:
96
+ """Returns true if both objects are equal"""
97
+ if not isinstance(other, V1CloudSpaceEnvironmentType):
98
+ return False
99
+
100
+ return self.__dict__ == other.__dict__
101
+
102
+ def __ne__(self, other: 'V1CloudSpaceEnvironmentType') -> bool:
103
+ """Returns true if both objects are not equal"""
104
+ return not self == other
@@ -41,144 +41,144 @@ class V1CloudflareV1(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'access_key_id': 'str',
45
44
  'account_id': 'str',
46
- 'api_token_id': 'str',
47
- 'r2_endpoint': 'str',
48
- 'secret_access_key': 'str'
45
+ 'api_token_secret_id': 'str',
46
+ 'api_token_value': 'str',
47
+ 'bucket_credentials_secret_id': 'str',
48
+ 'bucket_name': 'str'
49
49
  }
50
50
 
51
51
  attribute_map = {
52
- 'access_key_id': 'accessKeyId',
53
52
  'account_id': 'accountId',
54
- 'api_token_id': 'apiTokenId',
55
- 'r2_endpoint': 'r2Endpoint',
56
- 'secret_access_key': 'secretAccessKey'
53
+ 'api_token_secret_id': 'apiTokenSecretId',
54
+ 'api_token_value': 'apiTokenValue',
55
+ 'bucket_credentials_secret_id': 'bucketCredentialsSecretId',
56
+ 'bucket_name': 'bucketName'
57
57
  }
58
58
 
59
- def __init__(self, access_key_id: 'str' =None, account_id: 'str' =None, api_token_id: 'str' =None, r2_endpoint: 'str' =None, secret_access_key: 'str' =None): # noqa: E501
59
+ def __init__(self, account_id: 'str' =None, api_token_secret_id: 'str' =None, api_token_value: 'str' =None, bucket_credentials_secret_id: 'str' =None, bucket_name: 'str' =None): # noqa: E501
60
60
  """V1CloudflareV1 - a model defined in Swagger""" # noqa: E501
61
- self._access_key_id = None
62
61
  self._account_id = None
63
- self._api_token_id = None
64
- self._r2_endpoint = None
65
- self._secret_access_key = None
62
+ self._api_token_secret_id = None
63
+ self._api_token_value = None
64
+ self._bucket_credentials_secret_id = None
65
+ self._bucket_name = None
66
66
  self.discriminator = None
67
- if access_key_id is not None:
68
- self.access_key_id = access_key_id
69
67
  if account_id is not None:
70
68
  self.account_id = account_id
71
- if api_token_id is not None:
72
- self.api_token_id = api_token_id
73
- if r2_endpoint is not None:
74
- self.r2_endpoint = r2_endpoint
75
- if secret_access_key is not None:
76
- self.secret_access_key = secret_access_key
69
+ if api_token_secret_id is not None:
70
+ self.api_token_secret_id = api_token_secret_id
71
+ if api_token_value is not None:
72
+ self.api_token_value = api_token_value
73
+ if bucket_credentials_secret_id is not None:
74
+ self.bucket_credentials_secret_id = bucket_credentials_secret_id
75
+ if bucket_name is not None:
76
+ self.bucket_name = bucket_name
77
77
 
78
78
  @property
79
- def access_key_id(self) -> 'str':
80
- """Gets the access_key_id of this V1CloudflareV1. # noqa: E501
79
+ def account_id(self) -> 'str':
80
+ """Gets the account_id of this V1CloudflareV1. # noqa: E501
81
81
 
82
82
 
83
- :return: The access_key_id of this V1CloudflareV1. # noqa: E501
83
+ :return: The account_id of this V1CloudflareV1. # noqa: E501
84
84
  :rtype: str
85
85
  """
86
- return self._access_key_id
86
+ return self._account_id
87
87
 
88
- @access_key_id.setter
89
- def access_key_id(self, access_key_id: 'str'):
90
- """Sets the access_key_id of this V1CloudflareV1.
88
+ @account_id.setter
89
+ def account_id(self, account_id: 'str'):
90
+ """Sets the account_id of this V1CloudflareV1.
91
91
 
92
92
 
93
- :param access_key_id: The access_key_id of this V1CloudflareV1. # noqa: E501
93
+ :param account_id: The account_id of this V1CloudflareV1. # noqa: E501
94
94
  :type: str
95
95
  """
96
96
 
97
- self._access_key_id = access_key_id
97
+ self._account_id = account_id
98
98
 
99
99
  @property
100
- def account_id(self) -> 'str':
101
- """Gets the account_id of this V1CloudflareV1. # noqa: E501
100
+ def api_token_secret_id(self) -> 'str':
101
+ """Gets the api_token_secret_id of this V1CloudflareV1. # noqa: E501
102
102
 
103
103
 
104
- :return: The account_id of this V1CloudflareV1. # noqa: E501
104
+ :return: The api_token_secret_id of this V1CloudflareV1. # noqa: E501
105
105
  :rtype: str
106
106
  """
107
- return self._account_id
107
+ return self._api_token_secret_id
108
108
 
109
- @account_id.setter
110
- def account_id(self, account_id: 'str'):
111
- """Sets the account_id of this V1CloudflareV1.
109
+ @api_token_secret_id.setter
110
+ def api_token_secret_id(self, api_token_secret_id: 'str'):
111
+ """Sets the api_token_secret_id of this V1CloudflareV1.
112
112
 
113
113
 
114
- :param account_id: The account_id of this V1CloudflareV1. # noqa: E501
114
+ :param api_token_secret_id: The api_token_secret_id of this V1CloudflareV1. # noqa: E501
115
115
  :type: str
116
116
  """
117
117
 
118
- self._account_id = account_id
118
+ self._api_token_secret_id = api_token_secret_id
119
119
 
120
120
  @property
121
- def api_token_id(self) -> 'str':
122
- """Gets the api_token_id of this V1CloudflareV1. # noqa: E501
121
+ def api_token_value(self) -> 'str':
122
+ """Gets the api_token_value of this V1CloudflareV1. # noqa: E501
123
123
 
124
124
 
125
- :return: The api_token_id of this V1CloudflareV1. # noqa: E501
125
+ :return: The api_token_value of this V1CloudflareV1. # noqa: E501
126
126
  :rtype: str
127
127
  """
128
- return self._api_token_id
128
+ return self._api_token_value
129
129
 
130
- @api_token_id.setter
131
- def api_token_id(self, api_token_id: 'str'):
132
- """Sets the api_token_id of this V1CloudflareV1.
130
+ @api_token_value.setter
131
+ def api_token_value(self, api_token_value: 'str'):
132
+ """Sets the api_token_value of this V1CloudflareV1.
133
133
 
134
134
 
135
- :param api_token_id: The api_token_id of this V1CloudflareV1. # noqa: E501
135
+ :param api_token_value: The api_token_value of this V1CloudflareV1. # noqa: E501
136
136
  :type: str
137
137
  """
138
138
 
139
- self._api_token_id = api_token_id
139
+ self._api_token_value = api_token_value
140
140
 
141
141
  @property
142
- def r2_endpoint(self) -> 'str':
143
- """Gets the r2_endpoint of this V1CloudflareV1. # noqa: E501
142
+ def bucket_credentials_secret_id(self) -> 'str':
143
+ """Gets the bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
144
144
 
145
145
 
146
- :return: The r2_endpoint of this V1CloudflareV1. # noqa: E501
146
+ :return: The bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
147
147
  :rtype: str
148
148
  """
149
- return self._r2_endpoint
149
+ return self._bucket_credentials_secret_id
150
150
 
151
- @r2_endpoint.setter
152
- def r2_endpoint(self, r2_endpoint: 'str'):
153
- """Sets the r2_endpoint of this V1CloudflareV1.
151
+ @bucket_credentials_secret_id.setter
152
+ def bucket_credentials_secret_id(self, bucket_credentials_secret_id: 'str'):
153
+ """Sets the bucket_credentials_secret_id of this V1CloudflareV1.
154
154
 
155
155
 
156
- :param r2_endpoint: The r2_endpoint of this V1CloudflareV1. # noqa: E501
156
+ :param bucket_credentials_secret_id: The bucket_credentials_secret_id of this V1CloudflareV1. # noqa: E501
157
157
  :type: str
158
158
  """
159
159
 
160
- self._r2_endpoint = r2_endpoint
160
+ self._bucket_credentials_secret_id = bucket_credentials_secret_id
161
161
 
162
162
  @property
163
- def secret_access_key(self) -> 'str':
164
- """Gets the secret_access_key of this V1CloudflareV1. # noqa: E501
163
+ def bucket_name(self) -> 'str':
164
+ """Gets the bucket_name of this V1CloudflareV1. # noqa: E501
165
165
 
166
166
 
167
- :return: The secret_access_key of this V1CloudflareV1. # noqa: E501
167
+ :return: The bucket_name of this V1CloudflareV1. # noqa: E501
168
168
  :rtype: str
169
169
  """
170
- return self._secret_access_key
170
+ return self._bucket_name
171
171
 
172
- @secret_access_key.setter
173
- def secret_access_key(self, secret_access_key: 'str'):
174
- """Sets the secret_access_key of this V1CloudflareV1.
172
+ @bucket_name.setter
173
+ def bucket_name(self, bucket_name: 'str'):
174
+ """Sets the bucket_name of this V1CloudflareV1.
175
175
 
176
176
 
177
- :param secret_access_key: The secret_access_key of this V1CloudflareV1. # noqa: E501
177
+ :param bucket_name: The bucket_name of this V1CloudflareV1. # noqa: E501
178
178
  :type: str
179
179
  """
180
180
 
181
- self._secret_access_key = secret_access_key
181
+ self._bucket_name = bucket_name
182
182
 
183
183
  def to_dict(self) -> dict:
184
184
  """Returns the model properties as a dict"""
@@ -49,6 +49,7 @@ class V1ClusterSpec(object):
49
49
  'deletion_options': 'V1ClusterDeletionOptions',
50
50
  'desired_state': 'V1ClusterState',
51
51
  'domain': 'str',
52
+ 'driver': 'V1CloudProvider',
52
53
  'freeze_accelerators': 'bool',
53
54
  'google_cloud_v1': 'V1GoogleCloudDirectV1',
54
55
  'insurer_disabled': 'bool',
@@ -80,6 +81,7 @@ class V1ClusterSpec(object):
80
81
  'deletion_options': 'deletionOptions',
81
82
  'desired_state': 'desiredState',
82
83
  'domain': 'domain',
84
+ 'driver': 'driver',
83
85
  'freeze_accelerators': 'freezeAccelerators',
84
86
  'google_cloud_v1': 'googleCloudV1',
85
87
  'insurer_disabled': 'insurerDisabled',
@@ -102,7 +104,7 @@ class V1ClusterSpec(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, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =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, deletion_options: 'V1ClusterDeletionOptions' =None, desired_state: 'V1ClusterState' =None, domain: 'str' =None, driver: 'V1CloudProvider' =None, freeze_accelerators: 'bool' =None, google_cloud_v1: 'V1GoogleCloudDirectV1' =None, insurer_disabled: 'bool' =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
  """V1ClusterSpec - a model defined in Swagger""" # noqa: E501
107
109
  self._auth_token = None
108
110
  self._available_accelerators = None
@@ -112,6 +114,7 @@ class V1ClusterSpec(object):
112
114
  self._deletion_options = None
113
115
  self._desired_state = None
114
116
  self._domain = None
117
+ self._driver = None
115
118
  self._freeze_accelerators = None
116
119
  self._google_cloud_v1 = None
117
120
  self._insurer_disabled = None
@@ -149,6 +152,8 @@ class V1ClusterSpec(object):
149
152
  self.desired_state = desired_state
150
153
  if domain is not None:
151
154
  self.domain = domain
155
+ if driver is not None:
156
+ self.driver = driver
152
157
  if freeze_accelerators is not None:
153
158
  self.freeze_accelerators = freeze_accelerators
154
159
  if google_cloud_v1 is not None:
@@ -360,6 +365,27 @@ class V1ClusterSpec(object):
360
365
 
361
366
  self._domain = domain
362
367
 
368
+ @property
369
+ def driver(self) -> 'V1CloudProvider':
370
+ """Gets the driver of this V1ClusterSpec. # noqa: E501
371
+
372
+
373
+ :return: The driver of this V1ClusterSpec. # noqa: E501
374
+ :rtype: V1CloudProvider
375
+ """
376
+ return self._driver
377
+
378
+ @driver.setter
379
+ def driver(self, driver: 'V1CloudProvider'):
380
+ """Sets the driver of this V1ClusterSpec.
381
+
382
+
383
+ :param driver: The driver of this V1ClusterSpec. # noqa: E501
384
+ :type: V1CloudProvider
385
+ """
386
+
387
+ self._driver = driver
388
+
363
389
  @property
364
390
  def freeze_accelerators(self) -> 'bool':
365
391
  """Gets the freeze_accelerators of this V1ClusterSpec. # noqa: E501
@@ -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 V1ClusterUpload(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
+ 'cluster_id': 'str',
45
+ 'upload_id': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'cluster_id': 'clusterId',
50
+ 'upload_id': 'uploadId'
51
+ }
52
+
53
+ def __init__(self, cluster_id: 'str' =None, upload_id: 'str' =None): # noqa: E501
54
+ """V1ClusterUpload - a model defined in Swagger""" # noqa: E501
55
+ self._cluster_id = None
56
+ self._upload_id = None
57
+ self.discriminator = None
58
+ if cluster_id is not None:
59
+ self.cluster_id = cluster_id
60
+ if upload_id is not None:
61
+ self.upload_id = upload_id
62
+
63
+ @property
64
+ def cluster_id(self) -> 'str':
65
+ """Gets the cluster_id of this V1ClusterUpload. # noqa: E501
66
+
67
+
68
+ :return: The cluster_id of this V1ClusterUpload. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._cluster_id
72
+
73
+ @cluster_id.setter
74
+ def cluster_id(self, cluster_id: 'str'):
75
+ """Sets the cluster_id of this V1ClusterUpload.
76
+
77
+
78
+ :param cluster_id: The cluster_id of this V1ClusterUpload. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._cluster_id = cluster_id
83
+
84
+ @property
85
+ def upload_id(self) -> 'str':
86
+ """Gets the upload_id of this V1ClusterUpload. # noqa: E501
87
+
88
+
89
+ :return: The upload_id of this V1ClusterUpload. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._upload_id
93
+
94
+ @upload_id.setter
95
+ def upload_id(self, upload_id: 'str'):
96
+ """Sets the upload_id of this V1ClusterUpload.
97
+
98
+
99
+ :param upload_id: The upload_id of this V1ClusterUpload. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._upload_id = upload_id
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(V1ClusterUpload, 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: 'V1ClusterUpload') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1ClusterUpload):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1ClusterUpload') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other