lightning-sdk 0.1.30__py3-none-any.whl → 0.1.32__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 (80) hide show
  1. lightning_sdk/__init__.py +3 -1
  2. lightning_sdk/ai_hub.py +29 -0
  3. lightning_sdk/api/__init__.py +2 -0
  4. lightning_sdk/api/ai_hub_api.py +15 -0
  5. lightning_sdk/api/teamspace_api.py +35 -5
  6. lightning_sdk/api/user_api.py +8 -2
  7. lightning_sdk/cli/upload.py +10 -6
  8. lightning_sdk/lightning_cloud/openapi/__init__.py +30 -0
  9. lightning_sdk/lightning_cloud/openapi/api/__init__.py +1 -0
  10. lightning_sdk/lightning_cloud/openapi/api/cloud_space_service_api.py +105 -4
  11. lightning_sdk/lightning_cloud/openapi/api/cluster_service_api.py +5 -5
  12. lightning_sdk/lightning_cloud/openapi/api/deployment_templates_service_api.py +105 -0
  13. lightning_sdk/lightning_cloud/openapi/api/file_system_service_api.py +674 -0
  14. lightning_sdk/lightning_cloud/openapi/api/jobs_service_api.py +5 -1
  15. lightning_sdk/lightning_cloud/openapi/api/lit_logger_service_api.py +396 -0
  16. lightning_sdk/lightning_cloud/openapi/api/models_store_api.py +118 -1
  17. lightning_sdk/lightning_cloud/openapi/models/__init__.py +29 -0
  18. lightning_sdk/lightning_cloud/openapi/models/cluster_id_capacityblock_body.py +15 -15
  19. lightning_sdk/lightning_cloud/openapi/models/create.py +79 -1
  20. lightning_sdk/lightning_cloud/openapi/models/deployments_id_body.py +27 -1
  21. lightning_sdk/lightning_cloud/openapi/models/deploymenttemplates_id_body.py +121 -17
  22. lightning_sdk/lightning_cloud/openapi/models/id_engage_body.py +3 -29
  23. lightning_sdk/lightning_cloud/openapi/models/id_engage_body1.py +149 -0
  24. lightning_sdk/lightning_cloud/openapi/models/litloggermetrics_id_body.py +175 -0
  25. lightning_sdk/lightning_cloud/openapi/models/model_id_versions_body.py +123 -0
  26. lightning_sdk/lightning_cloud/openapi/models/project_id_models_body.py +27 -1
  27. lightning_sdk/lightning_cloud/openapi/models/update.py +105 -1
  28. lightning_sdk/lightning_cloud/openapi/models/v1_affiliate_link.py +79 -1
  29. lightning_sdk/lightning_cloud/openapi/models/v1_app_type.py +104 -0
  30. lightning_sdk/lightning_cloud/openapi/models/v1_cluster_accelerator.py +27 -1
  31. lightning_sdk/lightning_cloud/openapi/models/v1_create_deployment_template_request.py +95 -17
  32. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_request.py +201 -0
  33. lightning_sdk/lightning_cloud/openapi/models/v1_create_shared_metrics_stream_response.py +123 -0
  34. lightning_sdk/lightning_cloud/openapi/models/v1_data_connection.py +79 -1
  35. lightning_sdk/lightning_cloud/openapi/models/v1_data_path.py +175 -0
  36. lightning_sdk/lightning_cloud/openapi/models/v1_delete_shared_metrics_stream_response.py +97 -0
  37. lightning_sdk/lightning_cloud/openapi/models/v1_deployment.py +27 -1
  38. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_metrics.py +123 -0
  39. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template.py +95 -17
  40. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_engagement_response.py +97 -0
  41. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter.py +69 -17
  42. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_placement.py +2 -0
  43. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_parameter_type.py +1 -0
  44. lightning_sdk/lightning_cloud/openapi/models/v1_deployment_template_summary.py +27 -1
  45. lightning_sdk/lightning_cloud/openapi/models/v1_efs_folder_data_connection.py +201 -0
  46. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_app.py +227 -0
  47. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_cloud_space.py +149 -0
  48. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_dataset.py +123 -0
  49. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_job.py +175 -0
  50. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_slurm_job.py +149 -0
  51. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_snowflake_connection.py +123 -0
  52. lightning_sdk/lightning_cloud/openapi/models/v1_filesystem_work.py +149 -0
  53. lightning_sdk/lightning_cloud/openapi/models/v1_gcs_folder_data_connection.py +123 -0
  54. lightning_sdk/lightning_cloud/openapi/models/v1_input.py +29 -3
  55. lightning_sdk/lightning_cloud/openapi/models/v1_job_spec.py +27 -1
  56. lightning_sdk/lightning_cloud/openapi/models/v1_lightningwork_spec.py +27 -1
  57. lightning_sdk/lightning_cloud/openapi/models/v1_list_cloud_space_python_versions_response.py +123 -0
  58. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_apps_response.py +123 -0
  59. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_cloud_spaces_response.py +123 -0
  60. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_datasets_response.py +123 -0
  61. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_jobs_response.py +123 -0
  62. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_slurm_jobs_response.py +123 -0
  63. lightning_sdk/lightning_cloud/openapi/models/v1_list_filesystem_snowflake_response.py +123 -0
  64. lightning_sdk/lightning_cloud/openapi/models/v1_model.py +6 -6
  65. lightning_sdk/lightning_cloud/openapi/models/v1_model_version_archive.py +79 -1
  66. lightning_sdk/lightning_cloud/openapi/models/v1_parameterization_spec.py +227 -0
  67. lightning_sdk/lightning_cloud/openapi/models/v1_s3_folder_data_connection.py +123 -0
  68. lightning_sdk/lightning_cloud/openapi/models/v1_transaction.py +27 -1
  69. lightning_sdk/lightning_cloud/openapi/models/v1_update_shared_metrics_stream_response.py +97 -0
  70. lightning_sdk/lightning_cloud/openapi/models/v1_user_features.py +76 -24
  71. lightning_sdk/lightning_cloud/openapi/models/v1_validate_data_connection_response.py +81 -3
  72. lightning_sdk/lightning_cloud/openapi/models/validate.py +81 -3
  73. lightning_sdk/lightning_cloud/rest_client.py +2 -0
  74. lightning_sdk/teamspace.py +11 -0
  75. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/METADATA +1 -1
  76. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/RECORD +80 -48
  77. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/LICENSE +0 -0
  78. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/WHEEL +0 -0
  79. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/entry_points.txt +0 -0
  80. {lightning_sdk-0.1.30.dist-info → lightning_sdk-0.1.32.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1FilesystemSlurmJob(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
+ 'name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'id': 'id',
50
+ 'name': 'name'
51
+ }
52
+
53
+ def __init__(self, id: 'str' =None, name: 'str' =None): # noqa: E501
54
+ """V1FilesystemSlurmJob - a model defined in Swagger""" # noqa: E501
55
+ self._id = None
56
+ self._name = None
57
+ self.discriminator = None
58
+ if id is not None:
59
+ self.id = id
60
+ if name is not None:
61
+ self.name = name
62
+
63
+ @property
64
+ def id(self) -> 'str':
65
+ """Gets the id of this V1FilesystemSlurmJob. # noqa: E501
66
+
67
+
68
+ :return: The id of this V1FilesystemSlurmJob. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._id
72
+
73
+ @id.setter
74
+ def id(self, id: 'str'):
75
+ """Sets the id of this V1FilesystemSlurmJob.
76
+
77
+
78
+ :param id: The id of this V1FilesystemSlurmJob. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._id = id
83
+
84
+ @property
85
+ def name(self) -> 'str':
86
+ """Gets the name of this V1FilesystemSlurmJob. # noqa: E501
87
+
88
+
89
+ :return: The name of this V1FilesystemSlurmJob. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._name
93
+
94
+ @name.setter
95
+ def name(self, name: 'str'):
96
+ """Sets the name of this V1FilesystemSlurmJob.
97
+
98
+
99
+ :param name: The name of this V1FilesystemSlurmJob. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._name = name
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1FilesystemSlurmJob, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1FilesystemSlurmJob') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1FilesystemSlurmJob):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1FilesystemSlurmJob') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -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 V1FilesystemSnowflakeConnection(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
+ 'name': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'name': 'name'
49
+ }
50
+
51
+ def __init__(self, name: 'str' =None): # noqa: E501
52
+ """V1FilesystemSnowflakeConnection - a model defined in Swagger""" # noqa: E501
53
+ self._name = None
54
+ self.discriminator = None
55
+ if name is not None:
56
+ self.name = name
57
+
58
+ @property
59
+ def name(self) -> 'str':
60
+ """Gets the name of this V1FilesystemSnowflakeConnection. # noqa: E501
61
+
62
+
63
+ :return: The name of this V1FilesystemSnowflakeConnection. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._name
67
+
68
+ @name.setter
69
+ def name(self, name: 'str'):
70
+ """Sets the name of this V1FilesystemSnowflakeConnection.
71
+
72
+
73
+ :param name: The name of this V1FilesystemSnowflakeConnection. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._name = name
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(V1FilesystemSnowflakeConnection, 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: 'V1FilesystemSnowflakeConnection') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1FilesystemSnowflakeConnection):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1FilesystemSnowflakeConnection') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -0,0 +1,149 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ external/v1/auth_service.proto
5
+
6
+ No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7
+
8
+ OpenAPI spec version: version not set
9
+
10
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
11
+
12
+ NOTE
13
+ ----
14
+ standard swagger-codegen-cli for this python client has been modified
15
+ by custom templates. The purpose of these templates is to include
16
+ typing information in the API and Model code. Please refer to the
17
+ main grid repository for more info
18
+ """
19
+
20
+ import pprint
21
+ import re # noqa: F401
22
+
23
+ from typing import TYPE_CHECKING
24
+
25
+ import six
26
+
27
+ if TYPE_CHECKING:
28
+ from datetime import datetime
29
+ from lightning_sdk.lightning_cloud.openapi.models import *
30
+
31
+ class V1FilesystemWork(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
+ 'name': 'str'
46
+ }
47
+
48
+ attribute_map = {
49
+ 'id': 'id',
50
+ 'name': 'name'
51
+ }
52
+
53
+ def __init__(self, id: 'str' =None, name: 'str' =None): # noqa: E501
54
+ """V1FilesystemWork - a model defined in Swagger""" # noqa: E501
55
+ self._id = None
56
+ self._name = None
57
+ self.discriminator = None
58
+ if id is not None:
59
+ self.id = id
60
+ if name is not None:
61
+ self.name = name
62
+
63
+ @property
64
+ def id(self) -> 'str':
65
+ """Gets the id of this V1FilesystemWork. # noqa: E501
66
+
67
+
68
+ :return: The id of this V1FilesystemWork. # noqa: E501
69
+ :rtype: str
70
+ """
71
+ return self._id
72
+
73
+ @id.setter
74
+ def id(self, id: 'str'):
75
+ """Sets the id of this V1FilesystemWork.
76
+
77
+
78
+ :param id: The id of this V1FilesystemWork. # noqa: E501
79
+ :type: str
80
+ """
81
+
82
+ self._id = id
83
+
84
+ @property
85
+ def name(self) -> 'str':
86
+ """Gets the name of this V1FilesystemWork. # noqa: E501
87
+
88
+
89
+ :return: The name of this V1FilesystemWork. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._name
93
+
94
+ @name.setter
95
+ def name(self, name: 'str'):
96
+ """Sets the name of this V1FilesystemWork.
97
+
98
+
99
+ :param name: The name of this V1FilesystemWork. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._name = name
104
+
105
+ def to_dict(self) -> dict:
106
+ """Returns the model properties as a dict"""
107
+ result = {}
108
+
109
+ for attr, _ in six.iteritems(self.swagger_types):
110
+ value = getattr(self, attr)
111
+ if isinstance(value, list):
112
+ result[attr] = list(map(
113
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114
+ value
115
+ ))
116
+ elif hasattr(value, "to_dict"):
117
+ result[attr] = value.to_dict()
118
+ elif isinstance(value, dict):
119
+ result[attr] = dict(map(
120
+ lambda item: (item[0], item[1].to_dict())
121
+ if hasattr(item[1], "to_dict") else item,
122
+ value.items()
123
+ ))
124
+ else:
125
+ result[attr] = value
126
+ if issubclass(V1FilesystemWork, dict):
127
+ for key, value in self.items():
128
+ result[key] = value
129
+
130
+ return result
131
+
132
+ def to_str(self) -> str:
133
+ """Returns the string representation of the model"""
134
+ return pprint.pformat(self.to_dict())
135
+
136
+ def __repr__(self) -> str:
137
+ """For `print` and `pprint`"""
138
+ return self.to_str()
139
+
140
+ def __eq__(self, other: 'V1FilesystemWork') -> bool:
141
+ """Returns true if both objects are equal"""
142
+ if not isinstance(other, V1FilesystemWork):
143
+ return False
144
+
145
+ return self.__dict__ == other.__dict__
146
+
147
+ def __ne__(self, other: 'V1FilesystemWork') -> bool:
148
+ """Returns true if both objects are not equal"""
149
+ return not self == other
@@ -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 V1GCSFolderDataConnection(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
+ 'source': 'str'
45
+ }
46
+
47
+ attribute_map = {
48
+ 'source': 'source'
49
+ }
50
+
51
+ def __init__(self, source: 'str' =None): # noqa: E501
52
+ """V1GCSFolderDataConnection - a model defined in Swagger""" # noqa: E501
53
+ self._source = None
54
+ self.discriminator = None
55
+ if source is not None:
56
+ self.source = source
57
+
58
+ @property
59
+ def source(self) -> 'str':
60
+ """Gets the source of this V1GCSFolderDataConnection. # noqa: E501
61
+
62
+
63
+ :return: The source of this V1GCSFolderDataConnection. # noqa: E501
64
+ :rtype: str
65
+ """
66
+ return self._source
67
+
68
+ @source.setter
69
+ def source(self, source: 'str'):
70
+ """Sets the source of this V1GCSFolderDataConnection.
71
+
72
+
73
+ :param source: The source of this V1GCSFolderDataConnection. # noqa: E501
74
+ :type: str
75
+ """
76
+
77
+ self._source = source
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(V1GCSFolderDataConnection, 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: 'V1GCSFolderDataConnection') -> bool:
115
+ """Returns true if both objects are equal"""
116
+ if not isinstance(other, V1GCSFolderDataConnection):
117
+ return False
118
+
119
+ return self.__dict__ == other.__dict__
120
+
121
+ def __ne__(self, other: 'V1GCSFolderDataConnection') -> bool:
122
+ """Returns true if both objects are not equal"""
123
+ return not self == other
@@ -41,19 +41,24 @@ class V1Input(object):
41
41
  and the value is json key in definition.
42
42
  """
43
43
  swagger_types = {
44
- 'default_value': 'str'
44
+ 'default_value': 'str',
45
+ 'placeholder': 'str'
45
46
  }
46
47
 
47
48
  attribute_map = {
48
- 'default_value': 'defaultValue'
49
+ 'default_value': 'defaultValue',
50
+ 'placeholder': 'placeholder'
49
51
  }
50
52
 
51
- def __init__(self, default_value: 'str' =None): # noqa: E501
53
+ def __init__(self, default_value: 'str' =None, placeholder: 'str' =None): # noqa: E501
52
54
  """V1Input - a model defined in Swagger""" # noqa: E501
53
55
  self._default_value = None
56
+ self._placeholder = None
54
57
  self.discriminator = None
55
58
  if default_value is not None:
56
59
  self.default_value = default_value
60
+ if placeholder is not None:
61
+ self.placeholder = placeholder
57
62
 
58
63
  @property
59
64
  def default_value(self) -> 'str':
@@ -76,6 +81,27 @@ class V1Input(object):
76
81
 
77
82
  self._default_value = default_value
78
83
 
84
+ @property
85
+ def placeholder(self) -> 'str':
86
+ """Gets the placeholder of this V1Input. # noqa: E501
87
+
88
+
89
+ :return: The placeholder of this V1Input. # noqa: E501
90
+ :rtype: str
91
+ """
92
+ return self._placeholder
93
+
94
+ @placeholder.setter
95
+ def placeholder(self, placeholder: 'str'):
96
+ """Sets the placeholder of this V1Input.
97
+
98
+
99
+ :param placeholder: The placeholder of this V1Input. # noqa: E501
100
+ :type: str
101
+ """
102
+
103
+ self._placeholder = placeholder
104
+
79
105
  def to_dict(self) -> dict:
80
106
  """Returns the model properties as a dict"""
81
107
  result = {}
@@ -45,6 +45,7 @@ class V1JobSpec(object):
45
45
  'cluster_id': 'str',
46
46
  'command': 'str',
47
47
  'created_symlinks': 'bool',
48
+ 'data_paths': 'list[V1DataPath]',
48
49
  'entrypoint': 'str',
49
50
  'env': 'list[V1EnvVar]',
50
51
  'image': 'str',
@@ -69,6 +70,7 @@ class V1JobSpec(object):
69
70
  'cluster_id': 'clusterId',
70
71
  'command': 'command',
71
72
  'created_symlinks': 'createdSymlinks',
73
+ 'data_paths': 'dataPaths',
72
74
  'entrypoint': 'entrypoint',
73
75
  'env': 'env',
74
76
  'image': 'image',
@@ -88,12 +90,13 @@ class V1JobSpec(object):
88
90
  'volumes': 'volumes'
89
91
  }
90
92
 
91
- def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_symlinks: 'bool' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, skip_data_connections_setup: 'bool' =None, skip_filesystem_setup: 'bool' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
93
+ def __init__(self, cloudspace_id: 'str' =None, cluster_id: 'str' =None, command: 'str' =None, created_symlinks: 'bool' =None, data_paths: 'list[V1DataPath]' =None, entrypoint: 'str' =None, env: 'list[V1EnvVar]' =None, image: 'str' =None, image_cluster_credentials: 'bool' =None, image_secret_ref: 'str' =None, include_credentials: 'bool' =None, instance_name: 'str' =None, instance_type: 'str' =None, modified_volume: 'bool' =None, readiness_probe: 'V1JobHealthCheckConfig' =None, resources: 'V1Resources' =None, restart_policy: 'str' =None, run_id: 'str' =None, skip_data_connections_setup: 'bool' =None, skip_filesystem_setup: 'bool' =None, spot: 'bool' =None, volumes: 'list[V1Volume]' =None): # noqa: E501
92
94
  """V1JobSpec - a model defined in Swagger""" # noqa: E501
93
95
  self._cloudspace_id = None
94
96
  self._cluster_id = None
95
97
  self._command = None
96
98
  self._created_symlinks = None
99
+ self._data_paths = None
97
100
  self._entrypoint = None
98
101
  self._env = None
99
102
  self._image = None
@@ -120,6 +123,8 @@ class V1JobSpec(object):
120
123
  self.command = command
121
124
  if created_symlinks is not None:
122
125
  self.created_symlinks = created_symlinks
126
+ if data_paths is not None:
127
+ self.data_paths = data_paths
123
128
  if entrypoint is not None:
124
129
  self.entrypoint = entrypoint
125
130
  if env is not None:
@@ -239,6 +244,27 @@ class V1JobSpec(object):
239
244
 
240
245
  self._created_symlinks = created_symlinks
241
246
 
247
+ @property
248
+ def data_paths(self) -> 'list[V1DataPath]':
249
+ """Gets the data_paths of this V1JobSpec. # noqa: E501
250
+
251
+
252
+ :return: The data_paths of this V1JobSpec. # noqa: E501
253
+ :rtype: list[V1DataPath]
254
+ """
255
+ return self._data_paths
256
+
257
+ @data_paths.setter
258
+ def data_paths(self, data_paths: 'list[V1DataPath]'):
259
+ """Sets the data_paths of this V1JobSpec.
260
+
261
+
262
+ :param data_paths: The data_paths of this V1JobSpec. # noqa: E501
263
+ :type: list[V1DataPath]
264
+ """
265
+
266
+ self._data_paths = data_paths
267
+
242
268
  @property
243
269
  def entrypoint(self) -> 'str':
244
270
  """Gets the entrypoint of this V1JobSpec. # noqa: E501