lightning-sdk 0.2.5__py3-none-any.whl → 0.2.7__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 (65) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/api/ai_hub_api.py +1 -0
  3. lightning_sdk/api/lit_container_api.py +84 -24
  4. lightning_sdk/api/teamspace_api.py +8 -9
  5. lightning_sdk/api/utils.py +0 -1
  6. lightning_sdk/cli/docker.py +1 -1
  7. lightning_sdk/cli/download.py +10 -2
  8. lightning_sdk/cli/serve.py +26 -19
  9. lightning_sdk/cli/upload.py +41 -6
  10. lightning_sdk/lightning_cloud/openapi/__init__.py +16 -0
  11. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +9 -9
  12. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +202 -0
  13. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +105 -0
  14. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +15 -3
  15. lightning_sdk/lightning_cloud/openapi/models/__init__.py +16 -0
  16. lightning_sdk/lightning_cloud/openapi/models/alerts_config_billing.py +175 -0
  17. lightning_sdk/lightning_cloud/openapi/models/alerts_config_studios.py +149 -0
  18. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +27 -1
  19. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +27 -1
  20. lightning_sdk/lightning_cloud/openapi/models/externalv1_cluster.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +53 -1
  22. lightning_sdk/lightning_cloud/openapi/models/project_id_cloudspaces_body.py +27 -1
  23. lightning_sdk/lightning_cloud/openapi/models/projects_id_body.py +27 -1
  24. lightning_sdk/lightning_cloud/openapi/models/server_id_alerts_body.py +201 -0
  25. lightning_sdk/lightning_cloud/openapi/models/v1_alert_method.py +102 -0
  26. lightning_sdk/lightning_cloud/openapi/models/v1_alerts_config.py +149 -0
  27. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_cold_start_metrics.py +617 -0
  28. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +27 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template_config.py +123 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +131 -1
  32. lightning_sdk/lightning_cloud/openapi/models/v1_conversation_response_chunk.py +29 -3
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +27 -1
  34. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_create_server_alert_response.py +97 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +27 -1
  37. lightning_sdk/lightning_cloud/openapi/models/v1_google_cloud_direct_v1.py +81 -3
  38. lightning_sdk/lightning_cloud/openapi/models/v1_lambda_labs_direct_v1.py +1 -29
  39. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_cold_start_metrics_response.py +123 -0
  40. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_registry_repository_image_artifact_versions_response.py +27 -1
  41. lightning_sdk/lightning_cloud/openapi/models/v1_message.py +29 -3
  42. lightning_sdk/lightning_cloud/openapi/models/v1_metadata.py +27 -1
  43. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  44. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_report_cloud_space_instance_stop_at_response.py +97 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_reservation_details.py +201 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_rule_resource.py +1 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert.py +201 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_phase.py +104 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_severity.py +103 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_server_alert_type.py +105 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_subnet_spec.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +131 -79
  54. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +29 -29
  55. lightning_sdk/lightning_cloud/openapi/models/v1_vultr_direct_v1.py +1 -27
  56. lightning_sdk/lit_container.py +19 -4
  57. lightning_sdk/models.py +1 -1
  58. lightning_sdk/serve.py +86 -15
  59. lightning_sdk/teamspace.py +32 -18
  60. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/METADATA +1 -1
  61. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/RECORD +65 -49
  62. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/LICENSE +0 -0
  63. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/WHEEL +0 -0
  64. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/entry_points.txt +0 -0
  65. {lightning_sdk-0.2.5.dist-info → lightning_sdk-0.2.7.dist-info}/top_level.txt +0 -0
@@ -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 V1CloudSpaceEnvironmentTemplateConfig(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
+ 'machine_image_version': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'machine_image_version': 'machineImageVersion'
49
+ }
50
+
51
+ def __init__(self, machine_image_version: 'str' =None): # noqa: E501
52
+ """V1CloudSpaceEnvironmentTemplateConfig - a model defined in Swagger""" # noqa: E501
53
+ self._machine_image_version = None
54
+ self.discriminator = None
55
+ if machine_image_version is not None:
56
+ self.machine_image_version = machine_image_version
57
+
58
+ @property
59
+ def machine_image_version(self) -> 'str':
60
+ """Gets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
61
+
62
+
63
+ :return: The machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._machine_image_version
67
+
68
+ @machine_image_version.setter
69
+ def machine_image_version(self, machine_image_version: 'str'):
70
+ """Sets the machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig.
71
+
72
+
73
+ :param machine_image_version: The machine_image_version of this V1CloudSpaceEnvironmentTemplateConfig. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._machine_image_version = machine_image_version
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(V1CloudSpaceEnvironmentTemplateConfig, 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: 'V1CloudSpaceEnvironmentTemplateConfig') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1CloudSpaceEnvironmentTemplateConfig):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1CloudSpaceEnvironmentTemplateConfig') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -46,6 +46,7 @@ class V1ClusterSecurityOptions(object):
46
46
  'disable_public_ip': 'bool',
47
47
  'encrypt_cluster_bucket': 'bool',
48
48
  'encrypt_instance_volumes': 'bool',
49
+ 'extra_firewall_cidr_ranges': 'list[str]',
49
50
  'extra_policy': 'str',
50
51
  'kms_key_id': 'str',
51
52
  'protect_instance_metadata': 'bool',
@@ -60,6 +61,7 @@ class V1ClusterSecurityOptions(object):
60
61
  'disable_public_ip': 'disablePublicIp',
61
62
  'encrypt_cluster_bucket': 'encryptClusterBucket',
62
63
  'encrypt_instance_volumes': 'encryptInstanceVolumes',
64
+ 'extra_firewall_cidr_ranges': 'extraFirewallCidrRanges',
63
65
  'extra_policy': 'extraPolicy',
64
66
  'kms_key_id': 'kmsKeyId',
65
67
  'protect_instance_metadata': 'protectInstanceMetadata',
@@ -68,13 +70,14 @@ class V1ClusterSecurityOptions(object):
68
70
  'ssh_disabled': 'sshDisabled'
69
71
  }
70
72
 
71
- def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
73
+ def __init__(self, bucket_kms_key: 'str' =None, containers_non_privileged: 'bool' =None, disable_public_ip: 'bool' =None, encrypt_cluster_bucket: 'bool' =None, encrypt_instance_volumes: 'bool' =None, extra_firewall_cidr_ranges: 'list[str]' =None, extra_policy: 'str' =None, kms_key_id: 'str' =None, protect_instance_metadata: 'bool' =None, rootless_docker: 'bool' =None, setup_network_load_balancer: 'bool' =None, ssh_disabled: 'bool' =None): # noqa: E501
72
74
  """V1ClusterSecurityOptions - a model defined in Swagger""" # noqa: E501
73
75
  self._bucket_kms_key = None
74
76
  self._containers_non_privileged = None
75
77
  self._disable_public_ip = None
76
78
  self._encrypt_cluster_bucket = None
77
79
  self._encrypt_instance_volumes = None
80
+ self._extra_firewall_cidr_ranges = None
78
81
  self._extra_policy = None
79
82
  self._kms_key_id = None
80
83
  self._protect_instance_metadata = None
@@ -92,6 +95,8 @@ class V1ClusterSecurityOptions(object):
92
95
  self.encrypt_cluster_bucket = encrypt_cluster_bucket
93
96
  if encrypt_instance_volumes is not None:
94
97
  self.encrypt_instance_volumes = encrypt_instance_volumes
98
+ if extra_firewall_cidr_ranges is not None:
99
+ self.extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
95
100
  if extra_policy is not None:
96
101
  self.extra_policy = extra_policy
97
102
  if kms_key_id is not None:
@@ -210,6 +215,27 @@ class V1ClusterSecurityOptions(object):
210
215
 
211
216
  self._encrypt_instance_volumes = encrypt_instance_volumes
212
217
 
218
+ @property
219
+ def extra_firewall_cidr_ranges(self) -> 'list[str]':
220
+ """Gets the extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
221
+
222
+
223
+ :return: The extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
224
+ :rtype: list[str]
225
+ """
226
+ return self._extra_firewall_cidr_ranges
227
+
228
+ @extra_firewall_cidr_ranges.setter
229
+ def extra_firewall_cidr_ranges(self, extra_firewall_cidr_ranges: 'list[str]'):
230
+ """Sets the extra_firewall_cidr_ranges of this V1ClusterSecurityOptions.
231
+
232
+
233
+ :param extra_firewall_cidr_ranges: The extra_firewall_cidr_ranges of this V1ClusterSecurityOptions. # noqa: E501
234
+ :type: list[str]
235
+ """
236
+
237
+ self._extra_firewall_cidr_ranges = extra_firewall_cidr_ranges
238
+
213
239
  @property
214
240
  def extra_policy(self) -> 'str':
215
241
  """Gets the extra_policy of this V1ClusterSecurityOptions. # noqa: E501
@@ -42,6 +42,7 @@ class V1ClusterSpec(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'auth_token': 'str',
45
+ 'available_accelerators': 'list[str]',
45
46
  'aws_v1': 'V1AWSDirectV1',
46
47
  'cluster_type': 'V1ClusterType',
47
48
  'deletion_options': 'V1ClusterDeletionOptions',
@@ -51,9 +52,13 @@ class V1ClusterSpec(object):
51
52
  'google_cloud_v1': 'V1GoogleCloudDirectV1',
52
53
  'insurer_disabled': 'bool',
53
54
  'lambda_labs_v1': 'V1LambdaLabsDirectV1',
55
+ 'locked_zones': 'list[str]',
54
56
  'monitor_deletion_disabled': 'bool',
55
57
  'overprovisioning': 'list[V1InstanceOverprovisioningSpec]',
58
+ 'parent_cluster_id': 'str',
56
59
  'pause_automation': 'bool',
60
+ 'reservation_details': 'V1ReservationDetails',
61
+ 'reserved_capacity_provider': 'bool',
57
62
  'security_options': 'V1ClusterSecurityOptions',
58
63
  'slurm_v1': 'V1SlurmV1',
59
64
  'tagging_options': 'V1ClusterTaggingOptions',
@@ -64,6 +69,7 @@ class V1ClusterSpec(object):
64
69
 
65
70
  attribute_map = {
66
71
  'auth_token': 'authToken',
72
+ 'available_accelerators': 'availableAccelerators',
67
73
  'aws_v1': 'awsV1',
68
74
  'cluster_type': 'clusterType',
69
75
  'deletion_options': 'deletionOptions',
@@ -73,9 +79,13 @@ class V1ClusterSpec(object):
73
79
  'google_cloud_v1': 'googleCloudV1',
74
80
  'insurer_disabled': 'insurerDisabled',
75
81
  'lambda_labs_v1': 'lambdaLabsV1',
82
+ 'locked_zones': 'lockedZones',
76
83
  'monitor_deletion_disabled': 'monitorDeletionDisabled',
77
84
  'overprovisioning': 'overprovisioning',
85
+ 'parent_cluster_id': 'parentClusterId',
78
86
  'pause_automation': 'pauseAutomation',
87
+ 'reservation_details': 'reservationDetails',
88
+ 'reserved_capacity_provider': 'reservedCapacityProvider',
79
89
  'security_options': 'securityOptions',
80
90
  'slurm_v1': 'slurmV1',
81
91
  'tagging_options': 'taggingOptions',
@@ -84,9 +94,10 @@ class V1ClusterSpec(object):
84
94
  'vultr_v1': 'vultrV1'
85
95
  }
86
96
 
87
- def __init__(self, auth_token: 'str' =None, aws_v1: 'V1AWSDirectV1' =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, monitor_deletion_disabled: 'bool' =None, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, pause_automation: '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
97
+ def __init__(self, auth_token: 'str' =None, available_accelerators: 'list[str]' =None, aws_v1: 'V1AWSDirectV1' =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, overprovisioning: 'list[V1InstanceOverprovisioningSpec]' =None, parent_cluster_id: 'str' =None, pause_automation: 'bool' =None, reservation_details: 'V1ReservationDetails' =None, reserved_capacity_provider: '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
88
98
  """V1ClusterSpec - a model defined in Swagger""" # noqa: E501
89
99
  self._auth_token = None
100
+ self._available_accelerators = None
90
101
  self._aws_v1 = None
91
102
  self._cluster_type = None
92
103
  self._deletion_options = None
@@ -96,9 +107,13 @@ class V1ClusterSpec(object):
96
107
  self._google_cloud_v1 = None
97
108
  self._insurer_disabled = None
98
109
  self._lambda_labs_v1 = None
110
+ self._locked_zones = None
99
111
  self._monitor_deletion_disabled = None
100
112
  self._overprovisioning = None
113
+ self._parent_cluster_id = None
101
114
  self._pause_automation = None
115
+ self._reservation_details = None
116
+ self._reserved_capacity_provider = None
102
117
  self._security_options = None
103
118
  self._slurm_v1 = None
104
119
  self._tagging_options = None
@@ -108,6 +123,8 @@ class V1ClusterSpec(object):
108
123
  self.discriminator = None
109
124
  if auth_token is not None:
110
125
  self.auth_token = auth_token
126
+ if available_accelerators is not None:
127
+ self.available_accelerators = available_accelerators
111
128
  if aws_v1 is not None:
112
129
  self.aws_v1 = aws_v1
113
130
  if cluster_type is not None:
@@ -126,12 +143,20 @@ class V1ClusterSpec(object):
126
143
  self.insurer_disabled = insurer_disabled
127
144
  if lambda_labs_v1 is not None:
128
145
  self.lambda_labs_v1 = lambda_labs_v1
146
+ if locked_zones is not None:
147
+ self.locked_zones = locked_zones
129
148
  if monitor_deletion_disabled is not None:
130
149
  self.monitor_deletion_disabled = monitor_deletion_disabled
131
150
  if overprovisioning is not None:
132
151
  self.overprovisioning = overprovisioning
152
+ if parent_cluster_id is not None:
153
+ self.parent_cluster_id = parent_cluster_id
133
154
  if pause_automation is not None:
134
155
  self.pause_automation = pause_automation
156
+ if reservation_details is not None:
157
+ self.reservation_details = reservation_details
158
+ if reserved_capacity_provider is not None:
159
+ self.reserved_capacity_provider = reserved_capacity_provider
135
160
  if security_options is not None:
136
161
  self.security_options = security_options
137
162
  if slurm_v1 is not None:
@@ -166,6 +191,27 @@ class V1ClusterSpec(object):
166
191
 
167
192
  self._auth_token = auth_token
168
193
 
194
+ @property
195
+ def available_accelerators(self) -> 'list[str]':
196
+ """Gets the available_accelerators of this V1ClusterSpec. # noqa: E501
197
+
198
+
199
+ :return: The available_accelerators of this V1ClusterSpec. # noqa: E501
200
+ :rtype: list[str]
201
+ """
202
+ return self._available_accelerators
203
+
204
+ @available_accelerators.setter
205
+ def available_accelerators(self, available_accelerators: 'list[str]'):
206
+ """Sets the available_accelerators of this V1ClusterSpec.
207
+
208
+
209
+ :param available_accelerators: The available_accelerators of this V1ClusterSpec. # noqa: E501
210
+ :type: list[str]
211
+ """
212
+
213
+ self._available_accelerators = available_accelerators
214
+
169
215
  @property
170
216
  def aws_v1(self) -> 'V1AWSDirectV1':
171
217
  """Gets the aws_v1 of this V1ClusterSpec. # noqa: E501
@@ -357,6 +403,27 @@ class V1ClusterSpec(object):
357
403
 
358
404
  self._lambda_labs_v1 = lambda_labs_v1
359
405
 
406
+ @property
407
+ def locked_zones(self) -> 'list[str]':
408
+ """Gets the locked_zones of this V1ClusterSpec. # noqa: E501
409
+
410
+
411
+ :return: The locked_zones of this V1ClusterSpec. # noqa: E501
412
+ :rtype: list[str]
413
+ """
414
+ return self._locked_zones
415
+
416
+ @locked_zones.setter
417
+ def locked_zones(self, locked_zones: 'list[str]'):
418
+ """Sets the locked_zones of this V1ClusterSpec.
419
+
420
+
421
+ :param locked_zones: The locked_zones of this V1ClusterSpec. # noqa: E501
422
+ :type: list[str]
423
+ """
424
+
425
+ self._locked_zones = locked_zones
426
+
360
427
  @property
361
428
  def monitor_deletion_disabled(self) -> 'bool':
362
429
  """Gets the monitor_deletion_disabled of this V1ClusterSpec. # noqa: E501
@@ -399,6 +466,27 @@ class V1ClusterSpec(object):
399
466
 
400
467
  self._overprovisioning = overprovisioning
401
468
 
469
+ @property
470
+ def parent_cluster_id(self) -> 'str':
471
+ """Gets the parent_cluster_id of this V1ClusterSpec. # noqa: E501
472
+
473
+
474
+ :return: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
475
+ :rtype: str
476
+ """
477
+ return self._parent_cluster_id
478
+
479
+ @parent_cluster_id.setter
480
+ def parent_cluster_id(self, parent_cluster_id: 'str'):
481
+ """Sets the parent_cluster_id of this V1ClusterSpec.
482
+
483
+
484
+ :param parent_cluster_id: The parent_cluster_id of this V1ClusterSpec. # noqa: E501
485
+ :type: str
486
+ """
487
+
488
+ self._parent_cluster_id = parent_cluster_id
489
+
402
490
  @property
403
491
  def pause_automation(self) -> 'bool':
404
492
  """Gets the pause_automation of this V1ClusterSpec. # noqa: E501
@@ -420,6 +508,48 @@ class V1ClusterSpec(object):
420
508
 
421
509
  self._pause_automation = pause_automation
422
510
 
511
+ @property
512
+ def reservation_details(self) -> 'V1ReservationDetails':
513
+ """Gets the reservation_details of this V1ClusterSpec. # noqa: E501
514
+
515
+
516
+ :return: The reservation_details of this V1ClusterSpec. # noqa: E501
517
+ :rtype: V1ReservationDetails
518
+ """
519
+ return self._reservation_details
520
+
521
+ @reservation_details.setter
522
+ def reservation_details(self, reservation_details: 'V1ReservationDetails'):
523
+ """Sets the reservation_details of this V1ClusterSpec.
524
+
525
+
526
+ :param reservation_details: The reservation_details of this V1ClusterSpec. # noqa: E501
527
+ :type: V1ReservationDetails
528
+ """
529
+
530
+ self._reservation_details = reservation_details
531
+
532
+ @property
533
+ def reserved_capacity_provider(self) -> 'bool':
534
+ """Gets the reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
535
+
536
+
537
+ :return: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
538
+ :rtype: bool
539
+ """
540
+ return self._reserved_capacity_provider
541
+
542
+ @reserved_capacity_provider.setter
543
+ def reserved_capacity_provider(self, reserved_capacity_provider: 'bool'):
544
+ """Sets the reserved_capacity_provider of this V1ClusterSpec.
545
+
546
+
547
+ :param reserved_capacity_provider: The reserved_capacity_provider of this V1ClusterSpec. # noqa: E501
548
+ :type: bool
549
+ """
550
+
551
+ self._reserved_capacity_provider = reserved_capacity_provider
552
+
423
553
  @property
424
554
  def security_options(self) -> 'V1ClusterSecurityOptions':
425
555
  """Gets the security_options of this V1ClusterSpec. # noqa: E501
@@ -45,7 +45,8 @@ class V1ConversationResponseChunk(object):
45
45
  'conversation_id': 'str',
46
46
  'executable': 'bool',
47
47
  'id': 'str',
48
- 'object': 'str'
48
+ 'object': 'str',
49
+ 'throughput': 'float'
49
50
  }
50
51
 
51
52
  attribute_map = {
@@ -53,16 +54,18 @@ class V1ConversationResponseChunk(object):
53
54
  'conversation_id': 'conversationId',
54
55
  'executable': 'executable',
55
56
  'id': 'id',
56
- 'object': 'object'
57
+ 'object': 'object',
58
+ 'throughput': 'throughput'
57
59
  }
58
60
 
59
- def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, object: 'str' =None): # noqa: E501
61
+ def __init__(self, choices: 'list[V1ResponseChoice]' =None, conversation_id: 'str' =None, executable: 'bool' =None, id: 'str' =None, object: 'str' =None, throughput: 'float' =None): # noqa: E501
60
62
  """V1ConversationResponseChunk - a model defined in Swagger""" # noqa: E501
61
63
  self._choices = None
62
64
  self._conversation_id = None
63
65
  self._executable = None
64
66
  self._id = None
65
67
  self._object = None
68
+ self._throughput = None
66
69
  self.discriminator = None
67
70
  if choices is not None:
68
71
  self.choices = choices
@@ -74,6 +77,8 @@ class V1ConversationResponseChunk(object):
74
77
  self.id = id
75
78
  if object is not None:
76
79
  self.object = object
80
+ if throughput is not None:
81
+ self.throughput = throughput
77
82
 
78
83
  @property
79
84
  def choices(self) -> 'list[V1ResponseChoice]':
@@ -180,6 +185,27 @@ class V1ConversationResponseChunk(object):
180
185
 
181
186
  self._object = object
182
187
 
188
+ @property
189
+ def throughput(self) -> 'float':
190
+ """Gets the throughput of this V1ConversationResponseChunk. # noqa: E501
191
+
192
+
193
+ :return: The throughput of this V1ConversationResponseChunk. # noqa: E501
194
+ :rtype: float
195
+ """
196
+ return self._throughput
197
+
198
+ @throughput.setter
199
+ def throughput(self, throughput: 'float'):
200
+ """Sets the throughput of this V1ConversationResponseChunk.
201
+
202
+
203
+ :param throughput: The throughput of this V1ConversationResponseChunk. # noqa: E501
204
+ :type: float
205
+ """
206
+
207
+ self._throughput = throughput
208
+
183
209
  def to_dict(self) -> dict:
184
210
  """Returns the model properties as a dict"""
185
211
  result = {}
@@ -41,25 +41,51 @@ class V1CreateCloudSpaceEnvironmentTemplateRequest(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'machine_image_version': 'str',
44
45
  'name': 'str',
45
46
  'org_id': 'str'
46
47
  }
47
48
 
48
49
  attribute_map = {
50
+ 'machine_image_version': 'machineImageVersion',
49
51
  'name': 'name',
50
52
  'org_id': 'orgId'
51
53
  }
52
54
 
53
- def __init__(self, name: 'str' =None, org_id: 'str' =None): # noqa: E501
55
+ def __init__(self, machine_image_version: 'str' =None, name: 'str' =None, org_id: 'str' =None): # noqa: E501
54
56
  """V1CreateCloudSpaceEnvironmentTemplateRequest - a model defined in Swagger""" # noqa: E501
57
+ self._machine_image_version = None
55
58
  self._name = None
56
59
  self._org_id = None
57
60
  self.discriminator = None
61
+ if machine_image_version is not None:
62
+ self.machine_image_version = machine_image_version
58
63
  if name is not None:
59
64
  self.name = name
60
65
  if org_id is not None:
61
66
  self.org_id = org_id
62
67
 
68
+ @property
69
+ def machine_image_version(self) -> 'str':
70
+ """Gets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
71
+
72
+
73
+ :return: The machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._machine_image_version
77
+
78
+ @machine_image_version.setter
79
+ def machine_image_version(self, machine_image_version: 'str'):
80
+ """Sets the machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest.
81
+
82
+
83
+ :param machine_image_version: The machine_image_version of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._machine_image_version = machine_image_version
88
+
63
89
  @property
64
90
  def name(self) -> 'str':
65
91
  """Gets the name of this V1CreateCloudSpaceEnvironmentTemplateRequest. # noqa: E501
@@ -42,6 +42,7 @@ class V1CreateProjectRequest(object):
42
42
  """
43
43
  swagger_types = {
44
44
  'default_machine_image_version': 'str',
45
+ 'default_machine_type': 'str',
45
46
  'description': 'str',
46
47
  'display_name': 'str',
47
48
  'name': 'str',
@@ -52,6 +53,7 @@ class V1CreateProjectRequest(object):
52
53
 
53
54
  attribute_map = {
54
55
  'default_machine_image_version': 'defaultMachineImageVersion',
56
+ 'default_machine_type': 'defaultMachineType',
55
57
  'description': 'description',
56
58
  'display_name': 'displayName',
57
59
  'name': 'name',
@@ -60,9 +62,10 @@ class V1CreateProjectRequest(object):
60
62
  'quotas': 'quotas'
61
63
  }
62
64
 
63
- def __init__(self, default_machine_image_version: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
65
+ def __init__(self, default_machine_image_version: 'str' =None, default_machine_type: 'str' =None, description: 'str' =None, display_name: 'str' =None, name: 'str' =None, organization_id: 'str' =None, preferred_cluster: 'str' =None, quotas: 'V1Quotas' =None): # noqa: E501
64
66
  """V1CreateProjectRequest - a model defined in Swagger""" # noqa: E501
65
67
  self._default_machine_image_version = None
68
+ self._default_machine_type = None
66
69
  self._description = None
67
70
  self._display_name = None
68
71
  self._name = None
@@ -72,6 +75,8 @@ class V1CreateProjectRequest(object):
72
75
  self.discriminator = None
73
76
  if default_machine_image_version is not None:
74
77
  self.default_machine_image_version = default_machine_image_version
78
+ if default_machine_type is not None:
79
+ self.default_machine_type = default_machine_type
75
80
  if description is not None:
76
81
  self.description = description
77
82
  if display_name is not None:
@@ -106,6 +111,27 @@ class V1CreateProjectRequest(object):
106
111
 
107
112
  self._default_machine_image_version = default_machine_image_version
108
113
 
114
+ @property
115
+ def default_machine_type(self) -> 'str':
116
+ """Gets the default_machine_type of this V1CreateProjectRequest. # noqa: E501
117
+
118
+
119
+ :return: The default_machine_type of this V1CreateProjectRequest. # noqa: E501
120
+ :rtype: str
121
+ """
122
+ return self._default_machine_type
123
+
124
+ @default_machine_type.setter
125
+ def default_machine_type(self, default_machine_type: 'str'):
126
+ """Sets the default_machine_type of this V1CreateProjectRequest.
127
+
128
+
129
+ :param default_machine_type: The default_machine_type of this V1CreateProjectRequest. # noqa: E501
130
+ :type: str
131
+ """
132
+
133
+ self._default_machine_type = default_machine_type
134
+
109
135
  @property
110
136
  def description(self) -> 'str':
111
137
  """Gets the description of this V1CreateProjectRequest. # noqa: E501