lightning-sdk 0.2.3__py3-none-any.whl → 0.2.5__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 (110) hide show
  1. lightning_sdk/__init__.py +1 -1
  2. lightning_sdk/ai_hub.py +10 -17
  3. lightning_sdk/api/ai_hub_api.py +20 -3
  4. lightning_sdk/api/studio_api.py +0 -8
  5. lightning_sdk/cli/serve.py +139 -22
  6. lightning_sdk/deployment/deployment.py +32 -4
  7. lightning_sdk/lightning_cloud/openapi/__init__.py +49 -1
  8. lightning_sdk/lightning_cloud/openapi/api/__init__.py +4 -0
  9. lightning_sdk/lightning_cloud/openapi/api/cloud_space_environment_template_service_api.py +537 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +10 -6
  11. lightning_sdk/lightning_cloud/openapi/api/lit_dataset_service_api.py +1973 -0
  12. lightning_sdk/lightning_cloud/openapi/api/lit_registry_service_api.py +5 -1
  13. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +20 -20
  14. lightning_sdk/lightning_cloud/openapi/api/pipeline_templates_service_api.py +339 -0
  15. lightning_sdk/lightning_cloud/openapi/api/pipelines_service_api.py +5 -1
  16. lightning_sdk/lightning_cloud/openapi/api/schedules_service_api.py +573 -0
  17. lightning_sdk/lightning_cloud/openapi/api/slurm_jobs_user_service_api.py +202 -0
  18. lightning_sdk/lightning_cloud/openapi/models/__init__.py +45 -1
  19. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  20. lightning_sdk/lightning_cloud/openapi/models/cluster_id_slurmusers_body.py +201 -0
  21. lightning_sdk/lightning_cloud/openapi/models/dataset_id_versions_body.py +149 -0
  22. lightning_sdk/lightning_cloud/openapi/models/dataset_id_visibility_body.py +149 -0
  23. lightning_sdk/lightning_cloud/openapi/models/environmenttemplates_id_body.py +227 -0
  24. lightning_sdk/lightning_cloud/openapi/models/externalv1_cloud_space_instance_status.py +69 -69
  25. lightning_sdk/lightning_cloud/openapi/models/litdatasets_dataset_id_body.py +149 -0
  26. lightning_sdk/lightning_cloud/openapi/models/orgs_id_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/pipelines_id_body.py +69 -17
  28. lightning_sdk/lightning_cloud/openapi/models/pipelinetemplates_id_body.py +331 -0
  29. lightning_sdk/lightning_cloud/openapi/models/project_id_litdatasets_body.py +227 -0
  30. lightning_sdk/lightning_cloud/openapi/models/project_id_pipelines_body.py +17 -17
  31. lightning_sdk/lightning_cloud/openapi/models/project_id_schedules_body.py +201 -0
  32. lightning_sdk/lightning_cloud/openapi/models/schedules_id_body.py +383 -0
  33. lightning_sdk/lightning_cloud/openapi/models/slurm_jobs_body.py +15 -15
  34. lightning_sdk/lightning_cloud/openapi/models/upload_id_complete_body1.py +149 -0
  35. lightning_sdk/lightning_cloud/openapi/models/upload_id_parts_body1.py +149 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_agent_job.py +124 -20
  37. lightning_sdk/lightning_cloud/openapi/models/v1_assistant_model_status.py +2 -0
  38. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_provider.py +1 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space.py +27 -1
  40. lightning_sdk/lightning_cloud/openapi/models/v1_cloud_space_environment_template.py +253 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_spec.py +27 -1
  42. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_multi_part_upload_response.py +97 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_complete_lit_dataset_upload_response.py +97 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_create_cloud_space_environment_template_request.py +149 -0
  45. lightning_sdk/lightning_cloud/openapi/models/v1_create_lit_dataset_multi_part_upload_response.py +123 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_create_organization_request.py +27 -1
  47. lightning_sdk/lightning_cloud/openapi/models/v1_create_pipeline_template_request.py +383 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_create_project_request.py +27 -1
  49. lightning_sdk/lightning_cloud/openapi/models/{v1_pipeline_schedule.py → v1_delete_cloud_space_environment_template_response.py} +32 -32
  50. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_response.py +97 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_delete_lit_dataset_version_response.py +97 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_delete_schedule_response.py +175 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_get_cloud_space_size_response.py +79 -1
  54. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_file_upload_urls_response.py +123 -0
  55. lightning_sdk/lightning_cloud/openapi/models/v1_get_lit_dataset_files_url_response.py +149 -0
  56. lightning_sdk/lightning_cloud/openapi/models/v1_get_user_response.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_instance_overprovisioning_spec.py +79 -27
  58. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_environment_templates_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_dataset_versions_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_lit_datasets_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_schedules_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_slurm_cluster_users_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset.py +539 -0
  65. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_file.py +175 -0
  66. lightning_sdk/lightning_cloud/openapi/models/v1_lit_dataset_version_archive.py +435 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_lit_registry_project.py +27 -1
  68. lightning_sdk/lightning_cloud/openapi/models/v1_lit_repository.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_magic_link_login_request.py +27 -1
  70. lightning_sdk/lightning_cloud/openapi/models/v1_managed_model.py +107 -3
  71. lightning_sdk/lightning_cloud/openapi/models/v1_organization.py +53 -1
  72. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline.py +69 -17
  73. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter.py +435 -0
  74. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement.py +149 -0
  75. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_placement_type.py +106 -0
  76. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_parameter_type.py +106 -0
  77. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template.py +513 -0
  78. lightning_sdk/lightning_cloud/openapi/models/v1_pipeline_template_visibility_type.py +105 -0
  79. lightning_sdk/lightning_cloud/openapi/models/v1_project_settings.py +27 -1
  80. lightning_sdk/lightning_cloud/openapi/models/v1_schedule.py +435 -0
  81. lightning_sdk/lightning_cloud/openapi/models/v1_schedule_resource_type.py +103 -0
  82. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_cluster_user.py +227 -0
  83. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_job.py +58 -6
  84. lightning_sdk/lightning_cloud/openapi/models/v1_slurm_node.py +31 -291
  85. lightning_sdk/lightning_cloud/openapi/models/v1_update_lit_dataset_visibility_response.py +123 -0
  86. lightning_sdk/lightning_cloud/openapi/models/v1_update_user_request.py +27 -1
  87. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +157 -105
  88. lightning_sdk/lightning_cloud/openapi/models/v1_validate_managed_endpoint_response.py +27 -1
  89. lightning_sdk/lightning_cloud/openapi/models/v1_voltage_park_direct_v1.py +203 -0
  90. lightning_sdk/lightning_cloud/openapi/models/version_default_body.py +29 -29
  91. lightning_sdk/lightning_cloud/openapi/models/version_default_body1.py +149 -0
  92. lightning_sdk/lightning_cloud/openapi/models/version_uploads_body1.py +123 -0
  93. lightning_sdk/lightning_cloud/openapi/models/versions_version_body1.py +123 -0
  94. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  95. lightning_sdk/lit_container.py +8 -1
  96. lightning_sdk/mmt/mmt.py +1 -18
  97. lightning_sdk/mmt/v1.py +1 -28
  98. lightning_sdk/models.py +15 -6
  99. lightning_sdk/pipeline/pipeline.py +2 -2
  100. lightning_sdk/pipeline/types.py +28 -2
  101. lightning_sdk/pipeline/utils.py +1 -1
  102. lightning_sdk/plugin.py +0 -6
  103. lightning_sdk/serve.py +55 -22
  104. lightning_sdk/utils/resolve.py +1 -0
  105. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/METADATA +1 -1
  106. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/RECORD +110 -62
  107. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/WHEEL +1 -1
  108. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/LICENSE +0 -0
  109. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/entry_points.txt +0 -0
  110. {lightning_sdk-0.2.3.dist-info → lightning_sdk-0.2.5.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,105 @@
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 V1PipelineTemplateVisibilityType(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
+ UNDEFINED = "PIPELINE_TEMPLATE_VISIBILITY_TYPE_UNDEFINED"
41
+ GLOBAL = "PIPELINE_TEMPLATE_VISIBILITY_TYPE_GLOBAL"
42
+ ORG = "PIPELINE_TEMPLATE_VISIBILITY_TYPE_ORG"
43
+ PROJECT = "PIPELINE_TEMPLATE_VISIBILITY_TYPE_PROJECT"
44
+ """
45
+ Attributes:
46
+ swagger_types (dict): The key is attribute name
47
+ and the value is attribute type.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ """
51
+ swagger_types = {
52
+ }
53
+
54
+ attribute_map = {
55
+ }
56
+
57
+ def __init__(self): # noqa: E501
58
+ """V1PipelineTemplateVisibilityType - a model defined in Swagger""" # noqa: E501
59
+ self.discriminator = None
60
+
61
+ def to_dict(self) -> dict:
62
+ """Returns the model properties as a dict"""
63
+ result = {}
64
+
65
+ for attr, _ in six.iteritems(self.swagger_types):
66
+ value = getattr(self, attr)
67
+ if isinstance(value, list):
68
+ result[attr] = list(map(
69
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
70
+ value
71
+ ))
72
+ elif hasattr(value, "to_dict"):
73
+ result[attr] = value.to_dict()
74
+ elif isinstance(value, dict):
75
+ result[attr] = dict(map(
76
+ lambda item: (item[0], item[1].to_dict())
77
+ if hasattr(item[1], "to_dict") else item,
78
+ value.items()
79
+ ))
80
+ else:
81
+ result[attr] = value
82
+ if issubclass(V1PipelineTemplateVisibilityType, dict):
83
+ for key, value in self.items():
84
+ result[key] = value
85
+
86
+ return result
87
+
88
+ def to_str(self) -> str:
89
+ """Returns the string representation of the model"""
90
+ return pprint.pformat(self.to_dict())
91
+
92
+ def __repr__(self) -> str:
93
+ """For `print` and `pprint`"""
94
+ return self.to_str()
95
+
96
+ def __eq__(self, other: 'V1PipelineTemplateVisibilityType') -> bool:
97
+ """Returns true if both objects are equal"""
98
+ if not isinstance(other, V1PipelineTemplateVisibilityType):
99
+ return False
100
+
101
+ return self.__dict__ == other.__dict__
102
+
103
+ def __ne__(self, other: 'V1PipelineTemplateVisibilityType') -> bool:
104
+ """Returns true if both objects are not equal"""
105
+ return not self == other
@@ -45,6 +45,7 @@ class V1ProjectSettings(object):
45
45
  'allow_gcp_saas': 'bool',
46
46
  'allow_lambda_saas': 'bool',
47
47
  'allow_vultr_saas': 'bool',
48
+ 'default_machine_image_version': 'str',
48
49
  'preferred_cluster': 'str',
49
50
  'preferred_deployment_provider': 'str',
50
51
  'preferred_studio_provider': 'str',
@@ -57,6 +58,7 @@ class V1ProjectSettings(object):
57
58
  'allow_gcp_saas': 'allowGcpSaas',
58
59
  'allow_lambda_saas': 'allowLambdaSaas',
59
60
  'allow_vultr_saas': 'allowVultrSaas',
61
+ 'default_machine_image_version': 'defaultMachineImageVersion',
60
62
  'preferred_cluster': 'preferredCluster',
61
63
  'preferred_deployment_provider': 'preferredDeploymentProvider',
62
64
  'preferred_studio_provider': 'preferredStudioProvider',
@@ -64,12 +66,13 @@ class V1ProjectSettings(object):
64
66
  'start_studio_on_spot_instance': 'startStudioOnSpotInstance'
65
67
  }
66
68
 
67
- def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
69
+ def __init__(self, allow_aws_saas: 'bool' =None, allow_gcp_saas: 'bool' =None, allow_lambda_saas: 'bool' =None, allow_vultr_saas: 'bool' =None, default_machine_image_version: 'str' =None, preferred_cluster: 'str' =None, preferred_deployment_provider: 'str' =None, preferred_studio_provider: 'str' =None, same_compute_on_resume: 'bool' =None, start_studio_on_spot_instance: 'bool' =None): # noqa: E501
68
70
  """V1ProjectSettings - a model defined in Swagger""" # noqa: E501
69
71
  self._allow_aws_saas = None
70
72
  self._allow_gcp_saas = None
71
73
  self._allow_lambda_saas = None
72
74
  self._allow_vultr_saas = None
75
+ self._default_machine_image_version = None
73
76
  self._preferred_cluster = None
74
77
  self._preferred_deployment_provider = None
75
78
  self._preferred_studio_provider = None
@@ -84,6 +87,8 @@ class V1ProjectSettings(object):
84
87
  self.allow_lambda_saas = allow_lambda_saas
85
88
  if allow_vultr_saas is not None:
86
89
  self.allow_vultr_saas = allow_vultr_saas
90
+ if default_machine_image_version is not None:
91
+ self.default_machine_image_version = default_machine_image_version
87
92
  if preferred_cluster is not None:
88
93
  self.preferred_cluster = preferred_cluster
89
94
  if preferred_deployment_provider is not None:
@@ -179,6 +184,27 @@ class V1ProjectSettings(object):
179
184
 
180
185
  self._allow_vultr_saas = allow_vultr_saas
181
186
 
187
+ @property
188
+ def default_machine_image_version(self) -> 'str':
189
+ """Gets the default_machine_image_version of this V1ProjectSettings. # noqa: E501
190
+
191
+
192
+ :return: The default_machine_image_version of this V1ProjectSettings. # noqa: E501
193
+ :rtype: str
194
+ """
195
+ return self._default_machine_image_version
196
+
197
+ @default_machine_image_version.setter
198
+ def default_machine_image_version(self, default_machine_image_version: 'str'):
199
+ """Sets the default_machine_image_version of this V1ProjectSettings.
200
+
201
+
202
+ :param default_machine_image_version: The default_machine_image_version of this V1ProjectSettings. # noqa: E501
203
+ :type: str
204
+ """
205
+
206
+ self._default_machine_image_version = default_machine_image_version
207
+
182
208
  @property
183
209
  def preferred_cluster(self) -> 'str':
184
210
  """Gets the preferred_cluster of this V1ProjectSettings. # noqa: E501
@@ -0,0 +1,435 @@
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 V1Schedule(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
+ 'created_at': 'datetime',
45
+ 'cron_expression': 'str',
46
+ 'display_name': 'str',
47
+ 'id': 'str',
48
+ 'name': 'str',
49
+ 'next': 'datetime',
50
+ 'project_id': 'str',
51
+ 'resource_id': 'str',
52
+ 'resource_type': 'V1ScheduleResourceType',
53
+ 'state': 'str',
54
+ 'total': 'int',
55
+ 'updated_at': 'datetime',
56
+ 'user_id': 'str'
57
+ }
58
+
59
+ attribute_map = {
60
+ 'created_at': 'createdAt',
61
+ 'cron_expression': 'cronExpression',
62
+ 'display_name': 'displayName',
63
+ 'id': 'id',
64
+ 'name': 'name',
65
+ 'next': 'next',
66
+ 'project_id': 'projectId',
67
+ 'resource_id': 'resourceId',
68
+ 'resource_type': 'resourceType',
69
+ 'state': 'state',
70
+ 'total': 'total',
71
+ 'updated_at': 'updatedAt',
72
+ 'user_id': 'userId'
73
+ }
74
+
75
+ def __init__(self, created_at: 'datetime' =None, cron_expression: 'str' =None, display_name: 'str' =None, id: 'str' =None, name: 'str' =None, next: 'datetime' =None, project_id: 'str' =None, resource_id: 'str' =None, resource_type: 'V1ScheduleResourceType' =None, state: 'str' =None, total: 'int' =None, updated_at: 'datetime' =None, user_id: 'str' =None): # noqa: E501
76
+ """V1Schedule - a model defined in Swagger""" # noqa: E501
77
+ self._created_at = None
78
+ self._cron_expression = None
79
+ self._display_name = None
80
+ self._id = None
81
+ self._name = None
82
+ self._next = None
83
+ self._project_id = None
84
+ self._resource_id = None
85
+ self._resource_type = None
86
+ self._state = None
87
+ self._total = None
88
+ self._updated_at = None
89
+ self._user_id = None
90
+ self.discriminator = None
91
+ if created_at is not None:
92
+ self.created_at = created_at
93
+ if cron_expression is not None:
94
+ self.cron_expression = cron_expression
95
+ if display_name is not None:
96
+ self.display_name = display_name
97
+ if id is not None:
98
+ self.id = id
99
+ if name is not None:
100
+ self.name = name
101
+ if next is not None:
102
+ self.next = next
103
+ if project_id is not None:
104
+ self.project_id = project_id
105
+ if resource_id is not None:
106
+ self.resource_id = resource_id
107
+ if resource_type is not None:
108
+ self.resource_type = resource_type
109
+ if state is not None:
110
+ self.state = state
111
+ if total is not None:
112
+ self.total = total
113
+ if updated_at is not None:
114
+ self.updated_at = updated_at
115
+ if user_id is not None:
116
+ self.user_id = user_id
117
+
118
+ @property
119
+ def created_at(self) -> 'datetime':
120
+ """Gets the created_at of this V1Schedule. # noqa: E501
121
+
122
+
123
+ :return: The created_at of this V1Schedule. # noqa: E501
124
+ :rtype: datetime
125
+ """
126
+ return self._created_at
127
+
128
+ @created_at.setter
129
+ def created_at(self, created_at: 'datetime'):
130
+ """Sets the created_at of this V1Schedule.
131
+
132
+
133
+ :param created_at: The created_at of this V1Schedule. # noqa: E501
134
+ :type: datetime
135
+ """
136
+
137
+ self._created_at = created_at
138
+
139
+ @property
140
+ def cron_expression(self) -> 'str':
141
+ """Gets the cron_expression of this V1Schedule. # noqa: E501
142
+
143
+
144
+ :return: The cron_expression of this V1Schedule. # noqa: E501
145
+ :rtype: str
146
+ """
147
+ return self._cron_expression
148
+
149
+ @cron_expression.setter
150
+ def cron_expression(self, cron_expression: 'str'):
151
+ """Sets the cron_expression of this V1Schedule.
152
+
153
+
154
+ :param cron_expression: The cron_expression of this V1Schedule. # noqa: E501
155
+ :type: str
156
+ """
157
+
158
+ self._cron_expression = cron_expression
159
+
160
+ @property
161
+ def display_name(self) -> 'str':
162
+ """Gets the display_name of this V1Schedule. # noqa: E501
163
+
164
+
165
+ :return: The display_name of this V1Schedule. # noqa: E501
166
+ :rtype: str
167
+ """
168
+ return self._display_name
169
+
170
+ @display_name.setter
171
+ def display_name(self, display_name: 'str'):
172
+ """Sets the display_name of this V1Schedule.
173
+
174
+
175
+ :param display_name: The display_name of this V1Schedule. # noqa: E501
176
+ :type: str
177
+ """
178
+
179
+ self._display_name = display_name
180
+
181
+ @property
182
+ def id(self) -> 'str':
183
+ """Gets the id of this V1Schedule. # noqa: E501
184
+
185
+
186
+ :return: The id of this V1Schedule. # noqa: E501
187
+ :rtype: str
188
+ """
189
+ return self._id
190
+
191
+ @id.setter
192
+ def id(self, id: 'str'):
193
+ """Sets the id of this V1Schedule.
194
+
195
+
196
+ :param id: The id of this V1Schedule. # noqa: E501
197
+ :type: str
198
+ """
199
+
200
+ self._id = id
201
+
202
+ @property
203
+ def name(self) -> 'str':
204
+ """Gets the name of this V1Schedule. # noqa: E501
205
+
206
+
207
+ :return: The name of this V1Schedule. # noqa: E501
208
+ :rtype: str
209
+ """
210
+ return self._name
211
+
212
+ @name.setter
213
+ def name(self, name: 'str'):
214
+ """Sets the name of this V1Schedule.
215
+
216
+
217
+ :param name: The name of this V1Schedule. # noqa: E501
218
+ :type: str
219
+ """
220
+
221
+ self._name = name
222
+
223
+ @property
224
+ def next(self) -> 'datetime':
225
+ """Gets the next of this V1Schedule. # noqa: E501
226
+
227
+
228
+ :return: The next of this V1Schedule. # noqa: E501
229
+ :rtype: datetime
230
+ """
231
+ return self._next
232
+
233
+ @next.setter
234
+ def next(self, next: 'datetime'):
235
+ """Sets the next of this V1Schedule.
236
+
237
+
238
+ :param next: The next of this V1Schedule. # noqa: E501
239
+ :type: datetime
240
+ """
241
+
242
+ self._next = next
243
+
244
+ @property
245
+ def project_id(self) -> 'str':
246
+ """Gets the project_id of this V1Schedule. # noqa: E501
247
+
248
+
249
+ :return: The project_id of this V1Schedule. # noqa: E501
250
+ :rtype: str
251
+ """
252
+ return self._project_id
253
+
254
+ @project_id.setter
255
+ def project_id(self, project_id: 'str'):
256
+ """Sets the project_id of this V1Schedule.
257
+
258
+
259
+ :param project_id: The project_id of this V1Schedule. # noqa: E501
260
+ :type: str
261
+ """
262
+
263
+ self._project_id = project_id
264
+
265
+ @property
266
+ def resource_id(self) -> 'str':
267
+ """Gets the resource_id of this V1Schedule. # noqa: E501
268
+
269
+
270
+ :return: The resource_id of this V1Schedule. # noqa: E501
271
+ :rtype: str
272
+ """
273
+ return self._resource_id
274
+
275
+ @resource_id.setter
276
+ def resource_id(self, resource_id: 'str'):
277
+ """Sets the resource_id of this V1Schedule.
278
+
279
+
280
+ :param resource_id: The resource_id of this V1Schedule. # noqa: E501
281
+ :type: str
282
+ """
283
+
284
+ self._resource_id = resource_id
285
+
286
+ @property
287
+ def resource_type(self) -> 'V1ScheduleResourceType':
288
+ """Gets the resource_type of this V1Schedule. # noqa: E501
289
+
290
+
291
+ :return: The resource_type of this V1Schedule. # noqa: E501
292
+ :rtype: V1ScheduleResourceType
293
+ """
294
+ return self._resource_type
295
+
296
+ @resource_type.setter
297
+ def resource_type(self, resource_type: 'V1ScheduleResourceType'):
298
+ """Sets the resource_type of this V1Schedule.
299
+
300
+
301
+ :param resource_type: The resource_type of this V1Schedule. # noqa: E501
302
+ :type: V1ScheduleResourceType
303
+ """
304
+
305
+ self._resource_type = resource_type
306
+
307
+ @property
308
+ def state(self) -> 'str':
309
+ """Gets the state of this V1Schedule. # noqa: E501
310
+
311
+
312
+ :return: The state of this V1Schedule. # noqa: E501
313
+ :rtype: str
314
+ """
315
+ return self._state
316
+
317
+ @state.setter
318
+ def state(self, state: 'str'):
319
+ """Sets the state of this V1Schedule.
320
+
321
+
322
+ :param state: The state of this V1Schedule. # noqa: E501
323
+ :type: str
324
+ """
325
+
326
+ self._state = state
327
+
328
+ @property
329
+ def total(self) -> 'int':
330
+ """Gets the total of this V1Schedule. # noqa: E501
331
+
332
+
333
+ :return: The total of this V1Schedule. # noqa: E501
334
+ :rtype: int
335
+ """
336
+ return self._total
337
+
338
+ @total.setter
339
+ def total(self, total: 'int'):
340
+ """Sets the total of this V1Schedule.
341
+
342
+
343
+ :param total: The total of this V1Schedule. # noqa: E501
344
+ :type: int
345
+ """
346
+
347
+ self._total = total
348
+
349
+ @property
350
+ def updated_at(self) -> 'datetime':
351
+ """Gets the updated_at of this V1Schedule. # noqa: E501
352
+
353
+
354
+ :return: The updated_at of this V1Schedule. # noqa: E501
355
+ :rtype: datetime
356
+ """
357
+ return self._updated_at
358
+
359
+ @updated_at.setter
360
+ def updated_at(self, updated_at: 'datetime'):
361
+ """Sets the updated_at of this V1Schedule.
362
+
363
+
364
+ :param updated_at: The updated_at of this V1Schedule. # noqa: E501
365
+ :type: datetime
366
+ """
367
+
368
+ self._updated_at = updated_at
369
+
370
+ @property
371
+ def user_id(self) -> 'str':
372
+ """Gets the user_id of this V1Schedule. # noqa: E501
373
+
374
+
375
+ :return: The user_id of this V1Schedule. # noqa: E501
376
+ :rtype: str
377
+ """
378
+ return self._user_id
379
+
380
+ @user_id.setter
381
+ def user_id(self, user_id: 'str'):
382
+ """Sets the user_id of this V1Schedule.
383
+
384
+
385
+ :param user_id: The user_id of this V1Schedule. # noqa: E501
386
+ :type: str
387
+ """
388
+
389
+ self._user_id = user_id
390
+
391
+ def to_dict(self) -> dict:
392
+ """Returns the model properties as a dict"""
393
+ result = {}
394
+
395
+ for attr, _ in six.iteritems(self.swagger_types):
396
+ value = getattr(self, attr)
397
+ if isinstance(value, list):
398
+ result[attr] = list(map(
399
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
400
+ value
401
+ ))
402
+ elif hasattr(value, "to_dict"):
403
+ result[attr] = value.to_dict()
404
+ elif isinstance(value, dict):
405
+ result[attr] = dict(map(
406
+ lambda item: (item[0], item[1].to_dict())
407
+ if hasattr(item[1], "to_dict") else item,
408
+ value.items()
409
+ ))
410
+ else:
411
+ result[attr] = value
412
+ if issubclass(V1Schedule, dict):
413
+ for key, value in self.items():
414
+ result[key] = value
415
+
416
+ return result
417
+
418
+ def to_str(self) -> str:
419
+ """Returns the string representation of the model"""
420
+ return pprint.pformat(self.to_dict())
421
+
422
+ def __repr__(self) -> str:
423
+ """For `print` and `pprint`"""
424
+ return self.to_str()
425
+
426
+ def __eq__(self, other: 'V1Schedule') -> bool:
427
+ """Returns true if both objects are equal"""
428
+ if not isinstance(other, V1Schedule):
429
+ return False
430
+
431
+ return self.__dict__ == other.__dict__
432
+
433
+ def __ne__(self, other: 'V1Schedule') -> bool:
434
+ """Returns true if both objects are not equal"""
435
+ return not self == other