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
@@ -28,7 +28,7 @@ if TYPE_CHECKING:
28
28
  from datetime import datetime
29
29
  from lightning_sdk.lightning_cloud.openapi.models import *
30
30
 
31
- class V1PipelineSchedule(object):
31
+ class V1DeleteCloudSpaceEnvironmentTemplateResponse(object):
32
32
  """NOTE: This class is auto generated by the swagger code generator program.
33
33
 
34
34
  Do not edit the class manually.
@@ -41,66 +41,66 @@ class V1PipelineSchedule(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'cron_expression': 'str',
45
- 'id': 'str'
44
+ 'id': 'str',
45
+ 'org_id': 'str'
46
46
  }
47
47
 
48
48
  attribute_map = {
49
- 'cron_expression': 'cronExpression',
50
- 'id': 'id'
49
+ 'id': 'id',
50
+ 'org_id': 'orgId'
51
51
  }
52
52
 
53
- def __init__(self, cron_expression: 'str' =None, id: 'str' =None): # noqa: E501
54
- """V1PipelineSchedule - a model defined in Swagger""" # noqa: E501
55
- self._cron_expression = None
53
+ def __init__(self, id: 'str' =None, org_id: 'str' =None): # noqa: E501
54
+ """V1DeleteCloudSpaceEnvironmentTemplateResponse - a model defined in Swagger""" # noqa: E501
56
55
  self._id = None
56
+ self._org_id = None
57
57
  self.discriminator = None
58
- if cron_expression is not None:
59
- self.cron_expression = cron_expression
60
58
  if id is not None:
61
59
  self.id = id
60
+ if org_id is not None:
61
+ self.org_id = org_id
62
62
 
63
63
  @property
64
- def cron_expression(self) -> 'str':
65
- """Gets the cron_expression of this V1PipelineSchedule. # noqa: E501
64
+ def id(self) -> 'str':
65
+ """Gets the id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
66
66
 
67
67
 
68
- :return: The cron_expression of this V1PipelineSchedule. # noqa: E501
68
+ :return: The id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
69
69
  :rtype: str
70
70
  """
71
- return self._cron_expression
71
+ return self._id
72
72
 
73
- @cron_expression.setter
74
- def cron_expression(self, cron_expression: 'str'):
75
- """Sets the cron_expression of this V1PipelineSchedule.
73
+ @id.setter
74
+ def id(self, id: 'str'):
75
+ """Sets the id of this V1DeleteCloudSpaceEnvironmentTemplateResponse.
76
76
 
77
77
 
78
- :param cron_expression: The cron_expression of this V1PipelineSchedule. # noqa: E501
78
+ :param id: The id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
79
79
  :type: str
80
80
  """
81
81
 
82
- self._cron_expression = cron_expression
82
+ self._id = id
83
83
 
84
84
  @property
85
- def id(self) -> 'str':
86
- """Gets the id of this V1PipelineSchedule. # noqa: E501
85
+ def org_id(self) -> 'str':
86
+ """Gets the org_id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
87
87
 
88
88
 
89
- :return: The id of this V1PipelineSchedule. # noqa: E501
89
+ :return: The org_id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
90
90
  :rtype: str
91
91
  """
92
- return self._id
92
+ return self._org_id
93
93
 
94
- @id.setter
95
- def id(self, id: 'str'):
96
- """Sets the id of this V1PipelineSchedule.
94
+ @org_id.setter
95
+ def org_id(self, org_id: 'str'):
96
+ """Sets the org_id of this V1DeleteCloudSpaceEnvironmentTemplateResponse.
97
97
 
98
98
 
99
- :param id: The id of this V1PipelineSchedule. # noqa: E501
99
+ :param org_id: The org_id of this V1DeleteCloudSpaceEnvironmentTemplateResponse. # noqa: E501
100
100
  :type: str
101
101
  """
102
102
 
103
- self._id = id
103
+ self._org_id = org_id
104
104
 
105
105
  def to_dict(self) -> dict:
106
106
  """Returns the model properties as a dict"""
@@ -123,7 +123,7 @@ class V1PipelineSchedule(object):
123
123
  ))
124
124
  else:
125
125
  result[attr] = value
126
- if issubclass(V1PipelineSchedule, dict):
126
+ if issubclass(V1DeleteCloudSpaceEnvironmentTemplateResponse, dict):
127
127
  for key, value in self.items():
128
128
  result[key] = value
129
129
 
@@ -137,13 +137,13 @@ class V1PipelineSchedule(object):
137
137
  """For `print` and `pprint`"""
138
138
  return self.to_str()
139
139
 
140
- def __eq__(self, other: 'V1PipelineSchedule') -> bool:
140
+ def __eq__(self, other: 'V1DeleteCloudSpaceEnvironmentTemplateResponse') -> bool:
141
141
  """Returns true if both objects are equal"""
142
- if not isinstance(other, V1PipelineSchedule):
142
+ if not isinstance(other, V1DeleteCloudSpaceEnvironmentTemplateResponse):
143
143
  return False
144
144
 
145
145
  return self.__dict__ == other.__dict__
146
146
 
147
- def __ne__(self, other: 'V1PipelineSchedule') -> bool:
147
+ def __ne__(self, other: 'V1DeleteCloudSpaceEnvironmentTemplateResponse') -> bool:
148
148
  """Returns true if both objects are not equal"""
149
149
  return not self == other
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1DeleteLitDatasetResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1DeleteLitDatasetResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1DeleteLitDatasetResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1DeleteLitDatasetResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1DeleteLitDatasetResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1DeleteLitDatasetResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1DeleteLitDatasetVersionResponse(object):
32
+ """NOTE: This class is auto generated by the swagger code generator program.
33
+
34
+ Do not edit the class manually.
35
+ """
36
+ """
37
+ Attributes:
38
+ swagger_types (dict): The key is attribute name
39
+ and the value is attribute type.
40
+ attribute_map (dict): The key is attribute name
41
+ and the value is json key in definition.
42
+ """
43
+ swagger_types = {
44
+ }
45
+
46
+ attribute_map = {
47
+ }
48
+
49
+ def __init__(self): # noqa: E501
50
+ """V1DeleteLitDatasetVersionResponse - a model defined in Swagger""" # noqa: E501
51
+ self.discriminator = None
52
+
53
+ def to_dict(self) -> dict:
54
+ """Returns the model properties as a dict"""
55
+ result = {}
56
+
57
+ for attr, _ in six.iteritems(self.swagger_types):
58
+ value = getattr(self, attr)
59
+ if isinstance(value, list):
60
+ result[attr] = list(map(
61
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
62
+ value
63
+ ))
64
+ elif hasattr(value, "to_dict"):
65
+ result[attr] = value.to_dict()
66
+ elif isinstance(value, dict):
67
+ result[attr] = dict(map(
68
+ lambda item: (item[0], item[1].to_dict())
69
+ if hasattr(item[1], "to_dict") else item,
70
+ value.items()
71
+ ))
72
+ else:
73
+ result[attr] = value
74
+ if issubclass(V1DeleteLitDatasetVersionResponse, dict):
75
+ for key, value in self.items():
76
+ result[key] = value
77
+
78
+ return result
79
+
80
+ def to_str(self) -> str:
81
+ """Returns the string representation of the model"""
82
+ return pprint.pformat(self.to_dict())
83
+
84
+ def __repr__(self) -> str:
85
+ """For `print` and `pprint`"""
86
+ return self.to_str()
87
+
88
+ def __eq__(self, other: 'V1DeleteLitDatasetVersionResponse') -> bool:
89
+ """Returns true if both objects are equal"""
90
+ if not isinstance(other, V1DeleteLitDatasetVersionResponse):
91
+ return False
92
+
93
+ return self.__dict__ == other.__dict__
94
+
95
+ def __ne__(self, other: 'V1DeleteLitDatasetVersionResponse') -> bool:
96
+ """Returns true if both objects are not equal"""
97
+ return not self == other
@@ -0,0 +1,175 @@
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 V1DeleteScheduleResponse(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
+ 'id': 'str',
45
+ 'project_id': 'str',
46
+ 'resource_id': 'str'
47
+ }
48
+
49
+ attribute_map = {
50
+ 'id': 'id',
51
+ 'project_id': 'projectId',
52
+ 'resource_id': 'resourceId'
53
+ }
54
+
55
+ def __init__(self, id: 'str' =None, project_id: 'str' =None, resource_id: 'str' =None): # noqa: E501
56
+ """V1DeleteScheduleResponse - a model defined in Swagger""" # noqa: E501
57
+ self._id = None
58
+ self._project_id = None
59
+ self._resource_id = None
60
+ self.discriminator = None
61
+ if id is not None:
62
+ self.id = id
63
+ if project_id is not None:
64
+ self.project_id = project_id
65
+ if resource_id is not None:
66
+ self.resource_id = resource_id
67
+
68
+ @property
69
+ def id(self) -> 'str':
70
+ """Gets the id of this V1DeleteScheduleResponse. # noqa: E501
71
+
72
+
73
+ :return: The id of this V1DeleteScheduleResponse. # noqa: E501
74
+ :rtype: str
75
+ """
76
+ return self._id
77
+
78
+ @id.setter
79
+ def id(self, id: 'str'):
80
+ """Sets the id of this V1DeleteScheduleResponse.
81
+
82
+
83
+ :param id: The id of this V1DeleteScheduleResponse. # noqa: E501
84
+ :type: str
85
+ """
86
+
87
+ self._id = id
88
+
89
+ @property
90
+ def project_id(self) -> 'str':
91
+ """Gets the project_id of this V1DeleteScheduleResponse. # noqa: E501
92
+
93
+
94
+ :return: The project_id of this V1DeleteScheduleResponse. # noqa: E501
95
+ :rtype: str
96
+ """
97
+ return self._project_id
98
+
99
+ @project_id.setter
100
+ def project_id(self, project_id: 'str'):
101
+ """Sets the project_id of this V1DeleteScheduleResponse.
102
+
103
+
104
+ :param project_id: The project_id of this V1DeleteScheduleResponse. # noqa: E501
105
+ :type: str
106
+ """
107
+
108
+ self._project_id = project_id
109
+
110
+ @property
111
+ def resource_id(self) -> 'str':
112
+ """Gets the resource_id of this V1DeleteScheduleResponse. # noqa: E501
113
+
114
+
115
+ :return: The resource_id of this V1DeleteScheduleResponse. # noqa: E501
116
+ :rtype: str
117
+ """
118
+ return self._resource_id
119
+
120
+ @resource_id.setter
121
+ def resource_id(self, resource_id: 'str'):
122
+ """Sets the resource_id of this V1DeleteScheduleResponse.
123
+
124
+
125
+ :param resource_id: The resource_id of this V1DeleteScheduleResponse. # noqa: E501
126
+ :type: str
127
+ """
128
+
129
+ self._resource_id = resource_id
130
+
131
+ def to_dict(self) -> dict:
132
+ """Returns the model properties as a dict"""
133
+ result = {}
134
+
135
+ for attr, _ in six.iteritems(self.swagger_types):
136
+ value = getattr(self, attr)
137
+ if isinstance(value, list):
138
+ result[attr] = list(map(
139
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
140
+ value
141
+ ))
142
+ elif hasattr(value, "to_dict"):
143
+ result[attr] = value.to_dict()
144
+ elif isinstance(value, dict):
145
+ result[attr] = dict(map(
146
+ lambda item: (item[0], item[1].to_dict())
147
+ if hasattr(item[1], "to_dict") else item,
148
+ value.items()
149
+ ))
150
+ else:
151
+ result[attr] = value
152
+ if issubclass(V1DeleteScheduleResponse, dict):
153
+ for key, value in self.items():
154
+ result[key] = value
155
+
156
+ return result
157
+
158
+ def to_str(self) -> str:
159
+ """Returns the string representation of the model"""
160
+ return pprint.pformat(self.to_dict())
161
+
162
+ def __repr__(self) -> str:
163
+ """For `print` and `pprint`"""
164
+ return self.to_str()
165
+
166
+ def __eq__(self, other: 'V1DeleteScheduleResponse') -> bool:
167
+ """Returns true if both objects are equal"""
168
+ if not isinstance(other, V1DeleteScheduleResponse):
169
+ return False
170
+
171
+ return self.__dict__ == other.__dict__
172
+
173
+ def __ne__(self, other: 'V1DeleteScheduleResponse') -> bool:
174
+ """Returns true if both objects are not equal"""
175
+ return not self == other
@@ -41,25 +41,82 @@ class V1GetCloudSpaceSizeResponse(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
+ 'bytes_to_sync': 'str',
45
+ 'files_to_sync': 'str',
44
46
  'number_of_files': 'str',
47
+ 'sync_last_updated': 'datetime',
45
48
  'total_size_bytes': 'str'
46
49
  }
47
50
 
48
51
  attribute_map = {
52
+ 'bytes_to_sync': 'bytesToSync',
53
+ 'files_to_sync': 'filesToSync',
49
54
  'number_of_files': 'numberOfFiles',
55
+ 'sync_last_updated': 'syncLastUpdated',
50
56
  'total_size_bytes': 'totalSizeBytes'
51
57
  }
52
58
 
53
- def __init__(self, number_of_files: 'str' =None, total_size_bytes: 'str' =None): # noqa: E501
59
+ def __init__(self, bytes_to_sync: 'str' =None, files_to_sync: 'str' =None, number_of_files: 'str' =None, sync_last_updated: 'datetime' =None, total_size_bytes: 'str' =None): # noqa: E501
54
60
  """V1GetCloudSpaceSizeResponse - a model defined in Swagger""" # noqa: E501
61
+ self._bytes_to_sync = None
62
+ self._files_to_sync = None
55
63
  self._number_of_files = None
64
+ self._sync_last_updated = None
56
65
  self._total_size_bytes = None
57
66
  self.discriminator = None
67
+ if bytes_to_sync is not None:
68
+ self.bytes_to_sync = bytes_to_sync
69
+ if files_to_sync is not None:
70
+ self.files_to_sync = files_to_sync
58
71
  if number_of_files is not None:
59
72
  self.number_of_files = number_of_files
73
+ if sync_last_updated is not None:
74
+ self.sync_last_updated = sync_last_updated
60
75
  if total_size_bytes is not None:
61
76
  self.total_size_bytes = total_size_bytes
62
77
 
78
+ @property
79
+ def bytes_to_sync(self) -> 'str':
80
+ """Gets the bytes_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
81
+
82
+
83
+ :return: The bytes_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
84
+ :rtype: str
85
+ """
86
+ return self._bytes_to_sync
87
+
88
+ @bytes_to_sync.setter
89
+ def bytes_to_sync(self, bytes_to_sync: 'str'):
90
+ """Sets the bytes_to_sync of this V1GetCloudSpaceSizeResponse.
91
+
92
+
93
+ :param bytes_to_sync: The bytes_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
94
+ :type: str
95
+ """
96
+
97
+ self._bytes_to_sync = bytes_to_sync
98
+
99
+ @property
100
+ def files_to_sync(self) -> 'str':
101
+ """Gets the files_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
102
+
103
+
104
+ :return: The files_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
105
+ :rtype: str
106
+ """
107
+ return self._files_to_sync
108
+
109
+ @files_to_sync.setter
110
+ def files_to_sync(self, files_to_sync: 'str'):
111
+ """Sets the files_to_sync of this V1GetCloudSpaceSizeResponse.
112
+
113
+
114
+ :param files_to_sync: The files_to_sync of this V1GetCloudSpaceSizeResponse. # noqa: E501
115
+ :type: str
116
+ """
117
+
118
+ self._files_to_sync = files_to_sync
119
+
63
120
  @property
64
121
  def number_of_files(self) -> 'str':
65
122
  """Gets the number_of_files of this V1GetCloudSpaceSizeResponse. # noqa: E501
@@ -81,6 +138,27 @@ class V1GetCloudSpaceSizeResponse(object):
81
138
 
82
139
  self._number_of_files = number_of_files
83
140
 
141
+ @property
142
+ def sync_last_updated(self) -> 'datetime':
143
+ """Gets the sync_last_updated of this V1GetCloudSpaceSizeResponse. # noqa: E501
144
+
145
+
146
+ :return: The sync_last_updated of this V1GetCloudSpaceSizeResponse. # noqa: E501
147
+ :rtype: datetime
148
+ """
149
+ return self._sync_last_updated
150
+
151
+ @sync_last_updated.setter
152
+ def sync_last_updated(self, sync_last_updated: 'datetime'):
153
+ """Sets the sync_last_updated of this V1GetCloudSpaceSizeResponse.
154
+
155
+
156
+ :param sync_last_updated: The sync_last_updated of this V1GetCloudSpaceSizeResponse. # noqa: E501
157
+ :type: datetime
158
+ """
159
+
160
+ self._sync_last_updated = sync_last_updated
161
+
84
162
  @property
85
163
  def total_size_bytes(self) -> 'str':
86
164
  """Gets the total_size_bytes of this V1GetCloudSpaceSizeResponse. # noqa: E501