lightning-sdk 2025.9.4__py3-none-any.whl → 2025.9.10__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.
- lightning_sdk/__init__.py +1 -1
- lightning_sdk/api/llm_api.py +19 -0
- lightning_sdk/api/studio_api.py +25 -4
- lightning_sdk/lightning_cloud/openapi/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/api/k8_s_cluster_service_api.py +744 -13
- lightning_sdk/lightning_cloud/openapi/models/__init__.py +14 -0
- lightning_sdk/lightning_cloud/openapi/models/id_render_body.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/kubernetestemplates_id_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/metricsstream_create_body.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/project_id_kubernetestemplates_body.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_ai_pod_v1.py +53 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_cluster_security_options.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_delete_kubernetes_template_response.py +97 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_firewall_rule.py +175 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_event.py +565 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_severity.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_incident_type.py +105 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_k8s_incident_indexes.py +149 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template.py +383 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_kubernetes_template_property.py +227 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_incident_events_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_list_kubernetes_templates_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_metrics_stream.py +27 -1
- lightning_sdk/lightning_cloud/openapi/models/v1_quote_annual_upsell_response.py +29 -3
- lightning_sdk/lightning_cloud/openapi/models/v1_render_kubernetes_template_response.py +123 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_secret_type.py +1 -0
- lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +154 -102
- lightning_sdk/llm/llm.py +82 -7
- lightning_sdk/llm/public_assistants.py +2 -2
- lightning_sdk/studio.py +30 -3
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/METADATA +1 -1
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/RECORD +36 -22
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/entry_points.txt +1 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/LICENSE +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/WHEEL +0 -0
- {lightning_sdk-2025.9.4.dist-info → lightning_sdk-2025.9.10.dist-info}/top_level.txt +0 -0
|
@@ -98,6 +98,7 @@ from lightning_sdk.lightning_cloud.openapi.models.id_output_body import IdOutput
|
|
|
98
98
|
from lightning_sdk.lightning_cloud.openapi.models.id_publications_body import IdPublicationsBody
|
|
99
99
|
from lightning_sdk.lightning_cloud.openapi.models.id_publications_body1 import IdPublicationsBody1
|
|
100
100
|
from lightning_sdk.lightning_cloud.openapi.models.id_release_body import IdReleaseBody
|
|
101
|
+
from lightning_sdk.lightning_cloud.openapi.models.id_render_body import IdRenderBody
|
|
101
102
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportlogsactivity_body import IdReportlogsactivityBody
|
|
102
103
|
from lightning_sdk.lightning_cloud.openapi.models.id_reportrestarttimings_body import IdReportrestarttimingsBody
|
|
103
104
|
from lightning_sdk.lightning_cloud.openapi.models.id_sleepconfig_body import IdSleepconfigBody
|
|
@@ -111,6 +112,7 @@ from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body import JobsIdBody
|
|
|
111
112
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body1 import JobsIdBody1
|
|
112
113
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body2 import JobsIdBody2
|
|
113
114
|
from lightning_sdk.lightning_cloud.openapi.models.jobs_id_body3 import JobsIdBody3
|
|
115
|
+
from lightning_sdk.lightning_cloud.openapi.models.kubernetestemplates_id_body import KubernetestemplatesIdBody
|
|
114
116
|
from lightning_sdk.lightning_cloud.openapi.models.litdatasets_dataset_id_body import LitdatasetsDatasetIdBody
|
|
115
117
|
from lightning_sdk.lightning_cloud.openapi.models.litloggermetrics_id_body import LitloggermetricsIdBody
|
|
116
118
|
from lightning_sdk.lightning_cloud.openapi.models.litpages_id_body import LitpagesIdBody
|
|
@@ -145,6 +147,7 @@ from lightning_sdk.lightning_cloud.openapi.models.project_id_endpoints_body impo
|
|
|
145
147
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_getapp_body import ProjectIdGetappBody
|
|
146
148
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_invite_body import ProjectIdInviteBody
|
|
147
149
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_jobs_body import ProjectIdJobsBody
|
|
150
|
+
from lightning_sdk.lightning_cloud.openapi.models.project_id_kubernetestemplates_body import ProjectIdKubernetestemplatesBody
|
|
148
151
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_litdatasets_body import ProjectIdLitdatasetsBody
|
|
149
152
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_litregistry_body import ProjectIdLitregistryBody
|
|
150
153
|
from lightning_sdk.lightning_cloud.openapi.models.project_id_memberships_body import ProjectIdMembershipsBody
|
|
@@ -385,6 +388,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_delete_endpoint_response im
|
|
|
385
388
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_git_credentials_response import V1DeleteGitCredentialsResponse
|
|
386
389
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_index_response import V1DeleteIndexResponse
|
|
387
390
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_job_response import V1DeleteJobResponse
|
|
391
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_kubernetes_template_response import V1DeleteKubernetesTemplateResponse
|
|
388
392
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightning_run_response import V1DeleteLightningRunResponse
|
|
389
393
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_artifact_response import V1DeleteLightningappInstanceArtifactResponse
|
|
390
394
|
from lightning_sdk.lightning_cloud.openapi.models.v1_delete_lightningapp_instance_response import V1DeleteLightningappInstanceResponse
|
|
@@ -483,6 +487,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_slurm_job import
|
|
|
483
487
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_snowflake_connection import V1FilesystemSnowflakeConnection
|
|
484
488
|
from lightning_sdk.lightning_cloud.openapi.models.v1_filesystem_work import V1FilesystemWork
|
|
485
489
|
from lightning_sdk.lightning_cloud.openapi.models.v1_find_capacity_block_offering_response import V1FindCapacityBlockOfferingResponse
|
|
490
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_firewall_rule import V1FirewallRule
|
|
486
491
|
from lightning_sdk.lightning_cloud.openapi.models.v1_flowserver import V1Flowserver
|
|
487
492
|
from lightning_sdk.lightning_cloud.openapi.models.v1_folder_index_status import V1FolderIndexStatus
|
|
488
493
|
from lightning_sdk.lightning_cloud.openapi.models.v1_function_call import V1FunctionCall
|
|
@@ -558,6 +563,9 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_health_check_http_get impor
|
|
|
558
563
|
from lightning_sdk.lightning_cloud.openapi.models.v1_ids_logger_metrics import V1IdsLoggerMetrics
|
|
559
564
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_spec import V1ImageSpec
|
|
560
565
|
from lightning_sdk.lightning_cloud.openapi.models.v1_image_state import V1ImageState
|
|
566
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_event import V1IncidentEvent
|
|
567
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_severity import V1IncidentSeverity
|
|
568
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_incident_type import V1IncidentType
|
|
561
569
|
from lightning_sdk.lightning_cloud.openapi.models.v1_index import V1Index
|
|
562
570
|
from lightning_sdk.lightning_cloud.openapi.models.v1_input import V1Input
|
|
563
571
|
from lightning_sdk.lightning_cloud.openapi.models.v1_instance_overprovisioning_spec import V1InstanceOverprovisioningSpec
|
|
@@ -577,10 +585,13 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_job_spec import V1JobSpec
|
|
|
577
585
|
from lightning_sdk.lightning_cloud.openapi.models.v1_job_timing import V1JobTiming
|
|
578
586
|
from lightning_sdk.lightning_cloud.openapi.models.v1_job_type import V1JobType
|
|
579
587
|
from lightning_sdk.lightning_cloud.openapi.models.v1_joinable_organization import V1JoinableOrganization
|
|
588
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_k8s_incident_indexes import V1K8sIncidentIndexes
|
|
580
589
|
from lightning_sdk.lightning_cloud.openapi.models.v1_keep_alive_cloud_space_instance_response import V1KeepAliveCloudSpaceInstanceResponse
|
|
581
590
|
from lightning_sdk.lightning_cloud.openapi.models.v1_knowledge_configuration import V1KnowledgeConfiguration
|
|
582
591
|
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1 import V1KubernetesDirectV1
|
|
583
592
|
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_direct_v1_status import V1KubernetesDirectV1Status
|
|
593
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template import V1KubernetesTemplate
|
|
594
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_kubernetes_template_property import V1KubernetesTemplateProperty
|
|
584
595
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lambda_labs_direct_v1 import V1LambdaLabsDirectV1
|
|
585
596
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_app_user import V1LightningAppUser
|
|
586
597
|
from lightning_sdk.lightning_cloud.openapi.models.v1_lightning_auth import V1LightningAuth
|
|
@@ -654,10 +665,12 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_list_filesystem_snowflake_r
|
|
|
654
665
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_components_response import V1ListGalleryComponentsResponse
|
|
655
666
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_gallery_lightningapps_response import V1ListGalleryLightningappsResponse
|
|
656
667
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_git_credentials_response import V1ListGitCredentialsResponse
|
|
668
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_incident_events_response import V1ListIncidentEventsResponse
|
|
657
669
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_files_response import V1ListJobFilesResponse
|
|
658
670
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_job_resources_response import V1ListJobResourcesResponse
|
|
659
671
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_jobs_response import V1ListJobsResponse
|
|
660
672
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_joinable_organizations_response import V1ListJoinableOrganizationsResponse
|
|
673
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_list_kubernetes_templates_response import V1ListKubernetesTemplatesResponse
|
|
661
674
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightning_run_response import V1ListLightningRunResponse
|
|
662
675
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_artifacts_response import V1ListLightningappInstanceArtifactsResponse
|
|
663
676
|
from lightning_sdk.lightning_cloud.openapi.models.v1_list_lightningapp_instance_events_response import V1ListLightningappInstanceEventsResponse
|
|
@@ -831,6 +844,7 @@ from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_request import V1Re
|
|
|
831
844
|
from lightning_sdk.lightning_cloud.openapi.models.v1_refresh_response import V1RefreshResponse
|
|
832
845
|
from lightning_sdk.lightning_cloud.openapi.models.v1_region_state import V1RegionState
|
|
833
846
|
from lightning_sdk.lightning_cloud.openapi.models.v1_regional_load_balancer import V1RegionalLoadBalancer
|
|
847
|
+
from lightning_sdk.lightning_cloud.openapi.models.v1_render_kubernetes_template_response import V1RenderKubernetesTemplateResponse
|
|
834
848
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_stop_at_response import V1ReportCloudSpaceInstanceStopAtResponse
|
|
835
849
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_cloud_space_instance_system_metrics_response import V1ReportCloudSpaceInstanceSystemMetricsResponse
|
|
836
850
|
from lightning_sdk.lightning_cloud.openapi.models.v1_report_k8s_cluster_metrics_response import V1ReportK8sClusterMetricsResponse
|
|
@@ -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 IdRenderBody(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
|
+
'variables': 'dict(str, str)'
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
attribute_map = {
|
|
48
|
+
'variables': 'variables'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
def __init__(self, variables: 'dict(str, str)' =None): # noqa: E501
|
|
52
|
+
"""IdRenderBody - a model defined in Swagger""" # noqa: E501
|
|
53
|
+
self._variables = None
|
|
54
|
+
self.discriminator = None
|
|
55
|
+
if variables is not None:
|
|
56
|
+
self.variables = variables
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def variables(self) -> 'dict(str, str)':
|
|
60
|
+
"""Gets the variables of this IdRenderBody. # noqa: E501
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
:return: The variables of this IdRenderBody. # noqa: E501
|
|
64
|
+
:rtype: dict(str, str)
|
|
65
|
+
"""
|
|
66
|
+
return self._variables
|
|
67
|
+
|
|
68
|
+
@variables.setter
|
|
69
|
+
def variables(self, variables: 'dict(str, str)'):
|
|
70
|
+
"""Sets the variables of this IdRenderBody.
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
:param variables: The variables of this IdRenderBody. # noqa: E501
|
|
74
|
+
:type: dict(str, str)
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
self._variables = variables
|
|
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(IdRenderBody, 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: 'IdRenderBody') -> bool:
|
|
115
|
+
"""Returns true if both objects are equal"""
|
|
116
|
+
if not isinstance(other, IdRenderBody):
|
|
117
|
+
return False
|
|
118
|
+
|
|
119
|
+
return self.__dict__ == other.__dict__
|
|
120
|
+
|
|
121
|
+
def __ne__(self, other: 'IdRenderBody') -> bool:
|
|
122
|
+
"""Returns true if both objects are not equal"""
|
|
123
|
+
return not self == other
|
|
@@ -0,0 +1,227 @@
|
|
|
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 KubernetestemplatesIdBody(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
|
+
'description': 'str',
|
|
46
|
+
'name': 'str',
|
|
47
|
+
'properties': 'list[V1KubernetesTemplateProperty]',
|
|
48
|
+
'spec': 'str'
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
attribute_map = {
|
|
52
|
+
'cluster_id': 'clusterId',
|
|
53
|
+
'description': 'description',
|
|
54
|
+
'name': 'name',
|
|
55
|
+
'properties': 'properties',
|
|
56
|
+
'spec': 'spec'
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
def __init__(self, cluster_id: 'str' =None, description: 'str' =None, name: 'str' =None, properties: 'list[V1KubernetesTemplateProperty]' =None, spec: 'str' =None): # noqa: E501
|
|
60
|
+
"""KubernetestemplatesIdBody - a model defined in Swagger""" # noqa: E501
|
|
61
|
+
self._cluster_id = None
|
|
62
|
+
self._description = None
|
|
63
|
+
self._name = None
|
|
64
|
+
self._properties = None
|
|
65
|
+
self._spec = None
|
|
66
|
+
self.discriminator = None
|
|
67
|
+
if cluster_id is not None:
|
|
68
|
+
self.cluster_id = cluster_id
|
|
69
|
+
if description is not None:
|
|
70
|
+
self.description = description
|
|
71
|
+
if name is not None:
|
|
72
|
+
self.name = name
|
|
73
|
+
if properties is not None:
|
|
74
|
+
self.properties = properties
|
|
75
|
+
if spec is not None:
|
|
76
|
+
self.spec = spec
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def cluster_id(self) -> 'str':
|
|
80
|
+
"""Gets the cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
:return: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
84
|
+
:rtype: str
|
|
85
|
+
"""
|
|
86
|
+
return self._cluster_id
|
|
87
|
+
|
|
88
|
+
@cluster_id.setter
|
|
89
|
+
def cluster_id(self, cluster_id: 'str'):
|
|
90
|
+
"""Sets the cluster_id of this KubernetestemplatesIdBody.
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
:param cluster_id: The cluster_id of this KubernetestemplatesIdBody. # noqa: E501
|
|
94
|
+
:type: str
|
|
95
|
+
"""
|
|
96
|
+
|
|
97
|
+
self._cluster_id = cluster_id
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def description(self) -> 'str':
|
|
101
|
+
"""Gets the description of this KubernetestemplatesIdBody. # noqa: E501
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
:return: The description of this KubernetestemplatesIdBody. # noqa: E501
|
|
105
|
+
:rtype: str
|
|
106
|
+
"""
|
|
107
|
+
return self._description
|
|
108
|
+
|
|
109
|
+
@description.setter
|
|
110
|
+
def description(self, description: 'str'):
|
|
111
|
+
"""Sets the description of this KubernetestemplatesIdBody.
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
:param description: The description of this KubernetestemplatesIdBody. # noqa: E501
|
|
115
|
+
:type: str
|
|
116
|
+
"""
|
|
117
|
+
|
|
118
|
+
self._description = description
|
|
119
|
+
|
|
120
|
+
@property
|
|
121
|
+
def name(self) -> 'str':
|
|
122
|
+
"""Gets the name of this KubernetestemplatesIdBody. # noqa: E501
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
:return: The name of this KubernetestemplatesIdBody. # noqa: E501
|
|
126
|
+
:rtype: str
|
|
127
|
+
"""
|
|
128
|
+
return self._name
|
|
129
|
+
|
|
130
|
+
@name.setter
|
|
131
|
+
def name(self, name: 'str'):
|
|
132
|
+
"""Sets the name of this KubernetestemplatesIdBody.
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
:param name: The name of this KubernetestemplatesIdBody. # noqa: E501
|
|
136
|
+
:type: str
|
|
137
|
+
"""
|
|
138
|
+
|
|
139
|
+
self._name = name
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def properties(self) -> 'list[V1KubernetesTemplateProperty]':
|
|
143
|
+
"""Gets the properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
:return: The properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
147
|
+
:rtype: list[V1KubernetesTemplateProperty]
|
|
148
|
+
"""
|
|
149
|
+
return self._properties
|
|
150
|
+
|
|
151
|
+
@properties.setter
|
|
152
|
+
def properties(self, properties: 'list[V1KubernetesTemplateProperty]'):
|
|
153
|
+
"""Sets the properties of this KubernetestemplatesIdBody.
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
:param properties: The properties of this KubernetestemplatesIdBody. # noqa: E501
|
|
157
|
+
:type: list[V1KubernetesTemplateProperty]
|
|
158
|
+
"""
|
|
159
|
+
|
|
160
|
+
self._properties = properties
|
|
161
|
+
|
|
162
|
+
@property
|
|
163
|
+
def spec(self) -> 'str':
|
|
164
|
+
"""Gets the spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
:return: The spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
168
|
+
:rtype: str
|
|
169
|
+
"""
|
|
170
|
+
return self._spec
|
|
171
|
+
|
|
172
|
+
@spec.setter
|
|
173
|
+
def spec(self, spec: 'str'):
|
|
174
|
+
"""Sets the spec of this KubernetestemplatesIdBody.
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
:param spec: The spec of this KubernetestemplatesIdBody. # noqa: E501
|
|
178
|
+
:type: str
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
self._spec = spec
|
|
182
|
+
|
|
183
|
+
def to_dict(self) -> dict:
|
|
184
|
+
"""Returns the model properties as a dict"""
|
|
185
|
+
result = {}
|
|
186
|
+
|
|
187
|
+
for attr, _ in six.iteritems(self.swagger_types):
|
|
188
|
+
value = getattr(self, attr)
|
|
189
|
+
if isinstance(value, list):
|
|
190
|
+
result[attr] = list(map(
|
|
191
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
192
|
+
value
|
|
193
|
+
))
|
|
194
|
+
elif hasattr(value, "to_dict"):
|
|
195
|
+
result[attr] = value.to_dict()
|
|
196
|
+
elif isinstance(value, dict):
|
|
197
|
+
result[attr] = dict(map(
|
|
198
|
+
lambda item: (item[0], item[1].to_dict())
|
|
199
|
+
if hasattr(item[1], "to_dict") else item,
|
|
200
|
+
value.items()
|
|
201
|
+
))
|
|
202
|
+
else:
|
|
203
|
+
result[attr] = value
|
|
204
|
+
if issubclass(KubernetestemplatesIdBody, dict):
|
|
205
|
+
for key, value in self.items():
|
|
206
|
+
result[key] = value
|
|
207
|
+
|
|
208
|
+
return result
|
|
209
|
+
|
|
210
|
+
def to_str(self) -> str:
|
|
211
|
+
"""Returns the string representation of the model"""
|
|
212
|
+
return pprint.pformat(self.to_dict())
|
|
213
|
+
|
|
214
|
+
def __repr__(self) -> str:
|
|
215
|
+
"""For `print` and `pprint`"""
|
|
216
|
+
return self.to_str()
|
|
217
|
+
|
|
218
|
+
def __eq__(self, other: 'KubernetestemplatesIdBody') -> bool:
|
|
219
|
+
"""Returns true if both objects are equal"""
|
|
220
|
+
if not isinstance(other, KubernetestemplatesIdBody):
|
|
221
|
+
return False
|
|
222
|
+
|
|
223
|
+
return self.__dict__ == other.__dict__
|
|
224
|
+
|
|
225
|
+
def __ne__(self, other: 'KubernetestemplatesIdBody') -> bool:
|
|
226
|
+
"""Returns true if both objects are not equal"""
|
|
227
|
+
return not self == other
|
|
@@ -45,6 +45,7 @@ class MetricsstreamCreateBody(object):
|
|
|
45
45
|
'cloudspace_id': 'str',
|
|
46
46
|
'dark_color': 'str',
|
|
47
47
|
'experiment_project_name': 'str',
|
|
48
|
+
'guest': 'bool',
|
|
48
49
|
'job_id': 'str',
|
|
49
50
|
'light_color': 'str',
|
|
50
51
|
'name': 'str',
|
|
@@ -61,6 +62,7 @@ class MetricsstreamCreateBody(object):
|
|
|
61
62
|
'cloudspace_id': 'cloudspaceId',
|
|
62
63
|
'dark_color': 'darkColor',
|
|
63
64
|
'experiment_project_name': 'experimentProjectName',
|
|
65
|
+
'guest': 'guest',
|
|
64
66
|
'job_id': 'jobId',
|
|
65
67
|
'light_color': 'lightColor',
|
|
66
68
|
'name': 'name',
|
|
@@ -72,12 +74,13 @@ class MetricsstreamCreateBody(object):
|
|
|
72
74
|
'work_id': 'workId'
|
|
73
75
|
}
|
|
74
76
|
|
|
75
|
-
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
77
|
+
def __init__(self, app_id: 'str' =None, cloudspace_id: 'str' =None, dark_color: 'str' =None, experiment_project_name: 'str' =None, guest: 'bool' =None, job_id: 'str' =None, light_color: 'str' =None, name: 'str' =None, store_created_at: 'bool' =None, store_step: 'bool' =None, system_info: 'V1SystemInfo' =None, tags: 'list[V1MetricsTags]' =None, version: 'datetime' =None, work_id: 'str' =None): # noqa: E501
|
|
76
78
|
"""MetricsstreamCreateBody - a model defined in Swagger""" # noqa: E501
|
|
77
79
|
self._app_id = None
|
|
78
80
|
self._cloudspace_id = None
|
|
79
81
|
self._dark_color = None
|
|
80
82
|
self._experiment_project_name = None
|
|
83
|
+
self._guest = None
|
|
81
84
|
self._job_id = None
|
|
82
85
|
self._light_color = None
|
|
83
86
|
self._name = None
|
|
@@ -96,6 +99,8 @@ class MetricsstreamCreateBody(object):
|
|
|
96
99
|
self.dark_color = dark_color
|
|
97
100
|
if experiment_project_name is not None:
|
|
98
101
|
self.experiment_project_name = experiment_project_name
|
|
102
|
+
if guest is not None:
|
|
103
|
+
self.guest = guest
|
|
99
104
|
if job_id is not None:
|
|
100
105
|
self.job_id = job_id
|
|
101
106
|
if light_color is not None:
|
|
@@ -199,6 +204,27 @@ class MetricsstreamCreateBody(object):
|
|
|
199
204
|
|
|
200
205
|
self._experiment_project_name = experiment_project_name
|
|
201
206
|
|
|
207
|
+
@property
|
|
208
|
+
def guest(self) -> 'bool':
|
|
209
|
+
"""Gets the guest of this MetricsstreamCreateBody. # noqa: E501
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
:return: The guest of this MetricsstreamCreateBody. # noqa: E501
|
|
213
|
+
:rtype: bool
|
|
214
|
+
"""
|
|
215
|
+
return self._guest
|
|
216
|
+
|
|
217
|
+
@guest.setter
|
|
218
|
+
def guest(self, guest: 'bool'):
|
|
219
|
+
"""Sets the guest of this MetricsstreamCreateBody.
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
:param guest: The guest of this MetricsstreamCreateBody. # noqa: E501
|
|
223
|
+
:type: bool
|
|
224
|
+
"""
|
|
225
|
+
|
|
226
|
+
self._guest = guest
|
|
227
|
+
|
|
202
228
|
@property
|
|
203
229
|
def job_id(self) -> 'str':
|
|
204
230
|
"""Gets the job_id of this MetricsstreamCreateBody. # noqa: E501
|